// 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.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** T _$identity(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', ); /// @nodoc mixin _$SalesAnalytic { String get organizationId => throw _privateConstructorUsedError; String get outletId => throw _privateConstructorUsedError; DateTime get dateFrom => throw _privateConstructorUsedError; DateTime get dateTo => throw _privateConstructorUsedError; String get groupBy => throw _privateConstructorUsedError; SalesAnalyticSummary get summary => throw _privateConstructorUsedError; List get data => throw _privateConstructorUsedError; /// Create a copy of SalesAnalytic /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $SalesAnalyticCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $SalesAnalyticCopyWith<$Res> { factory $SalesAnalyticCopyWith( SalesAnalytic value, $Res Function(SalesAnalytic) then, ) = _$SalesAnalyticCopyWithImpl<$Res, SalesAnalytic>; @useResult $Res call({ String organizationId, String outletId, DateTime dateFrom, DateTime dateTo, String groupBy, SalesAnalyticSummary summary, List data, }); $SalesAnalyticSummaryCopyWith<$Res> get summary; } /// @nodoc class _$SalesAnalyticCopyWithImpl<$Res, $Val extends SalesAnalytic> implements $SalesAnalyticCopyWith<$Res> { _$SalesAnalyticCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of SalesAnalytic /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? organizationId = null, Object? outletId = null, Object? dateFrom = null, Object? dateTo = null, Object? groupBy = null, Object? summary = null, Object? data = null, }) { return _then( _value.copyWith( organizationId: null == organizationId ? _value.organizationId : organizationId // ignore: cast_nullable_to_non_nullable as String, outletId: null == outletId ? _value.outletId : outletId // ignore: cast_nullable_to_non_nullable as String, dateFrom: null == dateFrom ? _value.dateFrom : dateFrom // ignore: cast_nullable_to_non_nullable as DateTime, dateTo: null == dateTo ? _value.dateTo : dateTo // ignore: cast_nullable_to_non_nullable as DateTime, groupBy: null == groupBy ? _value.groupBy : groupBy // ignore: cast_nullable_to_non_nullable as String, summary: null == summary ? _value.summary : summary // ignore: cast_nullable_to_non_nullable as SalesAnalyticSummary, data: null == data ? _value.data : data // ignore: cast_nullable_to_non_nullable as List, ) as $Val, ); } /// Create a copy of SalesAnalytic /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SalesAnalyticSummaryCopyWith<$Res> get summary { return $SalesAnalyticSummaryCopyWith<$Res>(_value.summary, (value) { return _then(_value.copyWith(summary: value) as $Val); }); } } /// @nodoc abstract class _$$SalesAnalyticImplCopyWith<$Res> implements $SalesAnalyticCopyWith<$Res> { factory _$$SalesAnalyticImplCopyWith( _$SalesAnalyticImpl value, $Res Function(_$SalesAnalyticImpl) then, ) = __$$SalesAnalyticImplCopyWithImpl<$Res>; @override @useResult $Res call({ String organizationId, String outletId, DateTime dateFrom, DateTime dateTo, String groupBy, SalesAnalyticSummary summary, List data, }); @override $SalesAnalyticSummaryCopyWith<$Res> get summary; } /// @nodoc class __$$SalesAnalyticImplCopyWithImpl<$Res> extends _$SalesAnalyticCopyWithImpl<$Res, _$SalesAnalyticImpl> implements _$$SalesAnalyticImplCopyWith<$Res> { __$$SalesAnalyticImplCopyWithImpl( _$SalesAnalyticImpl _value, $Res Function(_$SalesAnalyticImpl) _then, ) : super(_value, _then); /// Create a copy of SalesAnalytic /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? organizationId = null, Object? outletId = null, Object? dateFrom = null, Object? dateTo = null, Object? groupBy = null, Object? summary = null, Object? data = null, }) { return _then( _$SalesAnalyticImpl( organizationId: null == organizationId ? _value.organizationId : organizationId // ignore: cast_nullable_to_non_nullable as String, outletId: null == outletId ? _value.outletId : outletId // ignore: cast_nullable_to_non_nullable as String, dateFrom: null == dateFrom ? _value.dateFrom : dateFrom // ignore: cast_nullable_to_non_nullable as DateTime, dateTo: null == dateTo ? _value.dateTo : dateTo // ignore: cast_nullable_to_non_nullable as DateTime, groupBy: null == groupBy ? _value.groupBy : groupBy // ignore: cast_nullable_to_non_nullable as String, summary: null == summary ? _value.summary : summary // ignore: cast_nullable_to_non_nullable as SalesAnalyticSummary, data: null == data ? _value._data : data // ignore: cast_nullable_to_non_nullable as List, ), ); } } /// @nodoc class _$SalesAnalyticImpl implements _SalesAnalytic { const _$SalesAnalyticImpl({ required this.organizationId, required this.outletId, required this.dateFrom, required this.dateTo, required this.groupBy, required this.summary, required final List data, }) : _data = data; @override final String organizationId; @override final String outletId; @override final DateTime dateFrom; @override final DateTime dateTo; @override final String groupBy; @override final SalesAnalyticSummary summary; final List _data; @override List get data { if (_data is EqualUnmodifiableListView) return _data; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_data); } @override String toString() { return 'SalesAnalytic(organizationId: $organizationId, outletId: $outletId, dateFrom: $dateFrom, dateTo: $dateTo, groupBy: $groupBy, summary: $summary, data: $data)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$SalesAnalyticImpl && (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.groupBy, groupBy) || other.groupBy == groupBy) && (identical(other.summary, summary) || other.summary == summary) && const DeepCollectionEquality().equals(other._data, _data)); } @override int get hashCode => Object.hash( runtimeType, organizationId, outletId, dateFrom, dateTo, groupBy, summary, const DeepCollectionEquality().hash(_data), ); /// Create a copy of SalesAnalytic /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$SalesAnalyticImplCopyWith<_$SalesAnalyticImpl> get copyWith => __$$SalesAnalyticImplCopyWithImpl<_$SalesAnalyticImpl>(this, _$identity); } abstract class _SalesAnalytic implements SalesAnalytic { const factory _SalesAnalytic({ required final String organizationId, required final String outletId, required final DateTime dateFrom, required final DateTime dateTo, required final String groupBy, required final SalesAnalyticSummary summary, required final List data, }) = _$SalesAnalyticImpl; @override String get organizationId; @override String get outletId; @override DateTime get dateFrom; @override DateTime get dateTo; @override String get groupBy; @override SalesAnalyticSummary get summary; @override List get data; /// Create a copy of SalesAnalytic /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$SalesAnalyticImplCopyWith<_$SalesAnalyticImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$SalesAnalyticSummary { int get totalSales => throw _privateConstructorUsedError; int get totalOrders => throw _privateConstructorUsedError; int get totalItems => throw _privateConstructorUsedError; double get averageOrderValue => throw _privateConstructorUsedError; int get totalTax => throw _privateConstructorUsedError; int get totalDiscount => throw _privateConstructorUsedError; int get netSales => throw _privateConstructorUsedError; /// Create a copy of SalesAnalyticSummary /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $SalesAnalyticSummaryCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $SalesAnalyticSummaryCopyWith<$Res> { factory $SalesAnalyticSummaryCopyWith( SalesAnalyticSummary value, $Res Function(SalesAnalyticSummary) then, ) = _$SalesAnalyticSummaryCopyWithImpl<$Res, SalesAnalyticSummary>; @useResult $Res call({ int totalSales, int totalOrders, int totalItems, double averageOrderValue, int totalTax, int totalDiscount, int netSales, }); } /// @nodoc class _$SalesAnalyticSummaryCopyWithImpl< $Res, $Val extends SalesAnalyticSummary > implements $SalesAnalyticSummaryCopyWith<$Res> { _$SalesAnalyticSummaryCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of SalesAnalyticSummary /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? totalSales = null, Object? totalOrders = null, Object? totalItems = null, Object? averageOrderValue = null, Object? totalTax = null, Object? totalDiscount = null, Object? netSales = null, }) { return _then( _value.copyWith( totalSales: null == totalSales ? _value.totalSales : totalSales // ignore: cast_nullable_to_non_nullable as int, totalOrders: null == totalOrders ? _value.totalOrders : totalOrders // ignore: cast_nullable_to_non_nullable as int, totalItems: null == totalItems ? _value.totalItems : totalItems // ignore: cast_nullable_to_non_nullable as int, averageOrderValue: null == averageOrderValue ? _value.averageOrderValue : averageOrderValue // ignore: cast_nullable_to_non_nullable as double, totalTax: null == totalTax ? _value.totalTax : totalTax // ignore: cast_nullable_to_non_nullable as int, totalDiscount: null == totalDiscount ? _value.totalDiscount : totalDiscount // ignore: cast_nullable_to_non_nullable as int, netSales: null == netSales ? _value.netSales : netSales // ignore: cast_nullable_to_non_nullable as int, ) as $Val, ); } } /// @nodoc abstract class _$$SalesAnalyticSummaryImplCopyWith<$Res> implements $SalesAnalyticSummaryCopyWith<$Res> { factory _$$SalesAnalyticSummaryImplCopyWith( _$SalesAnalyticSummaryImpl value, $Res Function(_$SalesAnalyticSummaryImpl) then, ) = __$$SalesAnalyticSummaryImplCopyWithImpl<$Res>; @override @useResult $Res call({ int totalSales, int totalOrders, int totalItems, double averageOrderValue, int totalTax, int totalDiscount, int netSales, }); } /// @nodoc class __$$SalesAnalyticSummaryImplCopyWithImpl<$Res> extends _$SalesAnalyticSummaryCopyWithImpl<$Res, _$SalesAnalyticSummaryImpl> implements _$$SalesAnalyticSummaryImplCopyWith<$Res> { __$$SalesAnalyticSummaryImplCopyWithImpl( _$SalesAnalyticSummaryImpl _value, $Res Function(_$SalesAnalyticSummaryImpl) _then, ) : super(_value, _then); /// Create a copy of SalesAnalyticSummary /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? totalSales = null, Object? totalOrders = null, Object? totalItems = null, Object? averageOrderValue = null, Object? totalTax = null, Object? totalDiscount = null, Object? netSales = null, }) { return _then( _$SalesAnalyticSummaryImpl( totalSales: null == totalSales ? _value.totalSales : totalSales // ignore: cast_nullable_to_non_nullable as int, totalOrders: null == totalOrders ? _value.totalOrders : totalOrders // ignore: cast_nullable_to_non_nullable as int, totalItems: null == totalItems ? _value.totalItems : totalItems // ignore: cast_nullable_to_non_nullable as int, averageOrderValue: null == averageOrderValue ? _value.averageOrderValue : averageOrderValue // ignore: cast_nullable_to_non_nullable as double, totalTax: null == totalTax ? _value.totalTax : totalTax // ignore: cast_nullable_to_non_nullable as int, totalDiscount: null == totalDiscount ? _value.totalDiscount : totalDiscount // ignore: cast_nullable_to_non_nullable as int, netSales: null == netSales ? _value.netSales : netSales // ignore: cast_nullable_to_non_nullable as int, ), ); } } /// @nodoc class _$SalesAnalyticSummaryImpl implements _SalesAnalyticSummary { const _$SalesAnalyticSummaryImpl({ required this.totalSales, required this.totalOrders, required this.totalItems, required this.averageOrderValue, required this.totalTax, required this.totalDiscount, required this.netSales, }); @override final int totalSales; @override final int totalOrders; @override final int totalItems; @override final double averageOrderValue; @override final int totalTax; @override final int totalDiscount; @override final int netSales; @override String toString() { return 'SalesAnalyticSummary(totalSales: $totalSales, totalOrders: $totalOrders, totalItems: $totalItems, averageOrderValue: $averageOrderValue, totalTax: $totalTax, totalDiscount: $totalDiscount, netSales: $netSales)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$SalesAnalyticSummaryImpl && (identical(other.totalSales, totalSales) || other.totalSales == totalSales) && (identical(other.totalOrders, totalOrders) || other.totalOrders == totalOrders) && (identical(other.totalItems, totalItems) || other.totalItems == totalItems) && (identical(other.averageOrderValue, averageOrderValue) || other.averageOrderValue == averageOrderValue) && (identical(other.totalTax, totalTax) || other.totalTax == totalTax) && (identical(other.totalDiscount, totalDiscount) || other.totalDiscount == totalDiscount) && (identical(other.netSales, netSales) || other.netSales == netSales)); } @override int get hashCode => Object.hash( runtimeType, totalSales, totalOrders, totalItems, averageOrderValue, totalTax, totalDiscount, netSales, ); /// Create a copy of SalesAnalyticSummary /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$SalesAnalyticSummaryImplCopyWith<_$SalesAnalyticSummaryImpl> get copyWith => __$$SalesAnalyticSummaryImplCopyWithImpl<_$SalesAnalyticSummaryImpl>( this, _$identity, ); } abstract class _SalesAnalyticSummary implements SalesAnalyticSummary { const factory _SalesAnalyticSummary({ required final int totalSales, required final int totalOrders, required final int totalItems, required final double averageOrderValue, required final int totalTax, required final int totalDiscount, required final int netSales, }) = _$SalesAnalyticSummaryImpl; @override int get totalSales; @override int get totalOrders; @override int get totalItems; @override double get averageOrderValue; @override int get totalTax; @override int get totalDiscount; @override int get netSales; /// Create a copy of SalesAnalyticSummary /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$SalesAnalyticSummaryImplCopyWith<_$SalesAnalyticSummaryImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$SalesAnalyticData { DateTime get date => throw _privateConstructorUsedError; int get sales => throw _privateConstructorUsedError; int get orders => throw _privateConstructorUsedError; int get items => throw _privateConstructorUsedError; int get tax => throw _privateConstructorUsedError; int get discount => throw _privateConstructorUsedError; int get netSales => throw _privateConstructorUsedError; /// Create a copy of SalesAnalyticData /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $SalesAnalyticDataCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $SalesAnalyticDataCopyWith<$Res> { factory $SalesAnalyticDataCopyWith( SalesAnalyticData value, $Res Function(SalesAnalyticData) then, ) = _$SalesAnalyticDataCopyWithImpl<$Res, SalesAnalyticData>; @useResult $Res call({ DateTime date, int sales, int orders, int items, int tax, int discount, int netSales, }); } /// @nodoc class _$SalesAnalyticDataCopyWithImpl<$Res, $Val extends SalesAnalyticData> implements $SalesAnalyticDataCopyWith<$Res> { _$SalesAnalyticDataCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of SalesAnalyticData /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? date = null, Object? sales = null, Object? orders = null, Object? items = null, Object? tax = null, Object? discount = null, Object? netSales = null, }) { return _then( _value.copyWith( date: null == date ? _value.date : date // ignore: cast_nullable_to_non_nullable as DateTime, sales: null == sales ? _value.sales : sales // ignore: cast_nullable_to_non_nullable as int, orders: null == orders ? _value.orders : orders // ignore: cast_nullable_to_non_nullable as int, items: null == items ? _value.items : items // ignore: cast_nullable_to_non_nullable as int, tax: null == tax ? _value.tax : tax // ignore: cast_nullable_to_non_nullable as int, discount: null == discount ? _value.discount : discount // ignore: cast_nullable_to_non_nullable as int, netSales: null == netSales ? _value.netSales : netSales // ignore: cast_nullable_to_non_nullable as int, ) as $Val, ); } } /// @nodoc abstract class _$$SalesAnalyticDataImplCopyWith<$Res> implements $SalesAnalyticDataCopyWith<$Res> { factory _$$SalesAnalyticDataImplCopyWith( _$SalesAnalyticDataImpl value, $Res Function(_$SalesAnalyticDataImpl) then, ) = __$$SalesAnalyticDataImplCopyWithImpl<$Res>; @override @useResult $Res call({ DateTime date, int sales, int orders, int items, int tax, int discount, int netSales, }); } /// @nodoc class __$$SalesAnalyticDataImplCopyWithImpl<$Res> extends _$SalesAnalyticDataCopyWithImpl<$Res, _$SalesAnalyticDataImpl> implements _$$SalesAnalyticDataImplCopyWith<$Res> { __$$SalesAnalyticDataImplCopyWithImpl( _$SalesAnalyticDataImpl _value, $Res Function(_$SalesAnalyticDataImpl) _then, ) : super(_value, _then); /// Create a copy of SalesAnalyticData /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? date = null, Object? sales = null, Object? orders = null, Object? items = null, Object? tax = null, Object? discount = null, Object? netSales = null, }) { return _then( _$SalesAnalyticDataImpl( date: null == date ? _value.date : date // ignore: cast_nullable_to_non_nullable as DateTime, sales: null == sales ? _value.sales : sales // ignore: cast_nullable_to_non_nullable as int, orders: null == orders ? _value.orders : orders // ignore: cast_nullable_to_non_nullable as int, items: null == items ? _value.items : items // ignore: cast_nullable_to_non_nullable as int, tax: null == tax ? _value.tax : tax // ignore: cast_nullable_to_non_nullable as int, discount: null == discount ? _value.discount : discount // ignore: cast_nullable_to_non_nullable as int, netSales: null == netSales ? _value.netSales : netSales // ignore: cast_nullable_to_non_nullable as int, ), ); } } /// @nodoc class _$SalesAnalyticDataImpl implements _SalesAnalyticData { const _$SalesAnalyticDataImpl({ required this.date, required this.sales, required this.orders, required this.items, required this.tax, required this.discount, required this.netSales, }); @override final DateTime date; @override final int sales; @override final int orders; @override final int items; @override final int tax; @override final int discount; @override final int netSales; @override String toString() { return 'SalesAnalyticData(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 _$SalesAnalyticDataImpl && (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)); } @override int get hashCode => Object.hash( runtimeType, date, sales, orders, items, tax, discount, netSales, ); /// Create a copy of SalesAnalyticData /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$SalesAnalyticDataImplCopyWith<_$SalesAnalyticDataImpl> get copyWith => __$$SalesAnalyticDataImplCopyWithImpl<_$SalesAnalyticDataImpl>( this, _$identity, ); } abstract class _SalesAnalyticData implements SalesAnalyticData { const factory _SalesAnalyticData({ required final DateTime date, required final int sales, required final int orders, required final int items, required final int tax, required final int discount, required final int netSales, }) = _$SalesAnalyticDataImpl; @override DateTime get date; @override int get sales; @override int get orders; @override int get items; @override int get tax; @override int get discount; @override int get netSales; /// Create a copy of SalesAnalyticData /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$SalesAnalyticDataImplCopyWith<_$SalesAnalyticDataImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$ProfitLossAnalytic { String get organizationId => throw _privateConstructorUsedError; String get dateFrom => throw _privateConstructorUsedError; String get dateTo => throw _privateConstructorUsedError; String get groupBy => throw _privateConstructorUsedError; ProfitLossSummary get summary => throw _privateConstructorUsedError; List get data => throw _privateConstructorUsedError; List get productData => throw _privateConstructorUsedError; /// Create a copy of ProfitLossAnalytic /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $ProfitLossAnalyticCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ProfitLossAnalyticCopyWith<$Res> { factory $ProfitLossAnalyticCopyWith( ProfitLossAnalytic value, $Res Function(ProfitLossAnalytic) then, ) = _$ProfitLossAnalyticCopyWithImpl<$Res, ProfitLossAnalytic>; @useResult $Res call({ String organizationId, String dateFrom, String dateTo, String groupBy, ProfitLossSummary summary, List data, List productData, }); $ProfitLossSummaryCopyWith<$Res> get summary; } /// @nodoc class _$ProfitLossAnalyticCopyWithImpl<$Res, $Val extends ProfitLossAnalytic> implements $ProfitLossAnalyticCopyWith<$Res> { _$ProfitLossAnalyticCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of ProfitLossAnalytic /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? organizationId = null, Object? dateFrom = null, Object? dateTo = null, Object? groupBy = null, Object? summary = null, Object? data = null, Object? productData = null, }) { return _then( _value.copyWith( organizationId: null == organizationId ? _value.organizationId : organizationId // ignore: cast_nullable_to_non_nullable as String, dateFrom: null == dateFrom ? _value.dateFrom : dateFrom // ignore: cast_nullable_to_non_nullable as String, dateTo: null == dateTo ? _value.dateTo : dateTo // ignore: cast_nullable_to_non_nullable as String, groupBy: null == groupBy ? _value.groupBy : groupBy // ignore: cast_nullable_to_non_nullable as String, summary: null == summary ? _value.summary : summary // ignore: cast_nullable_to_non_nullable as ProfitLossSummary, data: null == data ? _value.data : data // ignore: cast_nullable_to_non_nullable as List, productData: null == productData ? _value.productData : productData // ignore: cast_nullable_to_non_nullable as List, ) as $Val, ); } /// Create a copy of ProfitLossAnalytic /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ProfitLossSummaryCopyWith<$Res> get summary { return $ProfitLossSummaryCopyWith<$Res>(_value.summary, (value) { return _then(_value.copyWith(summary: value) as $Val); }); } } /// @nodoc abstract class _$$ProfitLossAnalyticImplCopyWith<$Res> implements $ProfitLossAnalyticCopyWith<$Res> { factory _$$ProfitLossAnalyticImplCopyWith( _$ProfitLossAnalyticImpl value, $Res Function(_$ProfitLossAnalyticImpl) then, ) = __$$ProfitLossAnalyticImplCopyWithImpl<$Res>; @override @useResult $Res call({ String organizationId, String dateFrom, String dateTo, String groupBy, ProfitLossSummary summary, List data, List productData, }); @override $ProfitLossSummaryCopyWith<$Res> get summary; } /// @nodoc class __$$ProfitLossAnalyticImplCopyWithImpl<$Res> extends _$ProfitLossAnalyticCopyWithImpl<$Res, _$ProfitLossAnalyticImpl> implements _$$ProfitLossAnalyticImplCopyWith<$Res> { __$$ProfitLossAnalyticImplCopyWithImpl( _$ProfitLossAnalyticImpl _value, $Res Function(_$ProfitLossAnalyticImpl) _then, ) : super(_value, _then); /// Create a copy of ProfitLossAnalytic /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? organizationId = null, Object? dateFrom = null, Object? dateTo = null, Object? groupBy = null, Object? summary = null, Object? data = null, Object? productData = null, }) { return _then( _$ProfitLossAnalyticImpl( organizationId: null == organizationId ? _value.organizationId : organizationId // ignore: cast_nullable_to_non_nullable as String, dateFrom: null == dateFrom ? _value.dateFrom : dateFrom // ignore: cast_nullable_to_non_nullable as String, dateTo: null == dateTo ? _value.dateTo : dateTo // ignore: cast_nullable_to_non_nullable as String, groupBy: null == groupBy ? _value.groupBy : groupBy // ignore: cast_nullable_to_non_nullable as String, summary: null == summary ? _value.summary : summary // ignore: cast_nullable_to_non_nullable as ProfitLossSummary, data: null == data ? _value._data : data // ignore: cast_nullable_to_non_nullable as List, productData: null == productData ? _value._productData : productData // ignore: cast_nullable_to_non_nullable as List, ), ); } } /// @nodoc class _$ProfitLossAnalyticImpl implements _ProfitLossAnalytic { const _$ProfitLossAnalyticImpl({ required this.organizationId, required this.dateFrom, required this.dateTo, required this.groupBy, required this.summary, required final List data, required final List productData, }) : _data = data, _productData = productData; @override final String organizationId; @override final String dateFrom; @override final String dateTo; @override final String groupBy; @override final ProfitLossSummary summary; final List _data; @override List get data { if (_data is EqualUnmodifiableListView) return _data; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_data); } final List _productData; @override List get productData { if (_productData is EqualUnmodifiableListView) return _productData; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_productData); } @override String toString() { return 'ProfitLossAnalytic(organizationId: $organizationId, dateFrom: $dateFrom, dateTo: $dateTo, groupBy: $groupBy, summary: $summary, data: $data, productData: $productData)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ProfitLossAnalyticImpl && (identical(other.organizationId, organizationId) || other.organizationId == organizationId) && (identical(other.dateFrom, dateFrom) || other.dateFrom == dateFrom) && (identical(other.dateTo, dateTo) || other.dateTo == dateTo) && (identical(other.groupBy, groupBy) || other.groupBy == groupBy) && (identical(other.summary, summary) || other.summary == summary) && const DeepCollectionEquality().equals(other._data, _data) && const DeepCollectionEquality().equals( other._productData, _productData, )); } @override int get hashCode => Object.hash( runtimeType, organizationId, dateFrom, dateTo, groupBy, summary, const DeepCollectionEquality().hash(_data), const DeepCollectionEquality().hash(_productData), ); /// Create a copy of ProfitLossAnalytic /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ProfitLossAnalyticImplCopyWith<_$ProfitLossAnalyticImpl> get copyWith => __$$ProfitLossAnalyticImplCopyWithImpl<_$ProfitLossAnalyticImpl>( this, _$identity, ); } abstract class _ProfitLossAnalytic implements ProfitLossAnalytic { const factory _ProfitLossAnalytic({ required final String organizationId, required final String dateFrom, required final String dateTo, required final String groupBy, required final ProfitLossSummary summary, required final List data, required final List productData, }) = _$ProfitLossAnalyticImpl; @override String get organizationId; @override String get dateFrom; @override String get dateTo; @override String get groupBy; @override ProfitLossSummary get summary; @override List get data; @override List get productData; /// Create a copy of ProfitLossAnalytic /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$ProfitLossAnalyticImplCopyWith<_$ProfitLossAnalyticImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$ProfitLossSummary { int get totalRevenue => throw _privateConstructorUsedError; int get totalCost => throw _privateConstructorUsedError; int get grossProfit => throw _privateConstructorUsedError; double get grossProfitMargin => throw _privateConstructorUsedError; int get totalTax => throw _privateConstructorUsedError; int get totalDiscount => throw _privateConstructorUsedError; int get netProfit => throw _privateConstructorUsedError; double get netProfitMargin => throw _privateConstructorUsedError; int get totalOrders => throw _privateConstructorUsedError; double get averageProfit => throw _privateConstructorUsedError; double get profitabilityRatio => throw _privateConstructorUsedError; /// Create a copy of ProfitLossSummary /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $ProfitLossSummaryCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ProfitLossSummaryCopyWith<$Res> { factory $ProfitLossSummaryCopyWith( ProfitLossSummary value, $Res Function(ProfitLossSummary) then, ) = _$ProfitLossSummaryCopyWithImpl<$Res, ProfitLossSummary>; @useResult $Res call({ int totalRevenue, int totalCost, int grossProfit, double grossProfitMargin, int totalTax, int totalDiscount, int netProfit, double netProfitMargin, int totalOrders, double averageProfit, double profitabilityRatio, }); } /// @nodoc class _$ProfitLossSummaryCopyWithImpl<$Res, $Val extends ProfitLossSummary> implements $ProfitLossSummaryCopyWith<$Res> { _$ProfitLossSummaryCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of ProfitLossSummary /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? totalRevenue = null, Object? totalCost = null, Object? grossProfit = null, Object? grossProfitMargin = null, Object? totalTax = null, Object? totalDiscount = null, Object? netProfit = null, Object? netProfitMargin = null, Object? totalOrders = null, Object? averageProfit = null, Object? profitabilityRatio = null, }) { return _then( _value.copyWith( totalRevenue: null == totalRevenue ? _value.totalRevenue : totalRevenue // ignore: cast_nullable_to_non_nullable as int, totalCost: null == totalCost ? _value.totalCost : totalCost // ignore: cast_nullable_to_non_nullable as int, grossProfit: null == grossProfit ? _value.grossProfit : grossProfit // ignore: cast_nullable_to_non_nullable as int, grossProfitMargin: null == grossProfitMargin ? _value.grossProfitMargin : grossProfitMargin // ignore: cast_nullable_to_non_nullable as double, totalTax: null == totalTax ? _value.totalTax : totalTax // ignore: cast_nullable_to_non_nullable as int, totalDiscount: null == totalDiscount ? _value.totalDiscount : totalDiscount // ignore: cast_nullable_to_non_nullable as int, netProfit: null == netProfit ? _value.netProfit : netProfit // ignore: cast_nullable_to_non_nullable as int, netProfitMargin: null == netProfitMargin ? _value.netProfitMargin : netProfitMargin // ignore: cast_nullable_to_non_nullable as double, totalOrders: null == totalOrders ? _value.totalOrders : totalOrders // ignore: cast_nullable_to_non_nullable as int, averageProfit: null == averageProfit ? _value.averageProfit : averageProfit // ignore: cast_nullable_to_non_nullable as double, profitabilityRatio: null == profitabilityRatio ? _value.profitabilityRatio : profitabilityRatio // ignore: cast_nullable_to_non_nullable as double, ) as $Val, ); } } /// @nodoc abstract class _$$ProfitLossSummaryImplCopyWith<$Res> implements $ProfitLossSummaryCopyWith<$Res> { factory _$$ProfitLossSummaryImplCopyWith( _$ProfitLossSummaryImpl value, $Res Function(_$ProfitLossSummaryImpl) then, ) = __$$ProfitLossSummaryImplCopyWithImpl<$Res>; @override @useResult $Res call({ int totalRevenue, int totalCost, int grossProfit, double grossProfitMargin, int totalTax, int totalDiscount, int netProfit, double netProfitMargin, int totalOrders, double averageProfit, double profitabilityRatio, }); } /// @nodoc class __$$ProfitLossSummaryImplCopyWithImpl<$Res> extends _$ProfitLossSummaryCopyWithImpl<$Res, _$ProfitLossSummaryImpl> implements _$$ProfitLossSummaryImplCopyWith<$Res> { __$$ProfitLossSummaryImplCopyWithImpl( _$ProfitLossSummaryImpl _value, $Res Function(_$ProfitLossSummaryImpl) _then, ) : super(_value, _then); /// Create a copy of ProfitLossSummary /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? totalRevenue = null, Object? totalCost = null, Object? grossProfit = null, Object? grossProfitMargin = null, Object? totalTax = null, Object? totalDiscount = null, Object? netProfit = null, Object? netProfitMargin = null, Object? totalOrders = null, Object? averageProfit = null, Object? profitabilityRatio = null, }) { return _then( _$ProfitLossSummaryImpl( totalRevenue: null == totalRevenue ? _value.totalRevenue : totalRevenue // ignore: cast_nullable_to_non_nullable as int, totalCost: null == totalCost ? _value.totalCost : totalCost // ignore: cast_nullable_to_non_nullable as int, grossProfit: null == grossProfit ? _value.grossProfit : grossProfit // ignore: cast_nullable_to_non_nullable as int, grossProfitMargin: null == grossProfitMargin ? _value.grossProfitMargin : grossProfitMargin // ignore: cast_nullable_to_non_nullable as double, totalTax: null == totalTax ? _value.totalTax : totalTax // ignore: cast_nullable_to_non_nullable as int, totalDiscount: null == totalDiscount ? _value.totalDiscount : totalDiscount // ignore: cast_nullable_to_non_nullable as int, netProfit: null == netProfit ? _value.netProfit : netProfit // ignore: cast_nullable_to_non_nullable as int, netProfitMargin: null == netProfitMargin ? _value.netProfitMargin : netProfitMargin // ignore: cast_nullable_to_non_nullable as double, totalOrders: null == totalOrders ? _value.totalOrders : totalOrders // ignore: cast_nullable_to_non_nullable as int, averageProfit: null == averageProfit ? _value.averageProfit : averageProfit // ignore: cast_nullable_to_non_nullable as double, profitabilityRatio: null == profitabilityRatio ? _value.profitabilityRatio : profitabilityRatio // ignore: cast_nullable_to_non_nullable as double, ), ); } } /// @nodoc class _$ProfitLossSummaryImpl implements _ProfitLossSummary { const _$ProfitLossSummaryImpl({ required this.totalRevenue, required this.totalCost, required this.grossProfit, required this.grossProfitMargin, required this.totalTax, required this.totalDiscount, required this.netProfit, required this.netProfitMargin, required this.totalOrders, required this.averageProfit, required this.profitabilityRatio, }); @override final int totalRevenue; @override final int totalCost; @override final int grossProfit; @override final double grossProfitMargin; @override final int totalTax; @override final int totalDiscount; @override final int netProfit; @override final double netProfitMargin; @override final int totalOrders; @override final double averageProfit; @override final double profitabilityRatio; @override String toString() { return 'ProfitLossSummary(totalRevenue: $totalRevenue, totalCost: $totalCost, grossProfit: $grossProfit, grossProfitMargin: $grossProfitMargin, totalTax: $totalTax, totalDiscount: $totalDiscount, netProfit: $netProfit, netProfitMargin: $netProfitMargin, totalOrders: $totalOrders, averageProfit: $averageProfit, profitabilityRatio: $profitabilityRatio)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ProfitLossSummaryImpl && (identical(other.totalRevenue, totalRevenue) || other.totalRevenue == totalRevenue) && (identical(other.totalCost, totalCost) || other.totalCost == totalCost) && (identical(other.grossProfit, grossProfit) || other.grossProfit == grossProfit) && (identical(other.grossProfitMargin, grossProfitMargin) || other.grossProfitMargin == grossProfitMargin) && (identical(other.totalTax, totalTax) || other.totalTax == totalTax) && (identical(other.totalDiscount, totalDiscount) || other.totalDiscount == totalDiscount) && (identical(other.netProfit, netProfit) || other.netProfit == netProfit) && (identical(other.netProfitMargin, netProfitMargin) || other.netProfitMargin == netProfitMargin) && (identical(other.totalOrders, totalOrders) || other.totalOrders == totalOrders) && (identical(other.averageProfit, averageProfit) || other.averageProfit == averageProfit) && (identical(other.profitabilityRatio, profitabilityRatio) || other.profitabilityRatio == profitabilityRatio)); } @override int get hashCode => Object.hash( runtimeType, totalRevenue, totalCost, grossProfit, grossProfitMargin, totalTax, totalDiscount, netProfit, netProfitMargin, totalOrders, averageProfit, profitabilityRatio, ); /// Create a copy of ProfitLossSummary /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ProfitLossSummaryImplCopyWith<_$ProfitLossSummaryImpl> get copyWith => __$$ProfitLossSummaryImplCopyWithImpl<_$ProfitLossSummaryImpl>( this, _$identity, ); } abstract class _ProfitLossSummary implements ProfitLossSummary { const factory _ProfitLossSummary({ required final int totalRevenue, required final int totalCost, required final int grossProfit, required final double grossProfitMargin, required final int totalTax, required final int totalDiscount, required final int netProfit, required final double netProfitMargin, required final int totalOrders, required final double averageProfit, required final double profitabilityRatio, }) = _$ProfitLossSummaryImpl; @override int get totalRevenue; @override int get totalCost; @override int get grossProfit; @override double get grossProfitMargin; @override int get totalTax; @override int get totalDiscount; @override int get netProfit; @override double get netProfitMargin; @override int get totalOrders; @override double get averageProfit; @override double get profitabilityRatio; /// Create a copy of ProfitLossSummary /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$ProfitLossSummaryImplCopyWith<_$ProfitLossSummaryImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$ProfitLossDailyData { String get date => throw _privateConstructorUsedError; int get revenue => throw _privateConstructorUsedError; int get cost => throw _privateConstructorUsedError; int get grossProfit => throw _privateConstructorUsedError; double get grossProfitMargin => throw _privateConstructorUsedError; int get tax => throw _privateConstructorUsedError; int get discount => throw _privateConstructorUsedError; int get netProfit => throw _privateConstructorUsedError; double get netProfitMargin => throw _privateConstructorUsedError; int get orders => throw _privateConstructorUsedError; /// Create a copy of ProfitLossDailyData /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $ProfitLossDailyDataCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ProfitLossDailyDataCopyWith<$Res> { factory $ProfitLossDailyDataCopyWith( ProfitLossDailyData value, $Res Function(ProfitLossDailyData) then, ) = _$ProfitLossDailyDataCopyWithImpl<$Res, ProfitLossDailyData>; @useResult $Res call({ String date, int revenue, int cost, int grossProfit, double grossProfitMargin, int tax, int discount, int netProfit, double netProfitMargin, int orders, }); } /// @nodoc class _$ProfitLossDailyDataCopyWithImpl<$Res, $Val extends ProfitLossDailyData> implements $ProfitLossDailyDataCopyWith<$Res> { _$ProfitLossDailyDataCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of ProfitLossDailyData /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? date = null, Object? revenue = null, Object? cost = null, Object? grossProfit = null, Object? grossProfitMargin = null, Object? tax = null, Object? discount = null, Object? netProfit = null, Object? netProfitMargin = null, Object? orders = null, }) { return _then( _value.copyWith( date: null == date ? _value.date : date // ignore: cast_nullable_to_non_nullable as String, revenue: null == revenue ? _value.revenue : revenue // ignore: cast_nullable_to_non_nullable as int, cost: null == cost ? _value.cost : cost // ignore: cast_nullable_to_non_nullable as int, grossProfit: null == grossProfit ? _value.grossProfit : grossProfit // ignore: cast_nullable_to_non_nullable as int, grossProfitMargin: null == grossProfitMargin ? _value.grossProfitMargin : grossProfitMargin // ignore: cast_nullable_to_non_nullable as double, tax: null == tax ? _value.tax : tax // ignore: cast_nullable_to_non_nullable as int, discount: null == discount ? _value.discount : discount // ignore: cast_nullable_to_non_nullable as int, netProfit: null == netProfit ? _value.netProfit : netProfit // ignore: cast_nullable_to_non_nullable as int, netProfitMargin: null == netProfitMargin ? _value.netProfitMargin : netProfitMargin // ignore: cast_nullable_to_non_nullable as double, orders: null == orders ? _value.orders : orders // ignore: cast_nullable_to_non_nullable as int, ) as $Val, ); } } /// @nodoc abstract class _$$ProfitLossDailyDataImplCopyWith<$Res> implements $ProfitLossDailyDataCopyWith<$Res> { factory _$$ProfitLossDailyDataImplCopyWith( _$ProfitLossDailyDataImpl value, $Res Function(_$ProfitLossDailyDataImpl) then, ) = __$$ProfitLossDailyDataImplCopyWithImpl<$Res>; @override @useResult $Res call({ String date, int revenue, int cost, int grossProfit, double grossProfitMargin, int tax, int discount, int netProfit, double netProfitMargin, int orders, }); } /// @nodoc class __$$ProfitLossDailyDataImplCopyWithImpl<$Res> extends _$ProfitLossDailyDataCopyWithImpl<$Res, _$ProfitLossDailyDataImpl> implements _$$ProfitLossDailyDataImplCopyWith<$Res> { __$$ProfitLossDailyDataImplCopyWithImpl( _$ProfitLossDailyDataImpl _value, $Res Function(_$ProfitLossDailyDataImpl) _then, ) : super(_value, _then); /// Create a copy of ProfitLossDailyData /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? date = null, Object? revenue = null, Object? cost = null, Object? grossProfit = null, Object? grossProfitMargin = null, Object? tax = null, Object? discount = null, Object? netProfit = null, Object? netProfitMargin = null, Object? orders = null, }) { return _then( _$ProfitLossDailyDataImpl( date: null == date ? _value.date : date // ignore: cast_nullable_to_non_nullable as String, revenue: null == revenue ? _value.revenue : revenue // ignore: cast_nullable_to_non_nullable as int, cost: null == cost ? _value.cost : cost // ignore: cast_nullable_to_non_nullable as int, grossProfit: null == grossProfit ? _value.grossProfit : grossProfit // ignore: cast_nullable_to_non_nullable as int, grossProfitMargin: null == grossProfitMargin ? _value.grossProfitMargin : grossProfitMargin // ignore: cast_nullable_to_non_nullable as double, tax: null == tax ? _value.tax : tax // ignore: cast_nullable_to_non_nullable as int, discount: null == discount ? _value.discount : discount // ignore: cast_nullable_to_non_nullable as int, netProfit: null == netProfit ? _value.netProfit : netProfit // ignore: cast_nullable_to_non_nullable as int, netProfitMargin: null == netProfitMargin ? _value.netProfitMargin : netProfitMargin // ignore: cast_nullable_to_non_nullable as double, orders: null == orders ? _value.orders : orders // ignore: cast_nullable_to_non_nullable as int, ), ); } } /// @nodoc class _$ProfitLossDailyDataImpl implements _ProfitLossDailyData { const _$ProfitLossDailyDataImpl({ required this.date, required this.revenue, required this.cost, required this.grossProfit, required this.grossProfitMargin, required this.tax, required this.discount, required this.netProfit, required this.netProfitMargin, required this.orders, }); @override final String date; @override final int revenue; @override final int cost; @override final int grossProfit; @override final double grossProfitMargin; @override final int tax; @override final int discount; @override final int netProfit; @override final double netProfitMargin; @override final int orders; @override String toString() { return 'ProfitLossDailyData(date: $date, revenue: $revenue, cost: $cost, grossProfit: $grossProfit, grossProfitMargin: $grossProfitMargin, tax: $tax, discount: $discount, netProfit: $netProfit, netProfitMargin: $netProfitMargin, orders: $orders)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ProfitLossDailyDataImpl && (identical(other.date, date) || other.date == date) && (identical(other.revenue, revenue) || other.revenue == revenue) && (identical(other.cost, cost) || other.cost == cost) && (identical(other.grossProfit, grossProfit) || other.grossProfit == grossProfit) && (identical(other.grossProfitMargin, grossProfitMargin) || other.grossProfitMargin == grossProfitMargin) && (identical(other.tax, tax) || other.tax == tax) && (identical(other.discount, discount) || other.discount == discount) && (identical(other.netProfit, netProfit) || other.netProfit == netProfit) && (identical(other.netProfitMargin, netProfitMargin) || other.netProfitMargin == netProfitMargin) && (identical(other.orders, orders) || other.orders == orders)); } @override int get hashCode => Object.hash( runtimeType, date, revenue, cost, grossProfit, grossProfitMargin, tax, discount, netProfit, netProfitMargin, orders, ); /// Create a copy of ProfitLossDailyData /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ProfitLossDailyDataImplCopyWith<_$ProfitLossDailyDataImpl> get copyWith => __$$ProfitLossDailyDataImplCopyWithImpl<_$ProfitLossDailyDataImpl>( this, _$identity, ); } abstract class _ProfitLossDailyData implements ProfitLossDailyData { const factory _ProfitLossDailyData({ required final String date, required final int revenue, required final int cost, required final int grossProfit, required final double grossProfitMargin, required final int tax, required final int discount, required final int netProfit, required final double netProfitMargin, required final int orders, }) = _$ProfitLossDailyDataImpl; @override String get date; @override int get revenue; @override int get cost; @override int get grossProfit; @override double get grossProfitMargin; @override int get tax; @override int get discount; @override int get netProfit; @override double get netProfitMargin; @override int get orders; /// Create a copy of ProfitLossDailyData /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$ProfitLossDailyDataImplCopyWith<_$ProfitLossDailyDataImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$ProfitLossProductData { String get productId => throw _privateConstructorUsedError; String get productName => throw _privateConstructorUsedError; String get categoryId => throw _privateConstructorUsedError; String get categoryName => throw _privateConstructorUsedError; int get quantitySold => throw _privateConstructorUsedError; int get revenue => throw _privateConstructorUsedError; int get cost => throw _privateConstructorUsedError; int get grossProfit => throw _privateConstructorUsedError; double get grossProfitMargin => throw _privateConstructorUsedError; int get averagePrice => throw _privateConstructorUsedError; int get averageCost => throw _privateConstructorUsedError; int get profitPerUnit => throw _privateConstructorUsedError; /// Create a copy of ProfitLossProductData /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $ProfitLossProductDataCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ProfitLossProductDataCopyWith<$Res> { factory $ProfitLossProductDataCopyWith( ProfitLossProductData value, $Res Function(ProfitLossProductData) then, ) = _$ProfitLossProductDataCopyWithImpl<$Res, ProfitLossProductData>; @useResult $Res call({ String productId, String productName, String categoryId, String categoryName, int quantitySold, int revenue, int cost, int grossProfit, double grossProfitMargin, int averagePrice, int averageCost, int profitPerUnit, }); } /// @nodoc class _$ProfitLossProductDataCopyWithImpl< $Res, $Val extends ProfitLossProductData > implements $ProfitLossProductDataCopyWith<$Res> { _$ProfitLossProductDataCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of ProfitLossProductData /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? productId = null, Object? productName = null, Object? categoryId = null, Object? categoryName = null, Object? quantitySold = null, Object? revenue = null, Object? cost = null, Object? grossProfit = null, Object? grossProfitMargin = null, Object? averagePrice = null, Object? averageCost = null, Object? profitPerUnit = null, }) { return _then( _value.copyWith( productId: null == productId ? _value.productId : productId // ignore: cast_nullable_to_non_nullable as String, productName: null == productName ? _value.productName : productName // ignore: cast_nullable_to_non_nullable as String, categoryId: null == categoryId ? _value.categoryId : categoryId // ignore: cast_nullable_to_non_nullable as String, categoryName: null == categoryName ? _value.categoryName : categoryName // ignore: cast_nullable_to_non_nullable as String, quantitySold: null == quantitySold ? _value.quantitySold : quantitySold // ignore: cast_nullable_to_non_nullable as int, revenue: null == revenue ? _value.revenue : revenue // ignore: cast_nullable_to_non_nullable as int, cost: null == cost ? _value.cost : cost // ignore: cast_nullable_to_non_nullable as int, grossProfit: null == grossProfit ? _value.grossProfit : grossProfit // ignore: cast_nullable_to_non_nullable as int, grossProfitMargin: null == grossProfitMargin ? _value.grossProfitMargin : grossProfitMargin // ignore: cast_nullable_to_non_nullable as double, averagePrice: null == averagePrice ? _value.averagePrice : averagePrice // ignore: cast_nullable_to_non_nullable as int, averageCost: null == averageCost ? _value.averageCost : averageCost // ignore: cast_nullable_to_non_nullable as int, profitPerUnit: null == profitPerUnit ? _value.profitPerUnit : profitPerUnit // ignore: cast_nullable_to_non_nullable as int, ) as $Val, ); } } /// @nodoc abstract class _$$ProfitLossProductDataImplCopyWith<$Res> implements $ProfitLossProductDataCopyWith<$Res> { factory _$$ProfitLossProductDataImplCopyWith( _$ProfitLossProductDataImpl value, $Res Function(_$ProfitLossProductDataImpl) then, ) = __$$ProfitLossProductDataImplCopyWithImpl<$Res>; @override @useResult $Res call({ String productId, String productName, String categoryId, String categoryName, int quantitySold, int revenue, int cost, int grossProfit, double grossProfitMargin, int averagePrice, int averageCost, int profitPerUnit, }); } /// @nodoc class __$$ProfitLossProductDataImplCopyWithImpl<$Res> extends _$ProfitLossProductDataCopyWithImpl<$Res, _$ProfitLossProductDataImpl> implements _$$ProfitLossProductDataImplCopyWith<$Res> { __$$ProfitLossProductDataImplCopyWithImpl( _$ProfitLossProductDataImpl _value, $Res Function(_$ProfitLossProductDataImpl) _then, ) : super(_value, _then); /// Create a copy of ProfitLossProductData /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? productId = null, Object? productName = null, Object? categoryId = null, Object? categoryName = null, Object? quantitySold = null, Object? revenue = null, Object? cost = null, Object? grossProfit = null, Object? grossProfitMargin = null, Object? averagePrice = null, Object? averageCost = null, Object? profitPerUnit = null, }) { return _then( _$ProfitLossProductDataImpl( productId: null == productId ? _value.productId : productId // ignore: cast_nullable_to_non_nullable as String, productName: null == productName ? _value.productName : productName // ignore: cast_nullable_to_non_nullable as String, categoryId: null == categoryId ? _value.categoryId : categoryId // ignore: cast_nullable_to_non_nullable as String, categoryName: null == categoryName ? _value.categoryName : categoryName // ignore: cast_nullable_to_non_nullable as String, quantitySold: null == quantitySold ? _value.quantitySold : quantitySold // ignore: cast_nullable_to_non_nullable as int, revenue: null == revenue ? _value.revenue : revenue // ignore: cast_nullable_to_non_nullable as int, cost: null == cost ? _value.cost : cost // ignore: cast_nullable_to_non_nullable as int, grossProfit: null == grossProfit ? _value.grossProfit : grossProfit // ignore: cast_nullable_to_non_nullable as int, grossProfitMargin: null == grossProfitMargin ? _value.grossProfitMargin : grossProfitMargin // ignore: cast_nullable_to_non_nullable as double, averagePrice: null == averagePrice ? _value.averagePrice : averagePrice // ignore: cast_nullable_to_non_nullable as int, averageCost: null == averageCost ? _value.averageCost : averageCost // ignore: cast_nullable_to_non_nullable as int, profitPerUnit: null == profitPerUnit ? _value.profitPerUnit : profitPerUnit // ignore: cast_nullable_to_non_nullable as int, ), ); } } /// @nodoc class _$ProfitLossProductDataImpl implements _ProfitLossProductData { const _$ProfitLossProductDataImpl({ required this.productId, required this.productName, required this.categoryId, required this.categoryName, required this.quantitySold, required this.revenue, required this.cost, required this.grossProfit, required this.grossProfitMargin, required this.averagePrice, required this.averageCost, required this.profitPerUnit, }); @override final String productId; @override final String productName; @override final String categoryId; @override final String categoryName; @override final int quantitySold; @override final int revenue; @override final int cost; @override final int grossProfit; @override final double grossProfitMargin; @override final int averagePrice; @override final int averageCost; @override final int profitPerUnit; @override String toString() { return 'ProfitLossProductData(productId: $productId, productName: $productName, categoryId: $categoryId, categoryName: $categoryName, quantitySold: $quantitySold, revenue: $revenue, cost: $cost, grossProfit: $grossProfit, grossProfitMargin: $grossProfitMargin, averagePrice: $averagePrice, averageCost: $averageCost, profitPerUnit: $profitPerUnit)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ProfitLossProductDataImpl && (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.cost, cost) || other.cost == cost) && (identical(other.grossProfit, grossProfit) || other.grossProfit == grossProfit) && (identical(other.grossProfitMargin, grossProfitMargin) || other.grossProfitMargin == grossProfitMargin) && (identical(other.averagePrice, averagePrice) || other.averagePrice == averagePrice) && (identical(other.averageCost, averageCost) || other.averageCost == averageCost) && (identical(other.profitPerUnit, profitPerUnit) || other.profitPerUnit == profitPerUnit)); } @override int get hashCode => Object.hash( runtimeType, productId, productName, categoryId, categoryName, quantitySold, revenue, cost, grossProfit, grossProfitMargin, averagePrice, averageCost, profitPerUnit, ); /// Create a copy of ProfitLossProductData /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ProfitLossProductDataImplCopyWith<_$ProfitLossProductDataImpl> get copyWith => __$$ProfitLossProductDataImplCopyWithImpl<_$ProfitLossProductDataImpl>( this, _$identity, ); } abstract class _ProfitLossProductData implements ProfitLossProductData { const factory _ProfitLossProductData({ required final String productId, required final String productName, required final String categoryId, required final String categoryName, required final int quantitySold, required final int revenue, required final int cost, required final int grossProfit, required final double grossProfitMargin, required final int averagePrice, required final int averageCost, required final int profitPerUnit, }) = _$ProfitLossProductDataImpl; @override String get productId; @override String get productName; @override String get categoryId; @override String get categoryName; @override int get quantitySold; @override int get revenue; @override int get cost; @override int get grossProfit; @override double get grossProfitMargin; @override int get averagePrice; @override int get averageCost; @override int get profitPerUnit; /// Create a copy of ProfitLossProductData /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$ProfitLossProductDataImplCopyWith<_$ProfitLossProductDataImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$CategoryAnalytic { String get organizationId => throw _privateConstructorUsedError; String get outletId => throw _privateConstructorUsedError; String get dateFrom => throw _privateConstructorUsedError; String get dateTo => throw _privateConstructorUsedError; List get data => throw _privateConstructorUsedError; /// Create a copy of CategoryAnalytic /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $CategoryAnalyticCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $CategoryAnalyticCopyWith<$Res> { factory $CategoryAnalyticCopyWith( CategoryAnalytic value, $Res Function(CategoryAnalytic) then, ) = _$CategoryAnalyticCopyWithImpl<$Res, CategoryAnalytic>; @useResult $Res call({ String organizationId, String outletId, String dateFrom, String dateTo, List data, }); } /// @nodoc class _$CategoryAnalyticCopyWithImpl<$Res, $Val extends CategoryAnalytic> implements $CategoryAnalyticCopyWith<$Res> { _$CategoryAnalyticCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of CategoryAnalytic /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? organizationId = null, Object? outletId = null, Object? dateFrom = null, Object? dateTo = null, Object? data = null, }) { return _then( _value.copyWith( organizationId: null == organizationId ? _value.organizationId : organizationId // ignore: cast_nullable_to_non_nullable as String, outletId: null == outletId ? _value.outletId : outletId // ignore: cast_nullable_to_non_nullable as String, dateFrom: null == dateFrom ? _value.dateFrom : dateFrom // ignore: cast_nullable_to_non_nullable as String, dateTo: null == dateTo ? _value.dateTo : dateTo // ignore: cast_nullable_to_non_nullable as String, data: null == data ? _value.data : data // ignore: cast_nullable_to_non_nullable as List, ) as $Val, ); } } /// @nodoc abstract class _$$CategoryAnalyticImplCopyWith<$Res> implements $CategoryAnalyticCopyWith<$Res> { factory _$$CategoryAnalyticImplCopyWith( _$CategoryAnalyticImpl value, $Res Function(_$CategoryAnalyticImpl) then, ) = __$$CategoryAnalyticImplCopyWithImpl<$Res>; @override @useResult $Res call({ String organizationId, String outletId, String dateFrom, String dateTo, List data, }); } /// @nodoc class __$$CategoryAnalyticImplCopyWithImpl<$Res> extends _$CategoryAnalyticCopyWithImpl<$Res, _$CategoryAnalyticImpl> implements _$$CategoryAnalyticImplCopyWith<$Res> { __$$CategoryAnalyticImplCopyWithImpl( _$CategoryAnalyticImpl _value, $Res Function(_$CategoryAnalyticImpl) _then, ) : super(_value, _then); /// Create a copy of CategoryAnalytic /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? organizationId = null, Object? outletId = null, Object? dateFrom = null, Object? dateTo = null, Object? data = null, }) { return _then( _$CategoryAnalyticImpl( organizationId: null == organizationId ? _value.organizationId : organizationId // ignore: cast_nullable_to_non_nullable as String, outletId: null == outletId ? _value.outletId : outletId // ignore: cast_nullable_to_non_nullable as String, dateFrom: null == dateFrom ? _value.dateFrom : dateFrom // ignore: cast_nullable_to_non_nullable as String, dateTo: null == dateTo ? _value.dateTo : dateTo // ignore: cast_nullable_to_non_nullable as String, data: null == data ? _value._data : data // ignore: cast_nullable_to_non_nullable as List, ), ); } } /// @nodoc class _$CategoryAnalyticImpl implements _CategoryAnalytic { const _$CategoryAnalyticImpl({ required this.organizationId, required this.outletId, required this.dateFrom, required this.dateTo, required final List data, }) : _data = data; @override final String organizationId; @override final String outletId; @override final String dateFrom; @override final String dateTo; final List _data; @override List get data { if (_data is EqualUnmodifiableListView) return _data; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_data); } @override String toString() { return 'CategoryAnalytic(organizationId: $organizationId, outletId: $outletId, dateFrom: $dateFrom, dateTo: $dateTo, data: $data)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CategoryAnalyticImpl && (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) && const DeepCollectionEquality().equals(other._data, _data)); } @override int get hashCode => Object.hash( runtimeType, organizationId, outletId, dateFrom, dateTo, const DeepCollectionEquality().hash(_data), ); /// Create a copy of CategoryAnalytic /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CategoryAnalyticImplCopyWith<_$CategoryAnalyticImpl> get copyWith => __$$CategoryAnalyticImplCopyWithImpl<_$CategoryAnalyticImpl>( this, _$identity, ); } abstract class _CategoryAnalytic implements CategoryAnalytic { const factory _CategoryAnalytic({ required final String organizationId, required final String outletId, required final String dateFrom, required final String dateTo, required final List data, }) = _$CategoryAnalyticImpl; @override String get organizationId; @override String get outletId; @override String get dateFrom; @override String get dateTo; @override List get data; /// Create a copy of CategoryAnalytic /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$CategoryAnalyticImplCopyWith<_$CategoryAnalyticImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$CategoryAnalyticItem { String get categoryId => throw _privateConstructorUsedError; String get categoryName => throw _privateConstructorUsedError; int get totalRevenue => throw _privateConstructorUsedError; int get totalQuantity => throw _privateConstructorUsedError; int get productCount => throw _privateConstructorUsedError; int get orderCount => throw _privateConstructorUsedError; /// Create a copy of CategoryAnalyticItem /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $CategoryAnalyticItemCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $CategoryAnalyticItemCopyWith<$Res> { factory $CategoryAnalyticItemCopyWith( CategoryAnalyticItem value, $Res Function(CategoryAnalyticItem) then, ) = _$CategoryAnalyticItemCopyWithImpl<$Res, CategoryAnalyticItem>; @useResult $Res call({ String categoryId, String categoryName, int totalRevenue, int totalQuantity, int productCount, int orderCount, }); } /// @nodoc class _$CategoryAnalyticItemCopyWithImpl< $Res, $Val extends CategoryAnalyticItem > implements $CategoryAnalyticItemCopyWith<$Res> { _$CategoryAnalyticItemCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of CategoryAnalyticItem /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? categoryId = null, Object? categoryName = null, Object? totalRevenue = null, Object? totalQuantity = null, Object? productCount = null, Object? orderCount = null, }) { return _then( _value.copyWith( categoryId: null == categoryId ? _value.categoryId : categoryId // ignore: cast_nullable_to_non_nullable as String, categoryName: null == categoryName ? _value.categoryName : categoryName // ignore: cast_nullable_to_non_nullable as String, totalRevenue: null == totalRevenue ? _value.totalRevenue : totalRevenue // ignore: cast_nullable_to_non_nullable as int, totalQuantity: null == totalQuantity ? _value.totalQuantity : totalQuantity // ignore: cast_nullable_to_non_nullable as int, productCount: null == productCount ? _value.productCount : productCount // ignore: cast_nullable_to_non_nullable as int, orderCount: null == orderCount ? _value.orderCount : orderCount // ignore: cast_nullable_to_non_nullable as int, ) as $Val, ); } } /// @nodoc abstract class _$$CategoryAnalyticItemImplCopyWith<$Res> implements $CategoryAnalyticItemCopyWith<$Res> { factory _$$CategoryAnalyticItemImplCopyWith( _$CategoryAnalyticItemImpl value, $Res Function(_$CategoryAnalyticItemImpl) then, ) = __$$CategoryAnalyticItemImplCopyWithImpl<$Res>; @override @useResult $Res call({ String categoryId, String categoryName, int totalRevenue, int totalQuantity, int productCount, int orderCount, }); } /// @nodoc class __$$CategoryAnalyticItemImplCopyWithImpl<$Res> extends _$CategoryAnalyticItemCopyWithImpl<$Res, _$CategoryAnalyticItemImpl> implements _$$CategoryAnalyticItemImplCopyWith<$Res> { __$$CategoryAnalyticItemImplCopyWithImpl( _$CategoryAnalyticItemImpl _value, $Res Function(_$CategoryAnalyticItemImpl) _then, ) : super(_value, _then); /// Create a copy of CategoryAnalyticItem /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? categoryId = null, Object? categoryName = null, Object? totalRevenue = null, Object? totalQuantity = null, Object? productCount = null, Object? orderCount = null, }) { return _then( _$CategoryAnalyticItemImpl( categoryId: null == categoryId ? _value.categoryId : categoryId // ignore: cast_nullable_to_non_nullable as String, categoryName: null == categoryName ? _value.categoryName : categoryName // ignore: cast_nullable_to_non_nullable as String, totalRevenue: null == totalRevenue ? _value.totalRevenue : totalRevenue // ignore: cast_nullable_to_non_nullable as int, totalQuantity: null == totalQuantity ? _value.totalQuantity : totalQuantity // ignore: cast_nullable_to_non_nullable as int, productCount: null == productCount ? _value.productCount : productCount // ignore: cast_nullable_to_non_nullable as int, orderCount: null == orderCount ? _value.orderCount : orderCount // ignore: cast_nullable_to_non_nullable as int, ), ); } } /// @nodoc class _$CategoryAnalyticItemImpl implements _CategoryAnalyticItem { const _$CategoryAnalyticItemImpl({ required this.categoryId, required this.categoryName, required this.totalRevenue, required this.totalQuantity, required this.productCount, required this.orderCount, }); @override final String categoryId; @override final String categoryName; @override final int totalRevenue; @override final int totalQuantity; @override final int productCount; @override final int orderCount; @override String toString() { return 'CategoryAnalyticItem(categoryId: $categoryId, categoryName: $categoryName, totalRevenue: $totalRevenue, totalQuantity: $totalQuantity, productCount: $productCount, orderCount: $orderCount)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CategoryAnalyticItemImpl && (identical(other.categoryId, categoryId) || other.categoryId == categoryId) && (identical(other.categoryName, categoryName) || other.categoryName == categoryName) && (identical(other.totalRevenue, totalRevenue) || other.totalRevenue == totalRevenue) && (identical(other.totalQuantity, totalQuantity) || other.totalQuantity == totalQuantity) && (identical(other.productCount, productCount) || other.productCount == productCount) && (identical(other.orderCount, orderCount) || other.orderCount == orderCount)); } @override int get hashCode => Object.hash( runtimeType, categoryId, categoryName, totalRevenue, totalQuantity, productCount, orderCount, ); /// Create a copy of CategoryAnalyticItem /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CategoryAnalyticItemImplCopyWith<_$CategoryAnalyticItemImpl> get copyWith => __$$CategoryAnalyticItemImplCopyWithImpl<_$CategoryAnalyticItemImpl>( this, _$identity, ); } abstract class _CategoryAnalyticItem implements CategoryAnalyticItem { const factory _CategoryAnalyticItem({ required final String categoryId, required final String categoryName, required final int totalRevenue, required final int totalQuantity, required final int productCount, required final int orderCount, }) = _$CategoryAnalyticItemImpl; @override String get categoryId; @override String get categoryName; @override int get totalRevenue; @override int get totalQuantity; @override int get productCount; @override int get orderCount; /// Create a copy of CategoryAnalyticItem /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$CategoryAnalyticItemImplCopyWith<_$CategoryAnalyticItemImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$InventoryAnalytic { InventorySummary get summary => throw _privateConstructorUsedError; List get products => throw _privateConstructorUsedError; List get ingredients => throw _privateConstructorUsedError; /// Create a copy of InventoryAnalytic /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $InventoryAnalyticCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $InventoryAnalyticCopyWith<$Res> { factory $InventoryAnalyticCopyWith( InventoryAnalytic value, $Res Function(InventoryAnalytic) then, ) = _$InventoryAnalyticCopyWithImpl<$Res, InventoryAnalytic>; @useResult $Res call({ InventorySummary summary, List products, List ingredients, }); $InventorySummaryCopyWith<$Res> get summary; } /// @nodoc class _$InventoryAnalyticCopyWithImpl<$Res, $Val extends InventoryAnalytic> implements $InventoryAnalyticCopyWith<$Res> { _$InventoryAnalyticCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of InventoryAnalytic /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? summary = null, Object? products = null, Object? ingredients = null, }) { return _then( _value.copyWith( summary: null == summary ? _value.summary : summary // ignore: cast_nullable_to_non_nullable as InventorySummary, products: null == products ? _value.products : products // ignore: cast_nullable_to_non_nullable as List, ingredients: null == ingredients ? _value.ingredients : ingredients // ignore: cast_nullable_to_non_nullable as List, ) as $Val, ); } /// Create a copy of InventoryAnalytic /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $InventorySummaryCopyWith<$Res> get summary { return $InventorySummaryCopyWith<$Res>(_value.summary, (value) { return _then(_value.copyWith(summary: value) as $Val); }); } } /// @nodoc abstract class _$$InventoryAnalyticImplCopyWith<$Res> implements $InventoryAnalyticCopyWith<$Res> { factory _$$InventoryAnalyticImplCopyWith( _$InventoryAnalyticImpl value, $Res Function(_$InventoryAnalyticImpl) then, ) = __$$InventoryAnalyticImplCopyWithImpl<$Res>; @override @useResult $Res call({ InventorySummary summary, List products, List ingredients, }); @override $InventorySummaryCopyWith<$Res> get summary; } /// @nodoc class __$$InventoryAnalyticImplCopyWithImpl<$Res> extends _$InventoryAnalyticCopyWithImpl<$Res, _$InventoryAnalyticImpl> implements _$$InventoryAnalyticImplCopyWith<$Res> { __$$InventoryAnalyticImplCopyWithImpl( _$InventoryAnalyticImpl _value, $Res Function(_$InventoryAnalyticImpl) _then, ) : super(_value, _then); /// Create a copy of InventoryAnalytic /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? summary = null, Object? products = null, Object? ingredients = null, }) { return _then( _$InventoryAnalyticImpl( summary: null == summary ? _value.summary : summary // ignore: cast_nullable_to_non_nullable as InventorySummary, products: null == products ? _value._products : products // ignore: cast_nullable_to_non_nullable as List, ingredients: null == ingredients ? _value._ingredients : ingredients // ignore: cast_nullable_to_non_nullable as List, ), ); } } /// @nodoc class _$InventoryAnalyticImpl implements _InventoryAnalytic { const _$InventoryAnalyticImpl({ required this.summary, required final List products, required final List ingredients, }) : _products = products, _ingredients = ingredients; @override final InventorySummary summary; final List _products; @override List get products { if (_products is EqualUnmodifiableListView) return _products; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_products); } final List _ingredients; @override List get ingredients { if (_ingredients is EqualUnmodifiableListView) return _ingredients; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_ingredients); } @override String toString() { return 'InventoryAnalytic(summary: $summary, products: $products, ingredients: $ingredients)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$InventoryAnalyticImpl && (identical(other.summary, summary) || other.summary == summary) && const DeepCollectionEquality().equals(other._products, _products) && const DeepCollectionEquality().equals( other._ingredients, _ingredients, )); } @override int get hashCode => Object.hash( runtimeType, summary, const DeepCollectionEquality().hash(_products), const DeepCollectionEquality().hash(_ingredients), ); /// Create a copy of InventoryAnalytic /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$InventoryAnalyticImplCopyWith<_$InventoryAnalyticImpl> get copyWith => __$$InventoryAnalyticImplCopyWithImpl<_$InventoryAnalyticImpl>( this, _$identity, ); } abstract class _InventoryAnalytic implements InventoryAnalytic { const factory _InventoryAnalytic({ required final InventorySummary summary, required final List products, required final List ingredients, }) = _$InventoryAnalyticImpl; @override InventorySummary get summary; @override List get products; @override List get ingredients; /// Create a copy of InventoryAnalytic /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$InventoryAnalyticImplCopyWith<_$InventoryAnalyticImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$InventorySummary { int get totalProducts => throw _privateConstructorUsedError; int get totalIngredients => throw _privateConstructorUsedError; int get totalValue => throw _privateConstructorUsedError; int get lowStockProducts => throw _privateConstructorUsedError; int get lowStockIngredients => throw _privateConstructorUsedError; int get zeroStockProducts => throw _privateConstructorUsedError; int get zeroStockIngredients => throw _privateConstructorUsedError; int get totalSoldProducts => throw _privateConstructorUsedError; int get totalSoldIngredients => throw _privateConstructorUsedError; String get outletId => throw _privateConstructorUsedError; String get outletName => throw _privateConstructorUsedError; String get generatedAt => throw _privateConstructorUsedError; /// Create a copy of InventorySummary /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $InventorySummaryCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $InventorySummaryCopyWith<$Res> { factory $InventorySummaryCopyWith( InventorySummary value, $Res Function(InventorySummary) then, ) = _$InventorySummaryCopyWithImpl<$Res, InventorySummary>; @useResult $Res call({ int totalProducts, int totalIngredients, int totalValue, int lowStockProducts, int lowStockIngredients, int zeroStockProducts, int zeroStockIngredients, int totalSoldProducts, int totalSoldIngredients, String outletId, String outletName, String generatedAt, }); } /// @nodoc class _$InventorySummaryCopyWithImpl<$Res, $Val extends InventorySummary> implements $InventorySummaryCopyWith<$Res> { _$InventorySummaryCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of InventorySummary /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? totalProducts = null, Object? totalIngredients = null, Object? totalValue = null, Object? lowStockProducts = null, Object? lowStockIngredients = null, Object? zeroStockProducts = null, Object? zeroStockIngredients = null, Object? totalSoldProducts = null, Object? totalSoldIngredients = null, Object? outletId = null, Object? outletName = null, Object? generatedAt = null, }) { return _then( _value.copyWith( totalProducts: null == totalProducts ? _value.totalProducts : totalProducts // ignore: cast_nullable_to_non_nullable as int, totalIngredients: null == totalIngredients ? _value.totalIngredients : totalIngredients // ignore: cast_nullable_to_non_nullable as int, totalValue: null == totalValue ? _value.totalValue : totalValue // ignore: cast_nullable_to_non_nullable as int, lowStockProducts: null == lowStockProducts ? _value.lowStockProducts : lowStockProducts // ignore: cast_nullable_to_non_nullable as int, lowStockIngredients: null == lowStockIngredients ? _value.lowStockIngredients : lowStockIngredients // ignore: cast_nullable_to_non_nullable as int, zeroStockProducts: null == zeroStockProducts ? _value.zeroStockProducts : zeroStockProducts // ignore: cast_nullable_to_non_nullable as int, zeroStockIngredients: null == zeroStockIngredients ? _value.zeroStockIngredients : zeroStockIngredients // ignore: cast_nullable_to_non_nullable as int, totalSoldProducts: null == totalSoldProducts ? _value.totalSoldProducts : totalSoldProducts // ignore: cast_nullable_to_non_nullable as int, totalSoldIngredients: null == totalSoldIngredients ? _value.totalSoldIngredients : totalSoldIngredients // ignore: cast_nullable_to_non_nullable as int, outletId: null == outletId ? _value.outletId : outletId // ignore: cast_nullable_to_non_nullable as String, outletName: null == outletName ? _value.outletName : outletName // ignore: cast_nullable_to_non_nullable as String, generatedAt: null == generatedAt ? _value.generatedAt : generatedAt // ignore: cast_nullable_to_non_nullable as String, ) as $Val, ); } } /// @nodoc abstract class _$$InventorySummaryImplCopyWith<$Res> implements $InventorySummaryCopyWith<$Res> { factory _$$InventorySummaryImplCopyWith( _$InventorySummaryImpl value, $Res Function(_$InventorySummaryImpl) then, ) = __$$InventorySummaryImplCopyWithImpl<$Res>; @override @useResult $Res call({ int totalProducts, int totalIngredients, int totalValue, int lowStockProducts, int lowStockIngredients, int zeroStockProducts, int zeroStockIngredients, int totalSoldProducts, int totalSoldIngredients, String outletId, String outletName, String generatedAt, }); } /// @nodoc class __$$InventorySummaryImplCopyWithImpl<$Res> extends _$InventorySummaryCopyWithImpl<$Res, _$InventorySummaryImpl> implements _$$InventorySummaryImplCopyWith<$Res> { __$$InventorySummaryImplCopyWithImpl( _$InventorySummaryImpl _value, $Res Function(_$InventorySummaryImpl) _then, ) : super(_value, _then); /// Create a copy of InventorySummary /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? totalProducts = null, Object? totalIngredients = null, Object? totalValue = null, Object? lowStockProducts = null, Object? lowStockIngredients = null, Object? zeroStockProducts = null, Object? zeroStockIngredients = null, Object? totalSoldProducts = null, Object? totalSoldIngredients = null, Object? outletId = null, Object? outletName = null, Object? generatedAt = null, }) { return _then( _$InventorySummaryImpl( totalProducts: null == totalProducts ? _value.totalProducts : totalProducts // ignore: cast_nullable_to_non_nullable as int, totalIngredients: null == totalIngredients ? _value.totalIngredients : totalIngredients // ignore: cast_nullable_to_non_nullable as int, totalValue: null == totalValue ? _value.totalValue : totalValue // ignore: cast_nullable_to_non_nullable as int, lowStockProducts: null == lowStockProducts ? _value.lowStockProducts : lowStockProducts // ignore: cast_nullable_to_non_nullable as int, lowStockIngredients: null == lowStockIngredients ? _value.lowStockIngredients : lowStockIngredients // ignore: cast_nullable_to_non_nullable as int, zeroStockProducts: null == zeroStockProducts ? _value.zeroStockProducts : zeroStockProducts // ignore: cast_nullable_to_non_nullable as int, zeroStockIngredients: null == zeroStockIngredients ? _value.zeroStockIngredients : zeroStockIngredients // ignore: cast_nullable_to_non_nullable as int, totalSoldProducts: null == totalSoldProducts ? _value.totalSoldProducts : totalSoldProducts // ignore: cast_nullable_to_non_nullable as int, totalSoldIngredients: null == totalSoldIngredients ? _value.totalSoldIngredients : totalSoldIngredients // ignore: cast_nullable_to_non_nullable as int, outletId: null == outletId ? _value.outletId : outletId // ignore: cast_nullable_to_non_nullable as String, outletName: null == outletName ? _value.outletName : outletName // ignore: cast_nullable_to_non_nullable as String, generatedAt: null == generatedAt ? _value.generatedAt : generatedAt // ignore: cast_nullable_to_non_nullable as String, ), ); } } /// @nodoc class _$InventorySummaryImpl implements _InventorySummary { const _$InventorySummaryImpl({ required this.totalProducts, required this.totalIngredients, required this.totalValue, required this.lowStockProducts, required this.lowStockIngredients, required this.zeroStockProducts, required this.zeroStockIngredients, required this.totalSoldProducts, required this.totalSoldIngredients, required this.outletId, required this.outletName, required this.generatedAt, }); @override final int totalProducts; @override final int totalIngredients; @override final int totalValue; @override final int lowStockProducts; @override final int lowStockIngredients; @override final int zeroStockProducts; @override final int zeroStockIngredients; @override final int totalSoldProducts; @override final int totalSoldIngredients; @override final String outletId; @override final String outletName; @override final String generatedAt; @override String toString() { return 'InventorySummary(totalProducts: $totalProducts, totalIngredients: $totalIngredients, totalValue: $totalValue, lowStockProducts: $lowStockProducts, lowStockIngredients: $lowStockIngredients, zeroStockProducts: $zeroStockProducts, zeroStockIngredients: $zeroStockIngredients, totalSoldProducts: $totalSoldProducts, totalSoldIngredients: $totalSoldIngredients, outletId: $outletId, outletName: $outletName, generatedAt: $generatedAt)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$InventorySummaryImpl && (identical(other.totalProducts, totalProducts) || other.totalProducts == totalProducts) && (identical(other.totalIngredients, totalIngredients) || other.totalIngredients == totalIngredients) && (identical(other.totalValue, totalValue) || other.totalValue == totalValue) && (identical(other.lowStockProducts, lowStockProducts) || other.lowStockProducts == lowStockProducts) && (identical(other.lowStockIngredients, lowStockIngredients) || other.lowStockIngredients == lowStockIngredients) && (identical(other.zeroStockProducts, zeroStockProducts) || other.zeroStockProducts == zeroStockProducts) && (identical(other.zeroStockIngredients, zeroStockIngredients) || other.zeroStockIngredients == zeroStockIngredients) && (identical(other.totalSoldProducts, totalSoldProducts) || other.totalSoldProducts == totalSoldProducts) && (identical(other.totalSoldIngredients, totalSoldIngredients) || other.totalSoldIngredients == totalSoldIngredients) && (identical(other.outletId, outletId) || other.outletId == outletId) && (identical(other.outletName, outletName) || other.outletName == outletName) && (identical(other.generatedAt, generatedAt) || other.generatedAt == generatedAt)); } @override int get hashCode => Object.hash( runtimeType, totalProducts, totalIngredients, totalValue, lowStockProducts, lowStockIngredients, zeroStockProducts, zeroStockIngredients, totalSoldProducts, totalSoldIngredients, outletId, outletName, generatedAt, ); /// Create a copy of InventorySummary /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$InventorySummaryImplCopyWith<_$InventorySummaryImpl> get copyWith => __$$InventorySummaryImplCopyWithImpl<_$InventorySummaryImpl>( this, _$identity, ); } abstract class _InventorySummary implements InventorySummary { const factory _InventorySummary({ required final int totalProducts, required final int totalIngredients, required final int totalValue, required final int lowStockProducts, required final int lowStockIngredients, required final int zeroStockProducts, required final int zeroStockIngredients, required final int totalSoldProducts, required final int totalSoldIngredients, required final String outletId, required final String outletName, required final String generatedAt, }) = _$InventorySummaryImpl; @override int get totalProducts; @override int get totalIngredients; @override int get totalValue; @override int get lowStockProducts; @override int get lowStockIngredients; @override int get zeroStockProducts; @override int get zeroStockIngredients; @override int get totalSoldProducts; @override int get totalSoldIngredients; @override String get outletId; @override String get outletName; @override String get generatedAt; /// Create a copy of InventorySummary /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$InventorySummaryImplCopyWith<_$InventorySummaryImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$InventoryProduct { String get id => throw _privateConstructorUsedError; String get productId => throw _privateConstructorUsedError; String get productName => throw _privateConstructorUsedError; String get categoryName => throw _privateConstructorUsedError; int get quantity => throw _privateConstructorUsedError; int get reorderLevel => throw _privateConstructorUsedError; int get unitCost => throw _privateConstructorUsedError; int get totalValue => throw _privateConstructorUsedError; int get totalIn => throw _privateConstructorUsedError; int get totalOut => throw _privateConstructorUsedError; bool get isLowStock => throw _privateConstructorUsedError; bool get isZeroStock => throw _privateConstructorUsedError; String get updatedAt => throw _privateConstructorUsedError; /// Create a copy of InventoryProduct /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $InventoryProductCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $InventoryProductCopyWith<$Res> { factory $InventoryProductCopyWith( InventoryProduct value, $Res Function(InventoryProduct) then, ) = _$InventoryProductCopyWithImpl<$Res, InventoryProduct>; @useResult $Res call({ String id, String productId, String productName, String categoryName, int quantity, int reorderLevel, int unitCost, int totalValue, int totalIn, int totalOut, bool isLowStock, bool isZeroStock, String updatedAt, }); } /// @nodoc class _$InventoryProductCopyWithImpl<$Res, $Val extends InventoryProduct> implements $InventoryProductCopyWith<$Res> { _$InventoryProductCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of InventoryProduct /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? productId = null, Object? productName = null, Object? categoryName = null, Object? quantity = null, Object? reorderLevel = null, Object? unitCost = null, Object? totalValue = null, Object? totalIn = null, Object? totalOut = null, Object? isLowStock = null, Object? isZeroStock = null, Object? updatedAt = null, }) { return _then( _value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, productId: null == productId ? _value.productId : productId // ignore: cast_nullable_to_non_nullable as String, productName: null == productName ? _value.productName : productName // ignore: cast_nullable_to_non_nullable as String, categoryName: null == categoryName ? _value.categoryName : categoryName // ignore: cast_nullable_to_non_nullable as String, quantity: null == quantity ? _value.quantity : quantity // ignore: cast_nullable_to_non_nullable as int, reorderLevel: null == reorderLevel ? _value.reorderLevel : reorderLevel // ignore: cast_nullable_to_non_nullable as int, unitCost: null == unitCost ? _value.unitCost : unitCost // ignore: cast_nullable_to_non_nullable as int, totalValue: null == totalValue ? _value.totalValue : totalValue // ignore: cast_nullable_to_non_nullable as int, totalIn: null == totalIn ? _value.totalIn : totalIn // ignore: cast_nullable_to_non_nullable as int, totalOut: null == totalOut ? _value.totalOut : totalOut // ignore: cast_nullable_to_non_nullable as int, isLowStock: null == isLowStock ? _value.isLowStock : isLowStock // ignore: cast_nullable_to_non_nullable as bool, isZeroStock: null == isZeroStock ? _value.isZeroStock : isZeroStock // ignore: cast_nullable_to_non_nullable as bool, updatedAt: null == updatedAt ? _value.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as String, ) as $Val, ); } } /// @nodoc abstract class _$$InventoryProductImplCopyWith<$Res> implements $InventoryProductCopyWith<$Res> { factory _$$InventoryProductImplCopyWith( _$InventoryProductImpl value, $Res Function(_$InventoryProductImpl) then, ) = __$$InventoryProductImplCopyWithImpl<$Res>; @override @useResult $Res call({ String id, String productId, String productName, String categoryName, int quantity, int reorderLevel, int unitCost, int totalValue, int totalIn, int totalOut, bool isLowStock, bool isZeroStock, String updatedAt, }); } /// @nodoc class __$$InventoryProductImplCopyWithImpl<$Res> extends _$InventoryProductCopyWithImpl<$Res, _$InventoryProductImpl> implements _$$InventoryProductImplCopyWith<$Res> { __$$InventoryProductImplCopyWithImpl( _$InventoryProductImpl _value, $Res Function(_$InventoryProductImpl) _then, ) : super(_value, _then); /// Create a copy of InventoryProduct /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? productId = null, Object? productName = null, Object? categoryName = null, Object? quantity = null, Object? reorderLevel = null, Object? unitCost = null, Object? totalValue = null, Object? totalIn = null, Object? totalOut = null, Object? isLowStock = null, Object? isZeroStock = null, Object? updatedAt = null, }) { return _then( _$InventoryProductImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, productId: null == productId ? _value.productId : productId // ignore: cast_nullable_to_non_nullable as String, productName: null == productName ? _value.productName : productName // ignore: cast_nullable_to_non_nullable as String, categoryName: null == categoryName ? _value.categoryName : categoryName // ignore: cast_nullable_to_non_nullable as String, quantity: null == quantity ? _value.quantity : quantity // ignore: cast_nullable_to_non_nullable as int, reorderLevel: null == reorderLevel ? _value.reorderLevel : reorderLevel // ignore: cast_nullable_to_non_nullable as int, unitCost: null == unitCost ? _value.unitCost : unitCost // ignore: cast_nullable_to_non_nullable as int, totalValue: null == totalValue ? _value.totalValue : totalValue // ignore: cast_nullable_to_non_nullable as int, totalIn: null == totalIn ? _value.totalIn : totalIn // ignore: cast_nullable_to_non_nullable as int, totalOut: null == totalOut ? _value.totalOut : totalOut // ignore: cast_nullable_to_non_nullable as int, isLowStock: null == isLowStock ? _value.isLowStock : isLowStock // ignore: cast_nullable_to_non_nullable as bool, isZeroStock: null == isZeroStock ? _value.isZeroStock : isZeroStock // ignore: cast_nullable_to_non_nullable as bool, updatedAt: null == updatedAt ? _value.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as String, ), ); } } /// @nodoc class _$InventoryProductImpl implements _InventoryProduct { const _$InventoryProductImpl({ required this.id, required this.productId, required this.productName, required this.categoryName, required this.quantity, required this.reorderLevel, required this.unitCost, required this.totalValue, required this.totalIn, required this.totalOut, required this.isLowStock, required this.isZeroStock, required this.updatedAt, }); @override final String id; @override final String productId; @override final String productName; @override final String categoryName; @override final int quantity; @override final int reorderLevel; @override final int unitCost; @override final int totalValue; @override final int totalIn; @override final int totalOut; @override final bool isLowStock; @override final bool isZeroStock; @override final String updatedAt; @override String toString() { return 'InventoryProduct(id: $id, productId: $productId, productName: $productName, categoryName: $categoryName, quantity: $quantity, reorderLevel: $reorderLevel, unitCost: $unitCost, totalValue: $totalValue, totalIn: $totalIn, totalOut: $totalOut, isLowStock: $isLowStock, isZeroStock: $isZeroStock, updatedAt: $updatedAt)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$InventoryProductImpl && (identical(other.id, id) || other.id == id) && (identical(other.productId, productId) || other.productId == productId) && (identical(other.productName, productName) || other.productName == productName) && (identical(other.categoryName, categoryName) || other.categoryName == categoryName) && (identical(other.quantity, quantity) || other.quantity == quantity) && (identical(other.reorderLevel, reorderLevel) || other.reorderLevel == reorderLevel) && (identical(other.unitCost, unitCost) || other.unitCost == unitCost) && (identical(other.totalValue, totalValue) || other.totalValue == totalValue) && (identical(other.totalIn, totalIn) || other.totalIn == totalIn) && (identical(other.totalOut, totalOut) || other.totalOut == totalOut) && (identical(other.isLowStock, isLowStock) || other.isLowStock == isLowStock) && (identical(other.isZeroStock, isZeroStock) || other.isZeroStock == isZeroStock) && (identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt)); } @override int get hashCode => Object.hash( runtimeType, id, productId, productName, categoryName, quantity, reorderLevel, unitCost, totalValue, totalIn, totalOut, isLowStock, isZeroStock, updatedAt, ); /// Create a copy of InventoryProduct /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$InventoryProductImplCopyWith<_$InventoryProductImpl> get copyWith => __$$InventoryProductImplCopyWithImpl<_$InventoryProductImpl>( this, _$identity, ); } abstract class _InventoryProduct implements InventoryProduct { const factory _InventoryProduct({ required final String id, required final String productId, required final String productName, required final String categoryName, required final int quantity, required final int reorderLevel, required final int unitCost, required final int totalValue, required final int totalIn, required final int totalOut, required final bool isLowStock, required final bool isZeroStock, required final String updatedAt, }) = _$InventoryProductImpl; @override String get id; @override String get productId; @override String get productName; @override String get categoryName; @override int get quantity; @override int get reorderLevel; @override int get unitCost; @override int get totalValue; @override int get totalIn; @override int get totalOut; @override bool get isLowStock; @override bool get isZeroStock; @override String get updatedAt; /// Create a copy of InventoryProduct /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$InventoryProductImplCopyWith<_$InventoryProductImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$InventoryIngredient { String get id => throw _privateConstructorUsedError; String get ingredientId => throw _privateConstructorUsedError; String get ingredientName => throw _privateConstructorUsedError; String get unitName => throw _privateConstructorUsedError; int get quantity => throw _privateConstructorUsedError; int get reorderLevel => throw _privateConstructorUsedError; int get unitCost => throw _privateConstructorUsedError; int get totalValue => throw _privateConstructorUsedError; int get totalIn => throw _privateConstructorUsedError; int get totalOut => throw _privateConstructorUsedError; bool get isLowStock => throw _privateConstructorUsedError; bool get isZeroStock => throw _privateConstructorUsedError; String get updatedAt => throw _privateConstructorUsedError; /// Create a copy of InventoryIngredient /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $InventoryIngredientCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $InventoryIngredientCopyWith<$Res> { factory $InventoryIngredientCopyWith( InventoryIngredient value, $Res Function(InventoryIngredient) then, ) = _$InventoryIngredientCopyWithImpl<$Res, InventoryIngredient>; @useResult $Res call({ String id, String ingredientId, String ingredientName, String unitName, int quantity, int reorderLevel, int unitCost, int totalValue, int totalIn, int totalOut, bool isLowStock, bool isZeroStock, String updatedAt, }); } /// @nodoc class _$InventoryIngredientCopyWithImpl<$Res, $Val extends InventoryIngredient> implements $InventoryIngredientCopyWith<$Res> { _$InventoryIngredientCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of InventoryIngredient /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? ingredientId = null, Object? ingredientName = null, Object? unitName = null, Object? quantity = null, Object? reorderLevel = null, Object? unitCost = null, Object? totalValue = null, Object? totalIn = null, Object? totalOut = null, Object? isLowStock = null, Object? isZeroStock = null, Object? updatedAt = null, }) { return _then( _value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, ingredientId: null == ingredientId ? _value.ingredientId : ingredientId // ignore: cast_nullable_to_non_nullable as String, ingredientName: null == ingredientName ? _value.ingredientName : ingredientName // ignore: cast_nullable_to_non_nullable as String, unitName: null == unitName ? _value.unitName : unitName // ignore: cast_nullable_to_non_nullable as String, quantity: null == quantity ? _value.quantity : quantity // ignore: cast_nullable_to_non_nullable as int, reorderLevel: null == reorderLevel ? _value.reorderLevel : reorderLevel // ignore: cast_nullable_to_non_nullable as int, unitCost: null == unitCost ? _value.unitCost : unitCost // ignore: cast_nullable_to_non_nullable as int, totalValue: null == totalValue ? _value.totalValue : totalValue // ignore: cast_nullable_to_non_nullable as int, totalIn: null == totalIn ? _value.totalIn : totalIn // ignore: cast_nullable_to_non_nullable as int, totalOut: null == totalOut ? _value.totalOut : totalOut // ignore: cast_nullable_to_non_nullable as int, isLowStock: null == isLowStock ? _value.isLowStock : isLowStock // ignore: cast_nullable_to_non_nullable as bool, isZeroStock: null == isZeroStock ? _value.isZeroStock : isZeroStock // ignore: cast_nullable_to_non_nullable as bool, updatedAt: null == updatedAt ? _value.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as String, ) as $Val, ); } } /// @nodoc abstract class _$$InventoryIngredientImplCopyWith<$Res> implements $InventoryIngredientCopyWith<$Res> { factory _$$InventoryIngredientImplCopyWith( _$InventoryIngredientImpl value, $Res Function(_$InventoryIngredientImpl) then, ) = __$$InventoryIngredientImplCopyWithImpl<$Res>; @override @useResult $Res call({ String id, String ingredientId, String ingredientName, String unitName, int quantity, int reorderLevel, int unitCost, int totalValue, int totalIn, int totalOut, bool isLowStock, bool isZeroStock, String updatedAt, }); } /// @nodoc class __$$InventoryIngredientImplCopyWithImpl<$Res> extends _$InventoryIngredientCopyWithImpl<$Res, _$InventoryIngredientImpl> implements _$$InventoryIngredientImplCopyWith<$Res> { __$$InventoryIngredientImplCopyWithImpl( _$InventoryIngredientImpl _value, $Res Function(_$InventoryIngredientImpl) _then, ) : super(_value, _then); /// Create a copy of InventoryIngredient /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? ingredientId = null, Object? ingredientName = null, Object? unitName = null, Object? quantity = null, Object? reorderLevel = null, Object? unitCost = null, Object? totalValue = null, Object? totalIn = null, Object? totalOut = null, Object? isLowStock = null, Object? isZeroStock = null, Object? updatedAt = null, }) { return _then( _$InventoryIngredientImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, ingredientId: null == ingredientId ? _value.ingredientId : ingredientId // ignore: cast_nullable_to_non_nullable as String, ingredientName: null == ingredientName ? _value.ingredientName : ingredientName // ignore: cast_nullable_to_non_nullable as String, unitName: null == unitName ? _value.unitName : unitName // ignore: cast_nullable_to_non_nullable as String, quantity: null == quantity ? _value.quantity : quantity // ignore: cast_nullable_to_non_nullable as int, reorderLevel: null == reorderLevel ? _value.reorderLevel : reorderLevel // ignore: cast_nullable_to_non_nullable as int, unitCost: null == unitCost ? _value.unitCost : unitCost // ignore: cast_nullable_to_non_nullable as int, totalValue: null == totalValue ? _value.totalValue : totalValue // ignore: cast_nullable_to_non_nullable as int, totalIn: null == totalIn ? _value.totalIn : totalIn // ignore: cast_nullable_to_non_nullable as int, totalOut: null == totalOut ? _value.totalOut : totalOut // ignore: cast_nullable_to_non_nullable as int, isLowStock: null == isLowStock ? _value.isLowStock : isLowStock // ignore: cast_nullable_to_non_nullable as bool, isZeroStock: null == isZeroStock ? _value.isZeroStock : isZeroStock // ignore: cast_nullable_to_non_nullable as bool, updatedAt: null == updatedAt ? _value.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as String, ), ); } } /// @nodoc class _$InventoryIngredientImpl implements _InventoryIngredient { const _$InventoryIngredientImpl({ required this.id, required this.ingredientId, required this.ingredientName, required this.unitName, required this.quantity, required this.reorderLevel, required this.unitCost, required this.totalValue, required this.totalIn, required this.totalOut, required this.isLowStock, required this.isZeroStock, required this.updatedAt, }); @override final String id; @override final String ingredientId; @override final String ingredientName; @override final String unitName; @override final int quantity; @override final int reorderLevel; @override final int unitCost; @override final int totalValue; @override final int totalIn; @override final int totalOut; @override final bool isLowStock; @override final bool isZeroStock; @override final String updatedAt; @override String toString() { return 'InventoryIngredient(id: $id, ingredientId: $ingredientId, ingredientName: $ingredientName, unitName: $unitName, quantity: $quantity, reorderLevel: $reorderLevel, unitCost: $unitCost, totalValue: $totalValue, totalIn: $totalIn, totalOut: $totalOut, isLowStock: $isLowStock, isZeroStock: $isZeroStock, updatedAt: $updatedAt)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$InventoryIngredientImpl && (identical(other.id, id) || other.id == id) && (identical(other.ingredientId, ingredientId) || other.ingredientId == ingredientId) && (identical(other.ingredientName, ingredientName) || other.ingredientName == ingredientName) && (identical(other.unitName, unitName) || other.unitName == unitName) && (identical(other.quantity, quantity) || other.quantity == quantity) && (identical(other.reorderLevel, reorderLevel) || other.reorderLevel == reorderLevel) && (identical(other.unitCost, unitCost) || other.unitCost == unitCost) && (identical(other.totalValue, totalValue) || other.totalValue == totalValue) && (identical(other.totalIn, totalIn) || other.totalIn == totalIn) && (identical(other.totalOut, totalOut) || other.totalOut == totalOut) && (identical(other.isLowStock, isLowStock) || other.isLowStock == isLowStock) && (identical(other.isZeroStock, isZeroStock) || other.isZeroStock == isZeroStock) && (identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt)); } @override int get hashCode => Object.hash( runtimeType, id, ingredientId, ingredientName, unitName, quantity, reorderLevel, unitCost, totalValue, totalIn, totalOut, isLowStock, isZeroStock, updatedAt, ); /// Create a copy of InventoryIngredient /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$InventoryIngredientImplCopyWith<_$InventoryIngredientImpl> get copyWith => __$$InventoryIngredientImplCopyWithImpl<_$InventoryIngredientImpl>( this, _$identity, ); } abstract class _InventoryIngredient implements InventoryIngredient { const factory _InventoryIngredient({ required final String id, required final String ingredientId, required final String ingredientName, required final String unitName, required final int quantity, required final int reorderLevel, required final int unitCost, required final int totalValue, required final int totalIn, required final int totalOut, required final bool isLowStock, required final bool isZeroStock, required final String updatedAt, }) = _$InventoryIngredientImpl; @override String get id; @override String get ingredientId; @override String get ingredientName; @override String get unitName; @override int get quantity; @override int get reorderLevel; @override int get unitCost; @override int get totalValue; @override int get totalIn; @override int get totalOut; @override bool get isLowStock; @override bool get isZeroStock; @override String get updatedAt; /// Create a copy of InventoryIngredient /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$InventoryIngredientImplCopyWith<_$InventoryIngredientImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$DashboardAnalytic { String get organizationId => throw _privateConstructorUsedError; String get outletId => throw _privateConstructorUsedError; String get dateFrom => throw _privateConstructorUsedError; String get dateTo => throw _privateConstructorUsedError; DashboardOverview get overview => throw _privateConstructorUsedError; List get topProducts => throw _privateConstructorUsedError; List get paymentMethods => throw _privateConstructorUsedError; List get recentSales => throw _privateConstructorUsedError; /// Create a copy of DashboardAnalytic /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $DashboardAnalyticCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $DashboardAnalyticCopyWith<$Res> { factory $DashboardAnalyticCopyWith( DashboardAnalytic value, $Res Function(DashboardAnalytic) then, ) = _$DashboardAnalyticCopyWithImpl<$Res, DashboardAnalytic>; @useResult $Res call({ String organizationId, String outletId, String dateFrom, String dateTo, DashboardOverview overview, List topProducts, List paymentMethods, List recentSales, }); $DashboardOverviewCopyWith<$Res> get overview; } /// @nodoc class _$DashboardAnalyticCopyWithImpl<$Res, $Val extends DashboardAnalytic> implements $DashboardAnalyticCopyWith<$Res> { _$DashboardAnalyticCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of DashboardAnalytic /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? organizationId = null, Object? outletId = null, Object? dateFrom = null, Object? dateTo = null, Object? overview = null, Object? topProducts = null, Object? paymentMethods = null, Object? recentSales = null, }) { return _then( _value.copyWith( organizationId: null == organizationId ? _value.organizationId : organizationId // ignore: cast_nullable_to_non_nullable as String, outletId: null == outletId ? _value.outletId : outletId // ignore: cast_nullable_to_non_nullable as String, dateFrom: null == dateFrom ? _value.dateFrom : dateFrom // ignore: cast_nullable_to_non_nullable as String, dateTo: null == dateTo ? _value.dateTo : dateTo // ignore: cast_nullable_to_non_nullable as String, overview: null == overview ? _value.overview : overview // ignore: cast_nullable_to_non_nullable as DashboardOverview, topProducts: null == topProducts ? _value.topProducts : topProducts // ignore: cast_nullable_to_non_nullable as List, paymentMethods: null == paymentMethods ? _value.paymentMethods : paymentMethods // ignore: cast_nullable_to_non_nullable as List, recentSales: null == recentSales ? _value.recentSales : recentSales // ignore: cast_nullable_to_non_nullable as List, ) as $Val, ); } /// Create a copy of DashboardAnalytic /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $DashboardOverviewCopyWith<$Res> get overview { return $DashboardOverviewCopyWith<$Res>(_value.overview, (value) { return _then(_value.copyWith(overview: value) as $Val); }); } } /// @nodoc abstract class _$$DashboardAnalyticImplCopyWith<$Res> implements $DashboardAnalyticCopyWith<$Res> { factory _$$DashboardAnalyticImplCopyWith( _$DashboardAnalyticImpl value, $Res Function(_$DashboardAnalyticImpl) then, ) = __$$DashboardAnalyticImplCopyWithImpl<$Res>; @override @useResult $Res call({ String organizationId, String outletId, String dateFrom, String dateTo, DashboardOverview overview, List topProducts, List paymentMethods, List recentSales, }); @override $DashboardOverviewCopyWith<$Res> get overview; } /// @nodoc class __$$DashboardAnalyticImplCopyWithImpl<$Res> extends _$DashboardAnalyticCopyWithImpl<$Res, _$DashboardAnalyticImpl> implements _$$DashboardAnalyticImplCopyWith<$Res> { __$$DashboardAnalyticImplCopyWithImpl( _$DashboardAnalyticImpl _value, $Res Function(_$DashboardAnalyticImpl) _then, ) : super(_value, _then); /// Create a copy of DashboardAnalytic /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? organizationId = null, Object? outletId = null, Object? dateFrom = null, Object? dateTo = null, Object? overview = null, Object? topProducts = null, Object? paymentMethods = null, Object? recentSales = null, }) { return _then( _$DashboardAnalyticImpl( organizationId: null == organizationId ? _value.organizationId : organizationId // ignore: cast_nullable_to_non_nullable as String, outletId: null == outletId ? _value.outletId : outletId // ignore: cast_nullable_to_non_nullable as String, dateFrom: null == dateFrom ? _value.dateFrom : dateFrom // ignore: cast_nullable_to_non_nullable as String, dateTo: null == dateTo ? _value.dateTo : dateTo // ignore: cast_nullable_to_non_nullable as String, overview: null == overview ? _value.overview : overview // ignore: cast_nullable_to_non_nullable as DashboardOverview, topProducts: null == topProducts ? _value._topProducts : topProducts // ignore: cast_nullable_to_non_nullable as List, paymentMethods: null == paymentMethods ? _value._paymentMethods : paymentMethods // ignore: cast_nullable_to_non_nullable as List, recentSales: null == recentSales ? _value._recentSales : recentSales // ignore: cast_nullable_to_non_nullable as List, ), ); } } /// @nodoc class _$DashboardAnalyticImpl implements _DashboardAnalytic { const _$DashboardAnalyticImpl({ required this.organizationId, required this.outletId, required this.dateFrom, required this.dateTo, required this.overview, required final List topProducts, required final List paymentMethods, required final List recentSales, }) : _topProducts = topProducts, _paymentMethods = paymentMethods, _recentSales = recentSales; @override final String organizationId; @override final String outletId; @override final String dateFrom; @override final String dateTo; @override final DashboardOverview overview; final List _topProducts; @override List get topProducts { if (_topProducts is EqualUnmodifiableListView) return _topProducts; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_topProducts); } final List _paymentMethods; @override List get paymentMethods { if (_paymentMethods is EqualUnmodifiableListView) return _paymentMethods; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_paymentMethods); } final List _recentSales; @override List get recentSales { if (_recentSales is EqualUnmodifiableListView) return _recentSales; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_recentSales); } @override String toString() { return 'DashboardAnalytic(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 _$DashboardAnalyticImpl && (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, )); } @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 DashboardAnalytic /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$DashboardAnalyticImplCopyWith<_$DashboardAnalyticImpl> get copyWith => __$$DashboardAnalyticImplCopyWithImpl<_$DashboardAnalyticImpl>( this, _$identity, ); } abstract class _DashboardAnalytic implements DashboardAnalytic { const factory _DashboardAnalytic({ required final String organizationId, required final String outletId, required final String dateFrom, required final String dateTo, required final DashboardOverview overview, required final List topProducts, required final List paymentMethods, required final List recentSales, }) = _$DashboardAnalyticImpl; @override String get organizationId; @override String get outletId; @override String get dateFrom; @override String get dateTo; @override DashboardOverview get overview; @override List get topProducts; @override List get paymentMethods; @override List get recentSales; /// Create a copy of DashboardAnalytic /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$DashboardAnalyticImplCopyWith<_$DashboardAnalyticImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$DashboardOverview { int get totalSales => throw _privateConstructorUsedError; int get totalOrders => throw _privateConstructorUsedError; double get averageOrderValue => throw _privateConstructorUsedError; int get totalCustomers => throw _privateConstructorUsedError; int get voidedOrders => throw _privateConstructorUsedError; int get refundedOrders => throw _privateConstructorUsedError; /// Create a copy of DashboardOverview /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $DashboardOverviewCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $DashboardOverviewCopyWith<$Res> { factory $DashboardOverviewCopyWith( DashboardOverview value, $Res Function(DashboardOverview) then, ) = _$DashboardOverviewCopyWithImpl<$Res, DashboardOverview>; @useResult $Res call({ int totalSales, int totalOrders, double averageOrderValue, int totalCustomers, int voidedOrders, int refundedOrders, }); } /// @nodoc class _$DashboardOverviewCopyWithImpl<$Res, $Val extends DashboardOverview> implements $DashboardOverviewCopyWith<$Res> { _$DashboardOverviewCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of DashboardOverview /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? totalSales = null, Object? totalOrders = null, Object? averageOrderValue = null, Object? totalCustomers = null, Object? voidedOrders = null, Object? refundedOrders = null, }) { return _then( _value.copyWith( totalSales: null == totalSales ? _value.totalSales : totalSales // ignore: cast_nullable_to_non_nullable as int, totalOrders: null == totalOrders ? _value.totalOrders : totalOrders // ignore: cast_nullable_to_non_nullable as int, averageOrderValue: null == averageOrderValue ? _value.averageOrderValue : averageOrderValue // ignore: cast_nullable_to_non_nullable as double, totalCustomers: null == totalCustomers ? _value.totalCustomers : totalCustomers // ignore: cast_nullable_to_non_nullable as int, voidedOrders: null == voidedOrders ? _value.voidedOrders : voidedOrders // ignore: cast_nullable_to_non_nullable as int, refundedOrders: null == refundedOrders ? _value.refundedOrders : refundedOrders // ignore: cast_nullable_to_non_nullable as int, ) as $Val, ); } } /// @nodoc abstract class _$$DashboardOverviewImplCopyWith<$Res> implements $DashboardOverviewCopyWith<$Res> { factory _$$DashboardOverviewImplCopyWith( _$DashboardOverviewImpl value, $Res Function(_$DashboardOverviewImpl) then, ) = __$$DashboardOverviewImplCopyWithImpl<$Res>; @override @useResult $Res call({ int totalSales, int totalOrders, double averageOrderValue, int totalCustomers, int voidedOrders, int refundedOrders, }); } /// @nodoc class __$$DashboardOverviewImplCopyWithImpl<$Res> extends _$DashboardOverviewCopyWithImpl<$Res, _$DashboardOverviewImpl> implements _$$DashboardOverviewImplCopyWith<$Res> { __$$DashboardOverviewImplCopyWithImpl( _$DashboardOverviewImpl _value, $Res Function(_$DashboardOverviewImpl) _then, ) : super(_value, _then); /// Create a copy of DashboardOverview /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? totalSales = null, Object? totalOrders = null, Object? averageOrderValue = null, Object? totalCustomers = null, Object? voidedOrders = null, Object? refundedOrders = null, }) { return _then( _$DashboardOverviewImpl( totalSales: null == totalSales ? _value.totalSales : totalSales // ignore: cast_nullable_to_non_nullable as int, totalOrders: null == totalOrders ? _value.totalOrders : totalOrders // ignore: cast_nullable_to_non_nullable as int, averageOrderValue: null == averageOrderValue ? _value.averageOrderValue : averageOrderValue // ignore: cast_nullable_to_non_nullable as double, totalCustomers: null == totalCustomers ? _value.totalCustomers : totalCustomers // ignore: cast_nullable_to_non_nullable as int, voidedOrders: null == voidedOrders ? _value.voidedOrders : voidedOrders // ignore: cast_nullable_to_non_nullable as int, refundedOrders: null == refundedOrders ? _value.refundedOrders : refundedOrders // ignore: cast_nullable_to_non_nullable as int, ), ); } } /// @nodoc class _$DashboardOverviewImpl implements _DashboardOverview { const _$DashboardOverviewImpl({ required this.totalSales, required this.totalOrders, required this.averageOrderValue, required this.totalCustomers, required this.voidedOrders, required this.refundedOrders, }); @override final int totalSales; @override final int totalOrders; @override final double averageOrderValue; @override final int totalCustomers; @override final int voidedOrders; @override final int refundedOrders; @override String toString() { return 'DashboardOverview(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 _$DashboardOverviewImpl && (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)); } @override int get hashCode => Object.hash( runtimeType, totalSales, totalOrders, averageOrderValue, totalCustomers, voidedOrders, refundedOrders, ); /// Create a copy of DashboardOverview /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$DashboardOverviewImplCopyWith<_$DashboardOverviewImpl> get copyWith => __$$DashboardOverviewImplCopyWithImpl<_$DashboardOverviewImpl>( this, _$identity, ); } abstract class _DashboardOverview implements DashboardOverview { const factory _DashboardOverview({ required final int totalSales, required final int totalOrders, required final double averageOrderValue, required final int totalCustomers, required final int voidedOrders, required final int refundedOrders, }) = _$DashboardOverviewImpl; @override int get totalSales; @override int get totalOrders; @override double get averageOrderValue; @override int get totalCustomers; @override int get voidedOrders; @override int get refundedOrders; /// Create a copy of DashboardOverview /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$DashboardOverviewImplCopyWith<_$DashboardOverviewImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$DashboardTopProduct { String get productId => throw _privateConstructorUsedError; String get productName => throw _privateConstructorUsedError; String get categoryId => throw _privateConstructorUsedError; String get categoryName => throw _privateConstructorUsedError; int get quantitySold => throw _privateConstructorUsedError; int get revenue => throw _privateConstructorUsedError; double get averagePrice => throw _privateConstructorUsedError; int get orderCount => throw _privateConstructorUsedError; /// Create a copy of DashboardTopProduct /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $DashboardTopProductCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $DashboardTopProductCopyWith<$Res> { factory $DashboardTopProductCopyWith( DashboardTopProduct value, $Res Function(DashboardTopProduct) then, ) = _$DashboardTopProductCopyWithImpl<$Res, DashboardTopProduct>; @useResult $Res call({ String productId, String productName, String categoryId, String categoryName, int quantitySold, int revenue, double averagePrice, int orderCount, }); } /// @nodoc class _$DashboardTopProductCopyWithImpl<$Res, $Val extends DashboardTopProduct> implements $DashboardTopProductCopyWith<$Res> { _$DashboardTopProductCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of DashboardTopProduct /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? productId = null, Object? productName = null, Object? categoryId = null, Object? categoryName = null, Object? quantitySold = null, Object? revenue = null, Object? averagePrice = null, Object? orderCount = null, }) { return _then( _value.copyWith( productId: null == productId ? _value.productId : productId // ignore: cast_nullable_to_non_nullable as String, productName: null == productName ? _value.productName : productName // ignore: cast_nullable_to_non_nullable as String, categoryId: null == categoryId ? _value.categoryId : categoryId // ignore: cast_nullable_to_non_nullable as String, categoryName: null == categoryName ? _value.categoryName : categoryName // ignore: cast_nullable_to_non_nullable as String, quantitySold: null == quantitySold ? _value.quantitySold : quantitySold // ignore: cast_nullable_to_non_nullable as int, revenue: null == revenue ? _value.revenue : revenue // ignore: cast_nullable_to_non_nullable as int, averagePrice: null == averagePrice ? _value.averagePrice : averagePrice // ignore: cast_nullable_to_non_nullable as double, orderCount: null == orderCount ? _value.orderCount : orderCount // ignore: cast_nullable_to_non_nullable as int, ) as $Val, ); } } /// @nodoc abstract class _$$DashboardTopProductImplCopyWith<$Res> implements $DashboardTopProductCopyWith<$Res> { factory _$$DashboardTopProductImplCopyWith( _$DashboardTopProductImpl value, $Res Function(_$DashboardTopProductImpl) then, ) = __$$DashboardTopProductImplCopyWithImpl<$Res>; @override @useResult $Res call({ String productId, String productName, String categoryId, String categoryName, int quantitySold, int revenue, double averagePrice, int orderCount, }); } /// @nodoc class __$$DashboardTopProductImplCopyWithImpl<$Res> extends _$DashboardTopProductCopyWithImpl<$Res, _$DashboardTopProductImpl> implements _$$DashboardTopProductImplCopyWith<$Res> { __$$DashboardTopProductImplCopyWithImpl( _$DashboardTopProductImpl _value, $Res Function(_$DashboardTopProductImpl) _then, ) : super(_value, _then); /// Create a copy of DashboardTopProduct /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? productId = null, Object? productName = null, Object? categoryId = null, Object? categoryName = null, Object? quantitySold = null, Object? revenue = null, Object? averagePrice = null, Object? orderCount = null, }) { return _then( _$DashboardTopProductImpl( productId: null == productId ? _value.productId : productId // ignore: cast_nullable_to_non_nullable as String, productName: null == productName ? _value.productName : productName // ignore: cast_nullable_to_non_nullable as String, categoryId: null == categoryId ? _value.categoryId : categoryId // ignore: cast_nullable_to_non_nullable as String, categoryName: null == categoryName ? _value.categoryName : categoryName // ignore: cast_nullable_to_non_nullable as String, quantitySold: null == quantitySold ? _value.quantitySold : quantitySold // ignore: cast_nullable_to_non_nullable as int, revenue: null == revenue ? _value.revenue : revenue // ignore: cast_nullable_to_non_nullable as int, averagePrice: null == averagePrice ? _value.averagePrice : averagePrice // ignore: cast_nullable_to_non_nullable as double, orderCount: null == orderCount ? _value.orderCount : orderCount // ignore: cast_nullable_to_non_nullable as int, ), ); } } /// @nodoc class _$DashboardTopProductImpl implements _DashboardTopProduct { const _$DashboardTopProductImpl({ required this.productId, required this.productName, required this.categoryId, required this.categoryName, required this.quantitySold, required this.revenue, required this.averagePrice, required this.orderCount, }); @override final String productId; @override final String productName; @override final String categoryId; @override final String categoryName; @override final int quantitySold; @override final int revenue; @override final double averagePrice; @override final int orderCount; @override String toString() { return 'DashboardTopProduct(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 _$DashboardTopProductImpl && (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)); } @override int get hashCode => Object.hash( runtimeType, productId, productName, categoryId, categoryName, quantitySold, revenue, averagePrice, orderCount, ); /// Create a copy of DashboardTopProduct /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$DashboardTopProductImplCopyWith<_$DashboardTopProductImpl> get copyWith => __$$DashboardTopProductImplCopyWithImpl<_$DashboardTopProductImpl>( this, _$identity, ); } abstract class _DashboardTopProduct implements DashboardTopProduct { const factory _DashboardTopProduct({ required final String productId, required final String productName, required final String categoryId, required final String categoryName, required final int quantitySold, required final int revenue, required final double averagePrice, required final int orderCount, }) = _$DashboardTopProductImpl; @override String get productId; @override String get productName; @override String get categoryId; @override String get categoryName; @override int get quantitySold; @override int get revenue; @override double get averagePrice; @override int get orderCount; /// Create a copy of DashboardTopProduct /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$DashboardTopProductImplCopyWith<_$DashboardTopProductImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$DashboardPaymentMethod { String get paymentMethodId => throw _privateConstructorUsedError; String get paymentMethodName => throw _privateConstructorUsedError; String get paymentMethodType => throw _privateConstructorUsedError; int get totalAmount => throw _privateConstructorUsedError; int get orderCount => throw _privateConstructorUsedError; int get paymentCount => throw _privateConstructorUsedError; double get percentage => throw _privateConstructorUsedError; /// Create a copy of DashboardPaymentMethod /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $DashboardPaymentMethodCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $DashboardPaymentMethodCopyWith<$Res> { factory $DashboardPaymentMethodCopyWith( DashboardPaymentMethod value, $Res Function(DashboardPaymentMethod) then, ) = _$DashboardPaymentMethodCopyWithImpl<$Res, DashboardPaymentMethod>; @useResult $Res call({ String paymentMethodId, String paymentMethodName, String paymentMethodType, int totalAmount, int orderCount, int paymentCount, double percentage, }); } /// @nodoc class _$DashboardPaymentMethodCopyWithImpl< $Res, $Val extends DashboardPaymentMethod > implements $DashboardPaymentMethodCopyWith<$Res> { _$DashboardPaymentMethodCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of DashboardPaymentMethod /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? paymentMethodId = null, Object? paymentMethodName = null, Object? paymentMethodType = null, Object? totalAmount = null, Object? orderCount = null, Object? paymentCount = null, Object? percentage = null, }) { return _then( _value.copyWith( paymentMethodId: null == paymentMethodId ? _value.paymentMethodId : paymentMethodId // ignore: cast_nullable_to_non_nullable as String, paymentMethodName: null == paymentMethodName ? _value.paymentMethodName : paymentMethodName // ignore: cast_nullable_to_non_nullable as String, paymentMethodType: null == paymentMethodType ? _value.paymentMethodType : paymentMethodType // ignore: cast_nullable_to_non_nullable as String, totalAmount: null == totalAmount ? _value.totalAmount : totalAmount // ignore: cast_nullable_to_non_nullable as int, orderCount: null == orderCount ? _value.orderCount : orderCount // ignore: cast_nullable_to_non_nullable as int, paymentCount: null == paymentCount ? _value.paymentCount : paymentCount // ignore: cast_nullable_to_non_nullable as int, percentage: null == percentage ? _value.percentage : percentage // ignore: cast_nullable_to_non_nullable as double, ) as $Val, ); } } /// @nodoc abstract class _$$DashboardPaymentMethodImplCopyWith<$Res> implements $DashboardPaymentMethodCopyWith<$Res> { factory _$$DashboardPaymentMethodImplCopyWith( _$DashboardPaymentMethodImpl value, $Res Function(_$DashboardPaymentMethodImpl) then, ) = __$$DashboardPaymentMethodImplCopyWithImpl<$Res>; @override @useResult $Res call({ String paymentMethodId, String paymentMethodName, String paymentMethodType, int totalAmount, int orderCount, int paymentCount, double percentage, }); } /// @nodoc class __$$DashboardPaymentMethodImplCopyWithImpl<$Res> extends _$DashboardPaymentMethodCopyWithImpl<$Res, _$DashboardPaymentMethodImpl> implements _$$DashboardPaymentMethodImplCopyWith<$Res> { __$$DashboardPaymentMethodImplCopyWithImpl( _$DashboardPaymentMethodImpl _value, $Res Function(_$DashboardPaymentMethodImpl) _then, ) : super(_value, _then); /// Create a copy of DashboardPaymentMethod /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? paymentMethodId = null, Object? paymentMethodName = null, Object? paymentMethodType = null, Object? totalAmount = null, Object? orderCount = null, Object? paymentCount = null, Object? percentage = null, }) { return _then( _$DashboardPaymentMethodImpl( paymentMethodId: null == paymentMethodId ? _value.paymentMethodId : paymentMethodId // ignore: cast_nullable_to_non_nullable as String, paymentMethodName: null == paymentMethodName ? _value.paymentMethodName : paymentMethodName // ignore: cast_nullable_to_non_nullable as String, paymentMethodType: null == paymentMethodType ? _value.paymentMethodType : paymentMethodType // ignore: cast_nullable_to_non_nullable as String, totalAmount: null == totalAmount ? _value.totalAmount : totalAmount // ignore: cast_nullable_to_non_nullable as int, orderCount: null == orderCount ? _value.orderCount : orderCount // ignore: cast_nullable_to_non_nullable as int, paymentCount: null == paymentCount ? _value.paymentCount : paymentCount // ignore: cast_nullable_to_non_nullable as int, percentage: null == percentage ? _value.percentage : percentage // ignore: cast_nullable_to_non_nullable as double, ), ); } } /// @nodoc class _$DashboardPaymentMethodImpl implements _DashboardPaymentMethod { const _$DashboardPaymentMethodImpl({ required this.paymentMethodId, required this.paymentMethodName, required this.paymentMethodType, required this.totalAmount, required this.orderCount, required this.paymentCount, required this.percentage, }); @override final String paymentMethodId; @override final String paymentMethodName; @override final String paymentMethodType; @override final int totalAmount; @override final int orderCount; @override final int paymentCount; @override final double percentage; @override String toString() { return 'DashboardPaymentMethod(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 _$DashboardPaymentMethodImpl && (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)); } @override int get hashCode => Object.hash( runtimeType, paymentMethodId, paymentMethodName, paymentMethodType, totalAmount, orderCount, paymentCount, percentage, ); /// Create a copy of DashboardPaymentMethod /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$DashboardPaymentMethodImplCopyWith<_$DashboardPaymentMethodImpl> get copyWith => __$$DashboardPaymentMethodImplCopyWithImpl<_$DashboardPaymentMethodImpl>( this, _$identity, ); } abstract class _DashboardPaymentMethod implements DashboardPaymentMethod { const factory _DashboardPaymentMethod({ required final String paymentMethodId, required final String paymentMethodName, required final String paymentMethodType, required final int totalAmount, required final int orderCount, required final int paymentCount, required final double percentage, }) = _$DashboardPaymentMethodImpl; @override String get paymentMethodId; @override String get paymentMethodName; @override String get paymentMethodType; @override int get totalAmount; @override int get orderCount; @override int get paymentCount; @override double get percentage; /// Create a copy of DashboardPaymentMethod /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$DashboardPaymentMethodImplCopyWith<_$DashboardPaymentMethodImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$DashboardRecentSale { String get date => throw _privateConstructorUsedError; int get sales => throw _privateConstructorUsedError; int get orders => throw _privateConstructorUsedError; int get items => throw _privateConstructorUsedError; int get tax => throw _privateConstructorUsedError; int get discount => throw _privateConstructorUsedError; int get netSales => throw _privateConstructorUsedError; /// Create a copy of DashboardRecentSale /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $DashboardRecentSaleCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $DashboardRecentSaleCopyWith<$Res> { factory $DashboardRecentSaleCopyWith( DashboardRecentSale value, $Res Function(DashboardRecentSale) then, ) = _$DashboardRecentSaleCopyWithImpl<$Res, DashboardRecentSale>; @useResult $Res call({ String date, int sales, int orders, int items, int tax, int discount, int netSales, }); } /// @nodoc class _$DashboardRecentSaleCopyWithImpl<$Res, $Val extends DashboardRecentSale> implements $DashboardRecentSaleCopyWith<$Res> { _$DashboardRecentSaleCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of DashboardRecentSale /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? date = null, Object? sales = null, Object? orders = null, Object? items = null, Object? tax = null, Object? discount = null, Object? netSales = null, }) { return _then( _value.copyWith( date: null == date ? _value.date : date // ignore: cast_nullable_to_non_nullable as String, sales: null == sales ? _value.sales : sales // ignore: cast_nullable_to_non_nullable as int, orders: null == orders ? _value.orders : orders // ignore: cast_nullable_to_non_nullable as int, items: null == items ? _value.items : items // ignore: cast_nullable_to_non_nullable as int, tax: null == tax ? _value.tax : tax // ignore: cast_nullable_to_non_nullable as int, discount: null == discount ? _value.discount : discount // ignore: cast_nullable_to_non_nullable as int, netSales: null == netSales ? _value.netSales : netSales // ignore: cast_nullable_to_non_nullable as int, ) as $Val, ); } } /// @nodoc abstract class _$$DashboardRecentSaleImplCopyWith<$Res> implements $DashboardRecentSaleCopyWith<$Res> { factory _$$DashboardRecentSaleImplCopyWith( _$DashboardRecentSaleImpl value, $Res Function(_$DashboardRecentSaleImpl) then, ) = __$$DashboardRecentSaleImplCopyWithImpl<$Res>; @override @useResult $Res call({ String date, int sales, int orders, int items, int tax, int discount, int netSales, }); } /// @nodoc class __$$DashboardRecentSaleImplCopyWithImpl<$Res> extends _$DashboardRecentSaleCopyWithImpl<$Res, _$DashboardRecentSaleImpl> implements _$$DashboardRecentSaleImplCopyWith<$Res> { __$$DashboardRecentSaleImplCopyWithImpl( _$DashboardRecentSaleImpl _value, $Res Function(_$DashboardRecentSaleImpl) _then, ) : super(_value, _then); /// Create a copy of DashboardRecentSale /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? date = null, Object? sales = null, Object? orders = null, Object? items = null, Object? tax = null, Object? discount = null, Object? netSales = null, }) { return _then( _$DashboardRecentSaleImpl( date: null == date ? _value.date : date // ignore: cast_nullable_to_non_nullable as String, sales: null == sales ? _value.sales : sales // ignore: cast_nullable_to_non_nullable as int, orders: null == orders ? _value.orders : orders // ignore: cast_nullable_to_non_nullable as int, items: null == items ? _value.items : items // ignore: cast_nullable_to_non_nullable as int, tax: null == tax ? _value.tax : tax // ignore: cast_nullable_to_non_nullable as int, discount: null == discount ? _value.discount : discount // ignore: cast_nullable_to_non_nullable as int, netSales: null == netSales ? _value.netSales : netSales // ignore: cast_nullable_to_non_nullable as int, ), ); } } /// @nodoc class _$DashboardRecentSaleImpl implements _DashboardRecentSale { const _$DashboardRecentSaleImpl({ required this.date, required this.sales, required this.orders, required this.items, required this.tax, required this.discount, required this.netSales, }); @override final String date; @override final int sales; @override final int orders; @override final int items; @override final int tax; @override final int discount; @override final int netSales; @override String toString() { return 'DashboardRecentSale(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 _$DashboardRecentSaleImpl && (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)); } @override int get hashCode => Object.hash( runtimeType, date, sales, orders, items, tax, discount, netSales, ); /// Create a copy of DashboardRecentSale /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$DashboardRecentSaleImplCopyWith<_$DashboardRecentSaleImpl> get copyWith => __$$DashboardRecentSaleImplCopyWithImpl<_$DashboardRecentSaleImpl>( this, _$identity, ); } abstract class _DashboardRecentSale implements DashboardRecentSale { const factory _DashboardRecentSale({ required final String date, required final int sales, required final int orders, required final int items, required final int tax, required final int discount, required final int netSales, }) = _$DashboardRecentSaleImpl; @override String get date; @override int get sales; @override int get orders; @override int get items; @override int get tax; @override int get discount; @override int get netSales; /// Create a copy of DashboardRecentSale /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$DashboardRecentSaleImplCopyWith<_$DashboardRecentSaleImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$ProductAnalytic { String get organizationId => throw _privateConstructorUsedError; String get outletId => throw _privateConstructorUsedError; String get dateFrom => throw _privateConstructorUsedError; String get dateTo => throw _privateConstructorUsedError; List get data => throw _privateConstructorUsedError; /// Create a copy of ProductAnalytic /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $ProductAnalyticCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ProductAnalyticCopyWith<$Res> { factory $ProductAnalyticCopyWith( ProductAnalytic value, $Res Function(ProductAnalytic) then, ) = _$ProductAnalyticCopyWithImpl<$Res, ProductAnalytic>; @useResult $Res call({ String organizationId, String outletId, String dateFrom, String dateTo, List data, }); } /// @nodoc class _$ProductAnalyticCopyWithImpl<$Res, $Val extends ProductAnalytic> implements $ProductAnalyticCopyWith<$Res> { _$ProductAnalyticCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of ProductAnalytic /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? organizationId = null, Object? outletId = null, Object? dateFrom = null, Object? dateTo = null, Object? data = null, }) { return _then( _value.copyWith( organizationId: null == organizationId ? _value.organizationId : organizationId // ignore: cast_nullable_to_non_nullable as String, outletId: null == outletId ? _value.outletId : outletId // ignore: cast_nullable_to_non_nullable as String, dateFrom: null == dateFrom ? _value.dateFrom : dateFrom // ignore: cast_nullable_to_non_nullable as String, dateTo: null == dateTo ? _value.dateTo : dateTo // ignore: cast_nullable_to_non_nullable as String, data: null == data ? _value.data : data // ignore: cast_nullable_to_non_nullable as List, ) as $Val, ); } } /// @nodoc abstract class _$$ProductAnalyticImplCopyWith<$Res> implements $ProductAnalyticCopyWith<$Res> { factory _$$ProductAnalyticImplCopyWith( _$ProductAnalyticImpl value, $Res Function(_$ProductAnalyticImpl) then, ) = __$$ProductAnalyticImplCopyWithImpl<$Res>; @override @useResult $Res call({ String organizationId, String outletId, String dateFrom, String dateTo, List data, }); } /// @nodoc class __$$ProductAnalyticImplCopyWithImpl<$Res> extends _$ProductAnalyticCopyWithImpl<$Res, _$ProductAnalyticImpl> implements _$$ProductAnalyticImplCopyWith<$Res> { __$$ProductAnalyticImplCopyWithImpl( _$ProductAnalyticImpl _value, $Res Function(_$ProductAnalyticImpl) _then, ) : super(_value, _then); /// Create a copy of ProductAnalytic /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? organizationId = null, Object? outletId = null, Object? dateFrom = null, Object? dateTo = null, Object? data = null, }) { return _then( _$ProductAnalyticImpl( organizationId: null == organizationId ? _value.organizationId : organizationId // ignore: cast_nullable_to_non_nullable as String, outletId: null == outletId ? _value.outletId : outletId // ignore: cast_nullable_to_non_nullable as String, dateFrom: null == dateFrom ? _value.dateFrom : dateFrom // ignore: cast_nullable_to_non_nullable as String, dateTo: null == dateTo ? _value.dateTo : dateTo // ignore: cast_nullable_to_non_nullable as String, data: null == data ? _value._data : data // ignore: cast_nullable_to_non_nullable as List, ), ); } } /// @nodoc class _$ProductAnalyticImpl implements _ProductAnalytic { const _$ProductAnalyticImpl({ required this.organizationId, required this.outletId, required this.dateFrom, required this.dateTo, required final List data, }) : _data = data; @override final String organizationId; @override final String outletId; @override final String dateFrom; @override final String dateTo; final List _data; @override List get data { if (_data is EqualUnmodifiableListView) return _data; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_data); } @override String toString() { return 'ProductAnalytic(organizationId: $organizationId, outletId: $outletId, dateFrom: $dateFrom, dateTo: $dateTo, data: $data)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ProductAnalyticImpl && (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) && const DeepCollectionEquality().equals(other._data, _data)); } @override int get hashCode => Object.hash( runtimeType, organizationId, outletId, dateFrom, dateTo, const DeepCollectionEquality().hash(_data), ); /// Create a copy of ProductAnalytic /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ProductAnalyticImplCopyWith<_$ProductAnalyticImpl> get copyWith => __$$ProductAnalyticImplCopyWithImpl<_$ProductAnalyticImpl>( this, _$identity, ); } abstract class _ProductAnalytic implements ProductAnalytic { const factory _ProductAnalytic({ required final String organizationId, required final String outletId, required final String dateFrom, required final String dateTo, required final List data, }) = _$ProductAnalyticImpl; @override String get organizationId; @override String get outletId; @override String get dateFrom; @override String get dateTo; @override List get data; /// Create a copy of ProductAnalytic /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$ProductAnalyticImplCopyWith<_$ProductAnalyticImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$ProductAnalyticData { String get productId => throw _privateConstructorUsedError; String get productName => throw _privateConstructorUsedError; String get categoryId => throw _privateConstructorUsedError; String get categoryName => throw _privateConstructorUsedError; int get quantitySold => throw _privateConstructorUsedError; int get revenue => throw _privateConstructorUsedError; double get averagePrice => throw _privateConstructorUsedError; int get orderCount => throw _privateConstructorUsedError; /// Create a copy of ProductAnalyticData /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $ProductAnalyticDataCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ProductAnalyticDataCopyWith<$Res> { factory $ProductAnalyticDataCopyWith( ProductAnalyticData value, $Res Function(ProductAnalyticData) then, ) = _$ProductAnalyticDataCopyWithImpl<$Res, ProductAnalyticData>; @useResult $Res call({ String productId, String productName, String categoryId, String categoryName, int quantitySold, int revenue, double averagePrice, int orderCount, }); } /// @nodoc class _$ProductAnalyticDataCopyWithImpl<$Res, $Val extends ProductAnalyticData> implements $ProductAnalyticDataCopyWith<$Res> { _$ProductAnalyticDataCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of ProductAnalyticData /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? productId = null, Object? productName = null, Object? categoryId = null, Object? categoryName = null, Object? quantitySold = null, Object? revenue = null, Object? averagePrice = null, Object? orderCount = null, }) { return _then( _value.copyWith( productId: null == productId ? _value.productId : productId // ignore: cast_nullable_to_non_nullable as String, productName: null == productName ? _value.productName : productName // ignore: cast_nullable_to_non_nullable as String, categoryId: null == categoryId ? _value.categoryId : categoryId // ignore: cast_nullable_to_non_nullable as String, categoryName: null == categoryName ? _value.categoryName : categoryName // ignore: cast_nullable_to_non_nullable as String, quantitySold: null == quantitySold ? _value.quantitySold : quantitySold // ignore: cast_nullable_to_non_nullable as int, revenue: null == revenue ? _value.revenue : revenue // ignore: cast_nullable_to_non_nullable as int, averagePrice: null == averagePrice ? _value.averagePrice : averagePrice // ignore: cast_nullable_to_non_nullable as double, orderCount: null == orderCount ? _value.orderCount : orderCount // ignore: cast_nullable_to_non_nullable as int, ) as $Val, ); } } /// @nodoc abstract class _$$ProductAnalyticDataImplCopyWith<$Res> implements $ProductAnalyticDataCopyWith<$Res> { factory _$$ProductAnalyticDataImplCopyWith( _$ProductAnalyticDataImpl value, $Res Function(_$ProductAnalyticDataImpl) then, ) = __$$ProductAnalyticDataImplCopyWithImpl<$Res>; @override @useResult $Res call({ String productId, String productName, String categoryId, String categoryName, int quantitySold, int revenue, double averagePrice, int orderCount, }); } /// @nodoc class __$$ProductAnalyticDataImplCopyWithImpl<$Res> extends _$ProductAnalyticDataCopyWithImpl<$Res, _$ProductAnalyticDataImpl> implements _$$ProductAnalyticDataImplCopyWith<$Res> { __$$ProductAnalyticDataImplCopyWithImpl( _$ProductAnalyticDataImpl _value, $Res Function(_$ProductAnalyticDataImpl) _then, ) : super(_value, _then); /// Create a copy of ProductAnalyticData /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? productId = null, Object? productName = null, Object? categoryId = null, Object? categoryName = null, Object? quantitySold = null, Object? revenue = null, Object? averagePrice = null, Object? orderCount = null, }) { return _then( _$ProductAnalyticDataImpl( productId: null == productId ? _value.productId : productId // ignore: cast_nullable_to_non_nullable as String, productName: null == productName ? _value.productName : productName // ignore: cast_nullable_to_non_nullable as String, categoryId: null == categoryId ? _value.categoryId : categoryId // ignore: cast_nullable_to_non_nullable as String, categoryName: null == categoryName ? _value.categoryName : categoryName // ignore: cast_nullable_to_non_nullable as String, quantitySold: null == quantitySold ? _value.quantitySold : quantitySold // ignore: cast_nullable_to_non_nullable as int, revenue: null == revenue ? _value.revenue : revenue // ignore: cast_nullable_to_non_nullable as int, averagePrice: null == averagePrice ? _value.averagePrice : averagePrice // ignore: cast_nullable_to_non_nullable as double, orderCount: null == orderCount ? _value.orderCount : orderCount // ignore: cast_nullable_to_non_nullable as int, ), ); } } /// @nodoc class _$ProductAnalyticDataImpl implements _ProductAnalyticData { const _$ProductAnalyticDataImpl({ required this.productId, required this.productName, required this.categoryId, required this.categoryName, required this.quantitySold, required this.revenue, required this.averagePrice, required this.orderCount, }); @override final String productId; @override final String productName; @override final String categoryId; @override final String categoryName; @override final int quantitySold; @override final int revenue; @override final double averagePrice; @override final int orderCount; @override String toString() { return 'ProductAnalyticData(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 _$ProductAnalyticDataImpl && (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)); } @override int get hashCode => Object.hash( runtimeType, productId, productName, categoryId, categoryName, quantitySold, revenue, averagePrice, orderCount, ); /// Create a copy of ProductAnalyticData /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ProductAnalyticDataImplCopyWith<_$ProductAnalyticDataImpl> get copyWith => __$$ProductAnalyticDataImplCopyWithImpl<_$ProductAnalyticDataImpl>( this, _$identity, ); } abstract class _ProductAnalyticData implements ProductAnalyticData { const factory _ProductAnalyticData({ required final String productId, required final String productName, required final String categoryId, required final String categoryName, required final int quantitySold, required final int revenue, required final double averagePrice, required final int orderCount, }) = _$ProductAnalyticDataImpl; @override String get productId; @override String get productName; @override String get categoryId; @override String get categoryName; @override int get quantitySold; @override int get revenue; @override double get averagePrice; @override int get orderCount; /// Create a copy of ProductAnalyticData /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$ProductAnalyticDataImplCopyWith<_$ProductAnalyticDataImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$PaymentMethodAnalytic { String get organizationId => throw _privateConstructorUsedError; String get outletId => throw _privateConstructorUsedError; String get dateFrom => throw _privateConstructorUsedError; String get dateTo => throw _privateConstructorUsedError; String get groupBy => throw _privateConstructorUsedError; PaymentMethodSummary get summary => throw _privateConstructorUsedError; List get data => throw _privateConstructorUsedError; /// Create a copy of PaymentMethodAnalytic /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $PaymentMethodAnalyticCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $PaymentMethodAnalyticCopyWith<$Res> { factory $PaymentMethodAnalyticCopyWith( PaymentMethodAnalytic value, $Res Function(PaymentMethodAnalytic) then, ) = _$PaymentMethodAnalyticCopyWithImpl<$Res, PaymentMethodAnalytic>; @useResult $Res call({ String organizationId, String outletId, String dateFrom, String dateTo, String groupBy, PaymentMethodSummary summary, List data, }); $PaymentMethodSummaryCopyWith<$Res> get summary; } /// @nodoc class _$PaymentMethodAnalyticCopyWithImpl< $Res, $Val extends PaymentMethodAnalytic > implements $PaymentMethodAnalyticCopyWith<$Res> { _$PaymentMethodAnalyticCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of PaymentMethodAnalytic /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? organizationId = null, Object? outletId = null, Object? dateFrom = null, Object? dateTo = null, Object? groupBy = null, Object? summary = null, Object? data = null, }) { return _then( _value.copyWith( organizationId: null == organizationId ? _value.organizationId : organizationId // ignore: cast_nullable_to_non_nullable as String, outletId: null == outletId ? _value.outletId : outletId // ignore: cast_nullable_to_non_nullable as String, dateFrom: null == dateFrom ? _value.dateFrom : dateFrom // ignore: cast_nullable_to_non_nullable as String, dateTo: null == dateTo ? _value.dateTo : dateTo // ignore: cast_nullable_to_non_nullable as String, groupBy: null == groupBy ? _value.groupBy : groupBy // ignore: cast_nullable_to_non_nullable as String, summary: null == summary ? _value.summary : summary // ignore: cast_nullable_to_non_nullable as PaymentMethodSummary, data: null == data ? _value.data : data // ignore: cast_nullable_to_non_nullable as List, ) as $Val, ); } /// Create a copy of PaymentMethodAnalytic /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PaymentMethodSummaryCopyWith<$Res> get summary { return $PaymentMethodSummaryCopyWith<$Res>(_value.summary, (value) { return _then(_value.copyWith(summary: value) as $Val); }); } } /// @nodoc abstract class _$$PaymentMethodAnalyticImplCopyWith<$Res> implements $PaymentMethodAnalyticCopyWith<$Res> { factory _$$PaymentMethodAnalyticImplCopyWith( _$PaymentMethodAnalyticImpl value, $Res Function(_$PaymentMethodAnalyticImpl) then, ) = __$$PaymentMethodAnalyticImplCopyWithImpl<$Res>; @override @useResult $Res call({ String organizationId, String outletId, String dateFrom, String dateTo, String groupBy, PaymentMethodSummary summary, List data, }); @override $PaymentMethodSummaryCopyWith<$Res> get summary; } /// @nodoc class __$$PaymentMethodAnalyticImplCopyWithImpl<$Res> extends _$PaymentMethodAnalyticCopyWithImpl<$Res, _$PaymentMethodAnalyticImpl> implements _$$PaymentMethodAnalyticImplCopyWith<$Res> { __$$PaymentMethodAnalyticImplCopyWithImpl( _$PaymentMethodAnalyticImpl _value, $Res Function(_$PaymentMethodAnalyticImpl) _then, ) : super(_value, _then); /// Create a copy of PaymentMethodAnalytic /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? organizationId = null, Object? outletId = null, Object? dateFrom = null, Object? dateTo = null, Object? groupBy = null, Object? summary = null, Object? data = null, }) { return _then( _$PaymentMethodAnalyticImpl( organizationId: null == organizationId ? _value.organizationId : organizationId // ignore: cast_nullable_to_non_nullable as String, outletId: null == outletId ? _value.outletId : outletId // ignore: cast_nullable_to_non_nullable as String, dateFrom: null == dateFrom ? _value.dateFrom : dateFrom // ignore: cast_nullable_to_non_nullable as String, dateTo: null == dateTo ? _value.dateTo : dateTo // ignore: cast_nullable_to_non_nullable as String, groupBy: null == groupBy ? _value.groupBy : groupBy // ignore: cast_nullable_to_non_nullable as String, summary: null == summary ? _value.summary : summary // ignore: cast_nullable_to_non_nullable as PaymentMethodSummary, data: null == data ? _value._data : data // ignore: cast_nullable_to_non_nullable as List, ), ); } } /// @nodoc class _$PaymentMethodAnalyticImpl implements _PaymentMethodAnalytic { const _$PaymentMethodAnalyticImpl({ required this.organizationId, required this.outletId, required this.dateFrom, required this.dateTo, required this.groupBy, required this.summary, required final List data, }) : _data = data; @override final String organizationId; @override final String outletId; @override final String dateFrom; @override final String dateTo; @override final String groupBy; @override final PaymentMethodSummary summary; final List _data; @override List get data { if (_data is EqualUnmodifiableListView) return _data; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_data); } @override String toString() { return 'PaymentMethodAnalytic(organizationId: $organizationId, outletId: $outletId, dateFrom: $dateFrom, dateTo: $dateTo, groupBy: $groupBy, summary: $summary, data: $data)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodAnalyticImpl && (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.groupBy, groupBy) || other.groupBy == groupBy) && (identical(other.summary, summary) || other.summary == summary) && const DeepCollectionEquality().equals(other._data, _data)); } @override int get hashCode => Object.hash( runtimeType, organizationId, outletId, dateFrom, dateTo, groupBy, summary, const DeepCollectionEquality().hash(_data), ); /// Create a copy of PaymentMethodAnalytic /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodAnalyticImplCopyWith<_$PaymentMethodAnalyticImpl> get copyWith => __$$PaymentMethodAnalyticImplCopyWithImpl<_$PaymentMethodAnalyticImpl>( this, _$identity, ); } abstract class _PaymentMethodAnalytic implements PaymentMethodAnalytic { const factory _PaymentMethodAnalytic({ required final String organizationId, required final String outletId, required final String dateFrom, required final String dateTo, required final String groupBy, required final PaymentMethodSummary summary, required final List data, }) = _$PaymentMethodAnalyticImpl; @override String get organizationId; @override String get outletId; @override String get dateFrom; @override String get dateTo; @override String get groupBy; @override PaymentMethodSummary get summary; @override List get data; /// Create a copy of PaymentMethodAnalytic /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodAnalyticImplCopyWith<_$PaymentMethodAnalyticImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$PaymentMethodItem { String get paymentMethodId => throw _privateConstructorUsedError; String get paymentMethodName => throw _privateConstructorUsedError; String get paymentMethodType => throw _privateConstructorUsedError; num get totalAmount => throw _privateConstructorUsedError; int get orderCount => throw _privateConstructorUsedError; int get paymentCount => throw _privateConstructorUsedError; double get percentage => throw _privateConstructorUsedError; /// Create a copy of PaymentMethodItem /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $PaymentMethodItemCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $PaymentMethodItemCopyWith<$Res> { factory $PaymentMethodItemCopyWith( PaymentMethodItem value, $Res Function(PaymentMethodItem) then, ) = _$PaymentMethodItemCopyWithImpl<$Res, PaymentMethodItem>; @useResult $Res call({ String paymentMethodId, String paymentMethodName, String paymentMethodType, num totalAmount, int orderCount, int paymentCount, double percentage, }); } /// @nodoc class _$PaymentMethodItemCopyWithImpl<$Res, $Val extends PaymentMethodItem> implements $PaymentMethodItemCopyWith<$Res> { _$PaymentMethodItemCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of PaymentMethodItem /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? paymentMethodId = null, Object? paymentMethodName = null, Object? paymentMethodType = null, Object? totalAmount = null, Object? orderCount = null, Object? paymentCount = null, Object? percentage = null, }) { return _then( _value.copyWith( paymentMethodId: null == paymentMethodId ? _value.paymentMethodId : paymentMethodId // ignore: cast_nullable_to_non_nullable as String, paymentMethodName: null == paymentMethodName ? _value.paymentMethodName : paymentMethodName // ignore: cast_nullable_to_non_nullable as String, paymentMethodType: null == paymentMethodType ? _value.paymentMethodType : paymentMethodType // ignore: cast_nullable_to_non_nullable as String, totalAmount: null == totalAmount ? _value.totalAmount : totalAmount // ignore: cast_nullable_to_non_nullable as num, orderCount: null == orderCount ? _value.orderCount : orderCount // ignore: cast_nullable_to_non_nullable as int, paymentCount: null == paymentCount ? _value.paymentCount : paymentCount // ignore: cast_nullable_to_non_nullable as int, percentage: null == percentage ? _value.percentage : percentage // ignore: cast_nullable_to_non_nullable as double, ) as $Val, ); } } /// @nodoc abstract class _$$PaymentMethodItemImplCopyWith<$Res> implements $PaymentMethodItemCopyWith<$Res> { factory _$$PaymentMethodItemImplCopyWith( _$PaymentMethodItemImpl value, $Res Function(_$PaymentMethodItemImpl) then, ) = __$$PaymentMethodItemImplCopyWithImpl<$Res>; @override @useResult $Res call({ String paymentMethodId, String paymentMethodName, String paymentMethodType, num totalAmount, int orderCount, int paymentCount, double percentage, }); } /// @nodoc class __$$PaymentMethodItemImplCopyWithImpl<$Res> extends _$PaymentMethodItemCopyWithImpl<$Res, _$PaymentMethodItemImpl> implements _$$PaymentMethodItemImplCopyWith<$Res> { __$$PaymentMethodItemImplCopyWithImpl( _$PaymentMethodItemImpl _value, $Res Function(_$PaymentMethodItemImpl) _then, ) : super(_value, _then); /// Create a copy of PaymentMethodItem /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? paymentMethodId = null, Object? paymentMethodName = null, Object? paymentMethodType = null, Object? totalAmount = null, Object? orderCount = null, Object? paymentCount = null, Object? percentage = null, }) { return _then( _$PaymentMethodItemImpl( paymentMethodId: null == paymentMethodId ? _value.paymentMethodId : paymentMethodId // ignore: cast_nullable_to_non_nullable as String, paymentMethodName: null == paymentMethodName ? _value.paymentMethodName : paymentMethodName // ignore: cast_nullable_to_non_nullable as String, paymentMethodType: null == paymentMethodType ? _value.paymentMethodType : paymentMethodType // ignore: cast_nullable_to_non_nullable as String, totalAmount: null == totalAmount ? _value.totalAmount : totalAmount // ignore: cast_nullable_to_non_nullable as num, orderCount: null == orderCount ? _value.orderCount : orderCount // ignore: cast_nullable_to_non_nullable as int, paymentCount: null == paymentCount ? _value.paymentCount : paymentCount // ignore: cast_nullable_to_non_nullable as int, percentage: null == percentage ? _value.percentage : percentage // ignore: cast_nullable_to_non_nullable as double, ), ); } } /// @nodoc class _$PaymentMethodItemImpl implements _PaymentMethodItem { const _$PaymentMethodItemImpl({ required this.paymentMethodId, required this.paymentMethodName, required this.paymentMethodType, required this.totalAmount, required this.orderCount, required this.paymentCount, required this.percentage, }); @override final String paymentMethodId; @override final String paymentMethodName; @override final String paymentMethodType; @override final num totalAmount; @override final int orderCount; @override final int paymentCount; @override final double percentage; @override String toString() { return 'PaymentMethodItem(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 _$PaymentMethodItemImpl && (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)); } @override int get hashCode => Object.hash( runtimeType, paymentMethodId, paymentMethodName, paymentMethodType, totalAmount, orderCount, paymentCount, percentage, ); /// Create a copy of PaymentMethodItem /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodItemImplCopyWith<_$PaymentMethodItemImpl> get copyWith => __$$PaymentMethodItemImplCopyWithImpl<_$PaymentMethodItemImpl>( this, _$identity, ); } abstract class _PaymentMethodItem implements PaymentMethodItem { const factory _PaymentMethodItem({ required final String paymentMethodId, required final String paymentMethodName, required final String paymentMethodType, required final num totalAmount, required final int orderCount, required final int paymentCount, required final double percentage, }) = _$PaymentMethodItemImpl; @override String get paymentMethodId; @override String get paymentMethodName; @override String get paymentMethodType; @override num get totalAmount; @override int get orderCount; @override int get paymentCount; @override double get percentage; /// Create a copy of PaymentMethodItem /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodItemImplCopyWith<_$PaymentMethodItemImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$PaymentMethodSummary { num get totalAmount => throw _privateConstructorUsedError; int get totalOrders => throw _privateConstructorUsedError; int get totalPayments => throw _privateConstructorUsedError; double get averageOrderValue => throw _privateConstructorUsedError; /// Create a copy of PaymentMethodSummary /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $PaymentMethodSummaryCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $PaymentMethodSummaryCopyWith<$Res> { factory $PaymentMethodSummaryCopyWith( PaymentMethodSummary value, $Res Function(PaymentMethodSummary) then, ) = _$PaymentMethodSummaryCopyWithImpl<$Res, PaymentMethodSummary>; @useResult $Res call({ num totalAmount, int totalOrders, int totalPayments, double averageOrderValue, }); } /// @nodoc class _$PaymentMethodSummaryCopyWithImpl< $Res, $Val extends PaymentMethodSummary > implements $PaymentMethodSummaryCopyWith<$Res> { _$PaymentMethodSummaryCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of PaymentMethodSummary /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? totalAmount = null, Object? totalOrders = null, Object? totalPayments = null, Object? averageOrderValue = null, }) { return _then( _value.copyWith( totalAmount: null == totalAmount ? _value.totalAmount : totalAmount // ignore: cast_nullable_to_non_nullable as num, totalOrders: null == totalOrders ? _value.totalOrders : totalOrders // ignore: cast_nullable_to_non_nullable as int, totalPayments: null == totalPayments ? _value.totalPayments : totalPayments // ignore: cast_nullable_to_non_nullable as int, averageOrderValue: null == averageOrderValue ? _value.averageOrderValue : averageOrderValue // ignore: cast_nullable_to_non_nullable as double, ) as $Val, ); } } /// @nodoc abstract class _$$PaymentMethodSummaryImplCopyWith<$Res> implements $PaymentMethodSummaryCopyWith<$Res> { factory _$$PaymentMethodSummaryImplCopyWith( _$PaymentMethodSummaryImpl value, $Res Function(_$PaymentMethodSummaryImpl) then, ) = __$$PaymentMethodSummaryImplCopyWithImpl<$Res>; @override @useResult $Res call({ num totalAmount, int totalOrders, int totalPayments, double averageOrderValue, }); } /// @nodoc class __$$PaymentMethodSummaryImplCopyWithImpl<$Res> extends _$PaymentMethodSummaryCopyWithImpl<$Res, _$PaymentMethodSummaryImpl> implements _$$PaymentMethodSummaryImplCopyWith<$Res> { __$$PaymentMethodSummaryImplCopyWithImpl( _$PaymentMethodSummaryImpl _value, $Res Function(_$PaymentMethodSummaryImpl) _then, ) : super(_value, _then); /// Create a copy of PaymentMethodSummary /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? totalAmount = null, Object? totalOrders = null, Object? totalPayments = null, Object? averageOrderValue = null, }) { return _then( _$PaymentMethodSummaryImpl( totalAmount: null == totalAmount ? _value.totalAmount : totalAmount // ignore: cast_nullable_to_non_nullable as num, totalOrders: null == totalOrders ? _value.totalOrders : totalOrders // ignore: cast_nullable_to_non_nullable as int, totalPayments: null == totalPayments ? _value.totalPayments : totalPayments // ignore: cast_nullable_to_non_nullable as int, averageOrderValue: null == averageOrderValue ? _value.averageOrderValue : averageOrderValue // ignore: cast_nullable_to_non_nullable as double, ), ); } } /// @nodoc class _$PaymentMethodSummaryImpl implements _PaymentMethodSummary { const _$PaymentMethodSummaryImpl({ required this.totalAmount, required this.totalOrders, required this.totalPayments, required this.averageOrderValue, }); @override final num totalAmount; @override final int totalOrders; @override final int totalPayments; @override final double averageOrderValue; @override String toString() { return 'PaymentMethodSummary(totalAmount: $totalAmount, totalOrders: $totalOrders, totalPayments: $totalPayments, averageOrderValue: $averageOrderValue)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaymentMethodSummaryImpl && (identical(other.totalAmount, totalAmount) || other.totalAmount == totalAmount) && (identical(other.totalOrders, totalOrders) || other.totalOrders == totalOrders) && (identical(other.totalPayments, totalPayments) || other.totalPayments == totalPayments) && (identical(other.averageOrderValue, averageOrderValue) || other.averageOrderValue == averageOrderValue)); } @override int get hashCode => Object.hash( runtimeType, totalAmount, totalOrders, totalPayments, averageOrderValue, ); /// Create a copy of PaymentMethodSummary /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaymentMethodSummaryImplCopyWith<_$PaymentMethodSummaryImpl> get copyWith => __$$PaymentMethodSummaryImplCopyWithImpl<_$PaymentMethodSummaryImpl>( this, _$identity, ); } abstract class _PaymentMethodSummary implements PaymentMethodSummary { const factory _PaymentMethodSummary({ required final num totalAmount, required final int totalOrders, required final int totalPayments, required final double averageOrderValue, }) = _$PaymentMethodSummaryImpl; @override num get totalAmount; @override int get totalOrders; @override int get totalPayments; @override double get averageOrderValue; /// Create a copy of PaymentMethodSummary /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$PaymentMethodSummaryImplCopyWith<_$PaymentMethodSummaryImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$AnalyticFailure { @optionalTypeArgs TResult when({ required TResult Function(ApiFailure failure) serverError, required TResult Function() unexpectedError, required TResult Function() empty, required TResult Function(String erroMessage) dynamicErrorMessage, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? whenOrNull({ TResult? Function(ApiFailure failure)? serverError, TResult? Function()? unexpectedError, TResult? Function()? empty, TResult? Function(String erroMessage)? dynamicErrorMessage, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeWhen({ TResult Function(ApiFailure failure)? serverError, TResult Function()? unexpectedError, TResult Function()? empty, TResult Function(String erroMessage)? dynamicErrorMessage, required TResult orElse(), }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult map({ required TResult Function(_ServerError value) serverError, required TResult Function(_UnexpectedError value) unexpectedError, required TResult Function(_Empty value) empty, required TResult Function(_DynamicErrorMessage value) dynamicErrorMessage, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_ServerError value)? serverError, TResult? Function(_UnexpectedError value)? unexpectedError, TResult? Function(_Empty value)? empty, TResult? Function(_DynamicErrorMessage value)? dynamicErrorMessage, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeMap({ TResult Function(_ServerError value)? serverError, TResult Function(_UnexpectedError value)? unexpectedError, TResult Function(_Empty value)? empty, TResult Function(_DynamicErrorMessage value)? dynamicErrorMessage, required TResult orElse(), }) => throw _privateConstructorUsedError; } /// @nodoc abstract class $AnalyticFailureCopyWith<$Res> { factory $AnalyticFailureCopyWith( AnalyticFailure value, $Res Function(AnalyticFailure) then, ) = _$AnalyticFailureCopyWithImpl<$Res, AnalyticFailure>; } /// @nodoc class _$AnalyticFailureCopyWithImpl<$Res, $Val extends AnalyticFailure> implements $AnalyticFailureCopyWith<$Res> { _$AnalyticFailureCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of AnalyticFailure /// with the given fields replaced by the non-null parameter values. } /// @nodoc abstract class _$$ServerErrorImplCopyWith<$Res> { factory _$$ServerErrorImplCopyWith( _$ServerErrorImpl value, $Res Function(_$ServerErrorImpl) then, ) = __$$ServerErrorImplCopyWithImpl<$Res>; @useResult $Res call({ApiFailure failure}); $ApiFailureCopyWith<$Res> get failure; } /// @nodoc class __$$ServerErrorImplCopyWithImpl<$Res> extends _$AnalyticFailureCopyWithImpl<$Res, _$ServerErrorImpl> implements _$$ServerErrorImplCopyWith<$Res> { __$$ServerErrorImplCopyWithImpl( _$ServerErrorImpl _value, $Res Function(_$ServerErrorImpl) _then, ) : super(_value, _then); /// Create a copy of AnalyticFailure /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? failure = null}) { return _then( _$ServerErrorImpl( null == failure ? _value.failure : failure // ignore: cast_nullable_to_non_nullable as ApiFailure, ), ); } /// Create a copy of AnalyticFailure /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ApiFailureCopyWith<$Res> get failure { return $ApiFailureCopyWith<$Res>(_value.failure, (value) { return _then(_value.copyWith(failure: value)); }); } } /// @nodoc class _$ServerErrorImpl implements _ServerError { const _$ServerErrorImpl(this.failure); @override final ApiFailure failure; @override String toString() { return 'AnalyticFailure.serverError(failure: $failure)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ServerErrorImpl && (identical(other.failure, failure) || other.failure == failure)); } @override int get hashCode => Object.hash(runtimeType, failure); /// Create a copy of AnalyticFailure /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ServerErrorImplCopyWith<_$ServerErrorImpl> get copyWith => __$$ServerErrorImplCopyWithImpl<_$ServerErrorImpl>(this, _$identity); @override @optionalTypeArgs TResult when({ required TResult Function(ApiFailure failure) serverError, required TResult Function() unexpectedError, required TResult Function() empty, required TResult Function(String erroMessage) dynamicErrorMessage, }) { return serverError(failure); } @override @optionalTypeArgs TResult? whenOrNull({ TResult? Function(ApiFailure failure)? serverError, TResult? Function()? unexpectedError, TResult? Function()? empty, TResult? Function(String erroMessage)? dynamicErrorMessage, }) { return serverError?.call(failure); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function(ApiFailure failure)? serverError, TResult Function()? unexpectedError, TResult Function()? empty, TResult Function(String erroMessage)? dynamicErrorMessage, required TResult orElse(), }) { if (serverError != null) { return serverError(failure); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(_ServerError value) serverError, required TResult Function(_UnexpectedError value) unexpectedError, required TResult Function(_Empty value) empty, required TResult Function(_DynamicErrorMessage value) dynamicErrorMessage, }) { return serverError(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_ServerError value)? serverError, TResult? Function(_UnexpectedError value)? unexpectedError, TResult? Function(_Empty value)? empty, TResult? Function(_DynamicErrorMessage value)? dynamicErrorMessage, }) { return serverError?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(_ServerError value)? serverError, TResult Function(_UnexpectedError value)? unexpectedError, TResult Function(_Empty value)? empty, TResult Function(_DynamicErrorMessage value)? dynamicErrorMessage, required TResult orElse(), }) { if (serverError != null) { return serverError(this); } return orElse(); } } abstract class _ServerError implements AnalyticFailure { const factory _ServerError(final ApiFailure failure) = _$ServerErrorImpl; ApiFailure get failure; /// Create a copy of AnalyticFailure /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) _$$ServerErrorImplCopyWith<_$ServerErrorImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class _$$UnexpectedErrorImplCopyWith<$Res> { factory _$$UnexpectedErrorImplCopyWith( _$UnexpectedErrorImpl value, $Res Function(_$UnexpectedErrorImpl) then, ) = __$$UnexpectedErrorImplCopyWithImpl<$Res>; } /// @nodoc class __$$UnexpectedErrorImplCopyWithImpl<$Res> extends _$AnalyticFailureCopyWithImpl<$Res, _$UnexpectedErrorImpl> implements _$$UnexpectedErrorImplCopyWith<$Res> { __$$UnexpectedErrorImplCopyWithImpl( _$UnexpectedErrorImpl _value, $Res Function(_$UnexpectedErrorImpl) _then, ) : super(_value, _then); /// Create a copy of AnalyticFailure /// with the given fields replaced by the non-null parameter values. } /// @nodoc class _$UnexpectedErrorImpl implements _UnexpectedError { const _$UnexpectedErrorImpl(); @override String toString() { return 'AnalyticFailure.unexpectedError()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$UnexpectedErrorImpl); } @override int get hashCode => runtimeType.hashCode; @override @optionalTypeArgs TResult when({ required TResult Function(ApiFailure failure) serverError, required TResult Function() unexpectedError, required TResult Function() empty, required TResult Function(String erroMessage) dynamicErrorMessage, }) { return unexpectedError(); } @override @optionalTypeArgs TResult? whenOrNull({ TResult? Function(ApiFailure failure)? serverError, TResult? Function()? unexpectedError, TResult? Function()? empty, TResult? Function(String erroMessage)? dynamicErrorMessage, }) { return unexpectedError?.call(); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function(ApiFailure failure)? serverError, TResult Function()? unexpectedError, TResult Function()? empty, TResult Function(String erroMessage)? dynamicErrorMessage, required TResult orElse(), }) { if (unexpectedError != null) { return unexpectedError(); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(_ServerError value) serverError, required TResult Function(_UnexpectedError value) unexpectedError, required TResult Function(_Empty value) empty, required TResult Function(_DynamicErrorMessage value) dynamicErrorMessage, }) { return unexpectedError(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_ServerError value)? serverError, TResult? Function(_UnexpectedError value)? unexpectedError, TResult? Function(_Empty value)? empty, TResult? Function(_DynamicErrorMessage value)? dynamicErrorMessage, }) { return unexpectedError?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(_ServerError value)? serverError, TResult Function(_UnexpectedError value)? unexpectedError, TResult Function(_Empty value)? empty, TResult Function(_DynamicErrorMessage value)? dynamicErrorMessage, required TResult orElse(), }) { if (unexpectedError != null) { return unexpectedError(this); } return orElse(); } } abstract class _UnexpectedError implements AnalyticFailure { const factory _UnexpectedError() = _$UnexpectedErrorImpl; } /// @nodoc abstract class _$$EmptyImplCopyWith<$Res> { factory _$$EmptyImplCopyWith( _$EmptyImpl value, $Res Function(_$EmptyImpl) then, ) = __$$EmptyImplCopyWithImpl<$Res>; } /// @nodoc class __$$EmptyImplCopyWithImpl<$Res> extends _$AnalyticFailureCopyWithImpl<$Res, _$EmptyImpl> implements _$$EmptyImplCopyWith<$Res> { __$$EmptyImplCopyWithImpl( _$EmptyImpl _value, $Res Function(_$EmptyImpl) _then, ) : super(_value, _then); /// Create a copy of AnalyticFailure /// with the given fields replaced by the non-null parameter values. } /// @nodoc class _$EmptyImpl implements _Empty { const _$EmptyImpl(); @override String toString() { return 'AnalyticFailure.empty()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$EmptyImpl); } @override int get hashCode => runtimeType.hashCode; @override @optionalTypeArgs TResult when({ required TResult Function(ApiFailure failure) serverError, required TResult Function() unexpectedError, required TResult Function() empty, required TResult Function(String erroMessage) dynamicErrorMessage, }) { return empty(); } @override @optionalTypeArgs TResult? whenOrNull({ TResult? Function(ApiFailure failure)? serverError, TResult? Function()? unexpectedError, TResult? Function()? empty, TResult? Function(String erroMessage)? dynamicErrorMessage, }) { return empty?.call(); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function(ApiFailure failure)? serverError, TResult Function()? unexpectedError, TResult Function()? empty, TResult Function(String erroMessage)? dynamicErrorMessage, required TResult orElse(), }) { if (empty != null) { return empty(); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(_ServerError value) serverError, required TResult Function(_UnexpectedError value) unexpectedError, required TResult Function(_Empty value) empty, required TResult Function(_DynamicErrorMessage value) dynamicErrorMessage, }) { return empty(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_ServerError value)? serverError, TResult? Function(_UnexpectedError value)? unexpectedError, TResult? Function(_Empty value)? empty, TResult? Function(_DynamicErrorMessage value)? dynamicErrorMessage, }) { return empty?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(_ServerError value)? serverError, TResult Function(_UnexpectedError value)? unexpectedError, TResult Function(_Empty value)? empty, TResult Function(_DynamicErrorMessage value)? dynamicErrorMessage, required TResult orElse(), }) { if (empty != null) { return empty(this); } return orElse(); } } abstract class _Empty implements AnalyticFailure { const factory _Empty() = _$EmptyImpl; } /// @nodoc abstract class _$$DynamicErrorMessageImplCopyWith<$Res> { factory _$$DynamicErrorMessageImplCopyWith( _$DynamicErrorMessageImpl value, $Res Function(_$DynamicErrorMessageImpl) then, ) = __$$DynamicErrorMessageImplCopyWithImpl<$Res>; @useResult $Res call({String erroMessage}); } /// @nodoc class __$$DynamicErrorMessageImplCopyWithImpl<$Res> extends _$AnalyticFailureCopyWithImpl<$Res, _$DynamicErrorMessageImpl> implements _$$DynamicErrorMessageImplCopyWith<$Res> { __$$DynamicErrorMessageImplCopyWithImpl( _$DynamicErrorMessageImpl _value, $Res Function(_$DynamicErrorMessageImpl) _then, ) : super(_value, _then); /// Create a copy of AnalyticFailure /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? erroMessage = null}) { return _then( _$DynamicErrorMessageImpl( null == erroMessage ? _value.erroMessage : erroMessage // ignore: cast_nullable_to_non_nullable as String, ), ); } } /// @nodoc class _$DynamicErrorMessageImpl implements _DynamicErrorMessage { const _$DynamicErrorMessageImpl(this.erroMessage); @override final String erroMessage; @override String toString() { return 'AnalyticFailure.dynamicErrorMessage(erroMessage: $erroMessage)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$DynamicErrorMessageImpl && (identical(other.erroMessage, erroMessage) || other.erroMessage == erroMessage)); } @override int get hashCode => Object.hash(runtimeType, erroMessage); /// Create a copy of AnalyticFailure /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$DynamicErrorMessageImplCopyWith<_$DynamicErrorMessageImpl> get copyWith => __$$DynamicErrorMessageImplCopyWithImpl<_$DynamicErrorMessageImpl>( this, _$identity, ); @override @optionalTypeArgs TResult when({ required TResult Function(ApiFailure failure) serverError, required TResult Function() unexpectedError, required TResult Function() empty, required TResult Function(String erroMessage) dynamicErrorMessage, }) { return dynamicErrorMessage(erroMessage); } @override @optionalTypeArgs TResult? whenOrNull({ TResult? Function(ApiFailure failure)? serverError, TResult? Function()? unexpectedError, TResult? Function()? empty, TResult? Function(String erroMessage)? dynamicErrorMessage, }) { return dynamicErrorMessage?.call(erroMessage); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function(ApiFailure failure)? serverError, TResult Function()? unexpectedError, TResult Function()? empty, TResult Function(String erroMessage)? dynamicErrorMessage, required TResult orElse(), }) { if (dynamicErrorMessage != null) { return dynamicErrorMessage(erroMessage); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(_ServerError value) serverError, required TResult Function(_UnexpectedError value) unexpectedError, required TResult Function(_Empty value) empty, required TResult Function(_DynamicErrorMessage value) dynamicErrorMessage, }) { return dynamicErrorMessage(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_ServerError value)? serverError, TResult? Function(_UnexpectedError value)? unexpectedError, TResult? Function(_Empty value)? empty, TResult? Function(_DynamicErrorMessage value)? dynamicErrorMessage, }) { return dynamicErrorMessage?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(_ServerError value)? serverError, TResult Function(_UnexpectedError value)? unexpectedError, TResult Function(_Empty value)? empty, TResult Function(_DynamicErrorMessage value)? dynamicErrorMessage, required TResult orElse(), }) { if (dynamicErrorMessage != null) { return dynamicErrorMessage(this); } return orElse(); } } abstract class _DynamicErrorMessage implements AnalyticFailure { const factory _DynamicErrorMessage(final String erroMessage) = _$DynamicErrorMessageImpl; String get erroMessage; /// Create a copy of AnalyticFailure /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) _$$DynamicErrorMessageImplCopyWith<_$DynamicErrorMessageImpl> get copyWith => throw _privateConstructorUsedError; }