diff --git a/external/nextcloud-server b/external/nextcloud-server index c88b02abff6..06b35808a89 160000 --- a/external/nextcloud-server +++ b/external/nextcloud-server @@ -1 +1 @@ -Subproject commit c88b02abff69ff25262b1760bc0beacca23c61ac +Subproject commit 06b35808a89bd844f8101527a1654f2d06cc6ae3 diff --git a/packages/dynamite/dynamite/lib/src/builder/imports.dart b/packages/dynamite/dynamite/lib/src/builder/imports.dart index 3ce1dff0935..c3a37d54049 100644 --- a/packages/dynamite/dynamite/lib/src/builder/imports.dart +++ b/packages/dynamite/dynamite/lib/src/builder/imports.dart @@ -16,8 +16,9 @@ List generateImports(final AssetId outputId) => [ Directive.import('package:built_value/serializer.dart'), Directive.import('package:built_value/standard_json_plugin.dart'), Directive.import('package:collection/collection.dart'), - Directive.import('package:dynamite_runtime/content_string.dart'), + Directive.import('package:dynamite_runtime/built_value.dart'), Directive.import('package:dynamite_runtime/http_client.dart'), + Directive.import('package:dynamite_runtime/models.dart'), Directive.import('package:dynamite_runtime/utils.dart'), Directive.import('package:meta/meta.dart'), Directive.import('package:universal_io/io.dart'), diff --git a/packages/dynamite/dynamite/lib/src/builder/resolve_object.dart b/packages/dynamite/dynamite/lib/src/builder/resolve_object.dart index 094b8ef094a..3467494bb94 100644 --- a/packages/dynamite/dynamite/lib/src/builder/resolve_object.dart +++ b/packages/dynamite/dynamite/lib/src/builder/resolve_object.dart @@ -29,7 +29,7 @@ TypeResultObject resolveObject( final result = resolveType( spec, state, - propertySchema.type!, + propertySchema.type!.name, propertySchema, ); defaults.add('..${toDartName(property.key)} = ${valueToEscapedValue(result, value)}'); diff --git a/packages/dynamite/dynamite/lib/src/builder/resolve_type.dart b/packages/dynamite/dynamite/lib/src/builder/resolve_type.dart index e96363ec03f..607f5ad6c20 100644 --- a/packages/dynamite/dynamite/lib/src/builder/resolve_type.dart +++ b/packages/dynamite/dynamite/lib/src/builder/resolve_type.dart @@ -60,35 +60,42 @@ TypeResult resolveType( ); } else { switch (schema.type) { - case 'boolean': + case openapi.SchemaType.boolean: result = TypeResultBase( 'bool', nullable: nullable, ); - case 'integer': + case openapi.SchemaType.integer: result = TypeResultBase( 'int', nullable: nullable, ); - case 'number': - result = TypeResultBase( - 'num', - nullable: nullable, - ); - case 'string': - switch (schema.format) { - case 'binary': - result = TypeResultBase( + + case openapi.SchemaType.number: + result = switch (schema.format) { + 'float' || 'double' => TypeResultBase( + 'double', + nullable: nullable, + ), + _ => TypeResultBase( + 'num', + nullable: nullable, + ), + }; + + case openapi.SchemaType.string: + result = switch (schema.format) { + 'binary' => TypeResultBase( 'Uint8List', nullable: nullable, - ); - } + ), + _ => TypeResultBase( + 'String', + nullable: nullable, + ), + }; - result = TypeResultBase( - 'String', - nullable: nullable, - ); - case 'array': + case openapi.SchemaType.array: if (schema.items != null) { final subResult = resolveType( spec, @@ -108,7 +115,7 @@ TypeResult resolveType( nullable: nullable, ); } - case 'object': + case openapi.SchemaType.object: if (schema.properties == null) { if (schema.additionalProperties == null) { result = TypeResultBase( diff --git a/packages/dynamite/dynamite/lib/src/builder/serializer.dart b/packages/dynamite/dynamite/lib/src/builder/serializer.dart index 97e8b49ea86..04674180e82 100644 --- a/packages/dynamite/dynamite/lib/src/builder/serializer.dart +++ b/packages/dynamite/dynamite/lib/src/builder/serializer.dart @@ -14,7 +14,7 @@ List buildSerializer(final State state) { const Code(').build();'), const Code(''), const Code( - 'final Serializers _jsonSerializers = (_serializers.toBuilder()..addPlugin(StandardJsonPlugin())..addPlugin(const ContentStringPlugin())).build();', + 'final Serializers _jsonSerializers = (_serializers.toBuilder()..add(DynamiteDoubleSerializer())..addPlugin(StandardJsonPlugin())..addPlugin(const ContentStringPlugin())).build();', ), const Code('// coverage:ignore-end'), ]; diff --git a/packages/dynamite/dynamite/lib/src/models/openapi.g.dart b/packages/dynamite/dynamite/lib/src/models/openapi.g.dart index 78b52bcc7db..7138f5f5945 100644 --- a/packages/dynamite/dynamite/lib/src/models/openapi.g.dart +++ b/packages/dynamite/dynamite/lib/src/models/openapi.g.dart @@ -21,6 +21,7 @@ Serializers _$serializers = (Serializers().toBuilder() ..add(RequestBody.serializer) ..add(Response.serializer) ..add(Schema.serializer) + ..add(SchemaType.serializer) ..add(SecurityScheme.serializer) ..add(Server.serializer) ..add(ServerVariable.serializer) diff --git a/packages/dynamite/dynamite/lib/src/models/openapi/schema.dart b/packages/dynamite/dynamite/lib/src/models/openapi/schema.dart index ee2f1ceef8f..ce6f4016f8f 100644 --- a/packages/dynamite/dynamite/lib/src/models/openapi/schema.dart +++ b/packages/dynamite/dynamite/lib/src/models/openapi/schema.dart @@ -3,6 +3,7 @@ import 'package:built_value/built_value.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/serializer.dart'; import 'package:dynamite/src/helpers/docs.dart'; +import 'package:dynamite/src/models/exceptions.dart'; import 'package:dynamite/src/models/openapi/discriminator.dart'; part 'schema.g.dart'; @@ -30,7 +31,7 @@ abstract class Schema implements Built { bool get deprecated; - String? get type; + SchemaType? get type; String? get format; @@ -62,7 +63,8 @@ abstract class Schema implements Built { bool get nullable; - bool get isContentString => type == 'string' && (contentMediaType?.isNotEmpty ?? false) && contentSchema != null; + bool get isContentString => + type == SchemaType.string && (contentMediaType?.isNotEmpty ?? false) && contentSchema != null; Iterable get formattedDescription => descriptionToDocs(description); @@ -71,5 +73,37 @@ abstract class Schema implements Built { b ..deprecated ??= false ..nullable ??= false; + + const allowedNumberFormats = [null, 'float', 'double']; + if (b.type == SchemaType.number && !allowedNumberFormats.contains(b.format)) { + throw OpenAPISpecError('Format "${b.format}" is not allowed for ${b.type}. Use one of $allowedNumberFormats.'); + } + const allowedIntegerFormats = [null, 'int32', 'int64']; + if (b.type == SchemaType.integer) { + if (!allowedIntegerFormats.contains(b.format)) { + throw OpenAPISpecError('Format "${b.format}" is not allowed for ${b.type}. Use one of $allowedIntegerFormats.'); + } else if (b.format != null) { + print( + 'All integers are represented as `int` meaning 64bit precision in the VM/wasm and 53bit precision on js.', + ); + } + } } } + +class SchemaType extends EnumClass { + const SchemaType._(super.name); + + static const SchemaType boolean = _$schemaTypeBoolean; + static const SchemaType integer = _$schemaTypeInteger; + static const SchemaType number = _$schemaTypeNumber; + static const SchemaType string = _$schemaTypeString; + static const SchemaType array = _$schemaTypeArray; + static const SchemaType object = _$schemaTypeObject; + + static BuiltSet get values => _$schemaTypeValues; + + static SchemaType valueOf(final String name) => _$schemaType(name); + + static Serializer get serializer => _$schemaTypeSerializer; +} diff --git a/packages/dynamite/dynamite/lib/src/models/openapi/schema.g.dart b/packages/dynamite/dynamite/lib/src/models/openapi/schema.g.dart index d3433f4e349..10e96e0c1d2 100644 --- a/packages/dynamite/dynamite/lib/src/models/openapi/schema.g.dart +++ b/packages/dynamite/dynamite/lib/src/models/openapi/schema.g.dart @@ -6,7 +6,43 @@ part of 'schema.dart'; // BuiltValueGenerator // ************************************************************************** +const SchemaType _$schemaTypeBoolean = SchemaType._('boolean'); +const SchemaType _$schemaTypeInteger = SchemaType._('integer'); +const SchemaType _$schemaTypeNumber = SchemaType._('number'); +const SchemaType _$schemaTypeString = SchemaType._('string'); +const SchemaType _$schemaTypeArray = SchemaType._('array'); +const SchemaType _$schemaTypeObject = SchemaType._('object'); + +SchemaType _$schemaType(String name) { + switch (name) { + case 'boolean': + return _$schemaTypeBoolean; + case 'integer': + return _$schemaTypeInteger; + case 'number': + return _$schemaTypeNumber; + case 'string': + return _$schemaTypeString; + case 'array': + return _$schemaTypeArray; + case 'object': + return _$schemaTypeObject; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$schemaTypeValues = BuiltSet(const [ + _$schemaTypeBoolean, + _$schemaTypeInteger, + _$schemaTypeNumber, + _$schemaTypeString, + _$schemaTypeArray, + _$schemaTypeObject, +]); + Serializer _$schemaSerializer = _$SchemaSerializer(); +Serializer _$schemaTypeSerializer = _$SchemaTypeSerializer(); class _$SchemaSerializer implements StructuredSerializer { @override @@ -59,7 +95,7 @@ class _$SchemaSerializer implements StructuredSerializer { if (value != null) { result ..add('type') - ..add(serializers.serialize(value, specifiedType: const FullType(String))); + ..add(serializers.serialize(value, specifiedType: const FullType(SchemaType))); } value = object.format; if (value != null) { @@ -170,7 +206,7 @@ class _$SchemaSerializer implements StructuredSerializer { result.deprecated = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; break; case 'type': - result.type = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + result.type = serializers.deserialize(value, specifiedType: const FullType(SchemaType)) as SchemaType?; break; case 'format': result.format = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; @@ -227,6 +263,21 @@ class _$SchemaSerializer implements StructuredSerializer { } } +class _$SchemaTypeSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [SchemaType]; + @override + final String wireName = 'SchemaType'; + + @override + Object serialize(Serializers serializers, SchemaType object, {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + SchemaType deserialize(Serializers serializers, Object serialized, {FullType specifiedType = FullType.unspecified}) => + SchemaType.valueOf(serialized as String); +} + class _$Schema extends Schema { @override final String? ref; @@ -241,7 +292,7 @@ class _$Schema extends Schema { @override final bool deprecated; @override - final String? type; + final SchemaType? type; @override final String? format; @override @@ -415,9 +466,9 @@ class SchemaBuilder implements Builder { bool? get deprecated => _$this._deprecated; set deprecated(bool? deprecated) => _$this._deprecated = deprecated; - String? _type; - String? get type => _$this._type; - set type(String? type) => _$this._type = type; + SchemaType? _type; + SchemaType? get type => _$this._type; + set type(SchemaType? type) => _$this._type = type; String? _format; String? get format => _$this._format; diff --git a/packages/dynamite/dynamite_end_to_end_test/lib/nested_ofs.openapi.dart b/packages/dynamite/dynamite_end_to_end_test/lib/nested_ofs.openapi.dart index dd2b6fdb67f..bdbfd579c1a 100644 --- a/packages/dynamite/dynamite_end_to_end_test/lib/nested_ofs.openapi.dart +++ b/packages/dynamite/dynamite_end_to_end_test/lib/nested_ofs.openapi.dart @@ -7,7 +7,7 @@ import 'package:built_value/built_value.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; -import 'package:dynamite_runtime/content_string.dart'; +import 'package:dynamite_runtime/built_value.dart'; import 'package:dynamite_runtime/http_client.dart'; part 'nested_ofs.openapi.g.dart'; @@ -521,6 +521,7 @@ final Serializers _serializers = (Serializers().toBuilder() .build(); final Serializers _jsonSerializers = (_serializers.toBuilder() + ..add(DynamiteDoubleSerializer()) ..addPlugin(StandardJsonPlugin()) ..addPlugin(const ContentStringPlugin())) .build(); diff --git a/packages/dynamite/dynamite_runtime/lib/built_value.dart b/packages/dynamite/dynamite_runtime/lib/built_value.dart new file mode 100644 index 00000000000..2099eba8670 --- /dev/null +++ b/packages/dynamite/dynamite_runtime/lib/built_value.dart @@ -0,0 +1,2 @@ +export 'src/built_value/content_string_serializer.dart'; +export 'src/built_value/double_serializer.dart'; diff --git a/packages/dynamite/dynamite_runtime/lib/content_string.dart b/packages/dynamite/dynamite_runtime/lib/content_string.dart deleted file mode 100644 index 2a35d3d8125..00000000000 --- a/packages/dynamite/dynamite_runtime/lib/content_string.dart +++ /dev/null @@ -1 +0,0 @@ -export 'src/content_string.dart'; diff --git a/packages/dynamite/dynamite_runtime/lib/models.dart b/packages/dynamite/dynamite_runtime/lib/models.dart new file mode 100644 index 00000000000..7513560dec5 --- /dev/null +++ b/packages/dynamite/dynamite_runtime/lib/models.dart @@ -0,0 +1 @@ +export 'src/models/content_string.dart'; diff --git a/packages/dynamite/dynamite_runtime/lib/src/content_string.dart b/packages/dynamite/dynamite_runtime/lib/src/built_value/content_string_serializer.dart similarity index 69% rename from packages/dynamite/dynamite_runtime/lib/src/content_string.dart rename to packages/dynamite/dynamite_runtime/lib/src/built_value/content_string_serializer.dart index 9f75d638731..801d19b94c4 100644 --- a/packages/dynamite/dynamite_runtime/lib/src/content_string.dart +++ b/packages/dynamite/dynamite_runtime/lib/src/built_value/content_string_serializer.dart @@ -1,22 +1,7 @@ import 'dart:convert'; -import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; - -part 'content_string.g.dart'; - -/// Json data encoded in a `String` as defined by [json-schema](https://json-schema.org/understanding-json-schema/reference/non_json_data.html#contentschema). -abstract class ContentString implements Built, ContentStringBuilder> { - /// Creates a new content `String`. - factory ContentString([final void Function(ContentStringBuilder)? b]) = _$ContentString; - const ContentString._(); - - /// The decoded value of the content `String`. - T get content; - - /// The serializer for a content `String`. - static Serializer> get serializer => _$contentStringSerializer; -} +import 'package:dynamite_runtime/src/models/content_string.dart'; /// Serialization plugin for decoding [ContentString]s. /// diff --git a/packages/dynamite/dynamite_runtime/lib/src/built_value/double_serializer.dart b/packages/dynamite/dynamite_runtime/lib/src/built_value/double_serializer.dart new file mode 100644 index 00000000000..19e55ecd385 --- /dev/null +++ b/packages/dynamite/dynamite_runtime/lib/src/built_value/double_serializer.dart @@ -0,0 +1,48 @@ +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/serializer.dart'; + +/// A built_value serializer for `double` values that does not accept integers. +class DynamiteDoubleSerializer implements PrimitiveSerializer { + // Constant names match those in [double]. + static const String _nan = 'NaN'; + static const String _infinity = 'INF'; + static const String _negativeInfinity = '-INF'; + + @override + final Iterable types = BuiltList([double]); + + @override + final String wireName = 'double'; + + @override + Object serialize( + final Serializers serializers, + final double aDouble, { + final FullType specifiedType = FullType.unspecified, + }) { + if (aDouble.isNaN) { + return _nan; + } else if (aDouble.isInfinite) { + return aDouble.isNegative ? _negativeInfinity : _infinity; + } else { + return aDouble; + } + } + + @override + double deserialize( + final Serializers serializers, + final Object serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + if (serialized == _nan) { + return double.nan; + } else if (serialized == _negativeInfinity) { + return double.negativeInfinity; + } else if (serialized == _infinity) { + return double.infinity; + } else { + return serialized as double; + } + } +} diff --git a/packages/dynamite/dynamite_runtime/lib/src/models/content_string.dart b/packages/dynamite/dynamite_runtime/lib/src/models/content_string.dart new file mode 100644 index 00000000000..1d1e8db2635 --- /dev/null +++ b/packages/dynamite/dynamite_runtime/lib/src/models/content_string.dart @@ -0,0 +1,17 @@ +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'content_string.g.dart'; + +/// Json data encoded in a `String` as defined by [json-schema](https://json-schema.org/understanding-json-schema/reference/non_json_data.html#contentschema). +abstract class ContentString implements Built, ContentStringBuilder> { + /// Creates a new content `String`. + factory ContentString([final void Function(ContentStringBuilder)? b]) = _$ContentString; + const ContentString._(); + + /// The decoded value of the content `String`. + T get content; + + /// The serializer for a content `String`. + static Serializer> get serializer => _$contentStringSerializer; +} diff --git a/packages/dynamite/dynamite_runtime/lib/src/content_string.g.dart b/packages/dynamite/dynamite_runtime/lib/src/models/content_string.g.dart similarity index 100% rename from packages/dynamite/dynamite_runtime/lib/src/content_string.g.dart rename to packages/dynamite/dynamite_runtime/lib/src/models/content_string.g.dart diff --git a/packages/dynamite/dynamite_runtime/pubspec.yaml b/packages/dynamite/dynamite_runtime/pubspec.yaml index 4c0f20813cc..cd45cb9fa54 100644 --- a/packages/dynamite/dynamite_runtime/pubspec.yaml +++ b/packages/dynamite/dynamite_runtime/pubspec.yaml @@ -6,6 +6,7 @@ environment: sdk: '>=3.1.0 <4.0.0' dependencies: + built_collection: ^5.0.0 built_value: ^8.0.1 cookie_jar: ^4.0.0 meta: ^1.0.0 @@ -13,7 +14,6 @@ dependencies: dev_dependencies: build_runner: ^2.4.6 - built_collection: ^5.1.1 built_value_generator: ^8.6.3 neon_lints: git: diff --git a/packages/dynamite/dynamite_runtime/test/content_string_test.dart b/packages/dynamite/dynamite_runtime/test/content_string_test.dart index 2e87c378344..81cd4378e02 100644 --- a/packages/dynamite/dynamite_runtime/test/content_string_test.dart +++ b/packages/dynamite/dynamite_runtime/test/content_string_test.dart @@ -5,7 +5,8 @@ import 'dart:convert'; import 'package:built_collection/built_collection.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; -import 'package:dynamite_runtime/content_string.dart'; +import 'package:dynamite_runtime/built_value.dart'; +import 'package:dynamite_runtime/models.dart'; import 'package:test/test.dart'; part 'content_string_test.g.dart'; diff --git a/packages/dynamite/dynamite_runtime/test/double_serializer_test.dart b/packages/dynamite/dynamite_runtime/test/double_serializer_test.dart new file mode 100644 index 00000000000..9ea51855ddd --- /dev/null +++ b/packages/dynamite/dynamite_runtime/test/double_serializer_test.dart @@ -0,0 +1,95 @@ +// ignore_for_file: avoid_redundant_argument_values + +import 'dart:convert'; + +import 'package:built_value/serializer.dart'; +import 'package:dynamite_runtime/built_value.dart'; +import 'package:test/test.dart'; + +void main() { + final serializers = (Serializers().toBuilder()..add(DynamiteDoubleSerializer())).build(); + + group('double with known specifiedType', () { + const data = 3.141592653589793; + const serialized = data; + const specifiedType = FullType(double); + + test('can be serialized', () { + expect(serializers.serialize(data, specifiedType: specifiedType), serialized); + }); + + test('can be deserialized', () { + expect(serializers.deserialize(serialized, specifiedType: specifiedType), data); + }); + }); + + group('double with unknown specifiedType', () { + const data = 3.141592653589793; + final serialized = json.decode(json.encode(['double', data])) as Object; + const specifiedType = FullType.unspecified; + + test('can be serialized', () { + expect(serializers.serialize(data, specifiedType: specifiedType), serialized); + }); + + test('can be deserialized', () { + expect(serializers.deserialize(serialized, specifiedType: specifiedType), data); + }); + }); + + group('integer with known specifiedType', () { + const data = 3; + const serialized = data; + const specifiedType = FullType(double); + + test('can not be deserialized', () { + expect( + () => serializers.deserialize(serialized, specifiedType: specifiedType), + throwsA(isA()), + ); + }); + }); + + group('double with NaN value', () { + const data = double.nan; + const serialized = 'NaN'; + const specifiedType = FullType(double); + + test('can be serialized', () { + expect(serializers.serialize(data, specifiedType: specifiedType), serialized); + }); + + test('can be deserialized', () { + // Compare using toString as NaN != NaN. + expect(serializers.deserialize(serialized, specifiedType: specifiedType).toString(), data.toString()); + }); + }); + + group('double with -INF value', () { + const data = double.negativeInfinity; + const serialized = '-INF'; + const specifiedType = FullType(double); + + test('can be serialized', () { + expect(serializers.serialize(data, specifiedType: specifiedType), serialized); + }); + + test('can be deserialized', () { + expect(serializers.deserialize(serialized, specifiedType: specifiedType), data); + }); + }); + + group('double with INF value', () { + const data = double.infinity; + const serialized = 'INF'; + const specifiedType = FullType(double); + + test('can be serialized', () { + expect(serializers.serialize(data, specifiedType: specifiedType), serialized); + }); + + test('can be deserialized', () { + expect(serializers.deserialize(serialized, specifiedType: specifiedType), data); + }); + }); +} diff --git a/packages/neon/neon/lib/src/pages/account_settings.dart b/packages/neon/neon/lib/src/pages/account_settings.dart index 876ace2b3bb..4db34a89351 100644 --- a/packages/neon/neon/lib/src/pages/account_settings.dart +++ b/packages/neon/neon/lib/src/pages/account_settings.dart @@ -79,53 +79,59 @@ class AccountSettingsPage extends StatelessWidget { final body = ResultBuilder.behaviorSubject( stream: userDetailsBloc.userDetails, - builder: (final context, final userDetails) => SettingsList( - categories: [ - SettingsCategory( - title: Text(NeonLocalizations.of(context).accountOptionsCategoryStorageInfo), - tiles: [ - CustomSettingsTile( - title: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - if (userDetails.hasData) ...[ - LinearProgressIndicator( - value: (userDetails.requireData.quota.relative ?? 0) / 100, - backgroundColor: Theme.of(context).colorScheme.primary.withOpacity(0.3), - ), - const SizedBox( - height: 10, - ), - Text( - NeonLocalizations.of(context).accountOptionsQuotaUsedOf( - filesize(userDetails.requireData.quota.used ?? 0, 1), - filesize(userDetails.requireData.quota.total ?? 0, 1), - (userDetails.requireData.quota.relative ?? 0).toString(), + builder: (final context, final userDetails) { + final quotaRelative = userDetails.data?.quota.relative?.$int ?? userDetails.data?.quota.relative?.$double ?? 0; + final quotaTotal = userDetails.data?.quota.total?.$int ?? userDetails.data?.quota.total?.$double ?? 0; + final quotaUsed = userDetails.data?.quota.used?.$int ?? userDetails.data?.quota.used?.$double ?? 0; + + return SettingsList( + categories: [ + SettingsCategory( + title: Text(NeonLocalizations.of(context).accountOptionsCategoryStorageInfo), + tiles: [ + CustomSettingsTile( + title: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + if (userDetails.hasData) ...[ + LinearProgressIndicator( + value: quotaRelative / 100, + backgroundColor: Theme.of(context).colorScheme.primary.withOpacity(0.3), + ), + const SizedBox( + height: 10, ), + Text( + NeonLocalizations.of(context).accountOptionsQuotaUsedOf( + filesize(quotaUsed, 1), + filesize(quotaTotal, 1), + quotaRelative.toString(), + ), + ), + ], + NeonError( + userDetails.error, + onRetry: userDetailsBloc.refresh, + ), + NeonLinearProgressIndicator( + visible: userDetails.isLoading, ), ], - NeonError( - userDetails.error, - onRetry: userDetailsBloc.refresh, - ), - NeonLinearProgressIndicator( - visible: userDetails.isLoading, - ), - ], + ), ), - ), - ], - ), - SettingsCategory( - title: Text(NeonLocalizations.of(context).optionsCategoryGeneral), - tiles: [ - SelectSettingsTile( - option: options.initialApp, - ), - ], - ), - ], - ), + ], + ), + SettingsCategory( + title: Text(NeonLocalizations.of(context).optionsCategoryGeneral), + tiles: [ + SelectSettingsTile( + option: options.initialApp, + ), + ], + ), + ], + ); + }, ); return Scaffold( diff --git a/packages/nextcloud/lib/nextcloud.dart b/packages/nextcloud/lib/nextcloud.dart index 7f9fc397341..b43863e9f32 100644 --- a/packages/nextcloud/lib/nextcloud.dart +++ b/packages/nextcloud/lib/nextcloud.dart @@ -1,6 +1,6 @@ -export 'package:dynamite_runtime/content_string.dart'; export 'package:dynamite_runtime/http_client.dart' show BytesStreamExtension, CookieJar, DynamiteApiException, DynamiteRawResponse, DynamiteResponse; +export 'package:dynamite_runtime/models.dart'; export 'ids.dart'; export 'src/client.dart'; diff --git a/packages/nextcloud/lib/src/api/comments.openapi.dart b/packages/nextcloud/lib/src/api/comments.openapi.dart index e1eafe4a45a..14a351032aa 100644 --- a/packages/nextcloud/lib/src/api/comments.openapi.dart +++ b/packages/nextcloud/lib/src/api/comments.openapi.dart @@ -6,7 +6,7 @@ import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; -import 'package:dynamite_runtime/content_string.dart'; +import 'package:dynamite_runtime/built_value.dart'; import 'package:dynamite_runtime/http_client.dart'; part 'comments.openapi.g.dart'; @@ -88,6 +88,7 @@ final Serializers _serializers = (Serializers().toBuilder() .build(); final Serializers _jsonSerializers = (_serializers.toBuilder() + ..add(DynamiteDoubleSerializer()) ..addPlugin(StandardJsonPlugin()) ..addPlugin(const ContentStringPlugin())) .build(); diff --git a/packages/nextcloud/lib/src/api/core.openapi.dart b/packages/nextcloud/lib/src/api/core.openapi.dart index 30fed10806f..77ed17961fd 100644 --- a/packages/nextcloud/lib/src/api/core.openapi.dart +++ b/packages/nextcloud/lib/src/api/core.openapi.dart @@ -11,8 +11,9 @@ import 'package:built_value/json_object.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:collection/collection.dart'; -import 'package:dynamite_runtime/content_string.dart'; +import 'package:dynamite_runtime/built_value.dart'; import 'package:dynamite_runtime/http_client.dart'; +import 'package:dynamite_runtime/models.dart'; import 'package:meta/meta.dart'; import 'package:universal_io/io.dart'; @@ -10406,6 +10407,7 @@ final Serializers _serializers = (Serializers().toBuilder() .build(); final Serializers _jsonSerializers = (_serializers.toBuilder() + ..add(DynamiteDoubleSerializer()) ..addPlugin(StandardJsonPlugin()) ..addPlugin(const ContentStringPlugin())) .build(); diff --git a/packages/nextcloud/lib/src/api/dashboard.openapi.dart b/packages/nextcloud/lib/src/api/dashboard.openapi.dart index 3a2118fa60b..f0abf0302a2 100644 --- a/packages/nextcloud/lib/src/api/dashboard.openapi.dart +++ b/packages/nextcloud/lib/src/api/dashboard.openapi.dart @@ -9,8 +9,9 @@ import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:collection/collection.dart'; -import 'package:dynamite_runtime/content_string.dart'; +import 'package:dynamite_runtime/built_value.dart'; import 'package:dynamite_runtime/http_client.dart'; +import 'package:dynamite_runtime/models.dart'; import 'package:meta/meta.dart'; import 'package:universal_io/io.dart'; @@ -758,6 +759,7 @@ final Serializers _serializers = (Serializers().toBuilder() .build(); final Serializers _jsonSerializers = (_serializers.toBuilder() + ..add(DynamiteDoubleSerializer()) ..addPlugin(StandardJsonPlugin()) ..addPlugin(const ContentStringPlugin())) .build(); diff --git a/packages/nextcloud/lib/src/api/dav.openapi.dart b/packages/nextcloud/lib/src/api/dav.openapi.dart index 73657f50590..3190a3d1716 100644 --- a/packages/nextcloud/lib/src/api/dav.openapi.dart +++ b/packages/nextcloud/lib/src/api/dav.openapi.dart @@ -8,7 +8,7 @@ import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:collection/collection.dart'; -import 'package:dynamite_runtime/content_string.dart'; +import 'package:dynamite_runtime/built_value.dart'; import 'package:dynamite_runtime/http_client.dart'; import 'package:meta/meta.dart'; import 'package:universal_io/io.dart'; @@ -334,6 +334,7 @@ final Serializers _serializers = (Serializers().toBuilder() .build(); final Serializers _jsonSerializers = (_serializers.toBuilder() + ..add(DynamiteDoubleSerializer()) ..addPlugin(StandardJsonPlugin()) ..addPlugin(const ContentStringPlugin())) .build(); diff --git a/packages/nextcloud/lib/src/api/files.openapi.dart b/packages/nextcloud/lib/src/api/files.openapi.dart index 697919e0fdd..3c9c38014e7 100644 --- a/packages/nextcloud/lib/src/api/files.openapi.dart +++ b/packages/nextcloud/lib/src/api/files.openapi.dart @@ -10,7 +10,7 @@ import 'package:built_value/json_object.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:collection/collection.dart'; -import 'package:dynamite_runtime/content_string.dart'; +import 'package:dynamite_runtime/built_value.dart'; import 'package:dynamite_runtime/http_client.dart'; import 'package:dynamite_runtime/utils.dart'; import 'package:meta/meta.dart'; @@ -2043,7 +2043,7 @@ abstract interface class TemplateFileCreatorInterface { String get $extension; String? get iconClass; BuiltList get mimetypes; - num? get ratio; + double? get ratio; String get actionLabel; } @@ -2823,6 +2823,7 @@ final Serializers _serializers = (Serializers().toBuilder() .build(); final Serializers _jsonSerializers = (_serializers.toBuilder() + ..add(DynamiteDoubleSerializer()) ..addPlugin(StandardJsonPlugin()) ..addPlugin(const ContentStringPlugin())) .build(); diff --git a/packages/nextcloud/lib/src/api/files.openapi.g.dart b/packages/nextcloud/lib/src/api/files.openapi.g.dart index 0835d9a52fb..94af6d73005 100644 --- a/packages/nextcloud/lib/src/api/files.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/files.openapi.g.dart @@ -1277,7 +1277,7 @@ class _$TemplateFileCreatorSerializer implements StructuredSerializer); break; case 'ratio': - result.ratio = serializers.deserialize(value, specifiedType: const FullType(num)) as num?; + result.ratio = serializers.deserialize(value, specifiedType: const FullType(double)) as double?; break; case 'actionLabel': result.actionLabel = serializers.deserialize(value, specifiedType: const FullType(String))! as String; @@ -5021,8 +5021,8 @@ abstract mixin class TemplateFileCreatorInterfaceBuilder { ListBuilder get mimetypes; set mimetypes(ListBuilder? mimetypes); - num? get ratio; - set ratio(num? ratio); + double? get ratio; + set ratio(double? ratio); String? get actionLabel; set actionLabel(String? actionLabel); @@ -5040,7 +5040,7 @@ class _$TemplateFileCreator extends TemplateFileCreator { @override final BuiltList mimetypes; @override - final num? ratio; + final double? ratio; @override final String actionLabel; @@ -5135,9 +5135,9 @@ class TemplateFileCreatorBuilder ListBuilder get mimetypes => _$this._mimetypes ??= ListBuilder(); set mimetypes(covariant ListBuilder? mimetypes) => _$this._mimetypes = mimetypes; - num? _ratio; - num? get ratio => _$this._ratio; - set ratio(covariant num? ratio) => _$this._ratio = ratio; + double? _ratio; + double? get ratio => _$this._ratio; + set ratio(covariant double? ratio) => _$this._ratio = ratio; String? _actionLabel; String? get actionLabel => _$this._actionLabel; diff --git a/packages/nextcloud/lib/src/api/files_external.openapi.dart b/packages/nextcloud/lib/src/api/files_external.openapi.dart index 4f2101ee24a..023c4acd455 100644 --- a/packages/nextcloud/lib/src/api/files_external.openapi.dart +++ b/packages/nextcloud/lib/src/api/files_external.openapi.dart @@ -10,7 +10,7 @@ import 'package:built_value/json_object.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:collection/collection.dart'; -import 'package:dynamite_runtime/content_string.dart'; +import 'package:dynamite_runtime/built_value.dart'; import 'package:dynamite_runtime/http_client.dart'; import 'package:meta/meta.dart'; import 'package:universal_io/io.dart'; @@ -360,6 +360,7 @@ final Serializers _serializers = (Serializers().toBuilder() .build(); final Serializers _jsonSerializers = (_serializers.toBuilder() + ..add(DynamiteDoubleSerializer()) ..addPlugin(StandardJsonPlugin()) ..addPlugin(const ContentStringPlugin())) .build(); diff --git a/packages/nextcloud/lib/src/api/files_reminders.openapi.dart b/packages/nextcloud/lib/src/api/files_reminders.openapi.dart index d5ed50535f4..a961c90fe84 100644 --- a/packages/nextcloud/lib/src/api/files_reminders.openapi.dart +++ b/packages/nextcloud/lib/src/api/files_reminders.openapi.dart @@ -9,7 +9,7 @@ import 'package:built_value/json_object.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:collection/collection.dart'; -import 'package:dynamite_runtime/content_string.dart'; +import 'package:dynamite_runtime/built_value.dart'; import 'package:dynamite_runtime/http_client.dart'; import 'package:dynamite_runtime/utils.dart'; import 'package:meta/meta.dart'; @@ -609,6 +609,7 @@ final Serializers _serializers = (Serializers().toBuilder() .build(); final Serializers _jsonSerializers = (_serializers.toBuilder() + ..add(DynamiteDoubleSerializer()) ..addPlugin(StandardJsonPlugin()) ..addPlugin(const ContentStringPlugin())) .build(); diff --git a/packages/nextcloud/lib/src/api/files_sharing.openapi.dart b/packages/nextcloud/lib/src/api/files_sharing.openapi.dart index 6047c882071..50be245bed6 100644 --- a/packages/nextcloud/lib/src/api/files_sharing.openapi.dart +++ b/packages/nextcloud/lib/src/api/files_sharing.openapi.dart @@ -10,8 +10,9 @@ import 'package:built_value/json_object.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:collection/collection.dart'; -import 'package:dynamite_runtime/content_string.dart'; +import 'package:dynamite_runtime/built_value.dart'; import 'package:dynamite_runtime/http_client.dart'; +import 'package:dynamite_runtime/models.dart'; import 'package:meta/meta.dart'; import 'package:universal_io/io.dart'; @@ -2895,7 +2896,7 @@ abstract class RemoteUnshareResponseApplicationJson @BuiltValue(instantiable: false) abstract interface class ShareInfo_SizeInterface { int? get $int; - num? get $num; + double? get $double; } abstract class ShareInfo_Size implements ShareInfo_SizeInterface, Built { @@ -2946,9 +2947,9 @@ class _$ShareInfo_SizeSerializer implements PrimitiveSerializer result._$int = _jsonSerializers.deserialize(data, specifiedType: const FullType(int))! as int; } catch (_) {} try { - result._$num = _jsonSerializers.deserialize(data, specifiedType: const FullType(num))! as num; + result._$double = _jsonSerializers.deserialize(data, specifiedType: const FullType(double))! as double; } catch (_) {} - assert([result._$int, result._$num].where((final x) => x != null).isNotEmpty, 'Need oneOf for ${result._data}'); + assert([result._$int, result._$double].where((final x) => x != null).isNotEmpty, 'Need oneOf for ${result._data}'); return result.build(); } } @@ -2987,7 +2988,7 @@ abstract class ShareInfo implements ShareInfoInterface, Built }) { final result = Share_ItemSizeBuilder()..data = JsonObject(data); try { - result._$num = _jsonSerializers.deserialize(data, specifiedType: const FullType(num))! as num; + result._$double = _jsonSerializers.deserialize(data, specifiedType: const FullType(double))! as double; } catch (_) {} try { result._$int = _jsonSerializers.deserialize(data, specifiedType: const FullType(int))! as int; } catch (_) {} - assert([result._$num, result._$int].where((final x) => x != null).isNotEmpty, 'Need oneOf for ${result._data}'); + assert([result._$double, result._$int].where((final x) => x != null).isNotEmpty, 'Need oneOf for ${result._data}'); return result.build(); } } @@ -5376,6 +5377,7 @@ final Serializers _serializers = (Serializers().toBuilder() .build(); final Serializers _jsonSerializers = (_serializers.toBuilder() + ..add(DynamiteDoubleSerializer()) ..addPlugin(StandardJsonPlugin()) ..addPlugin(const ContentStringPlugin())) .build(); 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 68d7b53d02b..a5c7c830e08 100644 --- a/packages/nextcloud/lib/src/api/files_sharing.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/files_sharing.openapi.g.dart @@ -7359,8 +7359,8 @@ abstract mixin class ShareInfo_SizeInterfaceBuilder { int? get $int; set $int(int? $int); - num? get $num; - set $num(num? $num); + double? get $double; + set $double(double? $double); } class _$ShareInfo_Size extends ShareInfo_Size { @@ -7369,12 +7369,12 @@ class _$ShareInfo_Size extends ShareInfo_Size { @override final int? $int; @override - final num? $num; + final double? $double; factory _$ShareInfo_Size([void Function(ShareInfo_SizeBuilder)? updates]) => (ShareInfo_SizeBuilder()..update(updates))._build(); - _$ShareInfo_Size._({required this.data, this.$int, this.$num}) : super._() { + _$ShareInfo_Size._({required this.data, this.$int, this.$double}) : super._() { BuiltValueNullFieldError.checkNotNull(data, r'ShareInfo_Size', 'data'); } @@ -7387,7 +7387,7 @@ class _$ShareInfo_Size extends ShareInfo_Size { @override bool operator ==(Object other) { if (identical(other, this)) return true; - return other is ShareInfo_Size && data == other.data && $int == other.$int && $num == other.$num; + return other is ShareInfo_Size && data == other.data && $int == other.$int && $double == other.$double; } @override @@ -7395,7 +7395,7 @@ class _$ShareInfo_Size extends ShareInfo_Size { var _$hash = 0; _$hash = $jc(_$hash, data.hashCode); _$hash = $jc(_$hash, $int.hashCode); - _$hash = $jc(_$hash, $num.hashCode); + _$hash = $jc(_$hash, $double.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -7405,7 +7405,7 @@ class _$ShareInfo_Size extends ShareInfo_Size { return (newBuiltValueToStringHelper(r'ShareInfo_Size') ..add('data', data) ..add('\$int', $int) - ..add('\$num', $num)) + ..add('\$double', $double)) .toString(); } } @@ -7421,9 +7421,9 @@ class ShareInfo_SizeBuilder implements Builder _$this._$int; set $int(covariant int? $int) => _$this._$int = $int; - num? _$num; - num? get $num => _$this._$num; - set $num(covariant num? $num) => _$this._$num = $num; + double? _$double; + double? get $double => _$this._$double; + set $double(covariant double? $double) => _$this._$double = $double; ShareInfo_SizeBuilder(); @@ -7432,7 +7432,7 @@ class ShareInfo_SizeBuilder implements Builder, ShareInf abstract mixin class Share_ItemSizeInterfaceBuilder { void replace(Share_ItemSizeInterface other); void update(void Function(Share_ItemSizeInterfaceBuilder) updates); - num? get $num; - set $num(num? $num); + double? get $double; + set $double(double? $double); int? get $int; set $int(int? $int); @@ -7723,14 +7723,14 @@ class _$Share_ItemSize extends Share_ItemSize { @override final JsonObject data; @override - final num? $num; + final double? $double; @override final int? $int; factory _$Share_ItemSize([void Function(Share_ItemSizeBuilder)? updates]) => (Share_ItemSizeBuilder()..update(updates))._build(); - _$Share_ItemSize._({required this.data, this.$num, this.$int}) : super._() { + _$Share_ItemSize._({required this.data, this.$double, this.$int}) : super._() { BuiltValueNullFieldError.checkNotNull(data, r'Share_ItemSize', 'data'); } @@ -7743,14 +7743,14 @@ class _$Share_ItemSize extends Share_ItemSize { @override bool operator ==(Object other) { if (identical(other, this)) return true; - return other is Share_ItemSize && data == other.data && $num == other.$num && $int == other.$int; + return other is Share_ItemSize && data == other.data && $double == other.$double && $int == other.$int; } @override int get hashCode { var _$hash = 0; _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, $num.hashCode); + _$hash = $jc(_$hash, $double.hashCode); _$hash = $jc(_$hash, $int.hashCode); _$hash = $jf(_$hash); return _$hash; @@ -7760,7 +7760,7 @@ class _$Share_ItemSize extends Share_ItemSize { String toString() { return (newBuiltValueToStringHelper(r'Share_ItemSize') ..add('data', data) - ..add('\$num', $num) + ..add('\$double', $double) ..add('\$int', $int)) .toString(); } @@ -7773,9 +7773,9 @@ class Share_ItemSizeBuilder implements Builder _$this._data; set data(covariant JsonObject? data) => _$this._data = data; - num? _$num; - num? get $num => _$this._$num; - set $num(covariant num? $num) => _$this._$num = $num; + double? _$double; + double? get $double => _$this._$double; + set $double(covariant double? $double) => _$this._$double = $double; int? _$int; int? get $int => _$this._$int; @@ -7787,7 +7787,7 @@ class Share_ItemSizeBuilder implements Builder> getDisabledUsersDetails({ + final int? limit, + final int offset = 0, + final bool oCSAPIRequest = true, + }) async { + final rawResponse = getDisabledUsersDetailsRaw( + limit: limit, + offset: offset, + oCSAPIRequest: oCSAPIRequest, + ); + + return rawResponse.future; + } + + /// Get the list of disabled users and their details. + /// + /// This method and the response it returns is experimental. The API might change without a major version bump. + /// + /// Returns a [Future] containing a [DynamiteRawResponse] with the raw [HttpClientResponse] and serialization helpers. + /// Throws a [DynamiteApiException] if the API call does not return an expected status code. + /// + /// Parameters: + /// * [limit] Limit the amount of users returned. + /// * [offset] Offset. Defaults to `0`. + /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. + /// + /// Status codes: + /// * 200: Disabled users details returned + /// + /// See: + /// * [getDisabledUsersDetails] for an operation that returns a [DynamiteResponse] with a stable API. + @experimental + DynamiteRawResponse getDisabledUsersDetailsRaw({ + final int? limit, + final int offset = 0, + final bool oCSAPIRequest = true, + }) { + final queryParameters = {}; + final headers = { + 'Accept': 'application/json', + }; + Uint8List? body; + +// coverage:ignore-start + final authentication = _rootClient.authentications.firstWhereOrNull( + (final auth) => switch (auth) { + DynamiteHttpBearerAuthentication() || DynamiteHttpBasicAuthentication() => true, + _ => false, + }, + ); + + if (authentication != null) { + headers.addAll( + authentication.headers, + ); + } else { + throw Exception('Missing authentication for bearer_auth or basic_auth'); + } + +// coverage:ignore-end + if (limit != null) { + queryParameters['limit'] = limit.toString(); + } + if (offset != 0) { + queryParameters['offset'] = offset.toString(); + } + headers['OCS-APIRequest'] = oCSAPIRequest.toString(); + const path = '/ocs/v2.php/cloud/users/disabled'; + final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null); + + return DynamiteRawResponse( + response: _rootClient.executeRequest( + 'get', + uri, + headers, + body, + const {200}, + ), + bodyType: const FullType(UsersGetDisabledUsersDetailsResponseApplicationJson), + headersType: null, + serializers: _jsonSerializers, + ); + } + /// Search users by their phone numbers. /// /// Returns a [Future] containing a [DynamiteResponse] with the status code, deserialized body and headers. @@ -5579,9 +5679,71 @@ abstract class UserDetails_BackendCapabilities static Serializer get serializer => _$userDetailsBackendCapabilitiesSerializer; } +@BuiltValue(instantiable: false) +abstract interface class UserDetailsQuota_FreeInterface { + double? get $double; + int? get $int; +} + +abstract class UserDetailsQuota_Free + implements UserDetailsQuota_FreeInterface, Built { + factory UserDetailsQuota_Free([final void Function(UserDetailsQuota_FreeBuilder)? b]) = _$UserDetailsQuota_Free; + + // coverage:ignore-start + const UserDetailsQuota_Free._(); + // coverage:ignore-end + + // coverage:ignore-start + factory UserDetailsQuota_Free.fromJson(final Map json) => + _jsonSerializers.deserializeWith(serializer, json)!; + // coverage:ignore-end + + // coverage:ignore-start + Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; + // coverage:ignore-end + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$UserDetailsQuota_FreeSerializer(); + + JsonObject get data; +} + +class _$UserDetailsQuota_FreeSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [UserDetailsQuota_Free, _$UserDetailsQuota_Free]; + + @override + final String wireName = 'UserDetailsQuota_Free'; + + @override + Object serialize( + final Serializers serializers, + final UserDetailsQuota_Free object, { + final FullType specifiedType = FullType.unspecified, + }) => + object.data.value; + + @override + UserDetailsQuota_Free deserialize( + final Serializers serializers, + final Object data, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = UserDetailsQuota_FreeBuilder()..data = JsonObject(data); + try { + result._$double = _jsonSerializers.deserialize(data, specifiedType: const FullType(double))! as double; + } catch (_) {} + try { + result._$int = _jsonSerializers.deserialize(data, specifiedType: const FullType(int))! as int; + } catch (_) {} + assert([result._$double, result._$int].where((final x) => x != null).isNotEmpty, 'Need oneOf for ${result._data}'); + return result.build(); + } +} + @BuiltValue(instantiable: false) abstract interface class UserDetailsQuota_QuotaInterface { - num? get $num; + double? get $double; int? get $int; String? get string; } @@ -5632,7 +5794,7 @@ class _$UserDetailsQuota_QuotaSerializer implements PrimitiveSerializer x != null).isNotEmpty, + [result._$double, result._$int, result._string].where((final x) => x != null).isNotEmpty, 'Need oneOf for ${result._data}', ); return result.build(); } } +@BuiltValue(instantiable: false) +abstract interface class UserDetailsQuota_RelativeInterface { + double? get $double; + int? get $int; +} + +abstract class UserDetailsQuota_Relative + implements UserDetailsQuota_RelativeInterface, Built { + factory UserDetailsQuota_Relative([final void Function(UserDetailsQuota_RelativeBuilder)? b]) = + _$UserDetailsQuota_Relative; + + // coverage:ignore-start + const UserDetailsQuota_Relative._(); + // coverage:ignore-end + + // coverage:ignore-start + factory UserDetailsQuota_Relative.fromJson(final Map json) => + _jsonSerializers.deserializeWith(serializer, json)!; + // coverage:ignore-end + + // coverage:ignore-start + Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; + // coverage:ignore-end + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$UserDetailsQuota_RelativeSerializer(); + + JsonObject get data; +} + +class _$UserDetailsQuota_RelativeSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [UserDetailsQuota_Relative, _$UserDetailsQuota_Relative]; + + @override + final String wireName = 'UserDetailsQuota_Relative'; + + @override + Object serialize( + final Serializers serializers, + final UserDetailsQuota_Relative object, { + final FullType specifiedType = FullType.unspecified, + }) => + object.data.value; + + @override + UserDetailsQuota_Relative deserialize( + final Serializers serializers, + final Object data, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = UserDetailsQuota_RelativeBuilder()..data = JsonObject(data); + try { + result._$double = _jsonSerializers.deserialize(data, specifiedType: const FullType(double))! as double; + } catch (_) {} + try { + result._$int = _jsonSerializers.deserialize(data, specifiedType: const FullType(int))! as int; + } catch (_) {} + assert([result._$double, result._$int].where((final x) => x != null).isNotEmpty, 'Need oneOf for ${result._data}'); + return result.build(); + } +} + +@BuiltValue(instantiable: false) +abstract interface class UserDetailsQuota_TotalInterface { + double? get $double; + int? get $int; +} + +abstract class UserDetailsQuota_Total + implements UserDetailsQuota_TotalInterface, Built { + factory UserDetailsQuota_Total([final void Function(UserDetailsQuota_TotalBuilder)? b]) = _$UserDetailsQuota_Total; + + // coverage:ignore-start + const UserDetailsQuota_Total._(); + // coverage:ignore-end + + // coverage:ignore-start + factory UserDetailsQuota_Total.fromJson(final Map json) => + _jsonSerializers.deserializeWith(serializer, json)!; + // coverage:ignore-end + + // coverage:ignore-start + Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; + // coverage:ignore-end + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$UserDetailsQuota_TotalSerializer(); + + JsonObject get data; +} + +class _$UserDetailsQuota_TotalSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [UserDetailsQuota_Total, _$UserDetailsQuota_Total]; + + @override + final String wireName = 'UserDetailsQuota_Total'; + + @override + Object serialize( + final Serializers serializers, + final UserDetailsQuota_Total object, { + final FullType specifiedType = FullType.unspecified, + }) => + object.data.value; + + @override + UserDetailsQuota_Total deserialize( + final Serializers serializers, + final Object data, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = UserDetailsQuota_TotalBuilder()..data = JsonObject(data); + try { + result._$double = _jsonSerializers.deserialize(data, specifiedType: const FullType(double))! as double; + } catch (_) {} + try { + result._$int = _jsonSerializers.deserialize(data, specifiedType: const FullType(int))! as int; + } catch (_) {} + assert([result._$double, result._$int].where((final x) => x != null).isNotEmpty, 'Need oneOf for ${result._data}'); + return result.build(); + } +} + +@BuiltValue(instantiable: false) +abstract interface class UserDetailsQuota_UsedInterface { + double? get $double; + int? get $int; +} + +abstract class UserDetailsQuota_Used + implements UserDetailsQuota_UsedInterface, Built { + factory UserDetailsQuota_Used([final void Function(UserDetailsQuota_UsedBuilder)? b]) = _$UserDetailsQuota_Used; + + // coverage:ignore-start + const UserDetailsQuota_Used._(); + // coverage:ignore-end + + // coverage:ignore-start + factory UserDetailsQuota_Used.fromJson(final Map json) => + _jsonSerializers.deserializeWith(serializer, json)!; + // coverage:ignore-end + + // coverage:ignore-start + Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; + // coverage:ignore-end + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$UserDetailsQuota_UsedSerializer(); + + JsonObject get data; +} + +class _$UserDetailsQuota_UsedSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [UserDetailsQuota_Used, _$UserDetailsQuota_Used]; + + @override + final String wireName = 'UserDetailsQuota_Used'; + + @override + Object serialize( + final Serializers serializers, + final UserDetailsQuota_Used object, { + final FullType specifiedType = FullType.unspecified, + }) => + object.data.value; + + @override + UserDetailsQuota_Used deserialize( + final Serializers serializers, + final Object data, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = UserDetailsQuota_UsedBuilder()..data = JsonObject(data); + try { + result._$double = _jsonSerializers.deserialize(data, specifiedType: const FullType(double))! as double; + } catch (_) {} + try { + result._$int = _jsonSerializers.deserialize(data, specifiedType: const FullType(int))! as int; + } catch (_) {} + assert([result._$double, result._$int].where((final x) => x != null).isNotEmpty, 'Need oneOf for ${result._data}'); + return result.build(); + } +} + @BuiltValue(instantiable: false) abstract interface class UserDetailsQuotaInterface { - num? get free; + UserDetailsQuota_Free? get free; UserDetailsQuota_Quota? get quota; - num? get relative; - num? get total; - num? get used; + UserDetailsQuota_Relative? get relative; + UserDetailsQuota_Total? get total; + UserDetailsQuota_Used? get used; } abstract class UserDetailsQuota implements UserDetailsQuotaInterface, Built { @@ -6866,6 +7215,218 @@ abstract class UsersGetUsersDetailsResponseApplicationJson _$usersGetUsersDetailsResponseApplicationJsonSerializer; } +@BuiltValue(instantiable: false) +abstract interface class UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1Interface { + String get id; +} + +abstract class UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1 + implements + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1Interface, + Built { + factory UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1([ + final void Function(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1Builder)? b, + ]) = _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1; + + // coverage:ignore-start + const UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1._(); + // coverage:ignore-end + + // coverage:ignore-start + factory UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1.fromJson( + final Map json, + ) => + _jsonSerializers.deserializeWith(serializer, json)!; + // coverage:ignore-end + + // coverage:ignore-start + Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; + // coverage:ignore-end + + static Serializer get serializer => + _$usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1Serializer; +} + +@BuiltValue(instantiable: false) +abstract interface class UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_UsersInterface { + UserDetails? get userDetails; + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1? + get usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1; +} + +abstract class UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users + implements + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_UsersInterface, + Built { + factory UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users([ + final void Function(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_UsersBuilder)? b, + ]) = _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users; + + // coverage:ignore-start + const UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users._(); + // coverage:ignore-end + + // coverage:ignore-start + factory UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users.fromJson( + final Map json, + ) => + _jsonSerializers.deserializeWith(serializer, json)!; + // coverage:ignore-end + + // coverage:ignore-start + Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; + // coverage:ignore-end + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_UsersSerializer(); + + JsonObject get data; +} + +class _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_UsersSerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [ + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users, + _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users, + ]; + + @override + final String wireName = 'UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users'; + + @override + Object serialize( + final Serializers serializers, + final UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users object, { + final FullType specifiedType = FullType.unspecified, + }) => + object.data.value; + + @override + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users deserialize( + final Serializers serializers, + final Object data, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_UsersBuilder()..data = JsonObject(data); + try { + result._userDetails = + (_jsonSerializers.deserialize(data, specifiedType: const FullType(UserDetails))! as UserDetails).toBuilder(); + } catch (_) {} + try { + result._usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1 = (_jsonSerializers.deserialize( + data, + specifiedType: const FullType(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1), + )! as UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1) + .toBuilder(); + } catch (_) {} + assert( + [result._userDetails, result._usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1] + .where((final x) => x != null) + .isNotEmpty, + 'Need oneOf for ${result._data}', + ); + return result.build(); + } +} + +@BuiltValue(instantiable: false) +abstract interface class UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_DataInterface { + BuiltMap get users; +} + +abstract class UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data + implements + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_DataInterface, + Built { + factory UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data([ + final void Function(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_DataBuilder)? b, + ]) = _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data; + + // coverage:ignore-start + const UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data._(); + // coverage:ignore-end + + // coverage:ignore-start + factory UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data.fromJson(final Map json) => + _jsonSerializers.deserializeWith(serializer, json)!; + // coverage:ignore-end + + // coverage:ignore-start + Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; + // coverage:ignore-end + + static Serializer get serializer => + _$usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataSerializer; +} + +@BuiltValue(instantiable: false) +abstract interface class UsersGetDisabledUsersDetailsResponseApplicationJson_OcsInterface { + OCSMeta get meta; + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data get data; +} + +abstract class UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs + implements + UsersGetDisabledUsersDetailsResponseApplicationJson_OcsInterface, + Built { + factory UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs([ + final void Function(UsersGetDisabledUsersDetailsResponseApplicationJson_OcsBuilder)? b, + ]) = _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs; + + // coverage:ignore-start + const UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs._(); + // coverage:ignore-end + + // coverage:ignore-start + factory UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs.fromJson(final Map json) => + _jsonSerializers.deserializeWith(serializer, json)!; + // coverage:ignore-end + + // coverage:ignore-start + Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; + // coverage:ignore-end + + static Serializer get serializer => + _$usersGetDisabledUsersDetailsResponseApplicationJsonOcsSerializer; +} + +@BuiltValue(instantiable: false) +abstract interface class UsersGetDisabledUsersDetailsResponseApplicationJsonInterface { + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs get ocs; +} + +abstract class UsersGetDisabledUsersDetailsResponseApplicationJson + implements + UsersGetDisabledUsersDetailsResponseApplicationJsonInterface, + Built { + factory UsersGetDisabledUsersDetailsResponseApplicationJson([ + final void Function(UsersGetDisabledUsersDetailsResponseApplicationJsonBuilder)? b, + ]) = _$UsersGetDisabledUsersDetailsResponseApplicationJson; + + // coverage:ignore-start + const UsersGetDisabledUsersDetailsResponseApplicationJson._(); + // coverage:ignore-end + + // coverage:ignore-start + factory UsersGetDisabledUsersDetailsResponseApplicationJson.fromJson(final Map json) => + _jsonSerializers.deserializeWith(serializer, json)!; + // coverage:ignore-end + + // coverage:ignore-start + Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; + // coverage:ignore-end + + static Serializer get serializer => + _$usersGetDisabledUsersDetailsResponseApplicationJsonSerializer; +} + @BuiltValue(instantiable: false) abstract interface class UsersSearchByPhoneNumbersResponseApplicationJson_OcsInterface { OCSMeta get meta; @@ -8257,8 +8818,16 @@ final Serializers _serializers = (Serializers().toBuilder() ..add(UserDetails_BackendCapabilities.serializer) ..addBuilderFactory(const FullType(UserDetailsQuota), UserDetailsQuota.new) ..add(UserDetailsQuota.serializer) + ..addBuilderFactory(const FullType(UserDetailsQuota_Free), UserDetailsQuota_Free.new) + ..add(UserDetailsQuota_Free.serializer) ..addBuilderFactory(const FullType(UserDetailsQuota_Quota), UserDetailsQuota_Quota.new) ..add(UserDetailsQuota_Quota.serializer) + ..addBuilderFactory(const FullType(UserDetailsQuota_Relative), UserDetailsQuota_Relative.new) + ..add(UserDetailsQuota_Relative.serializer) + ..addBuilderFactory(const FullType(UserDetailsQuota_Total), UserDetailsQuota_Total.new) + ..add(UserDetailsQuota_Total.serializer) + ..addBuilderFactory(const FullType(UserDetailsQuota_Used), UserDetailsQuota_Used.new) + ..add(UserDetailsQuota_Used.serializer) ..addBuilderFactory( const FullType(GroupsGetGroupUsersDetailsResponseApplicationJson_Ocs_Data_Users1), GroupsGetGroupUsersDetailsResponseApplicationJson_Ocs_Data_Users1.new, @@ -8426,6 +8995,38 @@ final Serializers _serializers = (Serializers().toBuilder() ), MapBuilder.new, ) + ..addBuilderFactory( + const FullType(UsersGetDisabledUsersDetailsResponseApplicationJson), + UsersGetDisabledUsersDetailsResponseApplicationJson.new, + ) + ..add(UsersGetDisabledUsersDetailsResponseApplicationJson.serializer) + ..addBuilderFactory( + const FullType(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs), + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs.new, + ) + ..add(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs.serializer) + ..addBuilderFactory( + const FullType(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data), + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data.new, + ) + ..add(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data.serializer) + ..addBuilderFactory( + const FullType(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users), + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users.new, + ) + ..add(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users.serializer) + ..addBuilderFactory( + const FullType(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1), + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1.new, + ) + ..add(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1.serializer) + ..addBuilderFactory( + const FullType( + BuiltMap, + [FullType(String), FullType(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users)], + ), + MapBuilder.new, + ) ..addBuilderFactory( const FullType(BuiltMap, [ FullType(String), @@ -8631,6 +9232,7 @@ final Serializers _serializers = (Serializers().toBuilder() .build(); final Serializers _jsonSerializers = (_serializers.toBuilder() + ..add(DynamiteDoubleSerializer()) ..addPlugin(StandardJsonPlugin()) ..addPlugin(const ContentStringPlugin())) .build(); diff --git a/packages/nextcloud/lib/src/api/provisioning_api.openapi.g.dart b/packages/nextcloud/lib/src/api/provisioning_api.openapi.g.dart index 6c3478b5041..1a6e589a858 100644 --- a/packages/nextcloud/lib/src/api/provisioning_api.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/provisioning_api.openapi.g.dart @@ -163,6 +163,18 @@ Serializer _$usersGetUsersDetai _$UsersGetUsersDetailsResponseApplicationJson_OcsSerializer(); Serializer _$usersGetUsersDetailsResponseApplicationJsonSerializer = _$UsersGetUsersDetailsResponseApplicationJsonSerializer(); +Serializer + _$usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1Serializer = + _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1Serializer(); +Serializer + _$usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataSerializer = + _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_DataSerializer(); +Serializer + _$usersGetDisabledUsersDetailsResponseApplicationJsonOcsSerializer = + _$UsersGetDisabledUsersDetailsResponseApplicationJson_OcsSerializer(); +Serializer + _$usersGetDisabledUsersDetailsResponseApplicationJsonSerializer = + _$UsersGetDisabledUsersDetailsResponseApplicationJsonSerializer(); Serializer _$usersSearchByPhoneNumbersResponseApplicationJsonOcsSerializer = _$UsersSearchByPhoneNumbersResponseApplicationJson_OcsSerializer(); @@ -2292,7 +2304,7 @@ class _$UserDetailsQuotaSerializer implements StructuredSerializer { + @override + final Iterable types = const [ + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1, + _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1 + ]; + @override + final String wireName = 'UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1'; + + @override + Iterable serialize( + Serializers serializers, UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1 object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1 deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1Builder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'id': + result.id = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data, + _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data + ]; + @override + final String wireName = 'UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + Serializers serializers, UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'users', + serializers.serialize(object.users, + specifiedType: const FullType(BuiltMap, + [FullType(String), FullType(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users)])), + ]; + + return result; + } + + @override + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'users': + result.users.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltMap, + [FullType(String), FullType(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users)]))!); + break; + } + } + + return result.build(); + } +} + +class _$UsersGetDisabledUsersDetailsResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs, + _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs + ]; + @override + final String wireName = 'UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs'; + + @override + Iterable serialize(Serializers serializers, UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, + specifiedType: const FullType(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data)), + ]; + + return result; + } + + @override + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = UsersGetDisabledUsersDetailsResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace(serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta); + break; + case 'data': + result.data.replace(serializers.deserialize(value, + specifiedType: const FullType(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data))! + as UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data); + break; + } + } + + return result.build(); + } +} + +class _$UsersGetDisabledUsersDetailsResponseApplicationJsonSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + UsersGetDisabledUsersDetailsResponseApplicationJson, + _$UsersGetDisabledUsersDetailsResponseApplicationJson + ]; + @override + final String wireName = 'UsersGetDisabledUsersDetailsResponseApplicationJson'; + + @override + Iterable serialize(Serializers serializers, UsersGetDisabledUsersDetailsResponseApplicationJson object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, + specifiedType: const FullType(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs)), + ]; + + return result; + } + + @override + UsersGetDisabledUsersDetailsResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = UsersGetDisabledUsersDetailsResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace(serializers.deserialize(value, + specifiedType: const FullType(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs))! + as UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs); + break; + } + } + + return result.build(); + } +} + class _$UsersSearchByPhoneNumbersResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -10816,11 +11020,123 @@ class UserDetails_BackendCapabilitiesBuilder } } +abstract mixin class UserDetailsQuota_FreeInterfaceBuilder { + void replace(UserDetailsQuota_FreeInterface other); + void update(void Function(UserDetailsQuota_FreeInterfaceBuilder) updates); + double? get $double; + set $double(double? $double); + + int? get $int; + set $int(int? $int); +} + +class _$UserDetailsQuota_Free extends UserDetailsQuota_Free { + @override + final JsonObject data; + @override + final double? $double; + @override + final int? $int; + + factory _$UserDetailsQuota_Free([void Function(UserDetailsQuota_FreeBuilder)? updates]) => + (UserDetailsQuota_FreeBuilder()..update(updates))._build(); + + _$UserDetailsQuota_Free._({required this.data, this.$double, this.$int}) : super._() { + BuiltValueNullFieldError.checkNotNull(data, r'UserDetailsQuota_Free', 'data'); + } + + @override + UserDetailsQuota_Free rebuild(void Function(UserDetailsQuota_FreeBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + UserDetailsQuota_FreeBuilder toBuilder() => UserDetailsQuota_FreeBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is UserDetailsQuota_Free && data == other.data && $double == other.$double && $int == other.$int; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, $double.hashCode); + _$hash = $jc(_$hash, $int.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'UserDetailsQuota_Free') + ..add('data', data) + ..add('\$double', $double) + ..add('\$int', $int)) + .toString(); + } +} + +class UserDetailsQuota_FreeBuilder + implements Builder, UserDetailsQuota_FreeInterfaceBuilder { + _$UserDetailsQuota_Free? _$v; + + JsonObject? _data; + JsonObject? get data => _$this._data; + set data(covariant JsonObject? data) => _$this._data = data; + + double? _$double; + double? get $double => _$this._$double; + set $double(covariant double? $double) => _$this._$double = $double; + + int? _$int; + int? get $int => _$this._$int; + set $int(covariant int? $int) => _$this._$int = $int; + + UserDetailsQuota_FreeBuilder(); + + UserDetailsQuota_FreeBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data; + _$double = $v.$double; + _$int = $v.$int; + _$v = null; + } + return this; + } + + @override + void replace(covariant UserDetailsQuota_Free other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$UserDetailsQuota_Free; + } + + @override + void update(void Function(UserDetailsQuota_FreeBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + UserDetailsQuota_Free build() => _build(); + + _$UserDetailsQuota_Free _build() { + final _$result = _$v ?? + _$UserDetailsQuota_Free._( + data: BuiltValueNullFieldError.checkNotNull(data, r'UserDetailsQuota_Free', 'data'), + $double: $double, + $int: $int); + replace(_$result); + return _$result; + } +} + abstract mixin class UserDetailsQuota_QuotaInterfaceBuilder { void replace(UserDetailsQuota_QuotaInterface other); void update(void Function(UserDetailsQuota_QuotaInterfaceBuilder) updates); - num? get $num; - set $num(num? $num); + double? get $double; + set $double(double? $double); int? get $int; set $int(int? $int); @@ -10833,7 +11149,7 @@ class _$UserDetailsQuota_Quota extends UserDetailsQuota_Quota { @override final JsonObject data; @override - final num? $num; + final double? $double; @override final int? $int; @override @@ -10842,7 +11158,7 @@ class _$UserDetailsQuota_Quota extends UserDetailsQuota_Quota { factory _$UserDetailsQuota_Quota([void Function(UserDetailsQuota_QuotaBuilder)? updates]) => (UserDetailsQuota_QuotaBuilder()..update(updates))._build(); - _$UserDetailsQuota_Quota._({required this.data, this.$num, this.$int, this.string}) : super._() { + _$UserDetailsQuota_Quota._({required this.data, this.$double, this.$int, this.string}) : super._() { BuiltValueNullFieldError.checkNotNull(data, r'UserDetailsQuota_Quota', 'data'); } @@ -10858,7 +11174,7 @@ class _$UserDetailsQuota_Quota extends UserDetailsQuota_Quota { if (identical(other, this)) return true; return other is UserDetailsQuota_Quota && data == other.data && - $num == other.$num && + $double == other.$double && $int == other.$int && string == other.string; } @@ -10867,7 +11183,7 @@ class _$UserDetailsQuota_Quota extends UserDetailsQuota_Quota { int get hashCode { var _$hash = 0; _$hash = $jc(_$hash, data.hashCode); - _$hash = $jc(_$hash, $num.hashCode); + _$hash = $jc(_$hash, $double.hashCode); _$hash = $jc(_$hash, $int.hashCode); _$hash = $jc(_$hash, string.hashCode); _$hash = $jf(_$hash); @@ -10878,7 +11194,7 @@ class _$UserDetailsQuota_Quota extends UserDetailsQuota_Quota { String toString() { return (newBuiltValueToStringHelper(r'UserDetailsQuota_Quota') ..add('data', data) - ..add('\$num', $num) + ..add('\$double', $double) ..add('\$int', $int) ..add('string', string)) .toString(); @@ -10893,9 +11209,9 @@ class UserDetailsQuota_QuotaBuilder JsonObject? get data => _$this._data; set data(covariant JsonObject? data) => _$this._data = data; - num? _$num; - num? get $num => _$this._$num; - set $num(covariant num? $num) => _$this._$num = $num; + double? _$double; + double? get $double => _$this._$double; + set $double(covariant double? $double) => _$this._$double = $double; int? _$int; int? get $int => _$this._$int; @@ -10911,7 +11227,7 @@ class UserDetailsQuota_QuotaBuilder final $v = _$v; if ($v != null) { _data = $v.data; - _$num = $v.$num; + _$double = $v.$double; _$int = $v.$int; _string = $v.string; _$v = null; @@ -10937,7 +11253,7 @@ class UserDetailsQuota_QuotaBuilder final _$result = _$v ?? _$UserDetailsQuota_Quota._( data: BuiltValueNullFieldError.checkNotNull(data, r'UserDetailsQuota_Quota', 'data'), - $num: $num, + $double: $double, $int: $int, string: string); replace(_$result); @@ -10945,63 +11261,401 @@ class UserDetailsQuota_QuotaBuilder } } -abstract mixin class UserDetailsQuotaInterfaceBuilder { - void replace(UserDetailsQuotaInterface other); - void update(void Function(UserDetailsQuotaInterfaceBuilder) updates); - num? get free; - set free(num? free); - - UserDetailsQuota_QuotaBuilder get quota; - set quota(UserDetailsQuota_QuotaBuilder? quota); - - num? get relative; - set relative(num? relative); - - num? get total; - set total(num? total); +abstract mixin class UserDetailsQuota_RelativeInterfaceBuilder { + void replace(UserDetailsQuota_RelativeInterface other); + void update(void Function(UserDetailsQuota_RelativeInterfaceBuilder) updates); + double? get $double; + set $double(double? $double); - num? get used; - set used(num? used); + int? get $int; + set $int(int? $int); } -class _$UserDetailsQuota extends UserDetailsQuota { - @override - final num? free; - @override - final UserDetailsQuota_Quota? quota; +class _$UserDetailsQuota_Relative extends UserDetailsQuota_Relative { @override - final num? relative; + final JsonObject data; @override - final num? total; + final double? $double; @override - final num? used; + final int? $int; - factory _$UserDetailsQuota([void Function(UserDetailsQuotaBuilder)? updates]) => - (UserDetailsQuotaBuilder()..update(updates))._build(); + factory _$UserDetailsQuota_Relative([void Function(UserDetailsQuota_RelativeBuilder)? updates]) => + (UserDetailsQuota_RelativeBuilder()..update(updates))._build(); - _$UserDetailsQuota._({this.free, this.quota, this.relative, this.total, this.used}) : super._(); + _$UserDetailsQuota_Relative._({required this.data, this.$double, this.$int}) : super._() { + BuiltValueNullFieldError.checkNotNull(data, r'UserDetailsQuota_Relative', 'data'); + } @override - UserDetailsQuota rebuild(void Function(UserDetailsQuotaBuilder) updates) => (toBuilder()..update(updates)).build(); + UserDetailsQuota_Relative rebuild(void Function(UserDetailsQuota_RelativeBuilder) updates) => + (toBuilder()..update(updates)).build(); @override - UserDetailsQuotaBuilder toBuilder() => UserDetailsQuotaBuilder()..replace(this); + UserDetailsQuota_RelativeBuilder toBuilder() => UserDetailsQuota_RelativeBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; - return other is UserDetailsQuota && - free == other.free && - quota == other.quota && - relative == other.relative && - total == other.total && - used == other.used; + return other is UserDetailsQuota_Relative && data == other.data && $double == other.$double && $int == other.$int; } @override int get hashCode { var _$hash = 0; - _$hash = $jc(_$hash, free.hashCode); + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, $double.hashCode); + _$hash = $jc(_$hash, $int.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'UserDetailsQuota_Relative') + ..add('data', data) + ..add('\$double', $double) + ..add('\$int', $int)) + .toString(); + } +} + +class UserDetailsQuota_RelativeBuilder + implements + Builder, + UserDetailsQuota_RelativeInterfaceBuilder { + _$UserDetailsQuota_Relative? _$v; + + JsonObject? _data; + JsonObject? get data => _$this._data; + set data(covariant JsonObject? data) => _$this._data = data; + + double? _$double; + double? get $double => _$this._$double; + set $double(covariant double? $double) => _$this._$double = $double; + + int? _$int; + int? get $int => _$this._$int; + set $int(covariant int? $int) => _$this._$int = $int; + + UserDetailsQuota_RelativeBuilder(); + + UserDetailsQuota_RelativeBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data; + _$double = $v.$double; + _$int = $v.$int; + _$v = null; + } + return this; + } + + @override + void replace(covariant UserDetailsQuota_Relative other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$UserDetailsQuota_Relative; + } + + @override + void update(void Function(UserDetailsQuota_RelativeBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + UserDetailsQuota_Relative build() => _build(); + + _$UserDetailsQuota_Relative _build() { + final _$result = _$v ?? + _$UserDetailsQuota_Relative._( + data: BuiltValueNullFieldError.checkNotNull(data, r'UserDetailsQuota_Relative', 'data'), + $double: $double, + $int: $int); + replace(_$result); + return _$result; + } +} + +abstract mixin class UserDetailsQuota_TotalInterfaceBuilder { + void replace(UserDetailsQuota_TotalInterface other); + void update(void Function(UserDetailsQuota_TotalInterfaceBuilder) updates); + double? get $double; + set $double(double? $double); + + int? get $int; + set $int(int? $int); +} + +class _$UserDetailsQuota_Total extends UserDetailsQuota_Total { + @override + final JsonObject data; + @override + final double? $double; + @override + final int? $int; + + factory _$UserDetailsQuota_Total([void Function(UserDetailsQuota_TotalBuilder)? updates]) => + (UserDetailsQuota_TotalBuilder()..update(updates))._build(); + + _$UserDetailsQuota_Total._({required this.data, this.$double, this.$int}) : super._() { + BuiltValueNullFieldError.checkNotNull(data, r'UserDetailsQuota_Total', 'data'); + } + + @override + UserDetailsQuota_Total rebuild(void Function(UserDetailsQuota_TotalBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + UserDetailsQuota_TotalBuilder toBuilder() => UserDetailsQuota_TotalBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is UserDetailsQuota_Total && data == other.data && $double == other.$double && $int == other.$int; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, $double.hashCode); + _$hash = $jc(_$hash, $int.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'UserDetailsQuota_Total') + ..add('data', data) + ..add('\$double', $double) + ..add('\$int', $int)) + .toString(); + } +} + +class UserDetailsQuota_TotalBuilder + implements Builder, UserDetailsQuota_TotalInterfaceBuilder { + _$UserDetailsQuota_Total? _$v; + + JsonObject? _data; + JsonObject? get data => _$this._data; + set data(covariant JsonObject? data) => _$this._data = data; + + double? _$double; + double? get $double => _$this._$double; + set $double(covariant double? $double) => _$this._$double = $double; + + int? _$int; + int? get $int => _$this._$int; + set $int(covariant int? $int) => _$this._$int = $int; + + UserDetailsQuota_TotalBuilder(); + + UserDetailsQuota_TotalBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data; + _$double = $v.$double; + _$int = $v.$int; + _$v = null; + } + return this; + } + + @override + void replace(covariant UserDetailsQuota_Total other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$UserDetailsQuota_Total; + } + + @override + void update(void Function(UserDetailsQuota_TotalBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + UserDetailsQuota_Total build() => _build(); + + _$UserDetailsQuota_Total _build() { + final _$result = _$v ?? + _$UserDetailsQuota_Total._( + data: BuiltValueNullFieldError.checkNotNull(data, r'UserDetailsQuota_Total', 'data'), + $double: $double, + $int: $int); + replace(_$result); + return _$result; + } +} + +abstract mixin class UserDetailsQuota_UsedInterfaceBuilder { + void replace(UserDetailsQuota_UsedInterface other); + void update(void Function(UserDetailsQuota_UsedInterfaceBuilder) updates); + double? get $double; + set $double(double? $double); + + int? get $int; + set $int(int? $int); +} + +class _$UserDetailsQuota_Used extends UserDetailsQuota_Used { + @override + final JsonObject data; + @override + final double? $double; + @override + final int? $int; + + factory _$UserDetailsQuota_Used([void Function(UserDetailsQuota_UsedBuilder)? updates]) => + (UserDetailsQuota_UsedBuilder()..update(updates))._build(); + + _$UserDetailsQuota_Used._({required this.data, this.$double, this.$int}) : super._() { + BuiltValueNullFieldError.checkNotNull(data, r'UserDetailsQuota_Used', 'data'); + } + + @override + UserDetailsQuota_Used rebuild(void Function(UserDetailsQuota_UsedBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + UserDetailsQuota_UsedBuilder toBuilder() => UserDetailsQuota_UsedBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is UserDetailsQuota_Used && data == other.data && $double == other.$double && $int == other.$int; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, $double.hashCode); + _$hash = $jc(_$hash, $int.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'UserDetailsQuota_Used') + ..add('data', data) + ..add('\$double', $double) + ..add('\$int', $int)) + .toString(); + } +} + +class UserDetailsQuota_UsedBuilder + implements Builder, UserDetailsQuota_UsedInterfaceBuilder { + _$UserDetailsQuota_Used? _$v; + + JsonObject? _data; + JsonObject? get data => _$this._data; + set data(covariant JsonObject? data) => _$this._data = data; + + double? _$double; + double? get $double => _$this._$double; + set $double(covariant double? $double) => _$this._$double = $double; + + int? _$int; + int? get $int => _$this._$int; + set $int(covariant int? $int) => _$this._$int = $int; + + UserDetailsQuota_UsedBuilder(); + + UserDetailsQuota_UsedBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data; + _$double = $v.$double; + _$int = $v.$int; + _$v = null; + } + return this; + } + + @override + void replace(covariant UserDetailsQuota_Used other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$UserDetailsQuota_Used; + } + + @override + void update(void Function(UserDetailsQuota_UsedBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + UserDetailsQuota_Used build() => _build(); + + _$UserDetailsQuota_Used _build() { + final _$result = _$v ?? + _$UserDetailsQuota_Used._( + data: BuiltValueNullFieldError.checkNotNull(data, r'UserDetailsQuota_Used', 'data'), + $double: $double, + $int: $int); + replace(_$result); + return _$result; + } +} + +abstract mixin class UserDetailsQuotaInterfaceBuilder { + void replace(UserDetailsQuotaInterface other); + void update(void Function(UserDetailsQuotaInterfaceBuilder) updates); + UserDetailsQuota_FreeBuilder get free; + set free(UserDetailsQuota_FreeBuilder? free); + + UserDetailsQuota_QuotaBuilder get quota; + set quota(UserDetailsQuota_QuotaBuilder? quota); + + UserDetailsQuota_RelativeBuilder get relative; + set relative(UserDetailsQuota_RelativeBuilder? relative); + + UserDetailsQuota_TotalBuilder get total; + set total(UserDetailsQuota_TotalBuilder? total); + + UserDetailsQuota_UsedBuilder get used; + set used(UserDetailsQuota_UsedBuilder? used); +} + +class _$UserDetailsQuota extends UserDetailsQuota { + @override + final UserDetailsQuota_Free? free; + @override + final UserDetailsQuota_Quota? quota; + @override + final UserDetailsQuota_Relative? relative; + @override + final UserDetailsQuota_Total? total; + @override + final UserDetailsQuota_Used? used; + + factory _$UserDetailsQuota([void Function(UserDetailsQuotaBuilder)? updates]) => + (UserDetailsQuotaBuilder()..update(updates))._build(); + + _$UserDetailsQuota._({this.free, this.quota, this.relative, this.total, this.used}) : super._(); + + @override + UserDetailsQuota rebuild(void Function(UserDetailsQuotaBuilder) updates) => (toBuilder()..update(updates)).build(); + + @override + UserDetailsQuotaBuilder toBuilder() => UserDetailsQuotaBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is UserDetailsQuota && + free == other.free && + quota == other.quota && + relative == other.relative && + total == other.total && + used == other.used; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, free.hashCode); _$hash = $jc(_$hash, quota.hashCode); _$hash = $jc(_$hash, relative.hashCode); _$hash = $jc(_$hash, total.hashCode); @@ -11026,36 +11680,36 @@ class UserDetailsQuotaBuilder implements Builder, UserDetailsQuotaInterfaceBuilder { _$UserDetailsQuota? _$v; - num? _free; - num? get free => _$this._free; - set free(covariant num? free) => _$this._free = free; + UserDetailsQuota_FreeBuilder? _free; + UserDetailsQuota_FreeBuilder get free => _$this._free ??= UserDetailsQuota_FreeBuilder(); + set free(covariant UserDetailsQuota_FreeBuilder? free) => _$this._free = free; UserDetailsQuota_QuotaBuilder? _quota; UserDetailsQuota_QuotaBuilder get quota => _$this._quota ??= UserDetailsQuota_QuotaBuilder(); set quota(covariant UserDetailsQuota_QuotaBuilder? quota) => _$this._quota = quota; - num? _relative; - num? get relative => _$this._relative; - set relative(covariant num? relative) => _$this._relative = relative; + UserDetailsQuota_RelativeBuilder? _relative; + UserDetailsQuota_RelativeBuilder get relative => _$this._relative ??= UserDetailsQuota_RelativeBuilder(); + set relative(covariant UserDetailsQuota_RelativeBuilder? relative) => _$this._relative = relative; - num? _total; - num? get total => _$this._total; - set total(covariant num? total) => _$this._total = total; + UserDetailsQuota_TotalBuilder? _total; + UserDetailsQuota_TotalBuilder get total => _$this._total ??= UserDetailsQuota_TotalBuilder(); + set total(covariant UserDetailsQuota_TotalBuilder? total) => _$this._total = total; - num? _used; - num? get used => _$this._used; - set used(covariant num? used) => _$this._used = used; + UserDetailsQuota_UsedBuilder? _used; + UserDetailsQuota_UsedBuilder get used => _$this._used ??= UserDetailsQuota_UsedBuilder(); + set used(covariant UserDetailsQuota_UsedBuilder? used) => _$this._used = used; UserDetailsQuotaBuilder(); UserDetailsQuotaBuilder get _$this { final $v = _$v; if ($v != null) { - _free = $v.free; + _free = $v.free?.toBuilder(); _quota = $v.quota?.toBuilder(); - _relative = $v.relative; - _total = $v.total; - _used = $v.used; + _relative = $v.relative?.toBuilder(); + _total = $v.total?.toBuilder(); + _used = $v.used?.toBuilder(); _$v = null; } return this; @@ -11078,13 +11732,26 @@ class UserDetailsQuotaBuilder _$UserDetailsQuota _build() { _$UserDetailsQuota _$result; try { - _$result = - _$v ?? _$UserDetailsQuota._(free: free, quota: _quota?.build(), relative: relative, total: total, used: used); + _$result = _$v ?? + _$UserDetailsQuota._( + free: _free?.build(), + quota: _quota?.build(), + relative: _relative?.build(), + total: _total?.build(), + used: _used?.build()); } catch (_) { late String _$failedField; try { + _$failedField = 'free'; + _free?.build(); _$failedField = 'quota'; _quota?.build(); + _$failedField = 'relative'; + _relative?.build(); + _$failedField = 'total'; + _total?.build(); + _$failedField = 'used'; + _used?.build(); } catch (e) { throw BuiltValueNestedFieldError(r'UserDetailsQuota', _$failedField, e.toString()); } @@ -15588,6 +16255,604 @@ class UsersGetUsersDetailsResponseApplicationJsonBuilder } } +abstract mixin class UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1InterfaceBuilder { + void replace(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1Interface other); + void update( + void Function(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1InterfaceBuilder) updates); + String? get id; + set id(String? id); +} + +class _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1 + extends UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1 { + @override + final String id; + + factory _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1( + [void Function(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1Builder)? updates]) => + (UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1Builder()..update(updates))._build(); + + _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1._({required this.id}) : super._() { + BuiltValueNullFieldError.checkNotNull( + id, r'UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1', 'id'); + } + + @override + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1 rebuild( + void Function(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1Builder) updates) => + (toBuilder()..update(updates)).build(); + + @override + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1Builder toBuilder() => + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1Builder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1 && id == other.id; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1') + ..add('id', id)) + .toString(); + } +} + +class UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1Builder + implements + Builder, + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1InterfaceBuilder { + _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1? _$v; + + String? _id; + String? get id => _$this._id; + set id(covariant String? id) => _$this._id = id; + + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1Builder(); + + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1Builder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id; + _$v = null; + } + return this; + } + + @override + void replace(covariant UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1 other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1; + } + + @override + void update(void Function(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1Builder)? updates) { + if (updates != null) updates(this); + } + + @override + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1 build() => _build(); + + _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1 _build() { + final _$result = _$v ?? + _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1._( + id: BuiltValueNullFieldError.checkNotNull( + id, r'UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1', 'id')); + replace(_$result); + return _$result; + } +} + +abstract mixin class UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_UsersInterfaceBuilder { + void replace(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_UsersInterface other); + void update( + void Function(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_UsersInterfaceBuilder) updates); + UserDetailsBuilder get userDetails; + set userDetails(UserDetailsBuilder? userDetails); + + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1Builder + get usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1; + set usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1( + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1Builder? + usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1); +} + +class _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users + extends UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users { + @override + final JsonObject data; + @override + final UserDetails? userDetails; + @override + final UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1? + usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1; + + factory _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users( + [void Function(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_UsersBuilder)? updates]) => + (UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_UsersBuilder()..update(updates))._build(); + + _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users._( + {required this.data, this.userDetails, this.usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + data, r'UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users', 'data'); + } + + @override + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users rebuild( + void Function(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_UsersBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_UsersBuilder toBuilder() => + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_UsersBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users && + data == other.data && + userDetails == other.userDetails && + usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1 == + other.usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, userDetails.hashCode); + _$hash = $jc(_$hash, usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users') + ..add('data', data) + ..add('userDetails', userDetails) + ..add('usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1', + usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1)) + .toString(); + } +} + +class UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_UsersBuilder + implements + Builder, + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_UsersInterfaceBuilder { + _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users? _$v; + + JsonObject? _data; + JsonObject? get data => _$this._data; + set data(covariant JsonObject? data) => _$this._data = data; + + UserDetailsBuilder? _userDetails; + UserDetailsBuilder get userDetails => _$this._userDetails ??= UserDetailsBuilder(); + set userDetails(covariant UserDetailsBuilder? userDetails) => _$this._userDetails = userDetails; + + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1Builder? + _usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1; + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1Builder + get usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1 => + _$this._usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1 ??= + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1Builder(); + set usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1( + covariant UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1Builder? + usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1) => + _$this._usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1 = + usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1; + + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_UsersBuilder(); + + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_UsersBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data; + _userDetails = $v.userDetails?.toBuilder(); + _usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1 = + $v.usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(covariant UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users; + } + + @override + void update(void Function(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_UsersBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users build() => _build(); + + _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users _build() { + _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users _$result; + try { + _$result = _$v ?? + _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users._( + data: BuiltValueNullFieldError.checkNotNull( + data, r'UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users', 'data'), + userDetails: _userDetails?.build(), + usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1: + _usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'userDetails'; + _userDetails?.build(); + _$failedField = 'usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1'; + _usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1?.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +abstract mixin class UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_DataInterfaceBuilder { + void replace(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_DataInterface other); + void update(void Function(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_DataInterfaceBuilder) updates); + MapBuilder get users; + set users(MapBuilder? users); +} + +class _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data + extends UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data { + @override + final BuiltMap users; + + factory _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data( + [void Function(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_DataBuilder)? updates]) => + (UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_DataBuilder()..update(updates))._build(); + + _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data._({required this.users}) : super._() { + BuiltValueNullFieldError.checkNotNull( + users, r'UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data', 'users'); + } + + @override + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data rebuild( + void Function(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_DataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_DataBuilder toBuilder() => + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_DataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data && users == other.users; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, users.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data') + ..add('users', users)) + .toString(); + } +} + +class UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_DataBuilder + implements + Builder, + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_DataInterfaceBuilder { + _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data? _$v; + + MapBuilder? _users; + MapBuilder get users => + _$this._users ??= MapBuilder(); + set users(covariant MapBuilder? users) => + _$this._users = users; + + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_DataBuilder(); + + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_DataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _users = $v.users.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(covariant UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data; + } + + @override + void update(void Function(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_DataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data build() => _build(); + + _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data _build() { + _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data _$result; + try { + _$result = _$v ?? _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data._(users: users.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'users'; + users.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +abstract mixin class UsersGetDisabledUsersDetailsResponseApplicationJson_OcsInterfaceBuilder { + void replace(UsersGetDisabledUsersDetailsResponseApplicationJson_OcsInterface other); + void update(void Function(UsersGetDisabledUsersDetailsResponseApplicationJson_OcsInterfaceBuilder) updates); + OCSMetaBuilder get meta; + set meta(OCSMetaBuilder? meta); + + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_DataBuilder get data; + set data(UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_DataBuilder? data); +} + +class _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs + extends UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs { + @override + final OCSMeta meta; + @override + final UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data data; + + factory _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs( + [void Function(UsersGetDisabledUsersDetailsResponseApplicationJson_OcsBuilder)? updates]) => + (UsersGetDisabledUsersDetailsResponseApplicationJson_OcsBuilder()..update(updates))._build(); + + _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs._({required this.meta, required this.data}) : super._() { + BuiltValueNullFieldError.checkNotNull(meta, r'UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs', 'meta'); + BuiltValueNullFieldError.checkNotNull(data, r'UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs', 'data'); + } + + @override + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs rebuild( + void Function(UsersGetDisabledUsersDetailsResponseApplicationJson_OcsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + UsersGetDisabledUsersDetailsResponseApplicationJson_OcsBuilder toBuilder() => + UsersGetDisabledUsersDetailsResponseApplicationJson_OcsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs && meta == other.meta && data == other.data; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs') + ..add('meta', meta) + ..add('data', data)) + .toString(); + } +} + +class UsersGetDisabledUsersDetailsResponseApplicationJson_OcsBuilder + implements + Builder, + UsersGetDisabledUsersDetailsResponseApplicationJson_OcsInterfaceBuilder { + _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs? _$v; + + OCSMetaBuilder? _meta; + OCSMetaBuilder get meta => _$this._meta ??= OCSMetaBuilder(); + set meta(covariant OCSMetaBuilder? meta) => _$this._meta = meta; + + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_DataBuilder? _data; + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_DataBuilder get data => + _$this._data ??= UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_DataBuilder(); + set data(covariant UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_DataBuilder? data) => _$this._data = data; + + UsersGetDisabledUsersDetailsResponseApplicationJson_OcsBuilder(); + + UsersGetDisabledUsersDetailsResponseApplicationJson_OcsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _meta = $v.meta.toBuilder(); + _data = $v.data.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(covariant UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs; + } + + @override + void update(void Function(UsersGetDisabledUsersDetailsResponseApplicationJson_OcsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs build() => _build(); + + _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs _build() { + _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs _$result; + try { + _$result = + _$v ?? _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs._(meta: meta.build(), data: data.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'meta'; + meta.build(); + _$failedField = 'data'; + data.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +abstract mixin class UsersGetDisabledUsersDetailsResponseApplicationJsonInterfaceBuilder { + void replace(UsersGetDisabledUsersDetailsResponseApplicationJsonInterface other); + void update(void Function(UsersGetDisabledUsersDetailsResponseApplicationJsonInterfaceBuilder) updates); + UsersGetDisabledUsersDetailsResponseApplicationJson_OcsBuilder get ocs; + set ocs(UsersGetDisabledUsersDetailsResponseApplicationJson_OcsBuilder? ocs); +} + +class _$UsersGetDisabledUsersDetailsResponseApplicationJson + extends UsersGetDisabledUsersDetailsResponseApplicationJson { + @override + final UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs ocs; + + factory _$UsersGetDisabledUsersDetailsResponseApplicationJson( + [void Function(UsersGetDisabledUsersDetailsResponseApplicationJsonBuilder)? updates]) => + (UsersGetDisabledUsersDetailsResponseApplicationJsonBuilder()..update(updates))._build(); + + _$UsersGetDisabledUsersDetailsResponseApplicationJson._({required this.ocs}) : super._() { + BuiltValueNullFieldError.checkNotNull(ocs, r'UsersGetDisabledUsersDetailsResponseApplicationJson', 'ocs'); + } + + @override + UsersGetDisabledUsersDetailsResponseApplicationJson rebuild( + void Function(UsersGetDisabledUsersDetailsResponseApplicationJsonBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + UsersGetDisabledUsersDetailsResponseApplicationJsonBuilder toBuilder() => + UsersGetDisabledUsersDetailsResponseApplicationJsonBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is UsersGetDisabledUsersDetailsResponseApplicationJson && ocs == other.ocs; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, ocs.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'UsersGetDisabledUsersDetailsResponseApplicationJson')..add('ocs', ocs)) + .toString(); + } +} + +class UsersGetDisabledUsersDetailsResponseApplicationJsonBuilder + implements + Builder, + UsersGetDisabledUsersDetailsResponseApplicationJsonInterfaceBuilder { + _$UsersGetDisabledUsersDetailsResponseApplicationJson? _$v; + + UsersGetDisabledUsersDetailsResponseApplicationJson_OcsBuilder? _ocs; + UsersGetDisabledUsersDetailsResponseApplicationJson_OcsBuilder get ocs => + _$this._ocs ??= UsersGetDisabledUsersDetailsResponseApplicationJson_OcsBuilder(); + set ocs(covariant UsersGetDisabledUsersDetailsResponseApplicationJson_OcsBuilder? ocs) => _$this._ocs = ocs; + + UsersGetDisabledUsersDetailsResponseApplicationJsonBuilder(); + + UsersGetDisabledUsersDetailsResponseApplicationJsonBuilder get _$this { + final $v = _$v; + if ($v != null) { + _ocs = $v.ocs.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(covariant UsersGetDisabledUsersDetailsResponseApplicationJson other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$UsersGetDisabledUsersDetailsResponseApplicationJson; + } + + @override + void update(void Function(UsersGetDisabledUsersDetailsResponseApplicationJsonBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + UsersGetDisabledUsersDetailsResponseApplicationJson build() => _build(); + + _$UsersGetDisabledUsersDetailsResponseApplicationJson _build() { + _$UsersGetDisabledUsersDetailsResponseApplicationJson _$result; + try { + _$result = _$v ?? _$UsersGetDisabledUsersDetailsResponseApplicationJson._(ocs: ocs.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ocs'; + ocs.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'UsersGetDisabledUsersDetailsResponseApplicationJson', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + abstract mixin class UsersSearchByPhoneNumbersResponseApplicationJson_OcsInterfaceBuilder { void replace(UsersSearchByPhoneNumbersResponseApplicationJson_OcsInterface other); void update(void Function(UsersSearchByPhoneNumbersResponseApplicationJson_OcsInterfaceBuilder) updates); diff --git a/packages/nextcloud/lib/src/api/provisioning_api.openapi.json b/packages/nextcloud/lib/src/api/provisioning_api.openapi.json index f7651c2f00a..f04d9acc289 100644 --- a/packages/nextcloud/lib/src/api/provisioning_api.openapi.json +++ b/packages/nextcloud/lib/src/api/provisioning_api.openapi.json @@ -508,8 +508,16 @@ "type": "object", "properties": { "free": { - "type": "number", - "format": "float" + "oneOf": [ + { + "type": "number", + "format": "float" + }, + { + "type": "integer", + "format": "int64" + } + ] }, "quota": { "oneOf": [ @@ -527,16 +535,40 @@ ] }, "relative": { - "type": "number", - "format": "float" + "oneOf": [ + { + "type": "number", + "format": "float" + }, + { + "type": "integer", + "format": "int64" + } + ] }, "total": { - "type": "number", - "format": "float" + "oneOf": [ + { + "type": "number", + "format": "float" + }, + { + "type": "integer", + "format": "int64" + } + ] }, "used": { - "type": "number", - "format": "float" + "oneOf": [ + { + "type": "number", + "format": "float" + }, + { + "type": "integer", + "format": "int64" + } + ] } } } @@ -2029,6 +2061,113 @@ } } }, + "/ocs/v2.php/cloud/users/disabled": { + "get": { + "operationId": "users-get-disabled-users-details", + "summary": "Get the list of disabled users and their details", + "tags": [ + "users" + ], + "security": [ + { + "bearer_auth": [] + }, + { + "basic_auth": [] + } + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "Limit the amount of users returned", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset", + "schema": { + "type": "integer", + "format": "int64", + "default": 0 + } + }, + { + "name": "OCS-APIRequest", + "in": "header", + "description": "Required to be true for the API request to pass", + "required": true, + "schema": { + "type": "boolean", + "default": true + } + } + ], + "responses": { + "200": { + "description": "Disabled users details returned", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "ocs" + ], + "properties": { + "ocs": { + "type": "object", + "required": [ + "meta", + "data" + ], + "properties": { + "meta": { + "$ref": "#/components/schemas/OCSMeta" + }, + "data": { + "type": "object", + "required": [ + "users" + ], + "properties": { + "users": { + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "$ref": "#/components/schemas/UserDetails" + }, + { + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string" + } + } + } + ] + } + } + } + } + } + } + } + } + } + } + } + } + } + }, "/ocs/v2.php/cloud/users/search/by-phone": { "post": { "operationId": "users-search-by-phone-numbers", diff --git a/packages/nextcloud/lib/src/api/settings.openapi.dart b/packages/nextcloud/lib/src/api/settings.openapi.dart index eb02dca3dcf..c478b0391c4 100644 --- a/packages/nextcloud/lib/src/api/settings.openapi.dart +++ b/packages/nextcloud/lib/src/api/settings.openapi.dart @@ -8,7 +8,7 @@ import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:collection/collection.dart'; -import 'package:dynamite_runtime/content_string.dart'; +import 'package:dynamite_runtime/built_value.dart'; import 'package:dynamite_runtime/http_client.dart'; import 'package:meta/meta.dart'; import 'package:universal_io/io.dart'; @@ -199,6 +199,7 @@ final Serializers _serializers = (Serializers().toBuilder() .build(); final Serializers _jsonSerializers = (_serializers.toBuilder() + ..add(DynamiteDoubleSerializer()) ..addPlugin(StandardJsonPlugin()) ..addPlugin(const ContentStringPlugin())) .build(); diff --git a/packages/nextcloud/lib/src/api/sharebymail.openapi.dart b/packages/nextcloud/lib/src/api/sharebymail.openapi.dart index 3ef5f04280f..d97238b03f7 100644 --- a/packages/nextcloud/lib/src/api/sharebymail.openapi.dart +++ b/packages/nextcloud/lib/src/api/sharebymail.openapi.dart @@ -6,7 +6,7 @@ import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; -import 'package:dynamite_runtime/content_string.dart'; +import 'package:dynamite_runtime/built_value.dart'; import 'package:dynamite_runtime/http_client.dart'; part 'sharebymail.openapi.g.dart'; @@ -241,6 +241,7 @@ final Serializers _serializers = (Serializers().toBuilder() .build(); final Serializers _jsonSerializers = (_serializers.toBuilder() + ..add(DynamiteDoubleSerializer()) ..addPlugin(StandardJsonPlugin()) ..addPlugin(const ContentStringPlugin())) .build(); diff --git a/packages/nextcloud/lib/src/api/theming.openapi.dart b/packages/nextcloud/lib/src/api/theming.openapi.dart index 9d85b95fc59..323534f96a4 100644 --- a/packages/nextcloud/lib/src/api/theming.openapi.dart +++ b/packages/nextcloud/lib/src/api/theming.openapi.dart @@ -10,7 +10,7 @@ import 'package:built_value/json_object.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:collection/collection.dart'; -import 'package:dynamite_runtime/content_string.dart'; +import 'package:dynamite_runtime/built_value.dart'; import 'package:dynamite_runtime/http_client.dart'; import 'package:dynamite_runtime/utils.dart'; import 'package:meta/meta.dart'; @@ -1411,6 +1411,7 @@ final Serializers _serializers = (Serializers().toBuilder() .build(); final Serializers _jsonSerializers = (_serializers.toBuilder() + ..add(DynamiteDoubleSerializer()) ..addPlugin(StandardJsonPlugin()) ..addPlugin(const ContentStringPlugin())) .build(); diff --git a/packages/nextcloud/lib/src/api/updatenotification.openapi.dart b/packages/nextcloud/lib/src/api/updatenotification.openapi.dart index 4a897e3e424..85b027859ad 100644 --- a/packages/nextcloud/lib/src/api/updatenotification.openapi.dart +++ b/packages/nextcloud/lib/src/api/updatenotification.openapi.dart @@ -9,7 +9,7 @@ import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:collection/collection.dart'; -import 'package:dynamite_runtime/content_string.dart'; +import 'package:dynamite_runtime/built_value.dart'; import 'package:dynamite_runtime/http_client.dart'; import 'package:meta/meta.dart'; import 'package:universal_io/io.dart'; @@ -327,6 +327,7 @@ final Serializers _serializers = (Serializers().toBuilder() .build(); final Serializers _jsonSerializers = (_serializers.toBuilder() + ..add(DynamiteDoubleSerializer()) ..addPlugin(StandardJsonPlugin()) ..addPlugin(const ContentStringPlugin())) .build(); diff --git a/packages/nextcloud/lib/src/api/uppush.openapi.dart b/packages/nextcloud/lib/src/api/uppush.openapi.dart index 1163357ce0c..0f770dfb90b 100644 --- a/packages/nextcloud/lib/src/api/uppush.openapi.dart +++ b/packages/nextcloud/lib/src/api/uppush.openapi.dart @@ -9,7 +9,7 @@ import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:collection/collection.dart'; -import 'package:dynamite_runtime/content_string.dart'; +import 'package:dynamite_runtime/built_value.dart'; import 'package:dynamite_runtime/http_client.dart'; import 'package:meta/meta.dart'; import 'package:universal_io/io.dart'; @@ -1303,6 +1303,7 @@ final Serializers _serializers = (Serializers().toBuilder() .build(); final Serializers _jsonSerializers = (_serializers.toBuilder() + ..add(DynamiteDoubleSerializer()) ..addPlugin(StandardJsonPlugin()) ..addPlugin(const ContentStringPlugin())) .build(); diff --git a/packages/nextcloud/lib/src/api/user_status.openapi.dart b/packages/nextcloud/lib/src/api/user_status.openapi.dart index 5153b5b6879..733e9c4ed0f 100644 --- a/packages/nextcloud/lib/src/api/user_status.openapi.dart +++ b/packages/nextcloud/lib/src/api/user_status.openapi.dart @@ -10,7 +10,7 @@ import 'package:built_value/json_object.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:collection/collection.dart'; -import 'package:dynamite_runtime/content_string.dart'; +import 'package:dynamite_runtime/built_value.dart'; import 'package:dynamite_runtime/http_client.dart'; import 'package:meta/meta.dart'; import 'package:universal_io/io.dart'; @@ -2094,6 +2094,7 @@ final Serializers _serializers = (Serializers().toBuilder() .build(); final Serializers _jsonSerializers = (_serializers.toBuilder() + ..add(DynamiteDoubleSerializer()) ..addPlugin(StandardJsonPlugin()) ..addPlugin(const ContentStringPlugin())) .build(); diff --git a/packages/nextcloud/lib/src/api/weather_status.openapi.dart b/packages/nextcloud/lib/src/api/weather_status.openapi.dart index a815e86abec..a5163f10578 100644 --- a/packages/nextcloud/lib/src/api/weather_status.openapi.dart +++ b/packages/nextcloud/lib/src/api/weather_status.openapi.dart @@ -9,7 +9,7 @@ import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:collection/collection.dart'; -import 'package:dynamite_runtime/content_string.dart'; +import 'package:dynamite_runtime/built_value.dart'; import 'package:dynamite_runtime/http_client.dart'; import 'package:meta/meta.dart'; import 'package:universal_io/io.dart'; @@ -316,8 +316,8 @@ class WeatherStatusClient { /// * [setLocationRaw] for an experimental operation that returns a [DynamiteRawResponse] that can be serialized. Future> setLocation({ final String? address, - final num? lat, - final num? lon, + final double? lat, + final double? lon, final bool oCSAPIRequest = true, }) async { final rawResponse = setLocationRaw( @@ -351,8 +351,8 @@ class WeatherStatusClient { @experimental DynamiteRawResponse setLocationRaw({ final String? address, - final num? lat, - final num? lon, + final double? lat, + final double? lon, final bool oCSAPIRequest = true, }) { final queryParameters = {}; @@ -785,8 +785,8 @@ abstract class WeatherStatusSetModeResponseApplicationJson @BuiltValue(instantiable: false) abstract interface class WeatherStatusUsePersonalAddressResponseApplicationJson_Ocs_DataInterface { bool get success; - num? get lat; - num? get lon; + double? get lat; + double? get lon; String? get address; } @@ -881,8 +881,8 @@ abstract class WeatherStatusUsePersonalAddressResponseApplicationJson @BuiltValue(instantiable: false) abstract interface class WeatherStatusGetLocationResponseApplicationJson_Ocs_DataInterface { - num get lat; - num get lon; + double get lat; + double get lon; String get address; int get mode; } @@ -978,8 +978,8 @@ abstract class WeatherStatusGetLocationResponseApplicationJson @BuiltValue(instantiable: false) abstract interface class WeatherStatusSetLocationResponseApplicationJson_Ocs_DataInterface { bool get success; - num? get lat; - num? get lon; + double? get lat; + double? get lon; String? get address; } @@ -1074,31 +1074,31 @@ abstract class WeatherStatusSetLocationResponseApplicationJson @BuiltValue(instantiable: false) abstract interface class Forecast_Data_Instant_DetailsInterface { @BuiltValueField(wireName: 'air_pressure_at_sea_level') - num get airPressureAtSeaLevel; + double get airPressureAtSeaLevel; @BuiltValueField(wireName: 'air_temperature') - num get airTemperature; + double get airTemperature; @BuiltValueField(wireName: 'cloud_area_fraction') - num get cloudAreaFraction; + double get cloudAreaFraction; @BuiltValueField(wireName: 'cloud_area_fraction_high') - num get cloudAreaFractionHigh; + double get cloudAreaFractionHigh; @BuiltValueField(wireName: 'cloud_area_fraction_low') - num get cloudAreaFractionLow; + double get cloudAreaFractionLow; @BuiltValueField(wireName: 'cloud_area_fraction_medium') - num get cloudAreaFractionMedium; + double get cloudAreaFractionMedium; @BuiltValueField(wireName: 'dew_point_temperature') - num get dewPointTemperature; + double get dewPointTemperature; @BuiltValueField(wireName: 'fog_area_fraction') - num get fogAreaFraction; + double get fogAreaFraction; @BuiltValueField(wireName: 'relative_humidity') - num get relativeHumidity; + double get relativeHumidity; @BuiltValueField(wireName: 'ultraviolet_index_clear_sky') - num get ultravioletIndexClearSky; + double get ultravioletIndexClearSky; @BuiltValueField(wireName: 'wind_from_direction') - num get windFromDirection; + double get windFromDirection; @BuiltValueField(wireName: 'wind_speed') - num get windSpeed; + double get windSpeed; @BuiltValueField(wireName: 'wind_speed_of_gust') - num get windSpeedOfGust; + double get windSpeedOfGust; } abstract class Forecast_Data_Instant_Details @@ -1181,7 +1181,7 @@ abstract class Forecast_Data_Next12Hours_Summary @BuiltValue(instantiable: false) abstract interface class Forecast_Data_Next12Hours_DetailsInterface { @BuiltValueField(wireName: 'probability_of_precipitation') - num get probabilityOfPrecipitation; + double get probabilityOfPrecipitation; } abstract class Forecast_Data_Next12Hours_Details @@ -1266,15 +1266,15 @@ abstract class Forecast_Data_Next1Hours_Summary @BuiltValue(instantiable: false) abstract interface class Forecast_Data_Next1Hours_DetailsInterface { @BuiltValueField(wireName: 'precipitation_amount') - num get precipitationAmount; + double get precipitationAmount; @BuiltValueField(wireName: 'precipitation_amount_max') - num get precipitationAmountMax; + double get precipitationAmountMax; @BuiltValueField(wireName: 'precipitation_amount_min') - num get precipitationAmountMin; + double get precipitationAmountMin; @BuiltValueField(wireName: 'probability_of_precipitation') - num get probabilityOfPrecipitation; + double get probabilityOfPrecipitation; @BuiltValueField(wireName: 'probability_of_thunder') - num get probabilityOfThunder; + double get probabilityOfThunder; } abstract class Forecast_Data_Next1Hours_Details @@ -1359,17 +1359,17 @@ abstract class Forecast_Data_Next6Hours_Summary @BuiltValue(instantiable: false) abstract interface class Forecast_Data_Next6Hours_DetailsInterface { @BuiltValueField(wireName: 'air_temperature_max') - num get airTemperatureMax; + double get airTemperatureMax; @BuiltValueField(wireName: 'air_temperature_min') - num get airTemperatureMin; + double get airTemperatureMin; @BuiltValueField(wireName: 'precipitation_amount') - num get precipitationAmount; + double get precipitationAmount; @BuiltValueField(wireName: 'precipitation_amount_max') - num get precipitationAmountMax; + double get precipitationAmountMax; @BuiltValueField(wireName: 'precipitation_amount_min') - num get precipitationAmountMin; + double get precipitationAmountMin; @BuiltValueField(wireName: 'probability_of_precipitation') - num get probabilityOfPrecipitation; + double get probabilityOfPrecipitation; } abstract class Forecast_Data_Next6Hours_Details @@ -1881,6 +1881,7 @@ final Serializers _serializers = (Serializers().toBuilder() .build(); final Serializers _jsonSerializers = (_serializers.toBuilder() + ..add(DynamiteDoubleSerializer()) ..addPlugin(StandardJsonPlugin()) ..addPlugin(const ContentStringPlugin())) .build(); diff --git a/packages/nextcloud/lib/src/api/weather_status.openapi.g.dart b/packages/nextcloud/lib/src/api/weather_status.openapi.g.dart index 9e74dac2bb2..abb38373c1c 100644 --- a/packages/nextcloud/lib/src/api/weather_status.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/weather_status.openapi.g.dart @@ -315,13 +315,13 @@ class _$WeatherStatusUsePersonalAddressResponseApplicationJson_Ocs_DataSerialize if (value != null) { result ..add('lat') - ..add(serializers.serialize(value, specifiedType: const FullType(num))); + ..add(serializers.serialize(value, specifiedType: const FullType(double))); } value = object.lon; if (value != null) { result ..add('lon') - ..add(serializers.serialize(value, specifiedType: const FullType(num))); + ..add(serializers.serialize(value, specifiedType: const FullType(double))); } value = object.address; if (value != null) { @@ -348,10 +348,10 @@ class _$WeatherStatusUsePersonalAddressResponseApplicationJson_Ocs_DataSerialize result.success = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; break; case 'lat': - result.lat = serializers.deserialize(value, specifiedType: const FullType(num)) as num?; + result.lat = serializers.deserialize(value, specifiedType: const FullType(double)) as double?; break; case 'lon': - result.lon = serializers.deserialize(value, specifiedType: const FullType(num)) as num?; + result.lon = serializers.deserialize(value, specifiedType: const FullType(double)) as double?; break; case 'address': result.address = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; @@ -476,9 +476,9 @@ class _$WeatherStatusGetLocationResponseApplicationJson_Ocs_DataSerializer {FullType specifiedType = FullType.unspecified}) { final result = [ 'lat', - serializers.serialize(object.lat, specifiedType: const FullType(num)), + serializers.serialize(object.lat, specifiedType: const FullType(double)), 'lon', - serializers.serialize(object.lon, specifiedType: const FullType(num)), + serializers.serialize(object.lon, specifiedType: const FullType(double)), 'address', serializers.serialize(object.address, specifiedType: const FullType(String)), 'mode', @@ -501,10 +501,10 @@ class _$WeatherStatusGetLocationResponseApplicationJson_Ocs_DataSerializer final Object? value = iterator.current; switch (key) { case 'lat': - result.lat = serializers.deserialize(value, specifiedType: const FullType(num))! as num; + result.lat = serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'lon': - result.lon = serializers.deserialize(value, specifiedType: const FullType(num))! as num; + result.lon = serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'address': result.address = serializers.deserialize(value, specifiedType: const FullType(String))! as String; @@ -636,13 +636,13 @@ class _$WeatherStatusSetLocationResponseApplicationJson_Ocs_DataSerializer if (value != null) { result ..add('lat') - ..add(serializers.serialize(value, specifiedType: const FullType(num))); + ..add(serializers.serialize(value, specifiedType: const FullType(double))); } value = object.lon; if (value != null) { result ..add('lon') - ..add(serializers.serialize(value, specifiedType: const FullType(num))); + ..add(serializers.serialize(value, specifiedType: const FullType(double))); } value = object.address; if (value != null) { @@ -669,10 +669,10 @@ class _$WeatherStatusSetLocationResponseApplicationJson_Ocs_DataSerializer result.success = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; break; case 'lat': - result.lat = serializers.deserialize(value, specifiedType: const FullType(num)) as num?; + result.lat = serializers.deserialize(value, specifiedType: const FullType(double)) as double?; break; case 'lon': - result.lon = serializers.deserialize(value, specifiedType: const FullType(num)) as num?; + result.lon = serializers.deserialize(value, specifiedType: const FullType(double)) as double?; break; case 'address': result.address = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; @@ -790,31 +790,31 @@ class _$Forecast_Data_Instant_DetailsSerializer implements StructuredSerializer< {FullType specifiedType = FullType.unspecified}) { final result = [ 'air_pressure_at_sea_level', - serializers.serialize(object.airPressureAtSeaLevel, specifiedType: const FullType(num)), + serializers.serialize(object.airPressureAtSeaLevel, specifiedType: const FullType(double)), 'air_temperature', - serializers.serialize(object.airTemperature, specifiedType: const FullType(num)), + serializers.serialize(object.airTemperature, specifiedType: const FullType(double)), 'cloud_area_fraction', - serializers.serialize(object.cloudAreaFraction, specifiedType: const FullType(num)), + serializers.serialize(object.cloudAreaFraction, specifiedType: const FullType(double)), 'cloud_area_fraction_high', - serializers.serialize(object.cloudAreaFractionHigh, specifiedType: const FullType(num)), + serializers.serialize(object.cloudAreaFractionHigh, specifiedType: const FullType(double)), 'cloud_area_fraction_low', - serializers.serialize(object.cloudAreaFractionLow, specifiedType: const FullType(num)), + serializers.serialize(object.cloudAreaFractionLow, specifiedType: const FullType(double)), 'cloud_area_fraction_medium', - serializers.serialize(object.cloudAreaFractionMedium, specifiedType: const FullType(num)), + serializers.serialize(object.cloudAreaFractionMedium, specifiedType: const FullType(double)), 'dew_point_temperature', - serializers.serialize(object.dewPointTemperature, specifiedType: const FullType(num)), + serializers.serialize(object.dewPointTemperature, specifiedType: const FullType(double)), 'fog_area_fraction', - serializers.serialize(object.fogAreaFraction, specifiedType: const FullType(num)), + serializers.serialize(object.fogAreaFraction, specifiedType: const FullType(double)), 'relative_humidity', - serializers.serialize(object.relativeHumidity, specifiedType: const FullType(num)), + serializers.serialize(object.relativeHumidity, specifiedType: const FullType(double)), 'ultraviolet_index_clear_sky', - serializers.serialize(object.ultravioletIndexClearSky, specifiedType: const FullType(num)), + serializers.serialize(object.ultravioletIndexClearSky, specifiedType: const FullType(double)), 'wind_from_direction', - serializers.serialize(object.windFromDirection, specifiedType: const FullType(num)), + serializers.serialize(object.windFromDirection, specifiedType: const FullType(double)), 'wind_speed', - serializers.serialize(object.windSpeed, specifiedType: const FullType(num)), + serializers.serialize(object.windSpeed, specifiedType: const FullType(double)), 'wind_speed_of_gust', - serializers.serialize(object.windSpeedOfGust, specifiedType: const FullType(num)), + serializers.serialize(object.windSpeedOfGust, specifiedType: const FullType(double)), ]; return result; @@ -832,43 +832,48 @@ class _$Forecast_Data_Instant_DetailsSerializer implements StructuredSerializer< final Object? value = iterator.current; switch (key) { case 'air_pressure_at_sea_level': - result.airPressureAtSeaLevel = serializers.deserialize(value, specifiedType: const FullType(num))! as num; + result.airPressureAtSeaLevel = + serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'air_temperature': - result.airTemperature = serializers.deserialize(value, specifiedType: const FullType(num))! as num; + result.airTemperature = serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'cloud_area_fraction': - result.cloudAreaFraction = serializers.deserialize(value, specifiedType: const FullType(num))! as num; + result.cloudAreaFraction = serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'cloud_area_fraction_high': - result.cloudAreaFractionHigh = serializers.deserialize(value, specifiedType: const FullType(num))! as num; + result.cloudAreaFractionHigh = + serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'cloud_area_fraction_low': - result.cloudAreaFractionLow = serializers.deserialize(value, specifiedType: const FullType(num))! as num; + result.cloudAreaFractionLow = + serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'cloud_area_fraction_medium': - result.cloudAreaFractionMedium = serializers.deserialize(value, specifiedType: const FullType(num))! as num; + result.cloudAreaFractionMedium = + serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'dew_point_temperature': - result.dewPointTemperature = serializers.deserialize(value, specifiedType: const FullType(num))! as num; + result.dewPointTemperature = serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'fog_area_fraction': - result.fogAreaFraction = serializers.deserialize(value, specifiedType: const FullType(num))! as num; + result.fogAreaFraction = serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'relative_humidity': - result.relativeHumidity = serializers.deserialize(value, specifiedType: const FullType(num))! as num; + result.relativeHumidity = serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'ultraviolet_index_clear_sky': - result.ultravioletIndexClearSky = serializers.deserialize(value, specifiedType: const FullType(num))! as num; + result.ultravioletIndexClearSky = + serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'wind_from_direction': - result.windFromDirection = serializers.deserialize(value, specifiedType: const FullType(num))! as num; + result.windFromDirection = serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'wind_speed': - result.windSpeed = serializers.deserialize(value, specifiedType: const FullType(num))! as num; + result.windSpeed = serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'wind_speed_of_gust': - result.windSpeedOfGust = serializers.deserialize(value, specifiedType: const FullType(num))! as num; + result.windSpeedOfGust = serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; } } @@ -965,7 +970,7 @@ class _$Forecast_Data_Next12Hours_DetailsSerializer implements StructuredSeriali {FullType specifiedType = FullType.unspecified}) { final result = [ 'probability_of_precipitation', - serializers.serialize(object.probabilityOfPrecipitation, specifiedType: const FullType(num)), + serializers.serialize(object.probabilityOfPrecipitation, specifiedType: const FullType(double)), ]; return result; @@ -984,7 +989,7 @@ class _$Forecast_Data_Next12Hours_DetailsSerializer implements StructuredSeriali switch (key) { case 'probability_of_precipitation': result.probabilityOfPrecipitation = - serializers.deserialize(value, specifiedType: const FullType(num))! as num; + serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; } } @@ -1087,15 +1092,15 @@ class _$Forecast_Data_Next1Hours_DetailsSerializer implements StructuredSerializ {FullType specifiedType = FullType.unspecified}) { final result = [ 'precipitation_amount', - serializers.serialize(object.precipitationAmount, specifiedType: const FullType(num)), + serializers.serialize(object.precipitationAmount, specifiedType: const FullType(double)), 'precipitation_amount_max', - serializers.serialize(object.precipitationAmountMax, specifiedType: const FullType(num)), + serializers.serialize(object.precipitationAmountMax, specifiedType: const FullType(double)), 'precipitation_amount_min', - serializers.serialize(object.precipitationAmountMin, specifiedType: const FullType(num)), + serializers.serialize(object.precipitationAmountMin, specifiedType: const FullType(double)), 'probability_of_precipitation', - serializers.serialize(object.probabilityOfPrecipitation, specifiedType: const FullType(num)), + serializers.serialize(object.probabilityOfPrecipitation, specifiedType: const FullType(double)), 'probability_of_thunder', - serializers.serialize(object.probabilityOfThunder, specifiedType: const FullType(num)), + serializers.serialize(object.probabilityOfThunder, specifiedType: const FullType(double)), ]; return result; @@ -1113,20 +1118,23 @@ class _$Forecast_Data_Next1Hours_DetailsSerializer implements StructuredSerializ final Object? value = iterator.current; switch (key) { case 'precipitation_amount': - result.precipitationAmount = serializers.deserialize(value, specifiedType: const FullType(num))! as num; + result.precipitationAmount = serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'precipitation_amount_max': - result.precipitationAmountMax = serializers.deserialize(value, specifiedType: const FullType(num))! as num; + result.precipitationAmountMax = + serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'precipitation_amount_min': - result.precipitationAmountMin = serializers.deserialize(value, specifiedType: const FullType(num))! as num; + result.precipitationAmountMin = + serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'probability_of_precipitation': result.probabilityOfPrecipitation = - serializers.deserialize(value, specifiedType: const FullType(num))! as num; + serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'probability_of_thunder': - result.probabilityOfThunder = serializers.deserialize(value, specifiedType: const FullType(num))! as num; + result.probabilityOfThunder = + serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; } } @@ -1229,17 +1237,17 @@ class _$Forecast_Data_Next6Hours_DetailsSerializer implements StructuredSerializ {FullType specifiedType = FullType.unspecified}) { final result = [ 'air_temperature_max', - serializers.serialize(object.airTemperatureMax, specifiedType: const FullType(num)), + serializers.serialize(object.airTemperatureMax, specifiedType: const FullType(double)), 'air_temperature_min', - serializers.serialize(object.airTemperatureMin, specifiedType: const FullType(num)), + serializers.serialize(object.airTemperatureMin, specifiedType: const FullType(double)), 'precipitation_amount', - serializers.serialize(object.precipitationAmount, specifiedType: const FullType(num)), + serializers.serialize(object.precipitationAmount, specifiedType: const FullType(double)), 'precipitation_amount_max', - serializers.serialize(object.precipitationAmountMax, specifiedType: const FullType(num)), + serializers.serialize(object.precipitationAmountMax, specifiedType: const FullType(double)), 'precipitation_amount_min', - serializers.serialize(object.precipitationAmountMin, specifiedType: const FullType(num)), + serializers.serialize(object.precipitationAmountMin, specifiedType: const FullType(double)), 'probability_of_precipitation', - serializers.serialize(object.probabilityOfPrecipitation, specifiedType: const FullType(num)), + serializers.serialize(object.probabilityOfPrecipitation, specifiedType: const FullType(double)), ]; return result; @@ -1257,23 +1265,25 @@ class _$Forecast_Data_Next6Hours_DetailsSerializer implements StructuredSerializ final Object? value = iterator.current; switch (key) { case 'air_temperature_max': - result.airTemperatureMax = serializers.deserialize(value, specifiedType: const FullType(num))! as num; + result.airTemperatureMax = serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'air_temperature_min': - result.airTemperatureMin = serializers.deserialize(value, specifiedType: const FullType(num))! as num; + result.airTemperatureMin = serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'precipitation_amount': - result.precipitationAmount = serializers.deserialize(value, specifiedType: const FullType(num))! as num; + result.precipitationAmount = serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'precipitation_amount_max': - result.precipitationAmountMax = serializers.deserialize(value, specifiedType: const FullType(num))! as num; + result.precipitationAmountMax = + serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'precipitation_amount_min': - result.precipitationAmountMin = serializers.deserialize(value, specifiedType: const FullType(num))! as num; + result.precipitationAmountMin = + serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'probability_of_precipitation': result.probabilityOfPrecipitation = - serializers.deserialize(value, specifiedType: const FullType(num))! as num; + serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; } } @@ -2304,11 +2314,11 @@ abstract mixin class WeatherStatusUsePersonalAddressResponseApplicationJson_Ocs_ bool? get success; set success(bool? success); - num? get lat; - set lat(num? lat); + double? get lat; + set lat(double? lat); - num? get lon; - set lon(num? lon); + double? get lon; + set lon(double? lon); String? get address; set address(String? address); @@ -2319,9 +2329,9 @@ class _$WeatherStatusUsePersonalAddressResponseApplicationJson_Ocs_Data @override final bool success; @override - final num? lat; + final double? lat; @override - final num? lon; + final double? lon; @override final String? address; @@ -2388,13 +2398,13 @@ class WeatherStatusUsePersonalAddressResponseApplicationJson_Ocs_DataBuilder bool? get success => _$this._success; set success(covariant bool? success) => _$this._success = success; - num? _lat; - num? get lat => _$this._lat; - set lat(covariant num? lat) => _$this._lat = lat; + double? _lat; + double? get lat => _$this._lat; + set lat(covariant double? lat) => _$this._lat = lat; - num? _lon; - num? get lon => _$this._lon; - set lon(covariant num? lon) => _$this._lon = lon; + double? _lon; + double? get lon => _$this._lon; + set lon(covariant double? lon) => _$this._lon = lon; String? _address; String? get address => _$this._address; @@ -2678,11 +2688,11 @@ class WeatherStatusUsePersonalAddressResponseApplicationJsonBuilder abstract mixin class WeatherStatusGetLocationResponseApplicationJson_Ocs_DataInterfaceBuilder { void replace(WeatherStatusGetLocationResponseApplicationJson_Ocs_DataInterface other); void update(void Function(WeatherStatusGetLocationResponseApplicationJson_Ocs_DataInterfaceBuilder) updates); - num? get lat; - set lat(num? lat); + double? get lat; + set lat(double? lat); - num? get lon; - set lon(num? lon); + double? get lon; + set lon(double? lon); String? get address; set address(String? address); @@ -2694,9 +2704,9 @@ abstract mixin class WeatherStatusGetLocationResponseApplicationJson_Ocs_DataInt class _$WeatherStatusGetLocationResponseApplicationJson_Ocs_Data extends WeatherStatusGetLocationResponseApplicationJson_Ocs_Data { @override - final num lat; + final double lat; @override - final num lon; + final double lon; @override final String address; @override @@ -2764,13 +2774,13 @@ class WeatherStatusGetLocationResponseApplicationJson_Ocs_DataBuilder WeatherStatusGetLocationResponseApplicationJson_Ocs_DataInterfaceBuilder { _$WeatherStatusGetLocationResponseApplicationJson_Ocs_Data? _$v; - num? _lat; - num? get lat => _$this._lat; - set lat(covariant num? lat) => _$this._lat = lat; + double? _lat; + double? get lat => _$this._lat; + set lat(covariant double? lat) => _$this._lat = lat; - num? _lon; - num? get lon => _$this._lon; - set lon(covariant num? lon) => _$this._lon = lon; + double? _lon; + double? get lon => _$this._lon; + set lon(covariant double? lon) => _$this._lon = lon; String? _address; String? get address => _$this._address; @@ -3059,11 +3069,11 @@ abstract mixin class WeatherStatusSetLocationResponseApplicationJson_Ocs_DataInt bool? get success; set success(bool? success); - num? get lat; - set lat(num? lat); + double? get lat; + set lat(double? lat); - num? get lon; - set lon(num? lon); + double? get lon; + set lon(double? lon); String? get address; set address(String? address); @@ -3074,9 +3084,9 @@ class _$WeatherStatusSetLocationResponseApplicationJson_Ocs_Data @override final bool success; @override - final num? lat; + final double? lat; @override - final num? lon; + final double? lon; @override final String? address; @@ -3143,13 +3153,13 @@ class WeatherStatusSetLocationResponseApplicationJson_Ocs_DataBuilder bool? get success => _$this._success; set success(covariant bool? success) => _$this._success = success; - num? _lat; - num? get lat => _$this._lat; - set lat(covariant num? lat) => _$this._lat = lat; + double? _lat; + double? get lat => _$this._lat; + set lat(covariant double? lat) => _$this._lat = lat; - num? _lon; - num? get lon => _$this._lon; - set lon(covariant num? lon) => _$this._lon = lon; + double? _lon; + double? get lon => _$this._lon; + set lon(covariant double? lon) => _$this._lon = lon; String? _address; String? get address => _$this._address; @@ -3428,73 +3438,73 @@ class WeatherStatusSetLocationResponseApplicationJsonBuilder abstract mixin class Forecast_Data_Instant_DetailsInterfaceBuilder { void replace(Forecast_Data_Instant_DetailsInterface other); void update(void Function(Forecast_Data_Instant_DetailsInterfaceBuilder) updates); - num? get airPressureAtSeaLevel; - set airPressureAtSeaLevel(num? airPressureAtSeaLevel); + double? get airPressureAtSeaLevel; + set airPressureAtSeaLevel(double? airPressureAtSeaLevel); - num? get airTemperature; - set airTemperature(num? airTemperature); + double? get airTemperature; + set airTemperature(double? airTemperature); - num? get cloudAreaFraction; - set cloudAreaFraction(num? cloudAreaFraction); + double? get cloudAreaFraction; + set cloudAreaFraction(double? cloudAreaFraction); - num? get cloudAreaFractionHigh; - set cloudAreaFractionHigh(num? cloudAreaFractionHigh); + double? get cloudAreaFractionHigh; + set cloudAreaFractionHigh(double? cloudAreaFractionHigh); - num? get cloudAreaFractionLow; - set cloudAreaFractionLow(num? cloudAreaFractionLow); + double? get cloudAreaFractionLow; + set cloudAreaFractionLow(double? cloudAreaFractionLow); - num? get cloudAreaFractionMedium; - set cloudAreaFractionMedium(num? cloudAreaFractionMedium); + double? get cloudAreaFractionMedium; + set cloudAreaFractionMedium(double? cloudAreaFractionMedium); - num? get dewPointTemperature; - set dewPointTemperature(num? dewPointTemperature); + double? get dewPointTemperature; + set dewPointTemperature(double? dewPointTemperature); - num? get fogAreaFraction; - set fogAreaFraction(num? fogAreaFraction); + double? get fogAreaFraction; + set fogAreaFraction(double? fogAreaFraction); - num? get relativeHumidity; - set relativeHumidity(num? relativeHumidity); + double? get relativeHumidity; + set relativeHumidity(double? relativeHumidity); - num? get ultravioletIndexClearSky; - set ultravioletIndexClearSky(num? ultravioletIndexClearSky); + double? get ultravioletIndexClearSky; + set ultravioletIndexClearSky(double? ultravioletIndexClearSky); - num? get windFromDirection; - set windFromDirection(num? windFromDirection); + double? get windFromDirection; + set windFromDirection(double? windFromDirection); - num? get windSpeed; - set windSpeed(num? windSpeed); + double? get windSpeed; + set windSpeed(double? windSpeed); - num? get windSpeedOfGust; - set windSpeedOfGust(num? windSpeedOfGust); + double? get windSpeedOfGust; + set windSpeedOfGust(double? windSpeedOfGust); } class _$Forecast_Data_Instant_Details extends Forecast_Data_Instant_Details { @override - final num airPressureAtSeaLevel; + final double airPressureAtSeaLevel; @override - final num airTemperature; + final double airTemperature; @override - final num cloudAreaFraction; + final double cloudAreaFraction; @override - final num cloudAreaFractionHigh; + final double cloudAreaFractionHigh; @override - final num cloudAreaFractionLow; + final double cloudAreaFractionLow; @override - final num cloudAreaFractionMedium; + final double cloudAreaFractionMedium; @override - final num dewPointTemperature; + final double dewPointTemperature; @override - final num fogAreaFraction; + final double fogAreaFraction; @override - final num relativeHumidity; + final double relativeHumidity; @override - final num ultravioletIndexClearSky; + final double ultravioletIndexClearSky; @override - final num windFromDirection; + final double windFromDirection; @override - final num windSpeed; + final double windSpeed; @override - final num windSpeedOfGust; + final double windSpeedOfGust; factory _$Forecast_Data_Instant_Details([void Function(Forecast_Data_Instant_DetailsBuilder)? updates]) => (Forecast_Data_Instant_DetailsBuilder()..update(updates))._build(); @@ -3606,61 +3616,62 @@ class Forecast_Data_Instant_DetailsBuilder Forecast_Data_Instant_DetailsInterfaceBuilder { _$Forecast_Data_Instant_Details? _$v; - num? _airPressureAtSeaLevel; - num? get airPressureAtSeaLevel => _$this._airPressureAtSeaLevel; - set airPressureAtSeaLevel(covariant num? airPressureAtSeaLevel) => + double? _airPressureAtSeaLevel; + double? get airPressureAtSeaLevel => _$this._airPressureAtSeaLevel; + set airPressureAtSeaLevel(covariant double? airPressureAtSeaLevel) => _$this._airPressureAtSeaLevel = airPressureAtSeaLevel; - num? _airTemperature; - num? get airTemperature => _$this._airTemperature; - set airTemperature(covariant num? airTemperature) => _$this._airTemperature = airTemperature; + double? _airTemperature; + double? get airTemperature => _$this._airTemperature; + set airTemperature(covariant double? airTemperature) => _$this._airTemperature = airTemperature; - num? _cloudAreaFraction; - num? get cloudAreaFraction => _$this._cloudAreaFraction; - set cloudAreaFraction(covariant num? cloudAreaFraction) => _$this._cloudAreaFraction = cloudAreaFraction; + double? _cloudAreaFraction; + double? get cloudAreaFraction => _$this._cloudAreaFraction; + set cloudAreaFraction(covariant double? cloudAreaFraction) => _$this._cloudAreaFraction = cloudAreaFraction; - num? _cloudAreaFractionHigh; - num? get cloudAreaFractionHigh => _$this._cloudAreaFractionHigh; - set cloudAreaFractionHigh(covariant num? cloudAreaFractionHigh) => + double? _cloudAreaFractionHigh; + double? get cloudAreaFractionHigh => _$this._cloudAreaFractionHigh; + set cloudAreaFractionHigh(covariant double? cloudAreaFractionHigh) => _$this._cloudAreaFractionHigh = cloudAreaFractionHigh; - num? _cloudAreaFractionLow; - num? get cloudAreaFractionLow => _$this._cloudAreaFractionLow; - set cloudAreaFractionLow(covariant num? cloudAreaFractionLow) => _$this._cloudAreaFractionLow = cloudAreaFractionLow; + double? _cloudAreaFractionLow; + double? get cloudAreaFractionLow => _$this._cloudAreaFractionLow; + set cloudAreaFractionLow(covariant double? cloudAreaFractionLow) => + _$this._cloudAreaFractionLow = cloudAreaFractionLow; - num? _cloudAreaFractionMedium; - num? get cloudAreaFractionMedium => _$this._cloudAreaFractionMedium; - set cloudAreaFractionMedium(covariant num? cloudAreaFractionMedium) => + double? _cloudAreaFractionMedium; + double? get cloudAreaFractionMedium => _$this._cloudAreaFractionMedium; + set cloudAreaFractionMedium(covariant double? cloudAreaFractionMedium) => _$this._cloudAreaFractionMedium = cloudAreaFractionMedium; - num? _dewPointTemperature; - num? get dewPointTemperature => _$this._dewPointTemperature; - set dewPointTemperature(covariant num? dewPointTemperature) => _$this._dewPointTemperature = dewPointTemperature; + double? _dewPointTemperature; + double? get dewPointTemperature => _$this._dewPointTemperature; + set dewPointTemperature(covariant double? dewPointTemperature) => _$this._dewPointTemperature = dewPointTemperature; - num? _fogAreaFraction; - num? get fogAreaFraction => _$this._fogAreaFraction; - set fogAreaFraction(covariant num? fogAreaFraction) => _$this._fogAreaFraction = fogAreaFraction; + double? _fogAreaFraction; + double? get fogAreaFraction => _$this._fogAreaFraction; + set fogAreaFraction(covariant double? fogAreaFraction) => _$this._fogAreaFraction = fogAreaFraction; - num? _relativeHumidity; - num? get relativeHumidity => _$this._relativeHumidity; - set relativeHumidity(covariant num? relativeHumidity) => _$this._relativeHumidity = relativeHumidity; + double? _relativeHumidity; + double? get relativeHumidity => _$this._relativeHumidity; + set relativeHumidity(covariant double? relativeHumidity) => _$this._relativeHumidity = relativeHumidity; - num? _ultravioletIndexClearSky; - num? get ultravioletIndexClearSky => _$this._ultravioletIndexClearSky; - set ultravioletIndexClearSky(covariant num? ultravioletIndexClearSky) => + double? _ultravioletIndexClearSky; + double? get ultravioletIndexClearSky => _$this._ultravioletIndexClearSky; + set ultravioletIndexClearSky(covariant double? ultravioletIndexClearSky) => _$this._ultravioletIndexClearSky = ultravioletIndexClearSky; - num? _windFromDirection; - num? get windFromDirection => _$this._windFromDirection; - set windFromDirection(covariant num? windFromDirection) => _$this._windFromDirection = windFromDirection; + double? _windFromDirection; + double? get windFromDirection => _$this._windFromDirection; + set windFromDirection(covariant double? windFromDirection) => _$this._windFromDirection = windFromDirection; - num? _windSpeed; - num? get windSpeed => _$this._windSpeed; - set windSpeed(covariant num? windSpeed) => _$this._windSpeed = windSpeed; + double? _windSpeed; + double? get windSpeed => _$this._windSpeed; + set windSpeed(covariant double? windSpeed) => _$this._windSpeed = windSpeed; - num? _windSpeedOfGust; - num? get windSpeedOfGust => _$this._windSpeedOfGust; - set windSpeedOfGust(covariant num? windSpeedOfGust) => _$this._windSpeedOfGust = windSpeedOfGust; + double? _windSpeedOfGust; + double? get windSpeedOfGust => _$this._windSpeedOfGust; + set windSpeedOfGust(covariant double? windSpeedOfGust) => _$this._windSpeedOfGust = windSpeedOfGust; Forecast_Data_Instant_DetailsBuilder(); @@ -3921,13 +3932,13 @@ class Forecast_Data_Next12Hours_SummaryBuilder abstract mixin class Forecast_Data_Next12Hours_DetailsInterfaceBuilder { void replace(Forecast_Data_Next12Hours_DetailsInterface other); void update(void Function(Forecast_Data_Next12Hours_DetailsInterfaceBuilder) updates); - num? get probabilityOfPrecipitation; - set probabilityOfPrecipitation(num? probabilityOfPrecipitation); + double? get probabilityOfPrecipitation; + set probabilityOfPrecipitation(double? probabilityOfPrecipitation); } class _$Forecast_Data_Next12Hours_Details extends Forecast_Data_Next12Hours_Details { @override - final num probabilityOfPrecipitation; + final double probabilityOfPrecipitation; factory _$Forecast_Data_Next12Hours_Details([void Function(Forecast_Data_Next12Hours_DetailsBuilder)? updates]) => (Forecast_Data_Next12Hours_DetailsBuilder()..update(updates))._build(); @@ -3972,9 +3983,9 @@ class Forecast_Data_Next12Hours_DetailsBuilder Forecast_Data_Next12Hours_DetailsInterfaceBuilder { _$Forecast_Data_Next12Hours_Details? _$v; - num? _probabilityOfPrecipitation; - num? get probabilityOfPrecipitation => _$this._probabilityOfPrecipitation; - set probabilityOfPrecipitation(covariant num? probabilityOfPrecipitation) => + double? _probabilityOfPrecipitation; + double? get probabilityOfPrecipitation => _$this._probabilityOfPrecipitation; + set probabilityOfPrecipitation(covariant double? probabilityOfPrecipitation) => _$this._probabilityOfPrecipitation = probabilityOfPrecipitation; Forecast_Data_Next12Hours_DetailsBuilder(); @@ -4223,33 +4234,33 @@ class Forecast_Data_Next1Hours_SummaryBuilder abstract mixin class Forecast_Data_Next1Hours_DetailsInterfaceBuilder { void replace(Forecast_Data_Next1Hours_DetailsInterface other); void update(void Function(Forecast_Data_Next1Hours_DetailsInterfaceBuilder) updates); - num? get precipitationAmount; - set precipitationAmount(num? precipitationAmount); + double? get precipitationAmount; + set precipitationAmount(double? precipitationAmount); - num? get precipitationAmountMax; - set precipitationAmountMax(num? precipitationAmountMax); + double? get precipitationAmountMax; + set precipitationAmountMax(double? precipitationAmountMax); - num? get precipitationAmountMin; - set precipitationAmountMin(num? precipitationAmountMin); + double? get precipitationAmountMin; + set precipitationAmountMin(double? precipitationAmountMin); - num? get probabilityOfPrecipitation; - set probabilityOfPrecipitation(num? probabilityOfPrecipitation); + double? get probabilityOfPrecipitation; + set probabilityOfPrecipitation(double? probabilityOfPrecipitation); - num? get probabilityOfThunder; - set probabilityOfThunder(num? probabilityOfThunder); + double? get probabilityOfThunder; + set probabilityOfThunder(double? probabilityOfThunder); } class _$Forecast_Data_Next1Hours_Details extends Forecast_Data_Next1Hours_Details { @override - final num precipitationAmount; + final double precipitationAmount; @override - final num precipitationAmountMax; + final double precipitationAmountMax; @override - final num precipitationAmountMin; + final double precipitationAmountMin; @override - final num probabilityOfPrecipitation; + final double probabilityOfPrecipitation; @override - final num probabilityOfThunder; + final double probabilityOfThunder; factory _$Forecast_Data_Next1Hours_Details([void Function(Forecast_Data_Next1Hours_DetailsBuilder)? updates]) => (Forecast_Data_Next1Hours_DetailsBuilder()..update(updates))._build(); @@ -4321,28 +4332,29 @@ class Forecast_Data_Next1Hours_DetailsBuilder Forecast_Data_Next1Hours_DetailsInterfaceBuilder { _$Forecast_Data_Next1Hours_Details? _$v; - num? _precipitationAmount; - num? get precipitationAmount => _$this._precipitationAmount; - set precipitationAmount(covariant num? precipitationAmount) => _$this._precipitationAmount = precipitationAmount; + double? _precipitationAmount; + double? get precipitationAmount => _$this._precipitationAmount; + set precipitationAmount(covariant double? precipitationAmount) => _$this._precipitationAmount = precipitationAmount; - num? _precipitationAmountMax; - num? get precipitationAmountMax => _$this._precipitationAmountMax; - set precipitationAmountMax(covariant num? precipitationAmountMax) => + double? _precipitationAmountMax; + double? get precipitationAmountMax => _$this._precipitationAmountMax; + set precipitationAmountMax(covariant double? precipitationAmountMax) => _$this._precipitationAmountMax = precipitationAmountMax; - num? _precipitationAmountMin; - num? get precipitationAmountMin => _$this._precipitationAmountMin; - set precipitationAmountMin(covariant num? precipitationAmountMin) => + double? _precipitationAmountMin; + double? get precipitationAmountMin => _$this._precipitationAmountMin; + set precipitationAmountMin(covariant double? precipitationAmountMin) => _$this._precipitationAmountMin = precipitationAmountMin; - num? _probabilityOfPrecipitation; - num? get probabilityOfPrecipitation => _$this._probabilityOfPrecipitation; - set probabilityOfPrecipitation(covariant num? probabilityOfPrecipitation) => + double? _probabilityOfPrecipitation; + double? get probabilityOfPrecipitation => _$this._probabilityOfPrecipitation; + set probabilityOfPrecipitation(covariant double? probabilityOfPrecipitation) => _$this._probabilityOfPrecipitation = probabilityOfPrecipitation; - num? _probabilityOfThunder; - num? get probabilityOfThunder => _$this._probabilityOfThunder; - set probabilityOfThunder(covariant num? probabilityOfThunder) => _$this._probabilityOfThunder = probabilityOfThunder; + double? _probabilityOfThunder; + double? get probabilityOfThunder => _$this._probabilityOfThunder; + set probabilityOfThunder(covariant double? probabilityOfThunder) => + _$this._probabilityOfThunder = probabilityOfThunder; Forecast_Data_Next1Hours_DetailsBuilder(); @@ -4600,38 +4612,38 @@ class Forecast_Data_Next6Hours_SummaryBuilder abstract mixin class Forecast_Data_Next6Hours_DetailsInterfaceBuilder { void replace(Forecast_Data_Next6Hours_DetailsInterface other); void update(void Function(Forecast_Data_Next6Hours_DetailsInterfaceBuilder) updates); - num? get airTemperatureMax; - set airTemperatureMax(num? airTemperatureMax); + double? get airTemperatureMax; + set airTemperatureMax(double? airTemperatureMax); - num? get airTemperatureMin; - set airTemperatureMin(num? airTemperatureMin); + double? get airTemperatureMin; + set airTemperatureMin(double? airTemperatureMin); - num? get precipitationAmount; - set precipitationAmount(num? precipitationAmount); + double? get precipitationAmount; + set precipitationAmount(double? precipitationAmount); - num? get precipitationAmountMax; - set precipitationAmountMax(num? precipitationAmountMax); + double? get precipitationAmountMax; + set precipitationAmountMax(double? precipitationAmountMax); - num? get precipitationAmountMin; - set precipitationAmountMin(num? precipitationAmountMin); + double? get precipitationAmountMin; + set precipitationAmountMin(double? precipitationAmountMin); - num? get probabilityOfPrecipitation; - set probabilityOfPrecipitation(num? probabilityOfPrecipitation); + double? get probabilityOfPrecipitation; + set probabilityOfPrecipitation(double? probabilityOfPrecipitation); } class _$Forecast_Data_Next6Hours_Details extends Forecast_Data_Next6Hours_Details { @override - final num airTemperatureMax; + final double airTemperatureMax; @override - final num airTemperatureMin; + final double airTemperatureMin; @override - final num precipitationAmount; + final double precipitationAmount; @override - final num precipitationAmountMax; + final double precipitationAmountMax; @override - final num precipitationAmountMin; + final double precipitationAmountMin; @override - final num probabilityOfPrecipitation; + final double probabilityOfPrecipitation; factory _$Forecast_Data_Next6Hours_Details([void Function(Forecast_Data_Next6Hours_DetailsBuilder)? updates]) => (Forecast_Data_Next6Hours_DetailsBuilder()..update(updates))._build(); @@ -4707,31 +4719,31 @@ class Forecast_Data_Next6Hours_DetailsBuilder Forecast_Data_Next6Hours_DetailsInterfaceBuilder { _$Forecast_Data_Next6Hours_Details? _$v; - num? _airTemperatureMax; - num? get airTemperatureMax => _$this._airTemperatureMax; - set airTemperatureMax(covariant num? airTemperatureMax) => _$this._airTemperatureMax = airTemperatureMax; + double? _airTemperatureMax; + double? get airTemperatureMax => _$this._airTemperatureMax; + set airTemperatureMax(covariant double? airTemperatureMax) => _$this._airTemperatureMax = airTemperatureMax; - num? _airTemperatureMin; - num? get airTemperatureMin => _$this._airTemperatureMin; - set airTemperatureMin(covariant num? airTemperatureMin) => _$this._airTemperatureMin = airTemperatureMin; + double? _airTemperatureMin; + double? get airTemperatureMin => _$this._airTemperatureMin; + set airTemperatureMin(covariant double? airTemperatureMin) => _$this._airTemperatureMin = airTemperatureMin; - num? _precipitationAmount; - num? get precipitationAmount => _$this._precipitationAmount; - set precipitationAmount(covariant num? precipitationAmount) => _$this._precipitationAmount = precipitationAmount; + double? _precipitationAmount; + double? get precipitationAmount => _$this._precipitationAmount; + set precipitationAmount(covariant double? precipitationAmount) => _$this._precipitationAmount = precipitationAmount; - num? _precipitationAmountMax; - num? get precipitationAmountMax => _$this._precipitationAmountMax; - set precipitationAmountMax(covariant num? precipitationAmountMax) => + double? _precipitationAmountMax; + double? get precipitationAmountMax => _$this._precipitationAmountMax; + set precipitationAmountMax(covariant double? precipitationAmountMax) => _$this._precipitationAmountMax = precipitationAmountMax; - num? _precipitationAmountMin; - num? get precipitationAmountMin => _$this._precipitationAmountMin; - set precipitationAmountMin(covariant num? precipitationAmountMin) => + double? _precipitationAmountMin; + double? get precipitationAmountMin => _$this._precipitationAmountMin; + set precipitationAmountMin(covariant double? precipitationAmountMin) => _$this._precipitationAmountMin = precipitationAmountMin; - num? _probabilityOfPrecipitation; - num? get probabilityOfPrecipitation => _$this._probabilityOfPrecipitation; - set probabilityOfPrecipitation(covariant num? probabilityOfPrecipitation) => + double? _probabilityOfPrecipitation; + double? get probabilityOfPrecipitation => _$this._probabilityOfPrecipitation; + set probabilityOfPrecipitation(covariant double? probabilityOfPrecipitation) => _$this._probabilityOfPrecipitation = probabilityOfPrecipitation; Forecast_Data_Next6Hours_DetailsBuilder();