|
|
@ -8184,66 +8184,12 @@ class _$GroupDetails_DisabledSerializer implements PrimitiveSerializer<GroupDeta |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
typedef UserDetailsQuota_Free = ({double? $double, int? $int}); |
|
|
|
typedef UserDetailsQuota_Free = num; |
|
|
|
|
|
|
|
|
|
|
|
extension UserDetailsQuota_FreeExtension on UserDetailsQuota_Free { |
|
|
|
typedef UserDetailsQuota_Quota = ({num? $num, String? string}); |
|
|
|
List<dynamic> get _values => [$double, $int]; |
|
|
|
|
|
|
|
void validateOneOf() => dynamite_utils.validateOneOf(_values); |
|
|
|
|
|
|
|
void validateAnyOf() => dynamite_utils.validateAnyOf(_values); |
|
|
|
|
|
|
|
static Serializer<UserDetailsQuota_Free> get serializer => const _$UserDetailsQuota_FreeSerializer(); |
|
|
|
|
|
|
|
static UserDetailsQuota_Free fromJson(final Object? json) => _jsonSerializers.deserializeWith(serializer, json)!; |
|
|
|
|
|
|
|
Object? toJson() => _jsonSerializers.serializeWith(serializer, this); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class _$UserDetailsQuota_FreeSerializer implements PrimitiveSerializer<UserDetailsQuota_Free> { |
|
|
|
|
|
|
|
const _$UserDetailsQuota_FreeSerializer(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
|
|
|
Iterable<Type> get types => const [UserDetailsQuota_Free]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
|
|
|
String get wireName => 'UserDetailsQuota_Free'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
|
|
|
Object serialize( |
|
|
|
|
|
|
|
final Serializers serializers, |
|
|
|
|
|
|
|
final UserDetailsQuota_Free object, { |
|
|
|
|
|
|
|
final FullType specifiedType = FullType.unspecified, |
|
|
|
|
|
|
|
}) { |
|
|
|
|
|
|
|
dynamic value; |
|
|
|
|
|
|
|
value = object.$double; |
|
|
|
|
|
|
|
if (value != null) { |
|
|
|
|
|
|
|
return _jsonSerializers.serialize(value, specifiedType: const FullType(double))!; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
value = object.$int; |
|
|
|
|
|
|
|
if (value != null) { |
|
|
|
|
|
|
|
return _jsonSerializers.serialize(value, specifiedType: const FullType(int))!; |
|
|
|
|
|
|
|
} // Should not be possible after validation. |
|
|
|
|
|
|
|
throw StateError('Tried to serialize without any value.'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
|
|
|
UserDetailsQuota_Free deserialize( |
|
|
|
|
|
|
|
final Serializers serializers, |
|
|
|
|
|
|
|
final Object data, { |
|
|
|
|
|
|
|
final FullType specifiedType = FullType.unspecified, |
|
|
|
|
|
|
|
}) { |
|
|
|
|
|
|
|
double? $double; |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
$double = _jsonSerializers.deserialize(data, specifiedType: const FullType(double))! as double; |
|
|
|
|
|
|
|
} catch (_) {} |
|
|
|
|
|
|
|
int? $int; |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
$int = _jsonSerializers.deserialize(data, specifiedType: const FullType(int))! as int; |
|
|
|
|
|
|
|
} catch (_) {} |
|
|
|
|
|
|
|
return ($double: $double, $int: $int); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef UserDetailsQuota_Quota = ({double? $double, int? $int, String? string}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extension UserDetailsQuota_QuotaExtension on UserDetailsQuota_Quota { |
|
|
|
extension UserDetailsQuota_QuotaExtension on UserDetailsQuota_Quota { |
|
|
|
List<dynamic> get _values => [$double, $int, string]; |
|
|
|
List<dynamic> get _values => [$num, string]; |
|
|
|
void validateOneOf() => dynamite_utils.validateOneOf(_values); |
|
|
|
void validateOneOf() => dynamite_utils.validateOneOf(_values); |
|
|
|
void validateAnyOf() => dynamite_utils.validateAnyOf(_values); |
|
|
|
void validateAnyOf() => dynamite_utils.validateAnyOf(_values); |
|
|
|
static Serializer<UserDetailsQuota_Quota> get serializer => const _$UserDetailsQuota_QuotaSerializer(); |
|
|
|
static Serializer<UserDetailsQuota_Quota> get serializer => const _$UserDetailsQuota_QuotaSerializer(); |
|
|
@ -8267,13 +8213,9 @@ class _$UserDetailsQuota_QuotaSerializer implements PrimitiveSerializer<UserDeta |
|
|
|
final FullType specifiedType = FullType.unspecified, |
|
|
|
final FullType specifiedType = FullType.unspecified, |
|
|
|
}) { |
|
|
|
}) { |
|
|
|
dynamic value; |
|
|
|
dynamic value; |
|
|
|
value = object.$double; |
|
|
|
value = object.$num; |
|
|
|
if (value != null) { |
|
|
|
|
|
|
|
return _jsonSerializers.serialize(value, specifiedType: const FullType(double))!; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
value = object.$int; |
|
|
|
|
|
|
|
if (value != null) { |
|
|
|
if (value != null) { |
|
|
|
return _jsonSerializers.serialize(value, specifiedType: const FullType(int))!; |
|
|
|
return _jsonSerializers.serialize(value, specifiedType: const FullType(num))!; |
|
|
|
} |
|
|
|
} |
|
|
|
value = object.string; |
|
|
|
value = object.string; |
|
|
|
if (value != null) { |
|
|
|
if (value != null) { |
|
|
@ -8288,189 +8230,23 @@ class _$UserDetailsQuota_QuotaSerializer implements PrimitiveSerializer<UserDeta |
|
|
|
final Object data, { |
|
|
|
final Object data, { |
|
|
|
final FullType specifiedType = FullType.unspecified, |
|
|
|
final FullType specifiedType = FullType.unspecified, |
|
|
|
}) { |
|
|
|
}) { |
|
|
|
double? $double; |
|
|
|
num? $num; |
|
|
|
try { |
|
|
|
|
|
|
|
$double = _jsonSerializers.deserialize(data, specifiedType: const FullType(double))! as double; |
|
|
|
|
|
|
|
} catch (_) {} |
|
|
|
|
|
|
|
int? $int; |
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
$int = _jsonSerializers.deserialize(data, specifiedType: const FullType(int))! as int; |
|
|
|
$num = _jsonSerializers.deserialize(data, specifiedType: const FullType(num))! as num; |
|
|
|
} catch (_) {} |
|
|
|
} catch (_) {} |
|
|
|
String? string; |
|
|
|
String? string; |
|
|
|
try { |
|
|
|
try { |
|
|
|
string = _jsonSerializers.deserialize(data, specifiedType: const FullType(String))! as String; |
|
|
|
string = _jsonSerializers.deserialize(data, specifiedType: const FullType(String))! as String; |
|
|
|
} catch (_) {} |
|
|
|
} catch (_) {} |
|
|
|
return ($double: $double, $int: $int, string: string); |
|
|
|
return ($num: $num, string: string); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef UserDetailsQuota_Relative = ({double? $double, int? $int}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extension UserDetailsQuota_RelativeExtension on UserDetailsQuota_Relative { |
|
|
|
|
|
|
|
List<dynamic> get _values => [$double, $int]; |
|
|
|
|
|
|
|
void validateOneOf() => dynamite_utils.validateOneOf(_values); |
|
|
|
|
|
|
|
void validateAnyOf() => dynamite_utils.validateAnyOf(_values); |
|
|
|
|
|
|
|
static Serializer<UserDetailsQuota_Relative> get serializer => const _$UserDetailsQuota_RelativeSerializer(); |
|
|
|
|
|
|
|
static UserDetailsQuota_Relative fromJson(final Object? json) => _jsonSerializers.deserializeWith(serializer, json)!; |
|
|
|
|
|
|
|
Object? toJson() => _jsonSerializers.serializeWith(serializer, this); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class _$UserDetailsQuota_RelativeSerializer implements PrimitiveSerializer<UserDetailsQuota_Relative> { |
|
|
|
|
|
|
|
const _$UserDetailsQuota_RelativeSerializer(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
|
|
|
Iterable<Type> get types => const [UserDetailsQuota_Relative]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
|
|
|
String get wireName => 'UserDetailsQuota_Relative'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
|
|
|
Object serialize( |
|
|
|
|
|
|
|
final Serializers serializers, |
|
|
|
|
|
|
|
final UserDetailsQuota_Relative object, { |
|
|
|
|
|
|
|
final FullType specifiedType = FullType.unspecified, |
|
|
|
|
|
|
|
}) { |
|
|
|
|
|
|
|
dynamic value; |
|
|
|
|
|
|
|
value = object.$double; |
|
|
|
|
|
|
|
if (value != null) { |
|
|
|
|
|
|
|
return _jsonSerializers.serialize(value, specifiedType: const FullType(double))!; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
value = object.$int; |
|
|
|
|
|
|
|
if (value != null) { |
|
|
|
|
|
|
|
return _jsonSerializers.serialize(value, specifiedType: const FullType(int))!; |
|
|
|
|
|
|
|
} // Should not be possible after validation. |
|
|
|
|
|
|
|
throw StateError('Tried to serialize without any value.'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
|
|
|
UserDetailsQuota_Relative deserialize( |
|
|
|
|
|
|
|
final Serializers serializers, |
|
|
|
|
|
|
|
final Object data, { |
|
|
|
|
|
|
|
final FullType specifiedType = FullType.unspecified, |
|
|
|
|
|
|
|
}) { |
|
|
|
|
|
|
|
double? $double; |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
$double = _jsonSerializers.deserialize(data, specifiedType: const FullType(double))! as double; |
|
|
|
|
|
|
|
} catch (_) {} |
|
|
|
|
|
|
|
int? $int; |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
$int = _jsonSerializers.deserialize(data, specifiedType: const FullType(int))! as int; |
|
|
|
|
|
|
|
} catch (_) {} |
|
|
|
|
|
|
|
return ($double: $double, $int: $int); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef UserDetailsQuota_Total = ({double? $double, int? $int}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extension UserDetailsQuota_TotalExtension on UserDetailsQuota_Total { |
|
|
|
|
|
|
|
List<dynamic> get _values => [$double, $int]; |
|
|
|
|
|
|
|
void validateOneOf() => dynamite_utils.validateOneOf(_values); |
|
|
|
|
|
|
|
void validateAnyOf() => dynamite_utils.validateAnyOf(_values); |
|
|
|
|
|
|
|
static Serializer<UserDetailsQuota_Total> get serializer => const _$UserDetailsQuota_TotalSerializer(); |
|
|
|
|
|
|
|
static UserDetailsQuota_Total fromJson(final Object? json) => _jsonSerializers.deserializeWith(serializer, json)!; |
|
|
|
|
|
|
|
Object? toJson() => _jsonSerializers.serializeWith(serializer, this); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class _$UserDetailsQuota_TotalSerializer implements PrimitiveSerializer<UserDetailsQuota_Total> { |
|
|
|
|
|
|
|
const _$UserDetailsQuota_TotalSerializer(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
|
|
|
Iterable<Type> get types => const [UserDetailsQuota_Total]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
|
|
|
String get wireName => 'UserDetailsQuota_Total'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
|
|
|
Object serialize( |
|
|
|
|
|
|
|
final Serializers serializers, |
|
|
|
|
|
|
|
final UserDetailsQuota_Total object, { |
|
|
|
|
|
|
|
final FullType specifiedType = FullType.unspecified, |
|
|
|
|
|
|
|
}) { |
|
|
|
|
|
|
|
dynamic value; |
|
|
|
|
|
|
|
value = object.$double; |
|
|
|
|
|
|
|
if (value != null) { |
|
|
|
|
|
|
|
return _jsonSerializers.serialize(value, specifiedType: const FullType(double))!; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
value = object.$int; |
|
|
|
|
|
|
|
if (value != null) { |
|
|
|
|
|
|
|
return _jsonSerializers.serialize(value, specifiedType: const FullType(int))!; |
|
|
|
|
|
|
|
} // Should not be possible after validation. |
|
|
|
|
|
|
|
throw StateError('Tried to serialize without any value.'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
|
|
|
UserDetailsQuota_Total deserialize( |
|
|
|
|
|
|
|
final Serializers serializers, |
|
|
|
|
|
|
|
final Object data, { |
|
|
|
|
|
|
|
final FullType specifiedType = FullType.unspecified, |
|
|
|
|
|
|
|
}) { |
|
|
|
|
|
|
|
double? $double; |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
$double = _jsonSerializers.deserialize(data, specifiedType: const FullType(double))! as double; |
|
|
|
|
|
|
|
} catch (_) {} |
|
|
|
|
|
|
|
int? $int; |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
$int = _jsonSerializers.deserialize(data, specifiedType: const FullType(int))! as int; |
|
|
|
|
|
|
|
} catch (_) {} |
|
|
|
|
|
|
|
return ($double: $double, $int: $int); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
typedef UserDetailsQuota_Used = ({double? $double, int? $int}); |
|
|
|
typedef UserDetailsQuota_Relative = num; |
|
|
|
|
|
|
|
|
|
|
|
extension UserDetailsQuota_UsedExtension on UserDetailsQuota_Used { |
|
|
|
typedef UserDetailsQuota_Total = num; |
|
|
|
List<dynamic> get _values => [$double, $int]; |
|
|
|
|
|
|
|
void validateOneOf() => dynamite_utils.validateOneOf(_values); |
|
|
|
|
|
|
|
void validateAnyOf() => dynamite_utils.validateAnyOf(_values); |
|
|
|
|
|
|
|
static Serializer<UserDetailsQuota_Used> get serializer => const _$UserDetailsQuota_UsedSerializer(); |
|
|
|
|
|
|
|
static UserDetailsQuota_Used fromJson(final Object? json) => _jsonSerializers.deserializeWith(serializer, json)!; |
|
|
|
|
|
|
|
Object? toJson() => _jsonSerializers.serializeWith(serializer, this); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class _$UserDetailsQuota_UsedSerializer implements PrimitiveSerializer<UserDetailsQuota_Used> { |
|
|
|
|
|
|
|
const _$UserDetailsQuota_UsedSerializer(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
|
|
|
Iterable<Type> get types => const [UserDetailsQuota_Used]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
typedef UserDetailsQuota_Used = num; |
|
|
|
String get wireName => 'UserDetailsQuota_Used'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
|
|
|
Object serialize( |
|
|
|
|
|
|
|
final Serializers serializers, |
|
|
|
|
|
|
|
final UserDetailsQuota_Used object, { |
|
|
|
|
|
|
|
final FullType specifiedType = FullType.unspecified, |
|
|
|
|
|
|
|
}) { |
|
|
|
|
|
|
|
dynamic value; |
|
|
|
|
|
|
|
value = object.$double; |
|
|
|
|
|
|
|
if (value != null) { |
|
|
|
|
|
|
|
return _jsonSerializers.serialize(value, specifiedType: const FullType(double))!; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
value = object.$int; |
|
|
|
|
|
|
|
if (value != null) { |
|
|
|
|
|
|
|
return _jsonSerializers.serialize(value, specifiedType: const FullType(int))!; |
|
|
|
|
|
|
|
} // Should not be possible after validation. |
|
|
|
|
|
|
|
throw StateError('Tried to serialize without any value.'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
|
|
|
UserDetailsQuota_Used deserialize( |
|
|
|
|
|
|
|
final Serializers serializers, |
|
|
|
|
|
|
|
final Object data, { |
|
|
|
|
|
|
|
final FullType specifiedType = FullType.unspecified, |
|
|
|
|
|
|
|
}) { |
|
|
|
|
|
|
|
double? $double; |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
$double = _jsonSerializers.deserialize(data, specifiedType: const FullType(double))! as double; |
|
|
|
|
|
|
|
} catch (_) {} |
|
|
|
|
|
|
|
int? $int; |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
$int = _jsonSerializers.deserialize(data, specifiedType: const FullType(int))! as int; |
|
|
|
|
|
|
|
} catch (_) {} |
|
|
|
|
|
|
|
return ($double: $double, $int: $int); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef GroupsGetGroupUsersDetailsResponseApplicationJson_Ocs_Data_Users = ({ |
|
|
|
typedef GroupsGetGroupUsersDetailsResponseApplicationJson_Ocs_Data_Users = ({ |
|
|
|
UserDetails? userDetails, |
|
|
|
UserDetails? userDetails, |
|
|
@ -8882,11 +8658,7 @@ final Serializers _serializers = (Serializers().toBuilder() |
|
|
|
..add(UserDetails_BackendCapabilities.serializer) |
|
|
|
..add(UserDetails_BackendCapabilities.serializer) |
|
|
|
..addBuilderFactory(const FullType(UserDetailsQuota), UserDetailsQuota.new) |
|
|
|
..addBuilderFactory(const FullType(UserDetailsQuota), UserDetailsQuota.new) |
|
|
|
..add(UserDetailsQuota.serializer) |
|
|
|
..add(UserDetailsQuota.serializer) |
|
|
|
..add(UserDetailsQuota_FreeExtension.serializer) |
|
|
|
|
|
|
|
..add(UserDetailsQuota_QuotaExtension.serializer) |
|
|
|
..add(UserDetailsQuota_QuotaExtension.serializer) |
|
|
|
..add(UserDetailsQuota_RelativeExtension.serializer) |
|
|
|
|
|
|
|
..add(UserDetailsQuota_TotalExtension.serializer) |
|
|
|
|
|
|
|
..add(UserDetailsQuota_UsedExtension.serializer) |
|
|
|
|
|
|
|
..addBuilderFactory( |
|
|
|
..addBuilderFactory( |
|
|
|
const FullType(GroupsGetGroupUsersDetailsResponseApplicationJson_Ocs_Data_Users1), |
|
|
|
const FullType(GroupsGetGroupUsersDetailsResponseApplicationJson_Ocs_Data_Users1), |
|
|
|
GroupsGetGroupUsersDetailsResponseApplicationJson_Ocs_Data_Users1.new, |
|
|
|
GroupsGetGroupUsersDetailsResponseApplicationJson_Ocs_Data_Users1.new, |
|
|
|