1748 lines
61 KiB
Dart
1748 lines
61 KiB
Dart
// coverage:ignore-file
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
// ignore_for_file: type=lint
|
|
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
|
|
|
|
part of 'analytic_dtos.dart';
|
|
|
|
// **************************************************************************
|
|
// FreezedGenerator
|
|
// **************************************************************************
|
|
|
|
T _$identity<T>(T value) => value;
|
|
|
|
final _privateConstructorUsedError = UnsupportedError(
|
|
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models',
|
|
);
|
|
|
|
DashboardAnalyticDto _$DashboardAnalyticDtoFromJson(Map<String, dynamic> json) {
|
|
return _DashboardAnalyticDto.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$DashboardAnalyticDto {
|
|
@JsonKey(name: "organization_id")
|
|
String? get organizationId => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "outlet_id")
|
|
String? get outletId => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "date_from")
|
|
String? get dateFrom => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "date_to")
|
|
String? get dateTo => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "overview")
|
|
DashboardOverviewDto? get overview => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "top_products")
|
|
List<DashboardTopProductDto>? get topProducts =>
|
|
throw _privateConstructorUsedError;
|
|
@JsonKey(name: "payment_methods")
|
|
List<DashboardPaymentMethodDto>? get paymentMethods =>
|
|
throw _privateConstructorUsedError;
|
|
@JsonKey(name: "recent_sales")
|
|
List<DashboardRecentSaleDto>? get recentSales =>
|
|
throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this DashboardAnalyticDto to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of DashboardAnalyticDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$DashboardAnalyticDtoCopyWith<DashboardAnalyticDto> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $DashboardAnalyticDtoCopyWith<$Res> {
|
|
factory $DashboardAnalyticDtoCopyWith(
|
|
DashboardAnalyticDto value,
|
|
$Res Function(DashboardAnalyticDto) then,
|
|
) = _$DashboardAnalyticDtoCopyWithImpl<$Res, DashboardAnalyticDto>;
|
|
@useResult
|
|
$Res call({
|
|
@JsonKey(name: "organization_id") String? organizationId,
|
|
@JsonKey(name: "outlet_id") String? outletId,
|
|
@JsonKey(name: "date_from") String? dateFrom,
|
|
@JsonKey(name: "date_to") String? dateTo,
|
|
@JsonKey(name: "overview") DashboardOverviewDto? overview,
|
|
@JsonKey(name: "top_products") List<DashboardTopProductDto>? topProducts,
|
|
@JsonKey(name: "payment_methods")
|
|
List<DashboardPaymentMethodDto>? paymentMethods,
|
|
@JsonKey(name: "recent_sales") List<DashboardRecentSaleDto>? recentSales,
|
|
});
|
|
|
|
$DashboardOverviewDtoCopyWith<$Res>? get overview;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$DashboardAnalyticDtoCopyWithImpl<
|
|
$Res,
|
|
$Val extends DashboardAnalyticDto
|
|
>
|
|
implements $DashboardAnalyticDtoCopyWith<$Res> {
|
|
_$DashboardAnalyticDtoCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of DashboardAnalyticDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? organizationId = freezed,
|
|
Object? outletId = freezed,
|
|
Object? dateFrom = freezed,
|
|
Object? dateTo = freezed,
|
|
Object? overview = freezed,
|
|
Object? topProducts = freezed,
|
|
Object? paymentMethods = freezed,
|
|
Object? recentSales = freezed,
|
|
}) {
|
|
return _then(
|
|
_value.copyWith(
|
|
organizationId: freezed == organizationId
|
|
? _value.organizationId
|
|
: organizationId // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
outletId: freezed == outletId
|
|
? _value.outletId
|
|
: outletId // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
dateFrom: freezed == dateFrom
|
|
? _value.dateFrom
|
|
: dateFrom // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
dateTo: freezed == dateTo
|
|
? _value.dateTo
|
|
: dateTo // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
overview: freezed == overview
|
|
? _value.overview
|
|
: overview // ignore: cast_nullable_to_non_nullable
|
|
as DashboardOverviewDto?,
|
|
topProducts: freezed == topProducts
|
|
? _value.topProducts
|
|
: topProducts // ignore: cast_nullable_to_non_nullable
|
|
as List<DashboardTopProductDto>?,
|
|
paymentMethods: freezed == paymentMethods
|
|
? _value.paymentMethods
|
|
: paymentMethods // ignore: cast_nullable_to_non_nullable
|
|
as List<DashboardPaymentMethodDto>?,
|
|
recentSales: freezed == recentSales
|
|
? _value.recentSales
|
|
: recentSales // ignore: cast_nullable_to_non_nullable
|
|
as List<DashboardRecentSaleDto>?,
|
|
)
|
|
as $Val,
|
|
);
|
|
}
|
|
|
|
/// Create a copy of DashboardAnalyticDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$DashboardOverviewDtoCopyWith<$Res>? get overview {
|
|
if (_value.overview == null) {
|
|
return null;
|
|
}
|
|
|
|
return $DashboardOverviewDtoCopyWith<$Res>(_value.overview!, (value) {
|
|
return _then(_value.copyWith(overview: value) as $Val);
|
|
});
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$DashboardAnalyticDtoImplCopyWith<$Res>
|
|
implements $DashboardAnalyticDtoCopyWith<$Res> {
|
|
factory _$$DashboardAnalyticDtoImplCopyWith(
|
|
_$DashboardAnalyticDtoImpl value,
|
|
$Res Function(_$DashboardAnalyticDtoImpl) then,
|
|
) = __$$DashboardAnalyticDtoImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({
|
|
@JsonKey(name: "organization_id") String? organizationId,
|
|
@JsonKey(name: "outlet_id") String? outletId,
|
|
@JsonKey(name: "date_from") String? dateFrom,
|
|
@JsonKey(name: "date_to") String? dateTo,
|
|
@JsonKey(name: "overview") DashboardOverviewDto? overview,
|
|
@JsonKey(name: "top_products") List<DashboardTopProductDto>? topProducts,
|
|
@JsonKey(name: "payment_methods")
|
|
List<DashboardPaymentMethodDto>? paymentMethods,
|
|
@JsonKey(name: "recent_sales") List<DashboardRecentSaleDto>? recentSales,
|
|
});
|
|
|
|
@override
|
|
$DashboardOverviewDtoCopyWith<$Res>? get overview;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$DashboardAnalyticDtoImplCopyWithImpl<$Res>
|
|
extends _$DashboardAnalyticDtoCopyWithImpl<$Res, _$DashboardAnalyticDtoImpl>
|
|
implements _$$DashboardAnalyticDtoImplCopyWith<$Res> {
|
|
__$$DashboardAnalyticDtoImplCopyWithImpl(
|
|
_$DashboardAnalyticDtoImpl _value,
|
|
$Res Function(_$DashboardAnalyticDtoImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of DashboardAnalyticDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? organizationId = freezed,
|
|
Object? outletId = freezed,
|
|
Object? dateFrom = freezed,
|
|
Object? dateTo = freezed,
|
|
Object? overview = freezed,
|
|
Object? topProducts = freezed,
|
|
Object? paymentMethods = freezed,
|
|
Object? recentSales = freezed,
|
|
}) {
|
|
return _then(
|
|
_$DashboardAnalyticDtoImpl(
|
|
organizationId: freezed == organizationId
|
|
? _value.organizationId
|
|
: organizationId // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
outletId: freezed == outletId
|
|
? _value.outletId
|
|
: outletId // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
dateFrom: freezed == dateFrom
|
|
? _value.dateFrom
|
|
: dateFrom // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
dateTo: freezed == dateTo
|
|
? _value.dateTo
|
|
: dateTo // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
overview: freezed == overview
|
|
? _value.overview
|
|
: overview // ignore: cast_nullable_to_non_nullable
|
|
as DashboardOverviewDto?,
|
|
topProducts: freezed == topProducts
|
|
? _value._topProducts
|
|
: topProducts // ignore: cast_nullable_to_non_nullable
|
|
as List<DashboardTopProductDto>?,
|
|
paymentMethods: freezed == paymentMethods
|
|
? _value._paymentMethods
|
|
: paymentMethods // ignore: cast_nullable_to_non_nullable
|
|
as List<DashboardPaymentMethodDto>?,
|
|
recentSales: freezed == recentSales
|
|
? _value._recentSales
|
|
: recentSales // ignore: cast_nullable_to_non_nullable
|
|
as List<DashboardRecentSaleDto>?,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$DashboardAnalyticDtoImpl extends _DashboardAnalyticDto {
|
|
const _$DashboardAnalyticDtoImpl({
|
|
@JsonKey(name: "organization_id") this.organizationId,
|
|
@JsonKey(name: "outlet_id") this.outletId,
|
|
@JsonKey(name: "date_from") this.dateFrom,
|
|
@JsonKey(name: "date_to") this.dateTo,
|
|
@JsonKey(name: "overview") this.overview,
|
|
@JsonKey(name: "top_products")
|
|
final List<DashboardTopProductDto>? topProducts,
|
|
@JsonKey(name: "payment_methods")
|
|
final List<DashboardPaymentMethodDto>? paymentMethods,
|
|
@JsonKey(name: "recent_sales")
|
|
final List<DashboardRecentSaleDto>? recentSales,
|
|
}) : _topProducts = topProducts,
|
|
_paymentMethods = paymentMethods,
|
|
_recentSales = recentSales,
|
|
super._();
|
|
|
|
factory _$DashboardAnalyticDtoImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$DashboardAnalyticDtoImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey(name: "organization_id")
|
|
final String? organizationId;
|
|
@override
|
|
@JsonKey(name: "outlet_id")
|
|
final String? outletId;
|
|
@override
|
|
@JsonKey(name: "date_from")
|
|
final String? dateFrom;
|
|
@override
|
|
@JsonKey(name: "date_to")
|
|
final String? dateTo;
|
|
@override
|
|
@JsonKey(name: "overview")
|
|
final DashboardOverviewDto? overview;
|
|
final List<DashboardTopProductDto>? _topProducts;
|
|
@override
|
|
@JsonKey(name: "top_products")
|
|
List<DashboardTopProductDto>? get topProducts {
|
|
final value = _topProducts;
|
|
if (value == null) return null;
|
|
if (_topProducts is EqualUnmodifiableListView) return _topProducts;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(value);
|
|
}
|
|
|
|
final List<DashboardPaymentMethodDto>? _paymentMethods;
|
|
@override
|
|
@JsonKey(name: "payment_methods")
|
|
List<DashboardPaymentMethodDto>? get paymentMethods {
|
|
final value = _paymentMethods;
|
|
if (value == null) return null;
|
|
if (_paymentMethods is EqualUnmodifiableListView) return _paymentMethods;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(value);
|
|
}
|
|
|
|
final List<DashboardRecentSaleDto>? _recentSales;
|
|
@override
|
|
@JsonKey(name: "recent_sales")
|
|
List<DashboardRecentSaleDto>? get recentSales {
|
|
final value = _recentSales;
|
|
if (value == null) return null;
|
|
if (_recentSales is EqualUnmodifiableListView) return _recentSales;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(value);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return 'DashboardAnalyticDto(organizationId: $organizationId, outletId: $outletId, dateFrom: $dateFrom, dateTo: $dateTo, overview: $overview, topProducts: $topProducts, paymentMethods: $paymentMethods, recentSales: $recentSales)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$DashboardAnalyticDtoImpl &&
|
|
(identical(other.organizationId, organizationId) ||
|
|
other.organizationId == organizationId) &&
|
|
(identical(other.outletId, outletId) ||
|
|
other.outletId == outletId) &&
|
|
(identical(other.dateFrom, dateFrom) ||
|
|
other.dateFrom == dateFrom) &&
|
|
(identical(other.dateTo, dateTo) || other.dateTo == dateTo) &&
|
|
(identical(other.overview, overview) ||
|
|
other.overview == overview) &&
|
|
const DeepCollectionEquality().equals(
|
|
other._topProducts,
|
|
_topProducts,
|
|
) &&
|
|
const DeepCollectionEquality().equals(
|
|
other._paymentMethods,
|
|
_paymentMethods,
|
|
) &&
|
|
const DeepCollectionEquality().equals(
|
|
other._recentSales,
|
|
_recentSales,
|
|
));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
organizationId,
|
|
outletId,
|
|
dateFrom,
|
|
dateTo,
|
|
overview,
|
|
const DeepCollectionEquality().hash(_topProducts),
|
|
const DeepCollectionEquality().hash(_paymentMethods),
|
|
const DeepCollectionEquality().hash(_recentSales),
|
|
);
|
|
|
|
/// Create a copy of DashboardAnalyticDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$DashboardAnalyticDtoImplCopyWith<_$DashboardAnalyticDtoImpl>
|
|
get copyWith =>
|
|
__$$DashboardAnalyticDtoImplCopyWithImpl<_$DashboardAnalyticDtoImpl>(
|
|
this,
|
|
_$identity,
|
|
);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$DashboardAnalyticDtoImplToJson(this);
|
|
}
|
|
}
|
|
|
|
abstract class _DashboardAnalyticDto extends DashboardAnalyticDto {
|
|
const factory _DashboardAnalyticDto({
|
|
@JsonKey(name: "organization_id") final String? organizationId,
|
|
@JsonKey(name: "outlet_id") final String? outletId,
|
|
@JsonKey(name: "date_from") final String? dateFrom,
|
|
@JsonKey(name: "date_to") final String? dateTo,
|
|
@JsonKey(name: "overview") final DashboardOverviewDto? overview,
|
|
@JsonKey(name: "top_products")
|
|
final List<DashboardTopProductDto>? topProducts,
|
|
@JsonKey(name: "payment_methods")
|
|
final List<DashboardPaymentMethodDto>? paymentMethods,
|
|
@JsonKey(name: "recent_sales")
|
|
final List<DashboardRecentSaleDto>? recentSales,
|
|
}) = _$DashboardAnalyticDtoImpl;
|
|
const _DashboardAnalyticDto._() : super._();
|
|
|
|
factory _DashboardAnalyticDto.fromJson(Map<String, dynamic> json) =
|
|
_$DashboardAnalyticDtoImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: "organization_id")
|
|
String? get organizationId;
|
|
@override
|
|
@JsonKey(name: "outlet_id")
|
|
String? get outletId;
|
|
@override
|
|
@JsonKey(name: "date_from")
|
|
String? get dateFrom;
|
|
@override
|
|
@JsonKey(name: "date_to")
|
|
String? get dateTo;
|
|
@override
|
|
@JsonKey(name: "overview")
|
|
DashboardOverviewDto? get overview;
|
|
@override
|
|
@JsonKey(name: "top_products")
|
|
List<DashboardTopProductDto>? get topProducts;
|
|
@override
|
|
@JsonKey(name: "payment_methods")
|
|
List<DashboardPaymentMethodDto>? get paymentMethods;
|
|
@override
|
|
@JsonKey(name: "recent_sales")
|
|
List<DashboardRecentSaleDto>? get recentSales;
|
|
|
|
/// Create a copy of DashboardAnalyticDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$DashboardAnalyticDtoImplCopyWith<_$DashboardAnalyticDtoImpl>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
DashboardOverviewDto _$DashboardOverviewDtoFromJson(Map<String, dynamic> json) {
|
|
return _DashboardOverviewDto.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$DashboardOverviewDto {
|
|
@JsonKey(name: "total_sales")
|
|
int? get totalSales => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "total_orders")
|
|
int? get totalOrders => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "average_order_value")
|
|
double? get averageOrderValue => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "total_customers")
|
|
int? get totalCustomers => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "voided_orders")
|
|
int? get voidedOrders => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "refunded_orders")
|
|
int? get refundedOrders => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this DashboardOverviewDto to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of DashboardOverviewDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$DashboardOverviewDtoCopyWith<DashboardOverviewDto> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $DashboardOverviewDtoCopyWith<$Res> {
|
|
factory $DashboardOverviewDtoCopyWith(
|
|
DashboardOverviewDto value,
|
|
$Res Function(DashboardOverviewDto) then,
|
|
) = _$DashboardOverviewDtoCopyWithImpl<$Res, DashboardOverviewDto>;
|
|
@useResult
|
|
$Res call({
|
|
@JsonKey(name: "total_sales") int? totalSales,
|
|
@JsonKey(name: "total_orders") int? totalOrders,
|
|
@JsonKey(name: "average_order_value") double? averageOrderValue,
|
|
@JsonKey(name: "total_customers") int? totalCustomers,
|
|
@JsonKey(name: "voided_orders") int? voidedOrders,
|
|
@JsonKey(name: "refunded_orders") int? refundedOrders,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$DashboardOverviewDtoCopyWithImpl<
|
|
$Res,
|
|
$Val extends DashboardOverviewDto
|
|
>
|
|
implements $DashboardOverviewDtoCopyWith<$Res> {
|
|
_$DashboardOverviewDtoCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of DashboardOverviewDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? totalSales = freezed,
|
|
Object? totalOrders = freezed,
|
|
Object? averageOrderValue = freezed,
|
|
Object? totalCustomers = freezed,
|
|
Object? voidedOrders = freezed,
|
|
Object? refundedOrders = freezed,
|
|
}) {
|
|
return _then(
|
|
_value.copyWith(
|
|
totalSales: freezed == totalSales
|
|
? _value.totalSales
|
|
: totalSales // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
totalOrders: freezed == totalOrders
|
|
? _value.totalOrders
|
|
: totalOrders // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
averageOrderValue: freezed == averageOrderValue
|
|
? _value.averageOrderValue
|
|
: averageOrderValue // ignore: cast_nullable_to_non_nullable
|
|
as double?,
|
|
totalCustomers: freezed == totalCustomers
|
|
? _value.totalCustomers
|
|
: totalCustomers // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
voidedOrders: freezed == voidedOrders
|
|
? _value.voidedOrders
|
|
: voidedOrders // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
refundedOrders: freezed == refundedOrders
|
|
? _value.refundedOrders
|
|
: refundedOrders // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
)
|
|
as $Val,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$DashboardOverviewDtoImplCopyWith<$Res>
|
|
implements $DashboardOverviewDtoCopyWith<$Res> {
|
|
factory _$$DashboardOverviewDtoImplCopyWith(
|
|
_$DashboardOverviewDtoImpl value,
|
|
$Res Function(_$DashboardOverviewDtoImpl) then,
|
|
) = __$$DashboardOverviewDtoImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({
|
|
@JsonKey(name: "total_sales") int? totalSales,
|
|
@JsonKey(name: "total_orders") int? totalOrders,
|
|
@JsonKey(name: "average_order_value") double? averageOrderValue,
|
|
@JsonKey(name: "total_customers") int? totalCustomers,
|
|
@JsonKey(name: "voided_orders") int? voidedOrders,
|
|
@JsonKey(name: "refunded_orders") int? refundedOrders,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$DashboardOverviewDtoImplCopyWithImpl<$Res>
|
|
extends _$DashboardOverviewDtoCopyWithImpl<$Res, _$DashboardOverviewDtoImpl>
|
|
implements _$$DashboardOverviewDtoImplCopyWith<$Res> {
|
|
__$$DashboardOverviewDtoImplCopyWithImpl(
|
|
_$DashboardOverviewDtoImpl _value,
|
|
$Res Function(_$DashboardOverviewDtoImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of DashboardOverviewDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? totalSales = freezed,
|
|
Object? totalOrders = freezed,
|
|
Object? averageOrderValue = freezed,
|
|
Object? totalCustomers = freezed,
|
|
Object? voidedOrders = freezed,
|
|
Object? refundedOrders = freezed,
|
|
}) {
|
|
return _then(
|
|
_$DashboardOverviewDtoImpl(
|
|
totalSales: freezed == totalSales
|
|
? _value.totalSales
|
|
: totalSales // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
totalOrders: freezed == totalOrders
|
|
? _value.totalOrders
|
|
: totalOrders // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
averageOrderValue: freezed == averageOrderValue
|
|
? _value.averageOrderValue
|
|
: averageOrderValue // ignore: cast_nullable_to_non_nullable
|
|
as double?,
|
|
totalCustomers: freezed == totalCustomers
|
|
? _value.totalCustomers
|
|
: totalCustomers // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
voidedOrders: freezed == voidedOrders
|
|
? _value.voidedOrders
|
|
: voidedOrders // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
refundedOrders: freezed == refundedOrders
|
|
? _value.refundedOrders
|
|
: refundedOrders // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$DashboardOverviewDtoImpl extends _DashboardOverviewDto {
|
|
const _$DashboardOverviewDtoImpl({
|
|
@JsonKey(name: "total_sales") this.totalSales,
|
|
@JsonKey(name: "total_orders") this.totalOrders,
|
|
@JsonKey(name: "average_order_value") this.averageOrderValue,
|
|
@JsonKey(name: "total_customers") this.totalCustomers,
|
|
@JsonKey(name: "voided_orders") this.voidedOrders,
|
|
@JsonKey(name: "refunded_orders") this.refundedOrders,
|
|
}) : super._();
|
|
|
|
factory _$DashboardOverviewDtoImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$DashboardOverviewDtoImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey(name: "total_sales")
|
|
final int? totalSales;
|
|
@override
|
|
@JsonKey(name: "total_orders")
|
|
final int? totalOrders;
|
|
@override
|
|
@JsonKey(name: "average_order_value")
|
|
final double? averageOrderValue;
|
|
@override
|
|
@JsonKey(name: "total_customers")
|
|
final int? totalCustomers;
|
|
@override
|
|
@JsonKey(name: "voided_orders")
|
|
final int? voidedOrders;
|
|
@override
|
|
@JsonKey(name: "refunded_orders")
|
|
final int? refundedOrders;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'DashboardOverviewDto(totalSales: $totalSales, totalOrders: $totalOrders, averageOrderValue: $averageOrderValue, totalCustomers: $totalCustomers, voidedOrders: $voidedOrders, refundedOrders: $refundedOrders)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$DashboardOverviewDtoImpl &&
|
|
(identical(other.totalSales, totalSales) ||
|
|
other.totalSales == totalSales) &&
|
|
(identical(other.totalOrders, totalOrders) ||
|
|
other.totalOrders == totalOrders) &&
|
|
(identical(other.averageOrderValue, averageOrderValue) ||
|
|
other.averageOrderValue == averageOrderValue) &&
|
|
(identical(other.totalCustomers, totalCustomers) ||
|
|
other.totalCustomers == totalCustomers) &&
|
|
(identical(other.voidedOrders, voidedOrders) ||
|
|
other.voidedOrders == voidedOrders) &&
|
|
(identical(other.refundedOrders, refundedOrders) ||
|
|
other.refundedOrders == refundedOrders));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
totalSales,
|
|
totalOrders,
|
|
averageOrderValue,
|
|
totalCustomers,
|
|
voidedOrders,
|
|
refundedOrders,
|
|
);
|
|
|
|
/// Create a copy of DashboardOverviewDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$DashboardOverviewDtoImplCopyWith<_$DashboardOverviewDtoImpl>
|
|
get copyWith =>
|
|
__$$DashboardOverviewDtoImplCopyWithImpl<_$DashboardOverviewDtoImpl>(
|
|
this,
|
|
_$identity,
|
|
);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$DashboardOverviewDtoImplToJson(this);
|
|
}
|
|
}
|
|
|
|
abstract class _DashboardOverviewDto extends DashboardOverviewDto {
|
|
const factory _DashboardOverviewDto({
|
|
@JsonKey(name: "total_sales") final int? totalSales,
|
|
@JsonKey(name: "total_orders") final int? totalOrders,
|
|
@JsonKey(name: "average_order_value") final double? averageOrderValue,
|
|
@JsonKey(name: "total_customers") final int? totalCustomers,
|
|
@JsonKey(name: "voided_orders") final int? voidedOrders,
|
|
@JsonKey(name: "refunded_orders") final int? refundedOrders,
|
|
}) = _$DashboardOverviewDtoImpl;
|
|
const _DashboardOverviewDto._() : super._();
|
|
|
|
factory _DashboardOverviewDto.fromJson(Map<String, dynamic> json) =
|
|
_$DashboardOverviewDtoImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: "total_sales")
|
|
int? get totalSales;
|
|
@override
|
|
@JsonKey(name: "total_orders")
|
|
int? get totalOrders;
|
|
@override
|
|
@JsonKey(name: "average_order_value")
|
|
double? get averageOrderValue;
|
|
@override
|
|
@JsonKey(name: "total_customers")
|
|
int? get totalCustomers;
|
|
@override
|
|
@JsonKey(name: "voided_orders")
|
|
int? get voidedOrders;
|
|
@override
|
|
@JsonKey(name: "refunded_orders")
|
|
int? get refundedOrders;
|
|
|
|
/// Create a copy of DashboardOverviewDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$DashboardOverviewDtoImplCopyWith<_$DashboardOverviewDtoImpl>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
DashboardTopProductDto _$DashboardTopProductDtoFromJson(
|
|
Map<String, dynamic> json,
|
|
) {
|
|
return _DashboardTopProductDto.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$DashboardTopProductDto {
|
|
@JsonKey(name: "product_id")
|
|
String? get productId => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "product_name")
|
|
String? get productName => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "category_id")
|
|
String? get categoryId => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "category_name")
|
|
String? get categoryName => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "quantity_sold")
|
|
int? get quantitySold => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "revenue")
|
|
int? get revenue => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "average_price")
|
|
double? get averagePrice => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "order_count")
|
|
int? get orderCount => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this DashboardTopProductDto to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of DashboardTopProductDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$DashboardTopProductDtoCopyWith<DashboardTopProductDto> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $DashboardTopProductDtoCopyWith<$Res> {
|
|
factory $DashboardTopProductDtoCopyWith(
|
|
DashboardTopProductDto value,
|
|
$Res Function(DashboardTopProductDto) then,
|
|
) = _$DashboardTopProductDtoCopyWithImpl<$Res, DashboardTopProductDto>;
|
|
@useResult
|
|
$Res call({
|
|
@JsonKey(name: "product_id") String? productId,
|
|
@JsonKey(name: "product_name") String? productName,
|
|
@JsonKey(name: "category_id") String? categoryId,
|
|
@JsonKey(name: "category_name") String? categoryName,
|
|
@JsonKey(name: "quantity_sold") int? quantitySold,
|
|
@JsonKey(name: "revenue") int? revenue,
|
|
@JsonKey(name: "average_price") double? averagePrice,
|
|
@JsonKey(name: "order_count") int? orderCount,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$DashboardTopProductDtoCopyWithImpl<
|
|
$Res,
|
|
$Val extends DashboardTopProductDto
|
|
>
|
|
implements $DashboardTopProductDtoCopyWith<$Res> {
|
|
_$DashboardTopProductDtoCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of DashboardTopProductDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? productId = freezed,
|
|
Object? productName = freezed,
|
|
Object? categoryId = freezed,
|
|
Object? categoryName = freezed,
|
|
Object? quantitySold = freezed,
|
|
Object? revenue = freezed,
|
|
Object? averagePrice = freezed,
|
|
Object? orderCount = freezed,
|
|
}) {
|
|
return _then(
|
|
_value.copyWith(
|
|
productId: freezed == productId
|
|
? _value.productId
|
|
: productId // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
productName: freezed == productName
|
|
? _value.productName
|
|
: productName // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
categoryId: freezed == categoryId
|
|
? _value.categoryId
|
|
: categoryId // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
categoryName: freezed == categoryName
|
|
? _value.categoryName
|
|
: categoryName // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
quantitySold: freezed == quantitySold
|
|
? _value.quantitySold
|
|
: quantitySold // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
revenue: freezed == revenue
|
|
? _value.revenue
|
|
: revenue // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
averagePrice: freezed == averagePrice
|
|
? _value.averagePrice
|
|
: averagePrice // ignore: cast_nullable_to_non_nullable
|
|
as double?,
|
|
orderCount: freezed == orderCount
|
|
? _value.orderCount
|
|
: orderCount // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
)
|
|
as $Val,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$DashboardTopProductDtoImplCopyWith<$Res>
|
|
implements $DashboardTopProductDtoCopyWith<$Res> {
|
|
factory _$$DashboardTopProductDtoImplCopyWith(
|
|
_$DashboardTopProductDtoImpl value,
|
|
$Res Function(_$DashboardTopProductDtoImpl) then,
|
|
) = __$$DashboardTopProductDtoImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({
|
|
@JsonKey(name: "product_id") String? productId,
|
|
@JsonKey(name: "product_name") String? productName,
|
|
@JsonKey(name: "category_id") String? categoryId,
|
|
@JsonKey(name: "category_name") String? categoryName,
|
|
@JsonKey(name: "quantity_sold") int? quantitySold,
|
|
@JsonKey(name: "revenue") int? revenue,
|
|
@JsonKey(name: "average_price") double? averagePrice,
|
|
@JsonKey(name: "order_count") int? orderCount,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$DashboardTopProductDtoImplCopyWithImpl<$Res>
|
|
extends
|
|
_$DashboardTopProductDtoCopyWithImpl<$Res, _$DashboardTopProductDtoImpl>
|
|
implements _$$DashboardTopProductDtoImplCopyWith<$Res> {
|
|
__$$DashboardTopProductDtoImplCopyWithImpl(
|
|
_$DashboardTopProductDtoImpl _value,
|
|
$Res Function(_$DashboardTopProductDtoImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of DashboardTopProductDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? productId = freezed,
|
|
Object? productName = freezed,
|
|
Object? categoryId = freezed,
|
|
Object? categoryName = freezed,
|
|
Object? quantitySold = freezed,
|
|
Object? revenue = freezed,
|
|
Object? averagePrice = freezed,
|
|
Object? orderCount = freezed,
|
|
}) {
|
|
return _then(
|
|
_$DashboardTopProductDtoImpl(
|
|
productId: freezed == productId
|
|
? _value.productId
|
|
: productId // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
productName: freezed == productName
|
|
? _value.productName
|
|
: productName // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
categoryId: freezed == categoryId
|
|
? _value.categoryId
|
|
: categoryId // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
categoryName: freezed == categoryName
|
|
? _value.categoryName
|
|
: categoryName // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
quantitySold: freezed == quantitySold
|
|
? _value.quantitySold
|
|
: quantitySold // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
revenue: freezed == revenue
|
|
? _value.revenue
|
|
: revenue // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
averagePrice: freezed == averagePrice
|
|
? _value.averagePrice
|
|
: averagePrice // ignore: cast_nullable_to_non_nullable
|
|
as double?,
|
|
orderCount: freezed == orderCount
|
|
? _value.orderCount
|
|
: orderCount // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$DashboardTopProductDtoImpl extends _DashboardTopProductDto {
|
|
const _$DashboardTopProductDtoImpl({
|
|
@JsonKey(name: "product_id") this.productId,
|
|
@JsonKey(name: "product_name") this.productName,
|
|
@JsonKey(name: "category_id") this.categoryId,
|
|
@JsonKey(name: "category_name") this.categoryName,
|
|
@JsonKey(name: "quantity_sold") this.quantitySold,
|
|
@JsonKey(name: "revenue") this.revenue,
|
|
@JsonKey(name: "average_price") this.averagePrice,
|
|
@JsonKey(name: "order_count") this.orderCount,
|
|
}) : super._();
|
|
|
|
factory _$DashboardTopProductDtoImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$DashboardTopProductDtoImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey(name: "product_id")
|
|
final String? productId;
|
|
@override
|
|
@JsonKey(name: "product_name")
|
|
final String? productName;
|
|
@override
|
|
@JsonKey(name: "category_id")
|
|
final String? categoryId;
|
|
@override
|
|
@JsonKey(name: "category_name")
|
|
final String? categoryName;
|
|
@override
|
|
@JsonKey(name: "quantity_sold")
|
|
final int? quantitySold;
|
|
@override
|
|
@JsonKey(name: "revenue")
|
|
final int? revenue;
|
|
@override
|
|
@JsonKey(name: "average_price")
|
|
final double? averagePrice;
|
|
@override
|
|
@JsonKey(name: "order_count")
|
|
final int? orderCount;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'DashboardTopProductDto(productId: $productId, productName: $productName, categoryId: $categoryId, categoryName: $categoryName, quantitySold: $quantitySold, revenue: $revenue, averagePrice: $averagePrice, orderCount: $orderCount)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$DashboardTopProductDtoImpl &&
|
|
(identical(other.productId, productId) ||
|
|
other.productId == productId) &&
|
|
(identical(other.productName, productName) ||
|
|
other.productName == productName) &&
|
|
(identical(other.categoryId, categoryId) ||
|
|
other.categoryId == categoryId) &&
|
|
(identical(other.categoryName, categoryName) ||
|
|
other.categoryName == categoryName) &&
|
|
(identical(other.quantitySold, quantitySold) ||
|
|
other.quantitySold == quantitySold) &&
|
|
(identical(other.revenue, revenue) || other.revenue == revenue) &&
|
|
(identical(other.averagePrice, averagePrice) ||
|
|
other.averagePrice == averagePrice) &&
|
|
(identical(other.orderCount, orderCount) ||
|
|
other.orderCount == orderCount));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
productId,
|
|
productName,
|
|
categoryId,
|
|
categoryName,
|
|
quantitySold,
|
|
revenue,
|
|
averagePrice,
|
|
orderCount,
|
|
);
|
|
|
|
/// Create a copy of DashboardTopProductDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$DashboardTopProductDtoImplCopyWith<_$DashboardTopProductDtoImpl>
|
|
get copyWith =>
|
|
__$$DashboardTopProductDtoImplCopyWithImpl<_$DashboardTopProductDtoImpl>(
|
|
this,
|
|
_$identity,
|
|
);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$DashboardTopProductDtoImplToJson(this);
|
|
}
|
|
}
|
|
|
|
abstract class _DashboardTopProductDto extends DashboardTopProductDto {
|
|
const factory _DashboardTopProductDto({
|
|
@JsonKey(name: "product_id") final String? productId,
|
|
@JsonKey(name: "product_name") final String? productName,
|
|
@JsonKey(name: "category_id") final String? categoryId,
|
|
@JsonKey(name: "category_name") final String? categoryName,
|
|
@JsonKey(name: "quantity_sold") final int? quantitySold,
|
|
@JsonKey(name: "revenue") final int? revenue,
|
|
@JsonKey(name: "average_price") final double? averagePrice,
|
|
@JsonKey(name: "order_count") final int? orderCount,
|
|
}) = _$DashboardTopProductDtoImpl;
|
|
const _DashboardTopProductDto._() : super._();
|
|
|
|
factory _DashboardTopProductDto.fromJson(Map<String, dynamic> json) =
|
|
_$DashboardTopProductDtoImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: "product_id")
|
|
String? get productId;
|
|
@override
|
|
@JsonKey(name: "product_name")
|
|
String? get productName;
|
|
@override
|
|
@JsonKey(name: "category_id")
|
|
String? get categoryId;
|
|
@override
|
|
@JsonKey(name: "category_name")
|
|
String? get categoryName;
|
|
@override
|
|
@JsonKey(name: "quantity_sold")
|
|
int? get quantitySold;
|
|
@override
|
|
@JsonKey(name: "revenue")
|
|
int? get revenue;
|
|
@override
|
|
@JsonKey(name: "average_price")
|
|
double? get averagePrice;
|
|
@override
|
|
@JsonKey(name: "order_count")
|
|
int? get orderCount;
|
|
|
|
/// Create a copy of DashboardTopProductDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$DashboardTopProductDtoImplCopyWith<_$DashboardTopProductDtoImpl>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
DashboardPaymentMethodDto _$DashboardPaymentMethodDtoFromJson(
|
|
Map<String, dynamic> json,
|
|
) {
|
|
return _DashboardPaymentMethodDto.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$DashboardPaymentMethodDto {
|
|
@JsonKey(name: "payment_method_id")
|
|
String? get paymentMethodId => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "payment_method_name")
|
|
String? get paymentMethodName => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "payment_method_type")
|
|
String? get paymentMethodType => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "total_amount")
|
|
int? get totalAmount => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "order_count")
|
|
int? get orderCount => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "payment_count")
|
|
int? get paymentCount => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "percentage")
|
|
double? get percentage => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this DashboardPaymentMethodDto to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of DashboardPaymentMethodDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$DashboardPaymentMethodDtoCopyWith<DashboardPaymentMethodDto> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $DashboardPaymentMethodDtoCopyWith<$Res> {
|
|
factory $DashboardPaymentMethodDtoCopyWith(
|
|
DashboardPaymentMethodDto value,
|
|
$Res Function(DashboardPaymentMethodDto) then,
|
|
) = _$DashboardPaymentMethodDtoCopyWithImpl<$Res, DashboardPaymentMethodDto>;
|
|
@useResult
|
|
$Res call({
|
|
@JsonKey(name: "payment_method_id") String? paymentMethodId,
|
|
@JsonKey(name: "payment_method_name") String? paymentMethodName,
|
|
@JsonKey(name: "payment_method_type") String? paymentMethodType,
|
|
@JsonKey(name: "total_amount") int? totalAmount,
|
|
@JsonKey(name: "order_count") int? orderCount,
|
|
@JsonKey(name: "payment_count") int? paymentCount,
|
|
@JsonKey(name: "percentage") double? percentage,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$DashboardPaymentMethodDtoCopyWithImpl<
|
|
$Res,
|
|
$Val extends DashboardPaymentMethodDto
|
|
>
|
|
implements $DashboardPaymentMethodDtoCopyWith<$Res> {
|
|
_$DashboardPaymentMethodDtoCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of DashboardPaymentMethodDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? paymentMethodId = freezed,
|
|
Object? paymentMethodName = freezed,
|
|
Object? paymentMethodType = freezed,
|
|
Object? totalAmount = freezed,
|
|
Object? orderCount = freezed,
|
|
Object? paymentCount = freezed,
|
|
Object? percentage = freezed,
|
|
}) {
|
|
return _then(
|
|
_value.copyWith(
|
|
paymentMethodId: freezed == paymentMethodId
|
|
? _value.paymentMethodId
|
|
: paymentMethodId // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
paymentMethodName: freezed == paymentMethodName
|
|
? _value.paymentMethodName
|
|
: paymentMethodName // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
paymentMethodType: freezed == paymentMethodType
|
|
? _value.paymentMethodType
|
|
: paymentMethodType // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
totalAmount: freezed == totalAmount
|
|
? _value.totalAmount
|
|
: totalAmount // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
orderCount: freezed == orderCount
|
|
? _value.orderCount
|
|
: orderCount // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
paymentCount: freezed == paymentCount
|
|
? _value.paymentCount
|
|
: paymentCount // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
percentage: freezed == percentage
|
|
? _value.percentage
|
|
: percentage // ignore: cast_nullable_to_non_nullable
|
|
as double?,
|
|
)
|
|
as $Val,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$DashboardPaymentMethodDtoImplCopyWith<$Res>
|
|
implements $DashboardPaymentMethodDtoCopyWith<$Res> {
|
|
factory _$$DashboardPaymentMethodDtoImplCopyWith(
|
|
_$DashboardPaymentMethodDtoImpl value,
|
|
$Res Function(_$DashboardPaymentMethodDtoImpl) then,
|
|
) = __$$DashboardPaymentMethodDtoImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({
|
|
@JsonKey(name: "payment_method_id") String? paymentMethodId,
|
|
@JsonKey(name: "payment_method_name") String? paymentMethodName,
|
|
@JsonKey(name: "payment_method_type") String? paymentMethodType,
|
|
@JsonKey(name: "total_amount") int? totalAmount,
|
|
@JsonKey(name: "order_count") int? orderCount,
|
|
@JsonKey(name: "payment_count") int? paymentCount,
|
|
@JsonKey(name: "percentage") double? percentage,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$DashboardPaymentMethodDtoImplCopyWithImpl<$Res>
|
|
extends
|
|
_$DashboardPaymentMethodDtoCopyWithImpl<
|
|
$Res,
|
|
_$DashboardPaymentMethodDtoImpl
|
|
>
|
|
implements _$$DashboardPaymentMethodDtoImplCopyWith<$Res> {
|
|
__$$DashboardPaymentMethodDtoImplCopyWithImpl(
|
|
_$DashboardPaymentMethodDtoImpl _value,
|
|
$Res Function(_$DashboardPaymentMethodDtoImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of DashboardPaymentMethodDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? paymentMethodId = freezed,
|
|
Object? paymentMethodName = freezed,
|
|
Object? paymentMethodType = freezed,
|
|
Object? totalAmount = freezed,
|
|
Object? orderCount = freezed,
|
|
Object? paymentCount = freezed,
|
|
Object? percentage = freezed,
|
|
}) {
|
|
return _then(
|
|
_$DashboardPaymentMethodDtoImpl(
|
|
paymentMethodId: freezed == paymentMethodId
|
|
? _value.paymentMethodId
|
|
: paymentMethodId // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
paymentMethodName: freezed == paymentMethodName
|
|
? _value.paymentMethodName
|
|
: paymentMethodName // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
paymentMethodType: freezed == paymentMethodType
|
|
? _value.paymentMethodType
|
|
: paymentMethodType // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
totalAmount: freezed == totalAmount
|
|
? _value.totalAmount
|
|
: totalAmount // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
orderCount: freezed == orderCount
|
|
? _value.orderCount
|
|
: orderCount // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
paymentCount: freezed == paymentCount
|
|
? _value.paymentCount
|
|
: paymentCount // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
percentage: freezed == percentage
|
|
? _value.percentage
|
|
: percentage // ignore: cast_nullable_to_non_nullable
|
|
as double?,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$DashboardPaymentMethodDtoImpl extends _DashboardPaymentMethodDto {
|
|
const _$DashboardPaymentMethodDtoImpl({
|
|
@JsonKey(name: "payment_method_id") this.paymentMethodId,
|
|
@JsonKey(name: "payment_method_name") this.paymentMethodName,
|
|
@JsonKey(name: "payment_method_type") this.paymentMethodType,
|
|
@JsonKey(name: "total_amount") this.totalAmount,
|
|
@JsonKey(name: "order_count") this.orderCount,
|
|
@JsonKey(name: "payment_count") this.paymentCount,
|
|
@JsonKey(name: "percentage") this.percentage,
|
|
}) : super._();
|
|
|
|
factory _$DashboardPaymentMethodDtoImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$DashboardPaymentMethodDtoImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey(name: "payment_method_id")
|
|
final String? paymentMethodId;
|
|
@override
|
|
@JsonKey(name: "payment_method_name")
|
|
final String? paymentMethodName;
|
|
@override
|
|
@JsonKey(name: "payment_method_type")
|
|
final String? paymentMethodType;
|
|
@override
|
|
@JsonKey(name: "total_amount")
|
|
final int? totalAmount;
|
|
@override
|
|
@JsonKey(name: "order_count")
|
|
final int? orderCount;
|
|
@override
|
|
@JsonKey(name: "payment_count")
|
|
final int? paymentCount;
|
|
@override
|
|
@JsonKey(name: "percentage")
|
|
final double? percentage;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'DashboardPaymentMethodDto(paymentMethodId: $paymentMethodId, paymentMethodName: $paymentMethodName, paymentMethodType: $paymentMethodType, totalAmount: $totalAmount, orderCount: $orderCount, paymentCount: $paymentCount, percentage: $percentage)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$DashboardPaymentMethodDtoImpl &&
|
|
(identical(other.paymentMethodId, paymentMethodId) ||
|
|
other.paymentMethodId == paymentMethodId) &&
|
|
(identical(other.paymentMethodName, paymentMethodName) ||
|
|
other.paymentMethodName == paymentMethodName) &&
|
|
(identical(other.paymentMethodType, paymentMethodType) ||
|
|
other.paymentMethodType == paymentMethodType) &&
|
|
(identical(other.totalAmount, totalAmount) ||
|
|
other.totalAmount == totalAmount) &&
|
|
(identical(other.orderCount, orderCount) ||
|
|
other.orderCount == orderCount) &&
|
|
(identical(other.paymentCount, paymentCount) ||
|
|
other.paymentCount == paymentCount) &&
|
|
(identical(other.percentage, percentage) ||
|
|
other.percentage == percentage));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
paymentMethodId,
|
|
paymentMethodName,
|
|
paymentMethodType,
|
|
totalAmount,
|
|
orderCount,
|
|
paymentCount,
|
|
percentage,
|
|
);
|
|
|
|
/// Create a copy of DashboardPaymentMethodDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$DashboardPaymentMethodDtoImplCopyWith<_$DashboardPaymentMethodDtoImpl>
|
|
get copyWith =>
|
|
__$$DashboardPaymentMethodDtoImplCopyWithImpl<
|
|
_$DashboardPaymentMethodDtoImpl
|
|
>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$DashboardPaymentMethodDtoImplToJson(this);
|
|
}
|
|
}
|
|
|
|
abstract class _DashboardPaymentMethodDto extends DashboardPaymentMethodDto {
|
|
const factory _DashboardPaymentMethodDto({
|
|
@JsonKey(name: "payment_method_id") final String? paymentMethodId,
|
|
@JsonKey(name: "payment_method_name") final String? paymentMethodName,
|
|
@JsonKey(name: "payment_method_type") final String? paymentMethodType,
|
|
@JsonKey(name: "total_amount") final int? totalAmount,
|
|
@JsonKey(name: "order_count") final int? orderCount,
|
|
@JsonKey(name: "payment_count") final int? paymentCount,
|
|
@JsonKey(name: "percentage") final double? percentage,
|
|
}) = _$DashboardPaymentMethodDtoImpl;
|
|
const _DashboardPaymentMethodDto._() : super._();
|
|
|
|
factory _DashboardPaymentMethodDto.fromJson(Map<String, dynamic> json) =
|
|
_$DashboardPaymentMethodDtoImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: "payment_method_id")
|
|
String? get paymentMethodId;
|
|
@override
|
|
@JsonKey(name: "payment_method_name")
|
|
String? get paymentMethodName;
|
|
@override
|
|
@JsonKey(name: "payment_method_type")
|
|
String? get paymentMethodType;
|
|
@override
|
|
@JsonKey(name: "total_amount")
|
|
int? get totalAmount;
|
|
@override
|
|
@JsonKey(name: "order_count")
|
|
int? get orderCount;
|
|
@override
|
|
@JsonKey(name: "payment_count")
|
|
int? get paymentCount;
|
|
@override
|
|
@JsonKey(name: "percentage")
|
|
double? get percentage;
|
|
|
|
/// Create a copy of DashboardPaymentMethodDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$DashboardPaymentMethodDtoImplCopyWith<_$DashboardPaymentMethodDtoImpl>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
DashboardRecentSaleDto _$DashboardRecentSaleDtoFromJson(
|
|
Map<String, dynamic> json,
|
|
) {
|
|
return _DashboardRecentSaleDto.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$DashboardRecentSaleDto {
|
|
@JsonKey(name: "date")
|
|
String? get date => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "sales")
|
|
int? get sales => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "orders")
|
|
int? get orders => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "items")
|
|
int? get items => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "tax")
|
|
int? get tax => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "discount")
|
|
int? get discount => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "net_sales")
|
|
int? get netSales => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this DashboardRecentSaleDto to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of DashboardRecentSaleDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$DashboardRecentSaleDtoCopyWith<DashboardRecentSaleDto> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $DashboardRecentSaleDtoCopyWith<$Res> {
|
|
factory $DashboardRecentSaleDtoCopyWith(
|
|
DashboardRecentSaleDto value,
|
|
$Res Function(DashboardRecentSaleDto) then,
|
|
) = _$DashboardRecentSaleDtoCopyWithImpl<$Res, DashboardRecentSaleDto>;
|
|
@useResult
|
|
$Res call({
|
|
@JsonKey(name: "date") String? date,
|
|
@JsonKey(name: "sales") int? sales,
|
|
@JsonKey(name: "orders") int? orders,
|
|
@JsonKey(name: "items") int? items,
|
|
@JsonKey(name: "tax") int? tax,
|
|
@JsonKey(name: "discount") int? discount,
|
|
@JsonKey(name: "net_sales") int? netSales,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$DashboardRecentSaleDtoCopyWithImpl<
|
|
$Res,
|
|
$Val extends DashboardRecentSaleDto
|
|
>
|
|
implements $DashboardRecentSaleDtoCopyWith<$Res> {
|
|
_$DashboardRecentSaleDtoCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of DashboardRecentSaleDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? date = freezed,
|
|
Object? sales = freezed,
|
|
Object? orders = freezed,
|
|
Object? items = freezed,
|
|
Object? tax = freezed,
|
|
Object? discount = freezed,
|
|
Object? netSales = freezed,
|
|
}) {
|
|
return _then(
|
|
_value.copyWith(
|
|
date: freezed == date
|
|
? _value.date
|
|
: date // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
sales: freezed == sales
|
|
? _value.sales
|
|
: sales // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
orders: freezed == orders
|
|
? _value.orders
|
|
: orders // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
items: freezed == items
|
|
? _value.items
|
|
: items // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
tax: freezed == tax
|
|
? _value.tax
|
|
: tax // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
discount: freezed == discount
|
|
? _value.discount
|
|
: discount // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
netSales: freezed == netSales
|
|
? _value.netSales
|
|
: netSales // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
)
|
|
as $Val,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$DashboardRecentSaleDtoImplCopyWith<$Res>
|
|
implements $DashboardRecentSaleDtoCopyWith<$Res> {
|
|
factory _$$DashboardRecentSaleDtoImplCopyWith(
|
|
_$DashboardRecentSaleDtoImpl value,
|
|
$Res Function(_$DashboardRecentSaleDtoImpl) then,
|
|
) = __$$DashboardRecentSaleDtoImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({
|
|
@JsonKey(name: "date") String? date,
|
|
@JsonKey(name: "sales") int? sales,
|
|
@JsonKey(name: "orders") int? orders,
|
|
@JsonKey(name: "items") int? items,
|
|
@JsonKey(name: "tax") int? tax,
|
|
@JsonKey(name: "discount") int? discount,
|
|
@JsonKey(name: "net_sales") int? netSales,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$DashboardRecentSaleDtoImplCopyWithImpl<$Res>
|
|
extends
|
|
_$DashboardRecentSaleDtoCopyWithImpl<$Res, _$DashboardRecentSaleDtoImpl>
|
|
implements _$$DashboardRecentSaleDtoImplCopyWith<$Res> {
|
|
__$$DashboardRecentSaleDtoImplCopyWithImpl(
|
|
_$DashboardRecentSaleDtoImpl _value,
|
|
$Res Function(_$DashboardRecentSaleDtoImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of DashboardRecentSaleDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? date = freezed,
|
|
Object? sales = freezed,
|
|
Object? orders = freezed,
|
|
Object? items = freezed,
|
|
Object? tax = freezed,
|
|
Object? discount = freezed,
|
|
Object? netSales = freezed,
|
|
}) {
|
|
return _then(
|
|
_$DashboardRecentSaleDtoImpl(
|
|
date: freezed == date
|
|
? _value.date
|
|
: date // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
sales: freezed == sales
|
|
? _value.sales
|
|
: sales // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
orders: freezed == orders
|
|
? _value.orders
|
|
: orders // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
items: freezed == items
|
|
? _value.items
|
|
: items // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
tax: freezed == tax
|
|
? _value.tax
|
|
: tax // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
discount: freezed == discount
|
|
? _value.discount
|
|
: discount // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
netSales: freezed == netSales
|
|
? _value.netSales
|
|
: netSales // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$DashboardRecentSaleDtoImpl extends _DashboardRecentSaleDto {
|
|
const _$DashboardRecentSaleDtoImpl({
|
|
@JsonKey(name: "date") this.date,
|
|
@JsonKey(name: "sales") this.sales,
|
|
@JsonKey(name: "orders") this.orders,
|
|
@JsonKey(name: "items") this.items,
|
|
@JsonKey(name: "tax") this.tax,
|
|
@JsonKey(name: "discount") this.discount,
|
|
@JsonKey(name: "net_sales") this.netSales,
|
|
}) : super._();
|
|
|
|
factory _$DashboardRecentSaleDtoImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$DashboardRecentSaleDtoImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey(name: "date")
|
|
final String? date;
|
|
@override
|
|
@JsonKey(name: "sales")
|
|
final int? sales;
|
|
@override
|
|
@JsonKey(name: "orders")
|
|
final int? orders;
|
|
@override
|
|
@JsonKey(name: "items")
|
|
final int? items;
|
|
@override
|
|
@JsonKey(name: "tax")
|
|
final int? tax;
|
|
@override
|
|
@JsonKey(name: "discount")
|
|
final int? discount;
|
|
@override
|
|
@JsonKey(name: "net_sales")
|
|
final int? netSales;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'DashboardRecentSaleDto(date: $date, sales: $sales, orders: $orders, items: $items, tax: $tax, discount: $discount, netSales: $netSales)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$DashboardRecentSaleDtoImpl &&
|
|
(identical(other.date, date) || other.date == date) &&
|
|
(identical(other.sales, sales) || other.sales == sales) &&
|
|
(identical(other.orders, orders) || other.orders == orders) &&
|
|
(identical(other.items, items) || other.items == items) &&
|
|
(identical(other.tax, tax) || other.tax == tax) &&
|
|
(identical(other.discount, discount) ||
|
|
other.discount == discount) &&
|
|
(identical(other.netSales, netSales) ||
|
|
other.netSales == netSales));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
date,
|
|
sales,
|
|
orders,
|
|
items,
|
|
tax,
|
|
discount,
|
|
netSales,
|
|
);
|
|
|
|
/// Create a copy of DashboardRecentSaleDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$DashboardRecentSaleDtoImplCopyWith<_$DashboardRecentSaleDtoImpl>
|
|
get copyWith =>
|
|
__$$DashboardRecentSaleDtoImplCopyWithImpl<_$DashboardRecentSaleDtoImpl>(
|
|
this,
|
|
_$identity,
|
|
);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$DashboardRecentSaleDtoImplToJson(this);
|
|
}
|
|
}
|
|
|
|
abstract class _DashboardRecentSaleDto extends DashboardRecentSaleDto {
|
|
const factory _DashboardRecentSaleDto({
|
|
@JsonKey(name: "date") final String? date,
|
|
@JsonKey(name: "sales") final int? sales,
|
|
@JsonKey(name: "orders") final int? orders,
|
|
@JsonKey(name: "items") final int? items,
|
|
@JsonKey(name: "tax") final int? tax,
|
|
@JsonKey(name: "discount") final int? discount,
|
|
@JsonKey(name: "net_sales") final int? netSales,
|
|
}) = _$DashboardRecentSaleDtoImpl;
|
|
const _DashboardRecentSaleDto._() : super._();
|
|
|
|
factory _DashboardRecentSaleDto.fromJson(Map<String, dynamic> json) =
|
|
_$DashboardRecentSaleDtoImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: "date")
|
|
String? get date;
|
|
@override
|
|
@JsonKey(name: "sales")
|
|
int? get sales;
|
|
@override
|
|
@JsonKey(name: "orders")
|
|
int? get orders;
|
|
@override
|
|
@JsonKey(name: "items")
|
|
int? get items;
|
|
@override
|
|
@JsonKey(name: "tax")
|
|
int? get tax;
|
|
@override
|
|
@JsonKey(name: "discount")
|
|
int? get discount;
|
|
@override
|
|
@JsonKey(name: "net_sales")
|
|
int? get netSales;
|
|
|
|
/// Create a copy of DashboardRecentSaleDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$DashboardRecentSaleDtoImplCopyWith<_$DashboardRecentSaleDtoImpl>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|