diff --git a/packages/dynamite/dynamite/lib/src/builder/resolve_enum.dart b/packages/dynamite/dynamite/lib/src/builder/resolve_enum.dart index 42fa875f7f9..c62ea63b2e7 100644 --- a/packages/dynamite/dynamite/lib/src/builder/resolve_enum.dart +++ b/packages/dynamite/dynamite/lib/src/builder/resolve_enum.dart @@ -19,21 +19,22 @@ TypeResult resolveEnum( enumType = 'Object'; } - final values = {}; + final values = <({String dartName, Object? value, String name})>[]; for (final enumValue in schema.$enum!) { - final dartName = toDartName(enumValue.toString()); + final name = enumValue.toString(); + final dartName = toDartName(name); var value = enumValue.value; if (enumValue.isString) { value = "r'$value'"; } - values[dartName] = value; + values.add((dartName: dartName, value: value, name: name)); } final $class = Class( (final b) => b ..name = identifier - ..extend = refer('DynamiteEnum<$enumType>') + ..extend = refer('EnumClass') ..constructors.add( Constructor( (final b) => b @@ -49,60 +50,62 @@ TypeResult resolveEnum( ), ) ..fields.addAll( - values.entries.map( + values.map( (final enumValue) => Field( (final b) { b - ..name = enumValue.key + ..name = enumValue.dartName ..static = true ..modifier = FieldModifier.constant ..type = refer(identifier) - ..assignment = Code('$identifier._(${enumValue.value})'); + ..assignment = Code( + '_\$${toCamelCase('$identifier${enumValue.dartName.capitalize()}')}', + ); + + if (enumValue.name != enumValue.dartName) { + b.annotations.add( + refer('BuiltValueEnumConst').call([], { + 'wireName': refer("r'${enumValue.name}'"), + }), + ); + } }, ), ), ) ..methods.addAll([ - Method((final b) { - b + Method( + (final b) => b ..name = 'values' ..returns = refer('BuiltSet<$identifier>') ..lambda = true ..static = true - ..type = MethodType.getter; - - final buffer = StringBuffer() - ..writeln('BuiltSet<$identifier>(const <$identifier>[') - ..writeAll(values.entries.map((final enumValue) => '$identifier.${enumValue.key}'), ',\n') - ..writeln(',') - ..write('])'); - - b.body = Code(buffer.toString()); - }), - Method((final b) { - b + ..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(enumType), + ..type = refer('String'), ), - ); - final buffer = StringBuffer()..writeln('switch (name) {'); - - for (final enumValue in values.entries) { - buffer - ..writeln('case ${enumValue.value}:') - ..writeln('return $identifier.${enumValue.key};'); - } - - buffer.writeln('default: throw ArgumentError(name); }'); - - b.body = Code(buffer.toString()); - }), + ) + ..body = Code('_\$valueOf$identifier(name)'), + ), + Method( + (final b) => b + ..returns = refer(enumType) + ..name = 'value' + ..type = MethodType.getter + ..lambda = true + ..body = Code('jsonSerializers.deserializeWith(serializer, this)! as $enumType'), + ), buildSerializer(identifier, isCustom: true), ]), ); @@ -126,7 +129,7 @@ TypeResult resolveEnum( final buffer = StringBuffer() ..writeln('<$identifier, $enumType>{') ..writeAll( - values.entries.map((final enumValue) => '$identifier.${enumValue.key}:${enumValue.value}'), + values.map((final enumValue) => '$identifier.${enumValue.dartName}: ${enumValue.value}'), ',\n', ) ..writeln(',') @@ -143,7 +146,7 @@ TypeResult resolveEnum( final buffer = StringBuffer() ..writeln('<$enumType, $identifier>{') ..writeAll( - values.entries.map((final enumValue) => '${enumValue.value}:$identifier.${enumValue.key}'), + values.map((final enumValue) => '${enumValue.value}: $identifier.${enumValue.dartName}'), ',\n', ) ..writeln(',') diff --git a/packages/dynamite/dynamite/lib/src/builder/state.dart b/packages/dynamite/dynamite/lib/src/builder/state.dart index a0ccdee21f2..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 TypeResultObject && type.className != 'ContentString', + (final type) => type is TypeResultEnum || type is TypeResultObject && type.className != 'ContentString', ) .isNotEmpty; } 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 d54806a7de7..eb1dad5ad6e 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 @@ -14,33 +14,22 @@ import 'package:meta/meta.dart'; part 'enum.openapi.g.dart'; -class EnumString extends DynamiteEnum { +class EnumString extends EnumClass { const EnumString._(super.name); - static const EnumString test = EnumString._('test'); + static const EnumString test = _$enumStringTest; - static const EnumString $default = EnumString._('default'); + @BuiltValueEnumConst(wireName: 'default') + static const EnumString $default = _$enumString$default; - static const EnumString dollar = EnumString._(r'$dollar$'); + @BuiltValueEnumConst(wireName: r'$dollar$') + static const EnumString dollar = _$enumStringDollar; - static BuiltSet get values => BuiltSet(const [ - EnumString.test, - EnumString.$default, - EnumString.dollar, - ]); + static BuiltSet get values => _$enumStringValues; - static EnumString valueOf(String name) { - switch (name) { - case 'test': - return EnumString.test; - case 'default': - return EnumString.$default; - case r'$dollar$': - return EnumString.dollar; - default: - throw ArgumentError(name); - } - } + static EnumString valueOf(String name) => _$valueOfEnumString(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$EnumStringSerializer(); @@ -84,33 +73,23 @@ class _$EnumStringSerializer implements PrimitiveSerializer { _fromWire[serialized]!; } -class EnumInt extends DynamiteEnum { +class EnumInt extends EnumClass { const EnumInt._(super.name); - static const EnumInt $0 = EnumInt._(0); + @BuiltValueEnumConst(wireName: '0') + static const EnumInt $0 = _$enumInt$0; + + @BuiltValueEnumConst(wireName: '1') + static const EnumInt $1 = _$enumInt$1; - static const EnumInt $1 = EnumInt._(1); + @BuiltValueEnumConst(wireName: '2') + static const EnumInt $2 = _$enumInt$2; - static const EnumInt $2 = EnumInt._(2); + static BuiltSet get values => _$enumIntValues; - static BuiltSet get values => BuiltSet(const [ - EnumInt.$0, - EnumInt.$1, - EnumInt.$2, - ]); + static EnumInt valueOf(String name) => _$valueOfEnumInt(name); - static EnumInt valueOf(int name) { - switch (name) { - case 0: - return EnumInt.$0; - case 1: - return EnumInt.$1; - case 2: - return EnumInt.$2; - default: - throw ArgumentError(name); - } - } + int get value => jsonSerializers.deserializeWith(serializer, this)! as int; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$EnumIntSerializer(); @@ -154,33 +133,22 @@ class _$EnumIntSerializer implements PrimitiveSerializer { _fromWire[serialized]!; } -class EnumDynamic extends DynamiteEnum { +class EnumDynamic extends EnumClass { const EnumDynamic._(super.name); - static const EnumDynamic $0 = EnumDynamic._(0); + @BuiltValueEnumConst(wireName: '0') + static const EnumDynamic $0 = _$enumDynamic$0; + + static const EnumDynamic string = _$enumDynamicString; - static const EnumDynamic string = EnumDynamic._('string'); + @BuiltValueEnumConst(wireName: 'false') + static const EnumDynamic $false = _$enumDynamic$false; - static const EnumDynamic $false = EnumDynamic._(false); + static BuiltSet get values => _$enumDynamicValues; - static BuiltSet get values => BuiltSet(const [ - EnumDynamic.$0, - EnumDynamic.string, - EnumDynamic.$false, - ]); + static EnumDynamic valueOf(String name) => _$valueOfEnumDynamic(name); - static EnumDynamic valueOf(Object name) { - switch (name) { - case 0: - return EnumDynamic.$0; - case 'string': - return EnumDynamic.string; - case false: - return EnumDynamic.$false; - default: - throw ArgumentError(name); - } - } + Object get value => jsonSerializers.deserializeWith(serializer, this)!; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$EnumDynamicSerializer(); @@ -224,62 +192,53 @@ class _$EnumDynamicSerializer implements PrimitiveSerializer { _fromWire[serialized]!; } -class WrappedEnum_$String extends DynamiteEnum { - const WrappedEnum_$String._(super.name); +class WrappedEnum_CustomString extends EnumClass { + const WrappedEnum_CustomString._(super.name); - static const WrappedEnum_$String test = WrappedEnum_$String._('test'); + static const WrappedEnum_CustomString test = _$wrappedEnumCustomStringTest; - static const WrappedEnum_$String $default = WrappedEnum_$String._('default'); + @BuiltValueEnumConst(wireName: 'default') + static const WrappedEnum_CustomString $default = _$wrappedEnumCustomString$default; - static BuiltSet get values => BuiltSet(const [ - WrappedEnum_$String.test, - WrappedEnum_$String.$default, - ]); + static BuiltSet get values => _$wrappedEnumCustomStringValues; - static WrappedEnum_$String valueOf(String name) { - switch (name) { - case 'test': - return WrappedEnum_$String.test; - case 'default': - return WrappedEnum_$String.$default; - default: - throw ArgumentError(name); - } - } + static WrappedEnum_CustomString valueOf(String name) => _$valueOfWrappedEnum_CustomString(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) - static Serializer get serializer => const _$WrappedEnum_$StringSerializer(); + static Serializer get serializer => const _$WrappedEnum_CustomStringSerializer(); } -class _$WrappedEnum_$StringSerializer implements PrimitiveSerializer { - const _$WrappedEnum_$StringSerializer(); +class _$WrappedEnum_CustomStringSerializer implements PrimitiveSerializer { + const _$WrappedEnum_CustomStringSerializer(); - static const Map _toWire = { - WrappedEnum_$String.test: 'test', - WrappedEnum_$String.$default: 'default', + static const Map _toWire = { + WrappedEnum_CustomString.test: 'test', + WrappedEnum_CustomString.$default: 'default', }; - static const Map _fromWire = { - 'test': WrappedEnum_$String.test, - 'default': WrappedEnum_$String.$default, + static const Map _fromWire = { + 'test': WrappedEnum_CustomString.test, + 'default': WrappedEnum_CustomString.$default, }; @override - Iterable get types => const [WrappedEnum_$String]; + Iterable get types => const [WrappedEnum_CustomString]; @override - String get wireName => r'WrappedEnum_$String'; + String get wireName => 'WrappedEnum_CustomString'; @override Object serialize( Serializers serializers, - WrappedEnum_$String object, { + WrappedEnum_CustomString object, { FullType specifiedType = FullType.unspecified, }) => _toWire[object]!; @override - WrappedEnum_$String deserialize( + WrappedEnum_CustomString deserialize( Serializers serializers, Object serialized, { FullType specifiedType = FullType.unspecified, @@ -287,33 +246,23 @@ class _$WrappedEnum_$StringSerializer implements PrimitiveSerializer { +class WrappedEnum_Integer extends EnumClass { const WrappedEnum_Integer._(super.name); - static const WrappedEnum_Integer $0 = WrappedEnum_Integer._(0); + @BuiltValueEnumConst(wireName: '0') + static const WrappedEnum_Integer $0 = _$wrappedEnumInteger$0; + + @BuiltValueEnumConst(wireName: '1') + static const WrappedEnum_Integer $1 = _$wrappedEnumInteger$1; - static const WrappedEnum_Integer $1 = WrappedEnum_Integer._(1); + @BuiltValueEnumConst(wireName: '2') + static const WrappedEnum_Integer $2 = _$wrappedEnumInteger$2; - static const WrappedEnum_Integer $2 = WrappedEnum_Integer._(2); + static BuiltSet get values => _$wrappedEnumIntegerValues; - static BuiltSet get values => BuiltSet(const [ - WrappedEnum_Integer.$0, - WrappedEnum_Integer.$1, - WrappedEnum_Integer.$2, - ]); + static WrappedEnum_Integer valueOf(String name) => _$valueOfWrappedEnum_Integer(name); - static WrappedEnum_Integer valueOf(int name) { - switch (name) { - case 0: - return WrappedEnum_Integer.$0; - case 1: - return WrappedEnum_Integer.$1; - case 2: - return WrappedEnum_Integer.$2; - default: - throw ArgumentError(name); - } - } + int get value => jsonSerializers.deserializeWith(serializer, this)! as int; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$WrappedEnum_IntegerSerializer(); @@ -359,7 +308,8 @@ class _$WrappedEnum_IntegerSerializer implements PrimitiveSerializer _$enumStringValues = BuiltSet(const [ + _$enumStringTest, + _$enumString$default, + _$enumStringDollar, +]); + +const EnumInt _$enumInt$0 = EnumInt._('\$0'); +const EnumInt _$enumInt$1 = EnumInt._('\$1'); +const EnumInt _$enumInt$2 = EnumInt._('\$2'); + +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 { @@ -18,8 +131,8 @@ class _$WrappedEnumSerializer implements StructuredSerializer { Iterable serialize(Serializers serializers, WrappedEnum object, {FullType specifiedType = FullType.unspecified}) { final result = [ - 'string', - serializers.serialize(object.string, specifiedType: const FullType(WrappedEnum_$String)), + 'custom-string', + serializers.serialize(object.customString, specifiedType: const FullType(WrappedEnum_CustomString)), 'integer', serializers.serialize(object.integer, specifiedType: const FullType(WrappedEnum_Integer)), ]; @@ -38,9 +151,9 @@ class _$WrappedEnumSerializer implements StructuredSerializer { iterator.moveNext(); final Object? value = iterator.current; switch (key) { - case 'string': - result.string = serializers.deserialize(value, specifiedType: const FullType(WrappedEnum_$String))! - as WrappedEnum_$String; + 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))! @@ -56,8 +169,8 @@ class _$WrappedEnumSerializer implements StructuredSerializer { abstract mixin class $WrappedEnumInterfaceBuilder { void replace($WrappedEnumInterface other); void update(void Function($WrappedEnumInterfaceBuilder) updates); - WrappedEnum_$String? get string; - set string(WrappedEnum_$String? string); + WrappedEnum_CustomString? get customString; + set customString(WrappedEnum_CustomString? customString); WrappedEnum_Integer? get integer; set integer(WrappedEnum_Integer? integer); @@ -65,15 +178,15 @@ abstract mixin class $WrappedEnumInterfaceBuilder { class _$WrappedEnum extends WrappedEnum { @override - final WrappedEnum_$String string; + final WrappedEnum_CustomString customString; @override final WrappedEnum_Integer integer; factory _$WrappedEnum([void Function(WrappedEnumBuilder)? updates]) => (WrappedEnumBuilder()..update(updates))._build(); - _$WrappedEnum._({required this.string, required this.integer}) : super._() { - BuiltValueNullFieldError.checkNotNull(string, r'WrappedEnum', 'string'); + _$WrappedEnum._({required this.customString, required this.integer}) : super._() { + BuiltValueNullFieldError.checkNotNull(customString, r'WrappedEnum', 'customString'); BuiltValueNullFieldError.checkNotNull(integer, r'WrappedEnum', 'integer'); } @@ -86,13 +199,13 @@ class _$WrappedEnum extends WrappedEnum { @override bool operator ==(Object other) { if (identical(other, this)) return true; - return other is WrappedEnum && string == other.string && integer == other.integer; + return other is WrappedEnum && customString == other.customString && integer == other.integer; } @override int get hashCode { var _$hash = 0; - _$hash = $jc(_$hash, string.hashCode); + _$hash = $jc(_$hash, customString.hashCode); _$hash = $jc(_$hash, integer.hashCode); _$hash = $jf(_$hash); return _$hash; @@ -101,7 +214,7 @@ class _$WrappedEnum extends WrappedEnum { @override String toString() { return (newBuiltValueToStringHelper(r'WrappedEnum') - ..add('string', string) + ..add('customString', customString) ..add('integer', integer)) .toString(); } @@ -110,9 +223,9 @@ class _$WrappedEnum extends WrappedEnum { class WrappedEnumBuilder implements Builder, $WrappedEnumInterfaceBuilder { _$WrappedEnum? _$v; - WrappedEnum_$String? _string; - WrappedEnum_$String? get string => _$this._string; - set string(covariant WrappedEnum_$String? string) => _$this._string = string; + 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; @@ -123,7 +236,7 @@ class WrappedEnumBuilder implements Builder, $W WrappedEnumBuilder get _$this { final $v = _$v; if ($v != null) { - _string = $v.string; + _customString = $v.customString; _integer = $v.integer; _$v = null; } @@ -147,7 +260,7 @@ class WrappedEnumBuilder implements Builder, $W _$WrappedEnum _build() { final _$result = _$v ?? _$WrappedEnum._( - string: BuiltValueNullFieldError.checkNotNull(string, r'WrappedEnum', 'string'), + customString: BuiltValueNullFieldError.checkNotNull(customString, r'WrappedEnum', 'customString'), integer: BuiltValueNullFieldError.checkNotNull(integer, r'WrappedEnum', 'integer')); replace(_$result); return _$result; 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 17bd5e377ef..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 @@ -31,13 +31,14 @@ ] }, "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": [ - "string", + "custom-string", "integer" ], "properties": { - "string": { + "custom-string": { "type": "string", "enum": [ "test", 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 169f9a3c8ef..8befd5c4acd 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 @@ -19,6 +19,8 @@ import 'package:meta/meta.dart'; import 'package:universal_io/io.dart'; import 'package:uri/uri.dart'; +part 'parameters.openapi.g.dart'; + class $Client extends DynamiteClient { $Client( super.baseURL, { @@ -472,28 +474,19 @@ class $Client extends DynamiteClient { } } -class GetEnumPattern extends DynamiteEnum { +class GetEnumPattern extends EnumClass { const GetEnumPattern._(super.name); - static const GetEnumPattern a = GetEnumPattern._('a'); + static const GetEnumPattern a = _$getEnumPatternA; - static const GetEnumPattern $0 = GetEnumPattern._('0'); + @BuiltValueEnumConst(wireName: '0') + static const GetEnumPattern $0 = _$getEnumPattern$0; - static BuiltSet get values => BuiltSet(const [ - GetEnumPattern.a, - GetEnumPattern.$0, - ]); + static BuiltSet get values => _$getEnumPatternValues; - static GetEnumPattern valueOf(String name) { - switch (name) { - case 'a': - return GetEnumPattern.a; - case '0': - return GetEnumPattern.$0; - default: - throw ArgumentError(name); - } - } + static GetEnumPattern valueOf(String name) => _$valueOfGetEnumPattern(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$GetEnumPatternSerializer(); @@ -535,28 +528,19 @@ class _$GetEnumPatternSerializer implements PrimitiveSerializer _fromWire[serialized]!; } -class GetHeadersEnumPattern extends DynamiteEnum { +class GetHeadersEnumPattern extends EnumClass { const GetHeadersEnumPattern._(super.name); - static const GetHeadersEnumPattern a = GetHeadersEnumPattern._('a'); + static const GetHeadersEnumPattern a = _$getHeadersEnumPatternA; - static const GetHeadersEnumPattern $0 = GetHeadersEnumPattern._('0'); + @BuiltValueEnumConst(wireName: '0') + static const GetHeadersEnumPattern $0 = _$getHeadersEnumPattern$0; - static BuiltSet get values => BuiltSet(const [ - GetHeadersEnumPattern.a, - GetHeadersEnumPattern.$0, - ]); + static BuiltSet get values => _$getHeadersEnumPatternValues; - static GetHeadersEnumPattern valueOf(String name) { - switch (name) { - case 'a': - return GetHeadersEnumPattern.a; - case '0': - return GetHeadersEnumPattern.$0; - default: - throw ArgumentError(name); - } - } + static GetHeadersEnumPattern valueOf(String name) => _$valueOfGetHeadersEnumPattern(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$GetHeadersEnumPatternSerializer(); 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 new file mode 100644 index 00000000000..ccd309aa599 --- /dev/null +++ b/packages/dynamite/dynamite_end_to_end_test/lib/parameters.openapi.g.dart @@ -0,0 +1,48 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'parameters.openapi.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +const GetEnumPattern _$getEnumPatternA = GetEnumPattern._('a'); +const GetEnumPattern _$getEnumPattern$0 = GetEnumPattern._('\$0'); + +GetEnumPattern _$valueOfGetEnumPattern(String name) { + switch (name) { + case 'a': + return _$getEnumPatternA; + case '\$0': + return _$getEnumPattern$0; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$getEnumPatternValues = BuiltSet(const [ + _$getEnumPatternA, + _$getEnumPattern$0, +]); + +const GetHeadersEnumPattern _$getHeadersEnumPatternA = GetHeadersEnumPattern._('a'); +const GetHeadersEnumPattern _$getHeadersEnumPattern$0 = GetHeadersEnumPattern._('\$0'); + +GetHeadersEnumPattern _$valueOfGetHeadersEnumPattern(String name) { + switch (name) { + case 'a': + return _$getHeadersEnumPatternA; + case '\$0': + return _$getHeadersEnumPattern$0; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$getHeadersEnumPatternValues = + BuiltSet(const [ + _$getHeadersEnumPatternA, + _$getHeadersEnumPattern$0, +]); + +// 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 e3b9c005670..222264bab61 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 @@ -82,7 +82,7 @@ void main() { test('serialize', () { final wrap = WrappedEnum( (b) => b - ..string = WrappedEnum_$String.$default + ..customString = WrappedEnum_CustomString.$default ..integer = WrappedEnum_Integer.$2, ); final serialized = jsonSerializers.serialize( @@ -90,7 +90,7 @@ void main() { specifiedType: const FullType(WrappedEnum), ); expect(serialized, { - 'string': 'default', + 'custom-string': 'default', 'integer': 2, }); }); diff --git a/packages/dynamite/dynamite_runtime/lib/built_value.dart b/packages/dynamite/dynamite_runtime/lib/built_value.dart index 2b95b4c3104..07d29e7dd66 100644 --- a/packages/dynamite/dynamite_runtime/lib/built_value.dart +++ b/packages/dynamite/dynamite_runtime/lib/built_value.dart @@ -1,4 +1,3 @@ export 'src/built_value/content_string_serializer.dart'; export 'src/built_value/double_serializer.dart'; -export 'src/built_value/enum.dart'; export 'src/built_value/header_serializer.dart'; diff --git a/packages/dynamite/dynamite_runtime/lib/src/built_value/enum.dart b/packages/dynamite/dynamite_runtime/lib/src/built_value/enum.dart deleted file mode 100644 index 79ee497ec71..00000000000 --- a/packages/dynamite/dynamite_runtime/lib/src/built_value/enum.dart +++ /dev/null @@ -1,13 +0,0 @@ -/// Enum Class base class. -/// -/// Similar to a built_value `EnumClass` but allowing generic subtypes. -class DynamiteEnum { - /// Creates a new enum value with the given name. - const DynamiteEnum(this.name); - - /// The enum value. - final T name; - - @override - String toString() => name.toString(); -} diff --git a/packages/nextcloud/lib/src/api/files_external.openapi.dart b/packages/nextcloud/lib/src/api/files_external.openapi.dart index 28d87a7b029..2cffe452b7a 100644 --- a/packages/nextcloud/lib/src/api/files_external.openapi.dart +++ b/packages/nextcloud/lib/src/api/files_external.openapi.dart @@ -152,23 +152,18 @@ abstract class OCSMeta implements $OCSMetaInterface, Built get serializer => _$oCSMetaSerializer; } -class Mount_Type extends DynamiteEnum { +class Mount_Type extends EnumClass { const Mount_Type._(super.name); - static const Mount_Type dir = Mount_Type._('dir'); + static const Mount_Type dir = _$mountTypeDir; - static BuiltSet get values => BuiltSet(const [ - Mount_Type.dir, - ]); + // coverage:ignore-start + static BuiltSet get values => _$mountTypeValues; + // coverage:ignore-end - static Mount_Type valueOf(String name) { - switch (name) { - case 'dir': - return Mount_Type.dir; - default: - throw ArgumentError(name); - } - } + static Mount_Type valueOf(String name) => _$valueOfMount_Type(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$Mount_TypeSerializer(); @@ -208,28 +203,20 @@ class _$Mount_TypeSerializer implements PrimitiveSerializer { _fromWire[serialized]!; } -class Mount_Scope extends DynamiteEnum { +class Mount_Scope extends EnumClass { const Mount_Scope._(super.name); - static const Mount_Scope system = Mount_Scope._('system'); + static const Mount_Scope system = _$mountScopeSystem; - static const Mount_Scope personal = Mount_Scope._('personal'); + static const Mount_Scope personal = _$mountScopePersonal; - static BuiltSet get values => BuiltSet(const [ - Mount_Scope.system, - Mount_Scope.personal, - ]); + // coverage:ignore-start + static BuiltSet get values => _$mountScopeValues; + // coverage:ignore-end - static Mount_Scope valueOf(String name) { - switch (name) { - case 'system': - return Mount_Scope.system; - case 'personal': - return Mount_Scope.personal; - default: - throw ArgumentError(name); - } - } + static Mount_Scope valueOf(String name) => _$valueOfMount_Scope(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$Mount_ScopeSerializer(); @@ -271,28 +258,20 @@ class _$Mount_ScopeSerializer implements PrimitiveSerializer { _fromWire[serialized]!; } -class StorageConfig_Type extends DynamiteEnum { +class StorageConfig_Type extends EnumClass { const StorageConfig_Type._(super.name); - static const StorageConfig_Type personal = StorageConfig_Type._('personal'); + static const StorageConfig_Type personal = _$storageConfigTypePersonal; - static const StorageConfig_Type system = StorageConfig_Type._('system'); + static const StorageConfig_Type system = _$storageConfigTypeSystem; - static BuiltSet get values => BuiltSet(const [ - StorageConfig_Type.personal, - StorageConfig_Type.system, - ]); + // coverage:ignore-start + static BuiltSet get values => _$storageConfigTypeValues; + // coverage:ignore-end - static StorageConfig_Type valueOf(String name) { - switch (name) { - case 'personal': - return StorageConfig_Type.personal; - case 'system': - return StorageConfig_Type.system; - default: - throw ArgumentError(name); - } - } + static StorageConfig_Type valueOf(String name) => _$valueOfStorageConfig_Type(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$StorageConfig_TypeSerializer(); 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 0ddd717961c..e589ef34ad3 100644 --- a/packages/nextcloud/lib/src/api/files_external.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/files_external.openapi.g.dart @@ -6,6 +6,59 @@ part of 'files_external.openapi.dart'; // BuiltValueGenerator // ************************************************************************** +const Mount_Type _$mountTypeDir = Mount_Type._('dir'); + +Mount_Type _$valueOfMount_Type(String name) { + switch (name) { + case 'dir': + return _$mountTypeDir; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$mountTypeValues = BuiltSet(const [ + _$mountTypeDir, +]); + +const Mount_Scope _$mountScopeSystem = Mount_Scope._('system'); +const Mount_Scope _$mountScopePersonal = Mount_Scope._('personal'); + +Mount_Scope _$valueOfMount_Scope(String name) { + switch (name) { + case 'system': + return _$mountScopeSystem; + case 'personal': + return _$mountScopePersonal; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$mountScopeValues = BuiltSet(const [ + _$mountScopeSystem, + _$mountScopePersonal, +]); + +const StorageConfig_Type _$storageConfigTypePersonal = StorageConfig_Type._('personal'); +const StorageConfig_Type _$storageConfigTypeSystem = StorageConfig_Type._('system'); + +StorageConfig_Type _$valueOfStorageConfig_Type(String name) { + switch (name) { + case 'personal': + return _$storageConfigTypePersonal; + case 'system': + return _$storageConfigTypeSystem; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$storageConfigTypeValues = BuiltSet(const [ + _$storageConfigTypePersonal, + _$storageConfigTypeSystem, +]); + Serializer _$oCSMetaSerializer = _$OCSMetaSerializer(); Serializer _$storageConfigSerializer = _$StorageConfigSerializer(); Serializer _$mountSerializer = _$MountSerializer(); diff --git a/packages/nextcloud/lib/src/api/files_sharing.openapi.dart b/packages/nextcloud/lib/src/api/files_sharing.openapi.dart index 6bf6dd13997..7d1a3dcec70 100644 --- a/packages/nextcloud/lib/src/api/files_sharing.openapi.dart +++ b/packages/nextcloud/lib/src/api/files_sharing.openapi.dart @@ -2971,28 +2971,20 @@ abstract class ShareInfo implements $ShareInfoInterface, Built get serializer => _$shareInfoSerializer; } -class Share_ItemType extends DynamiteEnum { +class Share_ItemType extends EnumClass { const Share_ItemType._(super.name); - static const Share_ItemType file = Share_ItemType._('file'); + static const Share_ItemType file = _$shareItemTypeFile; - static const Share_ItemType folder = Share_ItemType._('folder'); + static const Share_ItemType folder = _$shareItemTypeFolder; - static BuiltSet get values => BuiltSet(const [ - Share_ItemType.file, - Share_ItemType.folder, - ]); + // coverage:ignore-start + static BuiltSet get values => _$shareItemTypeValues; + // coverage:ignore-end - static Share_ItemType valueOf(String name) { - switch (name) { - case 'file': - return Share_ItemType.file; - case 'folder': - return Share_ItemType.folder; - default: - throw ArgumentError(name); - } - } + static Share_ItemType valueOf(String name) => _$valueOfShare_ItemType(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$Share_ItemTypeSerializer(); 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 54c24d3ddd6..436468fe286 100644 --- a/packages/nextcloud/lib/src/api/files_sharing.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/files_sharing.openapi.g.dart @@ -6,6 +6,25 @@ part of 'files_sharing.openapi.dart'; // BuiltValueGenerator // ************************************************************************** +const Share_ItemType _$shareItemTypeFile = Share_ItemType._('file'); +const Share_ItemType _$shareItemTypeFolder = Share_ItemType._('folder'); + +Share_ItemType _$valueOfShare_ItemType(String name) { + switch (name) { + case 'file': + return _$shareItemTypeFile; + case 'folder': + return _$shareItemTypeFolder; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$shareItemTypeValues = BuiltSet(const [ + _$shareItemTypeFile, + _$shareItemTypeFolder, +]); + Serializer _$oCSMetaSerializer = _$OCSMetaSerializer(); Serializer _$deletedShareSerializer = _$DeletedShareSerializer(); Serializer _$deletedShareapiListResponseApplicationJsonOcsSerializer = diff --git a/packages/nextcloud/lib/src/api/notes.openapi.dart b/packages/nextcloud/lib/src/api/notes.openapi.dart index fa6a1c0ed99..c3d65a3f0e3 100644 --- a/packages/nextcloud/lib/src/api/notes.openapi.dart +++ b/packages/nextcloud/lib/src/api/notes.openapi.dart @@ -734,33 +734,22 @@ abstract class Note implements $NoteInterface, Built { static Serializer get serializer => _$noteSerializer; } -class Settings_NoteMode extends DynamiteEnum { +class Settings_NoteMode extends EnumClass { const Settings_NoteMode._(super.name); - static const Settings_NoteMode edit = Settings_NoteMode._('edit'); + static const Settings_NoteMode edit = _$settingsNoteModeEdit; - static const Settings_NoteMode preview = Settings_NoteMode._('preview'); + static const Settings_NoteMode preview = _$settingsNoteModePreview; - static const Settings_NoteMode rich = Settings_NoteMode._('rich'); + static const Settings_NoteMode rich = _$settingsNoteModeRich; - static BuiltSet get values => BuiltSet(const [ - Settings_NoteMode.edit, - Settings_NoteMode.preview, - Settings_NoteMode.rich, - ]); + // coverage:ignore-start + static BuiltSet get values => _$settingsNoteModeValues; + // coverage:ignore-end - static Settings_NoteMode valueOf(String name) { - switch (name) { - case 'edit': - return Settings_NoteMode.edit; - case 'preview': - return Settings_NoteMode.preview; - case 'rich': - return Settings_NoteMode.rich; - default: - throw ArgumentError(name); - } - } + static Settings_NoteMode valueOf(String name) => _$valueOfSettings_NoteMode(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$Settings_NoteModeSerializer(); diff --git a/packages/nextcloud/lib/src/api/notes.openapi.g.dart b/packages/nextcloud/lib/src/api/notes.openapi.g.dart index fc061620714..206b340b920 100644 --- a/packages/nextcloud/lib/src/api/notes.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/notes.openapi.g.dart @@ -6,6 +6,29 @@ part of 'notes.openapi.dart'; // BuiltValueGenerator // ************************************************************************** +const Settings_NoteMode _$settingsNoteModeEdit = Settings_NoteMode._('edit'); +const Settings_NoteMode _$settingsNoteModePreview = Settings_NoteMode._('preview'); +const Settings_NoteMode _$settingsNoteModeRich = Settings_NoteMode._('rich'); + +Settings_NoteMode _$valueOfSettings_NoteMode(String name) { + switch (name) { + case 'edit': + return _$settingsNoteModeEdit; + case 'preview': + return _$settingsNoteModePreview; + case 'rich': + return _$settingsNoteModeRich; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$settingsNoteModeValues = BuiltSet(const [ + _$settingsNoteModeEdit, + _$settingsNoteModePreview, + _$settingsNoteModeRich, +]); + Serializer _$noteSerializer = _$NoteSerializer(); Serializer _$settingsSerializer = _$SettingsSerializer(); Serializer _$capabilitiesNotesSerializer = _$Capabilities_NotesSerializer(); diff --git a/packages/nextcloud/lib/src/api/notifications.openapi.dart b/packages/nextcloud/lib/src/api/notifications.openapi.dart index 03a28740d77..4d8e503cabc 100644 --- a/packages/nextcloud/lib/src/api/notifications.openapi.dart +++ b/packages/nextcloud/lib/src/api/notifications.openapi.dart @@ -1170,29 +1170,20 @@ class $SettingsClient { } } -class ApiGenerateNotificationApiVersion extends DynamiteEnum { +class ApiGenerateNotificationApiVersion extends EnumClass { const ApiGenerateNotificationApiVersion._(super.name); - static const ApiGenerateNotificationApiVersion v1 = ApiGenerateNotificationApiVersion._('v1'); + static const ApiGenerateNotificationApiVersion v1 = _$apiGenerateNotificationApiVersionV1; - static const ApiGenerateNotificationApiVersion v2 = ApiGenerateNotificationApiVersion._('v2'); + static const ApiGenerateNotificationApiVersion v2 = _$apiGenerateNotificationApiVersionV2; - static BuiltSet get values => - BuiltSet(const [ - ApiGenerateNotificationApiVersion.v1, - ApiGenerateNotificationApiVersion.v2, - ]); + // coverage:ignore-start + static BuiltSet get values => _$apiGenerateNotificationApiVersionValues; + // coverage:ignore-end - static ApiGenerateNotificationApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return ApiGenerateNotificationApiVersion.v1; - case 'v2': - return ApiGenerateNotificationApiVersion.v2; - default: - throw ArgumentError(name); - } - } + static ApiGenerateNotificationApiVersion valueOf(String name) => _$valueOfApiGenerateNotificationApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -1324,29 +1315,20 @@ abstract class ApiGenerateNotificationResponseApplicationJson _$apiGenerateNotificationResponseApplicationJsonSerializer; } -class EndpointListNotificationsApiVersion extends DynamiteEnum { +class EndpointListNotificationsApiVersion extends EnumClass { const EndpointListNotificationsApiVersion._(super.name); - static const EndpointListNotificationsApiVersion v1 = EndpointListNotificationsApiVersion._('v1'); + static const EndpointListNotificationsApiVersion v1 = _$endpointListNotificationsApiVersionV1; - static const EndpointListNotificationsApiVersion v2 = EndpointListNotificationsApiVersion._('v2'); + static const EndpointListNotificationsApiVersion v2 = _$endpointListNotificationsApiVersionV2; - static BuiltSet get values => - BuiltSet(const [ - EndpointListNotificationsApiVersion.v1, - EndpointListNotificationsApiVersion.v2, - ]); + // coverage:ignore-start + static BuiltSet get values => _$endpointListNotificationsApiVersionValues; + // coverage:ignore-end - static EndpointListNotificationsApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return EndpointListNotificationsApiVersion.v1; - case 'v2': - return EndpointListNotificationsApiVersion.v2; - default: - throw ArgumentError(name); - } - } + static EndpointListNotificationsApiVersion valueOf(String name) => _$valueOfEndpointListNotificationsApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -1553,29 +1535,22 @@ abstract class EndpointListNotificationsResponseApplicationJson _$endpointListNotificationsResponseApplicationJsonSerializer; } -class EndpointDeleteAllNotificationsApiVersion extends DynamiteEnum { +class EndpointDeleteAllNotificationsApiVersion extends EnumClass { const EndpointDeleteAllNotificationsApiVersion._(super.name); - static const EndpointDeleteAllNotificationsApiVersion v1 = EndpointDeleteAllNotificationsApiVersion._('v1'); + static const EndpointDeleteAllNotificationsApiVersion v1 = _$endpointDeleteAllNotificationsApiVersionV1; - static const EndpointDeleteAllNotificationsApiVersion v2 = EndpointDeleteAllNotificationsApiVersion._('v2'); + static const EndpointDeleteAllNotificationsApiVersion v2 = _$endpointDeleteAllNotificationsApiVersionV2; + // coverage:ignore-start static BuiltSet get values => - BuiltSet(const [ - EndpointDeleteAllNotificationsApiVersion.v1, - EndpointDeleteAllNotificationsApiVersion.v2, - ]); - - static EndpointDeleteAllNotificationsApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return EndpointDeleteAllNotificationsApiVersion.v1; - case 'v2': - return EndpointDeleteAllNotificationsApiVersion.v2; - default: - throw ArgumentError(name); - } - } + _$endpointDeleteAllNotificationsApiVersionValues; + // coverage:ignore-end + + static EndpointDeleteAllNotificationsApiVersion valueOf(String name) => + _$valueOfEndpointDeleteAllNotificationsApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -1684,29 +1659,20 @@ abstract class EndpointDeleteAllNotificationsResponseApplicationJson _$endpointDeleteAllNotificationsResponseApplicationJsonSerializer; } -class EndpointGetNotificationApiVersion extends DynamiteEnum { +class EndpointGetNotificationApiVersion extends EnumClass { const EndpointGetNotificationApiVersion._(super.name); - static const EndpointGetNotificationApiVersion v1 = EndpointGetNotificationApiVersion._('v1'); + static const EndpointGetNotificationApiVersion v1 = _$endpointGetNotificationApiVersionV1; - static const EndpointGetNotificationApiVersion v2 = EndpointGetNotificationApiVersion._('v2'); + static const EndpointGetNotificationApiVersion v2 = _$endpointGetNotificationApiVersionV2; - static BuiltSet get values => - BuiltSet(const [ - EndpointGetNotificationApiVersion.v1, - EndpointGetNotificationApiVersion.v2, - ]); + // coverage:ignore-start + static BuiltSet get values => _$endpointGetNotificationApiVersionValues; + // coverage:ignore-end - static EndpointGetNotificationApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return EndpointGetNotificationApiVersion.v1; - case 'v2': - return EndpointGetNotificationApiVersion.v2; - default: - throw ArgumentError(name); - } - } + static EndpointGetNotificationApiVersion valueOf(String name) => _$valueOfEndpointGetNotificationApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -1811,29 +1777,21 @@ abstract class EndpointGetNotificationResponseApplicationJson _$endpointGetNotificationResponseApplicationJsonSerializer; } -class EndpointDeleteNotificationApiVersion extends DynamiteEnum { +class EndpointDeleteNotificationApiVersion extends EnumClass { const EndpointDeleteNotificationApiVersion._(super.name); - static const EndpointDeleteNotificationApiVersion v1 = EndpointDeleteNotificationApiVersion._('v1'); + static const EndpointDeleteNotificationApiVersion v1 = _$endpointDeleteNotificationApiVersionV1; + + static const EndpointDeleteNotificationApiVersion v2 = _$endpointDeleteNotificationApiVersionV2; - static const EndpointDeleteNotificationApiVersion v2 = EndpointDeleteNotificationApiVersion._('v2'); + // coverage:ignore-start + static BuiltSet get values => _$endpointDeleteNotificationApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - EndpointDeleteNotificationApiVersion.v1, - EndpointDeleteNotificationApiVersion.v2, - ]); + static EndpointDeleteNotificationApiVersion valueOf(String name) => + _$valueOfEndpointDeleteNotificationApiVersion(name); - static EndpointDeleteNotificationApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return EndpointDeleteNotificationApiVersion.v1; - case 'v2': - return EndpointDeleteNotificationApiVersion.v2; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -1942,29 +1900,20 @@ abstract class EndpointDeleteNotificationResponseApplicationJson _$endpointDeleteNotificationResponseApplicationJsonSerializer; } -class EndpointConfirmIdsForUserApiVersion extends DynamiteEnum { +class EndpointConfirmIdsForUserApiVersion extends EnumClass { const EndpointConfirmIdsForUserApiVersion._(super.name); - static const EndpointConfirmIdsForUserApiVersion v1 = EndpointConfirmIdsForUserApiVersion._('v1'); + static const EndpointConfirmIdsForUserApiVersion v1 = _$endpointConfirmIdsForUserApiVersionV1; - static const EndpointConfirmIdsForUserApiVersion v2 = EndpointConfirmIdsForUserApiVersion._('v2'); + static const EndpointConfirmIdsForUserApiVersion v2 = _$endpointConfirmIdsForUserApiVersionV2; - static BuiltSet get values => - BuiltSet(const [ - EndpointConfirmIdsForUserApiVersion.v1, - EndpointConfirmIdsForUserApiVersion.v2, - ]); + // coverage:ignore-start + static BuiltSet get values => _$endpointConfirmIdsForUserApiVersionValues; + // coverage:ignore-end - static EndpointConfirmIdsForUserApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return EndpointConfirmIdsForUserApiVersion.v1; - case 'v2': - return EndpointConfirmIdsForUserApiVersion.v2; - default: - throw ArgumentError(name); - } - } + static EndpointConfirmIdsForUserApiVersion valueOf(String name) => _$valueOfEndpointConfirmIdsForUserApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -2072,24 +2021,18 @@ abstract class EndpointConfirmIdsForUserResponseApplicationJson _$endpointConfirmIdsForUserResponseApplicationJsonSerializer; } -class PushRegisterDeviceApiVersion extends DynamiteEnum { +class PushRegisterDeviceApiVersion extends EnumClass { const PushRegisterDeviceApiVersion._(super.name); - static const PushRegisterDeviceApiVersion v2 = PushRegisterDeviceApiVersion._('v2'); + static const PushRegisterDeviceApiVersion v2 = _$pushRegisterDeviceApiVersionV2; - static BuiltSet get values => - BuiltSet(const [ - PushRegisterDeviceApiVersion.v2, - ]); + // coverage:ignore-start + static BuiltSet get values => _$pushRegisterDeviceApiVersionValues; + // coverage:ignore-end - static PushRegisterDeviceApiVersion valueOf(String name) { - switch (name) { - case 'v2': - return PushRegisterDeviceApiVersion.v2; - default: - throw ArgumentError(name); - } - } + static PushRegisterDeviceApiVersion valueOf(String name) => _$valueOfPushRegisterDeviceApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$PushRegisterDeviceApiVersionSerializer(); @@ -2215,24 +2158,18 @@ abstract class PushRegisterDeviceResponseApplicationJson _$pushRegisterDeviceResponseApplicationJsonSerializer; } -class PushRemoveDeviceApiVersion extends DynamiteEnum { +class PushRemoveDeviceApiVersion extends EnumClass { const PushRemoveDeviceApiVersion._(super.name); - static const PushRemoveDeviceApiVersion v2 = PushRemoveDeviceApiVersion._('v2'); + static const PushRemoveDeviceApiVersion v2 = _$pushRemoveDeviceApiVersionV2; - static BuiltSet get values => - BuiltSet(const [ - PushRemoveDeviceApiVersion.v2, - ]); + // coverage:ignore-start + static BuiltSet get values => _$pushRemoveDeviceApiVersionValues; + // coverage:ignore-end - static PushRemoveDeviceApiVersion valueOf(String name) { - switch (name) { - case 'v2': - return PushRemoveDeviceApiVersion.v2; - default: - throw ArgumentError(name); - } - } + static PushRemoveDeviceApiVersion valueOf(String name) => _$valueOfPushRemoveDeviceApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$PushRemoveDeviceApiVersionSerializer(); @@ -2332,24 +2269,18 @@ abstract class PushRemoveDeviceResponseApplicationJson _$pushRemoveDeviceResponseApplicationJsonSerializer; } -class SettingsPersonalApiVersion extends DynamiteEnum { +class SettingsPersonalApiVersion extends EnumClass { const SettingsPersonalApiVersion._(super.name); - static const SettingsPersonalApiVersion v2 = SettingsPersonalApiVersion._('v2'); + static const SettingsPersonalApiVersion v2 = _$settingsPersonalApiVersionV2; - static BuiltSet get values => - BuiltSet(const [ - SettingsPersonalApiVersion.v2, - ]); + // coverage:ignore-start + static BuiltSet get values => _$settingsPersonalApiVersionValues; + // coverage:ignore-end - static SettingsPersonalApiVersion valueOf(String name) { - switch (name) { - case 'v2': - return SettingsPersonalApiVersion.v2; - default: - throw ArgumentError(name); - } - } + static SettingsPersonalApiVersion valueOf(String name) => _$valueOfSettingsPersonalApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$SettingsPersonalApiVersionSerializer(); @@ -2449,24 +2380,18 @@ abstract class SettingsPersonalResponseApplicationJson _$settingsPersonalResponseApplicationJsonSerializer; } -class SettingsAdminApiVersion extends DynamiteEnum { +class SettingsAdminApiVersion extends EnumClass { const SettingsAdminApiVersion._(super.name); - static const SettingsAdminApiVersion v2 = SettingsAdminApiVersion._('v2'); + static const SettingsAdminApiVersion v2 = _$settingsAdminApiVersionV2; + + // coverage:ignore-start + static BuiltSet get values => _$settingsAdminApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - SettingsAdminApiVersion.v2, - ]); + static SettingsAdminApiVersion valueOf(String name) => _$valueOfSettingsAdminApiVersion(name); - static SettingsAdminApiVersion valueOf(String name) { - switch (name) { - case 'v2': - return SettingsAdminApiVersion.v2; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$SettingsAdminApiVersionSerializer(); diff --git a/packages/nextcloud/lib/src/api/notifications.openapi.g.dart b/packages/nextcloud/lib/src/api/notifications.openapi.g.dart index 232e6afdc44..dd4d0b7bb02 100644 --- a/packages/nextcloud/lib/src/api/notifications.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/notifications.openapi.g.dart @@ -6,6 +6,202 @@ part of 'notifications.openapi.dart'; // BuiltValueGenerator // ************************************************************************** +const ApiGenerateNotificationApiVersion _$apiGenerateNotificationApiVersionV1 = + ApiGenerateNotificationApiVersion._('v1'); +const ApiGenerateNotificationApiVersion _$apiGenerateNotificationApiVersionV2 = + ApiGenerateNotificationApiVersion._('v2'); + +ApiGenerateNotificationApiVersion _$valueOfApiGenerateNotificationApiVersion(String name) { + switch (name) { + case 'v1': + return _$apiGenerateNotificationApiVersionV1; + case 'v2': + return _$apiGenerateNotificationApiVersionV2; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$apiGenerateNotificationApiVersionValues = + BuiltSet(const [ + _$apiGenerateNotificationApiVersionV1, + _$apiGenerateNotificationApiVersionV2, +]); + +const EndpointListNotificationsApiVersion _$endpointListNotificationsApiVersionV1 = + EndpointListNotificationsApiVersion._('v1'); +const EndpointListNotificationsApiVersion _$endpointListNotificationsApiVersionV2 = + EndpointListNotificationsApiVersion._('v2'); + +EndpointListNotificationsApiVersion _$valueOfEndpointListNotificationsApiVersion(String name) { + switch (name) { + case 'v1': + return _$endpointListNotificationsApiVersionV1; + case 'v2': + return _$endpointListNotificationsApiVersionV2; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$endpointListNotificationsApiVersionValues = + BuiltSet(const [ + _$endpointListNotificationsApiVersionV1, + _$endpointListNotificationsApiVersionV2, +]); + +const EndpointDeleteAllNotificationsApiVersion _$endpointDeleteAllNotificationsApiVersionV1 = + EndpointDeleteAllNotificationsApiVersion._('v1'); +const EndpointDeleteAllNotificationsApiVersion _$endpointDeleteAllNotificationsApiVersionV2 = + EndpointDeleteAllNotificationsApiVersion._('v2'); + +EndpointDeleteAllNotificationsApiVersion _$valueOfEndpointDeleteAllNotificationsApiVersion(String name) { + switch (name) { + case 'v1': + return _$endpointDeleteAllNotificationsApiVersionV1; + case 'v2': + return _$endpointDeleteAllNotificationsApiVersionV2; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$endpointDeleteAllNotificationsApiVersionValues = + BuiltSet(const [ + _$endpointDeleteAllNotificationsApiVersionV1, + _$endpointDeleteAllNotificationsApiVersionV2, +]); + +const EndpointGetNotificationApiVersion _$endpointGetNotificationApiVersionV1 = + EndpointGetNotificationApiVersion._('v1'); +const EndpointGetNotificationApiVersion _$endpointGetNotificationApiVersionV2 = + EndpointGetNotificationApiVersion._('v2'); + +EndpointGetNotificationApiVersion _$valueOfEndpointGetNotificationApiVersion(String name) { + switch (name) { + case 'v1': + return _$endpointGetNotificationApiVersionV1; + case 'v2': + return _$endpointGetNotificationApiVersionV2; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$endpointGetNotificationApiVersionValues = + BuiltSet(const [ + _$endpointGetNotificationApiVersionV1, + _$endpointGetNotificationApiVersionV2, +]); + +const EndpointDeleteNotificationApiVersion _$endpointDeleteNotificationApiVersionV1 = + EndpointDeleteNotificationApiVersion._('v1'); +const EndpointDeleteNotificationApiVersion _$endpointDeleteNotificationApiVersionV2 = + EndpointDeleteNotificationApiVersion._('v2'); + +EndpointDeleteNotificationApiVersion _$valueOfEndpointDeleteNotificationApiVersion(String name) { + switch (name) { + case 'v1': + return _$endpointDeleteNotificationApiVersionV1; + case 'v2': + return _$endpointDeleteNotificationApiVersionV2; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$endpointDeleteNotificationApiVersionValues = + BuiltSet(const [ + _$endpointDeleteNotificationApiVersionV1, + _$endpointDeleteNotificationApiVersionV2, +]); + +const EndpointConfirmIdsForUserApiVersion _$endpointConfirmIdsForUserApiVersionV1 = + EndpointConfirmIdsForUserApiVersion._('v1'); +const EndpointConfirmIdsForUserApiVersion _$endpointConfirmIdsForUserApiVersionV2 = + EndpointConfirmIdsForUserApiVersion._('v2'); + +EndpointConfirmIdsForUserApiVersion _$valueOfEndpointConfirmIdsForUserApiVersion(String name) { + switch (name) { + case 'v1': + return _$endpointConfirmIdsForUserApiVersionV1; + case 'v2': + return _$endpointConfirmIdsForUserApiVersionV2; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$endpointConfirmIdsForUserApiVersionValues = + BuiltSet(const [ + _$endpointConfirmIdsForUserApiVersionV1, + _$endpointConfirmIdsForUserApiVersionV2, +]); + +const PushRegisterDeviceApiVersion _$pushRegisterDeviceApiVersionV2 = PushRegisterDeviceApiVersion._('v2'); + +PushRegisterDeviceApiVersion _$valueOfPushRegisterDeviceApiVersion(String name) { + switch (name) { + case 'v2': + return _$pushRegisterDeviceApiVersionV2; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$pushRegisterDeviceApiVersionValues = + BuiltSet(const [ + _$pushRegisterDeviceApiVersionV2, +]); + +const PushRemoveDeviceApiVersion _$pushRemoveDeviceApiVersionV2 = PushRemoveDeviceApiVersion._('v2'); + +PushRemoveDeviceApiVersion _$valueOfPushRemoveDeviceApiVersion(String name) { + switch (name) { + case 'v2': + return _$pushRemoveDeviceApiVersionV2; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$pushRemoveDeviceApiVersionValues = + BuiltSet(const [ + _$pushRemoveDeviceApiVersionV2, +]); + +const SettingsPersonalApiVersion _$settingsPersonalApiVersionV2 = SettingsPersonalApiVersion._('v2'); + +SettingsPersonalApiVersion _$valueOfSettingsPersonalApiVersion(String name) { + switch (name) { + case 'v2': + return _$settingsPersonalApiVersionV2; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$settingsPersonalApiVersionValues = + BuiltSet(const [ + _$settingsPersonalApiVersionV2, +]); + +const SettingsAdminApiVersion _$settingsAdminApiVersionV2 = SettingsAdminApiVersion._('v2'); + +SettingsAdminApiVersion _$valueOfSettingsAdminApiVersion(String name) { + switch (name) { + case 'v2': + return _$settingsAdminApiVersionV2; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$settingsAdminApiVersionValues = + BuiltSet(const [ + _$settingsAdminApiVersionV2, +]); + Serializer _$oCSMetaSerializer = _$OCSMetaSerializer(); Serializer _$apiGenerateNotificationResponseApplicationJsonOcsSerializer = diff --git a/packages/nextcloud/lib/src/api/spreed.openapi.dart b/packages/nextcloud/lib/src/api/spreed.openapi.dart index b8403b85a72..f93a448b8ab 100644 --- a/packages/nextcloud/lib/src/api/spreed.openapi.dart +++ b/packages/nextcloud/lib/src/api/spreed.openapi.dart @@ -13190,24 +13190,18 @@ class $TempAvatarClient { } } -class AvatarGetAvatarApiVersion extends DynamiteEnum { +class AvatarGetAvatarApiVersion extends EnumClass { const AvatarGetAvatarApiVersion._(super.name); - static const AvatarGetAvatarApiVersion v1 = AvatarGetAvatarApiVersion._('v1'); + static const AvatarGetAvatarApiVersion v1 = _$avatarGetAvatarApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - AvatarGetAvatarApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$avatarGetAvatarApiVersionValues; + // coverage:ignore-end - static AvatarGetAvatarApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return AvatarGetAvatarApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static AvatarGetAvatarApiVersion valueOf(String name) => _$valueOfAvatarGetAvatarApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$AvatarGetAvatarApiVersionSerializer(); @@ -13247,24 +13241,18 @@ class _$AvatarGetAvatarApiVersionSerializer implements PrimitiveSerializer { +class AvatarUploadAvatarApiVersion extends EnumClass { const AvatarUploadAvatarApiVersion._(super.name); - static const AvatarUploadAvatarApiVersion v1 = AvatarUploadAvatarApiVersion._('v1'); + static const AvatarUploadAvatarApiVersion v1 = _$avatarUploadAvatarApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - AvatarUploadAvatarApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$avatarUploadAvatarApiVersionValues; + // coverage:ignore-end - static AvatarUploadAvatarApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return AvatarUploadAvatarApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static AvatarUploadAvatarApiVersion valueOf(String name) => _$valueOfAvatarUploadAvatarApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$AvatarUploadAvatarApiVersionSerializer(); @@ -13511,24 +13499,18 @@ abstract class AvatarUploadAvatarResponseApplicationJson _$avatarUploadAvatarResponseApplicationJsonSerializer; } -class AvatarDeleteAvatarApiVersion extends DynamiteEnum { +class AvatarDeleteAvatarApiVersion extends EnumClass { const AvatarDeleteAvatarApiVersion._(super.name); - static const AvatarDeleteAvatarApiVersion v1 = AvatarDeleteAvatarApiVersion._('v1'); + static const AvatarDeleteAvatarApiVersion v1 = _$avatarDeleteAvatarApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - AvatarDeleteAvatarApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$avatarDeleteAvatarApiVersionValues; + // coverage:ignore-end - static AvatarDeleteAvatarApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return AvatarDeleteAvatarApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static AvatarDeleteAvatarApiVersion valueOf(String name) => _$valueOfAvatarDeleteAvatarApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$AvatarDeleteAvatarApiVersionSerializer(); @@ -13629,24 +13611,18 @@ abstract class AvatarDeleteAvatarResponseApplicationJson _$avatarDeleteAvatarResponseApplicationJsonSerializer; } -class AvatarEmojiAvatarApiVersion extends DynamiteEnum { +class AvatarEmojiAvatarApiVersion extends EnumClass { const AvatarEmojiAvatarApiVersion._(super.name); - static const AvatarEmojiAvatarApiVersion v1 = AvatarEmojiAvatarApiVersion._('v1'); + static const AvatarEmojiAvatarApiVersion v1 = _$avatarEmojiAvatarApiVersionV1; + + // coverage:ignore-start + static BuiltSet get values => _$avatarEmojiAvatarApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - AvatarEmojiAvatarApiVersion.v1, - ]); + static AvatarEmojiAvatarApiVersion valueOf(String name) => _$valueOfAvatarEmojiAvatarApiVersion(name); - static AvatarEmojiAvatarApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return AvatarEmojiAvatarApiVersion.v1; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$AvatarEmojiAvatarApiVersionSerializer(); @@ -13747,24 +13723,18 @@ abstract class AvatarEmojiAvatarResponseApplicationJson _$avatarEmojiAvatarResponseApplicationJsonSerializer; } -class AvatarGetAvatarDarkApiVersion extends DynamiteEnum { +class AvatarGetAvatarDarkApiVersion extends EnumClass { const AvatarGetAvatarDarkApiVersion._(super.name); - static const AvatarGetAvatarDarkApiVersion v1 = AvatarGetAvatarDarkApiVersion._('v1'); + static const AvatarGetAvatarDarkApiVersion v1 = _$avatarGetAvatarDarkApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - AvatarGetAvatarDarkApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$avatarGetAvatarDarkApiVersionValues; + // coverage:ignore-end - static AvatarGetAvatarDarkApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return AvatarGetAvatarDarkApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static AvatarGetAvatarDarkApiVersion valueOf(String name) => _$valueOfAvatarGetAvatarDarkApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$AvatarGetAvatarDarkApiVersionSerializer(); @@ -13804,24 +13774,18 @@ class _$AvatarGetAvatarDarkApiVersionSerializer implements PrimitiveSerializer { +class BotSendMessageApiVersion extends EnumClass { const BotSendMessageApiVersion._(super.name); - static const BotSendMessageApiVersion v1 = BotSendMessageApiVersion._('v1'); + static const BotSendMessageApiVersion v1 = _$botSendMessageApiVersionV1; + + // coverage:ignore-start + static BuiltSet get values => _$botSendMessageApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - BotSendMessageApiVersion.v1, - ]); + static BotSendMessageApiVersion valueOf(String name) => _$valueOfBotSendMessageApiVersion(name); - static BotSendMessageApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return BotSendMessageApiVersion.v1; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$BotSendMessageApiVersionSerializer(); @@ -13921,23 +13885,18 @@ abstract class BotSendMessageResponseApplicationJson _$botSendMessageResponseApplicationJsonSerializer; } -class BotReactApiVersion extends DynamiteEnum { +class BotReactApiVersion extends EnumClass { const BotReactApiVersion._(super.name); - static const BotReactApiVersion v1 = BotReactApiVersion._('v1'); + static const BotReactApiVersion v1 = _$botReactApiVersionV1; + + // coverage:ignore-start + static BuiltSet get values => _$botReactApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => BuiltSet(const [ - BotReactApiVersion.v1, - ]); + static BotReactApiVersion valueOf(String name) => _$valueOfBotReactApiVersion(name); - static BotReactApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return BotReactApiVersion.v1; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$BotReactApiVersionSerializer(); @@ -14035,24 +13994,18 @@ abstract class BotReactResponseApplicationJson static Serializer get serializer => _$botReactResponseApplicationJsonSerializer; } -class BotDeleteReactionApiVersion extends DynamiteEnum { +class BotDeleteReactionApiVersion extends EnumClass { const BotDeleteReactionApiVersion._(super.name); - static const BotDeleteReactionApiVersion v1 = BotDeleteReactionApiVersion._('v1'); + static const BotDeleteReactionApiVersion v1 = _$botDeleteReactionApiVersionV1; + + // coverage:ignore-start + static BuiltSet get values => _$botDeleteReactionApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - BotDeleteReactionApiVersion.v1, - ]); + static BotDeleteReactionApiVersion valueOf(String name) => _$valueOfBotDeleteReactionApiVersion(name); - static BotDeleteReactionApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return BotDeleteReactionApiVersion.v1; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$BotDeleteReactionApiVersionSerializer(); @@ -14153,24 +14106,18 @@ abstract class BotDeleteReactionResponseApplicationJson _$botDeleteReactionResponseApplicationJsonSerializer; } -class BotAdminListBotsApiVersion extends DynamiteEnum { +class BotAdminListBotsApiVersion extends EnumClass { const BotAdminListBotsApiVersion._(super.name); - static const BotAdminListBotsApiVersion v1 = BotAdminListBotsApiVersion._('v1'); + static const BotAdminListBotsApiVersion v1 = _$botAdminListBotsApiVersionV1; + + // coverage:ignore-start + static BuiltSet get values => _$botAdminListBotsApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - BotAdminListBotsApiVersion.v1, - ]); + static BotAdminListBotsApiVersion valueOf(String name) => _$valueOfBotAdminListBotsApiVersion(name); - static BotAdminListBotsApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return BotAdminListBotsApiVersion.v1; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$BotAdminListBotsApiVersionSerializer(); @@ -14331,23 +14278,18 @@ abstract class BotAdminListBotsResponseApplicationJson _$botAdminListBotsResponseApplicationJsonSerializer; } -class BotListBotsApiVersion extends DynamiteEnum { +class BotListBotsApiVersion extends EnumClass { const BotListBotsApiVersion._(super.name); - static const BotListBotsApiVersion v1 = BotListBotsApiVersion._('v1'); + static const BotListBotsApiVersion v1 = _$botListBotsApiVersionV1; - static BuiltSet get values => BuiltSet(const [ - BotListBotsApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$botListBotsApiVersionValues; + // coverage:ignore-end - static BotListBotsApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return BotListBotsApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static BotListBotsApiVersion valueOf(String name) => _$valueOfBotListBotsApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$BotListBotsApiVersionSerializer(); @@ -14446,23 +14388,18 @@ abstract class BotListBotsResponseApplicationJson _$botListBotsResponseApplicationJsonSerializer; } -class BotEnableBotApiVersion extends DynamiteEnum { +class BotEnableBotApiVersion extends EnumClass { const BotEnableBotApiVersion._(super.name); - static const BotEnableBotApiVersion v1 = BotEnableBotApiVersion._('v1'); + static const BotEnableBotApiVersion v1 = _$botEnableBotApiVersionV1; - static BuiltSet get values => BuiltSet(const [ - BotEnableBotApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$botEnableBotApiVersionValues; + // coverage:ignore-end - static BotEnableBotApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return BotEnableBotApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static BotEnableBotApiVersion valueOf(String name) => _$valueOfBotEnableBotApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$BotEnableBotApiVersionSerializer(); @@ -14561,24 +14498,18 @@ abstract class BotEnableBotResponseApplicationJson _$botEnableBotResponseApplicationJsonSerializer; } -class BotDisableBotApiVersion extends DynamiteEnum { +class BotDisableBotApiVersion extends EnumClass { const BotDisableBotApiVersion._(super.name); - static const BotDisableBotApiVersion v1 = BotDisableBotApiVersion._('v1'); + static const BotDisableBotApiVersion v1 = _$botDisableBotApiVersionV1; + + // coverage:ignore-start + static BuiltSet get values => _$botDisableBotApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - BotDisableBotApiVersion.v1, - ]); + static BotDisableBotApiVersion valueOf(String name) => _$valueOfBotDisableBotApiVersion(name); - static BotDisableBotApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return BotDisableBotApiVersion.v1; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$BotDisableBotApiVersionSerializer(); @@ -14678,24 +14609,20 @@ abstract class BotDisableBotResponseApplicationJson _$botDisableBotResponseApplicationJsonSerializer; } -class BreakoutRoomConfigureBreakoutRoomsApiVersion extends DynamiteEnum { +class BreakoutRoomConfigureBreakoutRoomsApiVersion extends EnumClass { const BreakoutRoomConfigureBreakoutRoomsApiVersion._(super.name); - static const BreakoutRoomConfigureBreakoutRoomsApiVersion v1 = BreakoutRoomConfigureBreakoutRoomsApiVersion._('v1'); + static const BreakoutRoomConfigureBreakoutRoomsApiVersion v1 = _$breakoutRoomConfigureBreakoutRoomsApiVersionV1; + // coverage:ignore-start static BuiltSet get values => - BuiltSet(const [ - BreakoutRoomConfigureBreakoutRoomsApiVersion.v1, - ]); - - static BreakoutRoomConfigureBreakoutRoomsApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return BreakoutRoomConfigureBreakoutRoomsApiVersion.v1; - default: - throw ArgumentError(name); - } - } + _$breakoutRoomConfigureBreakoutRoomsApiVersionValues; + // coverage:ignore-end + + static BreakoutRoomConfigureBreakoutRoomsApiVersion valueOf(String name) => + _$valueOfBreakoutRoomConfigureBreakoutRoomsApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -14802,24 +14729,20 @@ abstract class BreakoutRoomConfigureBreakoutRoomsResponseApplicationJson _$breakoutRoomConfigureBreakoutRoomsResponseApplicationJsonSerializer; } -class BreakoutRoomRemoveBreakoutRoomsApiVersion extends DynamiteEnum { +class BreakoutRoomRemoveBreakoutRoomsApiVersion extends EnumClass { const BreakoutRoomRemoveBreakoutRoomsApiVersion._(super.name); - static const BreakoutRoomRemoveBreakoutRoomsApiVersion v1 = BreakoutRoomRemoveBreakoutRoomsApiVersion._('v1'); + static const BreakoutRoomRemoveBreakoutRoomsApiVersion v1 = _$breakoutRoomRemoveBreakoutRoomsApiVersionV1; + // coverage:ignore-start static BuiltSet get values => - BuiltSet(const [ - BreakoutRoomRemoveBreakoutRoomsApiVersion.v1, - ]); - - static BreakoutRoomRemoveBreakoutRoomsApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return BreakoutRoomRemoveBreakoutRoomsApiVersion.v1; - default: - throw ArgumentError(name); - } - } + _$breakoutRoomRemoveBreakoutRoomsApiVersionValues; + // coverage:ignore-end + + static BreakoutRoomRemoveBreakoutRoomsApiVersion valueOf(String name) => + _$valueOfBreakoutRoomRemoveBreakoutRoomsApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -14926,24 +14849,20 @@ abstract class BreakoutRoomRemoveBreakoutRoomsResponseApplicationJson _$breakoutRoomRemoveBreakoutRoomsResponseApplicationJsonSerializer; } -class BreakoutRoomBroadcastChatMessageApiVersion extends DynamiteEnum { +class BreakoutRoomBroadcastChatMessageApiVersion extends EnumClass { const BreakoutRoomBroadcastChatMessageApiVersion._(super.name); - static const BreakoutRoomBroadcastChatMessageApiVersion v1 = BreakoutRoomBroadcastChatMessageApiVersion._('v1'); + static const BreakoutRoomBroadcastChatMessageApiVersion v1 = _$breakoutRoomBroadcastChatMessageApiVersionV1; + // coverage:ignore-start static BuiltSet get values => - BuiltSet(const [ - BreakoutRoomBroadcastChatMessageApiVersion.v1, - ]); - - static BreakoutRoomBroadcastChatMessageApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return BreakoutRoomBroadcastChatMessageApiVersion.v1; - default: - throw ArgumentError(name); - } - } + _$breakoutRoomBroadcastChatMessageApiVersionValues; + // coverage:ignore-end + + static BreakoutRoomBroadcastChatMessageApiVersion valueOf(String name) => + _$valueOfBreakoutRoomBroadcastChatMessageApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -15050,24 +14969,19 @@ abstract class BreakoutRoomBroadcastChatMessageResponseApplicationJson _$breakoutRoomBroadcastChatMessageResponseApplicationJsonSerializer; } -class BreakoutRoomApplyAttendeeMapApiVersion extends DynamiteEnum { +class BreakoutRoomApplyAttendeeMapApiVersion extends EnumClass { const BreakoutRoomApplyAttendeeMapApiVersion._(super.name); - static const BreakoutRoomApplyAttendeeMapApiVersion v1 = BreakoutRoomApplyAttendeeMapApiVersion._('v1'); + static const BreakoutRoomApplyAttendeeMapApiVersion v1 = _$breakoutRoomApplyAttendeeMapApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - BreakoutRoomApplyAttendeeMapApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$breakoutRoomApplyAttendeeMapApiVersionValues; + // coverage:ignore-end - static BreakoutRoomApplyAttendeeMapApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return BreakoutRoomApplyAttendeeMapApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static BreakoutRoomApplyAttendeeMapApiVersion valueOf(String name) => + _$valueOfBreakoutRoomApplyAttendeeMapApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -15174,24 +15088,20 @@ abstract class BreakoutRoomApplyAttendeeMapResponseApplicationJson _$breakoutRoomApplyAttendeeMapResponseApplicationJsonSerializer; } -class BreakoutRoomRequestAssistanceApiVersion extends DynamiteEnum { +class BreakoutRoomRequestAssistanceApiVersion extends EnumClass { const BreakoutRoomRequestAssistanceApiVersion._(super.name); - static const BreakoutRoomRequestAssistanceApiVersion v1 = BreakoutRoomRequestAssistanceApiVersion._('v1'); + static const BreakoutRoomRequestAssistanceApiVersion v1 = _$breakoutRoomRequestAssistanceApiVersionV1; + // coverage:ignore-start static BuiltSet get values => - BuiltSet(const [ - BreakoutRoomRequestAssistanceApiVersion.v1, - ]); - - static BreakoutRoomRequestAssistanceApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return BreakoutRoomRequestAssistanceApiVersion.v1; - default: - throw ArgumentError(name); - } - } + _$breakoutRoomRequestAssistanceApiVersionValues; + // coverage:ignore-end + + static BreakoutRoomRequestAssistanceApiVersion valueOf(String name) => + _$valueOfBreakoutRoomRequestAssistanceApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -15298,25 +15208,20 @@ abstract class BreakoutRoomRequestAssistanceResponseApplicationJson _$breakoutRoomRequestAssistanceResponseApplicationJsonSerializer; } -class BreakoutRoomResetRequestForAssistanceApiVersion extends DynamiteEnum { +class BreakoutRoomResetRequestForAssistanceApiVersion extends EnumClass { const BreakoutRoomResetRequestForAssistanceApiVersion._(super.name); - static const BreakoutRoomResetRequestForAssistanceApiVersion v1 = - BreakoutRoomResetRequestForAssistanceApiVersion._('v1'); + static const BreakoutRoomResetRequestForAssistanceApiVersion v1 = _$breakoutRoomResetRequestForAssistanceApiVersionV1; + // coverage:ignore-start static BuiltSet get values => - BuiltSet(const [ - BreakoutRoomResetRequestForAssistanceApiVersion.v1, - ]); - - static BreakoutRoomResetRequestForAssistanceApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return BreakoutRoomResetRequestForAssistanceApiVersion.v1; - default: - throw ArgumentError(name); - } - } + _$breakoutRoomResetRequestForAssistanceApiVersionValues; + // coverage:ignore-end + + static BreakoutRoomResetRequestForAssistanceApiVersion valueOf(String name) => + _$valueOfBreakoutRoomResetRequestForAssistanceApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -15423,24 +15328,20 @@ abstract class BreakoutRoomResetRequestForAssistanceResponseApplicationJson _$breakoutRoomResetRequestForAssistanceResponseApplicationJsonSerializer; } -class BreakoutRoomStartBreakoutRoomsApiVersion extends DynamiteEnum { +class BreakoutRoomStartBreakoutRoomsApiVersion extends EnumClass { const BreakoutRoomStartBreakoutRoomsApiVersion._(super.name); - static const BreakoutRoomStartBreakoutRoomsApiVersion v1 = BreakoutRoomStartBreakoutRoomsApiVersion._('v1'); + static const BreakoutRoomStartBreakoutRoomsApiVersion v1 = _$breakoutRoomStartBreakoutRoomsApiVersionV1; + // coverage:ignore-start static BuiltSet get values => - BuiltSet(const [ - BreakoutRoomStartBreakoutRoomsApiVersion.v1, - ]); - - static BreakoutRoomStartBreakoutRoomsApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return BreakoutRoomStartBreakoutRoomsApiVersion.v1; - default: - throw ArgumentError(name); - } - } + _$breakoutRoomStartBreakoutRoomsApiVersionValues; + // coverage:ignore-end + + static BreakoutRoomStartBreakoutRoomsApiVersion valueOf(String name) => + _$valueOfBreakoutRoomStartBreakoutRoomsApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -15547,24 +15448,20 @@ abstract class BreakoutRoomStartBreakoutRoomsResponseApplicationJson _$breakoutRoomStartBreakoutRoomsResponseApplicationJsonSerializer; } -class BreakoutRoomStopBreakoutRoomsApiVersion extends DynamiteEnum { +class BreakoutRoomStopBreakoutRoomsApiVersion extends EnumClass { const BreakoutRoomStopBreakoutRoomsApiVersion._(super.name); - static const BreakoutRoomStopBreakoutRoomsApiVersion v1 = BreakoutRoomStopBreakoutRoomsApiVersion._('v1'); + static const BreakoutRoomStopBreakoutRoomsApiVersion v1 = _$breakoutRoomStopBreakoutRoomsApiVersionV1; + // coverage:ignore-start static BuiltSet get values => - BuiltSet(const [ - BreakoutRoomStopBreakoutRoomsApiVersion.v1, - ]); - - static BreakoutRoomStopBreakoutRoomsApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return BreakoutRoomStopBreakoutRoomsApiVersion.v1; - default: - throw ArgumentError(name); - } - } + _$breakoutRoomStopBreakoutRoomsApiVersionValues; + // coverage:ignore-end + + static BreakoutRoomStopBreakoutRoomsApiVersion valueOf(String name) => + _$valueOfBreakoutRoomStopBreakoutRoomsApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -15671,24 +15568,20 @@ abstract class BreakoutRoomStopBreakoutRoomsResponseApplicationJson _$breakoutRoomStopBreakoutRoomsResponseApplicationJsonSerializer; } -class BreakoutRoomSwitchBreakoutRoomApiVersion extends DynamiteEnum { +class BreakoutRoomSwitchBreakoutRoomApiVersion extends EnumClass { const BreakoutRoomSwitchBreakoutRoomApiVersion._(super.name); - static const BreakoutRoomSwitchBreakoutRoomApiVersion v1 = BreakoutRoomSwitchBreakoutRoomApiVersion._('v1'); + static const BreakoutRoomSwitchBreakoutRoomApiVersion v1 = _$breakoutRoomSwitchBreakoutRoomApiVersionV1; + // coverage:ignore-start static BuiltSet get values => - BuiltSet(const [ - BreakoutRoomSwitchBreakoutRoomApiVersion.v1, - ]); - - static BreakoutRoomSwitchBreakoutRoomApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return BreakoutRoomSwitchBreakoutRoomApiVersion.v1; - default: - throw ArgumentError(name); - } - } + _$breakoutRoomSwitchBreakoutRoomApiVersionValues; + // coverage:ignore-end + + static BreakoutRoomSwitchBreakoutRoomApiVersion valueOf(String name) => + _$valueOfBreakoutRoomSwitchBreakoutRoomApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -15795,24 +15688,18 @@ abstract class BreakoutRoomSwitchBreakoutRoomResponseApplicationJson _$breakoutRoomSwitchBreakoutRoomResponseApplicationJsonSerializer; } -class CallGetPeersForCallApiVersion extends DynamiteEnum { +class CallGetPeersForCallApiVersion extends EnumClass { const CallGetPeersForCallApiVersion._(super.name); - static const CallGetPeersForCallApiVersion v4 = CallGetPeersForCallApiVersion._('v4'); + static const CallGetPeersForCallApiVersion v4 = _$callGetPeersForCallApiVersionV4; - static BuiltSet get values => - BuiltSet(const [ - CallGetPeersForCallApiVersion.v4, - ]); + // coverage:ignore-start + static BuiltSet get values => _$callGetPeersForCallApiVersionValues; + // coverage:ignore-end - static CallGetPeersForCallApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return CallGetPeersForCallApiVersion.v4; - default: - throw ArgumentError(name); - } - } + static CallGetPeersForCallApiVersion valueOf(String name) => _$valueOfCallGetPeersForCallApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$CallGetPeersForCallApiVersionSerializer(); @@ -15941,24 +15828,18 @@ abstract class CallGetPeersForCallResponseApplicationJson _$callGetPeersForCallResponseApplicationJsonSerializer; } -class CallUpdateCallFlagsApiVersion extends DynamiteEnum { +class CallUpdateCallFlagsApiVersion extends EnumClass { const CallUpdateCallFlagsApiVersion._(super.name); - static const CallUpdateCallFlagsApiVersion v4 = CallUpdateCallFlagsApiVersion._('v4'); + static const CallUpdateCallFlagsApiVersion v4 = _$callUpdateCallFlagsApiVersionV4; - static BuiltSet get values => - BuiltSet(const [ - CallUpdateCallFlagsApiVersion.v4, - ]); + // coverage:ignore-start + static BuiltSet get values => _$callUpdateCallFlagsApiVersionValues; + // coverage:ignore-end - static CallUpdateCallFlagsApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return CallUpdateCallFlagsApiVersion.v4; - default: - throw ArgumentError(name); - } - } + static CallUpdateCallFlagsApiVersion valueOf(String name) => _$valueOfCallUpdateCallFlagsApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$CallUpdateCallFlagsApiVersionSerializer(); @@ -16059,23 +15940,18 @@ abstract class CallUpdateCallFlagsResponseApplicationJson _$callUpdateCallFlagsResponseApplicationJsonSerializer; } -class CallJoinCallApiVersion extends DynamiteEnum { +class CallJoinCallApiVersion extends EnumClass { const CallJoinCallApiVersion._(super.name); - static const CallJoinCallApiVersion v4 = CallJoinCallApiVersion._('v4'); + static const CallJoinCallApiVersion v4 = _$callJoinCallApiVersionV4; - static BuiltSet get values => BuiltSet(const [ - CallJoinCallApiVersion.v4, - ]); + // coverage:ignore-start + static BuiltSet get values => _$callJoinCallApiVersionValues; + // coverage:ignore-end - static CallJoinCallApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return CallJoinCallApiVersion.v4; - default: - throw ArgumentError(name); - } - } + static CallJoinCallApiVersion valueOf(String name) => _$valueOfCallJoinCallApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$CallJoinCallApiVersionSerializer(); @@ -16174,24 +16050,18 @@ abstract class CallJoinCallResponseApplicationJson _$callJoinCallResponseApplicationJsonSerializer; } -class CallLeaveCallApiVersion extends DynamiteEnum { +class CallLeaveCallApiVersion extends EnumClass { const CallLeaveCallApiVersion._(super.name); - static const CallLeaveCallApiVersion v4 = CallLeaveCallApiVersion._('v4'); + static const CallLeaveCallApiVersion v4 = _$callLeaveCallApiVersionV4; - static BuiltSet get values => - BuiltSet(const [ - CallLeaveCallApiVersion.v4, - ]); + // coverage:ignore-start + static BuiltSet get values => _$callLeaveCallApiVersionValues; + // coverage:ignore-end - static CallLeaveCallApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return CallLeaveCallApiVersion.v4; - default: - throw ArgumentError(name); - } - } + static CallLeaveCallApiVersion valueOf(String name) => _$valueOfCallLeaveCallApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$CallLeaveCallApiVersionSerializer(); @@ -16291,24 +16161,18 @@ abstract class CallLeaveCallResponseApplicationJson _$callLeaveCallResponseApplicationJsonSerializer; } -class CallRingAttendeeApiVersion extends DynamiteEnum { +class CallRingAttendeeApiVersion extends EnumClass { const CallRingAttendeeApiVersion._(super.name); - static const CallRingAttendeeApiVersion v4 = CallRingAttendeeApiVersion._('v4'); + static const CallRingAttendeeApiVersion v4 = _$callRingAttendeeApiVersionV4; - static BuiltSet get values => - BuiltSet(const [ - CallRingAttendeeApiVersion.v4, - ]); + // coverage:ignore-start + static BuiltSet get values => _$callRingAttendeeApiVersionValues; + // coverage:ignore-end - static CallRingAttendeeApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return CallRingAttendeeApiVersion.v4; - default: - throw ArgumentError(name); - } - } + static CallRingAttendeeApiVersion valueOf(String name) => _$valueOfCallRingAttendeeApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$CallRingAttendeeApiVersionSerializer(); @@ -16408,24 +16272,18 @@ abstract class CallRingAttendeeResponseApplicationJson _$callRingAttendeeResponseApplicationJsonSerializer; } -class CallSipDialOutApiVersion extends DynamiteEnum { +class CallSipDialOutApiVersion extends EnumClass { const CallSipDialOutApiVersion._(super.name); - static const CallSipDialOutApiVersion v4 = CallSipDialOutApiVersion._('v4'); + static const CallSipDialOutApiVersion v4 = _$callSipDialOutApiVersionV4; - static BuiltSet get values => - BuiltSet(const [ - CallSipDialOutApiVersion.v4, - ]); + // coverage:ignore-start + static BuiltSet get values => _$callSipDialOutApiVersionValues; + // coverage:ignore-end - static CallSipDialOutApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return CallSipDialOutApiVersion.v4; - default: - throw ArgumentError(name); - } - } + static CallSipDialOutApiVersion valueOf(String name) => _$valueOfCallSipDialOutApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$CallSipDialOutApiVersionSerializer(); @@ -16556,24 +16414,20 @@ abstract class CallSipDialOutResponseApplicationJson _$callSipDialOutResponseApplicationJsonSerializer; } -class CertificateGetCertificateExpirationApiVersion extends DynamiteEnum { +class CertificateGetCertificateExpirationApiVersion extends EnumClass { const CertificateGetCertificateExpirationApiVersion._(super.name); - static const CertificateGetCertificateExpirationApiVersion v1 = CertificateGetCertificateExpirationApiVersion._('v1'); + static const CertificateGetCertificateExpirationApiVersion v1 = _$certificateGetCertificateExpirationApiVersionV1; + // coverage:ignore-start static BuiltSet get values => - BuiltSet(const [ - CertificateGetCertificateExpirationApiVersion.v1, - ]); - - static CertificateGetCertificateExpirationApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return CertificateGetCertificateExpirationApiVersion.v1; - default: - throw ArgumentError(name); - } - } + _$certificateGetCertificateExpirationApiVersionValues; + // coverage:ignore-end + + static CertificateGetCertificateExpirationApiVersion valueOf(String name) => + _$valueOfCertificateGetCertificateExpirationApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -16712,24 +16566,18 @@ abstract class CertificateGetCertificateExpirationResponseApplicationJson _$certificateGetCertificateExpirationResponseApplicationJsonSerializer; } -class ChatReceiveMessagesApiVersion extends DynamiteEnum { +class ChatReceiveMessagesApiVersion extends EnumClass { const ChatReceiveMessagesApiVersion._(super.name); - static const ChatReceiveMessagesApiVersion v1 = ChatReceiveMessagesApiVersion._('v1'); + static const ChatReceiveMessagesApiVersion v1 = _$chatReceiveMessagesApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - ChatReceiveMessagesApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$chatReceiveMessagesApiVersionValues; + // coverage:ignore-end - static ChatReceiveMessagesApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return ChatReceiveMessagesApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static ChatReceiveMessagesApiVersion valueOf(String name) => _$valueOfChatReceiveMessagesApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$ChatReceiveMessagesApiVersionSerializer(); @@ -16890,24 +16738,18 @@ abstract class ChatReceiveMessagesResponseApplicationJson _$chatReceiveMessagesResponseApplicationJsonSerializer; } -class ChatSendMessageApiVersion extends DynamiteEnum { +class ChatSendMessageApiVersion extends EnumClass { const ChatSendMessageApiVersion._(super.name); - static const ChatSendMessageApiVersion v1 = ChatSendMessageApiVersion._('v1'); + static const ChatSendMessageApiVersion v1 = _$chatSendMessageApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - ChatSendMessageApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$chatSendMessageApiVersionValues; + // coverage:ignore-end - static ChatSendMessageApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return ChatSendMessageApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static ChatSendMessageApiVersion valueOf(String name) => _$valueOfChatSendMessageApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$ChatSendMessageApiVersionSerializer(); @@ -17036,24 +16878,18 @@ abstract class ChatSendMessageResponseApplicationJson _$chatSendMessageResponseApplicationJsonSerializer; } -class ChatClearHistoryApiVersion extends DynamiteEnum { +class ChatClearHistoryApiVersion extends EnumClass { const ChatClearHistoryApiVersion._(super.name); - static const ChatClearHistoryApiVersion v1 = ChatClearHistoryApiVersion._('v1'); + static const ChatClearHistoryApiVersion v1 = _$chatClearHistoryApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - ChatClearHistoryApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$chatClearHistoryApiVersionValues; + // coverage:ignore-end - static ChatClearHistoryApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return ChatClearHistoryApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static ChatClearHistoryApiVersion valueOf(String name) => _$valueOfChatClearHistoryApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$ChatClearHistoryApiVersionSerializer(); @@ -17182,24 +17018,18 @@ abstract class ChatClearHistoryResponseApplicationJson _$chatClearHistoryResponseApplicationJsonSerializer; } -class ChatDeleteMessageApiVersion extends DynamiteEnum { +class ChatDeleteMessageApiVersion extends EnumClass { const ChatDeleteMessageApiVersion._(super.name); - static const ChatDeleteMessageApiVersion v1 = ChatDeleteMessageApiVersion._('v1'); + static const ChatDeleteMessageApiVersion v1 = _$chatDeleteMessageApiVersionV1; + + // coverage:ignore-start + static BuiltSet get values => _$chatDeleteMessageApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - ChatDeleteMessageApiVersion.v1, - ]); + static ChatDeleteMessageApiVersion valueOf(String name) => _$valueOfChatDeleteMessageApiVersion(name); - static ChatDeleteMessageApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return ChatDeleteMessageApiVersion.v1; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$ChatDeleteMessageApiVersionSerializer(); @@ -17329,24 +17159,18 @@ abstract class ChatDeleteMessageResponseApplicationJson _$chatDeleteMessageResponseApplicationJsonSerializer; } -class ChatGetMessageContextApiVersion extends DynamiteEnum { +class ChatGetMessageContextApiVersion extends EnumClass { const ChatGetMessageContextApiVersion._(super.name); - static const ChatGetMessageContextApiVersion v1 = ChatGetMessageContextApiVersion._('v1'); + static const ChatGetMessageContextApiVersion v1 = _$chatGetMessageContextApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - ChatGetMessageContextApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$chatGetMessageContextApiVersionValues; + // coverage:ignore-end - static ChatGetMessageContextApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return ChatGetMessageContextApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static ChatGetMessageContextApiVersion valueOf(String name) => _$valueOfChatGetMessageContextApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -17480,24 +17304,18 @@ abstract class ChatGetMessageContextResponseApplicationJson _$chatGetMessageContextResponseApplicationJsonSerializer; } -class ChatGetReminderApiVersion extends DynamiteEnum { +class ChatGetReminderApiVersion extends EnumClass { const ChatGetReminderApiVersion._(super.name); - static const ChatGetReminderApiVersion v1 = ChatGetReminderApiVersion._('v1'); + static const ChatGetReminderApiVersion v1 = _$chatGetReminderApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - ChatGetReminderApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$chatGetReminderApiVersionValues; + // coverage:ignore-end - static ChatGetReminderApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return ChatGetReminderApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static ChatGetReminderApiVersion valueOf(String name) => _$valueOfChatGetReminderApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$ChatGetReminderApiVersionSerializer(); @@ -17623,24 +17441,18 @@ abstract class ChatGetReminderResponseApplicationJson _$chatGetReminderResponseApplicationJsonSerializer; } -class ChatSetReminderApiVersion extends DynamiteEnum { +class ChatSetReminderApiVersion extends EnumClass { const ChatSetReminderApiVersion._(super.name); - static const ChatSetReminderApiVersion v1 = ChatSetReminderApiVersion._('v1'); + static const ChatSetReminderApiVersion v1 = _$chatSetReminderApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - ChatSetReminderApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$chatSetReminderApiVersionValues; + // coverage:ignore-end - static ChatSetReminderApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return ChatSetReminderApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static ChatSetReminderApiVersion valueOf(String name) => _$valueOfChatSetReminderApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$ChatSetReminderApiVersionSerializer(); @@ -17740,24 +17552,18 @@ abstract class ChatSetReminderResponseApplicationJson _$chatSetReminderResponseApplicationJsonSerializer; } -class ChatDeleteReminderApiVersion extends DynamiteEnum { +class ChatDeleteReminderApiVersion extends EnumClass { const ChatDeleteReminderApiVersion._(super.name); - static const ChatDeleteReminderApiVersion v1 = ChatDeleteReminderApiVersion._('v1'); + static const ChatDeleteReminderApiVersion v1 = _$chatDeleteReminderApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - ChatDeleteReminderApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$chatDeleteReminderApiVersionValues; + // coverage:ignore-end - static ChatDeleteReminderApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return ChatDeleteReminderApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static ChatDeleteReminderApiVersion valueOf(String name) => _$valueOfChatDeleteReminderApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$ChatDeleteReminderApiVersionSerializer(); @@ -17858,24 +17664,18 @@ abstract class ChatDeleteReminderResponseApplicationJson _$chatDeleteReminderResponseApplicationJsonSerializer; } -class ChatSetReadMarkerApiVersion extends DynamiteEnum { +class ChatSetReadMarkerApiVersion extends EnumClass { const ChatSetReadMarkerApiVersion._(super.name); - static const ChatSetReadMarkerApiVersion v1 = ChatSetReadMarkerApiVersion._('v1'); + static const ChatSetReadMarkerApiVersion v1 = _$chatSetReadMarkerApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - ChatSetReadMarkerApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$chatSetReadMarkerApiVersionValues; + // coverage:ignore-end - static ChatSetReadMarkerApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return ChatSetReadMarkerApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static ChatSetReadMarkerApiVersion valueOf(String name) => _$valueOfChatSetReadMarkerApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$ChatSetReadMarkerApiVersionSerializer(); @@ -18005,24 +17805,18 @@ abstract class ChatSetReadMarkerResponseApplicationJson _$chatSetReadMarkerResponseApplicationJsonSerializer; } -class ChatMarkUnreadApiVersion extends DynamiteEnum { +class ChatMarkUnreadApiVersion extends EnumClass { const ChatMarkUnreadApiVersion._(super.name); - static const ChatMarkUnreadApiVersion v1 = ChatMarkUnreadApiVersion._('v1'); + static const ChatMarkUnreadApiVersion v1 = _$chatMarkUnreadApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - ChatMarkUnreadApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$chatMarkUnreadApiVersionValues; + // coverage:ignore-end - static ChatMarkUnreadApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return ChatMarkUnreadApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static ChatMarkUnreadApiVersion valueOf(String name) => _$valueOfChatMarkUnreadApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$ChatMarkUnreadApiVersionSerializer(); @@ -18148,23 +17942,18 @@ abstract class ChatMarkUnreadResponseApplicationJson _$chatMarkUnreadResponseApplicationJsonSerializer; } -class ChatMentionsApiVersion extends DynamiteEnum { +class ChatMentionsApiVersion extends EnumClass { const ChatMentionsApiVersion._(super.name); - static const ChatMentionsApiVersion v1 = ChatMentionsApiVersion._('v1'); + static const ChatMentionsApiVersion v1 = _$chatMentionsApiVersionV1; - static BuiltSet get values => BuiltSet(const [ - ChatMentionsApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$chatMentionsApiVersionValues; + // coverage:ignore-end - static ChatMentionsApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return ChatMentionsApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static ChatMentionsApiVersion valueOf(String name) => _$valueOfChatMentionsApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$ChatMentionsApiVersionSerializer(); @@ -18294,24 +18083,19 @@ abstract class ChatMentionsResponseApplicationJson _$chatMentionsResponseApplicationJsonSerializer; } -class ChatGetObjectsSharedInRoomApiVersion extends DynamiteEnum { +class ChatGetObjectsSharedInRoomApiVersion extends EnumClass { const ChatGetObjectsSharedInRoomApiVersion._(super.name); - static const ChatGetObjectsSharedInRoomApiVersion v1 = ChatGetObjectsSharedInRoomApiVersion._('v1'); + static const ChatGetObjectsSharedInRoomApiVersion v1 = _$chatGetObjectsSharedInRoomApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - ChatGetObjectsSharedInRoomApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$chatGetObjectsSharedInRoomApiVersionValues; + // coverage:ignore-end - static ChatGetObjectsSharedInRoomApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return ChatGetObjectsSharedInRoomApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static ChatGetObjectsSharedInRoomApiVersion valueOf(String name) => + _$valueOfChatGetObjectsSharedInRoomApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -18448,24 +18232,18 @@ abstract class ChatGetObjectsSharedInRoomResponseApplicationJson _$chatGetObjectsSharedInRoomResponseApplicationJsonSerializer; } -class ChatShareObjectToChatApiVersion extends DynamiteEnum { +class ChatShareObjectToChatApiVersion extends EnumClass { const ChatShareObjectToChatApiVersion._(super.name); - static const ChatShareObjectToChatApiVersion v1 = ChatShareObjectToChatApiVersion._('v1'); + static const ChatShareObjectToChatApiVersion v1 = _$chatShareObjectToChatApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - ChatShareObjectToChatApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$chatShareObjectToChatApiVersionValues; + // coverage:ignore-end - static ChatShareObjectToChatApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return ChatShareObjectToChatApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static ChatShareObjectToChatApiVersion valueOf(String name) => _$valueOfChatShareObjectToChatApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -18597,24 +18375,20 @@ abstract class ChatShareObjectToChatResponseApplicationJson _$chatShareObjectToChatResponseApplicationJsonSerializer; } -class ChatGetObjectsSharedInRoomOverviewApiVersion extends DynamiteEnum { +class ChatGetObjectsSharedInRoomOverviewApiVersion extends EnumClass { const ChatGetObjectsSharedInRoomOverviewApiVersion._(super.name); - static const ChatGetObjectsSharedInRoomOverviewApiVersion v1 = ChatGetObjectsSharedInRoomOverviewApiVersion._('v1'); + static const ChatGetObjectsSharedInRoomOverviewApiVersion v1 = _$chatGetObjectsSharedInRoomOverviewApiVersionV1; + // coverage:ignore-start static BuiltSet get values => - BuiltSet(const [ - ChatGetObjectsSharedInRoomOverviewApiVersion.v1, - ]); - - static ChatGetObjectsSharedInRoomOverviewApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return ChatGetObjectsSharedInRoomOverviewApiVersion.v1; - default: - throw ArgumentError(name); - } - } + _$chatGetObjectsSharedInRoomOverviewApiVersionValues; + // coverage:ignore-end + + static ChatGetObjectsSharedInRoomOverviewApiVersion valueOf(String name) => + _$valueOfChatGetObjectsSharedInRoomOverviewApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -18721,24 +18495,18 @@ abstract class ChatGetObjectsSharedInRoomOverviewResponseApplicationJson _$chatGetObjectsSharedInRoomOverviewResponseApplicationJsonSerializer; } -class FederationAcceptShareApiVersion extends DynamiteEnum { +class FederationAcceptShareApiVersion extends EnumClass { const FederationAcceptShareApiVersion._(super.name); - static const FederationAcceptShareApiVersion v1 = FederationAcceptShareApiVersion._('v1'); + static const FederationAcceptShareApiVersion v1 = _$federationAcceptShareApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - FederationAcceptShareApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$federationAcceptShareApiVersionValues; + // coverage:ignore-end - static FederationAcceptShareApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return FederationAcceptShareApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static FederationAcceptShareApiVersion valueOf(String name) => _$valueOfFederationAcceptShareApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -18841,24 +18609,18 @@ abstract class FederationAcceptShareResponseApplicationJson _$federationAcceptShareResponseApplicationJsonSerializer; } -class FederationRejectShareApiVersion extends DynamiteEnum { +class FederationRejectShareApiVersion extends EnumClass { const FederationRejectShareApiVersion._(super.name); - static const FederationRejectShareApiVersion v1 = FederationRejectShareApiVersion._('v1'); + static const FederationRejectShareApiVersion v1 = _$federationRejectShareApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - FederationRejectShareApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$federationRejectShareApiVersionValues; + // coverage:ignore-end - static FederationRejectShareApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return FederationRejectShareApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static FederationRejectShareApiVersion valueOf(String name) => _$valueOfFederationRejectShareApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -18961,24 +18723,18 @@ abstract class FederationRejectShareResponseApplicationJson _$federationRejectShareResponseApplicationJsonSerializer; } -class FederationGetSharesApiVersion extends DynamiteEnum { +class FederationGetSharesApiVersion extends EnumClass { const FederationGetSharesApiVersion._(super.name); - static const FederationGetSharesApiVersion v1 = FederationGetSharesApiVersion._('v1'); + static const FederationGetSharesApiVersion v1 = _$federationGetSharesApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - FederationGetSharesApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$federationGetSharesApiVersionValues; + // coverage:ignore-end - static FederationGetSharesApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return FederationGetSharesApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static FederationGetSharesApiVersion valueOf(String name) => _$valueOfFederationGetSharesApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$FederationGetSharesApiVersionSerializer(); @@ -19115,24 +18871,20 @@ abstract class FederationGetSharesResponseApplicationJson _$federationGetSharesResponseApplicationJsonSerializer; } -class FilesIntegrationGetRoomByFileIdApiVersion extends DynamiteEnum { +class FilesIntegrationGetRoomByFileIdApiVersion extends EnumClass { const FilesIntegrationGetRoomByFileIdApiVersion._(super.name); - static const FilesIntegrationGetRoomByFileIdApiVersion v1 = FilesIntegrationGetRoomByFileIdApiVersion._('v1'); + static const FilesIntegrationGetRoomByFileIdApiVersion v1 = _$filesIntegrationGetRoomByFileIdApiVersionV1; + // coverage:ignore-start static BuiltSet get values => - BuiltSet(const [ - FilesIntegrationGetRoomByFileIdApiVersion.v1, - ]); - - static FilesIntegrationGetRoomByFileIdApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return FilesIntegrationGetRoomByFileIdApiVersion.v1; - default: - throw ArgumentError(name); - } - } + _$filesIntegrationGetRoomByFileIdApiVersionValues; + // coverage:ignore-end + + static FilesIntegrationGetRoomByFileIdApiVersion valueOf(String name) => + _$valueOfFilesIntegrationGetRoomByFileIdApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -19270,24 +19022,20 @@ abstract class FilesIntegrationGetRoomByFileIdResponseApplicationJson _$filesIntegrationGetRoomByFileIdResponseApplicationJsonSerializer; } -class FilesIntegrationGetRoomByShareTokenApiVersion extends DynamiteEnum { +class FilesIntegrationGetRoomByShareTokenApiVersion extends EnumClass { const FilesIntegrationGetRoomByShareTokenApiVersion._(super.name); - static const FilesIntegrationGetRoomByShareTokenApiVersion v1 = FilesIntegrationGetRoomByShareTokenApiVersion._('v1'); + static const FilesIntegrationGetRoomByShareTokenApiVersion v1 = _$filesIntegrationGetRoomByShareTokenApiVersionV1; + // coverage:ignore-start static BuiltSet get values => - BuiltSet(const [ - FilesIntegrationGetRoomByShareTokenApiVersion.v1, - ]); - - static FilesIntegrationGetRoomByShareTokenApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return FilesIntegrationGetRoomByShareTokenApiVersion.v1; - default: - throw ArgumentError(name); - } - } + _$filesIntegrationGetRoomByShareTokenApiVersionValues; + // coverage:ignore-end + + static FilesIntegrationGetRoomByShareTokenApiVersion valueOf(String name) => + _$valueOfFilesIntegrationGetRoomByShareTokenApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -19427,24 +19175,18 @@ abstract class FilesIntegrationGetRoomByShareTokenResponseApplicationJson _$filesIntegrationGetRoomByShareTokenResponseApplicationJsonSerializer; } -class GuestSetDisplayNameApiVersion extends DynamiteEnum { +class GuestSetDisplayNameApiVersion extends EnumClass { const GuestSetDisplayNameApiVersion._(super.name); - static const GuestSetDisplayNameApiVersion v1 = GuestSetDisplayNameApiVersion._('v1'); + static const GuestSetDisplayNameApiVersion v1 = _$guestSetDisplayNameApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - GuestSetDisplayNameApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$guestSetDisplayNameApiVersionValues; + // coverage:ignore-end - static GuestSetDisplayNameApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return GuestSetDisplayNameApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static GuestSetDisplayNameApiVersion valueOf(String name) => _$valueOfGuestSetDisplayNameApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$GuestSetDisplayNameApiVersionSerializer(); @@ -19545,24 +19287,20 @@ abstract class GuestSetDisplayNameResponseApplicationJson _$guestSetDisplayNameResponseApplicationJsonSerializer; } -class HostedSignalingServerRequestTrialApiVersion extends DynamiteEnum { +class HostedSignalingServerRequestTrialApiVersion extends EnumClass { const HostedSignalingServerRequestTrialApiVersion._(super.name); - static const HostedSignalingServerRequestTrialApiVersion v1 = HostedSignalingServerRequestTrialApiVersion._('v1'); + static const HostedSignalingServerRequestTrialApiVersion v1 = _$hostedSignalingServerRequestTrialApiVersionV1; + // coverage:ignore-start static BuiltSet get values => - BuiltSet(const [ - HostedSignalingServerRequestTrialApiVersion.v1, - ]); - - static HostedSignalingServerRequestTrialApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return HostedSignalingServerRequestTrialApiVersion.v1; - default: - throw ArgumentError(name); - } - } + _$hostedSignalingServerRequestTrialApiVersionValues; + // coverage:ignore-end + + static HostedSignalingServerRequestTrialApiVersion valueOf(String name) => + _$valueOfHostedSignalingServerRequestTrialApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -19669,24 +19407,20 @@ abstract class HostedSignalingServerRequestTrialResponseApplicationJson _$hostedSignalingServerRequestTrialResponseApplicationJsonSerializer; } -class HostedSignalingServerDeleteAccountApiVersion extends DynamiteEnum { +class HostedSignalingServerDeleteAccountApiVersion extends EnumClass { const HostedSignalingServerDeleteAccountApiVersion._(super.name); - static const HostedSignalingServerDeleteAccountApiVersion v1 = HostedSignalingServerDeleteAccountApiVersion._('v1'); + static const HostedSignalingServerDeleteAccountApiVersion v1 = _$hostedSignalingServerDeleteAccountApiVersionV1; + // coverage:ignore-start static BuiltSet get values => - BuiltSet(const [ - HostedSignalingServerDeleteAccountApiVersion.v1, - ]); - - static HostedSignalingServerDeleteAccountApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return HostedSignalingServerDeleteAccountApiVersion.v1; - default: - throw ArgumentError(name); - } - } + _$hostedSignalingServerDeleteAccountApiVersionValues; + // coverage:ignore-end + + static HostedSignalingServerDeleteAccountApiVersion valueOf(String name) => + _$valueOfHostedSignalingServerDeleteAccountApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -19793,24 +19527,19 @@ abstract class HostedSignalingServerDeleteAccountResponseApplicationJson _$hostedSignalingServerDeleteAccountResponseApplicationJsonSerializer; } -class MatterbridgeGetBridgeOfRoomApiVersion extends DynamiteEnum { +class MatterbridgeGetBridgeOfRoomApiVersion extends EnumClass { const MatterbridgeGetBridgeOfRoomApiVersion._(super.name); - static const MatterbridgeGetBridgeOfRoomApiVersion v1 = MatterbridgeGetBridgeOfRoomApiVersion._('v1'); + static const MatterbridgeGetBridgeOfRoomApiVersion v1 = _$matterbridgeGetBridgeOfRoomApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - MatterbridgeGetBridgeOfRoomApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$matterbridgeGetBridgeOfRoomApiVersionValues; + // coverage:ignore-end - static MatterbridgeGetBridgeOfRoomApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return MatterbridgeGetBridgeOfRoomApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static MatterbridgeGetBridgeOfRoomApiVersion valueOf(String name) => + _$valueOfMatterbridgeGetBridgeOfRoomApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -19995,24 +19724,19 @@ abstract class MatterbridgeGetBridgeOfRoomResponseApplicationJson _$matterbridgeGetBridgeOfRoomResponseApplicationJsonSerializer; } -class MatterbridgeEditBridgeOfRoomApiVersion extends DynamiteEnum { +class MatterbridgeEditBridgeOfRoomApiVersion extends EnumClass { const MatterbridgeEditBridgeOfRoomApiVersion._(super.name); - static const MatterbridgeEditBridgeOfRoomApiVersion v1 = MatterbridgeEditBridgeOfRoomApiVersion._('v1'); + static const MatterbridgeEditBridgeOfRoomApiVersion v1 = _$matterbridgeEditBridgeOfRoomApiVersionV1; + + // coverage:ignore-start + static BuiltSet get values => _$matterbridgeEditBridgeOfRoomApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - MatterbridgeEditBridgeOfRoomApiVersion.v1, - ]); + static MatterbridgeEditBridgeOfRoomApiVersion valueOf(String name) => + _$valueOfMatterbridgeEditBridgeOfRoomApiVersion(name); - static MatterbridgeEditBridgeOfRoomApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return MatterbridgeEditBridgeOfRoomApiVersion.v1; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -20119,24 +19843,20 @@ abstract class MatterbridgeEditBridgeOfRoomResponseApplicationJson _$matterbridgeEditBridgeOfRoomResponseApplicationJsonSerializer; } -class MatterbridgeDeleteBridgeOfRoomApiVersion extends DynamiteEnum { +class MatterbridgeDeleteBridgeOfRoomApiVersion extends EnumClass { const MatterbridgeDeleteBridgeOfRoomApiVersion._(super.name); - static const MatterbridgeDeleteBridgeOfRoomApiVersion v1 = MatterbridgeDeleteBridgeOfRoomApiVersion._('v1'); + static const MatterbridgeDeleteBridgeOfRoomApiVersion v1 = _$matterbridgeDeleteBridgeOfRoomApiVersionV1; + // coverage:ignore-start static BuiltSet get values => - BuiltSet(const [ - MatterbridgeDeleteBridgeOfRoomApiVersion.v1, - ]); - - static MatterbridgeDeleteBridgeOfRoomApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return MatterbridgeDeleteBridgeOfRoomApiVersion.v1; - default: - throw ArgumentError(name); - } - } + _$matterbridgeDeleteBridgeOfRoomApiVersionValues; + // coverage:ignore-end + + static MatterbridgeDeleteBridgeOfRoomApiVersion valueOf(String name) => + _$valueOfMatterbridgeDeleteBridgeOfRoomApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -20243,24 +19963,20 @@ abstract class MatterbridgeDeleteBridgeOfRoomResponseApplicationJson _$matterbridgeDeleteBridgeOfRoomResponseApplicationJsonSerializer; } -class MatterbridgeGetBridgeProcessStateApiVersion extends DynamiteEnum { +class MatterbridgeGetBridgeProcessStateApiVersion extends EnumClass { const MatterbridgeGetBridgeProcessStateApiVersion._(super.name); - static const MatterbridgeGetBridgeProcessStateApiVersion v1 = MatterbridgeGetBridgeProcessStateApiVersion._('v1'); + static const MatterbridgeGetBridgeProcessStateApiVersion v1 = _$matterbridgeGetBridgeProcessStateApiVersionV1; + // coverage:ignore-start static BuiltSet get values => - BuiltSet(const [ - MatterbridgeGetBridgeProcessStateApiVersion.v1, - ]); - - static MatterbridgeGetBridgeProcessStateApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return MatterbridgeGetBridgeProcessStateApiVersion.v1; - default: - throw ArgumentError(name); - } - } + _$matterbridgeGetBridgeProcessStateApiVersionValues; + // coverage:ignore-end + + static MatterbridgeGetBridgeProcessStateApiVersion valueOf(String name) => + _$valueOfMatterbridgeGetBridgeProcessStateApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -20367,24 +20083,20 @@ abstract class MatterbridgeGetBridgeProcessStateResponseApplicationJson _$matterbridgeGetBridgeProcessStateResponseApplicationJsonSerializer; } -class MatterbridgeSettingsStopAllBridgesApiVersion extends DynamiteEnum { +class MatterbridgeSettingsStopAllBridgesApiVersion extends EnumClass { const MatterbridgeSettingsStopAllBridgesApiVersion._(super.name); - static const MatterbridgeSettingsStopAllBridgesApiVersion v1 = MatterbridgeSettingsStopAllBridgesApiVersion._('v1'); + static const MatterbridgeSettingsStopAllBridgesApiVersion v1 = _$matterbridgeSettingsStopAllBridgesApiVersionV1; + // coverage:ignore-start static BuiltSet get values => - BuiltSet(const [ - MatterbridgeSettingsStopAllBridgesApiVersion.v1, - ]); - - static MatterbridgeSettingsStopAllBridgesApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return MatterbridgeSettingsStopAllBridgesApiVersion.v1; - default: - throw ArgumentError(name); - } - } + _$matterbridgeSettingsStopAllBridgesApiVersionValues; + // coverage:ignore-end + + static MatterbridgeSettingsStopAllBridgesApiVersion valueOf(String name) => + _$valueOfMatterbridgeSettingsStopAllBridgesApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -20491,25 +20203,21 @@ abstract class MatterbridgeSettingsStopAllBridgesResponseApplicationJson _$matterbridgeSettingsStopAllBridgesResponseApplicationJsonSerializer; } -class MatterbridgeSettingsGetMatterbridgeVersionApiVersion extends DynamiteEnum { +class MatterbridgeSettingsGetMatterbridgeVersionApiVersion extends EnumClass { const MatterbridgeSettingsGetMatterbridgeVersionApiVersion._(super.name); static const MatterbridgeSettingsGetMatterbridgeVersionApiVersion v1 = - MatterbridgeSettingsGetMatterbridgeVersionApiVersion._('v1'); - - static BuiltSet get values => BuiltSet< - MatterbridgeSettingsGetMatterbridgeVersionApiVersion>(const [ - MatterbridgeSettingsGetMatterbridgeVersionApiVersion.v1, - ]); - - static MatterbridgeSettingsGetMatterbridgeVersionApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return MatterbridgeSettingsGetMatterbridgeVersionApiVersion.v1; - default: - throw ArgumentError(name); - } - } + _$matterbridgeSettingsGetMatterbridgeVersionApiVersionV1; + + // coverage:ignore-start + static BuiltSet get values => + _$matterbridgeSettingsGetMatterbridgeVersionApiVersionValues; + // coverage:ignore-end + + static MatterbridgeSettingsGetMatterbridgeVersionApiVersion valueOf(String name) => + _$valueOfMatterbridgeSettingsGetMatterbridgeVersionApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -20649,24 +20357,18 @@ abstract class MatterbridgeSettingsGetMatterbridgeVersionResponseApplicationJson _$matterbridgeSettingsGetMatterbridgeVersionResponseApplicationJsonSerializer; } -class PollCreatePollApiVersion extends DynamiteEnum { +class PollCreatePollApiVersion extends EnumClass { const PollCreatePollApiVersion._(super.name); - static const PollCreatePollApiVersion v1 = PollCreatePollApiVersion._('v1'); + static const PollCreatePollApiVersion v1 = _$pollCreatePollApiVersionV1; + + // coverage:ignore-start + static BuiltSet get values => _$pollCreatePollApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - PollCreatePollApiVersion.v1, - ]); + static PollCreatePollApiVersion valueOf(String name) => _$valueOfPollCreatePollApiVersion(name); - static PollCreatePollApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return PollCreatePollApiVersion.v1; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$PollCreatePollApiVersionSerializer(); @@ -20827,23 +20529,18 @@ abstract class PollCreatePollResponseApplicationJson _$pollCreatePollResponseApplicationJsonSerializer; } -class PollShowPollApiVersion extends DynamiteEnum { +class PollShowPollApiVersion extends EnumClass { const PollShowPollApiVersion._(super.name); - static const PollShowPollApiVersion v1 = PollShowPollApiVersion._('v1'); + static const PollShowPollApiVersion v1 = _$pollShowPollApiVersionV1; + + // coverage:ignore-start + static BuiltSet get values => _$pollShowPollApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => BuiltSet(const [ - PollShowPollApiVersion.v1, - ]); + static PollShowPollApiVersion valueOf(String name) => _$valueOfPollShowPollApiVersion(name); - static PollShowPollApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return PollShowPollApiVersion.v1; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$PollShowPollApiVersionSerializer(); @@ -20942,23 +20639,18 @@ abstract class PollShowPollResponseApplicationJson _$pollShowPollResponseApplicationJsonSerializer; } -class PollVotePollApiVersion extends DynamiteEnum { +class PollVotePollApiVersion extends EnumClass { const PollVotePollApiVersion._(super.name); - static const PollVotePollApiVersion v1 = PollVotePollApiVersion._('v1'); + static const PollVotePollApiVersion v1 = _$pollVotePollApiVersionV1; + + // coverage:ignore-start + static BuiltSet get values => _$pollVotePollApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => BuiltSet(const [ - PollVotePollApiVersion.v1, - ]); + static PollVotePollApiVersion valueOf(String name) => _$valueOfPollVotePollApiVersion(name); - static PollVotePollApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return PollVotePollApiVersion.v1; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$PollVotePollApiVersionSerializer(); @@ -21057,24 +20749,18 @@ abstract class PollVotePollResponseApplicationJson _$pollVotePollResponseApplicationJsonSerializer; } -class PollClosePollApiVersion extends DynamiteEnum { +class PollClosePollApiVersion extends EnumClass { const PollClosePollApiVersion._(super.name); - static const PollClosePollApiVersion v1 = PollClosePollApiVersion._('v1'); + static const PollClosePollApiVersion v1 = _$pollClosePollApiVersionV1; + + // coverage:ignore-start + static BuiltSet get values => _$pollClosePollApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - PollClosePollApiVersion.v1, - ]); + static PollClosePollApiVersion valueOf(String name) => _$valueOfPollClosePollApiVersion(name); - static PollClosePollApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return PollClosePollApiVersion.v1; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$PollClosePollApiVersionSerializer(); @@ -21174,24 +20860,18 @@ abstract class PollClosePollResponseApplicationJson _$pollClosePollResponseApplicationJsonSerializer; } -class PublicShareAuthCreateRoomApiVersion extends DynamiteEnum { +class PublicShareAuthCreateRoomApiVersion extends EnumClass { const PublicShareAuthCreateRoomApiVersion._(super.name); - static const PublicShareAuthCreateRoomApiVersion v1 = PublicShareAuthCreateRoomApiVersion._('v1'); + static const PublicShareAuthCreateRoomApiVersion v1 = _$publicShareAuthCreateRoomApiVersionV1; + + // coverage:ignore-start + static BuiltSet get values => _$publicShareAuthCreateRoomApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - PublicShareAuthCreateRoomApiVersion.v1, - ]); + static PublicShareAuthCreateRoomApiVersion valueOf(String name) => _$valueOfPublicShareAuthCreateRoomApiVersion(name); - static PublicShareAuthCreateRoomApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return PublicShareAuthCreateRoomApiVersion.v1; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -21330,24 +21010,18 @@ abstract class PublicShareAuthCreateRoomResponseApplicationJson _$publicShareAuthCreateRoomResponseApplicationJsonSerializer; } -class ReactionGetReactionsApiVersion extends DynamiteEnum { +class ReactionGetReactionsApiVersion extends EnumClass { const ReactionGetReactionsApiVersion._(super.name); - static const ReactionGetReactionsApiVersion v1 = ReactionGetReactionsApiVersion._('v1'); + static const ReactionGetReactionsApiVersion v1 = _$reactionGetReactionsApiVersionV1; + + // coverage:ignore-start + static BuiltSet get values => _$reactionGetReactionsApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - ReactionGetReactionsApiVersion.v1, - ]); + static ReactionGetReactionsApiVersion valueOf(String name) => _$valueOfReactionGetReactionsApiVersion(name); - static ReactionGetReactionsApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return ReactionGetReactionsApiVersion.v1; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -21475,24 +21149,18 @@ abstract class ReactionGetReactionsResponseApplicationJson _$reactionGetReactionsResponseApplicationJsonSerializer; } -class ReactionReactApiVersion extends DynamiteEnum { +class ReactionReactApiVersion extends EnumClass { const ReactionReactApiVersion._(super.name); - static const ReactionReactApiVersion v1 = ReactionReactApiVersion._('v1'); + static const ReactionReactApiVersion v1 = _$reactionReactApiVersionV1; + + // coverage:ignore-start + static BuiltSet get values => _$reactionReactApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - ReactionReactApiVersion.v1, - ]); + static ReactionReactApiVersion valueOf(String name) => _$valueOfReactionReactApiVersion(name); - static ReactionReactApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return ReactionReactApiVersion.v1; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$ReactionReactApiVersionSerializer(); @@ -21592,24 +21260,18 @@ abstract class ReactionReactResponseApplicationJson _$reactionReactResponseApplicationJsonSerializer; } -class ReactionDeleteApiVersion extends DynamiteEnum { +class ReactionDeleteApiVersion extends EnumClass { const ReactionDeleteApiVersion._(super.name); - static const ReactionDeleteApiVersion v1 = ReactionDeleteApiVersion._('v1'); + static const ReactionDeleteApiVersion v1 = _$reactionDeleteApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - ReactionDeleteApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$reactionDeleteApiVersionValues; + // coverage:ignore-end - static ReactionDeleteApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return ReactionDeleteApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static ReactionDeleteApiVersion valueOf(String name) => _$valueOfReactionDeleteApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$ReactionDeleteApiVersionSerializer(); @@ -21709,24 +21371,19 @@ abstract class ReactionDeleteResponseApplicationJson _$reactionDeleteResponseApplicationJsonSerializer; } -class RecordingGetWelcomeMessageApiVersion extends DynamiteEnum { +class RecordingGetWelcomeMessageApiVersion extends EnumClass { const RecordingGetWelcomeMessageApiVersion._(super.name); - static const RecordingGetWelcomeMessageApiVersion v1 = RecordingGetWelcomeMessageApiVersion._('v1'); + static const RecordingGetWelcomeMessageApiVersion v1 = _$recordingGetWelcomeMessageApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - RecordingGetWelcomeMessageApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$recordingGetWelcomeMessageApiVersionValues; + // coverage:ignore-end - static RecordingGetWelcomeMessageApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return RecordingGetWelcomeMessageApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static RecordingGetWelcomeMessageApiVersion valueOf(String name) => + _$valueOfRecordingGetWelcomeMessageApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -21864,24 +21521,18 @@ abstract class RecordingGetWelcomeMessageResponseApplicationJson _$recordingGetWelcomeMessageResponseApplicationJsonSerializer; } -class RecordingStartApiVersion extends DynamiteEnum { +class RecordingStartApiVersion extends EnumClass { const RecordingStartApiVersion._(super.name); - static const RecordingStartApiVersion v1 = RecordingStartApiVersion._('v1'); + static const RecordingStartApiVersion v1 = _$recordingStartApiVersionV1; + + // coverage:ignore-start + static BuiltSet get values => _$recordingStartApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - RecordingStartApiVersion.v1, - ]); + static RecordingStartApiVersion valueOf(String name) => _$valueOfRecordingStartApiVersion(name); - static RecordingStartApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return RecordingStartApiVersion.v1; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$RecordingStartApiVersionSerializer(); @@ -21981,24 +21632,18 @@ abstract class RecordingStartResponseApplicationJson _$recordingStartResponseApplicationJsonSerializer; } -class RecordingStopApiVersion extends DynamiteEnum { +class RecordingStopApiVersion extends EnumClass { const RecordingStopApiVersion._(super.name); - static const RecordingStopApiVersion v1 = RecordingStopApiVersion._('v1'); + static const RecordingStopApiVersion v1 = _$recordingStopApiVersionV1; + + // coverage:ignore-start + static BuiltSet get values => _$recordingStopApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - RecordingStopApiVersion.v1, - ]); + static RecordingStopApiVersion valueOf(String name) => _$valueOfRecordingStopApiVersion(name); - static RecordingStopApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return RecordingStopApiVersion.v1; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$RecordingStopApiVersionSerializer(); @@ -22098,24 +21743,18 @@ abstract class RecordingStopResponseApplicationJson _$recordingStopResponseApplicationJsonSerializer; } -class RecordingStoreApiVersion extends DynamiteEnum { +class RecordingStoreApiVersion extends EnumClass { const RecordingStoreApiVersion._(super.name); - static const RecordingStoreApiVersion v1 = RecordingStoreApiVersion._('v1'); + static const RecordingStoreApiVersion v1 = _$recordingStoreApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - RecordingStoreApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$recordingStoreApiVersionValues; + // coverage:ignore-end - static RecordingStoreApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return RecordingStoreApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static RecordingStoreApiVersion valueOf(String name) => _$valueOfRecordingStoreApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$RecordingStoreApiVersionSerializer(); @@ -22215,24 +21854,19 @@ abstract class RecordingStoreResponseApplicationJson _$recordingStoreResponseApplicationJsonSerializer; } -class RecordingNotificationDismissApiVersion extends DynamiteEnum { +class RecordingNotificationDismissApiVersion extends EnumClass { const RecordingNotificationDismissApiVersion._(super.name); - static const RecordingNotificationDismissApiVersion v1 = RecordingNotificationDismissApiVersion._('v1'); + static const RecordingNotificationDismissApiVersion v1 = _$recordingNotificationDismissApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - RecordingNotificationDismissApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$recordingNotificationDismissApiVersionValues; + // coverage:ignore-end - static RecordingNotificationDismissApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return RecordingNotificationDismissApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static RecordingNotificationDismissApiVersion valueOf(String name) => + _$valueOfRecordingNotificationDismissApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -22339,24 +21973,18 @@ abstract class RecordingNotificationDismissResponseApplicationJson _$recordingNotificationDismissResponseApplicationJsonSerializer; } -class RecordingShareToChatApiVersion extends DynamiteEnum { +class RecordingShareToChatApiVersion extends EnumClass { const RecordingShareToChatApiVersion._(super.name); - static const RecordingShareToChatApiVersion v1 = RecordingShareToChatApiVersion._('v1'); + static const RecordingShareToChatApiVersion v1 = _$recordingShareToChatApiVersionV1; + + // coverage:ignore-start + static BuiltSet get values => _$recordingShareToChatApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - RecordingShareToChatApiVersion.v1, - ]); + static RecordingShareToChatApiVersion valueOf(String name) => _$valueOfRecordingShareToChatApiVersion(name); - static RecordingShareToChatApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return RecordingShareToChatApiVersion.v1; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -22458,23 +22086,18 @@ abstract class RecordingShareToChatResponseApplicationJson _$recordingShareToChatResponseApplicationJsonSerializer; } -class RoomGetRoomsApiVersion extends DynamiteEnum { +class RoomGetRoomsApiVersion extends EnumClass { const RoomGetRoomsApiVersion._(super.name); - static const RoomGetRoomsApiVersion v4 = RoomGetRoomsApiVersion._('v4'); + static const RoomGetRoomsApiVersion v4 = _$roomGetRoomsApiVersionV4; + + // coverage:ignore-start + static BuiltSet get values => _$roomGetRoomsApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => BuiltSet(const [ - RoomGetRoomsApiVersion.v4, - ]); + static RoomGetRoomsApiVersion valueOf(String name) => _$valueOfRoomGetRoomsApiVersion(name); - static RoomGetRoomsApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomGetRoomsApiVersion.v4; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$RoomGetRoomsApiVersionSerializer(); @@ -22601,24 +22224,18 @@ abstract class RoomGetRoomsResponseApplicationJson _$roomGetRoomsResponseApplicationJsonSerializer; } -class RoomCreateRoomApiVersion extends DynamiteEnum { +class RoomCreateRoomApiVersion extends EnumClass { const RoomCreateRoomApiVersion._(super.name); - static const RoomCreateRoomApiVersion v4 = RoomCreateRoomApiVersion._('v4'); + static const RoomCreateRoomApiVersion v4 = _$roomCreateRoomApiVersionV4; - static BuiltSet get values => - BuiltSet(const [ - RoomCreateRoomApiVersion.v4, - ]); + // coverage:ignore-start + static BuiltSet get values => _$roomCreateRoomApiVersionValues; + // coverage:ignore-end - static RoomCreateRoomApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomCreateRoomApiVersion.v4; - default: - throw ArgumentError(name); - } - } + static RoomCreateRoomApiVersion valueOf(String name) => _$valueOfRoomCreateRoomApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$RoomCreateRoomApiVersionSerializer(); @@ -22718,24 +22335,18 @@ abstract class RoomCreateRoomResponseApplicationJson _$roomCreateRoomResponseApplicationJsonSerializer; } -class RoomGetListedRoomsApiVersion extends DynamiteEnum { +class RoomGetListedRoomsApiVersion extends EnumClass { const RoomGetListedRoomsApiVersion._(super.name); - static const RoomGetListedRoomsApiVersion v4 = RoomGetListedRoomsApiVersion._('v4'); + static const RoomGetListedRoomsApiVersion v4 = _$roomGetListedRoomsApiVersionV4; - static BuiltSet get values => - BuiltSet(const [ - RoomGetListedRoomsApiVersion.v4, - ]); + // coverage:ignore-start + static BuiltSet get values => _$roomGetListedRoomsApiVersionValues; + // coverage:ignore-end - static RoomGetListedRoomsApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomGetListedRoomsApiVersion.v4; - default: - throw ArgumentError(name); - } - } + static RoomGetListedRoomsApiVersion valueOf(String name) => _$valueOfRoomGetListedRoomsApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$RoomGetListedRoomsApiVersionSerializer(); @@ -22836,24 +22447,20 @@ abstract class RoomGetListedRoomsResponseApplicationJson _$roomGetListedRoomsResponseApplicationJsonSerializer; } -class RoomGetNoteToSelfConversationApiVersion extends DynamiteEnum { +class RoomGetNoteToSelfConversationApiVersion extends EnumClass { const RoomGetNoteToSelfConversationApiVersion._(super.name); - static const RoomGetNoteToSelfConversationApiVersion v4 = RoomGetNoteToSelfConversationApiVersion._('v4'); + static const RoomGetNoteToSelfConversationApiVersion v4 = _$roomGetNoteToSelfConversationApiVersionV4; + // coverage:ignore-start static BuiltSet get values => - BuiltSet(const [ - RoomGetNoteToSelfConversationApiVersion.v4, - ]); - - static RoomGetNoteToSelfConversationApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomGetNoteToSelfConversationApiVersion.v4; - default: - throw ArgumentError(name); - } - } + _$roomGetNoteToSelfConversationApiVersionValues; + // coverage:ignore-end + + static RoomGetNoteToSelfConversationApiVersion valueOf(String name) => + _$valueOfRoomGetNoteToSelfConversationApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -22991,24 +22598,18 @@ abstract class RoomGetNoteToSelfConversationResponseApplicationJson _$roomGetNoteToSelfConversationResponseApplicationJsonSerializer; } -class RoomGetSingleRoomApiVersion extends DynamiteEnum { +class RoomGetSingleRoomApiVersion extends EnumClass { const RoomGetSingleRoomApiVersion._(super.name); - static const RoomGetSingleRoomApiVersion v4 = RoomGetSingleRoomApiVersion._('v4'); + static const RoomGetSingleRoomApiVersion v4 = _$roomGetSingleRoomApiVersionV4; - static BuiltSet get values => - BuiltSet(const [ - RoomGetSingleRoomApiVersion.v4, - ]); + // coverage:ignore-start + static BuiltSet get values => _$roomGetSingleRoomApiVersionValues; + // coverage:ignore-end - static RoomGetSingleRoomApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomGetSingleRoomApiVersion.v4; - default: - throw ArgumentError(name); - } - } + static RoomGetSingleRoomApiVersion valueOf(String name) => _$valueOfRoomGetSingleRoomApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$RoomGetSingleRoomApiVersionSerializer(); @@ -23138,24 +22739,18 @@ abstract class RoomGetSingleRoomResponseApplicationJson _$roomGetSingleRoomResponseApplicationJsonSerializer; } -class RoomRenameRoomApiVersion extends DynamiteEnum { +class RoomRenameRoomApiVersion extends EnumClass { const RoomRenameRoomApiVersion._(super.name); - static const RoomRenameRoomApiVersion v4 = RoomRenameRoomApiVersion._('v4'); + static const RoomRenameRoomApiVersion v4 = _$roomRenameRoomApiVersionV4; - static BuiltSet get values => - BuiltSet(const [ - RoomRenameRoomApiVersion.v4, - ]); + // coverage:ignore-start + static BuiltSet get values => _$roomRenameRoomApiVersionValues; + // coverage:ignore-end - static RoomRenameRoomApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomRenameRoomApiVersion.v4; - default: - throw ArgumentError(name); - } - } + static RoomRenameRoomApiVersion valueOf(String name) => _$valueOfRoomRenameRoomApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$RoomRenameRoomApiVersionSerializer(); @@ -23255,24 +22850,18 @@ abstract class RoomRenameRoomResponseApplicationJson _$roomRenameRoomResponseApplicationJsonSerializer; } -class RoomDeleteRoomApiVersion extends DynamiteEnum { +class RoomDeleteRoomApiVersion extends EnumClass { const RoomDeleteRoomApiVersion._(super.name); - static const RoomDeleteRoomApiVersion v4 = RoomDeleteRoomApiVersion._('v4'); + static const RoomDeleteRoomApiVersion v4 = _$roomDeleteRoomApiVersionV4; + + // coverage:ignore-start + static BuiltSet get values => _$roomDeleteRoomApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - RoomDeleteRoomApiVersion.v4, - ]); + static RoomDeleteRoomApiVersion valueOf(String name) => _$valueOfRoomDeleteRoomApiVersion(name); - static RoomDeleteRoomApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomDeleteRoomApiVersion.v4; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$RoomDeleteRoomApiVersionSerializer(); @@ -23372,24 +22961,18 @@ abstract class RoomDeleteRoomResponseApplicationJson _$roomDeleteRoomResponseApplicationJsonSerializer; } -class RoomGetBreakoutRoomsApiVersion extends DynamiteEnum { +class RoomGetBreakoutRoomsApiVersion extends EnumClass { const RoomGetBreakoutRoomsApiVersion._(super.name); - static const RoomGetBreakoutRoomsApiVersion v4 = RoomGetBreakoutRoomsApiVersion._('v4'); + static const RoomGetBreakoutRoomsApiVersion v4 = _$roomGetBreakoutRoomsApiVersionV4; + + // coverage:ignore-start + static BuiltSet get values => _$roomGetBreakoutRoomsApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - RoomGetBreakoutRoomsApiVersion.v4, - ]); + static RoomGetBreakoutRoomsApiVersion valueOf(String name) => _$valueOfRoomGetBreakoutRoomsApiVersion(name); - static RoomGetBreakoutRoomsApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomGetBreakoutRoomsApiVersion.v4; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -23491,24 +23074,18 @@ abstract class RoomGetBreakoutRoomsResponseApplicationJson _$roomGetBreakoutRoomsResponseApplicationJsonSerializer; } -class RoomMakePublicApiVersion extends DynamiteEnum { +class RoomMakePublicApiVersion extends EnumClass { const RoomMakePublicApiVersion._(super.name); - static const RoomMakePublicApiVersion v4 = RoomMakePublicApiVersion._('v4'); + static const RoomMakePublicApiVersion v4 = _$roomMakePublicApiVersionV4; - static BuiltSet get values => - BuiltSet(const [ - RoomMakePublicApiVersion.v4, - ]); + // coverage:ignore-start + static BuiltSet get values => _$roomMakePublicApiVersionValues; + // coverage:ignore-end - static RoomMakePublicApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomMakePublicApiVersion.v4; - default: - throw ArgumentError(name); - } - } + static RoomMakePublicApiVersion valueOf(String name) => _$valueOfRoomMakePublicApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$RoomMakePublicApiVersionSerializer(); @@ -23608,24 +23185,18 @@ abstract class RoomMakePublicResponseApplicationJson _$roomMakePublicResponseApplicationJsonSerializer; } -class RoomMakePrivateApiVersion extends DynamiteEnum { +class RoomMakePrivateApiVersion extends EnumClass { const RoomMakePrivateApiVersion._(super.name); - static const RoomMakePrivateApiVersion v4 = RoomMakePrivateApiVersion._('v4'); + static const RoomMakePrivateApiVersion v4 = _$roomMakePrivateApiVersionV4; - static BuiltSet get values => - BuiltSet(const [ - RoomMakePrivateApiVersion.v4, - ]); + // coverage:ignore-start + static BuiltSet get values => _$roomMakePrivateApiVersionValues; + // coverage:ignore-end - static RoomMakePrivateApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomMakePrivateApiVersion.v4; - default: - throw ArgumentError(name); - } - } + static RoomMakePrivateApiVersion valueOf(String name) => _$valueOfRoomMakePrivateApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$RoomMakePrivateApiVersionSerializer(); @@ -23725,24 +23296,18 @@ abstract class RoomMakePrivateResponseApplicationJson _$roomMakePrivateResponseApplicationJsonSerializer; } -class RoomSetDescriptionApiVersion extends DynamiteEnum { +class RoomSetDescriptionApiVersion extends EnumClass { const RoomSetDescriptionApiVersion._(super.name); - static const RoomSetDescriptionApiVersion v4 = RoomSetDescriptionApiVersion._('v4'); + static const RoomSetDescriptionApiVersion v4 = _$roomSetDescriptionApiVersionV4; + + // coverage:ignore-start + static BuiltSet get values => _$roomSetDescriptionApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - RoomSetDescriptionApiVersion.v4, - ]); + static RoomSetDescriptionApiVersion valueOf(String name) => _$valueOfRoomSetDescriptionApiVersion(name); - static RoomSetDescriptionApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomSetDescriptionApiVersion.v4; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$RoomSetDescriptionApiVersionSerializer(); @@ -23843,24 +23408,18 @@ abstract class RoomSetDescriptionResponseApplicationJson _$roomSetDescriptionResponseApplicationJsonSerializer; } -class RoomSetReadOnlyApiVersion extends DynamiteEnum { +class RoomSetReadOnlyApiVersion extends EnumClass { const RoomSetReadOnlyApiVersion._(super.name); - static const RoomSetReadOnlyApiVersion v4 = RoomSetReadOnlyApiVersion._('v4'); + static const RoomSetReadOnlyApiVersion v4 = _$roomSetReadOnlyApiVersionV4; + + // coverage:ignore-start + static BuiltSet get values => _$roomSetReadOnlyApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - RoomSetReadOnlyApiVersion.v4, - ]); + static RoomSetReadOnlyApiVersion valueOf(String name) => _$valueOfRoomSetReadOnlyApiVersion(name); - static RoomSetReadOnlyApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomSetReadOnlyApiVersion.v4; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$RoomSetReadOnlyApiVersionSerializer(); @@ -23960,24 +23519,18 @@ abstract class RoomSetReadOnlyResponseApplicationJson _$roomSetReadOnlyResponseApplicationJsonSerializer; } -class RoomSetListableApiVersion extends DynamiteEnum { +class RoomSetListableApiVersion extends EnumClass { const RoomSetListableApiVersion._(super.name); - static const RoomSetListableApiVersion v4 = RoomSetListableApiVersion._('v4'); + static const RoomSetListableApiVersion v4 = _$roomSetListableApiVersionV4; - static BuiltSet get values => - BuiltSet(const [ - RoomSetListableApiVersion.v4, - ]); + // coverage:ignore-start + static BuiltSet get values => _$roomSetListableApiVersionValues; + // coverage:ignore-end - static RoomSetListableApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomSetListableApiVersion.v4; - default: - throw ArgumentError(name); - } - } + static RoomSetListableApiVersion valueOf(String name) => _$valueOfRoomSetListableApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$RoomSetListableApiVersionSerializer(); @@ -24077,24 +23630,18 @@ abstract class RoomSetListableResponseApplicationJson _$roomSetListableResponseApplicationJsonSerializer; } -class RoomSetPasswordApiVersion extends DynamiteEnum { +class RoomSetPasswordApiVersion extends EnumClass { const RoomSetPasswordApiVersion._(super.name); - static const RoomSetPasswordApiVersion v4 = RoomSetPasswordApiVersion._('v4'); + static const RoomSetPasswordApiVersion v4 = _$roomSetPasswordApiVersionV4; - static BuiltSet get values => - BuiltSet(const [ - RoomSetPasswordApiVersion.v4, - ]); + // coverage:ignore-start + static BuiltSet get values => _$roomSetPasswordApiVersionValues; + // coverage:ignore-end - static RoomSetPasswordApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomSetPasswordApiVersion.v4; - default: - throw ArgumentError(name); - } - } + static RoomSetPasswordApiVersion valueOf(String name) => _$valueOfRoomSetPasswordApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$RoomSetPasswordApiVersionSerializer(); @@ -24194,24 +23741,18 @@ abstract class RoomSetPasswordResponseApplicationJson _$roomSetPasswordResponseApplicationJsonSerializer; } -class RoomSetPermissionsApiVersion extends DynamiteEnum { +class RoomSetPermissionsApiVersion extends EnumClass { const RoomSetPermissionsApiVersion._(super.name); - static const RoomSetPermissionsApiVersion v4 = RoomSetPermissionsApiVersion._('v4'); + static const RoomSetPermissionsApiVersion v4 = _$roomSetPermissionsApiVersionV4; + + // coverage:ignore-start + static BuiltSet get values => _$roomSetPermissionsApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - RoomSetPermissionsApiVersion.v4, - ]); + static RoomSetPermissionsApiVersion valueOf(String name) => _$valueOfRoomSetPermissionsApiVersion(name); - static RoomSetPermissionsApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomSetPermissionsApiVersion.v4; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$RoomSetPermissionsApiVersionSerializer(); @@ -24312,24 +23853,18 @@ abstract class RoomSetPermissionsResponseApplicationJson _$roomSetPermissionsResponseApplicationJsonSerializer; } -class RoomGetParticipantsApiVersion extends DynamiteEnum { +class RoomGetParticipantsApiVersion extends EnumClass { const RoomGetParticipantsApiVersion._(super.name); - static const RoomGetParticipantsApiVersion v4 = RoomGetParticipantsApiVersion._('v4'); + static const RoomGetParticipantsApiVersion v4 = _$roomGetParticipantsApiVersionV4; + + // coverage:ignore-start + static BuiltSet get values => _$roomGetParticipantsApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - RoomGetParticipantsApiVersion.v4, - ]); + static RoomGetParticipantsApiVersion valueOf(String name) => _$valueOfRoomGetParticipantsApiVersion(name); - static RoomGetParticipantsApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomGetParticipantsApiVersion.v4; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$RoomGetParticipantsApiVersionSerializer(); @@ -24499,24 +24034,18 @@ abstract class RoomGetParticipantsResponseApplicationJson _$roomGetParticipantsResponseApplicationJsonSerializer; } -class RoomAddParticipantToRoomApiVersion extends DynamiteEnum { +class RoomAddParticipantToRoomApiVersion extends EnumClass { const RoomAddParticipantToRoomApiVersion._(super.name); - static const RoomAddParticipantToRoomApiVersion v4 = RoomAddParticipantToRoomApiVersion._('v4'); + static const RoomAddParticipantToRoomApiVersion v4 = _$roomAddParticipantToRoomApiVersionV4; - static BuiltSet get values => - BuiltSet(const [ - RoomAddParticipantToRoomApiVersion.v4, - ]); + // coverage:ignore-start + static BuiltSet get values => _$roomAddParticipantToRoomApiVersionValues; + // coverage:ignore-end - static RoomAddParticipantToRoomApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomAddParticipantToRoomApiVersion.v4; - default: - throw ArgumentError(name); - } - } + static RoomAddParticipantToRoomApiVersion valueOf(String name) => _$valueOfRoomAddParticipantToRoomApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -24656,24 +24185,20 @@ abstract class RoomAddParticipantToRoomResponseApplicationJson _$roomAddParticipantToRoomResponseApplicationJsonSerializer; } -class RoomGetBreakoutRoomParticipantsApiVersion extends DynamiteEnum { +class RoomGetBreakoutRoomParticipantsApiVersion extends EnumClass { const RoomGetBreakoutRoomParticipantsApiVersion._(super.name); - static const RoomGetBreakoutRoomParticipantsApiVersion v4 = RoomGetBreakoutRoomParticipantsApiVersion._('v4'); + static const RoomGetBreakoutRoomParticipantsApiVersion v4 = _$roomGetBreakoutRoomParticipantsApiVersionV4; + // coverage:ignore-start static BuiltSet get values => - BuiltSet(const [ - RoomGetBreakoutRoomParticipantsApiVersion.v4, - ]); - - static RoomGetBreakoutRoomParticipantsApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomGetBreakoutRoomParticipantsApiVersion.v4; - default: - throw ArgumentError(name); - } - } + _$roomGetBreakoutRoomParticipantsApiVersionValues; + // coverage:ignore-end + + static RoomGetBreakoutRoomParticipantsApiVersion valueOf(String name) => + _$valueOfRoomGetBreakoutRoomParticipantsApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -24811,24 +24336,18 @@ abstract class RoomGetBreakoutRoomParticipantsResponseApplicationJson _$roomGetBreakoutRoomParticipantsResponseApplicationJsonSerializer; } -class RoomRemoveSelfFromRoomApiVersion extends DynamiteEnum { +class RoomRemoveSelfFromRoomApiVersion extends EnumClass { const RoomRemoveSelfFromRoomApiVersion._(super.name); - static const RoomRemoveSelfFromRoomApiVersion v4 = RoomRemoveSelfFromRoomApiVersion._('v4'); + static const RoomRemoveSelfFromRoomApiVersion v4 = _$roomRemoveSelfFromRoomApiVersionV4; + + // coverage:ignore-start + static BuiltSet get values => _$roomRemoveSelfFromRoomApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - RoomRemoveSelfFromRoomApiVersion.v4, - ]); + static RoomRemoveSelfFromRoomApiVersion valueOf(String name) => _$valueOfRoomRemoveSelfFromRoomApiVersion(name); - static RoomRemoveSelfFromRoomApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomRemoveSelfFromRoomApiVersion.v4; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -24931,24 +24450,19 @@ abstract class RoomRemoveSelfFromRoomResponseApplicationJson _$roomRemoveSelfFromRoomResponseApplicationJsonSerializer; } -class RoomRemoveAttendeeFromRoomApiVersion extends DynamiteEnum { +class RoomRemoveAttendeeFromRoomApiVersion extends EnumClass { const RoomRemoveAttendeeFromRoomApiVersion._(super.name); - static const RoomRemoveAttendeeFromRoomApiVersion v4 = RoomRemoveAttendeeFromRoomApiVersion._('v4'); + static const RoomRemoveAttendeeFromRoomApiVersion v4 = _$roomRemoveAttendeeFromRoomApiVersionV4; - static BuiltSet get values => - BuiltSet(const [ - RoomRemoveAttendeeFromRoomApiVersion.v4, - ]); + // coverage:ignore-start + static BuiltSet get values => _$roomRemoveAttendeeFromRoomApiVersionValues; + // coverage:ignore-end - static RoomRemoveAttendeeFromRoomApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomRemoveAttendeeFromRoomApiVersion.v4; - default: - throw ArgumentError(name); - } - } + static RoomRemoveAttendeeFromRoomApiVersion valueOf(String name) => + _$valueOfRoomRemoveAttendeeFromRoomApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -25055,24 +24569,19 @@ abstract class RoomRemoveAttendeeFromRoomResponseApplicationJson _$roomRemoveAttendeeFromRoomResponseApplicationJsonSerializer; } -class RoomSetAttendeePermissionsApiVersion extends DynamiteEnum { +class RoomSetAttendeePermissionsApiVersion extends EnumClass { const RoomSetAttendeePermissionsApiVersion._(super.name); - static const RoomSetAttendeePermissionsApiVersion v4 = RoomSetAttendeePermissionsApiVersion._('v4'); + static const RoomSetAttendeePermissionsApiVersion v4 = _$roomSetAttendeePermissionsApiVersionV4; - static BuiltSet get values => - BuiltSet(const [ - RoomSetAttendeePermissionsApiVersion.v4, - ]); + // coverage:ignore-start + static BuiltSet get values => _$roomSetAttendeePermissionsApiVersionValues; + // coverage:ignore-end - static RoomSetAttendeePermissionsApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomSetAttendeePermissionsApiVersion.v4; - default: - throw ArgumentError(name); - } - } + static RoomSetAttendeePermissionsApiVersion valueOf(String name) => + _$valueOfRoomSetAttendeePermissionsApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -25179,24 +24688,20 @@ abstract class RoomSetAttendeePermissionsResponseApplicationJson _$roomSetAttendeePermissionsResponseApplicationJsonSerializer; } -class RoomSetAllAttendeesPermissionsApiVersion extends DynamiteEnum { +class RoomSetAllAttendeesPermissionsApiVersion extends EnumClass { const RoomSetAllAttendeesPermissionsApiVersion._(super.name); - static const RoomSetAllAttendeesPermissionsApiVersion v4 = RoomSetAllAttendeesPermissionsApiVersion._('v4'); + static const RoomSetAllAttendeesPermissionsApiVersion v4 = _$roomSetAllAttendeesPermissionsApiVersionV4; + // coverage:ignore-start static BuiltSet get values => - BuiltSet(const [ - RoomSetAllAttendeesPermissionsApiVersion.v4, - ]); - - static RoomSetAllAttendeesPermissionsApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomSetAllAttendeesPermissionsApiVersion.v4; - default: - throw ArgumentError(name); - } - } + _$roomSetAllAttendeesPermissionsApiVersionValues; + // coverage:ignore-end + + static RoomSetAllAttendeesPermissionsApiVersion valueOf(String name) => + _$valueOfRoomSetAllAttendeesPermissionsApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -25303,23 +24808,18 @@ abstract class RoomSetAllAttendeesPermissionsResponseApplicationJson _$roomSetAllAttendeesPermissionsResponseApplicationJsonSerializer; } -class RoomJoinRoomApiVersion extends DynamiteEnum { +class RoomJoinRoomApiVersion extends EnumClass { const RoomJoinRoomApiVersion._(super.name); - static const RoomJoinRoomApiVersion v4 = RoomJoinRoomApiVersion._('v4'); + static const RoomJoinRoomApiVersion v4 = _$roomJoinRoomApiVersionV4; - static BuiltSet get values => BuiltSet(const [ - RoomJoinRoomApiVersion.v4, - ]); + // coverage:ignore-start + static BuiltSet get values => _$roomJoinRoomApiVersionValues; + // coverage:ignore-end - static RoomJoinRoomApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomJoinRoomApiVersion.v4; - default: - throw ArgumentError(name); - } - } + static RoomJoinRoomApiVersion valueOf(String name) => _$valueOfRoomJoinRoomApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$RoomJoinRoomApiVersionSerializer(); @@ -25418,24 +24918,18 @@ abstract class RoomJoinRoomResponseApplicationJson _$roomJoinRoomResponseApplicationJsonSerializer; } -class RoomLeaveRoomApiVersion extends DynamiteEnum { +class RoomLeaveRoomApiVersion extends EnumClass { const RoomLeaveRoomApiVersion._(super.name); - static const RoomLeaveRoomApiVersion v4 = RoomLeaveRoomApiVersion._('v4'); + static const RoomLeaveRoomApiVersion v4 = _$roomLeaveRoomApiVersionV4; - static BuiltSet get values => - BuiltSet(const [ - RoomLeaveRoomApiVersion.v4, - ]); + // coverage:ignore-start + static BuiltSet get values => _$roomLeaveRoomApiVersionValues; + // coverage:ignore-end - static RoomLeaveRoomApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomLeaveRoomApiVersion.v4; - default: - throw ArgumentError(name); - } - } + static RoomLeaveRoomApiVersion valueOf(String name) => _$valueOfRoomLeaveRoomApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$RoomLeaveRoomApiVersionSerializer(); @@ -25535,24 +25029,18 @@ abstract class RoomLeaveRoomResponseApplicationJson _$roomLeaveRoomResponseApplicationJsonSerializer; } -class RoomResendInvitationsApiVersion extends DynamiteEnum { +class RoomResendInvitationsApiVersion extends EnumClass { const RoomResendInvitationsApiVersion._(super.name); - static const RoomResendInvitationsApiVersion v4 = RoomResendInvitationsApiVersion._('v4'); + static const RoomResendInvitationsApiVersion v4 = _$roomResendInvitationsApiVersionV4; + + // coverage:ignore-start + static BuiltSet get values => _$roomResendInvitationsApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - RoomResendInvitationsApiVersion.v4, - ]); + static RoomResendInvitationsApiVersion valueOf(String name) => _$valueOfRoomResendInvitationsApiVersion(name); - static RoomResendInvitationsApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomResendInvitationsApiVersion.v4; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -25655,24 +25143,18 @@ abstract class RoomResendInvitationsResponseApplicationJson _$roomResendInvitationsResponseApplicationJsonSerializer; } -class RoomSetSessionStateApiVersion extends DynamiteEnum { +class RoomSetSessionStateApiVersion extends EnumClass { const RoomSetSessionStateApiVersion._(super.name); - static const RoomSetSessionStateApiVersion v4 = RoomSetSessionStateApiVersion._('v4'); + static const RoomSetSessionStateApiVersion v4 = _$roomSetSessionStateApiVersionV4; + + // coverage:ignore-start + static BuiltSet get values => _$roomSetSessionStateApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - RoomSetSessionStateApiVersion.v4, - ]); + static RoomSetSessionStateApiVersion valueOf(String name) => _$valueOfRoomSetSessionStateApiVersion(name); - static RoomSetSessionStateApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomSetSessionStateApiVersion.v4; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$RoomSetSessionStateApiVersionSerializer(); @@ -25773,24 +25255,18 @@ abstract class RoomSetSessionStateResponseApplicationJson _$roomSetSessionStateResponseApplicationJsonSerializer; } -class RoomPromoteModeratorApiVersion extends DynamiteEnum { +class RoomPromoteModeratorApiVersion extends EnumClass { const RoomPromoteModeratorApiVersion._(super.name); - static const RoomPromoteModeratorApiVersion v4 = RoomPromoteModeratorApiVersion._('v4'); + static const RoomPromoteModeratorApiVersion v4 = _$roomPromoteModeratorApiVersionV4; - static BuiltSet get values => - BuiltSet(const [ - RoomPromoteModeratorApiVersion.v4, - ]); + // coverage:ignore-start + static BuiltSet get values => _$roomPromoteModeratorApiVersionValues; + // coverage:ignore-end - static RoomPromoteModeratorApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomPromoteModeratorApiVersion.v4; - default: - throw ArgumentError(name); - } - } + static RoomPromoteModeratorApiVersion valueOf(String name) => _$valueOfRoomPromoteModeratorApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -25892,24 +25368,18 @@ abstract class RoomPromoteModeratorResponseApplicationJson _$roomPromoteModeratorResponseApplicationJsonSerializer; } -class RoomDemoteModeratorApiVersion extends DynamiteEnum { +class RoomDemoteModeratorApiVersion extends EnumClass { const RoomDemoteModeratorApiVersion._(super.name); - static const RoomDemoteModeratorApiVersion v4 = RoomDemoteModeratorApiVersion._('v4'); + static const RoomDemoteModeratorApiVersion v4 = _$roomDemoteModeratorApiVersionV4; - static BuiltSet get values => - BuiltSet(const [ - RoomDemoteModeratorApiVersion.v4, - ]); + // coverage:ignore-start + static BuiltSet get values => _$roomDemoteModeratorApiVersionValues; + // coverage:ignore-end - static RoomDemoteModeratorApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomDemoteModeratorApiVersion.v4; - default: - throw ArgumentError(name); - } - } + static RoomDemoteModeratorApiVersion valueOf(String name) => _$valueOfRoomDemoteModeratorApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$RoomDemoteModeratorApiVersionSerializer(); @@ -26010,24 +25480,18 @@ abstract class RoomDemoteModeratorResponseApplicationJson _$roomDemoteModeratorResponseApplicationJsonSerializer; } -class RoomAddToFavoritesApiVersion extends DynamiteEnum { +class RoomAddToFavoritesApiVersion extends EnumClass { const RoomAddToFavoritesApiVersion._(super.name); - static const RoomAddToFavoritesApiVersion v4 = RoomAddToFavoritesApiVersion._('v4'); + static const RoomAddToFavoritesApiVersion v4 = _$roomAddToFavoritesApiVersionV4; + + // coverage:ignore-start + static BuiltSet get values => _$roomAddToFavoritesApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - RoomAddToFavoritesApiVersion.v4, - ]); + static RoomAddToFavoritesApiVersion valueOf(String name) => _$valueOfRoomAddToFavoritesApiVersion(name); - static RoomAddToFavoritesApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomAddToFavoritesApiVersion.v4; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$RoomAddToFavoritesApiVersionSerializer(); @@ -26128,24 +25592,18 @@ abstract class RoomAddToFavoritesResponseApplicationJson _$roomAddToFavoritesResponseApplicationJsonSerializer; } -class RoomRemoveFromFavoritesApiVersion extends DynamiteEnum { +class RoomRemoveFromFavoritesApiVersion extends EnumClass { const RoomRemoveFromFavoritesApiVersion._(super.name); - static const RoomRemoveFromFavoritesApiVersion v4 = RoomRemoveFromFavoritesApiVersion._('v4'); + static const RoomRemoveFromFavoritesApiVersion v4 = _$roomRemoveFromFavoritesApiVersionV4; + + // coverage:ignore-start + static BuiltSet get values => _$roomRemoveFromFavoritesApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - RoomRemoveFromFavoritesApiVersion.v4, - ]); + static RoomRemoveFromFavoritesApiVersion valueOf(String name) => _$valueOfRoomRemoveFromFavoritesApiVersion(name); - static RoomRemoveFromFavoritesApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomRemoveFromFavoritesApiVersion.v4; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -26248,24 +25706,18 @@ abstract class RoomRemoveFromFavoritesResponseApplicationJson _$roomRemoveFromFavoritesResponseApplicationJsonSerializer; } -class RoomSetNotificationLevelApiVersion extends DynamiteEnum { +class RoomSetNotificationLevelApiVersion extends EnumClass { const RoomSetNotificationLevelApiVersion._(super.name); - static const RoomSetNotificationLevelApiVersion v4 = RoomSetNotificationLevelApiVersion._('v4'); + static const RoomSetNotificationLevelApiVersion v4 = _$roomSetNotificationLevelApiVersionV4; - static BuiltSet get values => - BuiltSet(const [ - RoomSetNotificationLevelApiVersion.v4, - ]); + // coverage:ignore-start + static BuiltSet get values => _$roomSetNotificationLevelApiVersionValues; + // coverage:ignore-end - static RoomSetNotificationLevelApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomSetNotificationLevelApiVersion.v4; - default: - throw ArgumentError(name); - } - } + static RoomSetNotificationLevelApiVersion valueOf(String name) => _$valueOfRoomSetNotificationLevelApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -26369,24 +25821,18 @@ abstract class RoomSetNotificationLevelResponseApplicationJson _$roomSetNotificationLevelResponseApplicationJsonSerializer; } -class RoomSetNotificationCallsApiVersion extends DynamiteEnum { +class RoomSetNotificationCallsApiVersion extends EnumClass { const RoomSetNotificationCallsApiVersion._(super.name); - static const RoomSetNotificationCallsApiVersion v4 = RoomSetNotificationCallsApiVersion._('v4'); + static const RoomSetNotificationCallsApiVersion v4 = _$roomSetNotificationCallsApiVersionV4; - static BuiltSet get values => - BuiltSet(const [ - RoomSetNotificationCallsApiVersion.v4, - ]); + // coverage:ignore-start + static BuiltSet get values => _$roomSetNotificationCallsApiVersionValues; + // coverage:ignore-end - static RoomSetNotificationCallsApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomSetNotificationCallsApiVersion.v4; - default: - throw ArgumentError(name); - } - } + static RoomSetNotificationCallsApiVersion valueOf(String name) => _$valueOfRoomSetNotificationCallsApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -26490,23 +25936,18 @@ abstract class RoomSetNotificationCallsResponseApplicationJson _$roomSetNotificationCallsResponseApplicationJsonSerializer; } -class RoomSetLobbyApiVersion extends DynamiteEnum { +class RoomSetLobbyApiVersion extends EnumClass { const RoomSetLobbyApiVersion._(super.name); - static const RoomSetLobbyApiVersion v4 = RoomSetLobbyApiVersion._('v4'); + static const RoomSetLobbyApiVersion v4 = _$roomSetLobbyApiVersionV4; + + // coverage:ignore-start + static BuiltSet get values => _$roomSetLobbyApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => BuiltSet(const [ - RoomSetLobbyApiVersion.v4, - ]); + static RoomSetLobbyApiVersion valueOf(String name) => _$valueOfRoomSetLobbyApiVersion(name); - static RoomSetLobbyApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomSetLobbyApiVersion.v4; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$RoomSetLobbyApiVersionSerializer(); @@ -26605,24 +26046,18 @@ abstract class RoomSetLobbyResponseApplicationJson _$roomSetLobbyResponseApplicationJsonSerializer; } -class RoomSetsipEnabledApiVersion extends DynamiteEnum { +class RoomSetsipEnabledApiVersion extends EnumClass { const RoomSetsipEnabledApiVersion._(super.name); - static const RoomSetsipEnabledApiVersion v4 = RoomSetsipEnabledApiVersion._('v4'); + static const RoomSetsipEnabledApiVersion v4 = _$roomSetsipEnabledApiVersionV4; + + // coverage:ignore-start + static BuiltSet get values => _$roomSetsipEnabledApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - RoomSetsipEnabledApiVersion.v4, - ]); + static RoomSetsipEnabledApiVersion valueOf(String name) => _$valueOfRoomSetsipEnabledApiVersion(name); - static RoomSetsipEnabledApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomSetsipEnabledApiVersion.v4; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$RoomSetsipEnabledApiVersionSerializer(); @@ -26723,24 +26158,18 @@ abstract class RoomSetsipEnabledResponseApplicationJson _$roomSetsipEnabledResponseApplicationJsonSerializer; } -class RoomSetRecordingConsentApiVersion extends DynamiteEnum { +class RoomSetRecordingConsentApiVersion extends EnumClass { const RoomSetRecordingConsentApiVersion._(super.name); - static const RoomSetRecordingConsentApiVersion v4 = RoomSetRecordingConsentApiVersion._('v4'); + static const RoomSetRecordingConsentApiVersion v4 = _$roomSetRecordingConsentApiVersionV4; - static BuiltSet get values => - BuiltSet(const [ - RoomSetRecordingConsentApiVersion.v4, - ]); + // coverage:ignore-start + static BuiltSet get values => _$roomSetRecordingConsentApiVersionValues; + // coverage:ignore-end - static RoomSetRecordingConsentApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomSetRecordingConsentApiVersion.v4; - default: - throw ArgumentError(name); - } - } + static RoomSetRecordingConsentApiVersion valueOf(String name) => _$valueOfRoomSetRecordingConsentApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -26843,24 +26272,18 @@ abstract class RoomSetRecordingConsentResponseApplicationJson _$roomSetRecordingConsentResponseApplicationJsonSerializer; } -class RoomSetMessageExpirationApiVersion extends DynamiteEnum { +class RoomSetMessageExpirationApiVersion extends EnumClass { const RoomSetMessageExpirationApiVersion._(super.name); - static const RoomSetMessageExpirationApiVersion v4 = RoomSetMessageExpirationApiVersion._('v4'); + static const RoomSetMessageExpirationApiVersion v4 = _$roomSetMessageExpirationApiVersionV4; - static BuiltSet get values => - BuiltSet(const [ - RoomSetMessageExpirationApiVersion.v4, - ]); + // coverage:ignore-start + static BuiltSet get values => _$roomSetMessageExpirationApiVersionValues; + // coverage:ignore-end - static RoomSetMessageExpirationApiVersion valueOf(String name) { - switch (name) { - case 'v4': - return RoomSetMessageExpirationApiVersion.v4; - default: - throw ArgumentError(name); - } - } + static RoomSetMessageExpirationApiVersion valueOf(String name) => _$valueOfRoomSetMessageExpirationApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -26964,24 +26387,18 @@ abstract class RoomSetMessageExpirationResponseApplicationJson _$roomSetMessageExpirationResponseApplicationJsonSerializer; } -class SettingsSetsipSettingsApiVersion extends DynamiteEnum { +class SettingsSetsipSettingsApiVersion extends EnumClass { const SettingsSetsipSettingsApiVersion._(super.name); - static const SettingsSetsipSettingsApiVersion v1 = SettingsSetsipSettingsApiVersion._('v1'); + static const SettingsSetsipSettingsApiVersion v1 = _$settingsSetsipSettingsApiVersionV1; + + // coverage:ignore-start + static BuiltSet get values => _$settingsSetsipSettingsApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - SettingsSetsipSettingsApiVersion.v1, - ]); + static SettingsSetsipSettingsApiVersion valueOf(String name) => _$valueOfSettingsSetsipSettingsApiVersion(name); - static SettingsSetsipSettingsApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return SettingsSetsipSettingsApiVersion.v1; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -27084,24 +26501,18 @@ abstract class SettingsSetsipSettingsResponseApplicationJson _$settingsSetsipSettingsResponseApplicationJsonSerializer; } -class SettingsSetUserSettingApiVersion extends DynamiteEnum { +class SettingsSetUserSettingApiVersion extends EnumClass { const SettingsSetUserSettingApiVersion._(super.name); - static const SettingsSetUserSettingApiVersion v1 = SettingsSetUserSettingApiVersion._('v1'); + static const SettingsSetUserSettingApiVersion v1 = _$settingsSetUserSettingApiVersionV1; + + // coverage:ignore-start + static BuiltSet get values => _$settingsSetUserSettingApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - SettingsSetUserSettingApiVersion.v1, - ]); + static SettingsSetUserSettingApiVersion valueOf(String name) => _$valueOfSettingsSetUserSettingApiVersion(name); - static SettingsSetUserSettingApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return SettingsSetUserSettingApiVersion.v1; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -27204,24 +26615,18 @@ abstract class SettingsSetUserSettingResponseApplicationJson _$settingsSetUserSettingResponseApplicationJsonSerializer; } -class SignalingGetSettingsApiVersion extends DynamiteEnum { +class SignalingGetSettingsApiVersion extends EnumClass { const SignalingGetSettingsApiVersion._(super.name); - static const SignalingGetSettingsApiVersion v3 = SignalingGetSettingsApiVersion._('v3'); + static const SignalingGetSettingsApiVersion v3 = _$signalingGetSettingsApiVersionV3; - static BuiltSet get values => - BuiltSet(const [ - SignalingGetSettingsApiVersion.v3, - ]); + // coverage:ignore-start + static BuiltSet get values => _$signalingGetSettingsApiVersionValues; + // coverage:ignore-end - static SignalingGetSettingsApiVersion valueOf(String name) { - switch (name) { - case 'v3': - return SignalingGetSettingsApiVersion.v3; - default: - throw ArgumentError(name); - } - } + static SignalingGetSettingsApiVersion valueOf(String name) => _$valueOfSignalingGetSettingsApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -27503,24 +26908,19 @@ abstract class SignalingGetSettingsResponseApplicationJson _$signalingGetSettingsResponseApplicationJsonSerializer; } -class SignalingGetWelcomeMessageApiVersion extends DynamiteEnum { +class SignalingGetWelcomeMessageApiVersion extends EnumClass { const SignalingGetWelcomeMessageApiVersion._(super.name); - static const SignalingGetWelcomeMessageApiVersion v3 = SignalingGetWelcomeMessageApiVersion._('v3'); + static const SignalingGetWelcomeMessageApiVersion v3 = _$signalingGetWelcomeMessageApiVersionV3; - static BuiltSet get values => - BuiltSet(const [ - SignalingGetWelcomeMessageApiVersion.v3, - ]); + // coverage:ignore-start + static BuiltSet get values => _$signalingGetWelcomeMessageApiVersionValues; + // coverage:ignore-end - static SignalingGetWelcomeMessageApiVersion valueOf(String name) { - switch (name) { - case 'v3': - return SignalingGetWelcomeMessageApiVersion.v3; - default: - throw ArgumentError(name); - } - } + static SignalingGetWelcomeMessageApiVersion valueOf(String name) => + _$valueOfSignalingGetWelcomeMessageApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -27627,24 +27027,18 @@ abstract class SignalingGetWelcomeMessageResponseApplicationJson _$signalingGetWelcomeMessageResponseApplicationJsonSerializer; } -class SignalingPullMessagesApiVersion extends DynamiteEnum { +class SignalingPullMessagesApiVersion extends EnumClass { const SignalingPullMessagesApiVersion._(super.name); - static const SignalingPullMessagesApiVersion v3 = SignalingPullMessagesApiVersion._('v3'); + static const SignalingPullMessagesApiVersion v3 = _$signalingPullMessagesApiVersionV3; + + // coverage:ignore-start + static BuiltSet get values => _$signalingPullMessagesApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - SignalingPullMessagesApiVersion.v3, - ]); + static SignalingPullMessagesApiVersion valueOf(String name) => _$valueOfSignalingPullMessagesApiVersion(name); - static SignalingPullMessagesApiVersion valueOf(String name) { - switch (name) { - case 'v3': - return SignalingPullMessagesApiVersion.v3; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -27813,24 +27207,18 @@ abstract class SignalingPullMessagesResponseApplicationJson _$signalingPullMessagesResponseApplicationJsonSerializer; } -class SignalingSendMessagesApiVersion extends DynamiteEnum { +class SignalingSendMessagesApiVersion extends EnumClass { const SignalingSendMessagesApiVersion._(super.name); - static const SignalingSendMessagesApiVersion v3 = SignalingSendMessagesApiVersion._('v3'); + static const SignalingSendMessagesApiVersion v3 = _$signalingSendMessagesApiVersionV3; + + // coverage:ignore-start + static BuiltSet get values => _$signalingSendMessagesApiVersionValues; + // coverage:ignore-end - static BuiltSet get values => - BuiltSet(const [ - SignalingSendMessagesApiVersion.v3, - ]); + static SignalingSendMessagesApiVersion valueOf(String name) => _$valueOfSignalingSendMessagesApiVersion(name); - static SignalingSendMessagesApiVersion valueOf(String name) { - switch (name) { - case 'v3': - return SignalingSendMessagesApiVersion.v3; - default: - throw ArgumentError(name); - } - } + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => diff --git a/packages/nextcloud/lib/src/api/spreed.openapi.g.dart b/packages/nextcloud/lib/src/api/spreed.openapi.g.dart index eb4cc3c1c08..e89d434f3af 100644 --- a/packages/nextcloud/lib/src/api/spreed.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/spreed.openapi.g.dart @@ -6,6 +6,1837 @@ part of 'spreed.openapi.dart'; // BuiltValueGenerator // ************************************************************************** +const AvatarGetAvatarApiVersion _$avatarGetAvatarApiVersionV1 = AvatarGetAvatarApiVersion._('v1'); + +AvatarGetAvatarApiVersion _$valueOfAvatarGetAvatarApiVersion(String name) { + switch (name) { + case 'v1': + return _$avatarGetAvatarApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$avatarGetAvatarApiVersionValues = + BuiltSet(const [ + _$avatarGetAvatarApiVersionV1, +]); + +const AvatarUploadAvatarApiVersion _$avatarUploadAvatarApiVersionV1 = AvatarUploadAvatarApiVersion._('v1'); + +AvatarUploadAvatarApiVersion _$valueOfAvatarUploadAvatarApiVersion(String name) { + switch (name) { + case 'v1': + return _$avatarUploadAvatarApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$avatarUploadAvatarApiVersionValues = + BuiltSet(const [ + _$avatarUploadAvatarApiVersionV1, +]); + +const AvatarDeleteAvatarApiVersion _$avatarDeleteAvatarApiVersionV1 = AvatarDeleteAvatarApiVersion._('v1'); + +AvatarDeleteAvatarApiVersion _$valueOfAvatarDeleteAvatarApiVersion(String name) { + switch (name) { + case 'v1': + return _$avatarDeleteAvatarApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$avatarDeleteAvatarApiVersionValues = + BuiltSet(const [ + _$avatarDeleteAvatarApiVersionV1, +]); + +const AvatarEmojiAvatarApiVersion _$avatarEmojiAvatarApiVersionV1 = AvatarEmojiAvatarApiVersion._('v1'); + +AvatarEmojiAvatarApiVersion _$valueOfAvatarEmojiAvatarApiVersion(String name) { + switch (name) { + case 'v1': + return _$avatarEmojiAvatarApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$avatarEmojiAvatarApiVersionValues = + BuiltSet(const [ + _$avatarEmojiAvatarApiVersionV1, +]); + +const AvatarGetAvatarDarkApiVersion _$avatarGetAvatarDarkApiVersionV1 = AvatarGetAvatarDarkApiVersion._('v1'); + +AvatarGetAvatarDarkApiVersion _$valueOfAvatarGetAvatarDarkApiVersion(String name) { + switch (name) { + case 'v1': + return _$avatarGetAvatarDarkApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$avatarGetAvatarDarkApiVersionValues = + BuiltSet(const [ + _$avatarGetAvatarDarkApiVersionV1, +]); + +const BotSendMessageApiVersion _$botSendMessageApiVersionV1 = BotSendMessageApiVersion._('v1'); + +BotSendMessageApiVersion _$valueOfBotSendMessageApiVersion(String name) { + switch (name) { + case 'v1': + return _$botSendMessageApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$botSendMessageApiVersionValues = + BuiltSet(const [ + _$botSendMessageApiVersionV1, +]); + +const BotReactApiVersion _$botReactApiVersionV1 = BotReactApiVersion._('v1'); + +BotReactApiVersion _$valueOfBotReactApiVersion(String name) { + switch (name) { + case 'v1': + return _$botReactApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$botReactApiVersionValues = BuiltSet(const [ + _$botReactApiVersionV1, +]); + +const BotDeleteReactionApiVersion _$botDeleteReactionApiVersionV1 = BotDeleteReactionApiVersion._('v1'); + +BotDeleteReactionApiVersion _$valueOfBotDeleteReactionApiVersion(String name) { + switch (name) { + case 'v1': + return _$botDeleteReactionApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$botDeleteReactionApiVersionValues = + BuiltSet(const [ + _$botDeleteReactionApiVersionV1, +]); + +const BotAdminListBotsApiVersion _$botAdminListBotsApiVersionV1 = BotAdminListBotsApiVersion._('v1'); + +BotAdminListBotsApiVersion _$valueOfBotAdminListBotsApiVersion(String name) { + switch (name) { + case 'v1': + return _$botAdminListBotsApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$botAdminListBotsApiVersionValues = + BuiltSet(const [ + _$botAdminListBotsApiVersionV1, +]); + +const BotListBotsApiVersion _$botListBotsApiVersionV1 = BotListBotsApiVersion._('v1'); + +BotListBotsApiVersion _$valueOfBotListBotsApiVersion(String name) { + switch (name) { + case 'v1': + return _$botListBotsApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$botListBotsApiVersionValues = + BuiltSet(const [ + _$botListBotsApiVersionV1, +]); + +const BotEnableBotApiVersion _$botEnableBotApiVersionV1 = BotEnableBotApiVersion._('v1'); + +BotEnableBotApiVersion _$valueOfBotEnableBotApiVersion(String name) { + switch (name) { + case 'v1': + return _$botEnableBotApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$botEnableBotApiVersionValues = + BuiltSet(const [ + _$botEnableBotApiVersionV1, +]); + +const BotDisableBotApiVersion _$botDisableBotApiVersionV1 = BotDisableBotApiVersion._('v1'); + +BotDisableBotApiVersion _$valueOfBotDisableBotApiVersion(String name) { + switch (name) { + case 'v1': + return _$botDisableBotApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$botDisableBotApiVersionValues = + BuiltSet(const [ + _$botDisableBotApiVersionV1, +]); + +const BreakoutRoomConfigureBreakoutRoomsApiVersion _$breakoutRoomConfigureBreakoutRoomsApiVersionV1 = + BreakoutRoomConfigureBreakoutRoomsApiVersion._('v1'); + +BreakoutRoomConfigureBreakoutRoomsApiVersion _$valueOfBreakoutRoomConfigureBreakoutRoomsApiVersion(String name) { + switch (name) { + case 'v1': + return _$breakoutRoomConfigureBreakoutRoomsApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$breakoutRoomConfigureBreakoutRoomsApiVersionValues = + BuiltSet(const [ + _$breakoutRoomConfigureBreakoutRoomsApiVersionV1, +]); + +const BreakoutRoomRemoveBreakoutRoomsApiVersion _$breakoutRoomRemoveBreakoutRoomsApiVersionV1 = + BreakoutRoomRemoveBreakoutRoomsApiVersion._('v1'); + +BreakoutRoomRemoveBreakoutRoomsApiVersion _$valueOfBreakoutRoomRemoveBreakoutRoomsApiVersion(String name) { + switch (name) { + case 'v1': + return _$breakoutRoomRemoveBreakoutRoomsApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$breakoutRoomRemoveBreakoutRoomsApiVersionValues = + BuiltSet(const [ + _$breakoutRoomRemoveBreakoutRoomsApiVersionV1, +]); + +const BreakoutRoomBroadcastChatMessageApiVersion _$breakoutRoomBroadcastChatMessageApiVersionV1 = + BreakoutRoomBroadcastChatMessageApiVersion._('v1'); + +BreakoutRoomBroadcastChatMessageApiVersion _$valueOfBreakoutRoomBroadcastChatMessageApiVersion(String name) { + switch (name) { + case 'v1': + return _$breakoutRoomBroadcastChatMessageApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$breakoutRoomBroadcastChatMessageApiVersionValues = + BuiltSet(const [ + _$breakoutRoomBroadcastChatMessageApiVersionV1, +]); + +const BreakoutRoomApplyAttendeeMapApiVersion _$breakoutRoomApplyAttendeeMapApiVersionV1 = + BreakoutRoomApplyAttendeeMapApiVersion._('v1'); + +BreakoutRoomApplyAttendeeMapApiVersion _$valueOfBreakoutRoomApplyAttendeeMapApiVersion(String name) { + switch (name) { + case 'v1': + return _$breakoutRoomApplyAttendeeMapApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$breakoutRoomApplyAttendeeMapApiVersionValues = + BuiltSet(const [ + _$breakoutRoomApplyAttendeeMapApiVersionV1, +]); + +const BreakoutRoomRequestAssistanceApiVersion _$breakoutRoomRequestAssistanceApiVersionV1 = + BreakoutRoomRequestAssistanceApiVersion._('v1'); + +BreakoutRoomRequestAssistanceApiVersion _$valueOfBreakoutRoomRequestAssistanceApiVersion(String name) { + switch (name) { + case 'v1': + return _$breakoutRoomRequestAssistanceApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$breakoutRoomRequestAssistanceApiVersionValues = + BuiltSet(const [ + _$breakoutRoomRequestAssistanceApiVersionV1, +]); + +const BreakoutRoomResetRequestForAssistanceApiVersion _$breakoutRoomResetRequestForAssistanceApiVersionV1 = + BreakoutRoomResetRequestForAssistanceApiVersion._('v1'); + +BreakoutRoomResetRequestForAssistanceApiVersion _$valueOfBreakoutRoomResetRequestForAssistanceApiVersion(String name) { + switch (name) { + case 'v1': + return _$breakoutRoomResetRequestForAssistanceApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet + _$breakoutRoomResetRequestForAssistanceApiVersionValues = + BuiltSet(const [ + _$breakoutRoomResetRequestForAssistanceApiVersionV1, +]); + +const BreakoutRoomStartBreakoutRoomsApiVersion _$breakoutRoomStartBreakoutRoomsApiVersionV1 = + BreakoutRoomStartBreakoutRoomsApiVersion._('v1'); + +BreakoutRoomStartBreakoutRoomsApiVersion _$valueOfBreakoutRoomStartBreakoutRoomsApiVersion(String name) { + switch (name) { + case 'v1': + return _$breakoutRoomStartBreakoutRoomsApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$breakoutRoomStartBreakoutRoomsApiVersionValues = + BuiltSet(const [ + _$breakoutRoomStartBreakoutRoomsApiVersionV1, +]); + +const BreakoutRoomStopBreakoutRoomsApiVersion _$breakoutRoomStopBreakoutRoomsApiVersionV1 = + BreakoutRoomStopBreakoutRoomsApiVersion._('v1'); + +BreakoutRoomStopBreakoutRoomsApiVersion _$valueOfBreakoutRoomStopBreakoutRoomsApiVersion(String name) { + switch (name) { + case 'v1': + return _$breakoutRoomStopBreakoutRoomsApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$breakoutRoomStopBreakoutRoomsApiVersionValues = + BuiltSet(const [ + _$breakoutRoomStopBreakoutRoomsApiVersionV1, +]); + +const BreakoutRoomSwitchBreakoutRoomApiVersion _$breakoutRoomSwitchBreakoutRoomApiVersionV1 = + BreakoutRoomSwitchBreakoutRoomApiVersion._('v1'); + +BreakoutRoomSwitchBreakoutRoomApiVersion _$valueOfBreakoutRoomSwitchBreakoutRoomApiVersion(String name) { + switch (name) { + case 'v1': + return _$breakoutRoomSwitchBreakoutRoomApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$breakoutRoomSwitchBreakoutRoomApiVersionValues = + BuiltSet(const [ + _$breakoutRoomSwitchBreakoutRoomApiVersionV1, +]); + +const CallGetPeersForCallApiVersion _$callGetPeersForCallApiVersionV4 = CallGetPeersForCallApiVersion._('v4'); + +CallGetPeersForCallApiVersion _$valueOfCallGetPeersForCallApiVersion(String name) { + switch (name) { + case 'v4': + return _$callGetPeersForCallApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$callGetPeersForCallApiVersionValues = + BuiltSet(const [ + _$callGetPeersForCallApiVersionV4, +]); + +const CallUpdateCallFlagsApiVersion _$callUpdateCallFlagsApiVersionV4 = CallUpdateCallFlagsApiVersion._('v4'); + +CallUpdateCallFlagsApiVersion _$valueOfCallUpdateCallFlagsApiVersion(String name) { + switch (name) { + case 'v4': + return _$callUpdateCallFlagsApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$callUpdateCallFlagsApiVersionValues = + BuiltSet(const [ + _$callUpdateCallFlagsApiVersionV4, +]); + +const CallJoinCallApiVersion _$callJoinCallApiVersionV4 = CallJoinCallApiVersion._('v4'); + +CallJoinCallApiVersion _$valueOfCallJoinCallApiVersion(String name) { + switch (name) { + case 'v4': + return _$callJoinCallApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$callJoinCallApiVersionValues = + BuiltSet(const [ + _$callJoinCallApiVersionV4, +]); + +const CallLeaveCallApiVersion _$callLeaveCallApiVersionV4 = CallLeaveCallApiVersion._('v4'); + +CallLeaveCallApiVersion _$valueOfCallLeaveCallApiVersion(String name) { + switch (name) { + case 'v4': + return _$callLeaveCallApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$callLeaveCallApiVersionValues = + BuiltSet(const [ + _$callLeaveCallApiVersionV4, +]); + +const CallRingAttendeeApiVersion _$callRingAttendeeApiVersionV4 = CallRingAttendeeApiVersion._('v4'); + +CallRingAttendeeApiVersion _$valueOfCallRingAttendeeApiVersion(String name) { + switch (name) { + case 'v4': + return _$callRingAttendeeApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$callRingAttendeeApiVersionValues = + BuiltSet(const [ + _$callRingAttendeeApiVersionV4, +]); + +const CallSipDialOutApiVersion _$callSipDialOutApiVersionV4 = CallSipDialOutApiVersion._('v4'); + +CallSipDialOutApiVersion _$valueOfCallSipDialOutApiVersion(String name) { + switch (name) { + case 'v4': + return _$callSipDialOutApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$callSipDialOutApiVersionValues = + BuiltSet(const [ + _$callSipDialOutApiVersionV4, +]); + +const CertificateGetCertificateExpirationApiVersion _$certificateGetCertificateExpirationApiVersionV1 = + CertificateGetCertificateExpirationApiVersion._('v1'); + +CertificateGetCertificateExpirationApiVersion _$valueOfCertificateGetCertificateExpirationApiVersion(String name) { + switch (name) { + case 'v1': + return _$certificateGetCertificateExpirationApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$certificateGetCertificateExpirationApiVersionValues = + BuiltSet(const [ + _$certificateGetCertificateExpirationApiVersionV1, +]); + +const ChatReceiveMessagesApiVersion _$chatReceiveMessagesApiVersionV1 = ChatReceiveMessagesApiVersion._('v1'); + +ChatReceiveMessagesApiVersion _$valueOfChatReceiveMessagesApiVersion(String name) { + switch (name) { + case 'v1': + return _$chatReceiveMessagesApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$chatReceiveMessagesApiVersionValues = + BuiltSet(const [ + _$chatReceiveMessagesApiVersionV1, +]); + +const ChatSendMessageApiVersion _$chatSendMessageApiVersionV1 = ChatSendMessageApiVersion._('v1'); + +ChatSendMessageApiVersion _$valueOfChatSendMessageApiVersion(String name) { + switch (name) { + case 'v1': + return _$chatSendMessageApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$chatSendMessageApiVersionValues = + BuiltSet(const [ + _$chatSendMessageApiVersionV1, +]); + +const ChatClearHistoryApiVersion _$chatClearHistoryApiVersionV1 = ChatClearHistoryApiVersion._('v1'); + +ChatClearHistoryApiVersion _$valueOfChatClearHistoryApiVersion(String name) { + switch (name) { + case 'v1': + return _$chatClearHistoryApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$chatClearHistoryApiVersionValues = + BuiltSet(const [ + _$chatClearHistoryApiVersionV1, +]); + +const ChatDeleteMessageApiVersion _$chatDeleteMessageApiVersionV1 = ChatDeleteMessageApiVersion._('v1'); + +ChatDeleteMessageApiVersion _$valueOfChatDeleteMessageApiVersion(String name) { + switch (name) { + case 'v1': + return _$chatDeleteMessageApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$chatDeleteMessageApiVersionValues = + BuiltSet(const [ + _$chatDeleteMessageApiVersionV1, +]); + +const ChatGetMessageContextApiVersion _$chatGetMessageContextApiVersionV1 = ChatGetMessageContextApiVersion._('v1'); + +ChatGetMessageContextApiVersion _$valueOfChatGetMessageContextApiVersion(String name) { + switch (name) { + case 'v1': + return _$chatGetMessageContextApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$chatGetMessageContextApiVersionValues = + BuiltSet(const [ + _$chatGetMessageContextApiVersionV1, +]); + +const ChatGetReminderApiVersion _$chatGetReminderApiVersionV1 = ChatGetReminderApiVersion._('v1'); + +ChatGetReminderApiVersion _$valueOfChatGetReminderApiVersion(String name) { + switch (name) { + case 'v1': + return _$chatGetReminderApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$chatGetReminderApiVersionValues = + BuiltSet(const [ + _$chatGetReminderApiVersionV1, +]); + +const ChatSetReminderApiVersion _$chatSetReminderApiVersionV1 = ChatSetReminderApiVersion._('v1'); + +ChatSetReminderApiVersion _$valueOfChatSetReminderApiVersion(String name) { + switch (name) { + case 'v1': + return _$chatSetReminderApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$chatSetReminderApiVersionValues = + BuiltSet(const [ + _$chatSetReminderApiVersionV1, +]); + +const ChatDeleteReminderApiVersion _$chatDeleteReminderApiVersionV1 = ChatDeleteReminderApiVersion._('v1'); + +ChatDeleteReminderApiVersion _$valueOfChatDeleteReminderApiVersion(String name) { + switch (name) { + case 'v1': + return _$chatDeleteReminderApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$chatDeleteReminderApiVersionValues = + BuiltSet(const [ + _$chatDeleteReminderApiVersionV1, +]); + +const ChatSetReadMarkerApiVersion _$chatSetReadMarkerApiVersionV1 = ChatSetReadMarkerApiVersion._('v1'); + +ChatSetReadMarkerApiVersion _$valueOfChatSetReadMarkerApiVersion(String name) { + switch (name) { + case 'v1': + return _$chatSetReadMarkerApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$chatSetReadMarkerApiVersionValues = + BuiltSet(const [ + _$chatSetReadMarkerApiVersionV1, +]); + +const ChatMarkUnreadApiVersion _$chatMarkUnreadApiVersionV1 = ChatMarkUnreadApiVersion._('v1'); + +ChatMarkUnreadApiVersion _$valueOfChatMarkUnreadApiVersion(String name) { + switch (name) { + case 'v1': + return _$chatMarkUnreadApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$chatMarkUnreadApiVersionValues = + BuiltSet(const [ + _$chatMarkUnreadApiVersionV1, +]); + +const ChatMentionsApiVersion _$chatMentionsApiVersionV1 = ChatMentionsApiVersion._('v1'); + +ChatMentionsApiVersion _$valueOfChatMentionsApiVersion(String name) { + switch (name) { + case 'v1': + return _$chatMentionsApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$chatMentionsApiVersionValues = + BuiltSet(const [ + _$chatMentionsApiVersionV1, +]); + +const ChatGetObjectsSharedInRoomApiVersion _$chatGetObjectsSharedInRoomApiVersionV1 = + ChatGetObjectsSharedInRoomApiVersion._('v1'); + +ChatGetObjectsSharedInRoomApiVersion _$valueOfChatGetObjectsSharedInRoomApiVersion(String name) { + switch (name) { + case 'v1': + return _$chatGetObjectsSharedInRoomApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$chatGetObjectsSharedInRoomApiVersionValues = + BuiltSet(const [ + _$chatGetObjectsSharedInRoomApiVersionV1, +]); + +const ChatShareObjectToChatApiVersion _$chatShareObjectToChatApiVersionV1 = ChatShareObjectToChatApiVersion._('v1'); + +ChatShareObjectToChatApiVersion _$valueOfChatShareObjectToChatApiVersion(String name) { + switch (name) { + case 'v1': + return _$chatShareObjectToChatApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$chatShareObjectToChatApiVersionValues = + BuiltSet(const [ + _$chatShareObjectToChatApiVersionV1, +]); + +const ChatGetObjectsSharedInRoomOverviewApiVersion _$chatGetObjectsSharedInRoomOverviewApiVersionV1 = + ChatGetObjectsSharedInRoomOverviewApiVersion._('v1'); + +ChatGetObjectsSharedInRoomOverviewApiVersion _$valueOfChatGetObjectsSharedInRoomOverviewApiVersion(String name) { + switch (name) { + case 'v1': + return _$chatGetObjectsSharedInRoomOverviewApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$chatGetObjectsSharedInRoomOverviewApiVersionValues = + BuiltSet(const [ + _$chatGetObjectsSharedInRoomOverviewApiVersionV1, +]); + +const FederationAcceptShareApiVersion _$federationAcceptShareApiVersionV1 = FederationAcceptShareApiVersion._('v1'); + +FederationAcceptShareApiVersion _$valueOfFederationAcceptShareApiVersion(String name) { + switch (name) { + case 'v1': + return _$federationAcceptShareApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$federationAcceptShareApiVersionValues = + BuiltSet(const [ + _$federationAcceptShareApiVersionV1, +]); + +const FederationRejectShareApiVersion _$federationRejectShareApiVersionV1 = FederationRejectShareApiVersion._('v1'); + +FederationRejectShareApiVersion _$valueOfFederationRejectShareApiVersion(String name) { + switch (name) { + case 'v1': + return _$federationRejectShareApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$federationRejectShareApiVersionValues = + BuiltSet(const [ + _$federationRejectShareApiVersionV1, +]); + +const FederationGetSharesApiVersion _$federationGetSharesApiVersionV1 = FederationGetSharesApiVersion._('v1'); + +FederationGetSharesApiVersion _$valueOfFederationGetSharesApiVersion(String name) { + switch (name) { + case 'v1': + return _$federationGetSharesApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$federationGetSharesApiVersionValues = + BuiltSet(const [ + _$federationGetSharesApiVersionV1, +]); + +const FilesIntegrationGetRoomByFileIdApiVersion _$filesIntegrationGetRoomByFileIdApiVersionV1 = + FilesIntegrationGetRoomByFileIdApiVersion._('v1'); + +FilesIntegrationGetRoomByFileIdApiVersion _$valueOfFilesIntegrationGetRoomByFileIdApiVersion(String name) { + switch (name) { + case 'v1': + return _$filesIntegrationGetRoomByFileIdApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$filesIntegrationGetRoomByFileIdApiVersionValues = + BuiltSet(const [ + _$filesIntegrationGetRoomByFileIdApiVersionV1, +]); + +const FilesIntegrationGetRoomByShareTokenApiVersion _$filesIntegrationGetRoomByShareTokenApiVersionV1 = + FilesIntegrationGetRoomByShareTokenApiVersion._('v1'); + +FilesIntegrationGetRoomByShareTokenApiVersion _$valueOfFilesIntegrationGetRoomByShareTokenApiVersion(String name) { + switch (name) { + case 'v1': + return _$filesIntegrationGetRoomByShareTokenApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$filesIntegrationGetRoomByShareTokenApiVersionValues = + BuiltSet(const [ + _$filesIntegrationGetRoomByShareTokenApiVersionV1, +]); + +const GuestSetDisplayNameApiVersion _$guestSetDisplayNameApiVersionV1 = GuestSetDisplayNameApiVersion._('v1'); + +GuestSetDisplayNameApiVersion _$valueOfGuestSetDisplayNameApiVersion(String name) { + switch (name) { + case 'v1': + return _$guestSetDisplayNameApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$guestSetDisplayNameApiVersionValues = + BuiltSet(const [ + _$guestSetDisplayNameApiVersionV1, +]); + +const HostedSignalingServerRequestTrialApiVersion _$hostedSignalingServerRequestTrialApiVersionV1 = + HostedSignalingServerRequestTrialApiVersion._('v1'); + +HostedSignalingServerRequestTrialApiVersion _$valueOfHostedSignalingServerRequestTrialApiVersion(String name) { + switch (name) { + case 'v1': + return _$hostedSignalingServerRequestTrialApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$hostedSignalingServerRequestTrialApiVersionValues = + BuiltSet(const [ + _$hostedSignalingServerRequestTrialApiVersionV1, +]); + +const HostedSignalingServerDeleteAccountApiVersion _$hostedSignalingServerDeleteAccountApiVersionV1 = + HostedSignalingServerDeleteAccountApiVersion._('v1'); + +HostedSignalingServerDeleteAccountApiVersion _$valueOfHostedSignalingServerDeleteAccountApiVersion(String name) { + switch (name) { + case 'v1': + return _$hostedSignalingServerDeleteAccountApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$hostedSignalingServerDeleteAccountApiVersionValues = + BuiltSet(const [ + _$hostedSignalingServerDeleteAccountApiVersionV1, +]); + +const MatterbridgeGetBridgeOfRoomApiVersion _$matterbridgeGetBridgeOfRoomApiVersionV1 = + MatterbridgeGetBridgeOfRoomApiVersion._('v1'); + +MatterbridgeGetBridgeOfRoomApiVersion _$valueOfMatterbridgeGetBridgeOfRoomApiVersion(String name) { + switch (name) { + case 'v1': + return _$matterbridgeGetBridgeOfRoomApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$matterbridgeGetBridgeOfRoomApiVersionValues = + BuiltSet(const [ + _$matterbridgeGetBridgeOfRoomApiVersionV1, +]); + +const MatterbridgeEditBridgeOfRoomApiVersion _$matterbridgeEditBridgeOfRoomApiVersionV1 = + MatterbridgeEditBridgeOfRoomApiVersion._('v1'); + +MatterbridgeEditBridgeOfRoomApiVersion _$valueOfMatterbridgeEditBridgeOfRoomApiVersion(String name) { + switch (name) { + case 'v1': + return _$matterbridgeEditBridgeOfRoomApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$matterbridgeEditBridgeOfRoomApiVersionValues = + BuiltSet(const [ + _$matterbridgeEditBridgeOfRoomApiVersionV1, +]); + +const MatterbridgeDeleteBridgeOfRoomApiVersion _$matterbridgeDeleteBridgeOfRoomApiVersionV1 = + MatterbridgeDeleteBridgeOfRoomApiVersion._('v1'); + +MatterbridgeDeleteBridgeOfRoomApiVersion _$valueOfMatterbridgeDeleteBridgeOfRoomApiVersion(String name) { + switch (name) { + case 'v1': + return _$matterbridgeDeleteBridgeOfRoomApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$matterbridgeDeleteBridgeOfRoomApiVersionValues = + BuiltSet(const [ + _$matterbridgeDeleteBridgeOfRoomApiVersionV1, +]); + +const MatterbridgeGetBridgeProcessStateApiVersion _$matterbridgeGetBridgeProcessStateApiVersionV1 = + MatterbridgeGetBridgeProcessStateApiVersion._('v1'); + +MatterbridgeGetBridgeProcessStateApiVersion _$valueOfMatterbridgeGetBridgeProcessStateApiVersion(String name) { + switch (name) { + case 'v1': + return _$matterbridgeGetBridgeProcessStateApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$matterbridgeGetBridgeProcessStateApiVersionValues = + BuiltSet(const [ + _$matterbridgeGetBridgeProcessStateApiVersionV1, +]); + +const MatterbridgeSettingsStopAllBridgesApiVersion _$matterbridgeSettingsStopAllBridgesApiVersionV1 = + MatterbridgeSettingsStopAllBridgesApiVersion._('v1'); + +MatterbridgeSettingsStopAllBridgesApiVersion _$valueOfMatterbridgeSettingsStopAllBridgesApiVersion(String name) { + switch (name) { + case 'v1': + return _$matterbridgeSettingsStopAllBridgesApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$matterbridgeSettingsStopAllBridgesApiVersionValues = + BuiltSet(const [ + _$matterbridgeSettingsStopAllBridgesApiVersionV1, +]); + +const MatterbridgeSettingsGetMatterbridgeVersionApiVersion _$matterbridgeSettingsGetMatterbridgeVersionApiVersionV1 = + MatterbridgeSettingsGetMatterbridgeVersionApiVersion._('v1'); + +MatterbridgeSettingsGetMatterbridgeVersionApiVersion _$valueOfMatterbridgeSettingsGetMatterbridgeVersionApiVersion( + String name) { + switch (name) { + case 'v1': + return _$matterbridgeSettingsGetMatterbridgeVersionApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet + _$matterbridgeSettingsGetMatterbridgeVersionApiVersionValues = BuiltSet< + MatterbridgeSettingsGetMatterbridgeVersionApiVersion>(const [ + _$matterbridgeSettingsGetMatterbridgeVersionApiVersionV1, +]); + +const PollCreatePollApiVersion _$pollCreatePollApiVersionV1 = PollCreatePollApiVersion._('v1'); + +PollCreatePollApiVersion _$valueOfPollCreatePollApiVersion(String name) { + switch (name) { + case 'v1': + return _$pollCreatePollApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$pollCreatePollApiVersionValues = + BuiltSet(const [ + _$pollCreatePollApiVersionV1, +]); + +const PollShowPollApiVersion _$pollShowPollApiVersionV1 = PollShowPollApiVersion._('v1'); + +PollShowPollApiVersion _$valueOfPollShowPollApiVersion(String name) { + switch (name) { + case 'v1': + return _$pollShowPollApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$pollShowPollApiVersionValues = + BuiltSet(const [ + _$pollShowPollApiVersionV1, +]); + +const PollVotePollApiVersion _$pollVotePollApiVersionV1 = PollVotePollApiVersion._('v1'); + +PollVotePollApiVersion _$valueOfPollVotePollApiVersion(String name) { + switch (name) { + case 'v1': + return _$pollVotePollApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$pollVotePollApiVersionValues = + BuiltSet(const [ + _$pollVotePollApiVersionV1, +]); + +const PollClosePollApiVersion _$pollClosePollApiVersionV1 = PollClosePollApiVersion._('v1'); + +PollClosePollApiVersion _$valueOfPollClosePollApiVersion(String name) { + switch (name) { + case 'v1': + return _$pollClosePollApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$pollClosePollApiVersionValues = + BuiltSet(const [ + _$pollClosePollApiVersionV1, +]); + +const PublicShareAuthCreateRoomApiVersion _$publicShareAuthCreateRoomApiVersionV1 = + PublicShareAuthCreateRoomApiVersion._('v1'); + +PublicShareAuthCreateRoomApiVersion _$valueOfPublicShareAuthCreateRoomApiVersion(String name) { + switch (name) { + case 'v1': + return _$publicShareAuthCreateRoomApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$publicShareAuthCreateRoomApiVersionValues = + BuiltSet(const [ + _$publicShareAuthCreateRoomApiVersionV1, +]); + +const ReactionGetReactionsApiVersion _$reactionGetReactionsApiVersionV1 = ReactionGetReactionsApiVersion._('v1'); + +ReactionGetReactionsApiVersion _$valueOfReactionGetReactionsApiVersion(String name) { + switch (name) { + case 'v1': + return _$reactionGetReactionsApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$reactionGetReactionsApiVersionValues = + BuiltSet(const [ + _$reactionGetReactionsApiVersionV1, +]); + +const ReactionReactApiVersion _$reactionReactApiVersionV1 = ReactionReactApiVersion._('v1'); + +ReactionReactApiVersion _$valueOfReactionReactApiVersion(String name) { + switch (name) { + case 'v1': + return _$reactionReactApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$reactionReactApiVersionValues = + BuiltSet(const [ + _$reactionReactApiVersionV1, +]); + +const ReactionDeleteApiVersion _$reactionDeleteApiVersionV1 = ReactionDeleteApiVersion._('v1'); + +ReactionDeleteApiVersion _$valueOfReactionDeleteApiVersion(String name) { + switch (name) { + case 'v1': + return _$reactionDeleteApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$reactionDeleteApiVersionValues = + BuiltSet(const [ + _$reactionDeleteApiVersionV1, +]); + +const RecordingGetWelcomeMessageApiVersion _$recordingGetWelcomeMessageApiVersionV1 = + RecordingGetWelcomeMessageApiVersion._('v1'); + +RecordingGetWelcomeMessageApiVersion _$valueOfRecordingGetWelcomeMessageApiVersion(String name) { + switch (name) { + case 'v1': + return _$recordingGetWelcomeMessageApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$recordingGetWelcomeMessageApiVersionValues = + BuiltSet(const [ + _$recordingGetWelcomeMessageApiVersionV1, +]); + +const RecordingStartApiVersion _$recordingStartApiVersionV1 = RecordingStartApiVersion._('v1'); + +RecordingStartApiVersion _$valueOfRecordingStartApiVersion(String name) { + switch (name) { + case 'v1': + return _$recordingStartApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$recordingStartApiVersionValues = + BuiltSet(const [ + _$recordingStartApiVersionV1, +]); + +const RecordingStopApiVersion _$recordingStopApiVersionV1 = RecordingStopApiVersion._('v1'); + +RecordingStopApiVersion _$valueOfRecordingStopApiVersion(String name) { + switch (name) { + case 'v1': + return _$recordingStopApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$recordingStopApiVersionValues = + BuiltSet(const [ + _$recordingStopApiVersionV1, +]); + +const RecordingStoreApiVersion _$recordingStoreApiVersionV1 = RecordingStoreApiVersion._('v1'); + +RecordingStoreApiVersion _$valueOfRecordingStoreApiVersion(String name) { + switch (name) { + case 'v1': + return _$recordingStoreApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$recordingStoreApiVersionValues = + BuiltSet(const [ + _$recordingStoreApiVersionV1, +]); + +const RecordingNotificationDismissApiVersion _$recordingNotificationDismissApiVersionV1 = + RecordingNotificationDismissApiVersion._('v1'); + +RecordingNotificationDismissApiVersion _$valueOfRecordingNotificationDismissApiVersion(String name) { + switch (name) { + case 'v1': + return _$recordingNotificationDismissApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$recordingNotificationDismissApiVersionValues = + BuiltSet(const [ + _$recordingNotificationDismissApiVersionV1, +]); + +const RecordingShareToChatApiVersion _$recordingShareToChatApiVersionV1 = RecordingShareToChatApiVersion._('v1'); + +RecordingShareToChatApiVersion _$valueOfRecordingShareToChatApiVersion(String name) { + switch (name) { + case 'v1': + return _$recordingShareToChatApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$recordingShareToChatApiVersionValues = + BuiltSet(const [ + _$recordingShareToChatApiVersionV1, +]); + +const RoomGetRoomsApiVersion _$roomGetRoomsApiVersionV4 = RoomGetRoomsApiVersion._('v4'); + +RoomGetRoomsApiVersion _$valueOfRoomGetRoomsApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomGetRoomsApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomGetRoomsApiVersionValues = + BuiltSet(const [ + _$roomGetRoomsApiVersionV4, +]); + +const RoomCreateRoomApiVersion _$roomCreateRoomApiVersionV4 = RoomCreateRoomApiVersion._('v4'); + +RoomCreateRoomApiVersion _$valueOfRoomCreateRoomApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomCreateRoomApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomCreateRoomApiVersionValues = + BuiltSet(const [ + _$roomCreateRoomApiVersionV4, +]); + +const RoomGetListedRoomsApiVersion _$roomGetListedRoomsApiVersionV4 = RoomGetListedRoomsApiVersion._('v4'); + +RoomGetListedRoomsApiVersion _$valueOfRoomGetListedRoomsApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomGetListedRoomsApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomGetListedRoomsApiVersionValues = + BuiltSet(const [ + _$roomGetListedRoomsApiVersionV4, +]); + +const RoomGetNoteToSelfConversationApiVersion _$roomGetNoteToSelfConversationApiVersionV4 = + RoomGetNoteToSelfConversationApiVersion._('v4'); + +RoomGetNoteToSelfConversationApiVersion _$valueOfRoomGetNoteToSelfConversationApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomGetNoteToSelfConversationApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomGetNoteToSelfConversationApiVersionValues = + BuiltSet(const [ + _$roomGetNoteToSelfConversationApiVersionV4, +]); + +const RoomGetSingleRoomApiVersion _$roomGetSingleRoomApiVersionV4 = RoomGetSingleRoomApiVersion._('v4'); + +RoomGetSingleRoomApiVersion _$valueOfRoomGetSingleRoomApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomGetSingleRoomApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomGetSingleRoomApiVersionValues = + BuiltSet(const [ + _$roomGetSingleRoomApiVersionV4, +]); + +const RoomRenameRoomApiVersion _$roomRenameRoomApiVersionV4 = RoomRenameRoomApiVersion._('v4'); + +RoomRenameRoomApiVersion _$valueOfRoomRenameRoomApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomRenameRoomApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomRenameRoomApiVersionValues = + BuiltSet(const [ + _$roomRenameRoomApiVersionV4, +]); + +const RoomDeleteRoomApiVersion _$roomDeleteRoomApiVersionV4 = RoomDeleteRoomApiVersion._('v4'); + +RoomDeleteRoomApiVersion _$valueOfRoomDeleteRoomApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomDeleteRoomApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomDeleteRoomApiVersionValues = + BuiltSet(const [ + _$roomDeleteRoomApiVersionV4, +]); + +const RoomGetBreakoutRoomsApiVersion _$roomGetBreakoutRoomsApiVersionV4 = RoomGetBreakoutRoomsApiVersion._('v4'); + +RoomGetBreakoutRoomsApiVersion _$valueOfRoomGetBreakoutRoomsApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomGetBreakoutRoomsApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomGetBreakoutRoomsApiVersionValues = + BuiltSet(const [ + _$roomGetBreakoutRoomsApiVersionV4, +]); + +const RoomMakePublicApiVersion _$roomMakePublicApiVersionV4 = RoomMakePublicApiVersion._('v4'); + +RoomMakePublicApiVersion _$valueOfRoomMakePublicApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomMakePublicApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomMakePublicApiVersionValues = + BuiltSet(const [ + _$roomMakePublicApiVersionV4, +]); + +const RoomMakePrivateApiVersion _$roomMakePrivateApiVersionV4 = RoomMakePrivateApiVersion._('v4'); + +RoomMakePrivateApiVersion _$valueOfRoomMakePrivateApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomMakePrivateApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomMakePrivateApiVersionValues = + BuiltSet(const [ + _$roomMakePrivateApiVersionV4, +]); + +const RoomSetDescriptionApiVersion _$roomSetDescriptionApiVersionV4 = RoomSetDescriptionApiVersion._('v4'); + +RoomSetDescriptionApiVersion _$valueOfRoomSetDescriptionApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomSetDescriptionApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomSetDescriptionApiVersionValues = + BuiltSet(const [ + _$roomSetDescriptionApiVersionV4, +]); + +const RoomSetReadOnlyApiVersion _$roomSetReadOnlyApiVersionV4 = RoomSetReadOnlyApiVersion._('v4'); + +RoomSetReadOnlyApiVersion _$valueOfRoomSetReadOnlyApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomSetReadOnlyApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomSetReadOnlyApiVersionValues = + BuiltSet(const [ + _$roomSetReadOnlyApiVersionV4, +]); + +const RoomSetListableApiVersion _$roomSetListableApiVersionV4 = RoomSetListableApiVersion._('v4'); + +RoomSetListableApiVersion _$valueOfRoomSetListableApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomSetListableApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomSetListableApiVersionValues = + BuiltSet(const [ + _$roomSetListableApiVersionV4, +]); + +const RoomSetPasswordApiVersion _$roomSetPasswordApiVersionV4 = RoomSetPasswordApiVersion._('v4'); + +RoomSetPasswordApiVersion _$valueOfRoomSetPasswordApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomSetPasswordApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomSetPasswordApiVersionValues = + BuiltSet(const [ + _$roomSetPasswordApiVersionV4, +]); + +const RoomSetPermissionsApiVersion _$roomSetPermissionsApiVersionV4 = RoomSetPermissionsApiVersion._('v4'); + +RoomSetPermissionsApiVersion _$valueOfRoomSetPermissionsApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomSetPermissionsApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomSetPermissionsApiVersionValues = + BuiltSet(const [ + _$roomSetPermissionsApiVersionV4, +]); + +const RoomGetParticipantsApiVersion _$roomGetParticipantsApiVersionV4 = RoomGetParticipantsApiVersion._('v4'); + +RoomGetParticipantsApiVersion _$valueOfRoomGetParticipantsApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomGetParticipantsApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomGetParticipantsApiVersionValues = + BuiltSet(const [ + _$roomGetParticipantsApiVersionV4, +]); + +const RoomAddParticipantToRoomApiVersion _$roomAddParticipantToRoomApiVersionV4 = + RoomAddParticipantToRoomApiVersion._('v4'); + +RoomAddParticipantToRoomApiVersion _$valueOfRoomAddParticipantToRoomApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomAddParticipantToRoomApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomAddParticipantToRoomApiVersionValues = + BuiltSet(const [ + _$roomAddParticipantToRoomApiVersionV4, +]); + +const RoomGetBreakoutRoomParticipantsApiVersion _$roomGetBreakoutRoomParticipantsApiVersionV4 = + RoomGetBreakoutRoomParticipantsApiVersion._('v4'); + +RoomGetBreakoutRoomParticipantsApiVersion _$valueOfRoomGetBreakoutRoomParticipantsApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomGetBreakoutRoomParticipantsApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomGetBreakoutRoomParticipantsApiVersionValues = + BuiltSet(const [ + _$roomGetBreakoutRoomParticipantsApiVersionV4, +]); + +const RoomRemoveSelfFromRoomApiVersion _$roomRemoveSelfFromRoomApiVersionV4 = RoomRemoveSelfFromRoomApiVersion._('v4'); + +RoomRemoveSelfFromRoomApiVersion _$valueOfRoomRemoveSelfFromRoomApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomRemoveSelfFromRoomApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomRemoveSelfFromRoomApiVersionValues = + BuiltSet(const [ + _$roomRemoveSelfFromRoomApiVersionV4, +]); + +const RoomRemoveAttendeeFromRoomApiVersion _$roomRemoveAttendeeFromRoomApiVersionV4 = + RoomRemoveAttendeeFromRoomApiVersion._('v4'); + +RoomRemoveAttendeeFromRoomApiVersion _$valueOfRoomRemoveAttendeeFromRoomApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomRemoveAttendeeFromRoomApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomRemoveAttendeeFromRoomApiVersionValues = + BuiltSet(const [ + _$roomRemoveAttendeeFromRoomApiVersionV4, +]); + +const RoomSetAttendeePermissionsApiVersion _$roomSetAttendeePermissionsApiVersionV4 = + RoomSetAttendeePermissionsApiVersion._('v4'); + +RoomSetAttendeePermissionsApiVersion _$valueOfRoomSetAttendeePermissionsApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomSetAttendeePermissionsApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomSetAttendeePermissionsApiVersionValues = + BuiltSet(const [ + _$roomSetAttendeePermissionsApiVersionV4, +]); + +const RoomSetAllAttendeesPermissionsApiVersion _$roomSetAllAttendeesPermissionsApiVersionV4 = + RoomSetAllAttendeesPermissionsApiVersion._('v4'); + +RoomSetAllAttendeesPermissionsApiVersion _$valueOfRoomSetAllAttendeesPermissionsApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomSetAllAttendeesPermissionsApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomSetAllAttendeesPermissionsApiVersionValues = + BuiltSet(const [ + _$roomSetAllAttendeesPermissionsApiVersionV4, +]); + +const RoomJoinRoomApiVersion _$roomJoinRoomApiVersionV4 = RoomJoinRoomApiVersion._('v4'); + +RoomJoinRoomApiVersion _$valueOfRoomJoinRoomApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomJoinRoomApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomJoinRoomApiVersionValues = + BuiltSet(const [ + _$roomJoinRoomApiVersionV4, +]); + +const RoomLeaveRoomApiVersion _$roomLeaveRoomApiVersionV4 = RoomLeaveRoomApiVersion._('v4'); + +RoomLeaveRoomApiVersion _$valueOfRoomLeaveRoomApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomLeaveRoomApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomLeaveRoomApiVersionValues = + BuiltSet(const [ + _$roomLeaveRoomApiVersionV4, +]); + +const RoomResendInvitationsApiVersion _$roomResendInvitationsApiVersionV4 = RoomResendInvitationsApiVersion._('v4'); + +RoomResendInvitationsApiVersion _$valueOfRoomResendInvitationsApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomResendInvitationsApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomResendInvitationsApiVersionValues = + BuiltSet(const [ + _$roomResendInvitationsApiVersionV4, +]); + +const RoomSetSessionStateApiVersion _$roomSetSessionStateApiVersionV4 = RoomSetSessionStateApiVersion._('v4'); + +RoomSetSessionStateApiVersion _$valueOfRoomSetSessionStateApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomSetSessionStateApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomSetSessionStateApiVersionValues = + BuiltSet(const [ + _$roomSetSessionStateApiVersionV4, +]); + +const RoomPromoteModeratorApiVersion _$roomPromoteModeratorApiVersionV4 = RoomPromoteModeratorApiVersion._('v4'); + +RoomPromoteModeratorApiVersion _$valueOfRoomPromoteModeratorApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomPromoteModeratorApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomPromoteModeratorApiVersionValues = + BuiltSet(const [ + _$roomPromoteModeratorApiVersionV4, +]); + +const RoomDemoteModeratorApiVersion _$roomDemoteModeratorApiVersionV4 = RoomDemoteModeratorApiVersion._('v4'); + +RoomDemoteModeratorApiVersion _$valueOfRoomDemoteModeratorApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomDemoteModeratorApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomDemoteModeratorApiVersionValues = + BuiltSet(const [ + _$roomDemoteModeratorApiVersionV4, +]); + +const RoomAddToFavoritesApiVersion _$roomAddToFavoritesApiVersionV4 = RoomAddToFavoritesApiVersion._('v4'); + +RoomAddToFavoritesApiVersion _$valueOfRoomAddToFavoritesApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomAddToFavoritesApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomAddToFavoritesApiVersionValues = + BuiltSet(const [ + _$roomAddToFavoritesApiVersionV4, +]); + +const RoomRemoveFromFavoritesApiVersion _$roomRemoveFromFavoritesApiVersionV4 = + RoomRemoveFromFavoritesApiVersion._('v4'); + +RoomRemoveFromFavoritesApiVersion _$valueOfRoomRemoveFromFavoritesApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomRemoveFromFavoritesApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomRemoveFromFavoritesApiVersionValues = + BuiltSet(const [ + _$roomRemoveFromFavoritesApiVersionV4, +]); + +const RoomSetNotificationLevelApiVersion _$roomSetNotificationLevelApiVersionV4 = + RoomSetNotificationLevelApiVersion._('v4'); + +RoomSetNotificationLevelApiVersion _$valueOfRoomSetNotificationLevelApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomSetNotificationLevelApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomSetNotificationLevelApiVersionValues = + BuiltSet(const [ + _$roomSetNotificationLevelApiVersionV4, +]); + +const RoomSetNotificationCallsApiVersion _$roomSetNotificationCallsApiVersionV4 = + RoomSetNotificationCallsApiVersion._('v4'); + +RoomSetNotificationCallsApiVersion _$valueOfRoomSetNotificationCallsApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomSetNotificationCallsApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomSetNotificationCallsApiVersionValues = + BuiltSet(const [ + _$roomSetNotificationCallsApiVersionV4, +]); + +const RoomSetLobbyApiVersion _$roomSetLobbyApiVersionV4 = RoomSetLobbyApiVersion._('v4'); + +RoomSetLobbyApiVersion _$valueOfRoomSetLobbyApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomSetLobbyApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomSetLobbyApiVersionValues = + BuiltSet(const [ + _$roomSetLobbyApiVersionV4, +]); + +const RoomSetsipEnabledApiVersion _$roomSetsipEnabledApiVersionV4 = RoomSetsipEnabledApiVersion._('v4'); + +RoomSetsipEnabledApiVersion _$valueOfRoomSetsipEnabledApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomSetsipEnabledApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomSetsipEnabledApiVersionValues = + BuiltSet(const [ + _$roomSetsipEnabledApiVersionV4, +]); + +const RoomSetRecordingConsentApiVersion _$roomSetRecordingConsentApiVersionV4 = + RoomSetRecordingConsentApiVersion._('v4'); + +RoomSetRecordingConsentApiVersion _$valueOfRoomSetRecordingConsentApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomSetRecordingConsentApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomSetRecordingConsentApiVersionValues = + BuiltSet(const [ + _$roomSetRecordingConsentApiVersionV4, +]); + +const RoomSetMessageExpirationApiVersion _$roomSetMessageExpirationApiVersionV4 = + RoomSetMessageExpirationApiVersion._('v4'); + +RoomSetMessageExpirationApiVersion _$valueOfRoomSetMessageExpirationApiVersion(String name) { + switch (name) { + case 'v4': + return _$roomSetMessageExpirationApiVersionV4; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomSetMessageExpirationApiVersionValues = + BuiltSet(const [ + _$roomSetMessageExpirationApiVersionV4, +]); + +const SettingsSetsipSettingsApiVersion _$settingsSetsipSettingsApiVersionV1 = SettingsSetsipSettingsApiVersion._('v1'); + +SettingsSetsipSettingsApiVersion _$valueOfSettingsSetsipSettingsApiVersion(String name) { + switch (name) { + case 'v1': + return _$settingsSetsipSettingsApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$settingsSetsipSettingsApiVersionValues = + BuiltSet(const [ + _$settingsSetsipSettingsApiVersionV1, +]); + +const SettingsSetUserSettingApiVersion _$settingsSetUserSettingApiVersionV1 = SettingsSetUserSettingApiVersion._('v1'); + +SettingsSetUserSettingApiVersion _$valueOfSettingsSetUserSettingApiVersion(String name) { + switch (name) { + case 'v1': + return _$settingsSetUserSettingApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$settingsSetUserSettingApiVersionValues = + BuiltSet(const [ + _$settingsSetUserSettingApiVersionV1, +]); + +const SignalingGetSettingsApiVersion _$signalingGetSettingsApiVersionV3 = SignalingGetSettingsApiVersion._('v3'); + +SignalingGetSettingsApiVersion _$valueOfSignalingGetSettingsApiVersion(String name) { + switch (name) { + case 'v3': + return _$signalingGetSettingsApiVersionV3; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$signalingGetSettingsApiVersionValues = + BuiltSet(const [ + _$signalingGetSettingsApiVersionV3, +]); + +const SignalingGetWelcomeMessageApiVersion _$signalingGetWelcomeMessageApiVersionV3 = + SignalingGetWelcomeMessageApiVersion._('v3'); + +SignalingGetWelcomeMessageApiVersion _$valueOfSignalingGetWelcomeMessageApiVersion(String name) { + switch (name) { + case 'v3': + return _$signalingGetWelcomeMessageApiVersionV3; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$signalingGetWelcomeMessageApiVersionValues = + BuiltSet(const [ + _$signalingGetWelcomeMessageApiVersionV3, +]); + +const SignalingPullMessagesApiVersion _$signalingPullMessagesApiVersionV3 = SignalingPullMessagesApiVersion._('v3'); + +SignalingPullMessagesApiVersion _$valueOfSignalingPullMessagesApiVersion(String name) { + switch (name) { + case 'v3': + return _$signalingPullMessagesApiVersionV3; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$signalingPullMessagesApiVersionValues = + BuiltSet(const [ + _$signalingPullMessagesApiVersionV3, +]); + +const SignalingSendMessagesApiVersion _$signalingSendMessagesApiVersionV3 = SignalingSendMessagesApiVersion._('v3'); + +SignalingSendMessagesApiVersion _$valueOfSignalingSendMessagesApiVersion(String name) { + switch (name) { + case 'v3': + return _$signalingSendMessagesApiVersionV3; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$signalingSendMessagesApiVersionValues = + BuiltSet(const [ + _$signalingSendMessagesApiVersionV3, +]); + Serializer _$oCSMetaSerializer = _$OCSMetaSerializer(); Serializer _$chatMessageSerializer = _$ChatMessageSerializer(); Serializer _$roomSerializer = _$RoomSerializer(); diff --git a/packages/nextcloud/lib/src/api/updatenotification.openapi.dart b/packages/nextcloud/lib/src/api/updatenotification.openapi.dart index e8d7d38946a..649b52874af 100644 --- a/packages/nextcloud/lib/src/api/updatenotification.openapi.dart +++ b/packages/nextcloud/lib/src/api/updatenotification.openapi.dart @@ -154,24 +154,18 @@ class $ApiClient { } } -class ApiGetAppListApiVersion extends DynamiteEnum { +class ApiGetAppListApiVersion extends EnumClass { const ApiGetAppListApiVersion._(super.name); - static const ApiGetAppListApiVersion v1 = ApiGetAppListApiVersion._('v1'); + static const ApiGetAppListApiVersion v1 = _$apiGetAppListApiVersionV1; - static BuiltSet get values => - BuiltSet(const [ - ApiGetAppListApiVersion.v1, - ]); + // coverage:ignore-start + static BuiltSet get values => _$apiGetAppListApiVersionValues; + // coverage:ignore-end - static ApiGetAppListApiVersion valueOf(String name) { - switch (name) { - case 'v1': - return ApiGetAppListApiVersion.v1; - default: - throw ArgumentError(name); - } - } + static ApiGetAppListApiVersion valueOf(String name) => _$valueOfApiGetAppListApiVersion(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$ApiGetAppListApiVersionSerializer(); diff --git a/packages/nextcloud/lib/src/api/updatenotification.openapi.g.dart b/packages/nextcloud/lib/src/api/updatenotification.openapi.g.dart index eaf08b8b957..8acfdac45a4 100644 --- a/packages/nextcloud/lib/src/api/updatenotification.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/updatenotification.openapi.g.dart @@ -6,6 +6,22 @@ part of 'updatenotification.openapi.dart'; // BuiltValueGenerator // ************************************************************************** +const ApiGetAppListApiVersion _$apiGetAppListApiVersionV1 = ApiGetAppListApiVersion._('v1'); + +ApiGetAppListApiVersion _$valueOfApiGetAppListApiVersion(String name) { + switch (name) { + case 'v1': + return _$apiGetAppListApiVersionV1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$apiGetAppListApiVersionValues = + BuiltSet(const [ + _$apiGetAppListApiVersionV1, +]); + Serializer _$oCSMetaSerializer = _$OCSMetaSerializer(); Serializer _$appSerializer = _$AppSerializer(); Serializer _$apiGetAppListResponseApplicationJsonOcsDataSerializer = diff --git a/packages/nextcloud/lib/src/api/user_status.openapi.dart b/packages/nextcloud/lib/src/api/user_status.openapi.dart index 4411992eadd..18ad26a18ad 100644 --- a/packages/nextcloud/lib/src/api/user_status.openapi.dart +++ b/packages/nextcloud/lib/src/api/user_status.openapi.dart @@ -1141,28 +1141,21 @@ abstract class HeartbeatHeartbeatResponseApplicationJson _$heartbeatHeartbeatResponseApplicationJsonSerializer; } -class ClearAt_Type extends DynamiteEnum { +class ClearAt_Type extends EnumClass { const ClearAt_Type._(super.name); - static const ClearAt_Type period = ClearAt_Type._('period'); + static const ClearAt_Type period = _$clearAtTypePeriod; - static const ClearAt_Type endOf = ClearAt_Type._('end-of'); + @BuiltValueEnumConst(wireName: 'end-of') + static const ClearAt_Type endOf = _$clearAtTypeEndOf; - static BuiltSet get values => BuiltSet(const [ - ClearAt_Type.period, - ClearAt_Type.endOf, - ]); + // coverage:ignore-start + static BuiltSet get values => _$clearAtTypeValues; + // coverage:ignore-end - static ClearAt_Type valueOf(String name) { - switch (name) { - case 'period': - return ClearAt_Type.period; - case 'end-of': - return ClearAt_Type.endOf; - default: - throw ArgumentError(name); - } - } + static ClearAt_Type valueOf(String name) => _$valueOfClearAt_Type(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$ClearAt_TypeSerializer(); @@ -1204,28 +1197,20 @@ class _$ClearAt_TypeSerializer implements PrimitiveSerializer { _fromWire[serialized]!; } -class ClearAtTimeType extends DynamiteEnum { +class ClearAtTimeType extends EnumClass { const ClearAtTimeType._(super.name); - static const ClearAtTimeType day = ClearAtTimeType._('day'); + static const ClearAtTimeType day = _$clearAtTimeTypeDay; - static const ClearAtTimeType week = ClearAtTimeType._('week'); + static const ClearAtTimeType week = _$clearAtTimeTypeWeek; - static BuiltSet get values => BuiltSet(const [ - ClearAtTimeType.day, - ClearAtTimeType.week, - ]); + // coverage:ignore-start + static BuiltSet get values => _$clearAtTimeTypeValues; + // coverage:ignore-end - static ClearAtTimeType valueOf(String name) { - switch (name) { - case 'day': - return ClearAtTimeType.day; - case 'week': - return ClearAtTimeType.week; - default: - throw ArgumentError(name); - } - } + static ClearAtTimeType valueOf(String name) => _$valueOfClearAtTimeType(name); + + String get value => jsonSerializers.deserializeWith(serializer, this)! as String; @BuiltValueSerializer(custom: true) static Serializer get serializer => const _$ClearAtTimeTypeSerializer(); 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 b145d7b6e49..6f15f8026bc 100644 --- a/packages/nextcloud/lib/src/api/user_status.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/user_status.openapi.g.dart @@ -6,6 +6,44 @@ part of 'user_status.openapi.dart'; // BuiltValueGenerator // ************************************************************************** +const ClearAt_Type _$clearAtTypePeriod = ClearAt_Type._('period'); +const ClearAt_Type _$clearAtTypeEndOf = ClearAt_Type._('endOf'); + +ClearAt_Type _$valueOfClearAt_Type(String name) { + switch (name) { + case 'period': + return _$clearAtTypePeriod; + case 'endOf': + return _$clearAtTypeEndOf; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$clearAtTypeValues = BuiltSet(const [ + _$clearAtTypePeriod, + _$clearAtTypeEndOf, +]); + +const ClearAtTimeType _$clearAtTimeTypeDay = ClearAtTimeType._('day'); +const ClearAtTimeType _$clearAtTimeTypeWeek = ClearAtTimeType._('week'); + +ClearAtTimeType _$valueOfClearAtTimeType(String name) { + switch (name) { + case 'day': + return _$clearAtTimeTypeDay; + case 'week': + return _$clearAtTimeTypeWeek; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$clearAtTimeTypeValues = BuiltSet(const [ + _$clearAtTimeTypeDay, + _$clearAtTimeTypeWeek, +]); + Serializer _$oCSMetaSerializer = _$OCSMetaSerializer(); Serializer _$publicSerializer = _$PublicSerializer(); Serializer _$privateSerializer = _$PrivateSerializer();