Browse Source

feat(dynamite,nextcloud): add number format support

Signed-off-by: Nikolas Rimikis <leptopoda@users.noreply.github.com>
pull/999/head
Nikolas Rimikis 1 year ago committed by jld3103
parent
commit
bfcc126524
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 2
      packages/dynamite/dynamite/lib/src/builder/resolve_object.dart
  2. 39
      packages/dynamite/dynamite/lib/src/builder/resolve_type.dart
  3. 1
      packages/dynamite/dynamite/lib/src/models/openapi.g.dart
  4. 38
      packages/dynamite/dynamite/lib/src/models/openapi/schema.dart
  5. 63
      packages/dynamite/dynamite/lib/src/models/openapi/schema.g.dart
  6. 6
      packages/neon/neon/lib/src/pages/account_settings.dart
  7. 2
      packages/nextcloud/lib/src/api/files.openapi.dart
  8. 16
      packages/nextcloud/lib/src/api/files.openapi.g.dart
  9. 12
      packages/nextcloud/lib/src/api/files_sharing.openapi.dart
  10. 48
      packages/nextcloud/lib/src/api/files_sharing.openapi.g.dart
  11. 30
      packages/nextcloud/lib/src/api/provisioning_api.openapi.dart
  12. 120
      packages/nextcloud/lib/src/api/provisioning_api.openapi.g.dart
  13. 70
      packages/nextcloud/lib/src/api/weather_status.openapi.dart
  14. 508
      packages/nextcloud/lib/src/api/weather_status.openapi.g.dart

2
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)}');

39
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(
case openapi.SchemaType.number:
result = switch (schema.format) {
'float' || 'double' => TypeResultBase(
'double',
nullable: nullable,
),
_ => TypeResultBase(
'num',
nullable: nullable,
);
case 'string':
switch (schema.format) {
case 'binary':
result = TypeResultBase(
),
};
case openapi.SchemaType.string:
result = switch (schema.format) {
'binary' => TypeResultBase(
'Uint8List',
nullable: nullable,
);
}
result = TypeResultBase(
),
_ => 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(

1
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)

38
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<Schema, SchemaBuilder> {
bool get deprecated;
String? get type;
SchemaType? get type;
String? get format;
@ -62,7 +63,8 @@ abstract class Schema implements Built<Schema, SchemaBuilder> {
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<String> get formattedDescription => descriptionToDocs(description);
@ -71,5 +73,37 @@ abstract class Schema implements Built<Schema, SchemaBuilder> {
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<SchemaType> get values => _$schemaTypeValues;
static SchemaType valueOf(final String name) => _$schemaType(name);
static Serializer<SchemaType> get serializer => _$schemaTypeSerializer;
}

63
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<SchemaType> _$schemaTypeValues = BuiltSet<SchemaType>(const <SchemaType>[
_$schemaTypeBoolean,
_$schemaTypeInteger,
_$schemaTypeNumber,
_$schemaTypeString,
_$schemaTypeArray,
_$schemaTypeObject,
]);
Serializer<Schema> _$schemaSerializer = _$SchemaSerializer();
Serializer<SchemaType> _$schemaTypeSerializer = _$SchemaTypeSerializer();
class _$SchemaSerializer implements StructuredSerializer<Schema> {
@override
@ -59,7 +95,7 @@ class _$SchemaSerializer implements StructuredSerializer<Schema> {
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<Schema> {
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<Schema> {
}
}
class _$SchemaTypeSerializer implements PrimitiveSerializer<SchemaType> {
@override
final Iterable<Type> types = const <Type>[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<Schema, SchemaBuilder> {
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;

6
packages/neon/neon/lib/src/pages/account_settings.dart

@ -80,9 +80,9 @@ class AccountSettingsPage extends StatelessWidget {
final body = ResultBuilder<provisioning_api.UserDetails>.behaviorSubject(
stream: userDetailsBloc.userDetails,
builder: (final context, final userDetails) {
final quotaRelative = userDetails.data?.quota.relative?.$int ?? userDetails.data?.quota.relative?.$num ?? 0;
final quotaTotal = userDetails.data?.quota.total?.$int ?? userDetails.data?.quota.total?.$num ?? 0;
final quotaUsed = userDetails.data?.quota.used?.$int ?? userDetails.data?.quota.used?.$num ?? 0;
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: [

2
packages/nextcloud/lib/src/api/files.openapi.dart

@ -2043,7 +2043,7 @@ abstract interface class TemplateFileCreatorInterface {
String get $extension;
String? get iconClass;
BuiltList<String> get mimetypes;
num? get ratio;
double? get ratio;
String get actionLabel;
}

16
packages/nextcloud/lib/src/api/files.openapi.g.dart

@ -1277,7 +1277,7 @@ class _$TemplateFileCreatorSerializer implements StructuredSerializer<TemplateFi
if (value != null) {
result
..add('ratio')
..add(serializers.serialize(value, specifiedType: const FullType(num)));
..add(serializers.serialize(value, specifiedType: const FullType(double)));
}
return result;
}
@ -1310,7 +1310,7 @@ class _$TemplateFileCreatorSerializer implements StructuredSerializer<TemplateFi
specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList<Object?>);
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<String> get mimetypes;
set mimetypes(ListBuilder<String>? 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<String> mimetypes;
@override
final num? ratio;
final double? ratio;
@override
final String actionLabel;
@ -5135,9 +5135,9 @@ class TemplateFileCreatorBuilder
ListBuilder<String> get mimetypes => _$this._mimetypes ??= ListBuilder<String>();
set mimetypes(covariant ListBuilder<String>? 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;

12
packages/nextcloud/lib/src/api/files_sharing.openapi.dart

@ -2895,7 +2895,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<ShareInfo_Size, ShareInfo_SizeBuilder> {
@ -2946,9 +2946,9 @@ class _$ShareInfo_SizeSerializer implements PrimitiveSerializer<ShareInfo_Size>
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 +2987,7 @@ abstract class ShareInfo implements ShareInfoInterface, Built<ShareInfo, ShareIn
@BuiltValue(instantiable: false)
abstract interface class Share_ItemSizeInterface {
num? get $num;
double? get $double;
int? get $int;
}
@ -3036,12 +3036,12 @@ class _$Share_ItemSizeSerializer implements PrimitiveSerializer<Share_ItemSize>
}) {
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();
}
}

48
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<ShareInfo_Size, ShareInfo_SizeBui
int? get $int => _$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<ShareInfo_Size, ShareInfo_SizeBui
if ($v != null) {
_data = $v.data;
_$int = $v.$int;
_$num = $v.$num;
_$double = $v.$double;
_$v = null;
}
return this;
@ -7455,7 +7455,7 @@ class ShareInfo_SizeBuilder implements Builder<ShareInfo_Size, ShareInfo_SizeBui
_$ShareInfo_Size _build() {
final _$result = _$v ??
_$ShareInfo_Size._(
data: BuiltValueNullFieldError.checkNotNull(data, r'ShareInfo_Size', 'data'), $int: $int, $num: $num);
data: BuiltValueNullFieldError.checkNotNull(data, r'ShareInfo_Size', 'data'), $int: $int, $double: $double);
replace(_$result);
return _$result;
}
@ -7712,8 +7712,8 @@ class ShareInfoBuilder implements Builder<ShareInfo, ShareInfoBuilder>, 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<Share_ItemSize, Share_ItemSizeBui
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;
@ -7787,7 +7787,7 @@ class Share_ItemSizeBuilder implements Builder<Share_ItemSize, Share_ItemSizeBui
final $v = _$v;
if ($v != null) {
_data = $v.data;
_$num = $v.$num;
_$double = $v.$double;
_$int = $v.$int;
_$v = null;
}
@ -7811,7 +7811,7 @@ class Share_ItemSizeBuilder implements Builder<Share_ItemSize, Share_ItemSizeBui
_$Share_ItemSize _build() {
final _$result = _$v ??
_$Share_ItemSize._(
data: BuiltValueNullFieldError.checkNotNull(data, r'Share_ItemSize', 'data'), $num: $num, $int: $int);
data: BuiltValueNullFieldError.checkNotNull(data, r'Share_ItemSize', 'data'), $double: $double, $int: $int);
replace(_$result);
return _$result;
}

30
packages/nextcloud/lib/src/api/provisioning_api.openapi.dart

@ -5680,7 +5680,7 @@ abstract class UserDetails_BackendCapabilities
@BuiltValue(instantiable: false)
abstract interface class UserDetailsQuota_FreeInterface {
num? get $num;
double? get $double;
int? get $int;
}
@ -5730,19 +5730,19 @@ class _$UserDetailsQuota_FreeSerializer implements PrimitiveSerializer<UserDetai
}) {
final result = UserDetailsQuota_FreeBuilder()..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();
}
}
@BuiltValue(instantiable: false)
abstract interface class UserDetailsQuota_QuotaInterface {
num? get $num;
double? get $double;
int? get $int;
String? get string;
}
@ -5793,7 +5793,7 @@ class _$UserDetailsQuota_QuotaSerializer implements PrimitiveSerializer<UserDeta
}) {
final result = UserDetailsQuota_QuotaBuilder()..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;
@ -5802,7 +5802,7 @@ class _$UserDetailsQuota_QuotaSerializer implements PrimitiveSerializer<UserDeta
result._string = _jsonSerializers.deserialize(data, specifiedType: const FullType(String))! as String;
} catch (_) {}
assert(
[result._$num, result._$int, result._string].where((final x) => x != null).isNotEmpty,
[result._$double, result._$int, result._string].where((final x) => x != null).isNotEmpty,
'Need oneOf for ${result._data}',
);
return result.build();
@ -5811,7 +5811,7 @@ class _$UserDetailsQuota_QuotaSerializer implements PrimitiveSerializer<UserDeta
@BuiltValue(instantiable: false)
abstract interface class UserDetailsQuota_RelativeInterface {
num? get $num;
double? get $double;
int? get $int;
}
@ -5862,19 +5862,19 @@ class _$UserDetailsQuota_RelativeSerializer implements PrimitiveSerializer<UserD
}) {
final result = UserDetailsQuota_RelativeBuilder()..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();
}
}
@BuiltValue(instantiable: false)
abstract interface class UserDetailsQuota_TotalInterface {
num? get $num;
double? get $double;
int? get $int;
}
@ -5924,19 +5924,19 @@ class _$UserDetailsQuota_TotalSerializer implements PrimitiveSerializer<UserDeta
}) {
final result = UserDetailsQuota_TotalBuilder()..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();
}
}
@BuiltValue(instantiable: false)
abstract interface class UserDetailsQuota_UsedInterface {
num? get $num;
double? get $double;
int? get $int;
}
@ -5986,12 +5986,12 @@ class _$UserDetailsQuota_UsedSerializer implements PrimitiveSerializer<UserDetai
}) {
final result = UserDetailsQuota_UsedBuilder()..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();
}
}

120
packages/nextcloud/lib/src/api/provisioning_api.openapi.g.dart

@ -11023,8 +11023,8 @@ class UserDetails_BackendCapabilitiesBuilder
abstract mixin class UserDetailsQuota_FreeInterfaceBuilder {
void replace(UserDetailsQuota_FreeInterface other);
void update(void Function(UserDetailsQuota_FreeInterfaceBuilder) updates);
num? get $num;
set $num(num? $num);
double? get $double;
set $double(double? $double);
int? get $int;
set $int(int? $int);
@ -11034,14 +11034,14 @@ class _$UserDetailsQuota_Free extends UserDetailsQuota_Free {
@override
final JsonObject data;
@override
final num? $num;
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.$num, this.$int}) : super._() {
_$UserDetailsQuota_Free._({required this.data, this.$double, this.$int}) : super._() {
BuiltValueNullFieldError.checkNotNull(data, r'UserDetailsQuota_Free', 'data');
}
@ -11055,14 +11055,14 @@ class _$UserDetailsQuota_Free extends UserDetailsQuota_Free {
@override
bool operator ==(Object other) {
if (identical(other, this)) return true;
return other is UserDetailsQuota_Free && data == other.data && $num == other.$num && $int == other.$int;
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, $num.hashCode);
_$hash = $jc(_$hash, $double.hashCode);
_$hash = $jc(_$hash, $int.hashCode);
_$hash = $jf(_$hash);
return _$hash;
@ -11072,7 +11072,7 @@ class _$UserDetailsQuota_Free extends UserDetailsQuota_Free {
String toString() {
return (newBuiltValueToStringHelper(r'UserDetailsQuota_Free')
..add('data', data)
..add('\$num', $num)
..add('\$double', $double)
..add('\$int', $int))
.toString();
}
@ -11086,9 +11086,9 @@ class UserDetailsQuota_FreeBuilder
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;
@ -11100,7 +11100,7 @@ class UserDetailsQuota_FreeBuilder
final $v = _$v;
if ($v != null) {
_data = $v.data;
_$num = $v.$num;
_$double = $v.$double;
_$int = $v.$int;
_$v = null;
}
@ -11125,7 +11125,7 @@ class UserDetailsQuota_FreeBuilder
final _$result = _$v ??
_$UserDetailsQuota_Free._(
data: BuiltValueNullFieldError.checkNotNull(data, r'UserDetailsQuota_Free', 'data'),
$num: $num,
$double: $double,
$int: $int);
replace(_$result);
return _$result;
@ -11135,8 +11135,8 @@ class UserDetailsQuota_FreeBuilder
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);
@ -11149,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
@ -11158,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');
}
@ -11174,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;
}
@ -11183,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);
@ -11194,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();
@ -11209,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;
@ -11227,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;
@ -11253,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);
@ -11264,8 +11264,8 @@ class UserDetailsQuota_QuotaBuilder
abstract mixin class UserDetailsQuota_RelativeInterfaceBuilder {
void replace(UserDetailsQuota_RelativeInterface other);
void update(void Function(UserDetailsQuota_RelativeInterfaceBuilder) updates);
num? get $num;
set $num(num? $num);
double? get $double;
set $double(double? $double);
int? get $int;
set $int(int? $int);
@ -11275,14 +11275,14 @@ class _$UserDetailsQuota_Relative extends UserDetailsQuota_Relative {
@override
final JsonObject data;
@override
final num? $num;
final double? $double;
@override
final int? $int;
factory _$UserDetailsQuota_Relative([void Function(UserDetailsQuota_RelativeBuilder)? updates]) =>
(UserDetailsQuota_RelativeBuilder()..update(updates))._build();
_$UserDetailsQuota_Relative._({required this.data, this.$num, this.$int}) : super._() {
_$UserDetailsQuota_Relative._({required this.data, this.$double, this.$int}) : super._() {
BuiltValueNullFieldError.checkNotNull(data, r'UserDetailsQuota_Relative', 'data');
}
@ -11296,14 +11296,14 @@ class _$UserDetailsQuota_Relative extends UserDetailsQuota_Relative {
@override
bool operator ==(Object other) {
if (identical(other, this)) return true;
return other is UserDetailsQuota_Relative && data == other.data && $num == other.$num && $int == other.$int;
return other is UserDetailsQuota_Relative && 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;
@ -11313,7 +11313,7 @@ class _$UserDetailsQuota_Relative extends UserDetailsQuota_Relative {
String toString() {
return (newBuiltValueToStringHelper(r'UserDetailsQuota_Relative')
..add('data', data)
..add('\$num', $num)
..add('\$double', $double)
..add('\$int', $int))
.toString();
}
@ -11329,9 +11329,9 @@ class UserDetailsQuota_RelativeBuilder
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;
@ -11343,7 +11343,7 @@ class UserDetailsQuota_RelativeBuilder
final $v = _$v;
if ($v != null) {
_data = $v.data;
_$num = $v.$num;
_$double = $v.$double;
_$int = $v.$int;
_$v = null;
}
@ -11368,7 +11368,7 @@ class UserDetailsQuota_RelativeBuilder
final _$result = _$v ??
_$UserDetailsQuota_Relative._(
data: BuiltValueNullFieldError.checkNotNull(data, r'UserDetailsQuota_Relative', 'data'),
$num: $num,
$double: $double,
$int: $int);
replace(_$result);
return _$result;
@ -11378,8 +11378,8 @@ class UserDetailsQuota_RelativeBuilder
abstract mixin class UserDetailsQuota_TotalInterfaceBuilder {
void replace(UserDetailsQuota_TotalInterface other);
void update(void Function(UserDetailsQuota_TotalInterfaceBuilder) updates);
num? get $num;
set $num(num? $num);
double? get $double;
set $double(double? $double);
int? get $int;
set $int(int? $int);
@ -11389,14 +11389,14 @@ class _$UserDetailsQuota_Total extends UserDetailsQuota_Total {
@override
final JsonObject data;
@override
final num? $num;
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.$num, this.$int}) : super._() {
_$UserDetailsQuota_Total._({required this.data, this.$double, this.$int}) : super._() {
BuiltValueNullFieldError.checkNotNull(data, r'UserDetailsQuota_Total', 'data');
}
@ -11410,14 +11410,14 @@ class _$UserDetailsQuota_Total extends UserDetailsQuota_Total {
@override
bool operator ==(Object other) {
if (identical(other, this)) return true;
return other is UserDetailsQuota_Total && data == other.data && $num == other.$num && $int == other.$int;
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, $num.hashCode);
_$hash = $jc(_$hash, $double.hashCode);
_$hash = $jc(_$hash, $int.hashCode);
_$hash = $jf(_$hash);
return _$hash;
@ -11427,7 +11427,7 @@ class _$UserDetailsQuota_Total extends UserDetailsQuota_Total {
String toString() {
return (newBuiltValueToStringHelper(r'UserDetailsQuota_Total')
..add('data', data)
..add('\$num', $num)
..add('\$double', $double)
..add('\$int', $int))
.toString();
}
@ -11441,9 +11441,9 @@ class UserDetailsQuota_TotalBuilder
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;
@ -11455,7 +11455,7 @@ class UserDetailsQuota_TotalBuilder
final $v = _$v;
if ($v != null) {
_data = $v.data;
_$num = $v.$num;
_$double = $v.$double;
_$int = $v.$int;
_$v = null;
}
@ -11480,7 +11480,7 @@ class UserDetailsQuota_TotalBuilder
final _$result = _$v ??
_$UserDetailsQuota_Total._(
data: BuiltValueNullFieldError.checkNotNull(data, r'UserDetailsQuota_Total', 'data'),
$num: $num,
$double: $double,
$int: $int);
replace(_$result);
return _$result;
@ -11490,8 +11490,8 @@ class UserDetailsQuota_TotalBuilder
abstract mixin class UserDetailsQuota_UsedInterfaceBuilder {
void replace(UserDetailsQuota_UsedInterface other);
void update(void Function(UserDetailsQuota_UsedInterfaceBuilder) updates);
num? get $num;
set $num(num? $num);
double? get $double;
set $double(double? $double);
int? get $int;
set $int(int? $int);
@ -11501,14 +11501,14 @@ class _$UserDetailsQuota_Used extends UserDetailsQuota_Used {
@override
final JsonObject data;
@override
final num? $num;
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.$num, this.$int}) : super._() {
_$UserDetailsQuota_Used._({required this.data, this.$double, this.$int}) : super._() {
BuiltValueNullFieldError.checkNotNull(data, r'UserDetailsQuota_Used', 'data');
}
@ -11522,14 +11522,14 @@ class _$UserDetailsQuota_Used extends UserDetailsQuota_Used {
@override
bool operator ==(Object other) {
if (identical(other, this)) return true;
return other is UserDetailsQuota_Used && data == other.data && $num == other.$num && $int == other.$int;
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, $num.hashCode);
_$hash = $jc(_$hash, $double.hashCode);
_$hash = $jc(_$hash, $int.hashCode);
_$hash = $jf(_$hash);
return _$hash;
@ -11539,7 +11539,7 @@ class _$UserDetailsQuota_Used extends UserDetailsQuota_Used {
String toString() {
return (newBuiltValueToStringHelper(r'UserDetailsQuota_Used')
..add('data', data)
..add('\$num', $num)
..add('\$double', $double)
..add('\$int', $int))
.toString();
}
@ -11553,9 +11553,9 @@ class UserDetailsQuota_UsedBuilder
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;
@ -11567,7 +11567,7 @@ class UserDetailsQuota_UsedBuilder
final $v = _$v;
if ($v != null) {
_data = $v.data;
_$num = $v.$num;
_$double = $v.$double;
_$int = $v.$int;
_$v = null;
}
@ -11592,7 +11592,7 @@ class UserDetailsQuota_UsedBuilder
final _$result = _$v ??
_$UserDetailsQuota_Used._(
data: BuiltValueNullFieldError.checkNotNull(data, r'UserDetailsQuota_Used', 'data'),
$num: $num,
$double: $double,
$int: $int);
replace(_$result);
return _$result;

70
packages/nextcloud/lib/src/api/weather_status.openapi.dart

@ -316,8 +316,8 @@ class WeatherStatusClient {
/// * [setLocationRaw] for an experimental operation that returns a [DynamiteRawResponse] that can be serialized.
Future<DynamiteResponse<WeatherStatusSetLocationResponseApplicationJson, void>> 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<WeatherStatusSetLocationResponseApplicationJson, void> setLocationRaw({
final String? address,
final num? lat,
final num? lon,
final double? lat,
final double? lon,
final bool oCSAPIRequest = true,
}) {
final queryParameters = <String, dynamic>{};
@ -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

508
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 = <Object?>[
'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 = <Object?>[
'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 = <Object?>[
'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 = <Object?>[
'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 = <Object?>[
'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();

Loading…
Cancel
Save