chore(app): сгенерированный Dart-клиент с методами аналитики
just gen-client после новых роутов.
This commit is contained in:
@@ -0,0 +1,120 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'price_point.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// CopyWithGenerator
|
||||
// **************************************************************************
|
||||
|
||||
abstract class _$PricePointCWProxy {
|
||||
PricePoint accruedInterest(String? accruedInterest);
|
||||
|
||||
PricePoint close(String close);
|
||||
|
||||
PricePoint currency(String currency);
|
||||
|
||||
PricePoint d(DateTime d);
|
||||
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `PricePoint(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
///
|
||||
/// Usage
|
||||
/// ```dart
|
||||
/// PricePoint(...).copyWith(id: 12, name: "My name")
|
||||
/// ````
|
||||
PricePoint call({
|
||||
String? accruedInterest,
|
||||
String close,
|
||||
String currency,
|
||||
DateTime d,
|
||||
});
|
||||
}
|
||||
|
||||
/// Proxy class for `copyWith` functionality. This is a callable class and can be used as follows: `instanceOfPricePoint.copyWith(...)`. Additionally contains functions for specific fields e.g. `instanceOfPricePoint.copyWith.fieldName(...)`
|
||||
class _$PricePointCWProxyImpl implements _$PricePointCWProxy {
|
||||
const _$PricePointCWProxyImpl(this._value);
|
||||
|
||||
final PricePoint _value;
|
||||
|
||||
@override
|
||||
PricePoint accruedInterest(String? accruedInterest) =>
|
||||
this(accruedInterest: accruedInterest);
|
||||
|
||||
@override
|
||||
PricePoint close(String close) => this(close: close);
|
||||
|
||||
@override
|
||||
PricePoint currency(String currency) => this(currency: currency);
|
||||
|
||||
@override
|
||||
PricePoint d(DateTime d) => this(d: d);
|
||||
|
||||
@override
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `PricePoint(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
///
|
||||
/// Usage
|
||||
/// ```dart
|
||||
/// PricePoint(...).copyWith(id: 12, name: "My name")
|
||||
/// ````
|
||||
PricePoint call({
|
||||
Object? accruedInterest = const $CopyWithPlaceholder(),
|
||||
Object? close = const $CopyWithPlaceholder(),
|
||||
Object? currency = const $CopyWithPlaceholder(),
|
||||
Object? d = const $CopyWithPlaceholder(),
|
||||
}) {
|
||||
return PricePoint(
|
||||
accruedInterest: accruedInterest == const $CopyWithPlaceholder()
|
||||
? _value.accruedInterest
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: accruedInterest as String?,
|
||||
close: close == const $CopyWithPlaceholder()
|
||||
? _value.close
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: close as String,
|
||||
currency: currency == const $CopyWithPlaceholder()
|
||||
? _value.currency
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: currency as String,
|
||||
d: d == const $CopyWithPlaceholder()
|
||||
? _value.d
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: d as DateTime,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
extension $PricePointCopyWith on PricePoint {
|
||||
/// Returns a callable class that can be used as follows: `instanceOfPricePoint.copyWith(...)` or like so:`instanceOfPricePoint.copyWith.fieldName(...)`.
|
||||
// ignore: library_private_types_in_public_api
|
||||
_$PricePointCWProxy get copyWith => _$PricePointCWProxyImpl(this);
|
||||
}
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
PricePoint _$PricePointFromJson(Map<String, dynamic> json) => $checkedCreate(
|
||||
'PricePoint',
|
||||
json,
|
||||
($checkedConvert) {
|
||||
$checkKeys(
|
||||
json,
|
||||
requiredKeys: const ['accrued_interest', 'close', 'currency', 'd'],
|
||||
);
|
||||
final val = PricePoint(
|
||||
accruedInterest: $checkedConvert('accrued_interest', (v) => v as String?),
|
||||
close: $checkedConvert('close', (v) => v as String),
|
||||
currency: $checkedConvert('currency', (v) => v as String),
|
||||
d: $checkedConvert('d', (v) => DateTime.parse(v as String)),
|
||||
);
|
||||
return val;
|
||||
},
|
||||
fieldKeyMap: const {'accruedInterest': 'accrued_interest'},
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$PricePointToJson(PricePoint instance) =>
|
||||
<String, dynamic>{
|
||||
'accrued_interest': instance.accruedInterest,
|
||||
'close': instance.close,
|
||||
'currency': instance.currency,
|
||||
'd': instance.d.toIso8601String(),
|
||||
};
|
||||
Reference in New Issue
Block a user