From 967c88858d130f4c336db5eee75d59f1f6652d12 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Thu, 7 Dec 2023 08:26:40 +0100 Subject: [PATCH] fix(dynamite): Allow int enums feat(dynamite_end_to_end_test): Add test for int enums Co-authored-by: Nikolas Rimikis Signed-off-by: jld3103 Signed-off-by: Nikolas Rimikis --- .../lib/src/builder/resolve_enum.dart | 300 +- .../lib/src/builder/resolve_type.dart | 3 +- .../dynamite/lib/src/builder/state.dart | 2 +- .../dynamite/lib/src/helpers/type_result.dart | 7 +- .../dynamite/lib/src/models/openapi.dart | 1 + .../dynamite/lib/src/models/openapi.g.dart | 2 +- .../lib/src/models/openapi/schema.dart | 2 +- .../lib/src/models/openapi/schema.g.dart | 12 +- .../lib/enum.openapi.dart | 310 +- .../lib/enum.openapi.g.dart | 252 +- .../lib/enum.openapi.json | 44 +- .../lib/parameters.openapi.dart | 82 +- .../lib/parameters.openapi.g.dart | 50 - .../test/enum_test.dart | 115 +- .../test/parameters_test.dart | 7 + .../lib/src/api/files_external.openapi.dart | 121 +- .../lib/src/api/files_external.openapi.g.dart | 51 - .../lib/src/api/files_sharing.openapi.dart | 41 +- .../lib/src/api/files_sharing.openapi.g.dart | 17 - .../nextcloud/lib/src/api/notes.openapi.dart | 43 +- .../lib/src/api/notes.openapi.g.dart | 18 - .../lib/src/api/notifications.openapi.dart | 414 +- .../lib/src/api/notifications.openapi.g.dart | 193 - .../nextcloud/lib/src/api/spreed.openapi.dart | 4499 ++++++++++++++++- .../lib/src/api/spreed.openapi.g.dart | 2130 -------- .../src/api/updatenotification.openapi.dart | 39 +- .../src/api/updatenotification.openapi.g.dart | 18 - .../lib/src/api/user_status.openapi.dart | 82 +- .../lib/src/api/user_status.openapi.g.dart | 41 - 29 files changed, 6108 insertions(+), 2788 deletions(-) diff --git a/packages/dynamite/dynamite/lib/src/builder/resolve_enum.dart b/packages/dynamite/dynamite/lib/src/builder/resolve_enum.dart index 14de57d434c..6b9d26c242d 100644 --- a/packages/dynamite/dynamite/lib/src/builder/resolve_enum.dart +++ b/packages/dynamite/dynamite/lib/src/builder/resolve_enum.dart @@ -1,9 +1,9 @@ +import 'dart:convert'; + 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/built_value.dart'; import 'package:dynamite/src/helpers/dart_helpers.dart'; -import 'package:dynamite/src/helpers/type_result.dart'; import 'package:dynamite/src/models/openapi.dart' as openapi; import 'package:dynamite/src/models/type_result.dart'; @@ -16,92 +16,226 @@ TypeResult resolveEnum( final bool nullable = false, }) { if (state.resolvedTypes.add(TypeResultEnum(identifier, subResult))) { - state.output.add( - Class( - (final b) => b - ..name = identifier - ..extend = refer('EnumClass') - ..constructors.add( - Constructor( - (final b) => b - ..name = '_' - ..constant = true - ..requiredParameters.add( - Parameter( - (final b) => b - ..name = 'name' - ..toSuper = true, - ), + final values = <({String dartName, Object? value, String name})>[]; + for (final enumValue in schema.$enum!) { + final name = enumValue.toString(); + final dartName = toDartName(name); + var value = jsonEncode(enumValue.value); + if (enumValue.isString) { + value = 'r$value'; + } + + values.add((dartName: dartName, value: value, name: name)); + } + + final $class = Class( + (final b) => b + ..name = identifier + ..extend = refer('EnumClass') + ..constructors.add( + Constructor( + (final b) => b + ..name = '_' + ..constant = true + ..requiredParameters.add( + Parameter( + (final b) => b + ..name = 'name' + ..toSuper = true, ), - ), - ) - ..fields.addAll( - schema.$enum!.map( - (final value) => Field( - (final b) { - final result = resolveType( - spec, - state, - '$identifier${toDartName(value, uppercaseFirstCharacter: true)}', - schema, - ignoreEnum: true, + ), + ), + ) + ..fields.addAll( + values.map( + (final enumValue) => Field( + (final b) { + b + ..name = enumValue.dartName + ..static = true + ..modifier = FieldModifier.constant + ..type = refer(identifier) + ..assignment = Code( + '_\$${toCamelCase('$identifier${enumValue.dartName.capitalize()}')}', ); - b - ..name = toDartName(value) - ..static = true - ..modifier = FieldModifier.constant - ..type = refer(identifier) - ..assignment = Code( - '_\$${toCamelCase(identifier)}${toDartName(value, uppercaseFirstCharacter: true)}', - ); - if (toDartName(value) != value) { - if (result.name != 'String' && result.name != 'int') { - throw Exception( - 'Sorry enum values are a bit broken. ' - 'See https://github.com/google/json_serializable.dart/issues/616. ' - 'Please remove the enum values on $identifier.', - ); - } - b.annotations.add( - refer('BuiltValueEnumConst').call([], { - 'wireName': refer(valueToEscapedValue(result, value)), - }), - ); - } - }, - ), - ), - ) - ..methods.addAll([ - Method( - (final b) => b - ..name = 'values' - ..returns = refer('BuiltSet<$identifier>') - ..lambda = true - ..static = true - ..body = Code('_\$${toCamelCase(identifier)}Values') - ..type = MethodType.getter, - ), - Method( - (final b) => b - ..name = 'valueOf' - ..returns = refer(identifier) - ..lambda = true - ..static = true - ..requiredParameters.add( - Parameter( - (final b) => b - ..name = 'name' - ..type = refer(subResult.name), - ), - ) - ..body = Code('_\$valueOf$identifier(name)'), + if (enumValue.name != enumValue.dartName) { + b.annotations.add( + refer('BuiltValueEnumConst').call([], { + 'wireName': refer("r'${enumValue.name}'"), + }), + ); + } + }, ), - buildSerializer(identifier), - ]), - ), + ), + ) + ..methods.addAll([ + Method( + (final b) => b + ..name = 'values' + ..returns = refer('BuiltSet<$identifier>') + ..lambda = true + ..static = true + ..body = Code('_\$${toCamelCase(identifier)}Values') + ..type = MethodType.getter, + ), + Method( + (final b) => b + ..name = 'valueOf' + ..returns = refer(identifier) + ..lambda = true + ..static = true + ..requiredParameters.add( + Parameter( + (final b) => b + ..name = 'name' + ..type = refer('String'), + ), + ) + ..body = Code('_\$valueOf$identifier(name)'), + ), + Method( + (final b) => b + ..returns = refer(subResult.dartType.className) + ..name = 'value' + ..type = MethodType.getter + ..lambda = true + ..body = Code('jsonSerializers.serializeWith(serializer, this)! as ${subResult.dartType.className}'), + ), + buildSerializer(identifier, isCustom: true), + ]), ); + + final serializer = Class( + (final b) => b + ..name = '_\$${identifier}Serializer' + ..implements.add(refer('PrimitiveSerializer<$identifier>')) + ..constructors.add( + Constructor( + (final b) => b..constant = true, + ), + ) + ..fields.addAll([ + Field((final b) { + b + ..static = true + ..modifier = FieldModifier.constant + ..type = refer('Map<$identifier, Object>') + ..name = '_toWire'; + final buffer = StringBuffer() + ..writeln('<$identifier, Object>{') + ..writeAll( + values.map((final enumValue) => '$identifier.${enumValue.dartName}: ${enumValue.value}'), + ',\n', + ) + ..writeln(',') + ..write('}'); + + b.assignment = Code(buffer.toString()); + }), + Field((final b) { + b + ..static = true + ..modifier = FieldModifier.constant + ..type = refer('Map') + ..name = '_fromWire'; + final buffer = StringBuffer() + ..writeln('{') + ..writeAll( + values.map((final enumValue) => '${enumValue.value}: $identifier.${enumValue.dartName}'), + ',\n', + ) + ..writeln(',') + ..write('}'); + + b.assignment = Code(buffer.toString()); + }), + ]) + ..methods.addAll([ + Method( + (final b) => b + ..name = 'types' + ..lambda = true + ..type = MethodType.getter + ..returns = refer('Iterable') + ..annotations.add(refer('override')) + ..body = Code('const [$identifier]'), + ), + Method( + (final b) => b + ..name = 'wireName' + ..lambda = true + ..type = MethodType.getter + ..returns = refer('String') + ..annotations.add(refer('override')) + ..body = Code("r'$identifier'"), + ), + Method((final b) { + b + ..name = 'serialize' + ..returns = refer('Object') + ..annotations.add(refer('override')) + ..lambda = true + ..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'), + ), + ) + ..body = const Code('_toWire[object]!'); + }), + Method((final b) { + b + ..name = 'deserialize' + ..returns = refer(identifier) + ..annotations.add(refer('override')) + ..lambda = true + ..requiredParameters.addAll([ + Parameter( + (final b) => b + ..name = 'serializers' + ..type = refer('Serializers'), + ), + Parameter( + (final b) => b + ..name = 'serialized' + ..type = refer('Object'), + ), + ]) + ..optionalParameters.add( + Parameter( + (final b) => b + ..name = 'specifiedType' + ..type = refer('FullType') + ..named = true + ..defaultTo = const Code('FullType.unspecified'), + ), + ) + ..body = const Code('_fromWire[serialized]!'); + }), + ]), + ); + + state.output.addAll([ + $class, + serializer, + ]); } return TypeResultEnum( identifier, diff --git a/packages/dynamite/dynamite/lib/src/builder/resolve_type.dart b/packages/dynamite/dynamite/lib/src/builder/resolve_type.dart index b91d3b13d72..a9253efb36f 100644 --- a/packages/dynamite/dynamite/lib/src/builder/resolve_type.dart +++ b/packages/dynamite/dynamite/lib/src/builder/resolve_type.dart @@ -12,7 +12,6 @@ TypeResult resolveType( final State state, final String identifier, final openapi.Schema schema, { - final bool ignoreEnum = false, final bool nullable = false, }) { TypeResult? result; @@ -178,7 +177,7 @@ TypeResult resolveType( } if (result != null) { - if (!ignoreEnum && schema.$enum != null) { + if (schema.$enum != null) { result = resolveEnum( spec, state, diff --git a/packages/dynamite/dynamite/lib/src/builder/state.dart b/packages/dynamite/dynamite/lib/src/builder/state.dart index bac3fa79abe..87454ef9984 100644 --- a/packages/dynamite/dynamite/lib/src/builder/state.dart +++ b/packages/dynamite/dynamite/lib/src/builder/state.dart @@ -25,7 +25,7 @@ class State { /// Wether the state contains resolved types that need the built_value generator. bool get hasResolvedBuiltTypes => resolvedTypes .where( - (final type) => type is TypeResultEnum || (type is TypeResultObject && type.className != 'ContentString'), + (final type) => type is TypeResultEnum || type is TypeResultObject && type.className != 'ContentString', ) .isNotEmpty; } diff --git a/packages/dynamite/dynamite/lib/src/helpers/type_result.dart b/packages/dynamite/dynamite/lib/src/helpers/type_result.dart index 1a57a799144..1c12844cc9f 100644 --- a/packages/dynamite/dynamite/lib/src/helpers/type_result.dart +++ b/packages/dynamite/dynamite/lib/src/helpers/type_result.dart @@ -1,8 +1,11 @@ import 'package:dynamite/src/helpers/dart_helpers.dart'; import 'package:dynamite/src/models/type_result.dart'; -String valueToEscapedValue(final TypeResult result, final String value) { - if (result is TypeResultBase && result.name == 'String') { +/// Escapes a [value] using the type specific syntax from [result]. +/// +/// Use [forceString] to ensure the returned value is a `String`. +String valueToEscapedValue(final TypeResult result, final String value, {final bool forceString = false}) { + if ((result is TypeResultBase && result.name == 'String') || forceString) { return "'$value'"; } if (result is TypeResultList) { diff --git a/packages/dynamite/dynamite/lib/src/models/openapi.dart b/packages/dynamite/dynamite/lib/src/models/openapi.dart index f4fac433007..7535dc10894 100644 --- a/packages/dynamite/dynamite/lib/src/models/openapi.dart +++ b/packages/dynamite/dynamite/lib/src/models/openapi.dart @@ -1,4 +1,5 @@ import 'package:built_collection/built_collection.dart'; +import 'package:built_value/json_object.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:dynamite/src/models/openapi/components.dart'; diff --git a/packages/dynamite/dynamite/lib/src/models/openapi.g.dart b/packages/dynamite/dynamite/lib/src/models/openapi.g.dart index ea687cd41f3..1f036f319da 100644 --- a/packages/dynamite/dynamite/lib/src/models/openapi.g.dart +++ b/packages/dynamite/dynamite/lib/src/models/openapi.g.dart @@ -31,7 +31,7 @@ Serializers _$serializers = (Serializers().toBuilder() ..addBuilderFactory(const FullType(BuiltList, [FullType(Schema)]), () => ListBuilder()) ..addBuilderFactory(const FullType(BuiltList, [FullType(Schema)]), () => ListBuilder()) ..addBuilderFactory(const FullType(BuiltList, [FullType(Schema)]), () => ListBuilder()) - ..addBuilderFactory(const FullType(BuiltList, [FullType(String)]), () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(JsonObject)]), () => ListBuilder()) ..addBuilderFactory( const FullType(BuiltMap, [FullType(String), FullType(Schema)]), () => MapBuilder()) ..addBuilderFactory(const FullType(BuiltList, [FullType(String)]), () => ListBuilder()) diff --git a/packages/dynamite/dynamite/lib/src/models/openapi/schema.dart b/packages/dynamite/dynamite/lib/src/models/openapi/schema.dart index ce6f4016f8f..1f66b7ee196 100644 --- a/packages/dynamite/dynamite/lib/src/models/openapi/schema.dart +++ b/packages/dynamite/dynamite/lib/src/models/openapi/schema.dart @@ -39,7 +39,7 @@ abstract class Schema implements Built { JsonObject? get $default; @BuiltValueField(wireName: 'enum') - BuiltList? get $enum; + BuiltList? get $enum; BuiltMap? get properties; diff --git a/packages/dynamite/dynamite/lib/src/models/openapi/schema.g.dart b/packages/dynamite/dynamite/lib/src/models/openapi/schema.g.dart index 10e96e0c1d2..f8feb9d66bf 100644 --- a/packages/dynamite/dynamite/lib/src/models/openapi/schema.g.dart +++ b/packages/dynamite/dynamite/lib/src/models/openapi/schema.g.dart @@ -113,7 +113,7 @@ class _$SchemaSerializer implements StructuredSerializer { if (value != null) { result ..add('enum') - ..add(serializers.serialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))); + ..add(serializers.serialize(value, specifiedType: const FullType(BuiltList, [FullType(JsonObject)]))); } value = object.properties; if (value != null) { @@ -216,7 +216,7 @@ class _$SchemaSerializer implements StructuredSerializer { break; case 'enum': result.$enum.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); + specifiedType: const FullType(BuiltList, [FullType(JsonObject)]))! as BuiltList); break; case 'properties': result.properties.replace(serializers.deserialize(value, @@ -298,7 +298,7 @@ class _$Schema extends Schema { @override final JsonObject? $default; @override - final BuiltList? $enum; + final BuiltList? $enum; @override final BuiltMap? properties; @override @@ -478,9 +478,9 @@ class SchemaBuilder implements Builder { JsonObject? get $default => _$this._$default; set $default(JsonObject? $default) => _$this._$default = $default; - ListBuilder? _$enum; - ListBuilder get $enum => _$this._$enum ??= ListBuilder(); - set $enum(ListBuilder? $enum) => _$this._$enum = $enum; + ListBuilder? _$enum; + ListBuilder get $enum => _$this._$enum ??= ListBuilder(); + set $enum(ListBuilder? $enum) => _$this._$enum = $enum; MapBuilder? _properties; MapBuilder get properties => _$this._properties ??= MapBuilder(); diff --git a/packages/dynamite/dynamite_end_to_end_test/lib/enum.openapi.dart b/packages/dynamite/dynamite_end_to_end_test/lib/enum.openapi.dart index 00039fdd088..5c0353cb10e 100644 --- a/packages/dynamite/dynamite_end_to_end_test/lib/enum.openapi.dart +++ b/packages/dynamite/dynamite_end_to_end_test/lib/enum.openapi.dart @@ -20,18 +20,322 @@ class EnumString extends EnumClass { static const EnumString test = _$enumStringTest; @BuiltValueEnumConst(wireName: 'default') - static const EnumString $default = _$enumStringDefault; + static const EnumString $default = _$enumString$default; + + @BuiltValueEnumConst(wireName: r'$dollar$') + static const EnumString dollar = _$enumStringDollar; static BuiltSet get values => _$enumStringValues; static EnumString valueOf(String name) => _$valueOfEnumString(name); - static Serializer get serializer => _$enumStringSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$EnumStringSerializer(); +} + +class _$EnumStringSerializer implements PrimitiveSerializer { + const _$EnumStringSerializer(); + + static const Map _toWire = { + EnumString.test: 'test', + EnumString.$default: 'default', + EnumString.dollar: r'$dollar$', + }; + + static const Map _fromWire = { + 'test': EnumString.test, + 'default': EnumString.$default, + r'$dollar$': EnumString.dollar, + }; + + @override + Iterable get types => const [EnumString]; + + @override + String get wireName => 'EnumString'; + + @override + Object serialize( + Serializers serializers, + EnumString object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + EnumString deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; +} + +class EnumInt extends EnumClass { + const EnumInt._(super.name); + + @BuiltValueEnumConst(wireName: '0') + static const EnumInt $0 = _$enumInt$0; + + @BuiltValueEnumConst(wireName: '1') + static const EnumInt $1 = _$enumInt$1; + + @BuiltValueEnumConst(wireName: '2') + static const EnumInt $2 = _$enumInt$2; + + static BuiltSet get values => _$enumIntValues; + + static EnumInt valueOf(String name) => _$valueOfEnumInt(name); + + int get value => jsonSerializers.serializeWith(serializer, this)! as int; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$EnumIntSerializer(); +} + +class _$EnumIntSerializer implements PrimitiveSerializer { + const _$EnumIntSerializer(); + + static const Map _toWire = { + EnumInt.$0: 0, + EnumInt.$1: 1, + EnumInt.$2: 2, + }; + + static const Map _fromWire = { + 0: EnumInt.$0, + 1: EnumInt.$1, + 2: EnumInt.$2, + }; + + @override + Iterable get types => const [EnumInt]; + + @override + String get wireName => 'EnumInt'; + + @override + Object serialize( + Serializers serializers, + EnumInt object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + EnumInt deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; +} + +class EnumDynamic extends EnumClass { + const EnumDynamic._(super.name); + + @BuiltValueEnumConst(wireName: '0') + static const EnumDynamic $0 = _$enumDynamic$0; + + static const EnumDynamic string = _$enumDynamicString; + + @BuiltValueEnumConst(wireName: 'false') + static const EnumDynamic $false = _$enumDynamic$false; + + static BuiltSet get values => _$enumDynamicValues; + + static EnumDynamic valueOf(String name) => _$valueOfEnumDynamic(name); + + dynamic get value => jsonSerializers.serializeWith(serializer, this)! as dynamic; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$EnumDynamicSerializer(); +} + +class _$EnumDynamicSerializer implements PrimitiveSerializer { + const _$EnumDynamicSerializer(); + + static const Map _toWire = { + EnumDynamic.$0: 0, + EnumDynamic.string: 'string', + EnumDynamic.$false: false, + }; + + static const Map _fromWire = { + 0: EnumDynamic.$0, + 'string': EnumDynamic.string, + false: EnumDynamic.$false, + }; + + @override + Iterable get types => const [EnumDynamic]; + + @override + String get wireName => 'EnumDynamic'; + + @override + Object serialize( + Serializers serializers, + EnumDynamic object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + EnumDynamic deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; +} + +class WrappedEnum_CustomString extends EnumClass { + const WrappedEnum_CustomString._(super.name); + + static const WrappedEnum_CustomString test = _$wrappedEnumCustomStringTest; + + @BuiltValueEnumConst(wireName: 'default') + static const WrappedEnum_CustomString $default = _$wrappedEnumCustomString$default; + + static BuiltSet get values => _$wrappedEnumCustomStringValues; + + static WrappedEnum_CustomString valueOf(String name) => _$valueOfWrappedEnum_CustomString(name); + + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$WrappedEnum_CustomStringSerializer(); +} + +class _$WrappedEnum_CustomStringSerializer implements PrimitiveSerializer { + const _$WrappedEnum_CustomStringSerializer(); + + static const Map _toWire = { + WrappedEnum_CustomString.test: 'test', + WrappedEnum_CustomString.$default: 'default', + }; + + static const Map _fromWire = { + 'test': WrappedEnum_CustomString.test, + 'default': WrappedEnum_CustomString.$default, + }; + + @override + Iterable get types => const [WrappedEnum_CustomString]; + + @override + String get wireName => 'WrappedEnum_CustomString'; + + @override + Object serialize( + Serializers serializers, + WrappedEnum_CustomString object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + WrappedEnum_CustomString deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; +} + +class WrappedEnum_Integer extends EnumClass { + const WrappedEnum_Integer._(super.name); + + @BuiltValueEnumConst(wireName: '0') + static const WrappedEnum_Integer $0 = _$wrappedEnumInteger$0; + + @BuiltValueEnumConst(wireName: '1') + static const WrappedEnum_Integer $1 = _$wrappedEnumInteger$1; + + @BuiltValueEnumConst(wireName: '2') + static const WrappedEnum_Integer $2 = _$wrappedEnumInteger$2; + + static BuiltSet get values => _$wrappedEnumIntegerValues; + + static WrappedEnum_Integer valueOf(String name) => _$valueOfWrappedEnum_Integer(name); + + int get value => jsonSerializers.serializeWith(serializer, this)! as int; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$WrappedEnum_IntegerSerializer(); +} + +class _$WrappedEnum_IntegerSerializer implements PrimitiveSerializer { + const _$WrappedEnum_IntegerSerializer(); + + static const Map _toWire = { + WrappedEnum_Integer.$0: 0, + WrappedEnum_Integer.$1: 1, + WrappedEnum_Integer.$2: 2, + }; + + static const Map _fromWire = { + 0: WrappedEnum_Integer.$0, + 1: WrappedEnum_Integer.$1, + 2: WrappedEnum_Integer.$2, + }; + + @override + Iterable get types => const [WrappedEnum_Integer]; + + @override + String get wireName => 'WrappedEnum_Integer'; + + @override + Object serialize( + Serializers serializers, + WrappedEnum_Integer object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + WrappedEnum_Integer deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; +} + +@BuiltValue(instantiable: false) +abstract interface class $WrappedEnumInterface { + @BuiltValueField(wireName: 'custom-string') + WrappedEnum_CustomString get customString; + WrappedEnum_Integer get integer; +} + +abstract class WrappedEnum implements $WrappedEnumInterface, Built { + factory WrappedEnum([void Function(WrappedEnumBuilder)? b]) = _$WrappedEnum; + + const WrappedEnum._(); + + factory WrappedEnum.fromJson(Map json) => jsonSerializers.deserializeWith(serializer, json)!; + + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + + static Serializer get serializer => _$wrappedEnumSerializer; } // coverage:ignore-start @visibleForTesting -final Serializers serializers = (Serializers().toBuilder()..add(EnumString.serializer)).build(); +final Serializers serializers = (Serializers().toBuilder() + ..add(EnumString.serializer) + ..add(EnumInt.serializer) + ..add(EnumDynamic.serializer) + ..addBuilderFactory(const FullType(WrappedEnum), WrappedEnumBuilder.new) + ..add(WrappedEnum.serializer) + ..add(WrappedEnum_CustomString.serializer) + ..add(WrappedEnum_Integer.serializer)) + .build(); @visibleForTesting final Serializers jsonSerializers = (serializers.toBuilder() diff --git a/packages/dynamite/dynamite_end_to_end_test/lib/enum.openapi.g.dart b/packages/dynamite/dynamite_end_to_end_test/lib/enum.openapi.g.dart index b60b654467d..26c65e551fb 100644 --- a/packages/dynamite/dynamite_end_to_end_test/lib/enum.openapi.g.dart +++ b/packages/dynamite/dynamite_end_to_end_test/lib/enum.openapi.g.dart @@ -7,14 +7,17 @@ part of 'enum.openapi.dart'; // ************************************************************************** const EnumString _$enumStringTest = EnumString._('test'); -const EnumString _$enumStringDefault = EnumString._('\$default'); +const EnumString _$enumString$default = EnumString._('\$default'); +const EnumString _$enumStringDollar = EnumString._('dollar'); EnumString _$valueOfEnumString(String name) { switch (name) { case 'test': return _$enumStringTest; case '\$default': - return _$enumStringDefault; + return _$enumString$default; + case 'dollar': + return _$enumStringDollar; default: throw ArgumentError(name); } @@ -22,31 +25,246 @@ EnumString _$valueOfEnumString(String name) { final BuiltSet _$enumStringValues = BuiltSet(const [ _$enumStringTest, - _$enumStringDefault, + _$enumString$default, + _$enumStringDollar, ]); -Serializer _$enumStringSerializer = _$EnumStringSerializer(); +const EnumInt _$enumInt$0 = EnumInt._('\$0'); +const EnumInt _$enumInt$1 = EnumInt._('\$1'); +const EnumInt _$enumInt$2 = EnumInt._('\$2'); -class _$EnumStringSerializer implements PrimitiveSerializer { - static const Map _toWire = { - '\$default': 'default', - }; - static const Map _fromWire = { - 'default': '\$default', - }; +EnumInt _$valueOfEnumInt(String name) { + switch (name) { + case '\$0': + return _$enumInt$0; + case '\$1': + return _$enumInt$1; + case '\$2': + return _$enumInt$2; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$enumIntValues = BuiltSet(const [ + _$enumInt$0, + _$enumInt$1, + _$enumInt$2, +]); + +const EnumDynamic _$enumDynamic$0 = EnumDynamic._('\$0'); +const EnumDynamic _$enumDynamicString = EnumDynamic._('string'); +const EnumDynamic _$enumDynamic$false = EnumDynamic._('\$false'); + +EnumDynamic _$valueOfEnumDynamic(String name) { + switch (name) { + case '\$0': + return _$enumDynamic$0; + case 'string': + return _$enumDynamicString; + case '\$false': + return _$enumDynamic$false; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$enumDynamicValues = BuiltSet(const [ + _$enumDynamic$0, + _$enumDynamicString, + _$enumDynamic$false, +]); + +const WrappedEnum_CustomString _$wrappedEnumCustomStringTest = WrappedEnum_CustomString._('test'); +const WrappedEnum_CustomString _$wrappedEnumCustomString$default = WrappedEnum_CustomString._('\$default'); + +WrappedEnum_CustomString _$valueOfWrappedEnum_CustomString(String name) { + switch (name) { + case 'test': + return _$wrappedEnumCustomStringTest; + case '\$default': + return _$wrappedEnumCustomString$default; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$wrappedEnumCustomStringValues = + BuiltSet(const [ + _$wrappedEnumCustomStringTest, + _$wrappedEnumCustomString$default, +]); + +const WrappedEnum_Integer _$wrappedEnumInteger$0 = WrappedEnum_Integer._('\$0'); +const WrappedEnum_Integer _$wrappedEnumInteger$1 = WrappedEnum_Integer._('\$1'); +const WrappedEnum_Integer _$wrappedEnumInteger$2 = WrappedEnum_Integer._('\$2'); + +WrappedEnum_Integer _$valueOfWrappedEnum_Integer(String name) { + switch (name) { + case '\$0': + return _$wrappedEnumInteger$0; + case '\$1': + return _$wrappedEnumInteger$1; + case '\$2': + return _$wrappedEnumInteger$2; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$wrappedEnumIntegerValues = + BuiltSet(const [ + _$wrappedEnumInteger$0, + _$wrappedEnumInteger$1, + _$wrappedEnumInteger$2, +]); + +Serializer _$wrappedEnumSerializer = _$WrappedEnumSerializer(); + +class _$WrappedEnumSerializer implements StructuredSerializer { + @override + final Iterable types = const [WrappedEnum, _$WrappedEnum]; + @override + final String wireName = 'WrappedEnum'; + + @override + Iterable serialize(Serializers serializers, WrappedEnum object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'custom-string', + serializers.serialize(object.customString, specifiedType: const FullType(WrappedEnum_CustomString)), + 'integer', + serializers.serialize(object.integer, specifiedType: const FullType(WrappedEnum_Integer)), + ]; + + return result; + } @override - final Iterable types = const [EnumString]; + WrappedEnum deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = WrappedEnumBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'custom-string': + result.customString = serializers.deserialize(value, specifiedType: const FullType(WrappedEnum_CustomString))! + as WrappedEnum_CustomString; + break; + case 'integer': + result.integer = serializers.deserialize(value, specifiedType: const FullType(WrappedEnum_Integer))! + as WrappedEnum_Integer; + break; + } + } + + return result.build(); + } +} + +abstract mixin class $WrappedEnumInterfaceBuilder { + void replace($WrappedEnumInterface other); + void update(void Function($WrappedEnumInterfaceBuilder) updates); + WrappedEnum_CustomString? get customString; + set customString(WrappedEnum_CustomString? customString); + + WrappedEnum_Integer? get integer; + set integer(WrappedEnum_Integer? integer); +} + +class _$WrappedEnum extends WrappedEnum { @override - final String wireName = 'EnumString'; + final WrappedEnum_CustomString customString; + @override + final WrappedEnum_Integer integer; + + factory _$WrappedEnum([void Function(WrappedEnumBuilder)? updates]) => + (WrappedEnumBuilder()..update(updates))._build(); + + _$WrappedEnum._({required this.customString, required this.integer}) : super._() { + BuiltValueNullFieldError.checkNotNull(customString, r'WrappedEnum', 'customString'); + BuiltValueNullFieldError.checkNotNull(integer, r'WrappedEnum', 'integer'); + } + + @override + WrappedEnum rebuild(void Function(WrappedEnumBuilder) updates) => (toBuilder()..update(updates)).build(); @override - Object serialize(Serializers serializers, EnumString object, {FullType specifiedType = FullType.unspecified}) => - _toWire[object.name] ?? object.name; + WrappedEnumBuilder toBuilder() => WrappedEnumBuilder()..replace(this); @override - EnumString deserialize(Serializers serializers, Object serialized, {FullType specifiedType = FullType.unspecified}) => - EnumString.valueOf(_fromWire[serialized] ?? (serialized is String ? serialized : '')); + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is WrappedEnum && customString == other.customString && integer == other.integer; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, customString.hashCode); + _$hash = $jc(_$hash, integer.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'WrappedEnum') + ..add('customString', customString) + ..add('integer', integer)) + .toString(); + } +} + +class WrappedEnumBuilder implements Builder, $WrappedEnumInterfaceBuilder { + _$WrappedEnum? _$v; + + WrappedEnum_CustomString? _customString; + WrappedEnum_CustomString? get customString => _$this._customString; + set customString(covariant WrappedEnum_CustomString? customString) => _$this._customString = customString; + + WrappedEnum_Integer? _integer; + WrappedEnum_Integer? get integer => _$this._integer; + set integer(covariant WrappedEnum_Integer? integer) => _$this._integer = integer; + + WrappedEnumBuilder(); + + WrappedEnumBuilder get _$this { + final $v = _$v; + if ($v != null) { + _customString = $v.customString; + _integer = $v.integer; + _$v = null; + } + return this; + } + + @override + void replace(covariant WrappedEnum other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$WrappedEnum; + } + + @override + void update(void Function(WrappedEnumBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + WrappedEnum build() => _build(); + + _$WrappedEnum _build() { + final _$result = _$v ?? + _$WrappedEnum._( + customString: BuiltValueNullFieldError.checkNotNull(customString, r'WrappedEnum', 'customString'), + integer: BuiltValueNullFieldError.checkNotNull(integer, r'WrappedEnum', 'integer')); + replace(_$result); + return _$result; + } } // ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/dynamite/dynamite_end_to_end_test/lib/enum.openapi.json b/packages/dynamite/dynamite_end_to_end_test/lib/enum.openapi.json index 2aa02fe96d2..d8868174a79 100644 --- a/packages/dynamite/dynamite_end_to_end_test/lib/enum.openapi.json +++ b/packages/dynamite/dynamite_end_to_end_test/lib/enum.openapi.json @@ -10,8 +10,50 @@ "type": "string", "enum": [ "test", - "default" + "default", + "$dollar$" ] + }, + "enum-int": { + "type": "integer", + "enum": [ + 0, + 1, + 2 + ] + }, + "enum-dynamic": { + "type": "object", + "enum": [ + 0, + "string", + false + ] + }, + "wrapped-enum": { + "description": "Due to limitations in built_value we can not call the class String. See https://github.com/google/built_value.dart/issues/1292.", + "type": "object", + "required": [ + "custom-string", + "integer" + ], + "properties": { + "custom-string": { + "type": "string", + "enum": [ + "test", + "default" + ] + }, + "integer": { + "type": "integer", + "enum": [ + 0, + 1, + 2 + ] + } + } } } }, diff --git a/packages/dynamite/dynamite_end_to_end_test/lib/parameters.openapi.dart b/packages/dynamite/dynamite_end_to_end_test/lib/parameters.openapi.dart index 727606e4bf9..d9acc031958 100644 --- a/packages/dynamite/dynamite_end_to_end_test/lib/parameters.openapi.dart +++ b/packages/dynamite/dynamite_end_to_end_test/lib/parameters.openapi.dart @@ -486,7 +486,46 @@ class GetEnumPattern extends EnumClass { static GetEnumPattern valueOf(String name) => _$valueOfGetEnumPattern(name); - static Serializer get serializer => _$getEnumPatternSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$GetEnumPatternSerializer(); +} + +class _$GetEnumPatternSerializer implements PrimitiveSerializer { + const _$GetEnumPatternSerializer(); + + static const Map _toWire = { + GetEnumPattern.a: 'a', + GetEnumPattern.$0: '0', + }; + + static const Map _fromWire = { + 'a': GetEnumPattern.a, + '0': GetEnumPattern.$0, + }; + + @override + Iterable get types => const [GetEnumPattern]; + + @override + String get wireName => 'GetEnumPattern'; + + @override + Object serialize( + Serializers serializers, + GetEnumPattern object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + GetEnumPattern deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } class GetHeadersEnumPattern extends EnumClass { @@ -501,7 +540,46 @@ class GetHeadersEnumPattern extends EnumClass { static GetHeadersEnumPattern valueOf(String name) => _$valueOfGetHeadersEnumPattern(name); - static Serializer get serializer => _$getHeadersEnumPatternSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$GetHeadersEnumPatternSerializer(); +} + +class _$GetHeadersEnumPatternSerializer implements PrimitiveSerializer { + const _$GetHeadersEnumPatternSerializer(); + + static const Map _toWire = { + GetHeadersEnumPattern.a: 'a', + GetHeadersEnumPattern.$0: '0', + }; + + static const Map _fromWire = { + 'a': GetHeadersEnumPattern.a, + '0': GetHeadersEnumPattern.$0, + }; + + @override + Iterable get types => const [GetHeadersEnumPattern]; + + @override + String get wireName => 'GetHeadersEnumPattern'; + + @override + Object serialize( + Serializers serializers, + GetHeadersEnumPattern object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + GetHeadersEnumPattern deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } typedef GetOneOf = ({bool? $bool, String? string}); diff --git a/packages/dynamite/dynamite_end_to_end_test/lib/parameters.openapi.g.dart b/packages/dynamite/dynamite_end_to_end_test/lib/parameters.openapi.g.dart index bbcc63ceaa0..ccd309aa599 100644 --- a/packages/dynamite/dynamite_end_to_end_test/lib/parameters.openapi.g.dart +++ b/packages/dynamite/dynamite_end_to_end_test/lib/parameters.openapi.g.dart @@ -45,54 +45,4 @@ final BuiltSet _$getHeadersEnumPatternValues = _$getHeadersEnumPattern$0, ]); -Serializer _$getEnumPatternSerializer = _$GetEnumPatternSerializer(); -Serializer _$getHeadersEnumPatternSerializer = _$GetHeadersEnumPatternSerializer(); - -class _$GetEnumPatternSerializer implements PrimitiveSerializer { - static const Map _toWire = { - '\$0': '0', - }; - static const Map _fromWire = { - '0': '\$0', - }; - - @override - final Iterable types = const [GetEnumPattern]; - @override - final String wireName = 'GetEnumPattern'; - - @override - Object serialize(Serializers serializers, GetEnumPattern object, {FullType specifiedType = FullType.unspecified}) => - _toWire[object.name] ?? object.name; - - @override - GetEnumPattern deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - GetEnumPattern.valueOf(_fromWire[serialized] ?? (serialized is String ? serialized : '')); -} - -class _$GetHeadersEnumPatternSerializer implements PrimitiveSerializer { - static const Map _toWire = { - '\$0': '0', - }; - static const Map _fromWire = { - '0': '\$0', - }; - - @override - final Iterable types = const [GetHeadersEnumPattern]; - @override - final String wireName = 'GetHeadersEnumPattern'; - - @override - Object serialize(Serializers serializers, GetHeadersEnumPattern object, - {FullType specifiedType = FullType.unspecified}) => - _toWire[object.name] ?? object.name; - - @override - GetHeadersEnumPattern deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - GetHeadersEnumPattern.valueOf(_fromWire[serialized] ?? (serialized is String ? serialized : '')); -} - // ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/dynamite/dynamite_end_to_end_test/test/enum_test.dart b/packages/dynamite/dynamite_end_to_end_test/test/enum_test.dart index d985b693f49..35dd4baf7af 100644 --- a/packages/dynamite/dynamite_end_to_end_test/test/enum_test.dart +++ b/packages/dynamite/dynamite_end_to_end_test/test/enum_test.dart @@ -3,23 +3,114 @@ import 'package:dynamite_end_to_end_test/enum.openapi.dart'; import 'package:test/test.dart'; void main() { - final serializers = (Serializers().toBuilder()..add(EnumString.serializer)).build(); - group('String', () { test('serialize', () { - final serialized = serializers.serialize( - EnumString.$default, - specifiedType: const FullType(EnumString), - ); - expect(serialized, 'default'); + const results = { + EnumString.test: 'test', + EnumString.$default: 'default', + EnumString.dollar: r'$dollar$', + }; + + for (final result in results.entries) { + final serialized = serializers.serialize( + result.key, + specifiedType: const FullType(EnumString), + ); + + expect(serialized, result.value); + + final deserialized = serializers.deserialize( + result.value, + specifiedType: const FullType(EnumString), + ); + expect(deserialized, result.key); + } + }); + + test('value', () { + expect(EnumString.test.value, 'test'); + expect(EnumString.$default.value, 'default'); + expect(EnumString.dollar.value, r'$dollar$'); }); + }); - test('deserialize', () { - final deserialized = serializers.deserialize( - 'default', - specifiedType: const FullType(EnumString), + group('int', () { + test('serialize', () { + const results = { + EnumInt.$0: 0, + EnumInt.$1: 1, + EnumInt.$2: 2, + }; + + for (final result in results.entries) { + final serialized = serializers.serialize( + result.key, + specifiedType: const FullType(EnumInt), + ); + + expect(serialized, result.value); + + final deserialized = serializers.deserialize( + result.value, + specifiedType: const FullType(EnumInt), + ); + expect(deserialized, result.key); + } + }); + + test('value', () { + expect(EnumInt.$0.value, 0); + expect(EnumInt.$1.value, 1); + expect(EnumInt.$2.value, 2); + }); + }); + + group('dynamic', () { + test('serialize', () { + const results = { + EnumDynamic.$0: 0, + EnumDynamic.string: 'string', + EnumDynamic.$false: false, + }; + + for (final result in results.entries) { + final serialized = serializers.serialize( + result.key, + specifiedType: const FullType(EnumDynamic), + ); + + expect(serialized, equals(result.value)); + + final deserialized = serializers.deserialize( + result.value, + specifiedType: const FullType(EnumDynamic), + ); + expect(deserialized, equals(result.key)); + } + }); + + test('value', () { + expect(EnumDynamic.$0.value, 0); + expect(EnumDynamic.string.value, 'string'); + expect(EnumDynamic.$false.value, false); + }); + }); + + group('wrapped', () { + test('serialize', () { + final object = WrappedEnum( + (b) => b + ..customString = WrappedEnum_CustomString.$default + ..integer = WrappedEnum_Integer.$2, ); - expect(deserialized, EnumString.$default); + + const json = { + 'custom-string': 'default', + 'integer': 2, + }; + + expect(object.toJson(), equals(json)); + expect(WrappedEnum.fromJson(json), equals(object)); }); }); } diff --git a/packages/dynamite/dynamite_end_to_end_test/test/parameters_test.dart b/packages/dynamite/dynamite_end_to_end_test/test/parameters_test.dart index 6673e306ae2..587862a4e76 100644 --- a/packages/dynamite/dynamite_end_to_end_test/test/parameters_test.dart +++ b/packages/dynamite/dynamite_end_to_end_test/test/parameters_test.dart @@ -271,4 +271,11 @@ void main() { ); }); }); + + group('PatternCheck', () { + test('enum', () async { + expect(() => client.$get(enumPattern: GetEnumPattern.$0), throwsA(isA())); + expect(() => client.getHeaders(enumPattern: GetHeadersEnumPattern.$0), throwsA(isA())); + }); + }); } diff --git a/packages/nextcloud/lib/src/api/files_external.openapi.dart b/packages/nextcloud/lib/src/api/files_external.openapi.dart index 7a679702cb8..ec87dc3417c 100644 --- a/packages/nextcloud/lib/src/api/files_external.openapi.dart +++ b/packages/nextcloud/lib/src/api/files_external.openapi.dart @@ -163,7 +163,44 @@ class Mount_Type extends EnumClass { static Mount_Type valueOf(String name) => _$valueOfMount_Type(name); - static Serializer get serializer => _$mountTypeSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$Mount_TypeSerializer(); +} + +class _$Mount_TypeSerializer implements PrimitiveSerializer { + const _$Mount_TypeSerializer(); + + static const Map _toWire = { + Mount_Type.dir: 'dir', + }; + + static const Map _fromWire = { + 'dir': Mount_Type.dir, + }; + + @override + Iterable get types => const [Mount_Type]; + + @override + String get wireName => 'Mount_Type'; + + @override + Object serialize( + Serializers serializers, + Mount_Type object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + Mount_Type deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } class Mount_Scope extends EnumClass { @@ -179,7 +216,46 @@ class Mount_Scope extends EnumClass { static Mount_Scope valueOf(String name) => _$valueOfMount_Scope(name); - static Serializer get serializer => _$mountScopeSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$Mount_ScopeSerializer(); +} + +class _$Mount_ScopeSerializer implements PrimitiveSerializer { + const _$Mount_ScopeSerializer(); + + static const Map _toWire = { + Mount_Scope.system: 'system', + Mount_Scope.personal: 'personal', + }; + + static const Map _fromWire = { + 'system': Mount_Scope.system, + 'personal': Mount_Scope.personal, + }; + + @override + Iterable get types => const [Mount_Scope]; + + @override + String get wireName => 'Mount_Scope'; + + @override + Object serialize( + Serializers serializers, + Mount_Scope object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + Mount_Scope deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } class StorageConfig_Type extends EnumClass { @@ -195,7 +271,46 @@ class StorageConfig_Type extends EnumClass { static StorageConfig_Type valueOf(String name) => _$valueOfStorageConfig_Type(name); - static Serializer get serializer => _$storageConfigTypeSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$StorageConfig_TypeSerializer(); +} + +class _$StorageConfig_TypeSerializer implements PrimitiveSerializer { + const _$StorageConfig_TypeSerializer(); + + static const Map _toWire = { + StorageConfig_Type.personal: 'personal', + StorageConfig_Type.system: 'system', + }; + + static const Map _fromWire = { + 'personal': StorageConfig_Type.personal, + 'system': StorageConfig_Type.system, + }; + + @override + Iterable get types => const [StorageConfig_Type]; + + @override + String get wireName => 'StorageConfig_Type'; + + @override + Object serialize( + Serializers serializers, + StorageConfig_Type object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + StorageConfig_Type deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) diff --git a/packages/nextcloud/lib/src/api/files_external.openapi.g.dart b/packages/nextcloud/lib/src/api/files_external.openapi.g.dart index c7a045bae7d..e589ef34ad3 100644 --- a/packages/nextcloud/lib/src/api/files_external.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/files_external.openapi.g.dart @@ -60,9 +60,6 @@ final BuiltSet _$storageConfigTypeValues = BuiltSet _$oCSMetaSerializer = _$OCSMetaSerializer(); -Serializer _$mountTypeSerializer = _$Mount_TypeSerializer(); -Serializer _$mountScopeSerializer = _$Mount_ScopeSerializer(); -Serializer _$storageConfigTypeSerializer = _$StorageConfig_TypeSerializer(); Serializer _$storageConfigSerializer = _$StorageConfigSerializer(); Serializer _$mountSerializer = _$MountSerializer(); Serializer _$apiGetUserMountsResponseApplicationJsonOcsSerializer = @@ -140,54 +137,6 @@ class _$OCSMetaSerializer implements StructuredSerializer { } } -class _$Mount_TypeSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [Mount_Type]; - @override - final String wireName = 'Mount_Type'; - - @override - Object serialize(Serializers serializers, Mount_Type object, {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - Mount_Type deserialize(Serializers serializers, Object serialized, {FullType specifiedType = FullType.unspecified}) => - Mount_Type.valueOf(serialized as String); -} - -class _$Mount_ScopeSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [Mount_Scope]; - @override - final String wireName = 'Mount_Scope'; - - @override - Object serialize(Serializers serializers, Mount_Scope object, {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - Mount_Scope deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - Mount_Scope.valueOf(serialized as String); -} - -class _$StorageConfig_TypeSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [StorageConfig_Type]; - @override - final String wireName = 'StorageConfig_Type'; - - @override - Object serialize(Serializers serializers, StorageConfig_Type object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - StorageConfig_Type deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - StorageConfig_Type.valueOf(serialized as String); -} - class _$StorageConfigSerializer implements StructuredSerializer { @override final Iterable types = const [StorageConfig, _$StorageConfig]; diff --git a/packages/nextcloud/lib/src/api/files_sharing.openapi.dart b/packages/nextcloud/lib/src/api/files_sharing.openapi.dart index 1009a33bba1..dcc4864734b 100644 --- a/packages/nextcloud/lib/src/api/files_sharing.openapi.dart +++ b/packages/nextcloud/lib/src/api/files_sharing.openapi.dart @@ -2984,7 +2984,46 @@ class Share_ItemType extends EnumClass { static Share_ItemType valueOf(String name) => _$valueOfShare_ItemType(name); - static Serializer get serializer => _$shareItemTypeSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$Share_ItemTypeSerializer(); +} + +class _$Share_ItemTypeSerializer implements PrimitiveSerializer { + const _$Share_ItemTypeSerializer(); + + static const Map _toWire = { + Share_ItemType.file: 'file', + Share_ItemType.folder: 'folder', + }; + + static const Map _fromWire = { + 'file': Share_ItemType.file, + 'folder': Share_ItemType.folder, + }; + + @override + Iterable get types => const [Share_ItemType]; + + @override + String get wireName => 'Share_ItemType'; + + @override + Object serialize( + Serializers serializers, + Share_ItemType object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + Share_ItemType deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) diff --git a/packages/nextcloud/lib/src/api/files_sharing.openapi.g.dart b/packages/nextcloud/lib/src/api/files_sharing.openapi.g.dart index 00ab82965e7..436468fe286 100644 --- a/packages/nextcloud/lib/src/api/files_sharing.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/files_sharing.openapi.g.dart @@ -62,7 +62,6 @@ Serializer _$remoteUnshareResponseAppl Serializer _$remoteUnshareResponseApplicationJsonSerializer = _$RemoteUnshareResponseApplicationJsonSerializer(); Serializer _$shareInfoSerializer = _$ShareInfoSerializer(); -Serializer _$shareItemTypeSerializer = _$Share_ItemTypeSerializer(); Serializer _$shareStatusSerializer = _$Share_StatusSerializer(); Serializer _$shareSerializer = _$ShareSerializer(); Serializer _$shareapiGetSharesResponseApplicationJsonOcsSerializer = @@ -1339,22 +1338,6 @@ class _$ShareInfoSerializer implements StructuredSerializer { } } -class _$Share_ItemTypeSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [Share_ItemType]; - @override - final String wireName = 'Share_ItemType'; - - @override - Object serialize(Serializers serializers, Share_ItemType object, {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - Share_ItemType deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - Share_ItemType.valueOf(serialized as String); -} - class _$Share_StatusSerializer implements StructuredSerializer { @override final Iterable types = const [Share_Status, _$Share_Status]; diff --git a/packages/nextcloud/lib/src/api/notes.openapi.dart b/packages/nextcloud/lib/src/api/notes.openapi.dart index ff764380567..982a37a15f7 100644 --- a/packages/nextcloud/lib/src/api/notes.openapi.dart +++ b/packages/nextcloud/lib/src/api/notes.openapi.dart @@ -749,7 +749,48 @@ class Settings_NoteMode extends EnumClass { static Settings_NoteMode valueOf(String name) => _$valueOfSettings_NoteMode(name); - static Serializer get serializer => _$settingsNoteModeSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$Settings_NoteModeSerializer(); +} + +class _$Settings_NoteModeSerializer implements PrimitiveSerializer { + const _$Settings_NoteModeSerializer(); + + static const Map _toWire = { + Settings_NoteMode.edit: 'edit', + Settings_NoteMode.preview: 'preview', + Settings_NoteMode.rich: 'rich', + }; + + static const Map _fromWire = { + 'edit': Settings_NoteMode.edit, + 'preview': Settings_NoteMode.preview, + 'rich': Settings_NoteMode.rich, + }; + + @override + Iterable get types => const [Settings_NoteMode]; + + @override + String get wireName => 'Settings_NoteMode'; + + @override + Object serialize( + Serializers serializers, + Settings_NoteMode object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + Settings_NoteMode deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) diff --git a/packages/nextcloud/lib/src/api/notes.openapi.g.dart b/packages/nextcloud/lib/src/api/notes.openapi.g.dart index 824f67ed5e0..206b340b920 100644 --- a/packages/nextcloud/lib/src/api/notes.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/notes.openapi.g.dart @@ -30,7 +30,6 @@ final BuiltSet _$settingsNoteModeValues = BuiltSet _$noteSerializer = _$NoteSerializer(); -Serializer _$settingsNoteModeSerializer = _$Settings_NoteModeSerializer(); Serializer _$settingsSerializer = _$SettingsSerializer(); Serializer _$capabilitiesNotesSerializer = _$Capabilities_NotesSerializer(); Serializer _$capabilitiesSerializer = _$CapabilitiesSerializer(); @@ -120,23 +119,6 @@ class _$NoteSerializer implements StructuredSerializer { } } -class _$Settings_NoteModeSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [Settings_NoteMode]; - @override - final String wireName = 'Settings_NoteMode'; - - @override - Object serialize(Serializers serializers, Settings_NoteMode object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - Settings_NoteMode deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - Settings_NoteMode.valueOf(serialized as String); -} - class _$SettingsSerializer implements StructuredSerializer { @override final Iterable types = const [Settings, _$Settings]; diff --git a/packages/nextcloud/lib/src/api/notifications.openapi.dart b/packages/nextcloud/lib/src/api/notifications.openapi.dart index ec8e937cca7..2cd491a3c57 100644 --- a/packages/nextcloud/lib/src/api/notifications.openapi.dart +++ b/packages/nextcloud/lib/src/api/notifications.openapi.dart @@ -1183,7 +1183,47 @@ class ApiGenerateNotificationApiVersion extends EnumClass { static ApiGenerateNotificationApiVersion valueOf(String name) => _$valueOfApiGenerateNotificationApiVersion(name); - static Serializer get serializer => _$apiGenerateNotificationApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$ApiGenerateNotificationApiVersionSerializer(); +} + +class _$ApiGenerateNotificationApiVersionSerializer implements PrimitiveSerializer { + const _$ApiGenerateNotificationApiVersionSerializer(); + + static const Map _toWire = { + ApiGenerateNotificationApiVersion.v1: 'v1', + ApiGenerateNotificationApiVersion.v2: 'v2', + }; + + static const Map _fromWire = { + 'v1': ApiGenerateNotificationApiVersion.v1, + 'v2': ApiGenerateNotificationApiVersion.v2, + }; + + @override + Iterable get types => const [ApiGenerateNotificationApiVersion]; + + @override + String get wireName => 'ApiGenerateNotificationApiVersion'; + + @override + Object serialize( + Serializers serializers, + ApiGenerateNotificationApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + ApiGenerateNotificationApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -1288,8 +1328,49 @@ class EndpointListNotificationsApiVersion extends EnumClass { static EndpointListNotificationsApiVersion valueOf(String name) => _$valueOfEndpointListNotificationsApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$endpointListNotificationsApiVersionSerializer; + const _$EndpointListNotificationsApiVersionSerializer(); +} + +class _$EndpointListNotificationsApiVersionSerializer + implements PrimitiveSerializer { + const _$EndpointListNotificationsApiVersionSerializer(); + + static const Map _toWire = { + EndpointListNotificationsApiVersion.v1: 'v1', + EndpointListNotificationsApiVersion.v2: 'v2', + }; + + static const Map _fromWire = + { + 'v1': EndpointListNotificationsApiVersion.v1, + 'v2': EndpointListNotificationsApiVersion.v2, + }; + + @override + Iterable get types => const [EndpointListNotificationsApiVersion]; + + @override + String get wireName => 'EndpointListNotificationsApiVersion'; + + @override + Object serialize( + Serializers serializers, + EndpointListNotificationsApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + EndpointListNotificationsApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -1469,8 +1550,50 @@ class EndpointDeleteAllNotificationsApiVersion extends EnumClass { static EndpointDeleteAllNotificationsApiVersion valueOf(String name) => _$valueOfEndpointDeleteAllNotificationsApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$endpointDeleteAllNotificationsApiVersionSerializer; + const _$EndpointDeleteAllNotificationsApiVersionSerializer(); +} + +class _$EndpointDeleteAllNotificationsApiVersionSerializer + implements PrimitiveSerializer { + const _$EndpointDeleteAllNotificationsApiVersionSerializer(); + + static const Map _toWire = + { + EndpointDeleteAllNotificationsApiVersion.v1: 'v1', + EndpointDeleteAllNotificationsApiVersion.v2: 'v2', + }; + + static const Map _fromWire = + { + 'v1': EndpointDeleteAllNotificationsApiVersion.v1, + 'v2': EndpointDeleteAllNotificationsApiVersion.v2, + }; + + @override + Iterable get types => const [EndpointDeleteAllNotificationsApiVersion]; + + @override + String get wireName => 'EndpointDeleteAllNotificationsApiVersion'; + + @override + Object serialize( + Serializers serializers, + EndpointDeleteAllNotificationsApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + EndpointDeleteAllNotificationsApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -1549,7 +1672,47 @@ class EndpointGetNotificationApiVersion extends EnumClass { static EndpointGetNotificationApiVersion valueOf(String name) => _$valueOfEndpointGetNotificationApiVersion(name); - static Serializer get serializer => _$endpointGetNotificationApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$EndpointGetNotificationApiVersionSerializer(); +} + +class _$EndpointGetNotificationApiVersionSerializer implements PrimitiveSerializer { + const _$EndpointGetNotificationApiVersionSerializer(); + + static const Map _toWire = { + EndpointGetNotificationApiVersion.v1: 'v1', + EndpointGetNotificationApiVersion.v2: 'v2', + }; + + static const Map _fromWire = { + 'v1': EndpointGetNotificationApiVersion.v1, + 'v2': EndpointGetNotificationApiVersion.v2, + }; + + @override + Iterable get types => const [EndpointGetNotificationApiVersion]; + + @override + String get wireName => 'EndpointGetNotificationApiVersion'; + + @override + Object serialize( + Serializers serializers, + EndpointGetNotificationApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + EndpointGetNotificationApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -1628,8 +1791,50 @@ class EndpointDeleteNotificationApiVersion extends EnumClass { static EndpointDeleteNotificationApiVersion valueOf(String name) => _$valueOfEndpointDeleteNotificationApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$endpointDeleteNotificationApiVersionSerializer; + const _$EndpointDeleteNotificationApiVersionSerializer(); +} + +class _$EndpointDeleteNotificationApiVersionSerializer + implements PrimitiveSerializer { + const _$EndpointDeleteNotificationApiVersionSerializer(); + + static const Map _toWire = + { + EndpointDeleteNotificationApiVersion.v1: 'v1', + EndpointDeleteNotificationApiVersion.v2: 'v2', + }; + + static const Map _fromWire = + { + 'v1': EndpointDeleteNotificationApiVersion.v1, + 'v2': EndpointDeleteNotificationApiVersion.v2, + }; + + @override + Iterable get types => const [EndpointDeleteNotificationApiVersion]; + + @override + String get wireName => 'EndpointDeleteNotificationApiVersion'; + + @override + Object serialize( + Serializers serializers, + EndpointDeleteNotificationApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + EndpointDeleteNotificationApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -1708,8 +1913,49 @@ class EndpointConfirmIdsForUserApiVersion extends EnumClass { static EndpointConfirmIdsForUserApiVersion valueOf(String name) => _$valueOfEndpointConfirmIdsForUserApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$endpointConfirmIdsForUserApiVersionSerializer; + const _$EndpointConfirmIdsForUserApiVersionSerializer(); +} + +class _$EndpointConfirmIdsForUserApiVersionSerializer + implements PrimitiveSerializer { + const _$EndpointConfirmIdsForUserApiVersionSerializer(); + + static const Map _toWire = { + EndpointConfirmIdsForUserApiVersion.v1: 'v1', + EndpointConfirmIdsForUserApiVersion.v2: 'v2', + }; + + static const Map _fromWire = + { + 'v1': EndpointConfirmIdsForUserApiVersion.v1, + 'v2': EndpointConfirmIdsForUserApiVersion.v2, + }; + + @override + Iterable get types => const [EndpointConfirmIdsForUserApiVersion]; + + @override + String get wireName => 'EndpointConfirmIdsForUserApiVersion'; + + @override + Object serialize( + Serializers serializers, + EndpointConfirmIdsForUserApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + EndpointConfirmIdsForUserApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -1786,7 +2032,44 @@ class PushRegisterDeviceApiVersion extends EnumClass { static PushRegisterDeviceApiVersion valueOf(String name) => _$valueOfPushRegisterDeviceApiVersion(name); - static Serializer get serializer => _$pushRegisterDeviceApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$PushRegisterDeviceApiVersionSerializer(); +} + +class _$PushRegisterDeviceApiVersionSerializer implements PrimitiveSerializer { + const _$PushRegisterDeviceApiVersionSerializer(); + + static const Map _toWire = { + PushRegisterDeviceApiVersion.v2: 'v2', + }; + + static const Map _fromWire = { + 'v2': PushRegisterDeviceApiVersion.v2, + }; + + @override + Iterable get types => const [PushRegisterDeviceApiVersion]; + + @override + String get wireName => 'PushRegisterDeviceApiVersion'; + + @override + Object serialize( + Serializers serializers, + PushRegisterDeviceApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + PushRegisterDeviceApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -1886,7 +2169,44 @@ class PushRemoveDeviceApiVersion extends EnumClass { static PushRemoveDeviceApiVersion valueOf(String name) => _$valueOfPushRemoveDeviceApiVersion(name); - static Serializer get serializer => _$pushRemoveDeviceApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$PushRemoveDeviceApiVersionSerializer(); +} + +class _$PushRemoveDeviceApiVersionSerializer implements PrimitiveSerializer { + const _$PushRemoveDeviceApiVersionSerializer(); + + static const Map _toWire = { + PushRemoveDeviceApiVersion.v2: 'v2', + }; + + static const Map _fromWire = { + 'v2': PushRemoveDeviceApiVersion.v2, + }; + + @override + Iterable get types => const [PushRemoveDeviceApiVersion]; + + @override + String get wireName => 'PushRemoveDeviceApiVersion'; + + @override + Object serialize( + Serializers serializers, + PushRemoveDeviceApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + PushRemoveDeviceApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -1960,7 +2280,44 @@ class SettingsPersonalApiVersion extends EnumClass { static SettingsPersonalApiVersion valueOf(String name) => _$valueOfSettingsPersonalApiVersion(name); - static Serializer get serializer => _$settingsPersonalApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$SettingsPersonalApiVersionSerializer(); +} + +class _$SettingsPersonalApiVersionSerializer implements PrimitiveSerializer { + const _$SettingsPersonalApiVersionSerializer(); + + static const Map _toWire = { + SettingsPersonalApiVersion.v2: 'v2', + }; + + static const Map _fromWire = { + 'v2': SettingsPersonalApiVersion.v2, + }; + + @override + Iterable get types => const [SettingsPersonalApiVersion]; + + @override + String get wireName => 'SettingsPersonalApiVersion'; + + @override + Object serialize( + Serializers serializers, + SettingsPersonalApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + SettingsPersonalApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -2034,7 +2391,44 @@ class SettingsAdminApiVersion extends EnumClass { static SettingsAdminApiVersion valueOf(String name) => _$valueOfSettingsAdminApiVersion(name); - static Serializer get serializer => _$settingsAdminApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$SettingsAdminApiVersionSerializer(); +} + +class _$SettingsAdminApiVersionSerializer implements PrimitiveSerializer { + const _$SettingsAdminApiVersionSerializer(); + + static const Map _toWire = { + SettingsAdminApiVersion.v2: 'v2', + }; + + static const Map _fromWire = { + 'v2': SettingsAdminApiVersion.v2, + }; + + @override + Iterable get types => const [SettingsAdminApiVersion]; + + @override + String get wireName => 'SettingsAdminApiVersion'; + + @override + Object serialize( + Serializers serializers, + SettingsAdminApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + SettingsAdminApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) diff --git a/packages/nextcloud/lib/src/api/notifications.openapi.g.dart b/packages/nextcloud/lib/src/api/notifications.openapi.g.dart index 222212af0fd..dd4d0b7bb02 100644 --- a/packages/nextcloud/lib/src/api/notifications.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/notifications.openapi.g.dart @@ -202,16 +202,12 @@ final BuiltSet _$settingsAdminApiVersionValues = _$settingsAdminApiVersionV2, ]); -Serializer _$apiGenerateNotificationApiVersionSerializer = - _$ApiGenerateNotificationApiVersionSerializer(); Serializer _$oCSMetaSerializer = _$OCSMetaSerializer(); Serializer _$apiGenerateNotificationResponseApplicationJsonOcsSerializer = _$ApiGenerateNotificationResponseApplicationJson_OcsSerializer(); Serializer _$apiGenerateNotificationResponseApplicationJsonSerializer = _$ApiGenerateNotificationResponseApplicationJsonSerializer(); -Serializer _$endpointListNotificationsApiVersionSerializer = - _$EndpointListNotificationsApiVersionSerializer(); Serializer _$endpointEndpointListNotificationsHeadersSerializer = _$EndpointEndpointListNotificationsHeadersSerializer(); Serializer _$notificationActionSerializer = _$NotificationActionSerializer(); @@ -222,57 +218,42 @@ Serializer Serializer _$endpointListNotificationsResponseApplicationJsonSerializer = _$EndpointListNotificationsResponseApplicationJsonSerializer(); -Serializer _$endpointDeleteAllNotificationsApiVersionSerializer = - _$EndpointDeleteAllNotificationsApiVersionSerializer(); Serializer _$endpointDeleteAllNotificationsResponseApplicationJsonOcsSerializer = _$EndpointDeleteAllNotificationsResponseApplicationJson_OcsSerializer(); Serializer _$endpointDeleteAllNotificationsResponseApplicationJsonSerializer = _$EndpointDeleteAllNotificationsResponseApplicationJsonSerializer(); -Serializer _$endpointGetNotificationApiVersionSerializer = - _$EndpointGetNotificationApiVersionSerializer(); Serializer _$endpointGetNotificationResponseApplicationJsonOcsSerializer = _$EndpointGetNotificationResponseApplicationJson_OcsSerializer(); Serializer _$endpointGetNotificationResponseApplicationJsonSerializer = _$EndpointGetNotificationResponseApplicationJsonSerializer(); -Serializer _$endpointDeleteNotificationApiVersionSerializer = - _$EndpointDeleteNotificationApiVersionSerializer(); Serializer _$endpointDeleteNotificationResponseApplicationJsonOcsSerializer = _$EndpointDeleteNotificationResponseApplicationJson_OcsSerializer(); Serializer _$endpointDeleteNotificationResponseApplicationJsonSerializer = _$EndpointDeleteNotificationResponseApplicationJsonSerializer(); -Serializer _$endpointConfirmIdsForUserApiVersionSerializer = - _$EndpointConfirmIdsForUserApiVersionSerializer(); Serializer _$endpointConfirmIdsForUserResponseApplicationJsonOcsSerializer = _$EndpointConfirmIdsForUserResponseApplicationJson_OcsSerializer(); Serializer _$endpointConfirmIdsForUserResponseApplicationJsonSerializer = _$EndpointConfirmIdsForUserResponseApplicationJsonSerializer(); -Serializer _$pushRegisterDeviceApiVersionSerializer = - _$PushRegisterDeviceApiVersionSerializer(); Serializer _$pushDeviceSerializer = _$PushDeviceSerializer(); Serializer _$pushRegisterDeviceResponseApplicationJsonOcsSerializer = _$PushRegisterDeviceResponseApplicationJson_OcsSerializer(); Serializer _$pushRegisterDeviceResponseApplicationJsonSerializer = _$PushRegisterDeviceResponseApplicationJsonSerializer(); -Serializer _$pushRemoveDeviceApiVersionSerializer = - _$PushRemoveDeviceApiVersionSerializer(); Serializer _$pushRemoveDeviceResponseApplicationJsonOcsSerializer = _$PushRemoveDeviceResponseApplicationJson_OcsSerializer(); Serializer _$pushRemoveDeviceResponseApplicationJsonSerializer = _$PushRemoveDeviceResponseApplicationJsonSerializer(); -Serializer _$settingsPersonalApiVersionSerializer = - _$SettingsPersonalApiVersionSerializer(); Serializer _$settingsPersonalResponseApplicationJsonOcsSerializer = _$SettingsPersonalResponseApplicationJson_OcsSerializer(); Serializer _$settingsPersonalResponseApplicationJsonSerializer = _$SettingsPersonalResponseApplicationJsonSerializer(); -Serializer _$settingsAdminApiVersionSerializer = _$SettingsAdminApiVersionSerializer(); Serializer _$settingsAdminResponseApplicationJsonOcsSerializer = _$SettingsAdminResponseApplicationJson_OcsSerializer(); Serializer _$settingsAdminResponseApplicationJsonSerializer = @@ -280,23 +261,6 @@ Serializer _$settingsAdminResponseApplicat Serializer _$capabilitiesNotificationsSerializer = _$Capabilities_NotificationsSerializer(); Serializer _$capabilitiesSerializer = _$CapabilitiesSerializer(); -class _$ApiGenerateNotificationApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ApiGenerateNotificationApiVersion]; - @override - final String wireName = 'ApiGenerateNotificationApiVersion'; - - @override - Object serialize(Serializers serializers, ApiGenerateNotificationApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - ApiGenerateNotificationApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - ApiGenerateNotificationApiVersion.valueOf(serialized as String); -} - class _$OCSMetaSerializer implements StructuredSerializer { @override final Iterable types = const [OCSMeta, _$OCSMeta]; @@ -459,24 +423,6 @@ class _$ApiGenerateNotificationResponseApplicationJsonSerializer } } -class _$EndpointListNotificationsApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [EndpointListNotificationsApiVersion]; - @override - final String wireName = 'EndpointListNotificationsApiVersion'; - - @override - Object serialize(Serializers serializers, EndpointListNotificationsApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - EndpointListNotificationsApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - EndpointListNotificationsApiVersion.valueOf(serialized as String); -} - class _$EndpointEndpointListNotificationsHeadersSerializer implements StructuredSerializer { @override @@ -812,24 +758,6 @@ class _$EndpointListNotificationsResponseApplicationJsonSerializer } } -class _$EndpointDeleteAllNotificationsApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [EndpointDeleteAllNotificationsApiVersion]; - @override - final String wireName = 'EndpointDeleteAllNotificationsApiVersion'; - - @override - Object serialize(Serializers serializers, EndpointDeleteAllNotificationsApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - EndpointDeleteAllNotificationsApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - EndpointDeleteAllNotificationsApiVersion.valueOf(serialized as String); -} - class _$EndpointDeleteAllNotificationsResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -924,23 +852,6 @@ class _$EndpointDeleteAllNotificationsResponseApplicationJsonSerializer } } -class _$EndpointGetNotificationApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [EndpointGetNotificationApiVersion]; - @override - final String wireName = 'EndpointGetNotificationApiVersion'; - - @override - Object serialize(Serializers serializers, EndpointGetNotificationApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - EndpointGetNotificationApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - EndpointGetNotificationApiVersion.valueOf(serialized as String); -} - class _$EndpointGetNotificationResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -1034,24 +945,6 @@ class _$EndpointGetNotificationResponseApplicationJsonSerializer } } -class _$EndpointDeleteNotificationApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [EndpointDeleteNotificationApiVersion]; - @override - final String wireName = 'EndpointDeleteNotificationApiVersion'; - - @override - Object serialize(Serializers serializers, EndpointDeleteNotificationApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - EndpointDeleteNotificationApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - EndpointDeleteNotificationApiVersion.valueOf(serialized as String); -} - class _$EndpointDeleteNotificationResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -1145,24 +1038,6 @@ class _$EndpointDeleteNotificationResponseApplicationJsonSerializer } } -class _$EndpointConfirmIdsForUserApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [EndpointConfirmIdsForUserApiVersion]; - @override - final String wireName = 'EndpointConfirmIdsForUserApiVersion'; - - @override - Object serialize(Serializers serializers, EndpointConfirmIdsForUserApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - EndpointConfirmIdsForUserApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - EndpointConfirmIdsForUserApiVersion.valueOf(serialized as String); -} - class _$EndpointConfirmIdsForUserResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -1257,23 +1132,6 @@ class _$EndpointConfirmIdsForUserResponseApplicationJsonSerializer } } -class _$PushRegisterDeviceApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [PushRegisterDeviceApiVersion]; - @override - final String wireName = 'PushRegisterDeviceApiVersion'; - - @override - Object serialize(Serializers serializers, PushRegisterDeviceApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - PushRegisterDeviceApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - PushRegisterDeviceApiVersion.valueOf(serialized as String); -} - class _$PushDeviceSerializer implements StructuredSerializer { @override final Iterable types = const [PushDevice, _$PushDevice]; @@ -1413,23 +1271,6 @@ class _$PushRegisterDeviceResponseApplicationJsonSerializer } } -class _$PushRemoveDeviceApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [PushRemoveDeviceApiVersion]; - @override - final String wireName = 'PushRemoveDeviceApiVersion'; - - @override - Object serialize(Serializers serializers, PushRemoveDeviceApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - PushRemoveDeviceApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - PushRemoveDeviceApiVersion.valueOf(serialized as String); -} - class _$PushRemoveDeviceResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -1521,23 +1362,6 @@ class _$PushRemoveDeviceResponseApplicationJsonSerializer } } -class _$SettingsPersonalApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [SettingsPersonalApiVersion]; - @override - final String wireName = 'SettingsPersonalApiVersion'; - - @override - Object serialize(Serializers serializers, SettingsPersonalApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - SettingsPersonalApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - SettingsPersonalApiVersion.valueOf(serialized as String); -} - class _$SettingsPersonalResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -1629,23 +1453,6 @@ class _$SettingsPersonalResponseApplicationJsonSerializer } } -class _$SettingsAdminApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [SettingsAdminApiVersion]; - @override - final String wireName = 'SettingsAdminApiVersion'; - - @override - Object serialize(Serializers serializers, SettingsAdminApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - SettingsAdminApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - SettingsAdminApiVersion.valueOf(serialized as String); -} - class _$SettingsAdminResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override diff --git a/packages/nextcloud/lib/src/api/spreed.openapi.dart b/packages/nextcloud/lib/src/api/spreed.openapi.dart index 2ec07425565..51e0e2d2cb3 100644 --- a/packages/nextcloud/lib/src/api/spreed.openapi.dart +++ b/packages/nextcloud/lib/src/api/spreed.openapi.dart @@ -13201,7 +13201,44 @@ class AvatarGetAvatarApiVersion extends EnumClass { static AvatarGetAvatarApiVersion valueOf(String name) => _$valueOfAvatarGetAvatarApiVersion(name); - static Serializer get serializer => _$avatarGetAvatarApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$AvatarGetAvatarApiVersionSerializer(); +} + +class _$AvatarGetAvatarApiVersionSerializer implements PrimitiveSerializer { + const _$AvatarGetAvatarApiVersionSerializer(); + + static const Map _toWire = { + AvatarGetAvatarApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': AvatarGetAvatarApiVersion.v1, + }; + + @override + Iterable get types => const [AvatarGetAvatarApiVersion]; + + @override + String get wireName => 'AvatarGetAvatarApiVersion'; + + @override + Object serialize( + Serializers serializers, + AvatarGetAvatarApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + AvatarGetAvatarApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } class AvatarUploadAvatarApiVersion extends EnumClass { @@ -13215,7 +13252,44 @@ class AvatarUploadAvatarApiVersion extends EnumClass { static AvatarUploadAvatarApiVersion valueOf(String name) => _$valueOfAvatarUploadAvatarApiVersion(name); - static Serializer get serializer => _$avatarUploadAvatarApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$AvatarUploadAvatarApiVersionSerializer(); +} + +class _$AvatarUploadAvatarApiVersionSerializer implements PrimitiveSerializer { + const _$AvatarUploadAvatarApiVersionSerializer(); + + static const Map _toWire = { + AvatarUploadAvatarApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': AvatarUploadAvatarApiVersion.v1, + }; + + @override + Iterable get types => const [AvatarUploadAvatarApiVersion]; + + @override + String get wireName => 'AvatarUploadAvatarApiVersion'; + + @override + Object serialize( + Serializers serializers, + AvatarUploadAvatarApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + AvatarUploadAvatarApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -13436,7 +13510,44 @@ class AvatarDeleteAvatarApiVersion extends EnumClass { static AvatarDeleteAvatarApiVersion valueOf(String name) => _$valueOfAvatarDeleteAvatarApiVersion(name); - static Serializer get serializer => _$avatarDeleteAvatarApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$AvatarDeleteAvatarApiVersionSerializer(); +} + +class _$AvatarDeleteAvatarApiVersionSerializer implements PrimitiveSerializer { + const _$AvatarDeleteAvatarApiVersionSerializer(); + + static const Map _toWire = { + AvatarDeleteAvatarApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': AvatarDeleteAvatarApiVersion.v1, + }; + + @override + Iterable get types => const [AvatarDeleteAvatarApiVersion]; + + @override + String get wireName => 'AvatarDeleteAvatarApiVersion'; + + @override + Object serialize( + Serializers serializers, + AvatarDeleteAvatarApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + AvatarDeleteAvatarApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -13511,7 +13622,44 @@ class AvatarEmojiAvatarApiVersion extends EnumClass { static AvatarEmojiAvatarApiVersion valueOf(String name) => _$valueOfAvatarEmojiAvatarApiVersion(name); - static Serializer get serializer => _$avatarEmojiAvatarApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$AvatarEmojiAvatarApiVersionSerializer(); +} + +class _$AvatarEmojiAvatarApiVersionSerializer implements PrimitiveSerializer { + const _$AvatarEmojiAvatarApiVersionSerializer(); + + static const Map _toWire = { + AvatarEmojiAvatarApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': AvatarEmojiAvatarApiVersion.v1, + }; + + @override + Iterable get types => const [AvatarEmojiAvatarApiVersion]; + + @override + String get wireName => 'AvatarEmojiAvatarApiVersion'; + + @override + Object serialize( + Serializers serializers, + AvatarEmojiAvatarApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + AvatarEmojiAvatarApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -13586,7 +13734,44 @@ class AvatarGetAvatarDarkApiVersion extends EnumClass { static AvatarGetAvatarDarkApiVersion valueOf(String name) => _$valueOfAvatarGetAvatarDarkApiVersion(name); - static Serializer get serializer => _$avatarGetAvatarDarkApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$AvatarGetAvatarDarkApiVersionSerializer(); +} + +class _$AvatarGetAvatarDarkApiVersionSerializer implements PrimitiveSerializer { + const _$AvatarGetAvatarDarkApiVersionSerializer(); + + static const Map _toWire = { + AvatarGetAvatarDarkApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': AvatarGetAvatarDarkApiVersion.v1, + }; + + @override + Iterable get types => const [AvatarGetAvatarDarkApiVersion]; + + @override + String get wireName => 'AvatarGetAvatarDarkApiVersion'; + + @override + Object serialize( + Serializers serializers, + AvatarGetAvatarDarkApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + AvatarGetAvatarDarkApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } class BotSendMessageApiVersion extends EnumClass { @@ -13600,7 +13785,44 @@ class BotSendMessageApiVersion extends EnumClass { static BotSendMessageApiVersion valueOf(String name) => _$valueOfBotSendMessageApiVersion(name); - static Serializer get serializer => _$botSendMessageApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$BotSendMessageApiVersionSerializer(); +} + +class _$BotSendMessageApiVersionSerializer implements PrimitiveSerializer { + const _$BotSendMessageApiVersionSerializer(); + + static const Map _toWire = { + BotSendMessageApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': BotSendMessageApiVersion.v1, + }; + + @override + Iterable get types => const [BotSendMessageApiVersion]; + + @override + String get wireName => 'BotSendMessageApiVersion'; + + @override + Object serialize( + Serializers serializers, + BotSendMessageApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + BotSendMessageApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -13674,7 +13896,44 @@ class BotReactApiVersion extends EnumClass { static BotReactApiVersion valueOf(String name) => _$valueOfBotReactApiVersion(name); - static Serializer get serializer => _$botReactApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$BotReactApiVersionSerializer(); +} + +class _$BotReactApiVersionSerializer implements PrimitiveSerializer { + const _$BotReactApiVersionSerializer(); + + static const Map _toWire = { + BotReactApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': BotReactApiVersion.v1, + }; + + @override + Iterable get types => const [BotReactApiVersion]; + + @override + String get wireName => 'BotReactApiVersion'; + + @override + Object serialize( + Serializers serializers, + BotReactApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + BotReactApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -13746,7 +14005,44 @@ class BotDeleteReactionApiVersion extends EnumClass { static BotDeleteReactionApiVersion valueOf(String name) => _$valueOfBotDeleteReactionApiVersion(name); - static Serializer get serializer => _$botDeleteReactionApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$BotDeleteReactionApiVersionSerializer(); +} + +class _$BotDeleteReactionApiVersionSerializer implements PrimitiveSerializer { + const _$BotDeleteReactionApiVersionSerializer(); + + static const Map _toWire = { + BotDeleteReactionApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': BotDeleteReactionApiVersion.v1, + }; + + @override + Iterable get types => const [BotDeleteReactionApiVersion]; + + @override + String get wireName => 'BotDeleteReactionApiVersion'; + + @override + Object serialize( + Serializers serializers, + BotDeleteReactionApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + BotDeleteReactionApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -13821,7 +14117,44 @@ class BotAdminListBotsApiVersion extends EnumClass { static BotAdminListBotsApiVersion valueOf(String name) => _$valueOfBotAdminListBotsApiVersion(name); - static Serializer get serializer => _$botAdminListBotsApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$BotAdminListBotsApiVersionSerializer(); +} + +class _$BotAdminListBotsApiVersionSerializer implements PrimitiveSerializer { + const _$BotAdminListBotsApiVersionSerializer(); + + static const Map _toWire = { + BotAdminListBotsApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': BotAdminListBotsApiVersion.v1, + }; + + @override + Iterable get types => const [BotAdminListBotsApiVersion]; + + @override + String get wireName => 'BotAdminListBotsApiVersion'; + + @override + Object serialize( + Serializers serializers, + BotAdminListBotsApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + BotAdminListBotsApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -13956,7 +14289,44 @@ class BotListBotsApiVersion extends EnumClass { static BotListBotsApiVersion valueOf(String name) => _$valueOfBotListBotsApiVersion(name); - static Serializer get serializer => _$botListBotsApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$BotListBotsApiVersionSerializer(); +} + +class _$BotListBotsApiVersionSerializer implements PrimitiveSerializer { + const _$BotListBotsApiVersionSerializer(); + + static const Map _toWire = { + BotListBotsApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': BotListBotsApiVersion.v1, + }; + + @override + Iterable get types => const [BotListBotsApiVersion]; + + @override + String get wireName => 'BotListBotsApiVersion'; + + @override + Object serialize( + Serializers serializers, + BotListBotsApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + BotListBotsApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -14029,7 +14399,44 @@ class BotEnableBotApiVersion extends EnumClass { static BotEnableBotApiVersion valueOf(String name) => _$valueOfBotEnableBotApiVersion(name); - static Serializer get serializer => _$botEnableBotApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$BotEnableBotApiVersionSerializer(); +} + +class _$BotEnableBotApiVersionSerializer implements PrimitiveSerializer { + const _$BotEnableBotApiVersionSerializer(); + + static const Map _toWire = { + BotEnableBotApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': BotEnableBotApiVersion.v1, + }; + + @override + Iterable get types => const [BotEnableBotApiVersion]; + + @override + String get wireName => 'BotEnableBotApiVersion'; + + @override + Object serialize( + Serializers serializers, + BotEnableBotApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + BotEnableBotApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -14102,7 +14509,44 @@ class BotDisableBotApiVersion extends EnumClass { static BotDisableBotApiVersion valueOf(String name) => _$valueOfBotDisableBotApiVersion(name); - static Serializer get serializer => _$botDisableBotApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$BotDisableBotApiVersionSerializer(); +} + +class _$BotDisableBotApiVersionSerializer implements PrimitiveSerializer { + const _$BotDisableBotApiVersionSerializer(); + + static const Map _toWire = { + BotDisableBotApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': BotDisableBotApiVersion.v1, + }; + + @override + Iterable get types => const [BotDisableBotApiVersion]; + + @override + String get wireName => 'BotDisableBotApiVersion'; + + @override + Object serialize( + Serializers serializers, + BotDisableBotApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + BotDisableBotApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -14178,8 +14622,48 @@ class BreakoutRoomConfigureBreakoutRoomsApiVersion extends EnumClass { static BreakoutRoomConfigureBreakoutRoomsApiVersion valueOf(String name) => _$valueOfBreakoutRoomConfigureBreakoutRoomsApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$breakoutRoomConfigureBreakoutRoomsApiVersionSerializer; + const _$BreakoutRoomConfigureBreakoutRoomsApiVersionSerializer(); +} + +class _$BreakoutRoomConfigureBreakoutRoomsApiVersionSerializer + implements PrimitiveSerializer { + const _$BreakoutRoomConfigureBreakoutRoomsApiVersionSerializer(); + + static const Map _toWire = + { + BreakoutRoomConfigureBreakoutRoomsApiVersion.v1: 'v1', + }; + + static const Map _fromWire = + { + 'v1': BreakoutRoomConfigureBreakoutRoomsApiVersion.v1, + }; + + @override + Iterable get types => const [BreakoutRoomConfigureBreakoutRoomsApiVersion]; + + @override + String get wireName => 'BreakoutRoomConfigureBreakoutRoomsApiVersion'; + + @override + Object serialize( + Serializers serializers, + BreakoutRoomConfigureBreakoutRoomsApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + BreakoutRoomConfigureBreakoutRoomsApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -14258,8 +14742,48 @@ class BreakoutRoomRemoveBreakoutRoomsApiVersion extends EnumClass { static BreakoutRoomRemoveBreakoutRoomsApiVersion valueOf(String name) => _$valueOfBreakoutRoomRemoveBreakoutRoomsApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$breakoutRoomRemoveBreakoutRoomsApiVersionSerializer; + const _$BreakoutRoomRemoveBreakoutRoomsApiVersionSerializer(); +} + +class _$BreakoutRoomRemoveBreakoutRoomsApiVersionSerializer + implements PrimitiveSerializer { + const _$BreakoutRoomRemoveBreakoutRoomsApiVersionSerializer(); + + static const Map _toWire = + { + BreakoutRoomRemoveBreakoutRoomsApiVersion.v1: 'v1', + }; + + static const Map _fromWire = + { + 'v1': BreakoutRoomRemoveBreakoutRoomsApiVersion.v1, + }; + + @override + Iterable get types => const [BreakoutRoomRemoveBreakoutRoomsApiVersion]; + + @override + String get wireName => 'BreakoutRoomRemoveBreakoutRoomsApiVersion'; + + @override + Object serialize( + Serializers serializers, + BreakoutRoomRemoveBreakoutRoomsApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + BreakoutRoomRemoveBreakoutRoomsApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -14338,13 +14862,53 @@ class BreakoutRoomBroadcastChatMessageApiVersion extends EnumClass { static BreakoutRoomBroadcastChatMessageApiVersion valueOf(String name) => _$valueOfBreakoutRoomBroadcastChatMessageApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$breakoutRoomBroadcastChatMessageApiVersionSerializer; + const _$BreakoutRoomBroadcastChatMessageApiVersionSerializer(); } -@BuiltValue(instantiable: false) -abstract interface class $BreakoutRoomBroadcastChatMessageResponseApplicationJson_OcsInterface { - OCSMeta get meta; +class _$BreakoutRoomBroadcastChatMessageApiVersionSerializer + implements PrimitiveSerializer { + const _$BreakoutRoomBroadcastChatMessageApiVersionSerializer(); + + static const Map _toWire = + { + BreakoutRoomBroadcastChatMessageApiVersion.v1: 'v1', + }; + + static const Map _fromWire = + { + 'v1': BreakoutRoomBroadcastChatMessageApiVersion.v1, + }; + + @override + Iterable get types => const [BreakoutRoomBroadcastChatMessageApiVersion]; + + @override + String get wireName => 'BreakoutRoomBroadcastChatMessageApiVersion'; + + @override + Object serialize( + Serializers serializers, + BreakoutRoomBroadcastChatMessageApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + BreakoutRoomBroadcastChatMessageApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; +} + +@BuiltValue(instantiable: false) +abstract interface class $BreakoutRoomBroadcastChatMessageResponseApplicationJson_OcsInterface { + OCSMeta get meta; BuiltList get data; } @@ -14417,8 +14981,48 @@ class BreakoutRoomApplyAttendeeMapApiVersion extends EnumClass { static BreakoutRoomApplyAttendeeMapApiVersion valueOf(String name) => _$valueOfBreakoutRoomApplyAttendeeMapApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$breakoutRoomApplyAttendeeMapApiVersionSerializer; + const _$BreakoutRoomApplyAttendeeMapApiVersionSerializer(); +} + +class _$BreakoutRoomApplyAttendeeMapApiVersionSerializer + implements PrimitiveSerializer { + const _$BreakoutRoomApplyAttendeeMapApiVersionSerializer(); + + static const Map _toWire = + { + BreakoutRoomApplyAttendeeMapApiVersion.v1: 'v1', + }; + + static const Map _fromWire = + { + 'v1': BreakoutRoomApplyAttendeeMapApiVersion.v1, + }; + + @override + Iterable get types => const [BreakoutRoomApplyAttendeeMapApiVersion]; + + @override + String get wireName => 'BreakoutRoomApplyAttendeeMapApiVersion'; + + @override + Object serialize( + Serializers serializers, + BreakoutRoomApplyAttendeeMapApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + BreakoutRoomApplyAttendeeMapApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -14497,8 +15101,48 @@ class BreakoutRoomRequestAssistanceApiVersion extends EnumClass { static BreakoutRoomRequestAssistanceApiVersion valueOf(String name) => _$valueOfBreakoutRoomRequestAssistanceApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$breakoutRoomRequestAssistanceApiVersionSerializer; + const _$BreakoutRoomRequestAssistanceApiVersionSerializer(); +} + +class _$BreakoutRoomRequestAssistanceApiVersionSerializer + implements PrimitiveSerializer { + const _$BreakoutRoomRequestAssistanceApiVersionSerializer(); + + static const Map _toWire = + { + BreakoutRoomRequestAssistanceApiVersion.v1: 'v1', + }; + + static const Map _fromWire = + { + 'v1': BreakoutRoomRequestAssistanceApiVersion.v1, + }; + + @override + Iterable get types => const [BreakoutRoomRequestAssistanceApiVersion]; + + @override + String get wireName => 'BreakoutRoomRequestAssistanceApiVersion'; + + @override + Object serialize( + Serializers serializers, + BreakoutRoomRequestAssistanceApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + BreakoutRoomRequestAssistanceApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -14577,8 +15221,48 @@ class BreakoutRoomResetRequestForAssistanceApiVersion extends EnumClass { static BreakoutRoomResetRequestForAssistanceApiVersion valueOf(String name) => _$valueOfBreakoutRoomResetRequestForAssistanceApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$breakoutRoomResetRequestForAssistanceApiVersionSerializer; + const _$BreakoutRoomResetRequestForAssistanceApiVersionSerializer(); +} + +class _$BreakoutRoomResetRequestForAssistanceApiVersionSerializer + implements PrimitiveSerializer { + const _$BreakoutRoomResetRequestForAssistanceApiVersionSerializer(); + + static const Map _toWire = + { + BreakoutRoomResetRequestForAssistanceApiVersion.v1: 'v1', + }; + + static const Map _fromWire = + { + 'v1': BreakoutRoomResetRequestForAssistanceApiVersion.v1, + }; + + @override + Iterable get types => const [BreakoutRoomResetRequestForAssistanceApiVersion]; + + @override + String get wireName => 'BreakoutRoomResetRequestForAssistanceApiVersion'; + + @override + Object serialize( + Serializers serializers, + BreakoutRoomResetRequestForAssistanceApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + BreakoutRoomResetRequestForAssistanceApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -14657,8 +15341,48 @@ class BreakoutRoomStartBreakoutRoomsApiVersion extends EnumClass { static BreakoutRoomStartBreakoutRoomsApiVersion valueOf(String name) => _$valueOfBreakoutRoomStartBreakoutRoomsApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$breakoutRoomStartBreakoutRoomsApiVersionSerializer; + const _$BreakoutRoomStartBreakoutRoomsApiVersionSerializer(); +} + +class _$BreakoutRoomStartBreakoutRoomsApiVersionSerializer + implements PrimitiveSerializer { + const _$BreakoutRoomStartBreakoutRoomsApiVersionSerializer(); + + static const Map _toWire = + { + BreakoutRoomStartBreakoutRoomsApiVersion.v1: 'v1', + }; + + static const Map _fromWire = + { + 'v1': BreakoutRoomStartBreakoutRoomsApiVersion.v1, + }; + + @override + Iterable get types => const [BreakoutRoomStartBreakoutRoomsApiVersion]; + + @override + String get wireName => 'BreakoutRoomStartBreakoutRoomsApiVersion'; + + @override + Object serialize( + Serializers serializers, + BreakoutRoomStartBreakoutRoomsApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + BreakoutRoomStartBreakoutRoomsApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -14737,8 +15461,48 @@ class BreakoutRoomStopBreakoutRoomsApiVersion extends EnumClass { static BreakoutRoomStopBreakoutRoomsApiVersion valueOf(String name) => _$valueOfBreakoutRoomStopBreakoutRoomsApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$breakoutRoomStopBreakoutRoomsApiVersionSerializer; + const _$BreakoutRoomStopBreakoutRoomsApiVersionSerializer(); +} + +class _$BreakoutRoomStopBreakoutRoomsApiVersionSerializer + implements PrimitiveSerializer { + const _$BreakoutRoomStopBreakoutRoomsApiVersionSerializer(); + + static const Map _toWire = + { + BreakoutRoomStopBreakoutRoomsApiVersion.v1: 'v1', + }; + + static const Map _fromWire = + { + 'v1': BreakoutRoomStopBreakoutRoomsApiVersion.v1, + }; + + @override + Iterable get types => const [BreakoutRoomStopBreakoutRoomsApiVersion]; + + @override + String get wireName => 'BreakoutRoomStopBreakoutRoomsApiVersion'; + + @override + Object serialize( + Serializers serializers, + BreakoutRoomStopBreakoutRoomsApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + BreakoutRoomStopBreakoutRoomsApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -14817,8 +15581,48 @@ class BreakoutRoomSwitchBreakoutRoomApiVersion extends EnumClass { static BreakoutRoomSwitchBreakoutRoomApiVersion valueOf(String name) => _$valueOfBreakoutRoomSwitchBreakoutRoomApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$breakoutRoomSwitchBreakoutRoomApiVersionSerializer; + const _$BreakoutRoomSwitchBreakoutRoomApiVersionSerializer(); +} + +class _$BreakoutRoomSwitchBreakoutRoomApiVersionSerializer + implements PrimitiveSerializer { + const _$BreakoutRoomSwitchBreakoutRoomApiVersionSerializer(); + + static const Map _toWire = + { + BreakoutRoomSwitchBreakoutRoomApiVersion.v1: 'v1', + }; + + static const Map _fromWire = + { + 'v1': BreakoutRoomSwitchBreakoutRoomApiVersion.v1, + }; + + @override + Iterable get types => const [BreakoutRoomSwitchBreakoutRoomApiVersion]; + + @override + String get wireName => 'BreakoutRoomSwitchBreakoutRoomApiVersion'; + + @override + Object serialize( + Serializers serializers, + BreakoutRoomSwitchBreakoutRoomApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + BreakoutRoomSwitchBreakoutRoomApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -14895,7 +15699,44 @@ class CallGetPeersForCallApiVersion extends EnumClass { static CallGetPeersForCallApiVersion valueOf(String name) => _$valueOfCallGetPeersForCallApiVersion(name); - static Serializer get serializer => _$callGetPeersForCallApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$CallGetPeersForCallApiVersionSerializer(); +} + +class _$CallGetPeersForCallApiVersionSerializer implements PrimitiveSerializer { + const _$CallGetPeersForCallApiVersionSerializer(); + + static const Map _toWire = { + CallGetPeersForCallApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': CallGetPeersForCallApiVersion.v4, + }; + + @override + Iterable get types => const [CallGetPeersForCallApiVersion]; + + @override + String get wireName => 'CallGetPeersForCallApiVersion'; + + @override + Object serialize( + Serializers serializers, + CallGetPeersForCallApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + CallGetPeersForCallApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -14998,7 +15839,44 @@ class CallUpdateCallFlagsApiVersion extends EnumClass { static CallUpdateCallFlagsApiVersion valueOf(String name) => _$valueOfCallUpdateCallFlagsApiVersion(name); - static Serializer get serializer => _$callUpdateCallFlagsApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$CallUpdateCallFlagsApiVersionSerializer(); +} + +class _$CallUpdateCallFlagsApiVersionSerializer implements PrimitiveSerializer { + const _$CallUpdateCallFlagsApiVersionSerializer(); + + static const Map _toWire = { + CallUpdateCallFlagsApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': CallUpdateCallFlagsApiVersion.v4, + }; + + @override + Iterable get types => const [CallUpdateCallFlagsApiVersion]; + + @override + String get wireName => 'CallUpdateCallFlagsApiVersion'; + + @override + Object serialize( + Serializers serializers, + CallUpdateCallFlagsApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + CallUpdateCallFlagsApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -15073,7 +15951,44 @@ class CallJoinCallApiVersion extends EnumClass { static CallJoinCallApiVersion valueOf(String name) => _$valueOfCallJoinCallApiVersion(name); - static Serializer get serializer => _$callJoinCallApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$CallJoinCallApiVersionSerializer(); +} + +class _$CallJoinCallApiVersionSerializer implements PrimitiveSerializer { + const _$CallJoinCallApiVersionSerializer(); + + static const Map _toWire = { + CallJoinCallApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': CallJoinCallApiVersion.v4, + }; + + @override + Iterable get types => const [CallJoinCallApiVersion]; + + @override + String get wireName => 'CallJoinCallApiVersion'; + + @override + Object serialize( + Serializers serializers, + CallJoinCallApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + CallJoinCallApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -15146,7 +16061,44 @@ class CallLeaveCallApiVersion extends EnumClass { static CallLeaveCallApiVersion valueOf(String name) => _$valueOfCallLeaveCallApiVersion(name); - static Serializer get serializer => _$callLeaveCallApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$CallLeaveCallApiVersionSerializer(); +} + +class _$CallLeaveCallApiVersionSerializer implements PrimitiveSerializer { + const _$CallLeaveCallApiVersionSerializer(); + + static const Map _toWire = { + CallLeaveCallApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': CallLeaveCallApiVersion.v4, + }; + + @override + Iterable get types => const [CallLeaveCallApiVersion]; + + @override + String get wireName => 'CallLeaveCallApiVersion'; + + @override + Object serialize( + Serializers serializers, + CallLeaveCallApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + CallLeaveCallApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -15220,7 +16172,44 @@ class CallRingAttendeeApiVersion extends EnumClass { static CallRingAttendeeApiVersion valueOf(String name) => _$valueOfCallRingAttendeeApiVersion(name); - static Serializer get serializer => _$callRingAttendeeApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$CallRingAttendeeApiVersionSerializer(); +} + +class _$CallRingAttendeeApiVersionSerializer implements PrimitiveSerializer { + const _$CallRingAttendeeApiVersionSerializer(); + + static const Map _toWire = { + CallRingAttendeeApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': CallRingAttendeeApiVersion.v4, + }; + + @override + Iterable get types => const [CallRingAttendeeApiVersion]; + + @override + String get wireName => 'CallRingAttendeeApiVersion'; + + @override + Object serialize( + Serializers serializers, + CallRingAttendeeApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + CallRingAttendeeApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -15294,7 +16283,44 @@ class CallSipDialOutApiVersion extends EnumClass { static CallSipDialOutApiVersion valueOf(String name) => _$valueOfCallSipDialOutApiVersion(name); - static Serializer get serializer => _$callSipDialOutApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$CallSipDialOutApiVersionSerializer(); +} + +class _$CallSipDialOutApiVersionSerializer implements PrimitiveSerializer { + const _$CallSipDialOutApiVersionSerializer(); + + static const Map _toWire = { + CallSipDialOutApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': CallSipDialOutApiVersion.v4, + }; + + @override + Iterable get types => const [CallSipDialOutApiVersion]; + + @override + String get wireName => 'CallSipDialOutApiVersion'; + + @override + Object serialize( + Serializers serializers, + CallSipDialOutApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + CallSipDialOutApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -15401,8 +16427,48 @@ class CertificateGetCertificateExpirationApiVersion extends EnumClass { static CertificateGetCertificateExpirationApiVersion valueOf(String name) => _$valueOfCertificateGetCertificateExpirationApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$certificateGetCertificateExpirationApiVersionSerializer; + const _$CertificateGetCertificateExpirationApiVersionSerializer(); +} + +class _$CertificateGetCertificateExpirationApiVersionSerializer + implements PrimitiveSerializer { + const _$CertificateGetCertificateExpirationApiVersionSerializer(); + + static const Map _toWire = + { + CertificateGetCertificateExpirationApiVersion.v1: 'v1', + }; + + static const Map _fromWire = + { + 'v1': CertificateGetCertificateExpirationApiVersion.v1, + }; + + @override + Iterable get types => const [CertificateGetCertificateExpirationApiVersion]; + + @override + String get wireName => 'CertificateGetCertificateExpirationApiVersion'; + + @override + Object serialize( + Serializers serializers, + CertificateGetCertificateExpirationApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + CertificateGetCertificateExpirationApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -15511,10 +16577,47 @@ class ChatReceiveMessagesApiVersion extends EnumClass { static ChatReceiveMessagesApiVersion valueOf(String name) => _$valueOfChatReceiveMessagesApiVersion(name); - static Serializer get serializer => _$chatReceiveMessagesApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ChatReceiveMessagesApiVersionSerializer(); } -@BuiltValue(instantiable: false) +class _$ChatReceiveMessagesApiVersionSerializer implements PrimitiveSerializer { + const _$ChatReceiveMessagesApiVersionSerializer(); + + static const Map _toWire = { + ChatReceiveMessagesApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': ChatReceiveMessagesApiVersion.v1, + }; + + @override + Iterable get types => const [ChatReceiveMessagesApiVersion]; + + @override + String get wireName => 'ChatReceiveMessagesApiVersion'; + + @override + Object serialize( + Serializers serializers, + ChatReceiveMessagesApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + ChatReceiveMessagesApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; +} + +@BuiltValue(instantiable: false) abstract interface class $ChatChatReceiveMessagesHeadersInterface { @BuiltValueField(wireName: 'x-chat-last-common-read') String? get xChatLastCommonRead; @@ -15646,7 +16749,44 @@ class ChatSendMessageApiVersion extends EnumClass { static ChatSendMessageApiVersion valueOf(String name) => _$valueOfChatSendMessageApiVersion(name); - static Serializer get serializer => _$chatSendMessageApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ChatSendMessageApiVersionSerializer(); +} + +class _$ChatSendMessageApiVersionSerializer implements PrimitiveSerializer { + const _$ChatSendMessageApiVersionSerializer(); + + static const Map _toWire = { + ChatSendMessageApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': ChatSendMessageApiVersion.v1, + }; + + @override + Iterable get types => const [ChatSendMessageApiVersion]; + + @override + String get wireName => 'ChatSendMessageApiVersion'; + + @override + Object serialize( + Serializers serializers, + ChatSendMessageApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + ChatSendMessageApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -15749,7 +16889,44 @@ class ChatClearHistoryApiVersion extends EnumClass { static ChatClearHistoryApiVersion valueOf(String name) => _$valueOfChatClearHistoryApiVersion(name); - static Serializer get serializer => _$chatClearHistoryApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ChatClearHistoryApiVersionSerializer(); +} + +class _$ChatClearHistoryApiVersionSerializer implements PrimitiveSerializer { + const _$ChatClearHistoryApiVersionSerializer(); + + static const Map _toWire = { + ChatClearHistoryApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': ChatClearHistoryApiVersion.v1, + }; + + @override + Iterable get types => const [ChatClearHistoryApiVersion]; + + @override + String get wireName => 'ChatClearHistoryApiVersion'; + + @override + Object serialize( + Serializers serializers, + ChatClearHistoryApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + ChatClearHistoryApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -15852,7 +17029,44 @@ class ChatDeleteMessageApiVersion extends EnumClass { static ChatDeleteMessageApiVersion valueOf(String name) => _$valueOfChatDeleteMessageApiVersion(name); - static Serializer get serializer => _$chatDeleteMessageApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ChatDeleteMessageApiVersionSerializer(); +} + +class _$ChatDeleteMessageApiVersionSerializer implements PrimitiveSerializer { + const _$ChatDeleteMessageApiVersionSerializer(); + + static const Map _toWire = { + ChatDeleteMessageApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': ChatDeleteMessageApiVersion.v1, + }; + + @override + Iterable get types => const [ChatDeleteMessageApiVersion]; + + @override + String get wireName => 'ChatDeleteMessageApiVersion'; + + @override + Object serialize( + Serializers serializers, + ChatDeleteMessageApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + ChatDeleteMessageApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -15956,7 +17170,45 @@ class ChatGetMessageContextApiVersion extends EnumClass { static ChatGetMessageContextApiVersion valueOf(String name) => _$valueOfChatGetMessageContextApiVersion(name); - static Serializer get serializer => _$chatGetMessageContextApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$ChatGetMessageContextApiVersionSerializer(); +} + +class _$ChatGetMessageContextApiVersionSerializer implements PrimitiveSerializer { + const _$ChatGetMessageContextApiVersionSerializer(); + + static const Map _toWire = { + ChatGetMessageContextApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': ChatGetMessageContextApiVersion.v1, + }; + + @override + Iterable get types => const [ChatGetMessageContextApiVersion]; + + @override + String get wireName => 'ChatGetMessageContextApiVersion'; + + @override + Object serialize( + Serializers serializers, + ChatGetMessageContextApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + ChatGetMessageContextApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -16063,7 +17315,44 @@ class ChatGetReminderApiVersion extends EnumClass { static ChatGetReminderApiVersion valueOf(String name) => _$valueOfChatGetReminderApiVersion(name); - static Serializer get serializer => _$chatGetReminderApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ChatGetReminderApiVersionSerializer(); +} + +class _$ChatGetReminderApiVersionSerializer implements PrimitiveSerializer { + const _$ChatGetReminderApiVersionSerializer(); + + static const Map _toWire = { + ChatGetReminderApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': ChatGetReminderApiVersion.v1, + }; + + @override + Iterable get types => const [ChatGetReminderApiVersion]; + + @override + String get wireName => 'ChatGetReminderApiVersion'; + + @override + Object serialize( + Serializers serializers, + ChatGetReminderApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + ChatGetReminderApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -16163,7 +17452,44 @@ class ChatSetReminderApiVersion extends EnumClass { static ChatSetReminderApiVersion valueOf(String name) => _$valueOfChatSetReminderApiVersion(name); - static Serializer get serializer => _$chatSetReminderApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ChatSetReminderApiVersionSerializer(); +} + +class _$ChatSetReminderApiVersionSerializer implements PrimitiveSerializer { + const _$ChatSetReminderApiVersionSerializer(); + + static const Map _toWire = { + ChatSetReminderApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': ChatSetReminderApiVersion.v1, + }; + + @override + Iterable get types => const [ChatSetReminderApiVersion]; + + @override + String get wireName => 'ChatSetReminderApiVersion'; + + @override + Object serialize( + Serializers serializers, + ChatSetReminderApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + ChatSetReminderApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -16237,7 +17563,44 @@ class ChatDeleteReminderApiVersion extends EnumClass { static ChatDeleteReminderApiVersion valueOf(String name) => _$valueOfChatDeleteReminderApiVersion(name); - static Serializer get serializer => _$chatDeleteReminderApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ChatDeleteReminderApiVersionSerializer(); +} + +class _$ChatDeleteReminderApiVersionSerializer implements PrimitiveSerializer { + const _$ChatDeleteReminderApiVersionSerializer(); + + static const Map _toWire = { + ChatDeleteReminderApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': ChatDeleteReminderApiVersion.v1, + }; + + @override + Iterable get types => const [ChatDeleteReminderApiVersion]; + + @override + String get wireName => 'ChatDeleteReminderApiVersion'; + + @override + Object serialize( + Serializers serializers, + ChatDeleteReminderApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + ChatDeleteReminderApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -16312,7 +17675,44 @@ class ChatSetReadMarkerApiVersion extends EnumClass { static ChatSetReadMarkerApiVersion valueOf(String name) => _$valueOfChatSetReadMarkerApiVersion(name); - static Serializer get serializer => _$chatSetReadMarkerApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ChatSetReadMarkerApiVersionSerializer(); +} + +class _$ChatSetReadMarkerApiVersionSerializer implements PrimitiveSerializer { + const _$ChatSetReadMarkerApiVersionSerializer(); + + static const Map _toWire = { + ChatSetReadMarkerApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': ChatSetReadMarkerApiVersion.v1, + }; + + @override + Iterable get types => const [ChatSetReadMarkerApiVersion]; + + @override + String get wireName => 'ChatSetReadMarkerApiVersion'; + + @override + Object serialize( + Serializers serializers, + ChatSetReadMarkerApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + ChatSetReadMarkerApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -16416,7 +17816,44 @@ class ChatMarkUnreadApiVersion extends EnumClass { static ChatMarkUnreadApiVersion valueOf(String name) => _$valueOfChatMarkUnreadApiVersion(name); - static Serializer get serializer => _$chatMarkUnreadApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ChatMarkUnreadApiVersionSerializer(); +} + +class _$ChatMarkUnreadApiVersionSerializer implements PrimitiveSerializer { + const _$ChatMarkUnreadApiVersionSerializer(); + + static const Map _toWire = { + ChatMarkUnreadApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': ChatMarkUnreadApiVersion.v1, + }; + + @override + Iterable get types => const [ChatMarkUnreadApiVersion]; + + @override + String get wireName => 'ChatMarkUnreadApiVersion'; + + @override + Object serialize( + Serializers serializers, + ChatMarkUnreadApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + ChatMarkUnreadApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -16516,7 +17953,44 @@ class ChatMentionsApiVersion extends EnumClass { static ChatMentionsApiVersion valueOf(String name) => _$valueOfChatMentionsApiVersion(name); - static Serializer get serializer => _$chatMentionsApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ChatMentionsApiVersionSerializer(); +} + +class _$ChatMentionsApiVersionSerializer implements PrimitiveSerializer { + const _$ChatMentionsApiVersionSerializer(); + + static const Map _toWire = { + ChatMentionsApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': ChatMentionsApiVersion.v1, + }; + + @override + Iterable get types => const [ChatMentionsApiVersion]; + + @override + String get wireName => 'ChatMentionsApiVersion'; + + @override + Object serialize( + Serializers serializers, + ChatMentionsApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + ChatMentionsApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -16621,8 +18095,48 @@ class ChatGetObjectsSharedInRoomApiVersion extends EnumClass { static ChatGetObjectsSharedInRoomApiVersion valueOf(String name) => _$valueOfChatGetObjectsSharedInRoomApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$chatGetObjectsSharedInRoomApiVersionSerializer; + const _$ChatGetObjectsSharedInRoomApiVersionSerializer(); +} + +class _$ChatGetObjectsSharedInRoomApiVersionSerializer + implements PrimitiveSerializer { + const _$ChatGetObjectsSharedInRoomApiVersionSerializer(); + + static const Map _toWire = + { + ChatGetObjectsSharedInRoomApiVersion.v1: 'v1', + }; + + static const Map _fromWire = + { + 'v1': ChatGetObjectsSharedInRoomApiVersion.v1, + }; + + @override + Iterable get types => const [ChatGetObjectsSharedInRoomApiVersion]; + + @override + String get wireName => 'ChatGetObjectsSharedInRoomApiVersion'; + + @override + Object serialize( + Serializers serializers, + ChatGetObjectsSharedInRoomApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + ChatGetObjectsSharedInRoomApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -16729,7 +18243,45 @@ class ChatShareObjectToChatApiVersion extends EnumClass { static ChatShareObjectToChatApiVersion valueOf(String name) => _$valueOfChatShareObjectToChatApiVersion(name); - static Serializer get serializer => _$chatShareObjectToChatApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$ChatShareObjectToChatApiVersionSerializer(); +} + +class _$ChatShareObjectToChatApiVersionSerializer implements PrimitiveSerializer { + const _$ChatShareObjectToChatApiVersionSerializer(); + + static const Map _toWire = { + ChatShareObjectToChatApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': ChatShareObjectToChatApiVersion.v1, + }; + + @override + Iterable get types => const [ChatShareObjectToChatApiVersion]; + + @override + String get wireName => 'ChatShareObjectToChatApiVersion'; + + @override + Object serialize( + Serializers serializers, + ChatShareObjectToChatApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + ChatShareObjectToChatApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -16836,8 +18388,48 @@ class ChatGetObjectsSharedInRoomOverviewApiVersion extends EnumClass { static ChatGetObjectsSharedInRoomOverviewApiVersion valueOf(String name) => _$valueOfChatGetObjectsSharedInRoomOverviewApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$chatGetObjectsSharedInRoomOverviewApiVersionSerializer; + const _$ChatGetObjectsSharedInRoomOverviewApiVersionSerializer(); +} + +class _$ChatGetObjectsSharedInRoomOverviewApiVersionSerializer + implements PrimitiveSerializer { + const _$ChatGetObjectsSharedInRoomOverviewApiVersionSerializer(); + + static const Map _toWire = + { + ChatGetObjectsSharedInRoomOverviewApiVersion.v1: 'v1', + }; + + static const Map _fromWire = + { + 'v1': ChatGetObjectsSharedInRoomOverviewApiVersion.v1, + }; + + @override + Iterable get types => const [ChatGetObjectsSharedInRoomOverviewApiVersion]; + + @override + String get wireName => 'ChatGetObjectsSharedInRoomOverviewApiVersion'; + + @override + Object serialize( + Serializers serializers, + ChatGetObjectsSharedInRoomOverviewApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + ChatGetObjectsSharedInRoomOverviewApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -16914,12 +18506,50 @@ class FederationAcceptShareApiVersion extends EnumClass { static FederationAcceptShareApiVersion valueOf(String name) => _$valueOfFederationAcceptShareApiVersion(name); - static Serializer get serializer => _$federationAcceptShareApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$FederationAcceptShareApiVersionSerializer(); } -@BuiltValue(instantiable: false) -abstract interface class $FederationAcceptShareResponseApplicationJson_OcsInterface { - OCSMeta get meta; +class _$FederationAcceptShareApiVersionSerializer implements PrimitiveSerializer { + const _$FederationAcceptShareApiVersionSerializer(); + + static const Map _toWire = { + FederationAcceptShareApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': FederationAcceptShareApiVersion.v1, + }; + + @override + Iterable get types => const [FederationAcceptShareApiVersion]; + + @override + String get wireName => 'FederationAcceptShareApiVersion'; + + @override + Object serialize( + Serializers serializers, + FederationAcceptShareApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + FederationAcceptShareApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; +} + +@BuiltValue(instantiable: false) +abstract interface class $FederationAcceptShareResponseApplicationJson_OcsInterface { + OCSMeta get meta; JsonObject get data; } @@ -16990,7 +18620,45 @@ class FederationRejectShareApiVersion extends EnumClass { static FederationRejectShareApiVersion valueOf(String name) => _$valueOfFederationRejectShareApiVersion(name); - static Serializer get serializer => _$federationRejectShareApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$FederationRejectShareApiVersionSerializer(); +} + +class _$FederationRejectShareApiVersionSerializer implements PrimitiveSerializer { + const _$FederationRejectShareApiVersionSerializer(); + + static const Map _toWire = { + FederationRejectShareApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': FederationRejectShareApiVersion.v1, + }; + + @override + Iterable get types => const [FederationRejectShareApiVersion]; + + @override + String get wireName => 'FederationRejectShareApiVersion'; + + @override + Object serialize( + Serializers serializers, + FederationRejectShareApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + FederationRejectShareApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -17066,7 +18734,44 @@ class FederationGetSharesApiVersion extends EnumClass { static FederationGetSharesApiVersion valueOf(String name) => _$valueOfFederationGetSharesApiVersion(name); - static Serializer get serializer => _$federationGetSharesApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$FederationGetSharesApiVersionSerializer(); +} + +class _$FederationGetSharesApiVersionSerializer implements PrimitiveSerializer { + const _$FederationGetSharesApiVersionSerializer(); + + static const Map _toWire = { + FederationGetSharesApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': FederationGetSharesApiVersion.v1, + }; + + @override + Iterable get types => const [FederationGetSharesApiVersion]; + + @override + String get wireName => 'FederationGetSharesApiVersion'; + + @override + Object serialize( + Serializers serializers, + FederationGetSharesApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + FederationGetSharesApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -17179,8 +18884,48 @@ class FilesIntegrationGetRoomByFileIdApiVersion extends EnumClass { static FilesIntegrationGetRoomByFileIdApiVersion valueOf(String name) => _$valueOfFilesIntegrationGetRoomByFileIdApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$filesIntegrationGetRoomByFileIdApiVersionSerializer; + const _$FilesIntegrationGetRoomByFileIdApiVersionSerializer(); +} + +class _$FilesIntegrationGetRoomByFileIdApiVersionSerializer + implements PrimitiveSerializer { + const _$FilesIntegrationGetRoomByFileIdApiVersionSerializer(); + + static const Map _toWire = + { + FilesIntegrationGetRoomByFileIdApiVersion.v1: 'v1', + }; + + static const Map _fromWire = + { + 'v1': FilesIntegrationGetRoomByFileIdApiVersion.v1, + }; + + @override + Iterable get types => const [FilesIntegrationGetRoomByFileIdApiVersion]; + + @override + String get wireName => 'FilesIntegrationGetRoomByFileIdApiVersion'; + + @override + Object serialize( + Serializers serializers, + FilesIntegrationGetRoomByFileIdApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + FilesIntegrationGetRoomByFileIdApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -17290,8 +19035,48 @@ class FilesIntegrationGetRoomByShareTokenApiVersion extends EnumClass { static FilesIntegrationGetRoomByShareTokenApiVersion valueOf(String name) => _$valueOfFilesIntegrationGetRoomByShareTokenApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$filesIntegrationGetRoomByShareTokenApiVersionSerializer; + const _$FilesIntegrationGetRoomByShareTokenApiVersionSerializer(); +} + +class _$FilesIntegrationGetRoomByShareTokenApiVersionSerializer + implements PrimitiveSerializer { + const _$FilesIntegrationGetRoomByShareTokenApiVersionSerializer(); + + static const Map _toWire = + { + FilesIntegrationGetRoomByShareTokenApiVersion.v1: 'v1', + }; + + static const Map _fromWire = + { + 'v1': FilesIntegrationGetRoomByShareTokenApiVersion.v1, + }; + + @override + Iterable get types => const [FilesIntegrationGetRoomByShareTokenApiVersion]; + + @override + String get wireName => 'FilesIntegrationGetRoomByShareTokenApiVersion'; + + @override + Object serialize( + Serializers serializers, + FilesIntegrationGetRoomByShareTokenApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + FilesIntegrationGetRoomByShareTokenApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -17401,7 +19186,44 @@ class GuestSetDisplayNameApiVersion extends EnumClass { static GuestSetDisplayNameApiVersion valueOf(String name) => _$valueOfGuestSetDisplayNameApiVersion(name); - static Serializer get serializer => _$guestSetDisplayNameApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$GuestSetDisplayNameApiVersionSerializer(); +} + +class _$GuestSetDisplayNameApiVersionSerializer implements PrimitiveSerializer { + const _$GuestSetDisplayNameApiVersionSerializer(); + + static const Map _toWire = { + GuestSetDisplayNameApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': GuestSetDisplayNameApiVersion.v1, + }; + + @override + Iterable get types => const [GuestSetDisplayNameApiVersion]; + + @override + String get wireName => 'GuestSetDisplayNameApiVersion'; + + @override + Object serialize( + Serializers serializers, + GuestSetDisplayNameApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + GuestSetDisplayNameApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -17478,8 +19300,48 @@ class HostedSignalingServerRequestTrialApiVersion extends EnumClass { static HostedSignalingServerRequestTrialApiVersion valueOf(String name) => _$valueOfHostedSignalingServerRequestTrialApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$hostedSignalingServerRequestTrialApiVersionSerializer; + const _$HostedSignalingServerRequestTrialApiVersionSerializer(); +} + +class _$HostedSignalingServerRequestTrialApiVersionSerializer + implements PrimitiveSerializer { + const _$HostedSignalingServerRequestTrialApiVersionSerializer(); + + static const Map _toWire = + { + HostedSignalingServerRequestTrialApiVersion.v1: 'v1', + }; + + static const Map _fromWire = + { + 'v1': HostedSignalingServerRequestTrialApiVersion.v1, + }; + + @override + Iterable get types => const [HostedSignalingServerRequestTrialApiVersion]; + + @override + String get wireName => 'HostedSignalingServerRequestTrialApiVersion'; + + @override + Object serialize( + Serializers serializers, + HostedSignalingServerRequestTrialApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + HostedSignalingServerRequestTrialApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -17558,8 +19420,48 @@ class HostedSignalingServerDeleteAccountApiVersion extends EnumClass { static HostedSignalingServerDeleteAccountApiVersion valueOf(String name) => _$valueOfHostedSignalingServerDeleteAccountApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$hostedSignalingServerDeleteAccountApiVersionSerializer; + const _$HostedSignalingServerDeleteAccountApiVersionSerializer(); +} + +class _$HostedSignalingServerDeleteAccountApiVersionSerializer + implements PrimitiveSerializer { + const _$HostedSignalingServerDeleteAccountApiVersionSerializer(); + + static const Map _toWire = + { + HostedSignalingServerDeleteAccountApiVersion.v1: 'v1', + }; + + static const Map _fromWire = + { + 'v1': HostedSignalingServerDeleteAccountApiVersion.v1, + }; + + @override + Iterable get types => const [HostedSignalingServerDeleteAccountApiVersion]; + + @override + String get wireName => 'HostedSignalingServerDeleteAccountApiVersion'; + + @override + Object serialize( + Serializers serializers, + HostedSignalingServerDeleteAccountApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + HostedSignalingServerDeleteAccountApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -17637,8 +19539,48 @@ class MatterbridgeGetBridgeOfRoomApiVersion extends EnumClass { static MatterbridgeGetBridgeOfRoomApiVersion valueOf(String name) => _$valueOfMatterbridgeGetBridgeOfRoomApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$matterbridgeGetBridgeOfRoomApiVersionSerializer; + const _$MatterbridgeGetBridgeOfRoomApiVersionSerializer(); +} + +class _$MatterbridgeGetBridgeOfRoomApiVersionSerializer + implements PrimitiveSerializer { + const _$MatterbridgeGetBridgeOfRoomApiVersionSerializer(); + + static const Map _toWire = + { + MatterbridgeGetBridgeOfRoomApiVersion.v1: 'v1', + }; + + static const Map _fromWire = + { + 'v1': MatterbridgeGetBridgeOfRoomApiVersion.v1, + }; + + @override + Iterable get types => const [MatterbridgeGetBridgeOfRoomApiVersion]; + + @override + String get wireName => 'MatterbridgeGetBridgeOfRoomApiVersion'; + + @override + Object serialize( + Serializers serializers, + MatterbridgeGetBridgeOfRoomApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + MatterbridgeGetBridgeOfRoomApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -17794,8 +19736,48 @@ class MatterbridgeEditBridgeOfRoomApiVersion extends EnumClass { static MatterbridgeEditBridgeOfRoomApiVersion valueOf(String name) => _$valueOfMatterbridgeEditBridgeOfRoomApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$matterbridgeEditBridgeOfRoomApiVersionSerializer; + const _$MatterbridgeEditBridgeOfRoomApiVersionSerializer(); +} + +class _$MatterbridgeEditBridgeOfRoomApiVersionSerializer + implements PrimitiveSerializer { + const _$MatterbridgeEditBridgeOfRoomApiVersionSerializer(); + + static const Map _toWire = + { + MatterbridgeEditBridgeOfRoomApiVersion.v1: 'v1', + }; + + static const Map _fromWire = + { + 'v1': MatterbridgeEditBridgeOfRoomApiVersion.v1, + }; + + @override + Iterable get types => const [MatterbridgeEditBridgeOfRoomApiVersion]; + + @override + String get wireName => 'MatterbridgeEditBridgeOfRoomApiVersion'; + + @override + Object serialize( + Serializers serializers, + MatterbridgeEditBridgeOfRoomApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + MatterbridgeEditBridgeOfRoomApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -17874,8 +19856,48 @@ class MatterbridgeDeleteBridgeOfRoomApiVersion extends EnumClass { static MatterbridgeDeleteBridgeOfRoomApiVersion valueOf(String name) => _$valueOfMatterbridgeDeleteBridgeOfRoomApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$matterbridgeDeleteBridgeOfRoomApiVersionSerializer; + const _$MatterbridgeDeleteBridgeOfRoomApiVersionSerializer(); +} + +class _$MatterbridgeDeleteBridgeOfRoomApiVersionSerializer + implements PrimitiveSerializer { + const _$MatterbridgeDeleteBridgeOfRoomApiVersionSerializer(); + + static const Map _toWire = + { + MatterbridgeDeleteBridgeOfRoomApiVersion.v1: 'v1', + }; + + static const Map _fromWire = + { + 'v1': MatterbridgeDeleteBridgeOfRoomApiVersion.v1, + }; + + @override + Iterable get types => const [MatterbridgeDeleteBridgeOfRoomApiVersion]; + + @override + String get wireName => 'MatterbridgeDeleteBridgeOfRoomApiVersion'; + + @override + Object serialize( + Serializers serializers, + MatterbridgeDeleteBridgeOfRoomApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + MatterbridgeDeleteBridgeOfRoomApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -17954,8 +19976,48 @@ class MatterbridgeGetBridgeProcessStateApiVersion extends EnumClass { static MatterbridgeGetBridgeProcessStateApiVersion valueOf(String name) => _$valueOfMatterbridgeGetBridgeProcessStateApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$matterbridgeGetBridgeProcessStateApiVersionSerializer; + const _$MatterbridgeGetBridgeProcessStateApiVersionSerializer(); +} + +class _$MatterbridgeGetBridgeProcessStateApiVersionSerializer + implements PrimitiveSerializer { + const _$MatterbridgeGetBridgeProcessStateApiVersionSerializer(); + + static const Map _toWire = + { + MatterbridgeGetBridgeProcessStateApiVersion.v1: 'v1', + }; + + static const Map _fromWire = + { + 'v1': MatterbridgeGetBridgeProcessStateApiVersion.v1, + }; + + @override + Iterable get types => const [MatterbridgeGetBridgeProcessStateApiVersion]; + + @override + String get wireName => 'MatterbridgeGetBridgeProcessStateApiVersion'; + + @override + Object serialize( + Serializers serializers, + MatterbridgeGetBridgeProcessStateApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + MatterbridgeGetBridgeProcessStateApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -18034,8 +20096,48 @@ class MatterbridgeSettingsStopAllBridgesApiVersion extends EnumClass { static MatterbridgeSettingsStopAllBridgesApiVersion valueOf(String name) => _$valueOfMatterbridgeSettingsStopAllBridgesApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$matterbridgeSettingsStopAllBridgesApiVersionSerializer; + const _$MatterbridgeSettingsStopAllBridgesApiVersionSerializer(); +} + +class _$MatterbridgeSettingsStopAllBridgesApiVersionSerializer + implements PrimitiveSerializer { + const _$MatterbridgeSettingsStopAllBridgesApiVersionSerializer(); + + static const Map _toWire = + { + MatterbridgeSettingsStopAllBridgesApiVersion.v1: 'v1', + }; + + static const Map _fromWire = + { + 'v1': MatterbridgeSettingsStopAllBridgesApiVersion.v1, + }; + + @override + Iterable get types => const [MatterbridgeSettingsStopAllBridgesApiVersion]; + + @override + String get wireName => 'MatterbridgeSettingsStopAllBridgesApiVersion'; + + @override + Object serialize( + Serializers serializers, + MatterbridgeSettingsStopAllBridgesApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + MatterbridgeSettingsStopAllBridgesApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -18115,8 +20217,48 @@ class MatterbridgeSettingsGetMatterbridgeVersionApiVersion extends EnumClass { static MatterbridgeSettingsGetMatterbridgeVersionApiVersion valueOf(String name) => _$valueOfMatterbridgeSettingsGetMatterbridgeVersionApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$matterbridgeSettingsGetMatterbridgeVersionApiVersionSerializer; + const _$MatterbridgeSettingsGetMatterbridgeVersionApiVersionSerializer(); +} + +class _$MatterbridgeSettingsGetMatterbridgeVersionApiVersionSerializer + implements PrimitiveSerializer { + const _$MatterbridgeSettingsGetMatterbridgeVersionApiVersionSerializer(); + + static const Map _toWire = + { + MatterbridgeSettingsGetMatterbridgeVersionApiVersion.v1: 'v1', + }; + + static const Map _fromWire = + { + 'v1': MatterbridgeSettingsGetMatterbridgeVersionApiVersion.v1, + }; + + @override + Iterable get types => const [MatterbridgeSettingsGetMatterbridgeVersionApiVersion]; + + @override + String get wireName => 'MatterbridgeSettingsGetMatterbridgeVersionApiVersion'; + + @override + Object serialize( + Serializers serializers, + MatterbridgeSettingsGetMatterbridgeVersionApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + MatterbridgeSettingsGetMatterbridgeVersionApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -18226,10 +20368,47 @@ class PollCreatePollApiVersion extends EnumClass { static PollCreatePollApiVersion valueOf(String name) => _$valueOfPollCreatePollApiVersion(name); - static Serializer get serializer => _$pollCreatePollApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$PollCreatePollApiVersionSerializer(); } -@BuiltValue(instantiable: false) +class _$PollCreatePollApiVersionSerializer implements PrimitiveSerializer { + const _$PollCreatePollApiVersionSerializer(); + + static const Map _toWire = { + PollCreatePollApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': PollCreatePollApiVersion.v1, + }; + + @override + Iterable get types => const [PollCreatePollApiVersion]; + + @override + String get wireName => 'PollCreatePollApiVersion'; + + @override + Object serialize( + Serializers serializers, + PollCreatePollApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + PollCreatePollApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; +} + +@BuiltValue(instantiable: false) abstract interface class $PollVoteInterface { String get actorDisplayName; String get actorId; @@ -18361,7 +20540,44 @@ class PollShowPollApiVersion extends EnumClass { static PollShowPollApiVersion valueOf(String name) => _$valueOfPollShowPollApiVersion(name); - static Serializer get serializer => _$pollShowPollApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$PollShowPollApiVersionSerializer(); +} + +class _$PollShowPollApiVersionSerializer implements PrimitiveSerializer { + const _$PollShowPollApiVersionSerializer(); + + static const Map _toWire = { + PollShowPollApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': PollShowPollApiVersion.v1, + }; + + @override + Iterable get types => const [PollShowPollApiVersion]; + + @override + String get wireName => 'PollShowPollApiVersion'; + + @override + Object serialize( + Serializers serializers, + PollShowPollApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + PollShowPollApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -18434,7 +20650,44 @@ class PollVotePollApiVersion extends EnumClass { static PollVotePollApiVersion valueOf(String name) => _$valueOfPollVotePollApiVersion(name); - static Serializer get serializer => _$pollVotePollApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$PollVotePollApiVersionSerializer(); +} + +class _$PollVotePollApiVersionSerializer implements PrimitiveSerializer { + const _$PollVotePollApiVersionSerializer(); + + static const Map _toWire = { + PollVotePollApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': PollVotePollApiVersion.v1, + }; + + @override + Iterable get types => const [PollVotePollApiVersion]; + + @override + String get wireName => 'PollVotePollApiVersion'; + + @override + Object serialize( + Serializers serializers, + PollVotePollApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + PollVotePollApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -18507,7 +20760,44 @@ class PollClosePollApiVersion extends EnumClass { static PollClosePollApiVersion valueOf(String name) => _$valueOfPollClosePollApiVersion(name); - static Serializer get serializer => _$pollClosePollApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$PollClosePollApiVersionSerializer(); +} + +class _$PollClosePollApiVersionSerializer implements PrimitiveSerializer { + const _$PollClosePollApiVersionSerializer(); + + static const Map _toWire = { + PollClosePollApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': PollClosePollApiVersion.v1, + }; + + @override + Iterable get types => const [PollClosePollApiVersion]; + + @override + String get wireName => 'PollClosePollApiVersion'; + + @override + Object serialize( + Serializers serializers, + PollClosePollApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + PollClosePollApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -18581,8 +20871,47 @@ class PublicShareAuthCreateRoomApiVersion extends EnumClass { static PublicShareAuthCreateRoomApiVersion valueOf(String name) => _$valueOfPublicShareAuthCreateRoomApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$publicShareAuthCreateRoomApiVersionSerializer; + const _$PublicShareAuthCreateRoomApiVersionSerializer(); +} + +class _$PublicShareAuthCreateRoomApiVersionSerializer + implements PrimitiveSerializer { + const _$PublicShareAuthCreateRoomApiVersionSerializer(); + + static const Map _toWire = { + PublicShareAuthCreateRoomApiVersion.v1: 'v1', + }; + + static const Map _fromWire = + { + 'v1': PublicShareAuthCreateRoomApiVersion.v1, + }; + + @override + Iterable get types => const [PublicShareAuthCreateRoomApiVersion]; + + @override + String get wireName => 'PublicShareAuthCreateRoomApiVersion'; + + @override + Object serialize( + Serializers serializers, + PublicShareAuthCreateRoomApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + PublicShareAuthCreateRoomApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -18692,7 +21021,45 @@ class ReactionGetReactionsApiVersion extends EnumClass { static ReactionGetReactionsApiVersion valueOf(String name) => _$valueOfReactionGetReactionsApiVersion(name); - static Serializer get serializer => _$reactionGetReactionsApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$ReactionGetReactionsApiVersionSerializer(); +} + +class _$ReactionGetReactionsApiVersionSerializer implements PrimitiveSerializer { + const _$ReactionGetReactionsApiVersionSerializer(); + + static const Map _toWire = { + ReactionGetReactionsApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': ReactionGetReactionsApiVersion.v1, + }; + + @override + Iterable get types => const [ReactionGetReactionsApiVersion]; + + @override + String get wireName => 'ReactionGetReactionsApiVersion'; + + @override + Object serialize( + Serializers serializers, + ReactionGetReactionsApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + ReactionGetReactionsApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -18793,7 +21160,44 @@ class ReactionReactApiVersion extends EnumClass { static ReactionReactApiVersion valueOf(String name) => _$valueOfReactionReactApiVersion(name); - static Serializer get serializer => _$reactionReactApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ReactionReactApiVersionSerializer(); +} + +class _$ReactionReactApiVersionSerializer implements PrimitiveSerializer { + const _$ReactionReactApiVersionSerializer(); + + static const Map _toWire = { + ReactionReactApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': ReactionReactApiVersion.v1, + }; + + @override + Iterable get types => const [ReactionReactApiVersion]; + + @override + String get wireName => 'ReactionReactApiVersion'; + + @override + Object serialize( + Serializers serializers, + ReactionReactApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + ReactionReactApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -18867,7 +21271,44 @@ class ReactionDeleteApiVersion extends EnumClass { static ReactionDeleteApiVersion valueOf(String name) => _$valueOfReactionDeleteApiVersion(name); - static Serializer get serializer => _$reactionDeleteApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ReactionDeleteApiVersionSerializer(); +} + +class _$ReactionDeleteApiVersionSerializer implements PrimitiveSerializer { + const _$ReactionDeleteApiVersionSerializer(); + + static const Map _toWire = { + ReactionDeleteApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': ReactionDeleteApiVersion.v1, + }; + + @override + Iterable get types => const [ReactionDeleteApiVersion]; + + @override + String get wireName => 'ReactionDeleteApiVersion'; + + @override + Object serialize( + Serializers serializers, + ReactionDeleteApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + ReactionDeleteApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -18942,8 +21383,48 @@ class RecordingGetWelcomeMessageApiVersion extends EnumClass { static RecordingGetWelcomeMessageApiVersion valueOf(String name) => _$valueOfRecordingGetWelcomeMessageApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$recordingGetWelcomeMessageApiVersionSerializer; + const _$RecordingGetWelcomeMessageApiVersionSerializer(); +} + +class _$RecordingGetWelcomeMessageApiVersionSerializer + implements PrimitiveSerializer { + const _$RecordingGetWelcomeMessageApiVersionSerializer(); + + static const Map _toWire = + { + RecordingGetWelcomeMessageApiVersion.v1: 'v1', + }; + + static const Map _fromWire = + { + 'v1': RecordingGetWelcomeMessageApiVersion.v1, + }; + + @override + Iterable get types => const [RecordingGetWelcomeMessageApiVersion]; + + @override + String get wireName => 'RecordingGetWelcomeMessageApiVersion'; + + @override + Object serialize( + Serializers serializers, + RecordingGetWelcomeMessageApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RecordingGetWelcomeMessageApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -19051,7 +21532,44 @@ class RecordingStartApiVersion extends EnumClass { static RecordingStartApiVersion valueOf(String name) => _$valueOfRecordingStartApiVersion(name); - static Serializer get serializer => _$recordingStartApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$RecordingStartApiVersionSerializer(); +} + +class _$RecordingStartApiVersionSerializer implements PrimitiveSerializer { + const _$RecordingStartApiVersionSerializer(); + + static const Map _toWire = { + RecordingStartApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': RecordingStartApiVersion.v1, + }; + + @override + Iterable get types => const [RecordingStartApiVersion]; + + @override + String get wireName => 'RecordingStartApiVersion'; + + @override + Object serialize( + Serializers serializers, + RecordingStartApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RecordingStartApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -19125,7 +21643,44 @@ class RecordingStopApiVersion extends EnumClass { static RecordingStopApiVersion valueOf(String name) => _$valueOfRecordingStopApiVersion(name); - static Serializer get serializer => _$recordingStopApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$RecordingStopApiVersionSerializer(); +} + +class _$RecordingStopApiVersionSerializer implements PrimitiveSerializer { + const _$RecordingStopApiVersionSerializer(); + + static const Map _toWire = { + RecordingStopApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': RecordingStopApiVersion.v1, + }; + + @override + Iterable get types => const [RecordingStopApiVersion]; + + @override + String get wireName => 'RecordingStopApiVersion'; + + @override + Object serialize( + Serializers serializers, + RecordingStopApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RecordingStopApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -19199,7 +21754,44 @@ class RecordingStoreApiVersion extends EnumClass { static RecordingStoreApiVersion valueOf(String name) => _$valueOfRecordingStoreApiVersion(name); - static Serializer get serializer => _$recordingStoreApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$RecordingStoreApiVersionSerializer(); +} + +class _$RecordingStoreApiVersionSerializer implements PrimitiveSerializer { + const _$RecordingStoreApiVersionSerializer(); + + static const Map _toWire = { + RecordingStoreApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': RecordingStoreApiVersion.v1, + }; + + @override + Iterable get types => const [RecordingStoreApiVersion]; + + @override + String get wireName => 'RecordingStoreApiVersion'; + + @override + Object serialize( + Serializers serializers, + RecordingStoreApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RecordingStoreApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -19274,8 +21866,48 @@ class RecordingNotificationDismissApiVersion extends EnumClass { static RecordingNotificationDismissApiVersion valueOf(String name) => _$valueOfRecordingNotificationDismissApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$recordingNotificationDismissApiVersionSerializer; + const _$RecordingNotificationDismissApiVersionSerializer(); +} + +class _$RecordingNotificationDismissApiVersionSerializer + implements PrimitiveSerializer { + const _$RecordingNotificationDismissApiVersionSerializer(); + + static const Map _toWire = + { + RecordingNotificationDismissApiVersion.v1: 'v1', + }; + + static const Map _fromWire = + { + 'v1': RecordingNotificationDismissApiVersion.v1, + }; + + @override + Iterable get types => const [RecordingNotificationDismissApiVersion]; + + @override + String get wireName => 'RecordingNotificationDismissApiVersion'; + + @override + Object serialize( + Serializers serializers, + RecordingNotificationDismissApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RecordingNotificationDismissApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -19352,7 +21984,45 @@ class RecordingShareToChatApiVersion extends EnumClass { static RecordingShareToChatApiVersion valueOf(String name) => _$valueOfRecordingShareToChatApiVersion(name); - static Serializer get serializer => _$recordingShareToChatApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$RecordingShareToChatApiVersionSerializer(); +} + +class _$RecordingShareToChatApiVersionSerializer implements PrimitiveSerializer { + const _$RecordingShareToChatApiVersionSerializer(); + + static const Map _toWire = { + RecordingShareToChatApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': RecordingShareToChatApiVersion.v1, + }; + + @override + Iterable get types => const [RecordingShareToChatApiVersion]; + + @override + String get wireName => 'RecordingShareToChatApiVersion'; + + @override + Object serialize( + Serializers serializers, + RecordingShareToChatApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RecordingShareToChatApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -19427,7 +22097,44 @@ class RoomGetRoomsApiVersion extends EnumClass { static RoomGetRoomsApiVersion valueOf(String name) => _$valueOfRoomGetRoomsApiVersion(name); - static Serializer get serializer => _$roomGetRoomsApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$RoomGetRoomsApiVersionSerializer(); +} + +class _$RoomGetRoomsApiVersionSerializer implements PrimitiveSerializer { + const _$RoomGetRoomsApiVersionSerializer(); + + static const Map _toWire = { + RoomGetRoomsApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomGetRoomsApiVersion.v4, + }; + + @override + Iterable get types => const [RoomGetRoomsApiVersion]; + + @override + String get wireName => 'RoomGetRoomsApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomGetRoomsApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomGetRoomsApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -19528,7 +22235,44 @@ class RoomCreateRoomApiVersion extends EnumClass { static RoomCreateRoomApiVersion valueOf(String name) => _$valueOfRoomCreateRoomApiVersion(name); - static Serializer get serializer => _$roomCreateRoomApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$RoomCreateRoomApiVersionSerializer(); +} + +class _$RoomCreateRoomApiVersionSerializer implements PrimitiveSerializer { + const _$RoomCreateRoomApiVersionSerializer(); + + static const Map _toWire = { + RoomCreateRoomApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomCreateRoomApiVersion.v4, + }; + + @override + Iterable get types => const [RoomCreateRoomApiVersion]; + + @override + String get wireName => 'RoomCreateRoomApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomCreateRoomApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomCreateRoomApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -19602,7 +22346,44 @@ class RoomGetListedRoomsApiVersion extends EnumClass { static RoomGetListedRoomsApiVersion valueOf(String name) => _$valueOfRoomGetListedRoomsApiVersion(name); - static Serializer get serializer => _$roomGetListedRoomsApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$RoomGetListedRoomsApiVersionSerializer(); +} + +class _$RoomGetListedRoomsApiVersionSerializer implements PrimitiveSerializer { + const _$RoomGetListedRoomsApiVersionSerializer(); + + static const Map _toWire = { + RoomGetListedRoomsApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomGetListedRoomsApiVersion.v4, + }; + + @override + Iterable get types => const [RoomGetListedRoomsApiVersion]; + + @override + String get wireName => 'RoomGetListedRoomsApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomGetListedRoomsApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomGetListedRoomsApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -19679,8 +22460,48 @@ class RoomGetNoteToSelfConversationApiVersion extends EnumClass { static RoomGetNoteToSelfConversationApiVersion valueOf(String name) => _$valueOfRoomGetNoteToSelfConversationApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$roomGetNoteToSelfConversationApiVersionSerializer; + const _$RoomGetNoteToSelfConversationApiVersionSerializer(); +} + +class _$RoomGetNoteToSelfConversationApiVersionSerializer + implements PrimitiveSerializer { + const _$RoomGetNoteToSelfConversationApiVersionSerializer(); + + static const Map _toWire = + { + RoomGetNoteToSelfConversationApiVersion.v4: 'v4', + }; + + static const Map _fromWire = + { + 'v4': RoomGetNoteToSelfConversationApiVersion.v4, + }; + + @override + Iterable get types => const [RoomGetNoteToSelfConversationApiVersion]; + + @override + String get wireName => 'RoomGetNoteToSelfConversationApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomGetNoteToSelfConversationApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomGetNoteToSelfConversationApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -19788,7 +22609,44 @@ class RoomGetSingleRoomApiVersion extends EnumClass { static RoomGetSingleRoomApiVersion valueOf(String name) => _$valueOfRoomGetSingleRoomApiVersion(name); - static Serializer get serializer => _$roomGetSingleRoomApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$RoomGetSingleRoomApiVersionSerializer(); +} + +class _$RoomGetSingleRoomApiVersionSerializer implements PrimitiveSerializer { + const _$RoomGetSingleRoomApiVersionSerializer(); + + static const Map _toWire = { + RoomGetSingleRoomApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomGetSingleRoomApiVersion.v4, + }; + + @override + Iterable get types => const [RoomGetSingleRoomApiVersion]; + + @override + String get wireName => 'RoomGetSingleRoomApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomGetSingleRoomApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomGetSingleRoomApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -19892,7 +22750,44 @@ class RoomRenameRoomApiVersion extends EnumClass { static RoomRenameRoomApiVersion valueOf(String name) => _$valueOfRoomRenameRoomApiVersion(name); - static Serializer get serializer => _$roomRenameRoomApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$RoomRenameRoomApiVersionSerializer(); +} + +class _$RoomRenameRoomApiVersionSerializer implements PrimitiveSerializer { + const _$RoomRenameRoomApiVersionSerializer(); + + static const Map _toWire = { + RoomRenameRoomApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomRenameRoomApiVersion.v4, + }; + + @override + Iterable get types => const [RoomRenameRoomApiVersion]; + + @override + String get wireName => 'RoomRenameRoomApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomRenameRoomApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomRenameRoomApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -19966,7 +22861,44 @@ class RoomDeleteRoomApiVersion extends EnumClass { static RoomDeleteRoomApiVersion valueOf(String name) => _$valueOfRoomDeleteRoomApiVersion(name); - static Serializer get serializer => _$roomDeleteRoomApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$RoomDeleteRoomApiVersionSerializer(); +} + +class _$RoomDeleteRoomApiVersionSerializer implements PrimitiveSerializer { + const _$RoomDeleteRoomApiVersionSerializer(); + + static const Map _toWire = { + RoomDeleteRoomApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomDeleteRoomApiVersion.v4, + }; + + @override + Iterable get types => const [RoomDeleteRoomApiVersion]; + + @override + String get wireName => 'RoomDeleteRoomApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomDeleteRoomApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomDeleteRoomApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -20040,7 +22972,45 @@ class RoomGetBreakoutRoomsApiVersion extends EnumClass { static RoomGetBreakoutRoomsApiVersion valueOf(String name) => _$valueOfRoomGetBreakoutRoomsApiVersion(name); - static Serializer get serializer => _$roomGetBreakoutRoomsApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$RoomGetBreakoutRoomsApiVersionSerializer(); +} + +class _$RoomGetBreakoutRoomsApiVersionSerializer implements PrimitiveSerializer { + const _$RoomGetBreakoutRoomsApiVersionSerializer(); + + static const Map _toWire = { + RoomGetBreakoutRoomsApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomGetBreakoutRoomsApiVersion.v4, + }; + + @override + Iterable get types => const [RoomGetBreakoutRoomsApiVersion]; + + @override + String get wireName => 'RoomGetBreakoutRoomsApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomGetBreakoutRoomsApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomGetBreakoutRoomsApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -20115,7 +23085,44 @@ class RoomMakePublicApiVersion extends EnumClass { static RoomMakePublicApiVersion valueOf(String name) => _$valueOfRoomMakePublicApiVersion(name); - static Serializer get serializer => _$roomMakePublicApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$RoomMakePublicApiVersionSerializer(); +} + +class _$RoomMakePublicApiVersionSerializer implements PrimitiveSerializer { + const _$RoomMakePublicApiVersionSerializer(); + + static const Map _toWire = { + RoomMakePublicApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomMakePublicApiVersion.v4, + }; + + @override + Iterable get types => const [RoomMakePublicApiVersion]; + + @override + String get wireName => 'RoomMakePublicApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomMakePublicApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomMakePublicApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -20189,7 +23196,44 @@ class RoomMakePrivateApiVersion extends EnumClass { static RoomMakePrivateApiVersion valueOf(String name) => _$valueOfRoomMakePrivateApiVersion(name); - static Serializer get serializer => _$roomMakePrivateApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$RoomMakePrivateApiVersionSerializer(); +} + +class _$RoomMakePrivateApiVersionSerializer implements PrimitiveSerializer { + const _$RoomMakePrivateApiVersionSerializer(); + + static const Map _toWire = { + RoomMakePrivateApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomMakePrivateApiVersion.v4, + }; + + @override + Iterable get types => const [RoomMakePrivateApiVersion]; + + @override + String get wireName => 'RoomMakePrivateApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomMakePrivateApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomMakePrivateApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -20263,7 +23307,44 @@ class RoomSetDescriptionApiVersion extends EnumClass { static RoomSetDescriptionApiVersion valueOf(String name) => _$valueOfRoomSetDescriptionApiVersion(name); - static Serializer get serializer => _$roomSetDescriptionApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$RoomSetDescriptionApiVersionSerializer(); +} + +class _$RoomSetDescriptionApiVersionSerializer implements PrimitiveSerializer { + const _$RoomSetDescriptionApiVersionSerializer(); + + static const Map _toWire = { + RoomSetDescriptionApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomSetDescriptionApiVersion.v4, + }; + + @override + Iterable get types => const [RoomSetDescriptionApiVersion]; + + @override + String get wireName => 'RoomSetDescriptionApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomSetDescriptionApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomSetDescriptionApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -20338,7 +23419,44 @@ class RoomSetReadOnlyApiVersion extends EnumClass { static RoomSetReadOnlyApiVersion valueOf(String name) => _$valueOfRoomSetReadOnlyApiVersion(name); - static Serializer get serializer => _$roomSetReadOnlyApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$RoomSetReadOnlyApiVersionSerializer(); +} + +class _$RoomSetReadOnlyApiVersionSerializer implements PrimitiveSerializer { + const _$RoomSetReadOnlyApiVersionSerializer(); + + static const Map _toWire = { + RoomSetReadOnlyApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomSetReadOnlyApiVersion.v4, + }; + + @override + Iterable get types => const [RoomSetReadOnlyApiVersion]; + + @override + String get wireName => 'RoomSetReadOnlyApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomSetReadOnlyApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomSetReadOnlyApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -20412,7 +23530,44 @@ class RoomSetListableApiVersion extends EnumClass { static RoomSetListableApiVersion valueOf(String name) => _$valueOfRoomSetListableApiVersion(name); - static Serializer get serializer => _$roomSetListableApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$RoomSetListableApiVersionSerializer(); +} + +class _$RoomSetListableApiVersionSerializer implements PrimitiveSerializer { + const _$RoomSetListableApiVersionSerializer(); + + static const Map _toWire = { + RoomSetListableApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomSetListableApiVersion.v4, + }; + + @override + Iterable get types => const [RoomSetListableApiVersion]; + + @override + String get wireName => 'RoomSetListableApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomSetListableApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomSetListableApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -20484,9 +23639,46 @@ class RoomSetPasswordApiVersion extends EnumClass { static BuiltSet get values => _$roomSetPasswordApiVersionValues; // coverage:ignore-end - static RoomSetPasswordApiVersion valueOf(String name) => _$valueOfRoomSetPasswordApiVersion(name); + static RoomSetPasswordApiVersion valueOf(String name) => _$valueOfRoomSetPasswordApiVersion(name); + + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$RoomSetPasswordApiVersionSerializer(); +} + +class _$RoomSetPasswordApiVersionSerializer implements PrimitiveSerializer { + const _$RoomSetPasswordApiVersionSerializer(); + + static const Map _toWire = { + RoomSetPasswordApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomSetPasswordApiVersion.v4, + }; + + @override + Iterable get types => const [RoomSetPasswordApiVersion]; + + @override + String get wireName => 'RoomSetPasswordApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomSetPasswordApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; - static Serializer get serializer => _$roomSetPasswordApiVersionSerializer; + @override + RoomSetPasswordApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -20560,7 +23752,44 @@ class RoomSetPermissionsApiVersion extends EnumClass { static RoomSetPermissionsApiVersion valueOf(String name) => _$valueOfRoomSetPermissionsApiVersion(name); - static Serializer get serializer => _$roomSetPermissionsApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$RoomSetPermissionsApiVersionSerializer(); +} + +class _$RoomSetPermissionsApiVersionSerializer implements PrimitiveSerializer { + const _$RoomSetPermissionsApiVersionSerializer(); + + static const Map _toWire = { + RoomSetPermissionsApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomSetPermissionsApiVersion.v4, + }; + + @override + Iterable get types => const [RoomSetPermissionsApiVersion]; + + @override + String get wireName => 'RoomSetPermissionsApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomSetPermissionsApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomSetPermissionsApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -20635,7 +23864,44 @@ class RoomGetParticipantsApiVersion extends EnumClass { static RoomGetParticipantsApiVersion valueOf(String name) => _$valueOfRoomGetParticipantsApiVersion(name); - static Serializer get serializer => _$roomGetParticipantsApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$RoomGetParticipantsApiVersionSerializer(); +} + +class _$RoomGetParticipantsApiVersionSerializer implements PrimitiveSerializer { + const _$RoomGetParticipantsApiVersionSerializer(); + + static const Map _toWire = { + RoomGetParticipantsApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomGetParticipantsApiVersion.v4, + }; + + @override + Iterable get types => const [RoomGetParticipantsApiVersion]; + + @override + String get wireName => 'RoomGetParticipantsApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomGetParticipantsApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomGetParticipantsApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -20779,8 +24045,46 @@ class RoomAddParticipantToRoomApiVersion extends EnumClass { static RoomAddParticipantToRoomApiVersion valueOf(String name) => _$valueOfRoomAddParticipantToRoomApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$roomAddParticipantToRoomApiVersionSerializer; + const _$RoomAddParticipantToRoomApiVersionSerializer(); +} + +class _$RoomAddParticipantToRoomApiVersionSerializer + implements PrimitiveSerializer { + const _$RoomAddParticipantToRoomApiVersionSerializer(); + + static const Map _toWire = { + RoomAddParticipantToRoomApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomAddParticipantToRoomApiVersion.v4, + }; + + @override + Iterable get types => const [RoomAddParticipantToRoomApiVersion]; + + @override + String get wireName => 'RoomAddParticipantToRoomApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomAddParticipantToRoomApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomAddParticipantToRoomApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -20894,8 +24198,48 @@ class RoomGetBreakoutRoomParticipantsApiVersion extends EnumClass { static RoomGetBreakoutRoomParticipantsApiVersion valueOf(String name) => _$valueOfRoomGetBreakoutRoomParticipantsApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$roomGetBreakoutRoomParticipantsApiVersionSerializer; + const _$RoomGetBreakoutRoomParticipantsApiVersionSerializer(); +} + +class _$RoomGetBreakoutRoomParticipantsApiVersionSerializer + implements PrimitiveSerializer { + const _$RoomGetBreakoutRoomParticipantsApiVersionSerializer(); + + static const Map _toWire = + { + RoomGetBreakoutRoomParticipantsApiVersion.v4: 'v4', + }; + + static const Map _fromWire = + { + 'v4': RoomGetBreakoutRoomParticipantsApiVersion.v4, + }; + + @override + Iterable get types => const [RoomGetBreakoutRoomParticipantsApiVersion]; + + @override + String get wireName => 'RoomGetBreakoutRoomParticipantsApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomGetBreakoutRoomParticipantsApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomGetBreakoutRoomParticipantsApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -21003,7 +24347,45 @@ class RoomRemoveSelfFromRoomApiVersion extends EnumClass { static RoomRemoveSelfFromRoomApiVersion valueOf(String name) => _$valueOfRoomRemoveSelfFromRoomApiVersion(name); - static Serializer get serializer => _$roomRemoveSelfFromRoomApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$RoomRemoveSelfFromRoomApiVersionSerializer(); +} + +class _$RoomRemoveSelfFromRoomApiVersionSerializer implements PrimitiveSerializer { + const _$RoomRemoveSelfFromRoomApiVersionSerializer(); + + static const Map _toWire = { + RoomRemoveSelfFromRoomApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomRemoveSelfFromRoomApiVersion.v4, + }; + + @override + Iterable get types => const [RoomRemoveSelfFromRoomApiVersion]; + + @override + String get wireName => 'RoomRemoveSelfFromRoomApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomRemoveSelfFromRoomApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomRemoveSelfFromRoomApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -21080,8 +24462,48 @@ class RoomRemoveAttendeeFromRoomApiVersion extends EnumClass { static RoomRemoveAttendeeFromRoomApiVersion valueOf(String name) => _$valueOfRoomRemoveAttendeeFromRoomApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$roomRemoveAttendeeFromRoomApiVersionSerializer; + const _$RoomRemoveAttendeeFromRoomApiVersionSerializer(); +} + +class _$RoomRemoveAttendeeFromRoomApiVersionSerializer + implements PrimitiveSerializer { + const _$RoomRemoveAttendeeFromRoomApiVersionSerializer(); + + static const Map _toWire = + { + RoomRemoveAttendeeFromRoomApiVersion.v4: 'v4', + }; + + static const Map _fromWire = + { + 'v4': RoomRemoveAttendeeFromRoomApiVersion.v4, + }; + + @override + Iterable get types => const [RoomRemoveAttendeeFromRoomApiVersion]; + + @override + String get wireName => 'RoomRemoveAttendeeFromRoomApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomRemoveAttendeeFromRoomApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomRemoveAttendeeFromRoomApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -21159,8 +24581,48 @@ class RoomSetAttendeePermissionsApiVersion extends EnumClass { static RoomSetAttendeePermissionsApiVersion valueOf(String name) => _$valueOfRoomSetAttendeePermissionsApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$roomSetAttendeePermissionsApiVersionSerializer; + const _$RoomSetAttendeePermissionsApiVersionSerializer(); +} + +class _$RoomSetAttendeePermissionsApiVersionSerializer + implements PrimitiveSerializer { + const _$RoomSetAttendeePermissionsApiVersionSerializer(); + + static const Map _toWire = + { + RoomSetAttendeePermissionsApiVersion.v4: 'v4', + }; + + static const Map _fromWire = + { + 'v4': RoomSetAttendeePermissionsApiVersion.v4, + }; + + @override + Iterable get types => const [RoomSetAttendeePermissionsApiVersion]; + + @override + String get wireName => 'RoomSetAttendeePermissionsApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomSetAttendeePermissionsApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomSetAttendeePermissionsApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -21239,8 +24701,48 @@ class RoomSetAllAttendeesPermissionsApiVersion extends EnumClass { static RoomSetAllAttendeesPermissionsApiVersion valueOf(String name) => _$valueOfRoomSetAllAttendeesPermissionsApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$roomSetAllAttendeesPermissionsApiVersionSerializer; + const _$RoomSetAllAttendeesPermissionsApiVersionSerializer(); +} + +class _$RoomSetAllAttendeesPermissionsApiVersionSerializer + implements PrimitiveSerializer { + const _$RoomSetAllAttendeesPermissionsApiVersionSerializer(); + + static const Map _toWire = + { + RoomSetAllAttendeesPermissionsApiVersion.v4: 'v4', + }; + + static const Map _fromWire = + { + 'v4': RoomSetAllAttendeesPermissionsApiVersion.v4, + }; + + @override + Iterable get types => const [RoomSetAllAttendeesPermissionsApiVersion]; + + @override + String get wireName => 'RoomSetAllAttendeesPermissionsApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomSetAllAttendeesPermissionsApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomSetAllAttendeesPermissionsApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -21317,7 +24819,44 @@ class RoomJoinRoomApiVersion extends EnumClass { static RoomJoinRoomApiVersion valueOf(String name) => _$valueOfRoomJoinRoomApiVersion(name); - static Serializer get serializer => _$roomJoinRoomApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$RoomJoinRoomApiVersionSerializer(); +} + +class _$RoomJoinRoomApiVersionSerializer implements PrimitiveSerializer { + const _$RoomJoinRoomApiVersionSerializer(); + + static const Map _toWire = { + RoomJoinRoomApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomJoinRoomApiVersion.v4, + }; + + @override + Iterable get types => const [RoomJoinRoomApiVersion]; + + @override + String get wireName => 'RoomJoinRoomApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomJoinRoomApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomJoinRoomApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -21390,7 +24929,44 @@ class RoomLeaveRoomApiVersion extends EnumClass { static RoomLeaveRoomApiVersion valueOf(String name) => _$valueOfRoomLeaveRoomApiVersion(name); - static Serializer get serializer => _$roomLeaveRoomApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$RoomLeaveRoomApiVersionSerializer(); +} + +class _$RoomLeaveRoomApiVersionSerializer implements PrimitiveSerializer { + const _$RoomLeaveRoomApiVersionSerializer(); + + static const Map _toWire = { + RoomLeaveRoomApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomLeaveRoomApiVersion.v4, + }; + + @override + Iterable get types => const [RoomLeaveRoomApiVersion]; + + @override + String get wireName => 'RoomLeaveRoomApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomLeaveRoomApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomLeaveRoomApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -21464,7 +25040,45 @@ class RoomResendInvitationsApiVersion extends EnumClass { static RoomResendInvitationsApiVersion valueOf(String name) => _$valueOfRoomResendInvitationsApiVersion(name); - static Serializer get serializer => _$roomResendInvitationsApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$RoomResendInvitationsApiVersionSerializer(); +} + +class _$RoomResendInvitationsApiVersionSerializer implements PrimitiveSerializer { + const _$RoomResendInvitationsApiVersionSerializer(); + + static const Map _toWire = { + RoomResendInvitationsApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomResendInvitationsApiVersion.v4, + }; + + @override + Iterable get types => const [RoomResendInvitationsApiVersion]; + + @override + String get wireName => 'RoomResendInvitationsApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomResendInvitationsApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomResendInvitationsApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -21540,7 +25154,44 @@ class RoomSetSessionStateApiVersion extends EnumClass { static RoomSetSessionStateApiVersion valueOf(String name) => _$valueOfRoomSetSessionStateApiVersion(name); - static Serializer get serializer => _$roomSetSessionStateApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$RoomSetSessionStateApiVersionSerializer(); +} + +class _$RoomSetSessionStateApiVersionSerializer implements PrimitiveSerializer { + const _$RoomSetSessionStateApiVersionSerializer(); + + static const Map _toWire = { + RoomSetSessionStateApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomSetSessionStateApiVersion.v4, + }; + + @override + Iterable get types => const [RoomSetSessionStateApiVersion]; + + @override + String get wireName => 'RoomSetSessionStateApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomSetSessionStateApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomSetSessionStateApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -21615,7 +25266,45 @@ class RoomPromoteModeratorApiVersion extends EnumClass { static RoomPromoteModeratorApiVersion valueOf(String name) => _$valueOfRoomPromoteModeratorApiVersion(name); - static Serializer get serializer => _$roomPromoteModeratorApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$RoomPromoteModeratorApiVersionSerializer(); +} + +class _$RoomPromoteModeratorApiVersionSerializer implements PrimitiveSerializer { + const _$RoomPromoteModeratorApiVersionSerializer(); + + static const Map _toWire = { + RoomPromoteModeratorApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomPromoteModeratorApiVersion.v4, + }; + + @override + Iterable get types => const [RoomPromoteModeratorApiVersion]; + + @override + String get wireName => 'RoomPromoteModeratorApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomPromoteModeratorApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomPromoteModeratorApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -21690,7 +25379,44 @@ class RoomDemoteModeratorApiVersion extends EnumClass { static RoomDemoteModeratorApiVersion valueOf(String name) => _$valueOfRoomDemoteModeratorApiVersion(name); - static Serializer get serializer => _$roomDemoteModeratorApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$RoomDemoteModeratorApiVersionSerializer(); +} + +class _$RoomDemoteModeratorApiVersionSerializer implements PrimitiveSerializer { + const _$RoomDemoteModeratorApiVersionSerializer(); + + static const Map _toWire = { + RoomDemoteModeratorApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomDemoteModeratorApiVersion.v4, + }; + + @override + Iterable get types => const [RoomDemoteModeratorApiVersion]; + + @override + String get wireName => 'RoomDemoteModeratorApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomDemoteModeratorApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomDemoteModeratorApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -21765,7 +25491,44 @@ class RoomAddToFavoritesApiVersion extends EnumClass { static RoomAddToFavoritesApiVersion valueOf(String name) => _$valueOfRoomAddToFavoritesApiVersion(name); - static Serializer get serializer => _$roomAddToFavoritesApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$RoomAddToFavoritesApiVersionSerializer(); +} + +class _$RoomAddToFavoritesApiVersionSerializer implements PrimitiveSerializer { + const _$RoomAddToFavoritesApiVersionSerializer(); + + static const Map _toWire = { + RoomAddToFavoritesApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomAddToFavoritesApiVersion.v4, + }; + + @override + Iterable get types => const [RoomAddToFavoritesApiVersion]; + + @override + String get wireName => 'RoomAddToFavoritesApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomAddToFavoritesApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomAddToFavoritesApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -21840,7 +25603,45 @@ class RoomRemoveFromFavoritesApiVersion extends EnumClass { static RoomRemoveFromFavoritesApiVersion valueOf(String name) => _$valueOfRoomRemoveFromFavoritesApiVersion(name); - static Serializer get serializer => _$roomRemoveFromFavoritesApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$RoomRemoveFromFavoritesApiVersionSerializer(); +} + +class _$RoomRemoveFromFavoritesApiVersionSerializer implements PrimitiveSerializer { + const _$RoomRemoveFromFavoritesApiVersionSerializer(); + + static const Map _toWire = { + RoomRemoveFromFavoritesApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomRemoveFromFavoritesApiVersion.v4, + }; + + @override + Iterable get types => const [RoomRemoveFromFavoritesApiVersion]; + + @override + String get wireName => 'RoomRemoveFromFavoritesApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomRemoveFromFavoritesApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomRemoveFromFavoritesApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -21916,8 +25717,46 @@ class RoomSetNotificationLevelApiVersion extends EnumClass { static RoomSetNotificationLevelApiVersion valueOf(String name) => _$valueOfRoomSetNotificationLevelApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$roomSetNotificationLevelApiVersionSerializer; + const _$RoomSetNotificationLevelApiVersionSerializer(); +} + +class _$RoomSetNotificationLevelApiVersionSerializer + implements PrimitiveSerializer { + const _$RoomSetNotificationLevelApiVersionSerializer(); + + static const Map _toWire = { + RoomSetNotificationLevelApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomSetNotificationLevelApiVersion.v4, + }; + + @override + Iterable get types => const [RoomSetNotificationLevelApiVersion]; + + @override + String get wireName => 'RoomSetNotificationLevelApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomSetNotificationLevelApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomSetNotificationLevelApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -21993,8 +25832,46 @@ class RoomSetNotificationCallsApiVersion extends EnumClass { static RoomSetNotificationCallsApiVersion valueOf(String name) => _$valueOfRoomSetNotificationCallsApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$roomSetNotificationCallsApiVersionSerializer; + const _$RoomSetNotificationCallsApiVersionSerializer(); +} + +class _$RoomSetNotificationCallsApiVersionSerializer + implements PrimitiveSerializer { + const _$RoomSetNotificationCallsApiVersionSerializer(); + + static const Map _toWire = { + RoomSetNotificationCallsApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomSetNotificationCallsApiVersion.v4, + }; + + @override + Iterable get types => const [RoomSetNotificationCallsApiVersion]; + + @override + String get wireName => 'RoomSetNotificationCallsApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomSetNotificationCallsApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomSetNotificationCallsApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -22070,7 +25947,44 @@ class RoomSetLobbyApiVersion extends EnumClass { static RoomSetLobbyApiVersion valueOf(String name) => _$valueOfRoomSetLobbyApiVersion(name); - static Serializer get serializer => _$roomSetLobbyApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$RoomSetLobbyApiVersionSerializer(); +} + +class _$RoomSetLobbyApiVersionSerializer implements PrimitiveSerializer { + const _$RoomSetLobbyApiVersionSerializer(); + + static const Map _toWire = { + RoomSetLobbyApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomSetLobbyApiVersion.v4, + }; + + @override + Iterable get types => const [RoomSetLobbyApiVersion]; + + @override + String get wireName => 'RoomSetLobbyApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomSetLobbyApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomSetLobbyApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -22143,7 +26057,44 @@ class RoomSetsipEnabledApiVersion extends EnumClass { static RoomSetsipEnabledApiVersion valueOf(String name) => _$valueOfRoomSetsipEnabledApiVersion(name); - static Serializer get serializer => _$roomSetsipEnabledApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$RoomSetsipEnabledApiVersionSerializer(); +} + +class _$RoomSetsipEnabledApiVersionSerializer implements PrimitiveSerializer { + const _$RoomSetsipEnabledApiVersionSerializer(); + + static const Map _toWire = { + RoomSetsipEnabledApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomSetsipEnabledApiVersion.v4, + }; + + @override + Iterable get types => const [RoomSetsipEnabledApiVersion]; + + @override + String get wireName => 'RoomSetsipEnabledApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomSetsipEnabledApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomSetsipEnabledApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -22218,7 +26169,45 @@ class RoomSetRecordingConsentApiVersion extends EnumClass { static RoomSetRecordingConsentApiVersion valueOf(String name) => _$valueOfRoomSetRecordingConsentApiVersion(name); - static Serializer get serializer => _$roomSetRecordingConsentApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$RoomSetRecordingConsentApiVersionSerializer(); +} + +class _$RoomSetRecordingConsentApiVersionSerializer implements PrimitiveSerializer { + const _$RoomSetRecordingConsentApiVersionSerializer(); + + static const Map _toWire = { + RoomSetRecordingConsentApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomSetRecordingConsentApiVersion.v4, + }; + + @override + Iterable get types => const [RoomSetRecordingConsentApiVersion]; + + @override + String get wireName => 'RoomSetRecordingConsentApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomSetRecordingConsentApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomSetRecordingConsentApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -22294,8 +26283,46 @@ class RoomSetMessageExpirationApiVersion extends EnumClass { static RoomSetMessageExpirationApiVersion valueOf(String name) => _$valueOfRoomSetMessageExpirationApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$roomSetMessageExpirationApiVersionSerializer; + const _$RoomSetMessageExpirationApiVersionSerializer(); +} + +class _$RoomSetMessageExpirationApiVersionSerializer + implements PrimitiveSerializer { + const _$RoomSetMessageExpirationApiVersionSerializer(); + + static const Map _toWire = { + RoomSetMessageExpirationApiVersion.v4: 'v4', + }; + + static const Map _fromWire = { + 'v4': RoomSetMessageExpirationApiVersion.v4, + }; + + @override + Iterable get types => const [RoomSetMessageExpirationApiVersion]; + + @override + String get wireName => 'RoomSetMessageExpirationApiVersion'; + + @override + Object serialize( + Serializers serializers, + RoomSetMessageExpirationApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + RoomSetMessageExpirationApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -22371,7 +26398,45 @@ class SettingsSetsipSettingsApiVersion extends EnumClass { static SettingsSetsipSettingsApiVersion valueOf(String name) => _$valueOfSettingsSetsipSettingsApiVersion(name); - static Serializer get serializer => _$settingsSetsipSettingsApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$SettingsSetsipSettingsApiVersionSerializer(); +} + +class _$SettingsSetsipSettingsApiVersionSerializer implements PrimitiveSerializer { + const _$SettingsSetsipSettingsApiVersionSerializer(); + + static const Map _toWire = { + SettingsSetsipSettingsApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': SettingsSetsipSettingsApiVersion.v1, + }; + + @override + Iterable get types => const [SettingsSetsipSettingsApiVersion]; + + @override + String get wireName => 'SettingsSetsipSettingsApiVersion'; + + @override + Object serialize( + Serializers serializers, + SettingsSetsipSettingsApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + SettingsSetsipSettingsApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -22447,7 +26512,45 @@ class SettingsSetUserSettingApiVersion extends EnumClass { static SettingsSetUserSettingApiVersion valueOf(String name) => _$valueOfSettingsSetUserSettingApiVersion(name); - static Serializer get serializer => _$settingsSetUserSettingApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$SettingsSetUserSettingApiVersionSerializer(); +} + +class _$SettingsSetUserSettingApiVersionSerializer implements PrimitiveSerializer { + const _$SettingsSetUserSettingApiVersionSerializer(); + + static const Map _toWire = { + SettingsSetUserSettingApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': SettingsSetUserSettingApiVersion.v1, + }; + + @override + Iterable get types => const [SettingsSetUserSettingApiVersion]; + + @override + String get wireName => 'SettingsSetUserSettingApiVersion'; + + @override + Object serialize( + Serializers serializers, + SettingsSetUserSettingApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + SettingsSetUserSettingApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -22523,7 +26626,45 @@ class SignalingGetSettingsApiVersion extends EnumClass { static SignalingGetSettingsApiVersion valueOf(String name) => _$valueOfSignalingGetSettingsApiVersion(name); - static Serializer get serializer => _$signalingGetSettingsApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$SignalingGetSettingsApiVersionSerializer(); +} + +class _$SignalingGetSettingsApiVersionSerializer implements PrimitiveSerializer { + const _$SignalingGetSettingsApiVersionSerializer(); + + static const Map _toWire = { + SignalingGetSettingsApiVersion.v3: 'v3', + }; + + static const Map _fromWire = { + 'v3': SignalingGetSettingsApiVersion.v3, + }; + + @override + Iterable get types => const [SignalingGetSettingsApiVersion]; + + @override + String get wireName => 'SignalingGetSettingsApiVersion'; + + @override + Object serialize( + Serializers serializers, + SignalingGetSettingsApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + SignalingGetSettingsApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -22779,8 +26920,48 @@ class SignalingGetWelcomeMessageApiVersion extends EnumClass { static SignalingGetWelcomeMessageApiVersion valueOf(String name) => _$valueOfSignalingGetWelcomeMessageApiVersion(name); + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$signalingGetWelcomeMessageApiVersionSerializer; + const _$SignalingGetWelcomeMessageApiVersionSerializer(); +} + +class _$SignalingGetWelcomeMessageApiVersionSerializer + implements PrimitiveSerializer { + const _$SignalingGetWelcomeMessageApiVersionSerializer(); + + static const Map _toWire = + { + SignalingGetWelcomeMessageApiVersion.v3: 'v3', + }; + + static const Map _fromWire = + { + 'v3': SignalingGetWelcomeMessageApiVersion.v3, + }; + + @override + Iterable get types => const [SignalingGetWelcomeMessageApiVersion]; + + @override + String get wireName => 'SignalingGetWelcomeMessageApiVersion'; + + @override + Object serialize( + Serializers serializers, + SignalingGetWelcomeMessageApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + SignalingGetWelcomeMessageApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -22857,7 +27038,45 @@ class SignalingPullMessagesApiVersion extends EnumClass { static SignalingPullMessagesApiVersion valueOf(String name) => _$valueOfSignalingPullMessagesApiVersion(name); - static Serializer get serializer => _$signalingPullMessagesApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$SignalingPullMessagesApiVersionSerializer(); +} + +class _$SignalingPullMessagesApiVersionSerializer implements PrimitiveSerializer { + const _$SignalingPullMessagesApiVersionSerializer(); + + static const Map _toWire = { + SignalingPullMessagesApiVersion.v3: 'v3', + }; + + static const Map _fromWire = { + 'v3': SignalingPullMessagesApiVersion.v3, + }; + + @override + Iterable get types => const [SignalingPullMessagesApiVersion]; + + @override + String get wireName => 'SignalingPullMessagesApiVersion'; + + @override + Object serialize( + Serializers serializers, + SignalingPullMessagesApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + SignalingPullMessagesApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -22999,7 +27218,45 @@ class SignalingSendMessagesApiVersion extends EnumClass { static SignalingSendMessagesApiVersion valueOf(String name) => _$valueOfSignalingSendMessagesApiVersion(name); - static Serializer get serializer => _$signalingSendMessagesApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$SignalingSendMessagesApiVersionSerializer(); +} + +class _$SignalingSendMessagesApiVersionSerializer implements PrimitiveSerializer { + const _$SignalingSendMessagesApiVersionSerializer(); + + static const Map _toWire = { + SignalingSendMessagesApiVersion.v3: 'v3', + }; + + static const Map _fromWire = { + 'v3': SignalingSendMessagesApiVersion.v3, + }; + + @override + Iterable get types => const [SignalingSendMessagesApiVersion]; + + @override + String get wireName => 'SignalingSendMessagesApiVersion'; + + @override + Object serialize( + Serializers serializers, + SignalingSendMessagesApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + SignalingSendMessagesApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) diff --git a/packages/nextcloud/lib/src/api/spreed.openapi.g.dart b/packages/nextcloud/lib/src/api/spreed.openapi.g.dart index dcd5a6b016b..e89d434f3af 100644 --- a/packages/nextcloud/lib/src/api/spreed.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/spreed.openapi.g.dart @@ -1837,9 +1837,6 @@ final BuiltSet _$signalingSendMessagesApiVersio _$signalingSendMessagesApiVersionV3, ]); -Serializer _$avatarGetAvatarApiVersionSerializer = _$AvatarGetAvatarApiVersionSerializer(); -Serializer _$avatarUploadAvatarApiVersionSerializer = - _$AvatarUploadAvatarApiVersionSerializer(); Serializer _$oCSMetaSerializer = _$OCSMetaSerializer(); Serializer _$chatMessageSerializer = _$ChatMessageSerializer(); Serializer _$roomSerializer = _$RoomSerializer(); @@ -1847,170 +1844,125 @@ Serializer _$avatarUploadAvatarRe _$AvatarUploadAvatarResponseApplicationJson_OcsSerializer(); Serializer _$avatarUploadAvatarResponseApplicationJsonSerializer = _$AvatarUploadAvatarResponseApplicationJsonSerializer(); -Serializer _$avatarDeleteAvatarApiVersionSerializer = - _$AvatarDeleteAvatarApiVersionSerializer(); Serializer _$avatarDeleteAvatarResponseApplicationJsonOcsSerializer = _$AvatarDeleteAvatarResponseApplicationJson_OcsSerializer(); Serializer _$avatarDeleteAvatarResponseApplicationJsonSerializer = _$AvatarDeleteAvatarResponseApplicationJsonSerializer(); -Serializer _$avatarEmojiAvatarApiVersionSerializer = - _$AvatarEmojiAvatarApiVersionSerializer(); Serializer _$avatarEmojiAvatarResponseApplicationJsonOcsSerializer = _$AvatarEmojiAvatarResponseApplicationJson_OcsSerializer(); Serializer _$avatarEmojiAvatarResponseApplicationJsonSerializer = _$AvatarEmojiAvatarResponseApplicationJsonSerializer(); -Serializer _$avatarGetAvatarDarkApiVersionSerializer = - _$AvatarGetAvatarDarkApiVersionSerializer(); -Serializer _$botSendMessageApiVersionSerializer = _$BotSendMessageApiVersionSerializer(); Serializer _$botSendMessageResponseApplicationJsonOcsSerializer = _$BotSendMessageResponseApplicationJson_OcsSerializer(); Serializer _$botSendMessageResponseApplicationJsonSerializer = _$BotSendMessageResponseApplicationJsonSerializer(); -Serializer _$botReactApiVersionSerializer = _$BotReactApiVersionSerializer(); Serializer _$botReactResponseApplicationJsonOcsSerializer = _$BotReactResponseApplicationJson_OcsSerializer(); Serializer _$botReactResponseApplicationJsonSerializer = _$BotReactResponseApplicationJsonSerializer(); -Serializer _$botDeleteReactionApiVersionSerializer = - _$BotDeleteReactionApiVersionSerializer(); Serializer _$botDeleteReactionResponseApplicationJsonOcsSerializer = _$BotDeleteReactionResponseApplicationJson_OcsSerializer(); Serializer _$botDeleteReactionResponseApplicationJsonSerializer = _$BotDeleteReactionResponseApplicationJsonSerializer(); -Serializer _$botAdminListBotsApiVersionSerializer = - _$BotAdminListBotsApiVersionSerializer(); Serializer _$botSerializer = _$BotSerializer(); Serializer _$botWithDetailsSerializer = _$BotWithDetailsSerializer(); Serializer _$botAdminListBotsResponseApplicationJsonOcsSerializer = _$BotAdminListBotsResponseApplicationJson_OcsSerializer(); Serializer _$botAdminListBotsResponseApplicationJsonSerializer = _$BotAdminListBotsResponseApplicationJsonSerializer(); -Serializer _$botListBotsApiVersionSerializer = _$BotListBotsApiVersionSerializer(); Serializer _$botListBotsResponseApplicationJsonOcsSerializer = _$BotListBotsResponseApplicationJson_OcsSerializer(); Serializer _$botListBotsResponseApplicationJsonSerializer = _$BotListBotsResponseApplicationJsonSerializer(); -Serializer _$botEnableBotApiVersionSerializer = _$BotEnableBotApiVersionSerializer(); Serializer _$botEnableBotResponseApplicationJsonOcsSerializer = _$BotEnableBotResponseApplicationJson_OcsSerializer(); Serializer _$botEnableBotResponseApplicationJsonSerializer = _$BotEnableBotResponseApplicationJsonSerializer(); -Serializer _$botDisableBotApiVersionSerializer = _$BotDisableBotApiVersionSerializer(); Serializer _$botDisableBotResponseApplicationJsonOcsSerializer = _$BotDisableBotResponseApplicationJson_OcsSerializer(); Serializer _$botDisableBotResponseApplicationJsonSerializer = _$BotDisableBotResponseApplicationJsonSerializer(); -Serializer _$breakoutRoomConfigureBreakoutRoomsApiVersionSerializer = - _$BreakoutRoomConfigureBreakoutRoomsApiVersionSerializer(); Serializer _$breakoutRoomConfigureBreakoutRoomsResponseApplicationJsonOcsSerializer = _$BreakoutRoomConfigureBreakoutRoomsResponseApplicationJson_OcsSerializer(); Serializer _$breakoutRoomConfigureBreakoutRoomsResponseApplicationJsonSerializer = _$BreakoutRoomConfigureBreakoutRoomsResponseApplicationJsonSerializer(); -Serializer _$breakoutRoomRemoveBreakoutRoomsApiVersionSerializer = - _$BreakoutRoomRemoveBreakoutRoomsApiVersionSerializer(); Serializer _$breakoutRoomRemoveBreakoutRoomsResponseApplicationJsonOcsSerializer = _$BreakoutRoomRemoveBreakoutRoomsResponseApplicationJson_OcsSerializer(); Serializer _$breakoutRoomRemoveBreakoutRoomsResponseApplicationJsonSerializer = _$BreakoutRoomRemoveBreakoutRoomsResponseApplicationJsonSerializer(); -Serializer _$breakoutRoomBroadcastChatMessageApiVersionSerializer = - _$BreakoutRoomBroadcastChatMessageApiVersionSerializer(); Serializer _$breakoutRoomBroadcastChatMessageResponseApplicationJsonOcsSerializer = _$BreakoutRoomBroadcastChatMessageResponseApplicationJson_OcsSerializer(); Serializer _$breakoutRoomBroadcastChatMessageResponseApplicationJsonSerializer = _$BreakoutRoomBroadcastChatMessageResponseApplicationJsonSerializer(); -Serializer _$breakoutRoomApplyAttendeeMapApiVersionSerializer = - _$BreakoutRoomApplyAttendeeMapApiVersionSerializer(); Serializer _$breakoutRoomApplyAttendeeMapResponseApplicationJsonOcsSerializer = _$BreakoutRoomApplyAttendeeMapResponseApplicationJson_OcsSerializer(); Serializer _$breakoutRoomApplyAttendeeMapResponseApplicationJsonSerializer = _$BreakoutRoomApplyAttendeeMapResponseApplicationJsonSerializer(); -Serializer _$breakoutRoomRequestAssistanceApiVersionSerializer = - _$BreakoutRoomRequestAssistanceApiVersionSerializer(); Serializer _$breakoutRoomRequestAssistanceResponseApplicationJsonOcsSerializer = _$BreakoutRoomRequestAssistanceResponseApplicationJson_OcsSerializer(); Serializer _$breakoutRoomRequestAssistanceResponseApplicationJsonSerializer = _$BreakoutRoomRequestAssistanceResponseApplicationJsonSerializer(); -Serializer - _$breakoutRoomResetRequestForAssistanceApiVersionSerializer = - _$BreakoutRoomResetRequestForAssistanceApiVersionSerializer(); Serializer _$breakoutRoomResetRequestForAssistanceResponseApplicationJsonOcsSerializer = _$BreakoutRoomResetRequestForAssistanceResponseApplicationJson_OcsSerializer(); Serializer _$breakoutRoomResetRequestForAssistanceResponseApplicationJsonSerializer = _$BreakoutRoomResetRequestForAssistanceResponseApplicationJsonSerializer(); -Serializer _$breakoutRoomStartBreakoutRoomsApiVersionSerializer = - _$BreakoutRoomStartBreakoutRoomsApiVersionSerializer(); Serializer _$breakoutRoomStartBreakoutRoomsResponseApplicationJsonOcsSerializer = _$BreakoutRoomStartBreakoutRoomsResponseApplicationJson_OcsSerializer(); Serializer _$breakoutRoomStartBreakoutRoomsResponseApplicationJsonSerializer = _$BreakoutRoomStartBreakoutRoomsResponseApplicationJsonSerializer(); -Serializer _$breakoutRoomStopBreakoutRoomsApiVersionSerializer = - _$BreakoutRoomStopBreakoutRoomsApiVersionSerializer(); Serializer _$breakoutRoomStopBreakoutRoomsResponseApplicationJsonOcsSerializer = _$BreakoutRoomStopBreakoutRoomsResponseApplicationJson_OcsSerializer(); Serializer _$breakoutRoomStopBreakoutRoomsResponseApplicationJsonSerializer = _$BreakoutRoomStopBreakoutRoomsResponseApplicationJsonSerializer(); -Serializer _$breakoutRoomSwitchBreakoutRoomApiVersionSerializer = - _$BreakoutRoomSwitchBreakoutRoomApiVersionSerializer(); Serializer _$breakoutRoomSwitchBreakoutRoomResponseApplicationJsonOcsSerializer = _$BreakoutRoomSwitchBreakoutRoomResponseApplicationJson_OcsSerializer(); Serializer _$breakoutRoomSwitchBreakoutRoomResponseApplicationJsonSerializer = _$BreakoutRoomSwitchBreakoutRoomResponseApplicationJsonSerializer(); -Serializer _$callGetPeersForCallApiVersionSerializer = - _$CallGetPeersForCallApiVersionSerializer(); Serializer _$callPeerSerializer = _$CallPeerSerializer(); Serializer _$callGetPeersForCallResponseApplicationJsonOcsSerializer = _$CallGetPeersForCallResponseApplicationJson_OcsSerializer(); Serializer _$callGetPeersForCallResponseApplicationJsonSerializer = _$CallGetPeersForCallResponseApplicationJsonSerializer(); -Serializer _$callUpdateCallFlagsApiVersionSerializer = - _$CallUpdateCallFlagsApiVersionSerializer(); Serializer _$callUpdateCallFlagsResponseApplicationJsonOcsSerializer = _$CallUpdateCallFlagsResponseApplicationJson_OcsSerializer(); Serializer _$callUpdateCallFlagsResponseApplicationJsonSerializer = _$CallUpdateCallFlagsResponseApplicationJsonSerializer(); -Serializer _$callJoinCallApiVersionSerializer = _$CallJoinCallApiVersionSerializer(); Serializer _$callJoinCallResponseApplicationJsonOcsSerializer = _$CallJoinCallResponseApplicationJson_OcsSerializer(); Serializer _$callJoinCallResponseApplicationJsonSerializer = _$CallJoinCallResponseApplicationJsonSerializer(); -Serializer _$callLeaveCallApiVersionSerializer = _$CallLeaveCallApiVersionSerializer(); Serializer _$callLeaveCallResponseApplicationJsonOcsSerializer = _$CallLeaveCallResponseApplicationJson_OcsSerializer(); Serializer _$callLeaveCallResponseApplicationJsonSerializer = _$CallLeaveCallResponseApplicationJsonSerializer(); -Serializer _$callRingAttendeeApiVersionSerializer = - _$CallRingAttendeeApiVersionSerializer(); Serializer _$callRingAttendeeResponseApplicationJsonOcsSerializer = _$CallRingAttendeeResponseApplicationJson_OcsSerializer(); Serializer _$callRingAttendeeResponseApplicationJsonSerializer = _$CallRingAttendeeResponseApplicationJsonSerializer(); -Serializer _$callSipDialOutApiVersionSerializer = _$CallSipDialOutApiVersionSerializer(); Serializer _$callSipDialOutResponseApplicationJsonOcsDataSerializer = _$CallSipDialOutResponseApplicationJson_Ocs_DataSerializer(); Serializer _$callSipDialOutResponseApplicationJsonOcsSerializer = _$CallSipDialOutResponseApplicationJson_OcsSerializer(); Serializer _$callSipDialOutResponseApplicationJsonSerializer = _$CallSipDialOutResponseApplicationJsonSerializer(); -Serializer _$certificateGetCertificateExpirationApiVersionSerializer = - _$CertificateGetCertificateExpirationApiVersionSerializer(); Serializer _$certificateGetCertificateExpirationResponseApplicationJsonOcsDataSerializer = _$CertificateGetCertificateExpirationResponseApplicationJson_Ocs_DataSerializer(); @@ -2020,8 +1972,6 @@ Serializer Serializer _$certificateGetCertificateExpirationResponseApplicationJsonSerializer = _$CertificateGetCertificateExpirationResponseApplicationJsonSerializer(); -Serializer _$chatReceiveMessagesApiVersionSerializer = - _$ChatReceiveMessagesApiVersionSerializer(); Serializer _$chatChatReceiveMessagesHeadersSerializer = _$ChatChatReceiveMessagesHeadersSerializer(); Serializer _$chatMessageWithParentSerializer = _$ChatMessageWithParentSerializer(); @@ -2029,31 +1979,24 @@ Serializer _$chatReceiveMessages _$ChatReceiveMessagesResponseApplicationJson_OcsSerializer(); Serializer _$chatReceiveMessagesResponseApplicationJsonSerializer = _$ChatReceiveMessagesResponseApplicationJsonSerializer(); -Serializer _$chatSendMessageApiVersionSerializer = _$ChatSendMessageApiVersionSerializer(); Serializer _$chatChatSendMessageHeadersSerializer = _$ChatChatSendMessageHeadersSerializer(); Serializer _$chatSendMessageResponseApplicationJsonOcsSerializer = _$ChatSendMessageResponseApplicationJson_OcsSerializer(); Serializer _$chatSendMessageResponseApplicationJsonSerializer = _$ChatSendMessageResponseApplicationJsonSerializer(); -Serializer _$chatClearHistoryApiVersionSerializer = - _$ChatClearHistoryApiVersionSerializer(); Serializer _$chatChatClearHistoryHeadersSerializer = _$ChatChatClearHistoryHeadersSerializer(); Serializer _$chatClearHistoryResponseApplicationJsonOcsSerializer = _$ChatClearHistoryResponseApplicationJson_OcsSerializer(); Serializer _$chatClearHistoryResponseApplicationJsonSerializer = _$ChatClearHistoryResponseApplicationJsonSerializer(); -Serializer _$chatDeleteMessageApiVersionSerializer = - _$ChatDeleteMessageApiVersionSerializer(); Serializer _$chatChatDeleteMessageHeadersSerializer = _$ChatChatDeleteMessageHeadersSerializer(); Serializer _$chatDeleteMessageResponseApplicationJsonOcsSerializer = _$ChatDeleteMessageResponseApplicationJson_OcsSerializer(); Serializer _$chatDeleteMessageResponseApplicationJsonSerializer = _$ChatDeleteMessageResponseApplicationJsonSerializer(); -Serializer _$chatGetMessageContextApiVersionSerializer = - _$ChatGetMessageContextApiVersionSerializer(); Serializer _$chatChatGetMessageContextHeadersSerializer = _$ChatChatGetMessageContextHeadersSerializer(); Serializer @@ -2061,45 +2004,35 @@ Serializer _$ChatGetMessageContextResponseApplicationJson_OcsSerializer(); Serializer _$chatGetMessageContextResponseApplicationJsonSerializer = _$ChatGetMessageContextResponseApplicationJsonSerializer(); -Serializer _$chatGetReminderApiVersionSerializer = _$ChatGetReminderApiVersionSerializer(); Serializer _$chatReminderSerializer = _$ChatReminderSerializer(); Serializer _$chatGetReminderResponseApplicationJsonOcsSerializer = _$ChatGetReminderResponseApplicationJson_OcsSerializer(); Serializer _$chatGetReminderResponseApplicationJsonSerializer = _$ChatGetReminderResponseApplicationJsonSerializer(); -Serializer _$chatSetReminderApiVersionSerializer = _$ChatSetReminderApiVersionSerializer(); Serializer _$chatSetReminderResponseApplicationJsonOcsSerializer = _$ChatSetReminderResponseApplicationJson_OcsSerializer(); Serializer _$chatSetReminderResponseApplicationJsonSerializer = _$ChatSetReminderResponseApplicationJsonSerializer(); -Serializer _$chatDeleteReminderApiVersionSerializer = - _$ChatDeleteReminderApiVersionSerializer(); Serializer _$chatDeleteReminderResponseApplicationJsonOcsSerializer = _$ChatDeleteReminderResponseApplicationJson_OcsSerializer(); Serializer _$chatDeleteReminderResponseApplicationJsonSerializer = _$ChatDeleteReminderResponseApplicationJsonSerializer(); -Serializer _$chatSetReadMarkerApiVersionSerializer = - _$ChatSetReadMarkerApiVersionSerializer(); Serializer _$chatChatSetReadMarkerHeadersSerializer = _$ChatChatSetReadMarkerHeadersSerializer(); Serializer _$chatSetReadMarkerResponseApplicationJsonOcsSerializer = _$ChatSetReadMarkerResponseApplicationJson_OcsSerializer(); Serializer _$chatSetReadMarkerResponseApplicationJsonSerializer = _$ChatSetReadMarkerResponseApplicationJsonSerializer(); -Serializer _$chatMarkUnreadApiVersionSerializer = _$ChatMarkUnreadApiVersionSerializer(); Serializer _$chatChatMarkUnreadHeadersSerializer = _$ChatChatMarkUnreadHeadersSerializer(); Serializer _$chatMarkUnreadResponseApplicationJsonOcsSerializer = _$ChatMarkUnreadResponseApplicationJson_OcsSerializer(); Serializer _$chatMarkUnreadResponseApplicationJsonSerializer = _$ChatMarkUnreadResponseApplicationJsonSerializer(); -Serializer _$chatMentionsApiVersionSerializer = _$ChatMentionsApiVersionSerializer(); Serializer _$chatMentionSuggestionSerializer = _$ChatMentionSuggestionSerializer(); Serializer _$chatMentionsResponseApplicationJsonOcsSerializer = _$ChatMentionsResponseApplicationJson_OcsSerializer(); Serializer _$chatMentionsResponseApplicationJsonSerializer = _$ChatMentionsResponseApplicationJsonSerializer(); -Serializer _$chatGetObjectsSharedInRoomApiVersionSerializer = - _$ChatGetObjectsSharedInRoomApiVersionSerializer(); Serializer _$chatChatGetObjectsSharedInRoomHeadersSerializer = _$ChatChatGetObjectsSharedInRoomHeadersSerializer(); Serializer @@ -2108,8 +2041,6 @@ Serializer Serializer _$chatGetObjectsSharedInRoomResponseApplicationJsonSerializer = _$ChatGetObjectsSharedInRoomResponseApplicationJsonSerializer(); -Serializer _$chatShareObjectToChatApiVersionSerializer = - _$ChatShareObjectToChatApiVersionSerializer(); Serializer _$chatChatShareObjectToChatHeadersSerializer = _$ChatChatShareObjectToChatHeadersSerializer(); Serializer @@ -2117,37 +2048,27 @@ Serializer _$ChatShareObjectToChatResponseApplicationJson_OcsSerializer(); Serializer _$chatShareObjectToChatResponseApplicationJsonSerializer = _$ChatShareObjectToChatResponseApplicationJsonSerializer(); -Serializer _$chatGetObjectsSharedInRoomOverviewApiVersionSerializer = - _$ChatGetObjectsSharedInRoomOverviewApiVersionSerializer(); Serializer _$chatGetObjectsSharedInRoomOverviewResponseApplicationJsonOcsSerializer = _$ChatGetObjectsSharedInRoomOverviewResponseApplicationJson_OcsSerializer(); Serializer _$chatGetObjectsSharedInRoomOverviewResponseApplicationJsonSerializer = _$ChatGetObjectsSharedInRoomOverviewResponseApplicationJsonSerializer(); -Serializer _$federationAcceptShareApiVersionSerializer = - _$FederationAcceptShareApiVersionSerializer(); Serializer _$federationAcceptShareResponseApplicationJsonOcsSerializer = _$FederationAcceptShareResponseApplicationJson_OcsSerializer(); Serializer _$federationAcceptShareResponseApplicationJsonSerializer = _$FederationAcceptShareResponseApplicationJsonSerializer(); -Serializer _$federationRejectShareApiVersionSerializer = - _$FederationRejectShareApiVersionSerializer(); Serializer _$federationRejectShareResponseApplicationJsonOcsSerializer = _$FederationRejectShareResponseApplicationJson_OcsSerializer(); Serializer _$federationRejectShareResponseApplicationJsonSerializer = _$FederationRejectShareResponseApplicationJsonSerializer(); -Serializer _$federationGetSharesApiVersionSerializer = - _$FederationGetSharesApiVersionSerializer(); Serializer _$federationInviteSerializer = _$FederationInviteSerializer(); Serializer _$federationGetSharesResponseApplicationJsonOcsSerializer = _$FederationGetSharesResponseApplicationJson_OcsSerializer(); Serializer _$federationGetSharesResponseApplicationJsonSerializer = _$FederationGetSharesResponseApplicationJsonSerializer(); -Serializer _$filesIntegrationGetRoomByFileIdApiVersionSerializer = - _$FilesIntegrationGetRoomByFileIdApiVersionSerializer(); Serializer _$filesIntegrationGetRoomByFileIdResponseApplicationJsonOcsDataSerializer = _$FilesIntegrationGetRoomByFileIdResponseApplicationJson_Ocs_DataSerializer(); @@ -2157,8 +2078,6 @@ Serializer Serializer _$filesIntegrationGetRoomByFileIdResponseApplicationJsonSerializer = _$FilesIntegrationGetRoomByFileIdResponseApplicationJsonSerializer(); -Serializer _$filesIntegrationGetRoomByShareTokenApiVersionSerializer = - _$FilesIntegrationGetRoomByShareTokenApiVersionSerializer(); Serializer _$filesIntegrationGetRoomByShareTokenResponseApplicationJsonOcsDataSerializer = _$FilesIntegrationGetRoomByShareTokenResponseApplicationJson_Ocs_DataSerializer(); @@ -2168,30 +2087,22 @@ Serializer Serializer _$filesIntegrationGetRoomByShareTokenResponseApplicationJsonSerializer = _$FilesIntegrationGetRoomByShareTokenResponseApplicationJsonSerializer(); -Serializer _$guestSetDisplayNameApiVersionSerializer = - _$GuestSetDisplayNameApiVersionSerializer(); Serializer _$guestSetDisplayNameResponseApplicationJsonOcsSerializer = _$GuestSetDisplayNameResponseApplicationJson_OcsSerializer(); Serializer _$guestSetDisplayNameResponseApplicationJsonSerializer = _$GuestSetDisplayNameResponseApplicationJsonSerializer(); -Serializer _$hostedSignalingServerRequestTrialApiVersionSerializer = - _$HostedSignalingServerRequestTrialApiVersionSerializer(); Serializer _$hostedSignalingServerRequestTrialResponseApplicationJsonOcsSerializer = _$HostedSignalingServerRequestTrialResponseApplicationJson_OcsSerializer(); Serializer _$hostedSignalingServerRequestTrialResponseApplicationJsonSerializer = _$HostedSignalingServerRequestTrialResponseApplicationJsonSerializer(); -Serializer _$hostedSignalingServerDeleteAccountApiVersionSerializer = - _$HostedSignalingServerDeleteAccountApiVersionSerializer(); Serializer _$hostedSignalingServerDeleteAccountResponseApplicationJsonOcsSerializer = _$HostedSignalingServerDeleteAccountResponseApplicationJson_OcsSerializer(); Serializer _$hostedSignalingServerDeleteAccountResponseApplicationJsonSerializer = _$HostedSignalingServerDeleteAccountResponseApplicationJsonSerializer(); -Serializer _$matterbridgeGetBridgeOfRoomApiVersionSerializer = - _$MatterbridgeGetBridgeOfRoomApiVersionSerializer(); Serializer _$matterbridgeSerializer = _$MatterbridgeSerializer(); Serializer _$matterbridgeProcessStateSerializer = _$MatterbridgeProcessStateSerializer(); Serializer _$matterbridgeWithProcessStateSerializer = @@ -2202,41 +2113,30 @@ Serializer Serializer _$matterbridgeGetBridgeOfRoomResponseApplicationJsonSerializer = _$MatterbridgeGetBridgeOfRoomResponseApplicationJsonSerializer(); -Serializer _$matterbridgeEditBridgeOfRoomApiVersionSerializer = - _$MatterbridgeEditBridgeOfRoomApiVersionSerializer(); Serializer _$matterbridgeEditBridgeOfRoomResponseApplicationJsonOcsSerializer = _$MatterbridgeEditBridgeOfRoomResponseApplicationJson_OcsSerializer(); Serializer _$matterbridgeEditBridgeOfRoomResponseApplicationJsonSerializer = _$MatterbridgeEditBridgeOfRoomResponseApplicationJsonSerializer(); -Serializer _$matterbridgeDeleteBridgeOfRoomApiVersionSerializer = - _$MatterbridgeDeleteBridgeOfRoomApiVersionSerializer(); Serializer _$matterbridgeDeleteBridgeOfRoomResponseApplicationJsonOcsSerializer = _$MatterbridgeDeleteBridgeOfRoomResponseApplicationJson_OcsSerializer(); Serializer _$matterbridgeDeleteBridgeOfRoomResponseApplicationJsonSerializer = _$MatterbridgeDeleteBridgeOfRoomResponseApplicationJsonSerializer(); -Serializer _$matterbridgeGetBridgeProcessStateApiVersionSerializer = - _$MatterbridgeGetBridgeProcessStateApiVersionSerializer(); Serializer _$matterbridgeGetBridgeProcessStateResponseApplicationJsonOcsSerializer = _$MatterbridgeGetBridgeProcessStateResponseApplicationJson_OcsSerializer(); Serializer _$matterbridgeGetBridgeProcessStateResponseApplicationJsonSerializer = _$MatterbridgeGetBridgeProcessStateResponseApplicationJsonSerializer(); -Serializer _$matterbridgeSettingsStopAllBridgesApiVersionSerializer = - _$MatterbridgeSettingsStopAllBridgesApiVersionSerializer(); Serializer _$matterbridgeSettingsStopAllBridgesResponseApplicationJsonOcsSerializer = _$MatterbridgeSettingsStopAllBridgesResponseApplicationJson_OcsSerializer(); Serializer _$matterbridgeSettingsStopAllBridgesResponseApplicationJsonSerializer = _$MatterbridgeSettingsStopAllBridgesResponseApplicationJsonSerializer(); -Serializer - _$matterbridgeSettingsGetMatterbridgeVersionApiVersionSerializer = - _$MatterbridgeSettingsGetMatterbridgeVersionApiVersionSerializer(); Serializer _$matterbridgeSettingsGetMatterbridgeVersionResponseApplicationJsonOcsDataSerializer = _$MatterbridgeSettingsGetMatterbridgeVersionResponseApplicationJson_Ocs_DataSerializer(); @@ -2246,30 +2146,24 @@ Serializer _$matterbridgeSettingsGetMatterbridgeVersionResponseApplicationJsonSerializer = _$MatterbridgeSettingsGetMatterbridgeVersionResponseApplicationJsonSerializer(); -Serializer _$pollCreatePollApiVersionSerializer = _$PollCreatePollApiVersionSerializer(); Serializer _$pollVoteSerializer = _$PollVoteSerializer(); Serializer _$pollSerializer = _$PollSerializer(); Serializer _$pollCreatePollResponseApplicationJsonOcsSerializer = _$PollCreatePollResponseApplicationJson_OcsSerializer(); Serializer _$pollCreatePollResponseApplicationJsonSerializer = _$PollCreatePollResponseApplicationJsonSerializer(); -Serializer _$pollShowPollApiVersionSerializer = _$PollShowPollApiVersionSerializer(); Serializer _$pollShowPollResponseApplicationJsonOcsSerializer = _$PollShowPollResponseApplicationJson_OcsSerializer(); Serializer _$pollShowPollResponseApplicationJsonSerializer = _$PollShowPollResponseApplicationJsonSerializer(); -Serializer _$pollVotePollApiVersionSerializer = _$PollVotePollApiVersionSerializer(); Serializer _$pollVotePollResponseApplicationJsonOcsSerializer = _$PollVotePollResponseApplicationJson_OcsSerializer(); Serializer _$pollVotePollResponseApplicationJsonSerializer = _$PollVotePollResponseApplicationJsonSerializer(); -Serializer _$pollClosePollApiVersionSerializer = _$PollClosePollApiVersionSerializer(); Serializer _$pollClosePollResponseApplicationJsonOcsSerializer = _$PollClosePollResponseApplicationJson_OcsSerializer(); Serializer _$pollClosePollResponseApplicationJsonSerializer = _$PollClosePollResponseApplicationJsonSerializer(); -Serializer _$publicShareAuthCreateRoomApiVersionSerializer = - _$PublicShareAuthCreateRoomApiVersionSerializer(); Serializer _$publicShareAuthCreateRoomResponseApplicationJsonOcsDataSerializer = _$PublicShareAuthCreateRoomResponseApplicationJson_Ocs_DataSerializer(); @@ -2279,25 +2173,19 @@ Serializer Serializer _$publicShareAuthCreateRoomResponseApplicationJsonSerializer = _$PublicShareAuthCreateRoomResponseApplicationJsonSerializer(); -Serializer _$reactionGetReactionsApiVersionSerializer = - _$ReactionGetReactionsApiVersionSerializer(); Serializer _$reactionSerializer = _$ReactionSerializer(); Serializer _$reactionGetReactionsResponseApplicationJsonOcsSerializer = _$ReactionGetReactionsResponseApplicationJson_OcsSerializer(); Serializer _$reactionGetReactionsResponseApplicationJsonSerializer = _$ReactionGetReactionsResponseApplicationJsonSerializer(); -Serializer _$reactionReactApiVersionSerializer = _$ReactionReactApiVersionSerializer(); Serializer _$reactionReactResponseApplicationJsonOcsSerializer = _$ReactionReactResponseApplicationJson_OcsSerializer(); Serializer _$reactionReactResponseApplicationJsonSerializer = _$ReactionReactResponseApplicationJsonSerializer(); -Serializer _$reactionDeleteApiVersionSerializer = _$ReactionDeleteApiVersionSerializer(); Serializer _$reactionDeleteResponseApplicationJsonOcsSerializer = _$ReactionDeleteResponseApplicationJson_OcsSerializer(); Serializer _$reactionDeleteResponseApplicationJsonSerializer = _$ReactionDeleteResponseApplicationJsonSerializer(); -Serializer _$recordingGetWelcomeMessageApiVersionSerializer = - _$RecordingGetWelcomeMessageApiVersionSerializer(); Serializer _$recordingGetWelcomeMessageResponseApplicationJsonOcsDataSerializer = _$RecordingGetWelcomeMessageResponseApplicationJson_Ocs_DataSerializer(); @@ -2307,54 +2195,41 @@ Serializer Serializer _$recordingGetWelcomeMessageResponseApplicationJsonSerializer = _$RecordingGetWelcomeMessageResponseApplicationJsonSerializer(); -Serializer _$recordingStartApiVersionSerializer = _$RecordingStartApiVersionSerializer(); Serializer _$recordingStartResponseApplicationJsonOcsSerializer = _$RecordingStartResponseApplicationJson_OcsSerializer(); Serializer _$recordingStartResponseApplicationJsonSerializer = _$RecordingStartResponseApplicationJsonSerializer(); -Serializer _$recordingStopApiVersionSerializer = _$RecordingStopApiVersionSerializer(); Serializer _$recordingStopResponseApplicationJsonOcsSerializer = _$RecordingStopResponseApplicationJson_OcsSerializer(); Serializer _$recordingStopResponseApplicationJsonSerializer = _$RecordingStopResponseApplicationJsonSerializer(); -Serializer _$recordingStoreApiVersionSerializer = _$RecordingStoreApiVersionSerializer(); Serializer _$recordingStoreResponseApplicationJsonOcsSerializer = _$RecordingStoreResponseApplicationJson_OcsSerializer(); Serializer _$recordingStoreResponseApplicationJsonSerializer = _$RecordingStoreResponseApplicationJsonSerializer(); -Serializer _$recordingNotificationDismissApiVersionSerializer = - _$RecordingNotificationDismissApiVersionSerializer(); Serializer _$recordingNotificationDismissResponseApplicationJsonOcsSerializer = _$RecordingNotificationDismissResponseApplicationJson_OcsSerializer(); Serializer _$recordingNotificationDismissResponseApplicationJsonSerializer = _$RecordingNotificationDismissResponseApplicationJsonSerializer(); -Serializer _$recordingShareToChatApiVersionSerializer = - _$RecordingShareToChatApiVersionSerializer(); Serializer _$recordingShareToChatResponseApplicationJsonOcsSerializer = _$RecordingShareToChatResponseApplicationJson_OcsSerializer(); Serializer _$recordingShareToChatResponseApplicationJsonSerializer = _$RecordingShareToChatResponseApplicationJsonSerializer(); -Serializer _$roomGetRoomsApiVersionSerializer = _$RoomGetRoomsApiVersionSerializer(); Serializer _$roomRoomGetRoomsHeadersSerializer = _$RoomRoomGetRoomsHeadersSerializer(); Serializer _$roomGetRoomsResponseApplicationJsonOcsSerializer = _$RoomGetRoomsResponseApplicationJson_OcsSerializer(); Serializer _$roomGetRoomsResponseApplicationJsonSerializer = _$RoomGetRoomsResponseApplicationJsonSerializer(); -Serializer _$roomCreateRoomApiVersionSerializer = _$RoomCreateRoomApiVersionSerializer(); Serializer _$roomCreateRoomResponseApplicationJsonOcsSerializer = _$RoomCreateRoomResponseApplicationJson_OcsSerializer(); Serializer _$roomCreateRoomResponseApplicationJsonSerializer = _$RoomCreateRoomResponseApplicationJsonSerializer(); -Serializer _$roomGetListedRoomsApiVersionSerializer = - _$RoomGetListedRoomsApiVersionSerializer(); Serializer _$roomGetListedRoomsResponseApplicationJsonOcsSerializer = _$RoomGetListedRoomsResponseApplicationJson_OcsSerializer(); Serializer _$roomGetListedRoomsResponseApplicationJsonSerializer = _$RoomGetListedRoomsResponseApplicationJsonSerializer(); -Serializer _$roomGetNoteToSelfConversationApiVersionSerializer = - _$RoomGetNoteToSelfConversationApiVersionSerializer(); Serializer _$roomRoomGetNoteToSelfConversationHeadersSerializer = _$RoomRoomGetNoteToSelfConversationHeadersSerializer(); Serializer @@ -2363,69 +2238,52 @@ Serializer Serializer _$roomGetNoteToSelfConversationResponseApplicationJsonSerializer = _$RoomGetNoteToSelfConversationResponseApplicationJsonSerializer(); -Serializer _$roomGetSingleRoomApiVersionSerializer = - _$RoomGetSingleRoomApiVersionSerializer(); Serializer _$roomRoomGetSingleRoomHeadersSerializer = _$RoomRoomGetSingleRoomHeadersSerializer(); Serializer _$roomGetSingleRoomResponseApplicationJsonOcsSerializer = _$RoomGetSingleRoomResponseApplicationJson_OcsSerializer(); Serializer _$roomGetSingleRoomResponseApplicationJsonSerializer = _$RoomGetSingleRoomResponseApplicationJsonSerializer(); -Serializer _$roomRenameRoomApiVersionSerializer = _$RoomRenameRoomApiVersionSerializer(); Serializer _$roomRenameRoomResponseApplicationJsonOcsSerializer = _$RoomRenameRoomResponseApplicationJson_OcsSerializer(); Serializer _$roomRenameRoomResponseApplicationJsonSerializer = _$RoomRenameRoomResponseApplicationJsonSerializer(); -Serializer _$roomDeleteRoomApiVersionSerializer = _$RoomDeleteRoomApiVersionSerializer(); Serializer _$roomDeleteRoomResponseApplicationJsonOcsSerializer = _$RoomDeleteRoomResponseApplicationJson_OcsSerializer(); Serializer _$roomDeleteRoomResponseApplicationJsonSerializer = _$RoomDeleteRoomResponseApplicationJsonSerializer(); -Serializer _$roomGetBreakoutRoomsApiVersionSerializer = - _$RoomGetBreakoutRoomsApiVersionSerializer(); Serializer _$roomGetBreakoutRoomsResponseApplicationJsonOcsSerializer = _$RoomGetBreakoutRoomsResponseApplicationJson_OcsSerializer(); Serializer _$roomGetBreakoutRoomsResponseApplicationJsonSerializer = _$RoomGetBreakoutRoomsResponseApplicationJsonSerializer(); -Serializer _$roomMakePublicApiVersionSerializer = _$RoomMakePublicApiVersionSerializer(); Serializer _$roomMakePublicResponseApplicationJsonOcsSerializer = _$RoomMakePublicResponseApplicationJson_OcsSerializer(); Serializer _$roomMakePublicResponseApplicationJsonSerializer = _$RoomMakePublicResponseApplicationJsonSerializer(); -Serializer _$roomMakePrivateApiVersionSerializer = _$RoomMakePrivateApiVersionSerializer(); Serializer _$roomMakePrivateResponseApplicationJsonOcsSerializer = _$RoomMakePrivateResponseApplicationJson_OcsSerializer(); Serializer _$roomMakePrivateResponseApplicationJsonSerializer = _$RoomMakePrivateResponseApplicationJsonSerializer(); -Serializer _$roomSetDescriptionApiVersionSerializer = - _$RoomSetDescriptionApiVersionSerializer(); Serializer _$roomSetDescriptionResponseApplicationJsonOcsSerializer = _$RoomSetDescriptionResponseApplicationJson_OcsSerializer(); Serializer _$roomSetDescriptionResponseApplicationJsonSerializer = _$RoomSetDescriptionResponseApplicationJsonSerializer(); -Serializer _$roomSetReadOnlyApiVersionSerializer = _$RoomSetReadOnlyApiVersionSerializer(); Serializer _$roomSetReadOnlyResponseApplicationJsonOcsSerializer = _$RoomSetReadOnlyResponseApplicationJson_OcsSerializer(); Serializer _$roomSetReadOnlyResponseApplicationJsonSerializer = _$RoomSetReadOnlyResponseApplicationJsonSerializer(); -Serializer _$roomSetListableApiVersionSerializer = _$RoomSetListableApiVersionSerializer(); Serializer _$roomSetListableResponseApplicationJsonOcsSerializer = _$RoomSetListableResponseApplicationJson_OcsSerializer(); Serializer _$roomSetListableResponseApplicationJsonSerializer = _$RoomSetListableResponseApplicationJsonSerializer(); -Serializer _$roomSetPasswordApiVersionSerializer = _$RoomSetPasswordApiVersionSerializer(); Serializer _$roomSetPasswordResponseApplicationJsonOcsSerializer = _$RoomSetPasswordResponseApplicationJson_OcsSerializer(); Serializer _$roomSetPasswordResponseApplicationJsonSerializer = _$RoomSetPasswordResponseApplicationJsonSerializer(); -Serializer _$roomSetPermissionsApiVersionSerializer = - _$RoomSetPermissionsApiVersionSerializer(); Serializer _$roomSetPermissionsResponseApplicationJsonOcsSerializer = _$RoomSetPermissionsResponseApplicationJson_OcsSerializer(); Serializer _$roomSetPermissionsResponseApplicationJsonSerializer = _$RoomSetPermissionsResponseApplicationJsonSerializer(); -Serializer _$roomGetParticipantsApiVersionSerializer = - _$RoomGetParticipantsApiVersionSerializer(); Serializer _$roomRoomGetParticipantsHeadersSerializer = _$RoomRoomGetParticipantsHeadersSerializer(); Serializer _$participantSerializer = _$ParticipantSerializer(); @@ -2433,8 +2291,6 @@ Serializer _$roomGetParticipants _$RoomGetParticipantsResponseApplicationJson_OcsSerializer(); Serializer _$roomGetParticipantsResponseApplicationJsonSerializer = _$RoomGetParticipantsResponseApplicationJsonSerializer(); -Serializer _$roomAddParticipantToRoomApiVersionSerializer = - _$RoomAddParticipantToRoomApiVersionSerializer(); Serializer _$roomAddParticipantToRoomResponseApplicationJsonOcsData0Serializer = _$RoomAddParticipantToRoomResponseApplicationJson_Ocs_Data0Serializer(); @@ -2444,8 +2300,6 @@ Serializer Serializer _$roomAddParticipantToRoomResponseApplicationJsonSerializer = _$RoomAddParticipantToRoomResponseApplicationJsonSerializer(); -Serializer _$roomGetBreakoutRoomParticipantsApiVersionSerializer = - _$RoomGetBreakoutRoomParticipantsApiVersionSerializer(); Serializer _$roomRoomGetBreakoutRoomParticipantsHeadersSerializer = _$RoomRoomGetBreakoutRoomParticipantsHeadersSerializer(); Serializer @@ -2454,143 +2308,104 @@ Serializer Serializer _$roomGetBreakoutRoomParticipantsResponseApplicationJsonSerializer = _$RoomGetBreakoutRoomParticipantsResponseApplicationJsonSerializer(); -Serializer _$roomRemoveSelfFromRoomApiVersionSerializer = - _$RoomRemoveSelfFromRoomApiVersionSerializer(); Serializer _$roomRemoveSelfFromRoomResponseApplicationJsonOcsSerializer = _$RoomRemoveSelfFromRoomResponseApplicationJson_OcsSerializer(); Serializer _$roomRemoveSelfFromRoomResponseApplicationJsonSerializer = _$RoomRemoveSelfFromRoomResponseApplicationJsonSerializer(); -Serializer _$roomRemoveAttendeeFromRoomApiVersionSerializer = - _$RoomRemoveAttendeeFromRoomApiVersionSerializer(); Serializer _$roomRemoveAttendeeFromRoomResponseApplicationJsonOcsSerializer = _$RoomRemoveAttendeeFromRoomResponseApplicationJson_OcsSerializer(); Serializer _$roomRemoveAttendeeFromRoomResponseApplicationJsonSerializer = _$RoomRemoveAttendeeFromRoomResponseApplicationJsonSerializer(); -Serializer _$roomSetAttendeePermissionsApiVersionSerializer = - _$RoomSetAttendeePermissionsApiVersionSerializer(); Serializer _$roomSetAttendeePermissionsResponseApplicationJsonOcsSerializer = _$RoomSetAttendeePermissionsResponseApplicationJson_OcsSerializer(); Serializer _$roomSetAttendeePermissionsResponseApplicationJsonSerializer = _$RoomSetAttendeePermissionsResponseApplicationJsonSerializer(); -Serializer _$roomSetAllAttendeesPermissionsApiVersionSerializer = - _$RoomSetAllAttendeesPermissionsApiVersionSerializer(); Serializer _$roomSetAllAttendeesPermissionsResponseApplicationJsonOcsSerializer = _$RoomSetAllAttendeesPermissionsResponseApplicationJson_OcsSerializer(); Serializer _$roomSetAllAttendeesPermissionsResponseApplicationJsonSerializer = _$RoomSetAllAttendeesPermissionsResponseApplicationJsonSerializer(); -Serializer _$roomJoinRoomApiVersionSerializer = _$RoomJoinRoomApiVersionSerializer(); Serializer _$roomJoinRoomResponseApplicationJsonOcsSerializer = _$RoomJoinRoomResponseApplicationJson_OcsSerializer(); Serializer _$roomJoinRoomResponseApplicationJsonSerializer = _$RoomJoinRoomResponseApplicationJsonSerializer(); -Serializer _$roomLeaveRoomApiVersionSerializer = _$RoomLeaveRoomApiVersionSerializer(); Serializer _$roomLeaveRoomResponseApplicationJsonOcsSerializer = _$RoomLeaveRoomResponseApplicationJson_OcsSerializer(); Serializer _$roomLeaveRoomResponseApplicationJsonSerializer = _$RoomLeaveRoomResponseApplicationJsonSerializer(); -Serializer _$roomResendInvitationsApiVersionSerializer = - _$RoomResendInvitationsApiVersionSerializer(); Serializer _$roomResendInvitationsResponseApplicationJsonOcsSerializer = _$RoomResendInvitationsResponseApplicationJson_OcsSerializer(); Serializer _$roomResendInvitationsResponseApplicationJsonSerializer = _$RoomResendInvitationsResponseApplicationJsonSerializer(); -Serializer _$roomSetSessionStateApiVersionSerializer = - _$RoomSetSessionStateApiVersionSerializer(); Serializer _$roomSetSessionStateResponseApplicationJsonOcsSerializer = _$RoomSetSessionStateResponseApplicationJson_OcsSerializer(); Serializer _$roomSetSessionStateResponseApplicationJsonSerializer = _$RoomSetSessionStateResponseApplicationJsonSerializer(); -Serializer _$roomPromoteModeratorApiVersionSerializer = - _$RoomPromoteModeratorApiVersionSerializer(); Serializer _$roomPromoteModeratorResponseApplicationJsonOcsSerializer = _$RoomPromoteModeratorResponseApplicationJson_OcsSerializer(); Serializer _$roomPromoteModeratorResponseApplicationJsonSerializer = _$RoomPromoteModeratorResponseApplicationJsonSerializer(); -Serializer _$roomDemoteModeratorApiVersionSerializer = - _$RoomDemoteModeratorApiVersionSerializer(); Serializer _$roomDemoteModeratorResponseApplicationJsonOcsSerializer = _$RoomDemoteModeratorResponseApplicationJson_OcsSerializer(); Serializer _$roomDemoteModeratorResponseApplicationJsonSerializer = _$RoomDemoteModeratorResponseApplicationJsonSerializer(); -Serializer _$roomAddToFavoritesApiVersionSerializer = - _$RoomAddToFavoritesApiVersionSerializer(); Serializer _$roomAddToFavoritesResponseApplicationJsonOcsSerializer = _$RoomAddToFavoritesResponseApplicationJson_OcsSerializer(); Serializer _$roomAddToFavoritesResponseApplicationJsonSerializer = _$RoomAddToFavoritesResponseApplicationJsonSerializer(); -Serializer _$roomRemoveFromFavoritesApiVersionSerializer = - _$RoomRemoveFromFavoritesApiVersionSerializer(); Serializer _$roomRemoveFromFavoritesResponseApplicationJsonOcsSerializer = _$RoomRemoveFromFavoritesResponseApplicationJson_OcsSerializer(); Serializer _$roomRemoveFromFavoritesResponseApplicationJsonSerializer = _$RoomRemoveFromFavoritesResponseApplicationJsonSerializer(); -Serializer _$roomSetNotificationLevelApiVersionSerializer = - _$RoomSetNotificationLevelApiVersionSerializer(); Serializer _$roomSetNotificationLevelResponseApplicationJsonOcsSerializer = _$RoomSetNotificationLevelResponseApplicationJson_OcsSerializer(); Serializer _$roomSetNotificationLevelResponseApplicationJsonSerializer = _$RoomSetNotificationLevelResponseApplicationJsonSerializer(); -Serializer _$roomSetNotificationCallsApiVersionSerializer = - _$RoomSetNotificationCallsApiVersionSerializer(); Serializer _$roomSetNotificationCallsResponseApplicationJsonOcsSerializer = _$RoomSetNotificationCallsResponseApplicationJson_OcsSerializer(); Serializer _$roomSetNotificationCallsResponseApplicationJsonSerializer = _$RoomSetNotificationCallsResponseApplicationJsonSerializer(); -Serializer _$roomSetLobbyApiVersionSerializer = _$RoomSetLobbyApiVersionSerializer(); Serializer _$roomSetLobbyResponseApplicationJsonOcsSerializer = _$RoomSetLobbyResponseApplicationJson_OcsSerializer(); Serializer _$roomSetLobbyResponseApplicationJsonSerializer = _$RoomSetLobbyResponseApplicationJsonSerializer(); -Serializer _$roomSetsipEnabledApiVersionSerializer = - _$RoomSetsipEnabledApiVersionSerializer(); Serializer _$roomSetsipEnabledResponseApplicationJsonOcsSerializer = _$RoomSetsipEnabledResponseApplicationJson_OcsSerializer(); Serializer _$roomSetsipEnabledResponseApplicationJsonSerializer = _$RoomSetsipEnabledResponseApplicationJsonSerializer(); -Serializer _$roomSetRecordingConsentApiVersionSerializer = - _$RoomSetRecordingConsentApiVersionSerializer(); Serializer _$roomSetRecordingConsentResponseApplicationJsonOcsSerializer = _$RoomSetRecordingConsentResponseApplicationJson_OcsSerializer(); Serializer _$roomSetRecordingConsentResponseApplicationJsonSerializer = _$RoomSetRecordingConsentResponseApplicationJsonSerializer(); -Serializer _$roomSetMessageExpirationApiVersionSerializer = - _$RoomSetMessageExpirationApiVersionSerializer(); Serializer _$roomSetMessageExpirationResponseApplicationJsonOcsSerializer = _$RoomSetMessageExpirationResponseApplicationJson_OcsSerializer(); Serializer _$roomSetMessageExpirationResponseApplicationJsonSerializer = _$RoomSetMessageExpirationResponseApplicationJsonSerializer(); -Serializer _$settingsSetsipSettingsApiVersionSerializer = - _$SettingsSetsipSettingsApiVersionSerializer(); Serializer _$settingsSetsipSettingsResponseApplicationJsonOcsSerializer = _$SettingsSetsipSettingsResponseApplicationJson_OcsSerializer(); Serializer _$settingsSetsipSettingsResponseApplicationJsonSerializer = _$SettingsSetsipSettingsResponseApplicationJsonSerializer(); -Serializer _$settingsSetUserSettingApiVersionSerializer = - _$SettingsSetUserSettingApiVersionSerializer(); Serializer _$settingsSetUserSettingResponseApplicationJsonOcsSerializer = _$SettingsSetUserSettingResponseApplicationJson_OcsSerializer(); Serializer _$settingsSetUserSettingResponseApplicationJsonSerializer = _$SettingsSetUserSettingResponseApplicationJsonSerializer(); -Serializer _$signalingGetSettingsApiVersionSerializer = - _$SignalingGetSettingsApiVersionSerializer(); Serializer _$signalingSettingsHelloAuthParams$10Serializer = _$SignalingSettings_HelloAuthParams_$10Serializer(); Serializer _$signalingSettingsHelloAuthParams$20Serializer = @@ -2606,16 +2421,12 @@ Serializer _$signalingGetSettin _$SignalingGetSettingsResponseApplicationJson_OcsSerializer(); Serializer _$signalingGetSettingsResponseApplicationJsonSerializer = _$SignalingGetSettingsResponseApplicationJsonSerializer(); -Serializer _$signalingGetWelcomeMessageApiVersionSerializer = - _$SignalingGetWelcomeMessageApiVersionSerializer(); Serializer _$signalingGetWelcomeMessageResponseApplicationJsonOcsSerializer = _$SignalingGetWelcomeMessageResponseApplicationJson_OcsSerializer(); Serializer _$signalingGetWelcomeMessageResponseApplicationJsonSerializer = _$SignalingGetWelcomeMessageResponseApplicationJsonSerializer(); -Serializer _$signalingPullMessagesApiVersionSerializer = - _$SignalingPullMessagesApiVersionSerializer(); Serializer _$signalingSessionSerializer = _$SignalingSessionSerializer(); Serializer _$signalingPullMessagesResponseApplicationJsonOcsDataSerializer = @@ -2625,8 +2436,6 @@ Serializer _$SignalingPullMessagesResponseApplicationJson_OcsSerializer(); Serializer _$signalingPullMessagesResponseApplicationJsonSerializer = _$SignalingPullMessagesResponseApplicationJsonSerializer(); -Serializer _$signalingSendMessagesApiVersionSerializer = - _$SignalingSendMessagesApiVersionSerializer(); Serializer _$signalingSendMessagesResponseApplicationJsonOcsSerializer = _$SignalingSendMessagesResponseApplicationJson_OcsSerializer(); @@ -2659,40 +2468,6 @@ Serializer _$publicCapabilities0SpreedConfigS Serializer _$publicCapabilities0SpreedSerializer = _$PublicCapabilities0_SpreedSerializer(); Serializer _$publicCapabilities0Serializer = _$PublicCapabilities0Serializer(); -class _$AvatarGetAvatarApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [AvatarGetAvatarApiVersion]; - @override - final String wireName = 'AvatarGetAvatarApiVersion'; - - @override - Object serialize(Serializers serializers, AvatarGetAvatarApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - AvatarGetAvatarApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - AvatarGetAvatarApiVersion.valueOf(serialized as String); -} - -class _$AvatarUploadAvatarApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [AvatarUploadAvatarApiVersion]; - @override - final String wireName = 'AvatarUploadAvatarApiVersion'; - - @override - Object serialize(Serializers serializers, AvatarUploadAvatarApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - AvatarUploadAvatarApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - AvatarUploadAvatarApiVersion.valueOf(serialized as String); -} - class _$OCSMetaSerializer implements StructuredSerializer { @override final Iterable types = const [OCSMeta, _$OCSMeta]; @@ -3316,23 +3091,6 @@ class _$AvatarUploadAvatarResponseApplicationJsonSerializer } } -class _$AvatarDeleteAvatarApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [AvatarDeleteAvatarApiVersion]; - @override - final String wireName = 'AvatarDeleteAvatarApiVersion'; - - @override - Object serialize(Serializers serializers, AvatarDeleteAvatarApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - AvatarDeleteAvatarApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - AvatarDeleteAvatarApiVersion.valueOf(serialized as String); -} - class _$AvatarDeleteAvatarResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -3424,23 +3182,6 @@ class _$AvatarDeleteAvatarResponseApplicationJsonSerializer } } -class _$AvatarEmojiAvatarApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [AvatarEmojiAvatarApiVersion]; - @override - final String wireName = 'AvatarEmojiAvatarApiVersion'; - - @override - Object serialize(Serializers serializers, AvatarEmojiAvatarApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - AvatarEmojiAvatarApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - AvatarEmojiAvatarApiVersion.valueOf(serialized as String); -} - class _$AvatarEmojiAvatarResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -3532,40 +3273,6 @@ class _$AvatarEmojiAvatarResponseApplicationJsonSerializer } } -class _$AvatarGetAvatarDarkApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [AvatarGetAvatarDarkApiVersion]; - @override - final String wireName = 'AvatarGetAvatarDarkApiVersion'; - - @override - Object serialize(Serializers serializers, AvatarGetAvatarDarkApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - AvatarGetAvatarDarkApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - AvatarGetAvatarDarkApiVersion.valueOf(serialized as String); -} - -class _$BotSendMessageApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [BotSendMessageApiVersion]; - @override - final String wireName = 'BotSendMessageApiVersion'; - - @override - Object serialize(Serializers serializers, BotSendMessageApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - BotSendMessageApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - BotSendMessageApiVersion.valueOf(serialized as String); -} - class _$BotSendMessageResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -3654,23 +3361,6 @@ class _$BotSendMessageResponseApplicationJsonSerializer } } -class _$BotReactApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [BotReactApiVersion]; - @override - final String wireName = 'BotReactApiVersion'; - - @override - Object serialize(Serializers serializers, BotReactApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - BotReactApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - BotReactApiVersion.valueOf(serialized as String); -} - class _$BotReactResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -3755,23 +3445,6 @@ class _$BotReactResponseApplicationJsonSerializer implements StructuredSerialize } } -class _$BotDeleteReactionApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [BotDeleteReactionApiVersion]; - @override - final String wireName = 'BotDeleteReactionApiVersion'; - - @override - Object serialize(Serializers serializers, BotDeleteReactionApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - BotDeleteReactionApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - BotDeleteReactionApiVersion.valueOf(serialized as String); -} - class _$BotDeleteReactionResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -3863,23 +3536,6 @@ class _$BotDeleteReactionResponseApplicationJsonSerializer } } -class _$BotAdminListBotsApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [BotAdminListBotsApiVersion]; - @override - final String wireName = 'BotAdminListBotsApiVersion'; - - @override - Object serialize(Serializers serializers, BotAdminListBotsApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - BotAdminListBotsApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - BotAdminListBotsApiVersion.valueOf(serialized as String); -} - class _$BotSerializer implements StructuredSerializer { @override final Iterable types = const [Bot, _$Bot]; @@ -4115,23 +3771,6 @@ class _$BotAdminListBotsResponseApplicationJsonSerializer } } -class _$BotListBotsApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [BotListBotsApiVersion]; - @override - final String wireName = 'BotListBotsApiVersion'; - - @override - Object serialize(Serializers serializers, BotListBotsApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - BotListBotsApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - BotListBotsApiVersion.valueOf(serialized as String); -} - class _$BotListBotsResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -4218,23 +3857,6 @@ class _$BotListBotsResponseApplicationJsonSerializer } } -class _$BotEnableBotApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [BotEnableBotApiVersion]; - @override - final String wireName = 'BotEnableBotApiVersion'; - - @override - Object serialize(Serializers serializers, BotEnableBotApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - BotEnableBotApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - BotEnableBotApiVersion.valueOf(serialized as String); -} - class _$BotEnableBotResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -4327,23 +3949,6 @@ class _$BotEnableBotResponseApplicationJsonSerializer } } -class _$BotDisableBotApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [BotDisableBotApiVersion]; - @override - final String wireName = 'BotDisableBotApiVersion'; - - @override - Object serialize(Serializers serializers, BotDisableBotApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - BotDisableBotApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - BotDisableBotApiVersion.valueOf(serialized as String); -} - class _$BotDisableBotResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -4436,24 +4041,6 @@ class _$BotDisableBotResponseApplicationJsonSerializer } } -class _$BreakoutRoomConfigureBreakoutRoomsApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [BreakoutRoomConfigureBreakoutRoomsApiVersion]; - @override - final String wireName = 'BreakoutRoomConfigureBreakoutRoomsApiVersion'; - - @override - Object serialize(Serializers serializers, BreakoutRoomConfigureBreakoutRoomsApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - BreakoutRoomConfigureBreakoutRoomsApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - BreakoutRoomConfigureBreakoutRoomsApiVersion.valueOf(serialized as String); -} - class _$BreakoutRoomConfigureBreakoutRoomsResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -4550,24 +4137,6 @@ class _$BreakoutRoomConfigureBreakoutRoomsResponseApplicationJsonSerializer } } -class _$BreakoutRoomRemoveBreakoutRoomsApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [BreakoutRoomRemoveBreakoutRoomsApiVersion]; - @override - final String wireName = 'BreakoutRoomRemoveBreakoutRoomsApiVersion'; - - @override - Object serialize(Serializers serializers, BreakoutRoomRemoveBreakoutRoomsApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - BreakoutRoomRemoveBreakoutRoomsApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - BreakoutRoomRemoveBreakoutRoomsApiVersion.valueOf(serialized as String); -} - class _$BreakoutRoomRemoveBreakoutRoomsResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -4663,24 +4232,6 @@ class _$BreakoutRoomRemoveBreakoutRoomsResponseApplicationJsonSerializer } } -class _$BreakoutRoomBroadcastChatMessageApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [BreakoutRoomBroadcastChatMessageApiVersion]; - @override - final String wireName = 'BreakoutRoomBroadcastChatMessageApiVersion'; - - @override - Object serialize(Serializers serializers, BreakoutRoomBroadcastChatMessageApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - BreakoutRoomBroadcastChatMessageApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - BreakoutRoomBroadcastChatMessageApiVersion.valueOf(serialized as String); -} - class _$BreakoutRoomBroadcastChatMessageResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -4777,24 +4328,6 @@ class _$BreakoutRoomBroadcastChatMessageResponseApplicationJsonSerializer } } -class _$BreakoutRoomApplyAttendeeMapApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [BreakoutRoomApplyAttendeeMapApiVersion]; - @override - final String wireName = 'BreakoutRoomApplyAttendeeMapApiVersion'; - - @override - Object serialize(Serializers serializers, BreakoutRoomApplyAttendeeMapApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - BreakoutRoomApplyAttendeeMapApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - BreakoutRoomApplyAttendeeMapApiVersion.valueOf(serialized as String); -} - class _$BreakoutRoomApplyAttendeeMapResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -4889,24 +4422,6 @@ class _$BreakoutRoomApplyAttendeeMapResponseApplicationJsonSerializer } } -class _$BreakoutRoomRequestAssistanceApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [BreakoutRoomRequestAssistanceApiVersion]; - @override - final String wireName = 'BreakoutRoomRequestAssistanceApiVersion'; - - @override - Object serialize(Serializers serializers, BreakoutRoomRequestAssistanceApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - BreakoutRoomRequestAssistanceApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - BreakoutRoomRequestAssistanceApiVersion.valueOf(serialized as String); -} - class _$BreakoutRoomRequestAssistanceResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -5001,24 +4516,6 @@ class _$BreakoutRoomRequestAssistanceResponseApplicationJsonSerializer } } -class _$BreakoutRoomResetRequestForAssistanceApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [BreakoutRoomResetRequestForAssistanceApiVersion]; - @override - final String wireName = 'BreakoutRoomResetRequestForAssistanceApiVersion'; - - @override - Object serialize(Serializers serializers, BreakoutRoomResetRequestForAssistanceApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - BreakoutRoomResetRequestForAssistanceApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - BreakoutRoomResetRequestForAssistanceApiVersion.valueOf(serialized as String); -} - class _$BreakoutRoomResetRequestForAssistanceResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -5115,24 +4612,6 @@ class _$BreakoutRoomResetRequestForAssistanceResponseApplicationJsonSerializer } } -class _$BreakoutRoomStartBreakoutRoomsApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [BreakoutRoomStartBreakoutRoomsApiVersion]; - @override - final String wireName = 'BreakoutRoomStartBreakoutRoomsApiVersion'; - - @override - Object serialize(Serializers serializers, BreakoutRoomStartBreakoutRoomsApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - BreakoutRoomStartBreakoutRoomsApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - BreakoutRoomStartBreakoutRoomsApiVersion.valueOf(serialized as String); -} - class _$BreakoutRoomStartBreakoutRoomsResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -5228,24 +4707,6 @@ class _$BreakoutRoomStartBreakoutRoomsResponseApplicationJsonSerializer } } -class _$BreakoutRoomStopBreakoutRoomsApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [BreakoutRoomStopBreakoutRoomsApiVersion]; - @override - final String wireName = 'BreakoutRoomStopBreakoutRoomsApiVersion'; - - @override - Object serialize(Serializers serializers, BreakoutRoomStopBreakoutRoomsApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - BreakoutRoomStopBreakoutRoomsApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - BreakoutRoomStopBreakoutRoomsApiVersion.valueOf(serialized as String); -} - class _$BreakoutRoomStopBreakoutRoomsResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -5341,24 +4802,6 @@ class _$BreakoutRoomStopBreakoutRoomsResponseApplicationJsonSerializer } } -class _$BreakoutRoomSwitchBreakoutRoomApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [BreakoutRoomSwitchBreakoutRoomApiVersion]; - @override - final String wireName = 'BreakoutRoomSwitchBreakoutRoomApiVersion'; - - @override - Object serialize(Serializers serializers, BreakoutRoomSwitchBreakoutRoomApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - BreakoutRoomSwitchBreakoutRoomApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - BreakoutRoomSwitchBreakoutRoomApiVersion.valueOf(serialized as String); -} - class _$BreakoutRoomSwitchBreakoutRoomResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -5453,23 +4896,6 @@ class _$BreakoutRoomSwitchBreakoutRoomResponseApplicationJsonSerializer } } -class _$CallGetPeersForCallApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [CallGetPeersForCallApiVersion]; - @override - final String wireName = 'CallGetPeersForCallApiVersion'; - - @override - Object serialize(Serializers serializers, CallGetPeersForCallApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - CallGetPeersForCallApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - CallGetPeersForCallApiVersion.valueOf(serialized as String); -} - class _$CallPeerSerializer implements StructuredSerializer { @override final Iterable types = const [CallPeer, _$CallPeer]; @@ -5625,23 +5051,6 @@ class _$CallGetPeersForCallResponseApplicationJsonSerializer } } -class _$CallUpdateCallFlagsApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [CallUpdateCallFlagsApiVersion]; - @override - final String wireName = 'CallUpdateCallFlagsApiVersion'; - - @override - Object serialize(Serializers serializers, CallUpdateCallFlagsApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - CallUpdateCallFlagsApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - CallUpdateCallFlagsApiVersion.valueOf(serialized as String); -} - class _$CallUpdateCallFlagsResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -5733,23 +5142,6 @@ class _$CallUpdateCallFlagsResponseApplicationJsonSerializer } } -class _$CallJoinCallApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [CallJoinCallApiVersion]; - @override - final String wireName = 'CallJoinCallApiVersion'; - - @override - Object serialize(Serializers serializers, CallJoinCallApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - CallJoinCallApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - CallJoinCallApiVersion.valueOf(serialized as String); -} - class _$CallJoinCallResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -5838,23 +5230,6 @@ class _$CallJoinCallResponseApplicationJsonSerializer } } -class _$CallLeaveCallApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [CallLeaveCallApiVersion]; - @override - final String wireName = 'CallLeaveCallApiVersion'; - - @override - Object serialize(Serializers serializers, CallLeaveCallApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - CallLeaveCallApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - CallLeaveCallApiVersion.valueOf(serialized as String); -} - class _$CallLeaveCallResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -5943,23 +5318,6 @@ class _$CallLeaveCallResponseApplicationJsonSerializer } } -class _$CallRingAttendeeApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [CallRingAttendeeApiVersion]; - @override - final String wireName = 'CallRingAttendeeApiVersion'; - - @override - Object serialize(Serializers serializers, CallRingAttendeeApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - CallRingAttendeeApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - CallRingAttendeeApiVersion.valueOf(serialized as String); -} - class _$CallRingAttendeeResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -6051,23 +5409,6 @@ class _$CallRingAttendeeResponseApplicationJsonSerializer } } -class _$CallSipDialOutApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [CallSipDialOutApiVersion]; - @override - final String wireName = 'CallSipDialOutApiVersion'; - - @override - Object serialize(Serializers serializers, CallSipDialOutApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - CallSipDialOutApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - CallSipDialOutApiVersion.valueOf(serialized as String); -} - class _$CallSipDialOutResponseApplicationJson_Ocs_DataSerializer implements StructuredSerializer { @override @@ -6212,24 +5553,6 @@ class _$CallSipDialOutResponseApplicationJsonSerializer } } -class _$CertificateGetCertificateExpirationApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [CertificateGetCertificateExpirationApiVersion]; - @override - final String wireName = 'CertificateGetCertificateExpirationApiVersion'; - - @override - Object serialize(Serializers serializers, CertificateGetCertificateExpirationApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - CertificateGetCertificateExpirationApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - CertificateGetCertificateExpirationApiVersion.valueOf(serialized as String); -} - class _$CertificateGetCertificateExpirationResponseApplicationJson_Ocs_DataSerializer implements StructuredSerializer { @override @@ -6376,23 +5699,6 @@ class _$CertificateGetCertificateExpirationResponseApplicationJsonSerializer } } -class _$ChatReceiveMessagesApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ChatReceiveMessagesApiVersion]; - @override - final String wireName = 'ChatReceiveMessagesApiVersion'; - - @override - Object serialize(Serializers serializers, ChatReceiveMessagesApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - ChatReceiveMessagesApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - ChatReceiveMessagesApiVersion.valueOf(serialized as String); -} - class _$ChatChatReceiveMessagesHeadersSerializer implements StructuredSerializer { @override final Iterable types = const [ChatChatReceiveMessagesHeaders, _$ChatChatReceiveMessagesHeaders]; @@ -6676,23 +5982,6 @@ class _$ChatReceiveMessagesResponseApplicationJsonSerializer } } -class _$ChatSendMessageApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ChatSendMessageApiVersion]; - @override - final String wireName = 'ChatSendMessageApiVersion'; - - @override - Object serialize(Serializers serializers, ChatSendMessageApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - ChatSendMessageApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - ChatSendMessageApiVersion.valueOf(serialized as String); -} - class _$ChatChatSendMessageHeadersSerializer implements StructuredSerializer { @override final Iterable types = const [ChatChatSendMessageHeaders, _$ChatChatSendMessageHeaders]; @@ -6827,23 +6116,6 @@ class _$ChatSendMessageResponseApplicationJsonSerializer } } -class _$ChatClearHistoryApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ChatClearHistoryApiVersion]; - @override - final String wireName = 'ChatClearHistoryApiVersion'; - - @override - Object serialize(Serializers serializers, ChatClearHistoryApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - ChatClearHistoryApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - ChatClearHistoryApiVersion.valueOf(serialized as String); -} - class _$ChatChatClearHistoryHeadersSerializer implements StructuredSerializer { @override final Iterable types = const [ChatChatClearHistoryHeaders, _$ChatChatClearHistoryHeaders]; @@ -6977,23 +6249,6 @@ class _$ChatClearHistoryResponseApplicationJsonSerializer } } -class _$ChatDeleteMessageApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ChatDeleteMessageApiVersion]; - @override - final String wireName = 'ChatDeleteMessageApiVersion'; - - @override - Object serialize(Serializers serializers, ChatDeleteMessageApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - ChatDeleteMessageApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - ChatDeleteMessageApiVersion.valueOf(serialized as String); -} - class _$ChatChatDeleteMessageHeadersSerializer implements StructuredSerializer { @override final Iterable types = const [ChatChatDeleteMessageHeaders, _$ChatChatDeleteMessageHeaders]; @@ -7127,23 +6382,6 @@ class _$ChatDeleteMessageResponseApplicationJsonSerializer } } -class _$ChatGetMessageContextApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ChatGetMessageContextApiVersion]; - @override - final String wireName = 'ChatGetMessageContextApiVersion'; - - @override - Object serialize(Serializers serializers, ChatGetMessageContextApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - ChatGetMessageContextApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - ChatGetMessageContextApiVersion.valueOf(serialized as String); -} - class _$ChatChatGetMessageContextHeadersSerializer implements StructuredSerializer { @override final Iterable types = const [ChatChatGetMessageContextHeaders, _$ChatChatGetMessageContextHeaders]; @@ -7287,23 +6525,6 @@ class _$ChatGetMessageContextResponseApplicationJsonSerializer } } -class _$ChatGetReminderApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ChatGetReminderApiVersion]; - @override - final String wireName = 'ChatGetReminderApiVersion'; - - @override - Object serialize(Serializers serializers, ChatGetReminderApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - ChatGetReminderApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - ChatGetReminderApiVersion.valueOf(serialized as String); -} - class _$ChatReminderSerializer implements StructuredSerializer { @override final Iterable types = const [ChatReminder, _$ChatReminder]; @@ -7446,23 +6667,6 @@ class _$ChatGetReminderResponseApplicationJsonSerializer } } -class _$ChatSetReminderApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ChatSetReminderApiVersion]; - @override - final String wireName = 'ChatSetReminderApiVersion'; - - @override - Object serialize(Serializers serializers, ChatSetReminderApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - ChatSetReminderApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - ChatSetReminderApiVersion.valueOf(serialized as String); -} - class _$ChatSetReminderResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -7552,23 +6756,6 @@ class _$ChatSetReminderResponseApplicationJsonSerializer } } -class _$ChatDeleteReminderApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ChatDeleteReminderApiVersion]; - @override - final String wireName = 'ChatDeleteReminderApiVersion'; - - @override - Object serialize(Serializers serializers, ChatDeleteReminderApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - ChatDeleteReminderApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - ChatDeleteReminderApiVersion.valueOf(serialized as String); -} - class _$ChatDeleteReminderResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -7660,23 +6847,6 @@ class _$ChatDeleteReminderResponseApplicationJsonSerializer } } -class _$ChatSetReadMarkerApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ChatSetReadMarkerApiVersion]; - @override - final String wireName = 'ChatSetReadMarkerApiVersion'; - - @override - Object serialize(Serializers serializers, ChatSetReadMarkerApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - ChatSetReadMarkerApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - ChatSetReadMarkerApiVersion.valueOf(serialized as String); -} - class _$ChatChatSetReadMarkerHeadersSerializer implements StructuredSerializer { @override final Iterable types = const [ChatChatSetReadMarkerHeaders, _$ChatChatSetReadMarkerHeaders]; @@ -7809,23 +6979,6 @@ class _$ChatSetReadMarkerResponseApplicationJsonSerializer } } -class _$ChatMarkUnreadApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ChatMarkUnreadApiVersion]; - @override - final String wireName = 'ChatMarkUnreadApiVersion'; - - @override - Object serialize(Serializers serializers, ChatMarkUnreadApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - ChatMarkUnreadApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - ChatMarkUnreadApiVersion.valueOf(serialized as String); -} - class _$ChatChatMarkUnreadHeadersSerializer implements StructuredSerializer { @override final Iterable types = const [ChatChatMarkUnreadHeaders, _$ChatChatMarkUnreadHeaders]; @@ -7955,23 +7108,6 @@ class _$ChatMarkUnreadResponseApplicationJsonSerializer } } -class _$ChatMentionsApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ChatMentionsApiVersion]; - @override - final String wireName = 'ChatMentionsApiVersion'; - - @override - Object serialize(Serializers serializers, ChatMentionsApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - ChatMentionsApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - ChatMentionsApiVersion.valueOf(serialized as String); -} - class _$ChatMentionSuggestionSerializer implements StructuredSerializer { @override final Iterable types = const [ChatMentionSuggestion, _$ChatMentionSuggestion]; @@ -8145,24 +7281,6 @@ class _$ChatMentionsResponseApplicationJsonSerializer } } -class _$ChatGetObjectsSharedInRoomApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [ChatGetObjectsSharedInRoomApiVersion]; - @override - final String wireName = 'ChatGetObjectsSharedInRoomApiVersion'; - - @override - Object serialize(Serializers serializers, ChatGetObjectsSharedInRoomApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - ChatGetObjectsSharedInRoomApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - ChatGetObjectsSharedInRoomApiVersion.valueOf(serialized as String); -} - class _$ChatChatGetObjectsSharedInRoomHeadersSerializer implements StructuredSerializer { @override @@ -8299,23 +7417,6 @@ class _$ChatGetObjectsSharedInRoomResponseApplicationJsonSerializer } } -class _$ChatShareObjectToChatApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ChatShareObjectToChatApiVersion]; - @override - final String wireName = 'ChatShareObjectToChatApiVersion'; - - @override - Object serialize(Serializers serializers, ChatShareObjectToChatApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - ChatShareObjectToChatApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - ChatShareObjectToChatApiVersion.valueOf(serialized as String); -} - class _$ChatChatShareObjectToChatHeadersSerializer implements StructuredSerializer { @override final Iterable types = const [ChatChatShareObjectToChatHeaders, _$ChatChatShareObjectToChatHeaders]; @@ -8454,24 +7555,6 @@ class _$ChatShareObjectToChatResponseApplicationJsonSerializer } } -class _$ChatGetObjectsSharedInRoomOverviewApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [ChatGetObjectsSharedInRoomOverviewApiVersion]; - @override - final String wireName = 'ChatGetObjectsSharedInRoomOverviewApiVersion'; - - @override - Object serialize(Serializers serializers, ChatGetObjectsSharedInRoomOverviewApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - ChatGetObjectsSharedInRoomOverviewApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - ChatGetObjectsSharedInRoomOverviewApiVersion.valueOf(serialized as String); -} - class _$ChatGetObjectsSharedInRoomOverviewResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -8575,23 +7658,6 @@ class _$ChatGetObjectsSharedInRoomOverviewResponseApplicationJsonSerializer } } -class _$FederationAcceptShareApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [FederationAcceptShareApiVersion]; - @override - final String wireName = 'FederationAcceptShareApiVersion'; - - @override - Object serialize(Serializers serializers, FederationAcceptShareApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - FederationAcceptShareApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - FederationAcceptShareApiVersion.valueOf(serialized as String); -} - class _$FederationAcceptShareResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -8684,23 +7750,6 @@ class _$FederationAcceptShareResponseApplicationJsonSerializer } } -class _$FederationRejectShareApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [FederationRejectShareApiVersion]; - @override - final String wireName = 'FederationRejectShareApiVersion'; - - @override - Object serialize(Serializers serializers, FederationRejectShareApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - FederationRejectShareApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - FederationRejectShareApiVersion.valueOf(serialized as String); -} - class _$FederationRejectShareResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -8793,23 +7842,6 @@ class _$FederationRejectShareResponseApplicationJsonSerializer } } -class _$FederationGetSharesApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [FederationGetSharesApiVersion]; - @override - final String wireName = 'FederationGetSharesApiVersion'; - - @override - Object serialize(Serializers serializers, FederationGetSharesApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - FederationGetSharesApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - FederationGetSharesApiVersion.valueOf(serialized as String); -} - class _$FederationInviteSerializer implements StructuredSerializer { @override final Iterable types = const [FederationInvite, _$FederationInvite]; @@ -8970,24 +8002,6 @@ class _$FederationGetSharesResponseApplicationJsonSerializer } } -class _$FilesIntegrationGetRoomByFileIdApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [FilesIntegrationGetRoomByFileIdApiVersion]; - @override - final String wireName = 'FilesIntegrationGetRoomByFileIdApiVersion'; - - @override - Object serialize(Serializers serializers, FilesIntegrationGetRoomByFileIdApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - FilesIntegrationGetRoomByFileIdApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - FilesIntegrationGetRoomByFileIdApiVersion.valueOf(serialized as String); -} - class _$FilesIntegrationGetRoomByFileIdResponseApplicationJson_Ocs_DataSerializer implements StructuredSerializer { @override @@ -9130,24 +8144,6 @@ class _$FilesIntegrationGetRoomByFileIdResponseApplicationJsonSerializer } } -class _$FilesIntegrationGetRoomByShareTokenApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [FilesIntegrationGetRoomByShareTokenApiVersion]; - @override - final String wireName = 'FilesIntegrationGetRoomByShareTokenApiVersion'; - - @override - Object serialize(Serializers serializers, FilesIntegrationGetRoomByShareTokenApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - FilesIntegrationGetRoomByShareTokenApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - FilesIntegrationGetRoomByShareTokenApiVersion.valueOf(serialized as String); -} - class _$FilesIntegrationGetRoomByShareTokenResponseApplicationJson_Ocs_DataSerializer implements StructuredSerializer { @override @@ -9301,23 +8297,6 @@ class _$FilesIntegrationGetRoomByShareTokenResponseApplicationJsonSerializer } } -class _$GuestSetDisplayNameApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [GuestSetDisplayNameApiVersion]; - @override - final String wireName = 'GuestSetDisplayNameApiVersion'; - - @override - Object serialize(Serializers serializers, GuestSetDisplayNameApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - GuestSetDisplayNameApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - GuestSetDisplayNameApiVersion.valueOf(serialized as String); -} - class _$GuestSetDisplayNameResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -9409,24 +8388,6 @@ class _$GuestSetDisplayNameResponseApplicationJsonSerializer } } -class _$HostedSignalingServerRequestTrialApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [HostedSignalingServerRequestTrialApiVersion]; - @override - final String wireName = 'HostedSignalingServerRequestTrialApiVersion'; - - @override - Object serialize(Serializers serializers, HostedSignalingServerRequestTrialApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - HostedSignalingServerRequestTrialApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - HostedSignalingServerRequestTrialApiVersion.valueOf(serialized as String); -} - class _$HostedSignalingServerRequestTrialResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -9524,24 +8485,6 @@ class _$HostedSignalingServerRequestTrialResponseApplicationJsonSerializer } } -class _$HostedSignalingServerDeleteAccountApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [HostedSignalingServerDeleteAccountApiVersion]; - @override - final String wireName = 'HostedSignalingServerDeleteAccountApiVersion'; - - @override - Object serialize(Serializers serializers, HostedSignalingServerDeleteAccountApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - HostedSignalingServerDeleteAccountApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - HostedSignalingServerDeleteAccountApiVersion.valueOf(serialized as String); -} - class _$HostedSignalingServerDeleteAccountResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -9637,24 +8580,6 @@ class _$HostedSignalingServerDeleteAccountResponseApplicationJsonSerializer } } -class _$MatterbridgeGetBridgeOfRoomApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [MatterbridgeGetBridgeOfRoomApiVersion]; - @override - final String wireName = 'MatterbridgeGetBridgeOfRoomApiVersion'; - - @override - Object serialize(Serializers serializers, MatterbridgeGetBridgeOfRoomApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - MatterbridgeGetBridgeOfRoomApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - MatterbridgeGetBridgeOfRoomApiVersion.valueOf(serialized as String); -} - class _$MatterbridgeSerializer implements StructuredSerializer { @override final Iterable types = const [Matterbridge, _$Matterbridge]; @@ -9910,24 +8835,6 @@ class _$MatterbridgeGetBridgeOfRoomResponseApplicationJsonSerializer } } -class _$MatterbridgeEditBridgeOfRoomApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [MatterbridgeEditBridgeOfRoomApiVersion]; - @override - final String wireName = 'MatterbridgeEditBridgeOfRoomApiVersion'; - - @override - Object serialize(Serializers serializers, MatterbridgeEditBridgeOfRoomApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - MatterbridgeEditBridgeOfRoomApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - MatterbridgeEditBridgeOfRoomApiVersion.valueOf(serialized as String); -} - class _$MatterbridgeEditBridgeOfRoomResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -10022,24 +8929,6 @@ class _$MatterbridgeEditBridgeOfRoomResponseApplicationJsonSerializer } } -class _$MatterbridgeDeleteBridgeOfRoomApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [MatterbridgeDeleteBridgeOfRoomApiVersion]; - @override - final String wireName = 'MatterbridgeDeleteBridgeOfRoomApiVersion'; - - @override - Object serialize(Serializers serializers, MatterbridgeDeleteBridgeOfRoomApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - MatterbridgeDeleteBridgeOfRoomApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - MatterbridgeDeleteBridgeOfRoomApiVersion.valueOf(serialized as String); -} - class _$MatterbridgeDeleteBridgeOfRoomResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -10134,24 +9023,6 @@ class _$MatterbridgeDeleteBridgeOfRoomResponseApplicationJsonSerializer } } -class _$MatterbridgeGetBridgeProcessStateApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [MatterbridgeGetBridgeProcessStateApiVersion]; - @override - final String wireName = 'MatterbridgeGetBridgeProcessStateApiVersion'; - - @override - Object serialize(Serializers serializers, MatterbridgeGetBridgeProcessStateApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - MatterbridgeGetBridgeProcessStateApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - MatterbridgeGetBridgeProcessStateApiVersion.valueOf(serialized as String); -} - class _$MatterbridgeGetBridgeProcessStateResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -10248,24 +9119,6 @@ class _$MatterbridgeGetBridgeProcessStateResponseApplicationJsonSerializer } } -class _$MatterbridgeSettingsStopAllBridgesApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [MatterbridgeSettingsStopAllBridgesApiVersion]; - @override - final String wireName = 'MatterbridgeSettingsStopAllBridgesApiVersion'; - - @override - Object serialize(Serializers serializers, MatterbridgeSettingsStopAllBridgesApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - MatterbridgeSettingsStopAllBridgesApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - MatterbridgeSettingsStopAllBridgesApiVersion.valueOf(serialized as String); -} - class _$MatterbridgeSettingsStopAllBridgesResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -10361,24 +9214,6 @@ class _$MatterbridgeSettingsStopAllBridgesResponseApplicationJsonSerializer } } -class _$MatterbridgeSettingsGetMatterbridgeVersionApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [MatterbridgeSettingsGetMatterbridgeVersionApiVersion]; - @override - final String wireName = 'MatterbridgeSettingsGetMatterbridgeVersionApiVersion'; - - @override - Object serialize(Serializers serializers, MatterbridgeSettingsGetMatterbridgeVersionApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - MatterbridgeSettingsGetMatterbridgeVersionApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - MatterbridgeSettingsGetMatterbridgeVersionApiVersion.valueOf(serialized as String); -} - class _$MatterbridgeSettingsGetMatterbridgeVersionResponseApplicationJson_Ocs_DataSerializer implements StructuredSerializer { @override @@ -10523,23 +9358,6 @@ class _$MatterbridgeSettingsGetMatterbridgeVersionResponseApplicationJsonSeriali } } -class _$PollCreatePollApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [PollCreatePollApiVersion]; - @override - final String wireName = 'PollCreatePollApiVersion'; - - @override - Object serialize(Serializers serializers, PollCreatePollApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - PollCreatePollApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - PollCreatePollApiVersion.valueOf(serialized as String); -} - class _$PollVoteSerializer implements StructuredSerializer { @override final Iterable types = const [PollVote, _$PollVote]; @@ -10798,23 +9616,6 @@ class _$PollCreatePollResponseApplicationJsonSerializer } } -class _$PollShowPollApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [PollShowPollApiVersion]; - @override - final String wireName = 'PollShowPollApiVersion'; - - @override - Object serialize(Serializers serializers, PollShowPollApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - PollShowPollApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - PollShowPollApiVersion.valueOf(serialized as String); -} - class _$PollShowPollResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -10903,23 +9704,6 @@ class _$PollShowPollResponseApplicationJsonSerializer } } -class _$PollVotePollApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [PollVotePollApiVersion]; - @override - final String wireName = 'PollVotePollApiVersion'; - - @override - Object serialize(Serializers serializers, PollVotePollApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - PollVotePollApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - PollVotePollApiVersion.valueOf(serialized as String); -} - class _$PollVotePollResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -11008,23 +9792,6 @@ class _$PollVotePollResponseApplicationJsonSerializer } } -class _$PollClosePollApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [PollClosePollApiVersion]; - @override - final String wireName = 'PollClosePollApiVersion'; - - @override - Object serialize(Serializers serializers, PollClosePollApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - PollClosePollApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - PollClosePollApiVersion.valueOf(serialized as String); -} - class _$PollClosePollResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -11113,24 +9880,6 @@ class _$PollClosePollResponseApplicationJsonSerializer } } -class _$PublicShareAuthCreateRoomApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [PublicShareAuthCreateRoomApiVersion]; - @override - final String wireName = 'PublicShareAuthCreateRoomApiVersion'; - - @override - Object serialize(Serializers serializers, PublicShareAuthCreateRoomApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - PublicShareAuthCreateRoomApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - PublicShareAuthCreateRoomApiVersion.valueOf(serialized as String); -} - class _$PublicShareAuthCreateRoomResponseApplicationJson_Ocs_DataSerializer implements StructuredSerializer { @override @@ -11280,23 +10029,6 @@ class _$PublicShareAuthCreateRoomResponseApplicationJsonSerializer } } -class _$ReactionGetReactionsApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ReactionGetReactionsApiVersion]; - @override - final String wireName = 'ReactionGetReactionsApiVersion'; - - @override - Object serialize(Serializers serializers, ReactionGetReactionsApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - ReactionGetReactionsApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - ReactionGetReactionsApiVersion.valueOf(serialized as String); -} - class _$ReactionSerializer implements StructuredSerializer { @override final Iterable types = const [Reaction, _$Reaction]; @@ -11449,23 +10181,6 @@ class _$ReactionGetReactionsResponseApplicationJsonSerializer } } -class _$ReactionReactApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ReactionReactApiVersion]; - @override - final String wireName = 'ReactionReactApiVersion'; - - @override - Object serialize(Serializers serializers, ReactionReactApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - ReactionReactApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - ReactionReactApiVersion.valueOf(serialized as String); -} - class _$ReactionReactResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -11562,23 +10277,6 @@ class _$ReactionReactResponseApplicationJsonSerializer } } -class _$ReactionDeleteApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ReactionDeleteApiVersion]; - @override - final String wireName = 'ReactionDeleteApiVersion'; - - @override - Object serialize(Serializers serializers, ReactionDeleteApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - ReactionDeleteApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - ReactionDeleteApiVersion.valueOf(serialized as String); -} - class _$ReactionDeleteResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -11675,24 +10373,6 @@ class _$ReactionDeleteResponseApplicationJsonSerializer } } -class _$RecordingGetWelcomeMessageApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [RecordingGetWelcomeMessageApiVersion]; - @override - final String wireName = 'RecordingGetWelcomeMessageApiVersion'; - - @override - Object serialize(Serializers serializers, RecordingGetWelcomeMessageApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RecordingGetWelcomeMessageApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RecordingGetWelcomeMessageApiVersion.valueOf(serialized as String); -} - class _$RecordingGetWelcomeMessageResponseApplicationJson_Ocs_DataSerializer implements StructuredSerializer { @override @@ -11833,23 +10513,6 @@ class _$RecordingGetWelcomeMessageResponseApplicationJsonSerializer } } -class _$RecordingStartApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RecordingStartApiVersion]; - @override - final String wireName = 'RecordingStartApiVersion'; - - @override - Object serialize(Serializers serializers, RecordingStartApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RecordingStartApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RecordingStartApiVersion.valueOf(serialized as String); -} - class _$RecordingStartResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -11938,23 +10601,6 @@ class _$RecordingStartResponseApplicationJsonSerializer } } -class _$RecordingStopApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RecordingStopApiVersion]; - @override - final String wireName = 'RecordingStopApiVersion'; - - @override - Object serialize(Serializers serializers, RecordingStopApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RecordingStopApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RecordingStopApiVersion.valueOf(serialized as String); -} - class _$RecordingStopResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -12043,23 +10689,6 @@ class _$RecordingStopResponseApplicationJsonSerializer } } -class _$RecordingStoreApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RecordingStoreApiVersion]; - @override - final String wireName = 'RecordingStoreApiVersion'; - - @override - Object serialize(Serializers serializers, RecordingStoreApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RecordingStoreApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RecordingStoreApiVersion.valueOf(serialized as String); -} - class _$RecordingStoreResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -12148,24 +10777,6 @@ class _$RecordingStoreResponseApplicationJsonSerializer } } -class _$RecordingNotificationDismissApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [RecordingNotificationDismissApiVersion]; - @override - final String wireName = 'RecordingNotificationDismissApiVersion'; - - @override - Object serialize(Serializers serializers, RecordingNotificationDismissApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RecordingNotificationDismissApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RecordingNotificationDismissApiVersion.valueOf(serialized as String); -} - class _$RecordingNotificationDismissResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -12259,23 +10870,6 @@ class _$RecordingNotificationDismissResponseApplicationJsonSerializer } } -class _$RecordingShareToChatApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RecordingShareToChatApiVersion]; - @override - final String wireName = 'RecordingShareToChatApiVersion'; - - @override - Object serialize(Serializers serializers, RecordingShareToChatApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RecordingShareToChatApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RecordingShareToChatApiVersion.valueOf(serialized as String); -} - class _$RecordingShareToChatResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -12367,23 +10961,6 @@ class _$RecordingShareToChatResponseApplicationJsonSerializer } } -class _$RoomGetRoomsApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomGetRoomsApiVersion]; - @override - final String wireName = 'RoomGetRoomsApiVersion'; - - @override - Object serialize(Serializers serializers, RoomGetRoomsApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomGetRoomsApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomGetRoomsApiVersion.valueOf(serialized as String); -} - class _$RoomRoomGetRoomsHeadersSerializer implements StructuredSerializer { @override final Iterable types = const [RoomRoomGetRoomsHeaders, _$RoomRoomGetRoomsHeaders]; @@ -12524,23 +11101,6 @@ class _$RoomGetRoomsResponseApplicationJsonSerializer } } -class _$RoomCreateRoomApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomCreateRoomApiVersion]; - @override - final String wireName = 'RoomCreateRoomApiVersion'; - - @override - Object serialize(Serializers serializers, RoomCreateRoomApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomCreateRoomApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomCreateRoomApiVersion.valueOf(serialized as String); -} - class _$RoomCreateRoomResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -12629,23 +11189,6 @@ class _$RoomCreateRoomResponseApplicationJsonSerializer } } -class _$RoomGetListedRoomsApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomGetListedRoomsApiVersion]; - @override - final String wireName = 'RoomGetListedRoomsApiVersion'; - - @override - Object serialize(Serializers serializers, RoomGetListedRoomsApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomGetListedRoomsApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomGetListedRoomsApiVersion.valueOf(serialized as String); -} - class _$RoomGetListedRoomsResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -12738,24 +11281,6 @@ class _$RoomGetListedRoomsResponseApplicationJsonSerializer } } -class _$RoomGetNoteToSelfConversationApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [RoomGetNoteToSelfConversationApiVersion]; - @override - final String wireName = 'RoomGetNoteToSelfConversationApiVersion'; - - @override - Object serialize(Serializers serializers, RoomGetNoteToSelfConversationApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomGetNoteToSelfConversationApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomGetNoteToSelfConversationApiVersion.valueOf(serialized as String); -} - class _$RoomRoomGetNoteToSelfConversationHeadersSerializer implements StructuredSerializer { @override @@ -12895,23 +11420,6 @@ class _$RoomGetNoteToSelfConversationResponseApplicationJsonSerializer } } -class _$RoomGetSingleRoomApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomGetSingleRoomApiVersion]; - @override - final String wireName = 'RoomGetSingleRoomApiVersion'; - - @override - Object serialize(Serializers serializers, RoomGetSingleRoomApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomGetSingleRoomApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomGetSingleRoomApiVersion.valueOf(serialized as String); -} - class _$RoomRoomGetSingleRoomHeadersSerializer implements StructuredSerializer { @override final Iterable types = const [RoomRoomGetSingleRoomHeaders, _$RoomRoomGetSingleRoomHeaders]; @@ -13044,23 +11552,6 @@ class _$RoomGetSingleRoomResponseApplicationJsonSerializer } } -class _$RoomRenameRoomApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomRenameRoomApiVersion]; - @override - final String wireName = 'RoomRenameRoomApiVersion'; - - @override - Object serialize(Serializers serializers, RoomRenameRoomApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomRenameRoomApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomRenameRoomApiVersion.valueOf(serialized as String); -} - class _$RoomRenameRoomResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -13149,23 +11640,6 @@ class _$RoomRenameRoomResponseApplicationJsonSerializer } } -class _$RoomDeleteRoomApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomDeleteRoomApiVersion]; - @override - final String wireName = 'RoomDeleteRoomApiVersion'; - - @override - Object serialize(Serializers serializers, RoomDeleteRoomApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomDeleteRoomApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomDeleteRoomApiVersion.valueOf(serialized as String); -} - class _$RoomDeleteRoomResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -13254,23 +11728,6 @@ class _$RoomDeleteRoomResponseApplicationJsonSerializer } } -class _$RoomGetBreakoutRoomsApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomGetBreakoutRoomsApiVersion]; - @override - final String wireName = 'RoomGetBreakoutRoomsApiVersion'; - - @override - Object serialize(Serializers serializers, RoomGetBreakoutRoomsApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomGetBreakoutRoomsApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomGetBreakoutRoomsApiVersion.valueOf(serialized as String); -} - class _$RoomGetBreakoutRoomsResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -13363,23 +11820,6 @@ class _$RoomGetBreakoutRoomsResponseApplicationJsonSerializer } } -class _$RoomMakePublicApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomMakePublicApiVersion]; - @override - final String wireName = 'RoomMakePublicApiVersion'; - - @override - Object serialize(Serializers serializers, RoomMakePublicApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomMakePublicApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomMakePublicApiVersion.valueOf(serialized as String); -} - class _$RoomMakePublicResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -13468,23 +11908,6 @@ class _$RoomMakePublicResponseApplicationJsonSerializer } } -class _$RoomMakePrivateApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomMakePrivateApiVersion]; - @override - final String wireName = 'RoomMakePrivateApiVersion'; - - @override - Object serialize(Serializers serializers, RoomMakePrivateApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomMakePrivateApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomMakePrivateApiVersion.valueOf(serialized as String); -} - class _$RoomMakePrivateResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -13573,23 +11996,6 @@ class _$RoomMakePrivateResponseApplicationJsonSerializer } } -class _$RoomSetDescriptionApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomSetDescriptionApiVersion]; - @override - final String wireName = 'RoomSetDescriptionApiVersion'; - - @override - Object serialize(Serializers serializers, RoomSetDescriptionApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomSetDescriptionApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomSetDescriptionApiVersion.valueOf(serialized as String); -} - class _$RoomSetDescriptionResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -13681,23 +12087,6 @@ class _$RoomSetDescriptionResponseApplicationJsonSerializer } } -class _$RoomSetReadOnlyApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomSetReadOnlyApiVersion]; - @override - final String wireName = 'RoomSetReadOnlyApiVersion'; - - @override - Object serialize(Serializers serializers, RoomSetReadOnlyApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomSetReadOnlyApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomSetReadOnlyApiVersion.valueOf(serialized as String); -} - class _$RoomSetReadOnlyResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -13786,23 +12175,6 @@ class _$RoomSetReadOnlyResponseApplicationJsonSerializer } } -class _$RoomSetListableApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomSetListableApiVersion]; - @override - final String wireName = 'RoomSetListableApiVersion'; - - @override - Object serialize(Serializers serializers, RoomSetListableApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomSetListableApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomSetListableApiVersion.valueOf(serialized as String); -} - class _$RoomSetListableResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -13891,23 +12263,6 @@ class _$RoomSetListableResponseApplicationJsonSerializer } } -class _$RoomSetPasswordApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomSetPasswordApiVersion]; - @override - final String wireName = 'RoomSetPasswordApiVersion'; - - @override - Object serialize(Serializers serializers, RoomSetPasswordApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomSetPasswordApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomSetPasswordApiVersion.valueOf(serialized as String); -} - class _$RoomSetPasswordResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -13996,23 +12351,6 @@ class _$RoomSetPasswordResponseApplicationJsonSerializer } } -class _$RoomSetPermissionsApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomSetPermissionsApiVersion]; - @override - final String wireName = 'RoomSetPermissionsApiVersion'; - - @override - Object serialize(Serializers serializers, RoomSetPermissionsApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomSetPermissionsApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomSetPermissionsApiVersion.valueOf(serialized as String); -} - class _$RoomSetPermissionsResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -14104,23 +12442,6 @@ class _$RoomSetPermissionsResponseApplicationJsonSerializer } } -class _$RoomGetParticipantsApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomGetParticipantsApiVersion]; - @override - final String wireName = 'RoomGetParticipantsApiVersion'; - - @override - Object serialize(Serializers serializers, RoomGetParticipantsApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomGetParticipantsApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomGetParticipantsApiVersion.valueOf(serialized as String); -} - class _$RoomRoomGetParticipantsHeadersSerializer implements StructuredSerializer { @override final Iterable types = const [RoomRoomGetParticipantsHeaders, _$RoomRoomGetParticipantsHeaders]; @@ -14403,24 +12724,6 @@ class _$RoomGetParticipantsResponseApplicationJsonSerializer } } -class _$RoomAddParticipantToRoomApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [RoomAddParticipantToRoomApiVersion]; - @override - final String wireName = 'RoomAddParticipantToRoomApiVersion'; - - @override - Object serialize(Serializers serializers, RoomAddParticipantToRoomApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomAddParticipantToRoomApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomAddParticipantToRoomApiVersion.valueOf(serialized as String); -} - class _$RoomAddParticipantToRoomResponseApplicationJson_Ocs_Data0Serializer implements StructuredSerializer { @override @@ -14559,24 +12862,6 @@ class _$RoomAddParticipantToRoomResponseApplicationJsonSerializer } } -class _$RoomGetBreakoutRoomParticipantsApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [RoomGetBreakoutRoomParticipantsApiVersion]; - @override - final String wireName = 'RoomGetBreakoutRoomParticipantsApiVersion'; - - @override - Object serialize(Serializers serializers, RoomGetBreakoutRoomParticipantsApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomGetBreakoutRoomParticipantsApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomGetBreakoutRoomParticipantsApiVersion.valueOf(serialized as String); -} - class _$RoomRoomGetBreakoutRoomParticipantsHeadersSerializer implements StructuredSerializer { @override @@ -14719,23 +13004,6 @@ class _$RoomGetBreakoutRoomParticipantsResponseApplicationJsonSerializer } } -class _$RoomRemoveSelfFromRoomApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomRemoveSelfFromRoomApiVersion]; - @override - final String wireName = 'RoomRemoveSelfFromRoomApiVersion'; - - @override - Object serialize(Serializers serializers, RoomRemoveSelfFromRoomApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomRemoveSelfFromRoomApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomRemoveSelfFromRoomApiVersion.valueOf(serialized as String); -} - class _$RoomRemoveSelfFromRoomResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -14828,24 +13096,6 @@ class _$RoomRemoveSelfFromRoomResponseApplicationJsonSerializer } } -class _$RoomRemoveAttendeeFromRoomApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [RoomRemoveAttendeeFromRoomApiVersion]; - @override - final String wireName = 'RoomRemoveAttendeeFromRoomApiVersion'; - - @override - Object serialize(Serializers serializers, RoomRemoveAttendeeFromRoomApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomRemoveAttendeeFromRoomApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomRemoveAttendeeFromRoomApiVersion.valueOf(serialized as String); -} - class _$RoomRemoveAttendeeFromRoomResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -14939,24 +13189,6 @@ class _$RoomRemoveAttendeeFromRoomResponseApplicationJsonSerializer } } -class _$RoomSetAttendeePermissionsApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [RoomSetAttendeePermissionsApiVersion]; - @override - final String wireName = 'RoomSetAttendeePermissionsApiVersion'; - - @override - Object serialize(Serializers serializers, RoomSetAttendeePermissionsApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomSetAttendeePermissionsApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomSetAttendeePermissionsApiVersion.valueOf(serialized as String); -} - class _$RoomSetAttendeePermissionsResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -15050,24 +13282,6 @@ class _$RoomSetAttendeePermissionsResponseApplicationJsonSerializer } } -class _$RoomSetAllAttendeesPermissionsApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [RoomSetAllAttendeesPermissionsApiVersion]; - @override - final String wireName = 'RoomSetAllAttendeesPermissionsApiVersion'; - - @override - Object serialize(Serializers serializers, RoomSetAllAttendeesPermissionsApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomSetAllAttendeesPermissionsApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomSetAllAttendeesPermissionsApiVersion.valueOf(serialized as String); -} - class _$RoomSetAllAttendeesPermissionsResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -15162,23 +13376,6 @@ class _$RoomSetAllAttendeesPermissionsResponseApplicationJsonSerializer } } -class _$RoomJoinRoomApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomJoinRoomApiVersion]; - @override - final String wireName = 'RoomJoinRoomApiVersion'; - - @override - Object serialize(Serializers serializers, RoomJoinRoomApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomJoinRoomApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomJoinRoomApiVersion.valueOf(serialized as String); -} - class _$RoomJoinRoomResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -15267,23 +13464,6 @@ class _$RoomJoinRoomResponseApplicationJsonSerializer } } -class _$RoomLeaveRoomApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomLeaveRoomApiVersion]; - @override - final String wireName = 'RoomLeaveRoomApiVersion'; - - @override - Object serialize(Serializers serializers, RoomLeaveRoomApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomLeaveRoomApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomLeaveRoomApiVersion.valueOf(serialized as String); -} - class _$RoomLeaveRoomResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -15372,23 +13552,6 @@ class _$RoomLeaveRoomResponseApplicationJsonSerializer } } -class _$RoomResendInvitationsApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomResendInvitationsApiVersion]; - @override - final String wireName = 'RoomResendInvitationsApiVersion'; - - @override - Object serialize(Serializers serializers, RoomResendInvitationsApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomResendInvitationsApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomResendInvitationsApiVersion.valueOf(serialized as String); -} - class _$RoomResendInvitationsResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -15481,23 +13644,6 @@ class _$RoomResendInvitationsResponseApplicationJsonSerializer } } -class _$RoomSetSessionStateApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomSetSessionStateApiVersion]; - @override - final String wireName = 'RoomSetSessionStateApiVersion'; - - @override - Object serialize(Serializers serializers, RoomSetSessionStateApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomSetSessionStateApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomSetSessionStateApiVersion.valueOf(serialized as String); -} - class _$RoomSetSessionStateResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -15589,23 +13735,6 @@ class _$RoomSetSessionStateResponseApplicationJsonSerializer } } -class _$RoomPromoteModeratorApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomPromoteModeratorApiVersion]; - @override - final String wireName = 'RoomPromoteModeratorApiVersion'; - - @override - Object serialize(Serializers serializers, RoomPromoteModeratorApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomPromoteModeratorApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomPromoteModeratorApiVersion.valueOf(serialized as String); -} - class _$RoomPromoteModeratorResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -15697,23 +13826,6 @@ class _$RoomPromoteModeratorResponseApplicationJsonSerializer } } -class _$RoomDemoteModeratorApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomDemoteModeratorApiVersion]; - @override - final String wireName = 'RoomDemoteModeratorApiVersion'; - - @override - Object serialize(Serializers serializers, RoomDemoteModeratorApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomDemoteModeratorApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomDemoteModeratorApiVersion.valueOf(serialized as String); -} - class _$RoomDemoteModeratorResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -15805,23 +13917,6 @@ class _$RoomDemoteModeratorResponseApplicationJsonSerializer } } -class _$RoomAddToFavoritesApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomAddToFavoritesApiVersion]; - @override - final String wireName = 'RoomAddToFavoritesApiVersion'; - - @override - Object serialize(Serializers serializers, RoomAddToFavoritesApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomAddToFavoritesApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomAddToFavoritesApiVersion.valueOf(serialized as String); -} - class _$RoomAddToFavoritesResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -15913,23 +14008,6 @@ class _$RoomAddToFavoritesResponseApplicationJsonSerializer } } -class _$RoomRemoveFromFavoritesApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomRemoveFromFavoritesApiVersion]; - @override - final String wireName = 'RoomRemoveFromFavoritesApiVersion'; - - @override - Object serialize(Serializers serializers, RoomRemoveFromFavoritesApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomRemoveFromFavoritesApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomRemoveFromFavoritesApiVersion.valueOf(serialized as String); -} - class _$RoomRemoveFromFavoritesResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -16022,24 +14100,6 @@ class _$RoomRemoveFromFavoritesResponseApplicationJsonSerializer } } -class _$RoomSetNotificationLevelApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [RoomSetNotificationLevelApiVersion]; - @override - final String wireName = 'RoomSetNotificationLevelApiVersion'; - - @override - Object serialize(Serializers serializers, RoomSetNotificationLevelApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomSetNotificationLevelApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomSetNotificationLevelApiVersion.valueOf(serialized as String); -} - class _$RoomSetNotificationLevelResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -16132,24 +14192,6 @@ class _$RoomSetNotificationLevelResponseApplicationJsonSerializer } } -class _$RoomSetNotificationCallsApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [RoomSetNotificationCallsApiVersion]; - @override - final String wireName = 'RoomSetNotificationCallsApiVersion'; - - @override - Object serialize(Serializers serializers, RoomSetNotificationCallsApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomSetNotificationCallsApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomSetNotificationCallsApiVersion.valueOf(serialized as String); -} - class _$RoomSetNotificationCallsResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -16242,23 +14284,6 @@ class _$RoomSetNotificationCallsResponseApplicationJsonSerializer } } -class _$RoomSetLobbyApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomSetLobbyApiVersion]; - @override - final String wireName = 'RoomSetLobbyApiVersion'; - - @override - Object serialize(Serializers serializers, RoomSetLobbyApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomSetLobbyApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomSetLobbyApiVersion.valueOf(serialized as String); -} - class _$RoomSetLobbyResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -16347,23 +14372,6 @@ class _$RoomSetLobbyResponseApplicationJsonSerializer } } -class _$RoomSetsipEnabledApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomSetsipEnabledApiVersion]; - @override - final String wireName = 'RoomSetsipEnabledApiVersion'; - - @override - Object serialize(Serializers serializers, RoomSetsipEnabledApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomSetsipEnabledApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomSetsipEnabledApiVersion.valueOf(serialized as String); -} - class _$RoomSetsipEnabledResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -16455,23 +14463,6 @@ class _$RoomSetsipEnabledResponseApplicationJsonSerializer } } -class _$RoomSetRecordingConsentApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [RoomSetRecordingConsentApiVersion]; - @override - final String wireName = 'RoomSetRecordingConsentApiVersion'; - - @override - Object serialize(Serializers serializers, RoomSetRecordingConsentApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomSetRecordingConsentApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomSetRecordingConsentApiVersion.valueOf(serialized as String); -} - class _$RoomSetRecordingConsentResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -16564,24 +14555,6 @@ class _$RoomSetRecordingConsentResponseApplicationJsonSerializer } } -class _$RoomSetMessageExpirationApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [RoomSetMessageExpirationApiVersion]; - @override - final String wireName = 'RoomSetMessageExpirationApiVersion'; - - @override - Object serialize(Serializers serializers, RoomSetMessageExpirationApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - RoomSetMessageExpirationApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - RoomSetMessageExpirationApiVersion.valueOf(serialized as String); -} - class _$RoomSetMessageExpirationResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -16674,23 +14647,6 @@ class _$RoomSetMessageExpirationResponseApplicationJsonSerializer } } -class _$SettingsSetsipSettingsApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [SettingsSetsipSettingsApiVersion]; - @override - final String wireName = 'SettingsSetsipSettingsApiVersion'; - - @override - Object serialize(Serializers serializers, SettingsSetsipSettingsApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - SettingsSetsipSettingsApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - SettingsSetsipSettingsApiVersion.valueOf(serialized as String); -} - class _$SettingsSetsipSettingsResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -16783,23 +14739,6 @@ class _$SettingsSetsipSettingsResponseApplicationJsonSerializer } } -class _$SettingsSetUserSettingApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [SettingsSetUserSettingApiVersion]; - @override - final String wireName = 'SettingsSetUserSettingApiVersion'; - - @override - Object serialize(Serializers serializers, SettingsSetUserSettingApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - SettingsSetUserSettingApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - SettingsSetUserSettingApiVersion.valueOf(serialized as String); -} - class _$SettingsSetUserSettingResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -16892,23 +14831,6 @@ class _$SettingsSetUserSettingResponseApplicationJsonSerializer } } -class _$SignalingGetSettingsApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [SignalingGetSettingsApiVersion]; - @override - final String wireName = 'SignalingGetSettingsApiVersion'; - - @override - Object serialize(Serializers serializers, SignalingGetSettingsApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - SignalingGetSettingsApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - SignalingGetSettingsApiVersion.valueOf(serialized as String); -} - class _$SignalingSettings_HelloAuthParams_$10Serializer implements StructuredSerializer { @override @@ -17312,24 +15234,6 @@ class _$SignalingGetSettingsResponseApplicationJsonSerializer } } -class _$SignalingGetWelcomeMessageApiVersionSerializer - implements PrimitiveSerializer { - @override - final Iterable types = const [SignalingGetWelcomeMessageApiVersion]; - @override - final String wireName = 'SignalingGetWelcomeMessageApiVersion'; - - @override - Object serialize(Serializers serializers, SignalingGetWelcomeMessageApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - SignalingGetWelcomeMessageApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - SignalingGetWelcomeMessageApiVersion.valueOf(serialized as String); -} - class _$SignalingGetWelcomeMessageResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -17425,23 +15329,6 @@ class _$SignalingGetWelcomeMessageResponseApplicationJsonSerializer } } -class _$SignalingPullMessagesApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [SignalingPullMessagesApiVersion]; - @override - final String wireName = 'SignalingPullMessagesApiVersion'; - - @override - Object serialize(Serializers serializers, SignalingPullMessagesApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - SignalingPullMessagesApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - SignalingPullMessagesApiVersion.valueOf(serialized as String); -} - class _$SignalingSessionSerializer implements StructuredSerializer { @override final Iterable types = const [SignalingSession, _$SignalingSession]; @@ -17652,23 +15539,6 @@ class _$SignalingPullMessagesResponseApplicationJsonSerializer } } -class _$SignalingSendMessagesApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [SignalingSendMessagesApiVersion]; - @override - final String wireName = 'SignalingSendMessagesApiVersion'; - - @override - Object serialize(Serializers serializers, SignalingSendMessagesApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - SignalingSendMessagesApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - SignalingSendMessagesApiVersion.valueOf(serialized as String); -} - class _$SignalingSendMessagesResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override diff --git a/packages/nextcloud/lib/src/api/updatenotification.openapi.dart b/packages/nextcloud/lib/src/api/updatenotification.openapi.dart index ea7eb026623..e452643788b 100644 --- a/packages/nextcloud/lib/src/api/updatenotification.openapi.dart +++ b/packages/nextcloud/lib/src/api/updatenotification.openapi.dart @@ -165,7 +165,44 @@ class ApiGetAppListApiVersion extends EnumClass { static ApiGetAppListApiVersion valueOf(String name) => _$valueOfApiGetAppListApiVersion(name); - static Serializer get serializer => _$apiGetAppListApiVersionSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ApiGetAppListApiVersionSerializer(); +} + +class _$ApiGetAppListApiVersionSerializer implements PrimitiveSerializer { + const _$ApiGetAppListApiVersionSerializer(); + + static const Map _toWire = { + ApiGetAppListApiVersion.v1: 'v1', + }; + + static const Map _fromWire = { + 'v1': ApiGetAppListApiVersion.v1, + }; + + @override + Iterable get types => const [ApiGetAppListApiVersion]; + + @override + String get wireName => 'ApiGetAppListApiVersion'; + + @override + Object serialize( + Serializers serializers, + ApiGetAppListApiVersion object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + ApiGetAppListApiVersion deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) diff --git a/packages/nextcloud/lib/src/api/updatenotification.openapi.g.dart b/packages/nextcloud/lib/src/api/updatenotification.openapi.g.dart index 471ee7f97e1..8acfdac45a4 100644 --- a/packages/nextcloud/lib/src/api/updatenotification.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/updatenotification.openapi.g.dart @@ -22,7 +22,6 @@ final BuiltSet _$apiGetAppListApiVersionValues = _$apiGetAppListApiVersionV1, ]); -Serializer _$apiGetAppListApiVersionSerializer = _$ApiGetAppListApiVersionSerializer(); Serializer _$oCSMetaSerializer = _$OCSMetaSerializer(); Serializer _$appSerializer = _$AppSerializer(); Serializer _$apiGetAppListResponseApplicationJsonOcsDataSerializer = @@ -32,23 +31,6 @@ Serializer _$apiGetAppListResponseAppl Serializer _$apiGetAppListResponseApplicationJsonSerializer = _$ApiGetAppListResponseApplicationJsonSerializer(); -class _$ApiGetAppListApiVersionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ApiGetAppListApiVersion]; - @override - final String wireName = 'ApiGetAppListApiVersion'; - - @override - Object serialize(Serializers serializers, ApiGetAppListApiVersion object, - {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - ApiGetAppListApiVersion deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - ApiGetAppListApiVersion.valueOf(serialized as String); -} - class _$OCSMetaSerializer implements StructuredSerializer { @override final Iterable types = const [OCSMeta, _$OCSMeta]; diff --git a/packages/nextcloud/lib/src/api/user_status.openapi.dart b/packages/nextcloud/lib/src/api/user_status.openapi.dart index b7f1635edc4..aad8eb98844 100644 --- a/packages/nextcloud/lib/src/api/user_status.openapi.dart +++ b/packages/nextcloud/lib/src/api/user_status.openapi.dart @@ -1155,7 +1155,46 @@ class ClearAt_Type extends EnumClass { static ClearAt_Type valueOf(String name) => _$valueOfClearAt_Type(name); - static Serializer get serializer => _$clearAtTypeSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ClearAt_TypeSerializer(); +} + +class _$ClearAt_TypeSerializer implements PrimitiveSerializer { + const _$ClearAt_TypeSerializer(); + + static const Map _toWire = { + ClearAt_Type.period: 'period', + ClearAt_Type.endOf: 'end-of', + }; + + static const Map _fromWire = { + 'period': ClearAt_Type.period, + 'end-of': ClearAt_Type.endOf, + }; + + @override + Iterable get types => const [ClearAt_Type]; + + @override + String get wireName => 'ClearAt_Type'; + + @override + Object serialize( + Serializers serializers, + ClearAt_Type object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + ClearAt_Type deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } class ClearAtTimeType extends EnumClass { @@ -1171,7 +1210,46 @@ class ClearAtTimeType extends EnumClass { static ClearAtTimeType valueOf(String name) => _$valueOfClearAtTimeType(name); - static Serializer get serializer => _$clearAtTimeTypeSerializer; + String get value => jsonSerializers.serializeWith(serializer, this)! as String; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ClearAtTimeTypeSerializer(); +} + +class _$ClearAtTimeTypeSerializer implements PrimitiveSerializer { + const _$ClearAtTimeTypeSerializer(); + + static const Map _toWire = { + ClearAtTimeType.day: 'day', + ClearAtTimeType.week: 'week', + }; + + static const Map _fromWire = { + 'day': ClearAtTimeType.day, + 'week': ClearAtTimeType.week, + }; + + @override + Iterable get types => const [ClearAtTimeType]; + + @override + String get wireName => 'ClearAtTimeType'; + + @override + Object serialize( + Serializers serializers, + ClearAtTimeType object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + ClearAtTimeType deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) diff --git a/packages/nextcloud/lib/src/api/user_status.openapi.g.dart b/packages/nextcloud/lib/src/api/user_status.openapi.g.dart index e9f09488494..6f15f8026bc 100644 --- a/packages/nextcloud/lib/src/api/user_status.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/user_status.openapi.g.dart @@ -51,8 +51,6 @@ Serializer _$heartbeatHeartbeatRe _$HeartbeatHeartbeatResponseApplicationJson_OcsSerializer(); Serializer _$heartbeatHeartbeatResponseApplicationJsonSerializer = _$HeartbeatHeartbeatResponseApplicationJsonSerializer(); -Serializer _$clearAtTypeSerializer = _$ClearAt_TypeSerializer(); -Serializer _$clearAtTimeTypeSerializer = _$ClearAtTimeTypeSerializer(); Serializer _$clearAtSerializer = _$ClearAtSerializer(); Serializer _$predefinedSerializer = _$PredefinedSerializer(); Serializer @@ -420,45 +418,6 @@ class _$HeartbeatHeartbeatResponseApplicationJsonSerializer } } -class _$ClearAt_TypeSerializer implements PrimitiveSerializer { - static const Map _toWire = { - 'endOf': 'end-of', - }; - static const Map _fromWire = { - 'end-of': 'endOf', - }; - - @override - final Iterable types = const [ClearAt_Type]; - @override - final String wireName = 'ClearAt_Type'; - - @override - Object serialize(Serializers serializers, ClearAt_Type object, {FullType specifiedType = FullType.unspecified}) => - _toWire[object.name] ?? object.name; - - @override - ClearAt_Type deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - ClearAt_Type.valueOf(_fromWire[serialized] ?? (serialized is String ? serialized : '')); -} - -class _$ClearAtTimeTypeSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [ClearAtTimeType]; - @override - final String wireName = 'ClearAtTimeType'; - - @override - Object serialize(Serializers serializers, ClearAtTimeType object, {FullType specifiedType = FullType.unspecified}) => - object.name; - - @override - ClearAtTimeType deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - ClearAtTimeType.valueOf(serialized as String); -} - class _$ClearAtSerializer implements StructuredSerializer { @override final Iterable types = const [ClearAt, _$ClearAt];