| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597 |
- // 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 'sync_promo_dto.dart';
- // **************************************************************************
- // FreezedGenerator
- // **************************************************************************
- T _$identity<T>(T value) => value;
- final _privateConstructorUsedError = UnsupportedError(
- 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models',
- );
- SyncPromoDto _$SyncPromoDtoFromJson(Map<String, dynamic> json) {
- return _SyncPromoDto.fromJson(json);
- }
- /// @nodoc
- mixin _$SyncPromoDto {
- int? get progressivo => throw _privateConstructorUsedError;
- int? get tipoPromozione => throw _privateConstructorUsedError;
- String? get descrizione => throw _privateConstructorUsedError;
- String? get dataInizio => throw _privateConstructorUsedError;
- String? get dataFine => throw _privateConstructorUsedError;
- double? get limiteQta => throw _privateConstructorUsedError;
- double? get quantitaOmaggio => throw _privateConstructorUsedError;
- double? get limiteImporto => throw _privateConstructorUsedError;
- String? get stato => throw _privateConstructorUsedError;
- int? get priorita => throw _privateConstructorUsedError;
- int? get codice => throw _privateConstructorUsedError;
- ItemDto? get articoloPromo => throw _privateConstructorUsedError;
- ItemDto? get articoloOmaggio => throw _privateConstructorUsedError;
- ListinoDto? get listinoOmaggio => throw _privateConstructorUsedError;
- ScontoDto? get sconto => throw _privateConstructorUsedError;
- List<SyncPromoArtDto> get promozioneArticoli =>
- throw _privateConstructorUsedError;
- List<SyncPromoListiniDto> get promozioneListini =>
- throw _privateConstructorUsedError;
- List<SyncPromoOmaggioDto> get promozioneOmaggio =>
- throw _privateConstructorUsedError;
- /// Serializes this SyncPromoDto to a JSON map.
- Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
- /// Create a copy of SyncPromoDto
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- $SyncPromoDtoCopyWith<SyncPromoDto> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $SyncPromoDtoCopyWith<$Res> {
- factory $SyncPromoDtoCopyWith(
- SyncPromoDto value,
- $Res Function(SyncPromoDto) then,
- ) = _$SyncPromoDtoCopyWithImpl<$Res, SyncPromoDto>;
- @useResult
- $Res call({
- int? progressivo,
- int? tipoPromozione,
- String? descrizione,
- String? dataInizio,
- String? dataFine,
- double? limiteQta,
- double? quantitaOmaggio,
- double? limiteImporto,
- String? stato,
- int? priorita,
- int? codice,
- ItemDto? articoloPromo,
- ItemDto? articoloOmaggio,
- ListinoDto? listinoOmaggio,
- ScontoDto? sconto,
- List<SyncPromoArtDto> promozioneArticoli,
- List<SyncPromoListiniDto> promozioneListini,
- List<SyncPromoOmaggioDto> promozioneOmaggio,
- });
- $ItemDtoCopyWith<$Res>? get articoloPromo;
- $ItemDtoCopyWith<$Res>? get articoloOmaggio;
- $ListinoDtoCopyWith<$Res>? get listinoOmaggio;
- $ScontoDtoCopyWith<$Res>? get sconto;
- }
- /// @nodoc
- class _$SyncPromoDtoCopyWithImpl<$Res, $Val extends SyncPromoDto>
- implements $SyncPromoDtoCopyWith<$Res> {
- _$SyncPromoDtoCopyWithImpl(this._value, this._then);
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
- /// Create a copy of SyncPromoDto
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({
- Object? progressivo = freezed,
- Object? tipoPromozione = freezed,
- Object? descrizione = freezed,
- Object? dataInizio = freezed,
- Object? dataFine = freezed,
- Object? limiteQta = freezed,
- Object? quantitaOmaggio = freezed,
- Object? limiteImporto = freezed,
- Object? stato = freezed,
- Object? priorita = freezed,
- Object? codice = freezed,
- Object? articoloPromo = freezed,
- Object? articoloOmaggio = freezed,
- Object? listinoOmaggio = freezed,
- Object? sconto = freezed,
- Object? promozioneArticoli = null,
- Object? promozioneListini = null,
- Object? promozioneOmaggio = null,
- }) {
- return _then(
- _value.copyWith(
- progressivo: freezed == progressivo
- ? _value.progressivo
- : progressivo // ignore: cast_nullable_to_non_nullable
- as int?,
- tipoPromozione: freezed == tipoPromozione
- ? _value.tipoPromozione
- : tipoPromozione // ignore: cast_nullable_to_non_nullable
- as int?,
- descrizione: freezed == descrizione
- ? _value.descrizione
- : descrizione // ignore: cast_nullable_to_non_nullable
- as String?,
- dataInizio: freezed == dataInizio
- ? _value.dataInizio
- : dataInizio // ignore: cast_nullable_to_non_nullable
- as String?,
- dataFine: freezed == dataFine
- ? _value.dataFine
- : dataFine // ignore: cast_nullable_to_non_nullable
- as String?,
- limiteQta: freezed == limiteQta
- ? _value.limiteQta
- : limiteQta // ignore: cast_nullable_to_non_nullable
- as double?,
- quantitaOmaggio: freezed == quantitaOmaggio
- ? _value.quantitaOmaggio
- : quantitaOmaggio // ignore: cast_nullable_to_non_nullable
- as double?,
- limiteImporto: freezed == limiteImporto
- ? _value.limiteImporto
- : limiteImporto // ignore: cast_nullable_to_non_nullable
- as double?,
- stato: freezed == stato
- ? _value.stato
- : stato // ignore: cast_nullable_to_non_nullable
- as String?,
- priorita: freezed == priorita
- ? _value.priorita
- : priorita // ignore: cast_nullable_to_non_nullable
- as int?,
- codice: freezed == codice
- ? _value.codice
- : codice // ignore: cast_nullable_to_non_nullable
- as int?,
- articoloPromo: freezed == articoloPromo
- ? _value.articoloPromo
- : articoloPromo // ignore: cast_nullable_to_non_nullable
- as ItemDto?,
- articoloOmaggio: freezed == articoloOmaggio
- ? _value.articoloOmaggio
- : articoloOmaggio // ignore: cast_nullable_to_non_nullable
- as ItemDto?,
- listinoOmaggio: freezed == listinoOmaggio
- ? _value.listinoOmaggio
- : listinoOmaggio // ignore: cast_nullable_to_non_nullable
- as ListinoDto?,
- sconto: freezed == sconto
- ? _value.sconto
- : sconto // ignore: cast_nullable_to_non_nullable
- as ScontoDto?,
- promozioneArticoli: null == promozioneArticoli
- ? _value.promozioneArticoli
- : promozioneArticoli // ignore: cast_nullable_to_non_nullable
- as List<SyncPromoArtDto>,
- promozioneListini: null == promozioneListini
- ? _value.promozioneListini
- : promozioneListini // ignore: cast_nullable_to_non_nullable
- as List<SyncPromoListiniDto>,
- promozioneOmaggio: null == promozioneOmaggio
- ? _value.promozioneOmaggio
- : promozioneOmaggio // ignore: cast_nullable_to_non_nullable
- as List<SyncPromoOmaggioDto>,
- )
- as $Val,
- );
- }
- /// Create a copy of SyncPromoDto
- /// with the given fields replaced by the non-null parameter values.
- @override
- @pragma('vm:prefer-inline')
- $ItemDtoCopyWith<$Res>? get articoloPromo {
- if (_value.articoloPromo == null) {
- return null;
- }
- return $ItemDtoCopyWith<$Res>(_value.articoloPromo!, (value) {
- return _then(_value.copyWith(articoloPromo: value) as $Val);
- });
- }
- /// Create a copy of SyncPromoDto
- /// with the given fields replaced by the non-null parameter values.
- @override
- @pragma('vm:prefer-inline')
- $ItemDtoCopyWith<$Res>? get articoloOmaggio {
- if (_value.articoloOmaggio == null) {
- return null;
- }
- return $ItemDtoCopyWith<$Res>(_value.articoloOmaggio!, (value) {
- return _then(_value.copyWith(articoloOmaggio: value) as $Val);
- });
- }
- /// Create a copy of SyncPromoDto
- /// with the given fields replaced by the non-null parameter values.
- @override
- @pragma('vm:prefer-inline')
- $ListinoDtoCopyWith<$Res>? get listinoOmaggio {
- if (_value.listinoOmaggio == null) {
- return null;
- }
- return $ListinoDtoCopyWith<$Res>(_value.listinoOmaggio!, (value) {
- return _then(_value.copyWith(listinoOmaggio: value) as $Val);
- });
- }
- /// Create a copy of SyncPromoDto
- /// with the given fields replaced by the non-null parameter values.
- @override
- @pragma('vm:prefer-inline')
- $ScontoDtoCopyWith<$Res>? get sconto {
- if (_value.sconto == null) {
- return null;
- }
- return $ScontoDtoCopyWith<$Res>(_value.sconto!, (value) {
- return _then(_value.copyWith(sconto: value) as $Val);
- });
- }
- }
- /// @nodoc
- abstract class _$$SyncPromoDtoImplCopyWith<$Res>
- implements $SyncPromoDtoCopyWith<$Res> {
- factory _$$SyncPromoDtoImplCopyWith(
- _$SyncPromoDtoImpl value,
- $Res Function(_$SyncPromoDtoImpl) then,
- ) = __$$SyncPromoDtoImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call({
- int? progressivo,
- int? tipoPromozione,
- String? descrizione,
- String? dataInizio,
- String? dataFine,
- double? limiteQta,
- double? quantitaOmaggio,
- double? limiteImporto,
- String? stato,
- int? priorita,
- int? codice,
- ItemDto? articoloPromo,
- ItemDto? articoloOmaggio,
- ListinoDto? listinoOmaggio,
- ScontoDto? sconto,
- List<SyncPromoArtDto> promozioneArticoli,
- List<SyncPromoListiniDto> promozioneListini,
- List<SyncPromoOmaggioDto> promozioneOmaggio,
- });
- @override
- $ItemDtoCopyWith<$Res>? get articoloPromo;
- @override
- $ItemDtoCopyWith<$Res>? get articoloOmaggio;
- @override
- $ListinoDtoCopyWith<$Res>? get listinoOmaggio;
- @override
- $ScontoDtoCopyWith<$Res>? get sconto;
- }
- /// @nodoc
- class __$$SyncPromoDtoImplCopyWithImpl<$Res>
- extends _$SyncPromoDtoCopyWithImpl<$Res, _$SyncPromoDtoImpl>
- implements _$$SyncPromoDtoImplCopyWith<$Res> {
- __$$SyncPromoDtoImplCopyWithImpl(
- _$SyncPromoDtoImpl _value,
- $Res Function(_$SyncPromoDtoImpl) _then,
- ) : super(_value, _then);
- /// Create a copy of SyncPromoDto
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({
- Object? progressivo = freezed,
- Object? tipoPromozione = freezed,
- Object? descrizione = freezed,
- Object? dataInizio = freezed,
- Object? dataFine = freezed,
- Object? limiteQta = freezed,
- Object? quantitaOmaggio = freezed,
- Object? limiteImporto = freezed,
- Object? stato = freezed,
- Object? priorita = freezed,
- Object? codice = freezed,
- Object? articoloPromo = freezed,
- Object? articoloOmaggio = freezed,
- Object? listinoOmaggio = freezed,
- Object? sconto = freezed,
- Object? promozioneArticoli = null,
- Object? promozioneListini = null,
- Object? promozioneOmaggio = null,
- }) {
- return _then(
- _$SyncPromoDtoImpl(
- progressivo: freezed == progressivo
- ? _value.progressivo
- : progressivo // ignore: cast_nullable_to_non_nullable
- as int?,
- tipoPromozione: freezed == tipoPromozione
- ? _value.tipoPromozione
- : tipoPromozione // ignore: cast_nullable_to_non_nullable
- as int?,
- descrizione: freezed == descrizione
- ? _value.descrizione
- : descrizione // ignore: cast_nullable_to_non_nullable
- as String?,
- dataInizio: freezed == dataInizio
- ? _value.dataInizio
- : dataInizio // ignore: cast_nullable_to_non_nullable
- as String?,
- dataFine: freezed == dataFine
- ? _value.dataFine
- : dataFine // ignore: cast_nullable_to_non_nullable
- as String?,
- limiteQta: freezed == limiteQta
- ? _value.limiteQta
- : limiteQta // ignore: cast_nullable_to_non_nullable
- as double?,
- quantitaOmaggio: freezed == quantitaOmaggio
- ? _value.quantitaOmaggio
- : quantitaOmaggio // ignore: cast_nullable_to_non_nullable
- as double?,
- limiteImporto: freezed == limiteImporto
- ? _value.limiteImporto
- : limiteImporto // ignore: cast_nullable_to_non_nullable
- as double?,
- stato: freezed == stato
- ? _value.stato
- : stato // ignore: cast_nullable_to_non_nullable
- as String?,
- priorita: freezed == priorita
- ? _value.priorita
- : priorita // ignore: cast_nullable_to_non_nullable
- as int?,
- codice: freezed == codice
- ? _value.codice
- : codice // ignore: cast_nullable_to_non_nullable
- as int?,
- articoloPromo: freezed == articoloPromo
- ? _value.articoloPromo
- : articoloPromo // ignore: cast_nullable_to_non_nullable
- as ItemDto?,
- articoloOmaggio: freezed == articoloOmaggio
- ? _value.articoloOmaggio
- : articoloOmaggio // ignore: cast_nullable_to_non_nullable
- as ItemDto?,
- listinoOmaggio: freezed == listinoOmaggio
- ? _value.listinoOmaggio
- : listinoOmaggio // ignore: cast_nullable_to_non_nullable
- as ListinoDto?,
- sconto: freezed == sconto
- ? _value.sconto
- : sconto // ignore: cast_nullable_to_non_nullable
- as ScontoDto?,
- promozioneArticoli: null == promozioneArticoli
- ? _value._promozioneArticoli
- : promozioneArticoli // ignore: cast_nullable_to_non_nullable
- as List<SyncPromoArtDto>,
- promozioneListini: null == promozioneListini
- ? _value._promozioneListini
- : promozioneListini // ignore: cast_nullable_to_non_nullable
- as List<SyncPromoListiniDto>,
- promozioneOmaggio: null == promozioneOmaggio
- ? _value._promozioneOmaggio
- : promozioneOmaggio // ignore: cast_nullable_to_non_nullable
- as List<SyncPromoOmaggioDto>,
- ),
- );
- }
- }
- /// @nodoc
- @JsonSerializable()
- class _$SyncPromoDtoImpl implements _SyncPromoDto {
- const _$SyncPromoDtoImpl({
- this.progressivo,
- this.tipoPromozione,
- this.descrizione,
- this.dataInizio,
- this.dataFine,
- this.limiteQta,
- this.quantitaOmaggio,
- this.limiteImporto,
- this.stato,
- this.priorita,
- this.codice,
- this.articoloPromo,
- this.articoloOmaggio,
- this.listinoOmaggio,
- this.sconto,
- final List<SyncPromoArtDto> promozioneArticoli = const [],
- final List<SyncPromoListiniDto> promozioneListini = const [],
- final List<SyncPromoOmaggioDto> promozioneOmaggio = const [],
- }) : _promozioneArticoli = promozioneArticoli,
- _promozioneListini = promozioneListini,
- _promozioneOmaggio = promozioneOmaggio;
- factory _$SyncPromoDtoImpl.fromJson(Map<String, dynamic> json) =>
- _$$SyncPromoDtoImplFromJson(json);
- @override
- final int? progressivo;
- @override
- final int? tipoPromozione;
- @override
- final String? descrizione;
- @override
- final String? dataInizio;
- @override
- final String? dataFine;
- @override
- final double? limiteQta;
- @override
- final double? quantitaOmaggio;
- @override
- final double? limiteImporto;
- @override
- final String? stato;
- @override
- final int? priorita;
- @override
- final int? codice;
- @override
- final ItemDto? articoloPromo;
- @override
- final ItemDto? articoloOmaggio;
- @override
- final ListinoDto? listinoOmaggio;
- @override
- final ScontoDto? sconto;
- final List<SyncPromoArtDto> _promozioneArticoli;
- @override
- @JsonKey()
- List<SyncPromoArtDto> get promozioneArticoli {
- if (_promozioneArticoli is EqualUnmodifiableListView)
- return _promozioneArticoli;
- // ignore: implicit_dynamic_type
- return EqualUnmodifiableListView(_promozioneArticoli);
- }
- final List<SyncPromoListiniDto> _promozioneListini;
- @override
- @JsonKey()
- List<SyncPromoListiniDto> get promozioneListini {
- if (_promozioneListini is EqualUnmodifiableListView)
- return _promozioneListini;
- // ignore: implicit_dynamic_type
- return EqualUnmodifiableListView(_promozioneListini);
- }
- final List<SyncPromoOmaggioDto> _promozioneOmaggio;
- @override
- @JsonKey()
- List<SyncPromoOmaggioDto> get promozioneOmaggio {
- if (_promozioneOmaggio is EqualUnmodifiableListView)
- return _promozioneOmaggio;
- // ignore: implicit_dynamic_type
- return EqualUnmodifiableListView(_promozioneOmaggio);
- }
- @override
- String toString() {
- return 'SyncPromoDto(progressivo: $progressivo, tipoPromozione: $tipoPromozione, descrizione: $descrizione, dataInizio: $dataInizio, dataFine: $dataFine, limiteQta: $limiteQta, quantitaOmaggio: $quantitaOmaggio, limiteImporto: $limiteImporto, stato: $stato, priorita: $priorita, codice: $codice, articoloPromo: $articoloPromo, articoloOmaggio: $articoloOmaggio, listinoOmaggio: $listinoOmaggio, sconto: $sconto, promozioneArticoli: $promozioneArticoli, promozioneListini: $promozioneListini, promozioneOmaggio: $promozioneOmaggio)';
- }
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$SyncPromoDtoImpl &&
- (identical(other.progressivo, progressivo) ||
- other.progressivo == progressivo) &&
- (identical(other.tipoPromozione, tipoPromozione) ||
- other.tipoPromozione == tipoPromozione) &&
- (identical(other.descrizione, descrizione) ||
- other.descrizione == descrizione) &&
- (identical(other.dataInizio, dataInizio) ||
- other.dataInizio == dataInizio) &&
- (identical(other.dataFine, dataFine) ||
- other.dataFine == dataFine) &&
- (identical(other.limiteQta, limiteQta) ||
- other.limiteQta == limiteQta) &&
- (identical(other.quantitaOmaggio, quantitaOmaggio) ||
- other.quantitaOmaggio == quantitaOmaggio) &&
- (identical(other.limiteImporto, limiteImporto) ||
- other.limiteImporto == limiteImporto) &&
- (identical(other.stato, stato) || other.stato == stato) &&
- (identical(other.priorita, priorita) ||
- other.priorita == priorita) &&
- (identical(other.codice, codice) || other.codice == codice) &&
- (identical(other.articoloPromo, articoloPromo) ||
- other.articoloPromo == articoloPromo) &&
- (identical(other.articoloOmaggio, articoloOmaggio) ||
- other.articoloOmaggio == articoloOmaggio) &&
- (identical(other.listinoOmaggio, listinoOmaggio) ||
- other.listinoOmaggio == listinoOmaggio) &&
- (identical(other.sconto, sconto) || other.sconto == sconto) &&
- const DeepCollectionEquality().equals(
- other._promozioneArticoli,
- _promozioneArticoli,
- ) &&
- const DeepCollectionEquality().equals(
- other._promozioneListini,
- _promozioneListini,
- ) &&
- const DeepCollectionEquality().equals(
- other._promozioneOmaggio,
- _promozioneOmaggio,
- ));
- }
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- int get hashCode => Object.hash(
- runtimeType,
- progressivo,
- tipoPromozione,
- descrizione,
- dataInizio,
- dataFine,
- limiteQta,
- quantitaOmaggio,
- limiteImporto,
- stato,
- priorita,
- codice,
- articoloPromo,
- articoloOmaggio,
- listinoOmaggio,
- sconto,
- const DeepCollectionEquality().hash(_promozioneArticoli),
- const DeepCollectionEquality().hash(_promozioneListini),
- const DeepCollectionEquality().hash(_promozioneOmaggio),
- );
- /// Create a copy of SyncPromoDto
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- @pragma('vm:prefer-inline')
- _$$SyncPromoDtoImplCopyWith<_$SyncPromoDtoImpl> get copyWith =>
- __$$SyncPromoDtoImplCopyWithImpl<_$SyncPromoDtoImpl>(this, _$identity);
- @override
- Map<String, dynamic> toJson() {
- return _$$SyncPromoDtoImplToJson(this);
- }
- }
- abstract class _SyncPromoDto implements SyncPromoDto {
- const factory _SyncPromoDto({
- final int? progressivo,
- final int? tipoPromozione,
- final String? descrizione,
- final String? dataInizio,
- final String? dataFine,
- final double? limiteQta,
- final double? quantitaOmaggio,
- final double? limiteImporto,
- final String? stato,
- final int? priorita,
- final int? codice,
- final ItemDto? articoloPromo,
- final ItemDto? articoloOmaggio,
- final ListinoDto? listinoOmaggio,
- final ScontoDto? sconto,
- final List<SyncPromoArtDto> promozioneArticoli,
- final List<SyncPromoListiniDto> promozioneListini,
- final List<SyncPromoOmaggioDto> promozioneOmaggio,
- }) = _$SyncPromoDtoImpl;
- factory _SyncPromoDto.fromJson(Map<String, dynamic> json) =
- _$SyncPromoDtoImpl.fromJson;
- @override
- int? get progressivo;
- @override
- int? get tipoPromozione;
- @override
- String? get descrizione;
- @override
- String? get dataInizio;
- @override
- String? get dataFine;
- @override
- double? get limiteQta;
- @override
- double? get quantitaOmaggio;
- @override
- double? get limiteImporto;
- @override
- String? get stato;
- @override
- int? get priorita;
- @override
- int? get codice;
- @override
- ItemDto? get articoloPromo;
- @override
- ItemDto? get articoloOmaggio;
- @override
- ListinoDto? get listinoOmaggio;
- @override
- ScontoDto? get sconto;
- @override
- List<SyncPromoArtDto> get promozioneArticoli;
- @override
- List<SyncPromoListiniDto> get promozioneListini;
- @override
- List<SyncPromoOmaggioDto> get promozioneOmaggio;
- /// Create a copy of SyncPromoDto
- /// with the given fields replaced by the non-null parameter values.
- @override
- @JsonKey(includeFromJson: false, includeToJson: false)
- _$$SyncPromoDtoImplCopyWith<_$SyncPromoDtoImpl> get copyWith =>
- throw _privateConstructorUsedError;
- }
- SyncPromoArtDto _$SyncPromoArtDtoFromJson(Map<String, dynamic> json) {
- return _SyncPromoArtDto.fromJson(json);
- }
- /// @nodoc
- mixin _$SyncPromoArtDto {
- PromoArticoloKey? get promozioneArticoloKey =>
- throw _privateConstructorUsedError;
- ItemDto? get articolo => throw _privateConstructorUsedError;
- /// Serializes this SyncPromoArtDto to a JSON map.
- Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
- /// Create a copy of SyncPromoArtDto
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- $SyncPromoArtDtoCopyWith<SyncPromoArtDto> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $SyncPromoArtDtoCopyWith<$Res> {
- factory $SyncPromoArtDtoCopyWith(
- SyncPromoArtDto value,
- $Res Function(SyncPromoArtDto) then,
- ) = _$SyncPromoArtDtoCopyWithImpl<$Res, SyncPromoArtDto>;
- @useResult
- $Res call({PromoArticoloKey? promozioneArticoloKey, ItemDto? articolo});
- $PromoArticoloKeyCopyWith<$Res>? get promozioneArticoloKey;
- $ItemDtoCopyWith<$Res>? get articolo;
- }
- /// @nodoc
- class _$SyncPromoArtDtoCopyWithImpl<$Res, $Val extends SyncPromoArtDto>
- implements $SyncPromoArtDtoCopyWith<$Res> {
- _$SyncPromoArtDtoCopyWithImpl(this._value, this._then);
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
- /// Create a copy of SyncPromoArtDto
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({
- Object? promozioneArticoloKey = freezed,
- Object? articolo = freezed,
- }) {
- return _then(
- _value.copyWith(
- promozioneArticoloKey: freezed == promozioneArticoloKey
- ? _value.promozioneArticoloKey
- : promozioneArticoloKey // ignore: cast_nullable_to_non_nullable
- as PromoArticoloKey?,
- articolo: freezed == articolo
- ? _value.articolo
- : articolo // ignore: cast_nullable_to_non_nullable
- as ItemDto?,
- )
- as $Val,
- );
- }
- /// Create a copy of SyncPromoArtDto
- /// with the given fields replaced by the non-null parameter values.
- @override
- @pragma('vm:prefer-inline')
- $PromoArticoloKeyCopyWith<$Res>? get promozioneArticoloKey {
- if (_value.promozioneArticoloKey == null) {
- return null;
- }
- return $PromoArticoloKeyCopyWith<$Res>(_value.promozioneArticoloKey!, (
- value,
- ) {
- return _then(_value.copyWith(promozioneArticoloKey: value) as $Val);
- });
- }
- /// Create a copy of SyncPromoArtDto
- /// with the given fields replaced by the non-null parameter values.
- @override
- @pragma('vm:prefer-inline')
- $ItemDtoCopyWith<$Res>? get articolo {
- if (_value.articolo == null) {
- return null;
- }
- return $ItemDtoCopyWith<$Res>(_value.articolo!, (value) {
- return _then(_value.copyWith(articolo: value) as $Val);
- });
- }
- }
- /// @nodoc
- abstract class _$$SyncPromoArtDtoImplCopyWith<$Res>
- implements $SyncPromoArtDtoCopyWith<$Res> {
- factory _$$SyncPromoArtDtoImplCopyWith(
- _$SyncPromoArtDtoImpl value,
- $Res Function(_$SyncPromoArtDtoImpl) then,
- ) = __$$SyncPromoArtDtoImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call({PromoArticoloKey? promozioneArticoloKey, ItemDto? articolo});
- @override
- $PromoArticoloKeyCopyWith<$Res>? get promozioneArticoloKey;
- @override
- $ItemDtoCopyWith<$Res>? get articolo;
- }
- /// @nodoc
- class __$$SyncPromoArtDtoImplCopyWithImpl<$Res>
- extends _$SyncPromoArtDtoCopyWithImpl<$Res, _$SyncPromoArtDtoImpl>
- implements _$$SyncPromoArtDtoImplCopyWith<$Res> {
- __$$SyncPromoArtDtoImplCopyWithImpl(
- _$SyncPromoArtDtoImpl _value,
- $Res Function(_$SyncPromoArtDtoImpl) _then,
- ) : super(_value, _then);
- /// Create a copy of SyncPromoArtDto
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({
- Object? promozioneArticoloKey = freezed,
- Object? articolo = freezed,
- }) {
- return _then(
- _$SyncPromoArtDtoImpl(
- promozioneArticoloKey: freezed == promozioneArticoloKey
- ? _value.promozioneArticoloKey
- : promozioneArticoloKey // ignore: cast_nullable_to_non_nullable
- as PromoArticoloKey?,
- articolo: freezed == articolo
- ? _value.articolo
- : articolo // ignore: cast_nullable_to_non_nullable
- as ItemDto?,
- ),
- );
- }
- }
- /// @nodoc
- @JsonSerializable()
- class _$SyncPromoArtDtoImpl implements _SyncPromoArtDto {
- const _$SyncPromoArtDtoImpl({this.promozioneArticoloKey, this.articolo});
- factory _$SyncPromoArtDtoImpl.fromJson(Map<String, dynamic> json) =>
- _$$SyncPromoArtDtoImplFromJson(json);
- @override
- final PromoArticoloKey? promozioneArticoloKey;
- @override
- final ItemDto? articolo;
- @override
- String toString() {
- return 'SyncPromoArtDto(promozioneArticoloKey: $promozioneArticoloKey, articolo: $articolo)';
- }
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$SyncPromoArtDtoImpl &&
- (identical(other.promozioneArticoloKey, promozioneArticoloKey) ||
- other.promozioneArticoloKey == promozioneArticoloKey) &&
- (identical(other.articolo, articolo) ||
- other.articolo == articolo));
- }
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- int get hashCode => Object.hash(runtimeType, promozioneArticoloKey, articolo);
- /// Create a copy of SyncPromoArtDto
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- @pragma('vm:prefer-inline')
- _$$SyncPromoArtDtoImplCopyWith<_$SyncPromoArtDtoImpl> get copyWith =>
- __$$SyncPromoArtDtoImplCopyWithImpl<_$SyncPromoArtDtoImpl>(
- this,
- _$identity,
- );
- @override
- Map<String, dynamic> toJson() {
- return _$$SyncPromoArtDtoImplToJson(this);
- }
- }
- abstract class _SyncPromoArtDto implements SyncPromoArtDto {
- const factory _SyncPromoArtDto({
- final PromoArticoloKey? promozioneArticoloKey,
- final ItemDto? articolo,
- }) = _$SyncPromoArtDtoImpl;
- factory _SyncPromoArtDto.fromJson(Map<String, dynamic> json) =
- _$SyncPromoArtDtoImpl.fromJson;
- @override
- PromoArticoloKey? get promozioneArticoloKey;
- @override
- ItemDto? get articolo;
- /// Create a copy of SyncPromoArtDto
- /// with the given fields replaced by the non-null parameter values.
- @override
- @JsonKey(includeFromJson: false, includeToJson: false)
- _$$SyncPromoArtDtoImplCopyWith<_$SyncPromoArtDtoImpl> get copyWith =>
- throw _privateConstructorUsedError;
- }
- SyncPromoListiniDto _$SyncPromoListiniDtoFromJson(Map<String, dynamic> json) {
- return _SyncPromoListiniDto.fromJson(json);
- }
- /// @nodoc
- mixin _$SyncPromoListiniDto {
- PromoListinoKey? get promozioneListinoKey =>
- throw _privateConstructorUsedError;
- /// Serializes this SyncPromoListiniDto to a JSON map.
- Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
- /// Create a copy of SyncPromoListiniDto
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- $SyncPromoListiniDtoCopyWith<SyncPromoListiniDto> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $SyncPromoListiniDtoCopyWith<$Res> {
- factory $SyncPromoListiniDtoCopyWith(
- SyncPromoListiniDto value,
- $Res Function(SyncPromoListiniDto) then,
- ) = _$SyncPromoListiniDtoCopyWithImpl<$Res, SyncPromoListiniDto>;
- @useResult
- $Res call({PromoListinoKey? promozioneListinoKey});
- $PromoListinoKeyCopyWith<$Res>? get promozioneListinoKey;
- }
- /// @nodoc
- class _$SyncPromoListiniDtoCopyWithImpl<$Res, $Val extends SyncPromoListiniDto>
- implements $SyncPromoListiniDtoCopyWith<$Res> {
- _$SyncPromoListiniDtoCopyWithImpl(this._value, this._then);
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
- /// Create a copy of SyncPromoListiniDto
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({Object? promozioneListinoKey = freezed}) {
- return _then(
- _value.copyWith(
- promozioneListinoKey: freezed == promozioneListinoKey
- ? _value.promozioneListinoKey
- : promozioneListinoKey // ignore: cast_nullable_to_non_nullable
- as PromoListinoKey?,
- )
- as $Val,
- );
- }
- /// Create a copy of SyncPromoListiniDto
- /// with the given fields replaced by the non-null parameter values.
- @override
- @pragma('vm:prefer-inline')
- $PromoListinoKeyCopyWith<$Res>? get promozioneListinoKey {
- if (_value.promozioneListinoKey == null) {
- return null;
- }
- return $PromoListinoKeyCopyWith<$Res>(_value.promozioneListinoKey!, (
- value,
- ) {
- return _then(_value.copyWith(promozioneListinoKey: value) as $Val);
- });
- }
- }
- /// @nodoc
- abstract class _$$SyncPromoListiniDtoImplCopyWith<$Res>
- implements $SyncPromoListiniDtoCopyWith<$Res> {
- factory _$$SyncPromoListiniDtoImplCopyWith(
- _$SyncPromoListiniDtoImpl value,
- $Res Function(_$SyncPromoListiniDtoImpl) then,
- ) = __$$SyncPromoListiniDtoImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call({PromoListinoKey? promozioneListinoKey});
- @override
- $PromoListinoKeyCopyWith<$Res>? get promozioneListinoKey;
- }
- /// @nodoc
- class __$$SyncPromoListiniDtoImplCopyWithImpl<$Res>
- extends _$SyncPromoListiniDtoCopyWithImpl<$Res, _$SyncPromoListiniDtoImpl>
- implements _$$SyncPromoListiniDtoImplCopyWith<$Res> {
- __$$SyncPromoListiniDtoImplCopyWithImpl(
- _$SyncPromoListiniDtoImpl _value,
- $Res Function(_$SyncPromoListiniDtoImpl) _then,
- ) : super(_value, _then);
- /// Create a copy of SyncPromoListiniDto
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({Object? promozioneListinoKey = freezed}) {
- return _then(
- _$SyncPromoListiniDtoImpl(
- promozioneListinoKey: freezed == promozioneListinoKey
- ? _value.promozioneListinoKey
- : promozioneListinoKey // ignore: cast_nullable_to_non_nullable
- as PromoListinoKey?,
- ),
- );
- }
- }
- /// @nodoc
- @JsonSerializable()
- class _$SyncPromoListiniDtoImpl implements _SyncPromoListiniDto {
- const _$SyncPromoListiniDtoImpl({this.promozioneListinoKey});
- factory _$SyncPromoListiniDtoImpl.fromJson(Map<String, dynamic> json) =>
- _$$SyncPromoListiniDtoImplFromJson(json);
- @override
- final PromoListinoKey? promozioneListinoKey;
- @override
- String toString() {
- return 'SyncPromoListiniDto(promozioneListinoKey: $promozioneListinoKey)';
- }
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$SyncPromoListiniDtoImpl &&
- (identical(other.promozioneListinoKey, promozioneListinoKey) ||
- other.promozioneListinoKey == promozioneListinoKey));
- }
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- int get hashCode => Object.hash(runtimeType, promozioneListinoKey);
- /// Create a copy of SyncPromoListiniDto
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- @pragma('vm:prefer-inline')
- _$$SyncPromoListiniDtoImplCopyWith<_$SyncPromoListiniDtoImpl> get copyWith =>
- __$$SyncPromoListiniDtoImplCopyWithImpl<_$SyncPromoListiniDtoImpl>(
- this,
- _$identity,
- );
- @override
- Map<String, dynamic> toJson() {
- return _$$SyncPromoListiniDtoImplToJson(this);
- }
- }
- abstract class _SyncPromoListiniDto implements SyncPromoListiniDto {
- const factory _SyncPromoListiniDto({
- final PromoListinoKey? promozioneListinoKey,
- }) = _$SyncPromoListiniDtoImpl;
- factory _SyncPromoListiniDto.fromJson(Map<String, dynamic> json) =
- _$SyncPromoListiniDtoImpl.fromJson;
- @override
- PromoListinoKey? get promozioneListinoKey;
- /// Create a copy of SyncPromoListiniDto
- /// with the given fields replaced by the non-null parameter values.
- @override
- @JsonKey(includeFromJson: false, includeToJson: false)
- _$$SyncPromoListiniDtoImplCopyWith<_$SyncPromoListiniDtoImpl> get copyWith =>
- throw _privateConstructorUsedError;
- }
- SyncPromoOmaggioDto _$SyncPromoOmaggioDtoFromJson(Map<String, dynamic> json) {
- return _SyncPromoOmaggioDto.fromJson(json);
- }
- /// @nodoc
- mixin _$SyncPromoOmaggioDto {
- PromoOmaggioKey? get promozioneOmaggioKey =>
- throw _privateConstructorUsedError;
- ItemDto? get articolo => throw _privateConstructorUsedError;
- double? get quantita => throw _privateConstructorUsedError;
- /// Serializes this SyncPromoOmaggioDto to a JSON map.
- Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
- /// Create a copy of SyncPromoOmaggioDto
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- $SyncPromoOmaggioDtoCopyWith<SyncPromoOmaggioDto> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $SyncPromoOmaggioDtoCopyWith<$Res> {
- factory $SyncPromoOmaggioDtoCopyWith(
- SyncPromoOmaggioDto value,
- $Res Function(SyncPromoOmaggioDto) then,
- ) = _$SyncPromoOmaggioDtoCopyWithImpl<$Res, SyncPromoOmaggioDto>;
- @useResult
- $Res call({
- PromoOmaggioKey? promozioneOmaggioKey,
- ItemDto? articolo,
- double? quantita,
- });
- $PromoOmaggioKeyCopyWith<$Res>? get promozioneOmaggioKey;
- $ItemDtoCopyWith<$Res>? get articolo;
- }
- /// @nodoc
- class _$SyncPromoOmaggioDtoCopyWithImpl<$Res, $Val extends SyncPromoOmaggioDto>
- implements $SyncPromoOmaggioDtoCopyWith<$Res> {
- _$SyncPromoOmaggioDtoCopyWithImpl(this._value, this._then);
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
- /// Create a copy of SyncPromoOmaggioDto
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({
- Object? promozioneOmaggioKey = freezed,
- Object? articolo = freezed,
- Object? quantita = freezed,
- }) {
- return _then(
- _value.copyWith(
- promozioneOmaggioKey: freezed == promozioneOmaggioKey
- ? _value.promozioneOmaggioKey
- : promozioneOmaggioKey // ignore: cast_nullable_to_non_nullable
- as PromoOmaggioKey?,
- articolo: freezed == articolo
- ? _value.articolo
- : articolo // ignore: cast_nullable_to_non_nullable
- as ItemDto?,
- quantita: freezed == quantita
- ? _value.quantita
- : quantita // ignore: cast_nullable_to_non_nullable
- as double?,
- )
- as $Val,
- );
- }
- /// Create a copy of SyncPromoOmaggioDto
- /// with the given fields replaced by the non-null parameter values.
- @override
- @pragma('vm:prefer-inline')
- $PromoOmaggioKeyCopyWith<$Res>? get promozioneOmaggioKey {
- if (_value.promozioneOmaggioKey == null) {
- return null;
- }
- return $PromoOmaggioKeyCopyWith<$Res>(_value.promozioneOmaggioKey!, (
- value,
- ) {
- return _then(_value.copyWith(promozioneOmaggioKey: value) as $Val);
- });
- }
- /// Create a copy of SyncPromoOmaggioDto
- /// with the given fields replaced by the non-null parameter values.
- @override
- @pragma('vm:prefer-inline')
- $ItemDtoCopyWith<$Res>? get articolo {
- if (_value.articolo == null) {
- return null;
- }
- return $ItemDtoCopyWith<$Res>(_value.articolo!, (value) {
- return _then(_value.copyWith(articolo: value) as $Val);
- });
- }
- }
- /// @nodoc
- abstract class _$$SyncPromoOmaggioDtoImplCopyWith<$Res>
- implements $SyncPromoOmaggioDtoCopyWith<$Res> {
- factory _$$SyncPromoOmaggioDtoImplCopyWith(
- _$SyncPromoOmaggioDtoImpl value,
- $Res Function(_$SyncPromoOmaggioDtoImpl) then,
- ) = __$$SyncPromoOmaggioDtoImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call({
- PromoOmaggioKey? promozioneOmaggioKey,
- ItemDto? articolo,
- double? quantita,
- });
- @override
- $PromoOmaggioKeyCopyWith<$Res>? get promozioneOmaggioKey;
- @override
- $ItemDtoCopyWith<$Res>? get articolo;
- }
- /// @nodoc
- class __$$SyncPromoOmaggioDtoImplCopyWithImpl<$Res>
- extends _$SyncPromoOmaggioDtoCopyWithImpl<$Res, _$SyncPromoOmaggioDtoImpl>
- implements _$$SyncPromoOmaggioDtoImplCopyWith<$Res> {
- __$$SyncPromoOmaggioDtoImplCopyWithImpl(
- _$SyncPromoOmaggioDtoImpl _value,
- $Res Function(_$SyncPromoOmaggioDtoImpl) _then,
- ) : super(_value, _then);
- /// Create a copy of SyncPromoOmaggioDto
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({
- Object? promozioneOmaggioKey = freezed,
- Object? articolo = freezed,
- Object? quantita = freezed,
- }) {
- return _then(
- _$SyncPromoOmaggioDtoImpl(
- promozioneOmaggioKey: freezed == promozioneOmaggioKey
- ? _value.promozioneOmaggioKey
- : promozioneOmaggioKey // ignore: cast_nullable_to_non_nullable
- as PromoOmaggioKey?,
- articolo: freezed == articolo
- ? _value.articolo
- : articolo // ignore: cast_nullable_to_non_nullable
- as ItemDto?,
- quantita: freezed == quantita
- ? _value.quantita
- : quantita // ignore: cast_nullable_to_non_nullable
- as double?,
- ),
- );
- }
- }
- /// @nodoc
- @JsonSerializable()
- class _$SyncPromoOmaggioDtoImpl implements _SyncPromoOmaggioDto {
- const _$SyncPromoOmaggioDtoImpl({
- this.promozioneOmaggioKey,
- this.articolo,
- this.quantita,
- });
- factory _$SyncPromoOmaggioDtoImpl.fromJson(Map<String, dynamic> json) =>
- _$$SyncPromoOmaggioDtoImplFromJson(json);
- @override
- final PromoOmaggioKey? promozioneOmaggioKey;
- @override
- final ItemDto? articolo;
- @override
- final double? quantita;
- @override
- String toString() {
- return 'SyncPromoOmaggioDto(promozioneOmaggioKey: $promozioneOmaggioKey, articolo: $articolo, quantita: $quantita)';
- }
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$SyncPromoOmaggioDtoImpl &&
- (identical(other.promozioneOmaggioKey, promozioneOmaggioKey) ||
- other.promozioneOmaggioKey == promozioneOmaggioKey) &&
- (identical(other.articolo, articolo) ||
- other.articolo == articolo) &&
- (identical(other.quantita, quantita) ||
- other.quantita == quantita));
- }
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- int get hashCode =>
- Object.hash(runtimeType, promozioneOmaggioKey, articolo, quantita);
- /// Create a copy of SyncPromoOmaggioDto
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- @pragma('vm:prefer-inline')
- _$$SyncPromoOmaggioDtoImplCopyWith<_$SyncPromoOmaggioDtoImpl> get copyWith =>
- __$$SyncPromoOmaggioDtoImplCopyWithImpl<_$SyncPromoOmaggioDtoImpl>(
- this,
- _$identity,
- );
- @override
- Map<String, dynamic> toJson() {
- return _$$SyncPromoOmaggioDtoImplToJson(this);
- }
- }
- abstract class _SyncPromoOmaggioDto implements SyncPromoOmaggioDto {
- const factory _SyncPromoOmaggioDto({
- final PromoOmaggioKey? promozioneOmaggioKey,
- final ItemDto? articolo,
- final double? quantita,
- }) = _$SyncPromoOmaggioDtoImpl;
- factory _SyncPromoOmaggioDto.fromJson(Map<String, dynamic> json) =
- _$SyncPromoOmaggioDtoImpl.fromJson;
- @override
- PromoOmaggioKey? get promozioneOmaggioKey;
- @override
- ItemDto? get articolo;
- @override
- double? get quantita;
- /// Create a copy of SyncPromoOmaggioDto
- /// with the given fields replaced by the non-null parameter values.
- @override
- @JsonKey(includeFromJson: false, includeToJson: false)
- _$$SyncPromoOmaggioDtoImplCopyWith<_$SyncPromoOmaggioDtoImpl> get copyWith =>
- throw _privateConstructorUsedError;
- }
- PromoArticoloKey _$PromoArticoloKeyFromJson(Map<String, dynamic> json) {
- return _PromoArticoloKey.fromJson(json);
- }
- /// @nodoc
- mixin _$PromoArticoloKey {
- int? get progressivo => throw _privateConstructorUsedError;
- int? get riga => throw _privateConstructorUsedError;
- /// Serializes this PromoArticoloKey to a JSON map.
- Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
- /// Create a copy of PromoArticoloKey
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- $PromoArticoloKeyCopyWith<PromoArticoloKey> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $PromoArticoloKeyCopyWith<$Res> {
- factory $PromoArticoloKeyCopyWith(
- PromoArticoloKey value,
- $Res Function(PromoArticoloKey) then,
- ) = _$PromoArticoloKeyCopyWithImpl<$Res, PromoArticoloKey>;
- @useResult
- $Res call({int? progressivo, int? riga});
- }
- /// @nodoc
- class _$PromoArticoloKeyCopyWithImpl<$Res, $Val extends PromoArticoloKey>
- implements $PromoArticoloKeyCopyWith<$Res> {
- _$PromoArticoloKeyCopyWithImpl(this._value, this._then);
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
- /// Create a copy of PromoArticoloKey
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({Object? progressivo = freezed, Object? riga = freezed}) {
- return _then(
- _value.copyWith(
- progressivo: freezed == progressivo
- ? _value.progressivo
- : progressivo // ignore: cast_nullable_to_non_nullable
- as int?,
- riga: freezed == riga
- ? _value.riga
- : riga // ignore: cast_nullable_to_non_nullable
- as int?,
- )
- as $Val,
- );
- }
- }
- /// @nodoc
- abstract class _$$PromoArticoloKeyImplCopyWith<$Res>
- implements $PromoArticoloKeyCopyWith<$Res> {
- factory _$$PromoArticoloKeyImplCopyWith(
- _$PromoArticoloKeyImpl value,
- $Res Function(_$PromoArticoloKeyImpl) then,
- ) = __$$PromoArticoloKeyImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call({int? progressivo, int? riga});
- }
- /// @nodoc
- class __$$PromoArticoloKeyImplCopyWithImpl<$Res>
- extends _$PromoArticoloKeyCopyWithImpl<$Res, _$PromoArticoloKeyImpl>
- implements _$$PromoArticoloKeyImplCopyWith<$Res> {
- __$$PromoArticoloKeyImplCopyWithImpl(
- _$PromoArticoloKeyImpl _value,
- $Res Function(_$PromoArticoloKeyImpl) _then,
- ) : super(_value, _then);
- /// Create a copy of PromoArticoloKey
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({Object? progressivo = freezed, Object? riga = freezed}) {
- return _then(
- _$PromoArticoloKeyImpl(
- progressivo: freezed == progressivo
- ? _value.progressivo
- : progressivo // ignore: cast_nullable_to_non_nullable
- as int?,
- riga: freezed == riga
- ? _value.riga
- : riga // ignore: cast_nullable_to_non_nullable
- as int?,
- ),
- );
- }
- }
- /// @nodoc
- @JsonSerializable()
- class _$PromoArticoloKeyImpl implements _PromoArticoloKey {
- const _$PromoArticoloKeyImpl({this.progressivo, this.riga});
- factory _$PromoArticoloKeyImpl.fromJson(Map<String, dynamic> json) =>
- _$$PromoArticoloKeyImplFromJson(json);
- @override
- final int? progressivo;
- @override
- final int? riga;
- @override
- String toString() {
- return 'PromoArticoloKey(progressivo: $progressivo, riga: $riga)';
- }
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$PromoArticoloKeyImpl &&
- (identical(other.progressivo, progressivo) ||
- other.progressivo == progressivo) &&
- (identical(other.riga, riga) || other.riga == riga));
- }
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- int get hashCode => Object.hash(runtimeType, progressivo, riga);
- /// Create a copy of PromoArticoloKey
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- @pragma('vm:prefer-inline')
- _$$PromoArticoloKeyImplCopyWith<_$PromoArticoloKeyImpl> get copyWith =>
- __$$PromoArticoloKeyImplCopyWithImpl<_$PromoArticoloKeyImpl>(
- this,
- _$identity,
- );
- @override
- Map<String, dynamic> toJson() {
- return _$$PromoArticoloKeyImplToJson(this);
- }
- }
- abstract class _PromoArticoloKey implements PromoArticoloKey {
- const factory _PromoArticoloKey({final int? progressivo, final int? riga}) =
- _$PromoArticoloKeyImpl;
- factory _PromoArticoloKey.fromJson(Map<String, dynamic> json) =
- _$PromoArticoloKeyImpl.fromJson;
- @override
- int? get progressivo;
- @override
- int? get riga;
- /// Create a copy of PromoArticoloKey
- /// with the given fields replaced by the non-null parameter values.
- @override
- @JsonKey(includeFromJson: false, includeToJson: false)
- _$$PromoArticoloKeyImplCopyWith<_$PromoArticoloKeyImpl> get copyWith =>
- throw _privateConstructorUsedError;
- }
- PromoListinoKey _$PromoListinoKeyFromJson(Map<String, dynamic> json) {
- return _PromoListinoKey.fromJson(json);
- }
- /// @nodoc
- mixin _$PromoListinoKey {
- int? get progressivo => throw _privateConstructorUsedError;
- int? get idListino => throw _privateConstructorUsedError;
- /// Serializes this PromoListinoKey to a JSON map.
- Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
- /// Create a copy of PromoListinoKey
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- $PromoListinoKeyCopyWith<PromoListinoKey> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $PromoListinoKeyCopyWith<$Res> {
- factory $PromoListinoKeyCopyWith(
- PromoListinoKey value,
- $Res Function(PromoListinoKey) then,
- ) = _$PromoListinoKeyCopyWithImpl<$Res, PromoListinoKey>;
- @useResult
- $Res call({int? progressivo, int? idListino});
- }
- /// @nodoc
- class _$PromoListinoKeyCopyWithImpl<$Res, $Val extends PromoListinoKey>
- implements $PromoListinoKeyCopyWith<$Res> {
- _$PromoListinoKeyCopyWithImpl(this._value, this._then);
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
- /// Create a copy of PromoListinoKey
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({Object? progressivo = freezed, Object? idListino = freezed}) {
- return _then(
- _value.copyWith(
- progressivo: freezed == progressivo
- ? _value.progressivo
- : progressivo // ignore: cast_nullable_to_non_nullable
- as int?,
- idListino: freezed == idListino
- ? _value.idListino
- : idListino // ignore: cast_nullable_to_non_nullable
- as int?,
- )
- as $Val,
- );
- }
- }
- /// @nodoc
- abstract class _$$PromoListinoKeyImplCopyWith<$Res>
- implements $PromoListinoKeyCopyWith<$Res> {
- factory _$$PromoListinoKeyImplCopyWith(
- _$PromoListinoKeyImpl value,
- $Res Function(_$PromoListinoKeyImpl) then,
- ) = __$$PromoListinoKeyImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call({int? progressivo, int? idListino});
- }
- /// @nodoc
- class __$$PromoListinoKeyImplCopyWithImpl<$Res>
- extends _$PromoListinoKeyCopyWithImpl<$Res, _$PromoListinoKeyImpl>
- implements _$$PromoListinoKeyImplCopyWith<$Res> {
- __$$PromoListinoKeyImplCopyWithImpl(
- _$PromoListinoKeyImpl _value,
- $Res Function(_$PromoListinoKeyImpl) _then,
- ) : super(_value, _then);
- /// Create a copy of PromoListinoKey
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({Object? progressivo = freezed, Object? idListino = freezed}) {
- return _then(
- _$PromoListinoKeyImpl(
- progressivo: freezed == progressivo
- ? _value.progressivo
- : progressivo // ignore: cast_nullable_to_non_nullable
- as int?,
- idListino: freezed == idListino
- ? _value.idListino
- : idListino // ignore: cast_nullable_to_non_nullable
- as int?,
- ),
- );
- }
- }
- /// @nodoc
- @JsonSerializable()
- class _$PromoListinoKeyImpl implements _PromoListinoKey {
- const _$PromoListinoKeyImpl({this.progressivo, this.idListino});
- factory _$PromoListinoKeyImpl.fromJson(Map<String, dynamic> json) =>
- _$$PromoListinoKeyImplFromJson(json);
- @override
- final int? progressivo;
- @override
- final int? idListino;
- @override
- String toString() {
- return 'PromoListinoKey(progressivo: $progressivo, idListino: $idListino)';
- }
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$PromoListinoKeyImpl &&
- (identical(other.progressivo, progressivo) ||
- other.progressivo == progressivo) &&
- (identical(other.idListino, idListino) ||
- other.idListino == idListino));
- }
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- int get hashCode => Object.hash(runtimeType, progressivo, idListino);
- /// Create a copy of PromoListinoKey
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- @pragma('vm:prefer-inline')
- _$$PromoListinoKeyImplCopyWith<_$PromoListinoKeyImpl> get copyWith =>
- __$$PromoListinoKeyImplCopyWithImpl<_$PromoListinoKeyImpl>(
- this,
- _$identity,
- );
- @override
- Map<String, dynamic> toJson() {
- return _$$PromoListinoKeyImplToJson(this);
- }
- }
- abstract class _PromoListinoKey implements PromoListinoKey {
- const factory _PromoListinoKey({
- final int? progressivo,
- final int? idListino,
- }) = _$PromoListinoKeyImpl;
- factory _PromoListinoKey.fromJson(Map<String, dynamic> json) =
- _$PromoListinoKeyImpl.fromJson;
- @override
- int? get progressivo;
- @override
- int? get idListino;
- /// Create a copy of PromoListinoKey
- /// with the given fields replaced by the non-null parameter values.
- @override
- @JsonKey(includeFromJson: false, includeToJson: false)
- _$$PromoListinoKeyImplCopyWith<_$PromoListinoKeyImpl> get copyWith =>
- throw _privateConstructorUsedError;
- }
- PromoOmaggioKey _$PromoOmaggioKeyFromJson(Map<String, dynamic> json) {
- return _PromoOmaggioKey.fromJson(json);
- }
- /// @nodoc
- mixin _$PromoOmaggioKey {
- int? get progressivo => throw _privateConstructorUsedError;
- int? get riga => throw _privateConstructorUsedError;
- /// Serializes this PromoOmaggioKey to a JSON map.
- Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
- /// Create a copy of PromoOmaggioKey
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- $PromoOmaggioKeyCopyWith<PromoOmaggioKey> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $PromoOmaggioKeyCopyWith<$Res> {
- factory $PromoOmaggioKeyCopyWith(
- PromoOmaggioKey value,
- $Res Function(PromoOmaggioKey) then,
- ) = _$PromoOmaggioKeyCopyWithImpl<$Res, PromoOmaggioKey>;
- @useResult
- $Res call({int? progressivo, int? riga});
- }
- /// @nodoc
- class _$PromoOmaggioKeyCopyWithImpl<$Res, $Val extends PromoOmaggioKey>
- implements $PromoOmaggioKeyCopyWith<$Res> {
- _$PromoOmaggioKeyCopyWithImpl(this._value, this._then);
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
- /// Create a copy of PromoOmaggioKey
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({Object? progressivo = freezed, Object? riga = freezed}) {
- return _then(
- _value.copyWith(
- progressivo: freezed == progressivo
- ? _value.progressivo
- : progressivo // ignore: cast_nullable_to_non_nullable
- as int?,
- riga: freezed == riga
- ? _value.riga
- : riga // ignore: cast_nullable_to_non_nullable
- as int?,
- )
- as $Val,
- );
- }
- }
- /// @nodoc
- abstract class _$$PromoOmaggioKeyImplCopyWith<$Res>
- implements $PromoOmaggioKeyCopyWith<$Res> {
- factory _$$PromoOmaggioKeyImplCopyWith(
- _$PromoOmaggioKeyImpl value,
- $Res Function(_$PromoOmaggioKeyImpl) then,
- ) = __$$PromoOmaggioKeyImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call({int? progressivo, int? riga});
- }
- /// @nodoc
- class __$$PromoOmaggioKeyImplCopyWithImpl<$Res>
- extends _$PromoOmaggioKeyCopyWithImpl<$Res, _$PromoOmaggioKeyImpl>
- implements _$$PromoOmaggioKeyImplCopyWith<$Res> {
- __$$PromoOmaggioKeyImplCopyWithImpl(
- _$PromoOmaggioKeyImpl _value,
- $Res Function(_$PromoOmaggioKeyImpl) _then,
- ) : super(_value, _then);
- /// Create a copy of PromoOmaggioKey
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({Object? progressivo = freezed, Object? riga = freezed}) {
- return _then(
- _$PromoOmaggioKeyImpl(
- progressivo: freezed == progressivo
- ? _value.progressivo
- : progressivo // ignore: cast_nullable_to_non_nullable
- as int?,
- riga: freezed == riga
- ? _value.riga
- : riga // ignore: cast_nullable_to_non_nullable
- as int?,
- ),
- );
- }
- }
- /// @nodoc
- @JsonSerializable()
- class _$PromoOmaggioKeyImpl implements _PromoOmaggioKey {
- const _$PromoOmaggioKeyImpl({this.progressivo, this.riga});
- factory _$PromoOmaggioKeyImpl.fromJson(Map<String, dynamic> json) =>
- _$$PromoOmaggioKeyImplFromJson(json);
- @override
- final int? progressivo;
- @override
- final int? riga;
- @override
- String toString() {
- return 'PromoOmaggioKey(progressivo: $progressivo, riga: $riga)';
- }
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$PromoOmaggioKeyImpl &&
- (identical(other.progressivo, progressivo) ||
- other.progressivo == progressivo) &&
- (identical(other.riga, riga) || other.riga == riga));
- }
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- int get hashCode => Object.hash(runtimeType, progressivo, riga);
- /// Create a copy of PromoOmaggioKey
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- @pragma('vm:prefer-inline')
- _$$PromoOmaggioKeyImplCopyWith<_$PromoOmaggioKeyImpl> get copyWith =>
- __$$PromoOmaggioKeyImplCopyWithImpl<_$PromoOmaggioKeyImpl>(
- this,
- _$identity,
- );
- @override
- Map<String, dynamic> toJson() {
- return _$$PromoOmaggioKeyImplToJson(this);
- }
- }
- abstract class _PromoOmaggioKey implements PromoOmaggioKey {
- const factory _PromoOmaggioKey({final int? progressivo, final int? riga}) =
- _$PromoOmaggioKeyImpl;
- factory _PromoOmaggioKey.fromJson(Map<String, dynamic> json) =
- _$PromoOmaggioKeyImpl.fromJson;
- @override
- int? get progressivo;
- @override
- int? get riga;
- /// Create a copy of PromoOmaggioKey
- /// with the given fields replaced by the non-null parameter values.
- @override
- @JsonKey(includeFromJson: false, includeToJson: false)
- _$$PromoOmaggioKeyImplCopyWith<_$PromoOmaggioKeyImpl> get copyWith =>
- throw _privateConstructorUsedError;
- }
- ItemDto _$ItemDtoFromJson(Map<String, dynamic> json) {
- return _ItemDto.fromJson(json);
- }
- /// @nodoc
- mixin _$ItemDto {
- int? get idArticolo => throw _privateConstructorUsedError;
- String? get codArticolo => throw _privateConstructorUsedError;
- String? get descrizione => throw _privateConstructorUsedError;
- double? get prezzo => throw _privateConstructorUsedError;
- String? get unitaMisura => throw _privateConstructorUsedError;
- String? get fileFoto => throw _privateConstructorUsedError;
- /// Serializes this ItemDto to a JSON map.
- Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
- /// Create a copy of ItemDto
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- $ItemDtoCopyWith<ItemDto> get copyWith => throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $ItemDtoCopyWith<$Res> {
- factory $ItemDtoCopyWith(ItemDto value, $Res Function(ItemDto) then) =
- _$ItemDtoCopyWithImpl<$Res, ItemDto>;
- @useResult
- $Res call({
- int? idArticolo,
- String? codArticolo,
- String? descrizione,
- double? prezzo,
- String? unitaMisura,
- String? fileFoto,
- });
- }
- /// @nodoc
- class _$ItemDtoCopyWithImpl<$Res, $Val extends ItemDto>
- implements $ItemDtoCopyWith<$Res> {
- _$ItemDtoCopyWithImpl(this._value, this._then);
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
- /// Create a copy of ItemDto
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({
- Object? idArticolo = freezed,
- Object? codArticolo = freezed,
- Object? descrizione = freezed,
- Object? prezzo = freezed,
- Object? unitaMisura = freezed,
- Object? fileFoto = freezed,
- }) {
- return _then(
- _value.copyWith(
- idArticolo: freezed == idArticolo
- ? _value.idArticolo
- : idArticolo // ignore: cast_nullable_to_non_nullable
- as int?,
- codArticolo: freezed == codArticolo
- ? _value.codArticolo
- : codArticolo // ignore: cast_nullable_to_non_nullable
- as String?,
- descrizione: freezed == descrizione
- ? _value.descrizione
- : descrizione // ignore: cast_nullable_to_non_nullable
- as String?,
- prezzo: freezed == prezzo
- ? _value.prezzo
- : prezzo // ignore: cast_nullable_to_non_nullable
- as double?,
- unitaMisura: freezed == unitaMisura
- ? _value.unitaMisura
- : unitaMisura // ignore: cast_nullable_to_non_nullable
- as String?,
- fileFoto: freezed == fileFoto
- ? _value.fileFoto
- : fileFoto // ignore: cast_nullable_to_non_nullable
- as String?,
- )
- as $Val,
- );
- }
- }
- /// @nodoc
- abstract class _$$ItemDtoImplCopyWith<$Res> implements $ItemDtoCopyWith<$Res> {
- factory _$$ItemDtoImplCopyWith(
- _$ItemDtoImpl value,
- $Res Function(_$ItemDtoImpl) then,
- ) = __$$ItemDtoImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call({
- int? idArticolo,
- String? codArticolo,
- String? descrizione,
- double? prezzo,
- String? unitaMisura,
- String? fileFoto,
- });
- }
- /// @nodoc
- class __$$ItemDtoImplCopyWithImpl<$Res>
- extends _$ItemDtoCopyWithImpl<$Res, _$ItemDtoImpl>
- implements _$$ItemDtoImplCopyWith<$Res> {
- __$$ItemDtoImplCopyWithImpl(
- _$ItemDtoImpl _value,
- $Res Function(_$ItemDtoImpl) _then,
- ) : super(_value, _then);
- /// Create a copy of ItemDto
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({
- Object? idArticolo = freezed,
- Object? codArticolo = freezed,
- Object? descrizione = freezed,
- Object? prezzo = freezed,
- Object? unitaMisura = freezed,
- Object? fileFoto = freezed,
- }) {
- return _then(
- _$ItemDtoImpl(
- idArticolo: freezed == idArticolo
- ? _value.idArticolo
- : idArticolo // ignore: cast_nullable_to_non_nullable
- as int?,
- codArticolo: freezed == codArticolo
- ? _value.codArticolo
- : codArticolo // ignore: cast_nullable_to_non_nullable
- as String?,
- descrizione: freezed == descrizione
- ? _value.descrizione
- : descrizione // ignore: cast_nullable_to_non_nullable
- as String?,
- prezzo: freezed == prezzo
- ? _value.prezzo
- : prezzo // ignore: cast_nullable_to_non_nullable
- as double?,
- unitaMisura: freezed == unitaMisura
- ? _value.unitaMisura
- : unitaMisura // ignore: cast_nullable_to_non_nullable
- as String?,
- fileFoto: freezed == fileFoto
- ? _value.fileFoto
- : fileFoto // ignore: cast_nullable_to_non_nullable
- as String?,
- ),
- );
- }
- }
- /// @nodoc
- @JsonSerializable()
- class _$ItemDtoImpl implements _ItemDto {
- const _$ItemDtoImpl({
- this.idArticolo,
- this.codArticolo,
- this.descrizione,
- this.prezzo,
- this.unitaMisura,
- this.fileFoto,
- });
- factory _$ItemDtoImpl.fromJson(Map<String, dynamic> json) =>
- _$$ItemDtoImplFromJson(json);
- @override
- final int? idArticolo;
- @override
- final String? codArticolo;
- @override
- final String? descrizione;
- @override
- final double? prezzo;
- @override
- final String? unitaMisura;
- @override
- final String? fileFoto;
- @override
- String toString() {
- return 'ItemDto(idArticolo: $idArticolo, codArticolo: $codArticolo, descrizione: $descrizione, prezzo: $prezzo, unitaMisura: $unitaMisura, fileFoto: $fileFoto)';
- }
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$ItemDtoImpl &&
- (identical(other.idArticolo, idArticolo) ||
- other.idArticolo == idArticolo) &&
- (identical(other.codArticolo, codArticolo) ||
- other.codArticolo == codArticolo) &&
- (identical(other.descrizione, descrizione) ||
- other.descrizione == descrizione) &&
- (identical(other.prezzo, prezzo) || other.prezzo == prezzo) &&
- (identical(other.unitaMisura, unitaMisura) ||
- other.unitaMisura == unitaMisura) &&
- (identical(other.fileFoto, fileFoto) ||
- other.fileFoto == fileFoto));
- }
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- int get hashCode => Object.hash(
- runtimeType,
- idArticolo,
- codArticolo,
- descrizione,
- prezzo,
- unitaMisura,
- fileFoto,
- );
- /// Create a copy of ItemDto
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- @pragma('vm:prefer-inline')
- _$$ItemDtoImplCopyWith<_$ItemDtoImpl> get copyWith =>
- __$$ItemDtoImplCopyWithImpl<_$ItemDtoImpl>(this, _$identity);
- @override
- Map<String, dynamic> toJson() {
- return _$$ItemDtoImplToJson(this);
- }
- }
- abstract class _ItemDto implements ItemDto {
- const factory _ItemDto({
- final int? idArticolo,
- final String? codArticolo,
- final String? descrizione,
- final double? prezzo,
- final String? unitaMisura,
- final String? fileFoto,
- }) = _$ItemDtoImpl;
- factory _ItemDto.fromJson(Map<String, dynamic> json) = _$ItemDtoImpl.fromJson;
- @override
- int? get idArticolo;
- @override
- String? get codArticolo;
- @override
- String? get descrizione;
- @override
- double? get prezzo;
- @override
- String? get unitaMisura;
- @override
- String? get fileFoto;
- /// Create a copy of ItemDto
- /// with the given fields replaced by the non-null parameter values.
- @override
- @JsonKey(includeFromJson: false, includeToJson: false)
- _$$ItemDtoImplCopyWith<_$ItemDtoImpl> get copyWith =>
- throw _privateConstructorUsedError;
- }
- ListinoDto _$ListinoDtoFromJson(Map<String, dynamic> json) {
- return _ListinoDto.fromJson(json);
- }
- /// @nodoc
- mixin _$ListinoDto {
- int? get idListino => throw _privateConstructorUsedError;
- String? get codListino => throw _privateConstructorUsedError;
- String? get descrizione => throw _privateConstructorUsedError;
- /// Serializes this ListinoDto to a JSON map.
- Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
- /// Create a copy of ListinoDto
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- $ListinoDtoCopyWith<ListinoDto> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $ListinoDtoCopyWith<$Res> {
- factory $ListinoDtoCopyWith(
- ListinoDto value,
- $Res Function(ListinoDto) then,
- ) = _$ListinoDtoCopyWithImpl<$Res, ListinoDto>;
- @useResult
- $Res call({int? idListino, String? codListino, String? descrizione});
- }
- /// @nodoc
- class _$ListinoDtoCopyWithImpl<$Res, $Val extends ListinoDto>
- implements $ListinoDtoCopyWith<$Res> {
- _$ListinoDtoCopyWithImpl(this._value, this._then);
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
- /// Create a copy of ListinoDto
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({
- Object? idListino = freezed,
- Object? codListino = freezed,
- Object? descrizione = freezed,
- }) {
- return _then(
- _value.copyWith(
- idListino: freezed == idListino
- ? _value.idListino
- : idListino // ignore: cast_nullable_to_non_nullable
- as int?,
- codListino: freezed == codListino
- ? _value.codListino
- : codListino // ignore: cast_nullable_to_non_nullable
- as String?,
- descrizione: freezed == descrizione
- ? _value.descrizione
- : descrizione // ignore: cast_nullable_to_non_nullable
- as String?,
- )
- as $Val,
- );
- }
- }
- /// @nodoc
- abstract class _$$ListinoDtoImplCopyWith<$Res>
- implements $ListinoDtoCopyWith<$Res> {
- factory _$$ListinoDtoImplCopyWith(
- _$ListinoDtoImpl value,
- $Res Function(_$ListinoDtoImpl) then,
- ) = __$$ListinoDtoImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call({int? idListino, String? codListino, String? descrizione});
- }
- /// @nodoc
- class __$$ListinoDtoImplCopyWithImpl<$Res>
- extends _$ListinoDtoCopyWithImpl<$Res, _$ListinoDtoImpl>
- implements _$$ListinoDtoImplCopyWith<$Res> {
- __$$ListinoDtoImplCopyWithImpl(
- _$ListinoDtoImpl _value,
- $Res Function(_$ListinoDtoImpl) _then,
- ) : super(_value, _then);
- /// Create a copy of ListinoDto
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({
- Object? idListino = freezed,
- Object? codListino = freezed,
- Object? descrizione = freezed,
- }) {
- return _then(
- _$ListinoDtoImpl(
- idListino: freezed == idListino
- ? _value.idListino
- : idListino // ignore: cast_nullable_to_non_nullable
- as int?,
- codListino: freezed == codListino
- ? _value.codListino
- : codListino // ignore: cast_nullable_to_non_nullable
- as String?,
- descrizione: freezed == descrizione
- ? _value.descrizione
- : descrizione // ignore: cast_nullable_to_non_nullable
- as String?,
- ),
- );
- }
- }
- /// @nodoc
- @JsonSerializable()
- class _$ListinoDtoImpl implements _ListinoDto {
- const _$ListinoDtoImpl({this.idListino, this.codListino, this.descrizione});
- factory _$ListinoDtoImpl.fromJson(Map<String, dynamic> json) =>
- _$$ListinoDtoImplFromJson(json);
- @override
- final int? idListino;
- @override
- final String? codListino;
- @override
- final String? descrizione;
- @override
- String toString() {
- return 'ListinoDto(idListino: $idListino, codListino: $codListino, descrizione: $descrizione)';
- }
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$ListinoDtoImpl &&
- (identical(other.idListino, idListino) ||
- other.idListino == idListino) &&
- (identical(other.codListino, codListino) ||
- other.codListino == codListino) &&
- (identical(other.descrizione, descrizione) ||
- other.descrizione == descrizione));
- }
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- int get hashCode =>
- Object.hash(runtimeType, idListino, codListino, descrizione);
- /// Create a copy of ListinoDto
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- @pragma('vm:prefer-inline')
- _$$ListinoDtoImplCopyWith<_$ListinoDtoImpl> get copyWith =>
- __$$ListinoDtoImplCopyWithImpl<_$ListinoDtoImpl>(this, _$identity);
- @override
- Map<String, dynamic> toJson() {
- return _$$ListinoDtoImplToJson(this);
- }
- }
- abstract class _ListinoDto implements ListinoDto {
- const factory _ListinoDto({
- final int? idListino,
- final String? codListino,
- final String? descrizione,
- }) = _$ListinoDtoImpl;
- factory _ListinoDto.fromJson(Map<String, dynamic> json) =
- _$ListinoDtoImpl.fromJson;
- @override
- int? get idListino;
- @override
- String? get codListino;
- @override
- String? get descrizione;
- /// Create a copy of ListinoDto
- /// with the given fields replaced by the non-null parameter values.
- @override
- @JsonKey(includeFromJson: false, includeToJson: false)
- _$$ListinoDtoImplCopyWith<_$ListinoDtoImpl> get copyWith =>
- throw _privateConstructorUsedError;
- }
- ScontoDto _$ScontoDtoFromJson(Map<String, dynamic> json) {
- return _ScontoDto.fromJson(json);
- }
- /// @nodoc
- mixin _$ScontoDto {
- int? get idSconto => throw _privateConstructorUsedError;
- String? get codSconto => throw _privateConstructorUsedError;
- String? get descrizione => throw _privateConstructorUsedError;
- double? get sconto1 => throw _privateConstructorUsedError;
- double? get sconto2 => throw _privateConstructorUsedError;
- double? get sconto3 => throw _privateConstructorUsedError;
- double? get sconto4 => throw _privateConstructorUsedError;
- double? get sconto5 => throw _privateConstructorUsedError;
- /// Serializes this ScontoDto to a JSON map.
- Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
- /// Create a copy of ScontoDto
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- $ScontoDtoCopyWith<ScontoDto> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $ScontoDtoCopyWith<$Res> {
- factory $ScontoDtoCopyWith(ScontoDto value, $Res Function(ScontoDto) then) =
- _$ScontoDtoCopyWithImpl<$Res, ScontoDto>;
- @useResult
- $Res call({
- int? idSconto,
- String? codSconto,
- String? descrizione,
- double? sconto1,
- double? sconto2,
- double? sconto3,
- double? sconto4,
- double? sconto5,
- });
- }
- /// @nodoc
- class _$ScontoDtoCopyWithImpl<$Res, $Val extends ScontoDto>
- implements $ScontoDtoCopyWith<$Res> {
- _$ScontoDtoCopyWithImpl(this._value, this._then);
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
- /// Create a copy of ScontoDto
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({
- Object? idSconto = freezed,
- Object? codSconto = freezed,
- Object? descrizione = freezed,
- Object? sconto1 = freezed,
- Object? sconto2 = freezed,
- Object? sconto3 = freezed,
- Object? sconto4 = freezed,
- Object? sconto5 = freezed,
- }) {
- return _then(
- _value.copyWith(
- idSconto: freezed == idSconto
- ? _value.idSconto
- : idSconto // ignore: cast_nullable_to_non_nullable
- as int?,
- codSconto: freezed == codSconto
- ? _value.codSconto
- : codSconto // ignore: cast_nullable_to_non_nullable
- as String?,
- descrizione: freezed == descrizione
- ? _value.descrizione
- : descrizione // ignore: cast_nullable_to_non_nullable
- as String?,
- sconto1: freezed == sconto1
- ? _value.sconto1
- : sconto1 // ignore: cast_nullable_to_non_nullable
- as double?,
- sconto2: freezed == sconto2
- ? _value.sconto2
- : sconto2 // ignore: cast_nullable_to_non_nullable
- as double?,
- sconto3: freezed == sconto3
- ? _value.sconto3
- : sconto3 // ignore: cast_nullable_to_non_nullable
- as double?,
- sconto4: freezed == sconto4
- ? _value.sconto4
- : sconto4 // ignore: cast_nullable_to_non_nullable
- as double?,
- sconto5: freezed == sconto5
- ? _value.sconto5
- : sconto5 // ignore: cast_nullable_to_non_nullable
- as double?,
- )
- as $Val,
- );
- }
- }
- /// @nodoc
- abstract class _$$ScontoDtoImplCopyWith<$Res>
- implements $ScontoDtoCopyWith<$Res> {
- factory _$$ScontoDtoImplCopyWith(
- _$ScontoDtoImpl value,
- $Res Function(_$ScontoDtoImpl) then,
- ) = __$$ScontoDtoImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call({
- int? idSconto,
- String? codSconto,
- String? descrizione,
- double? sconto1,
- double? sconto2,
- double? sconto3,
- double? sconto4,
- double? sconto5,
- });
- }
- /// @nodoc
- class __$$ScontoDtoImplCopyWithImpl<$Res>
- extends _$ScontoDtoCopyWithImpl<$Res, _$ScontoDtoImpl>
- implements _$$ScontoDtoImplCopyWith<$Res> {
- __$$ScontoDtoImplCopyWithImpl(
- _$ScontoDtoImpl _value,
- $Res Function(_$ScontoDtoImpl) _then,
- ) : super(_value, _then);
- /// Create a copy of ScontoDto
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({
- Object? idSconto = freezed,
- Object? codSconto = freezed,
- Object? descrizione = freezed,
- Object? sconto1 = freezed,
- Object? sconto2 = freezed,
- Object? sconto3 = freezed,
- Object? sconto4 = freezed,
- Object? sconto5 = freezed,
- }) {
- return _then(
- _$ScontoDtoImpl(
- idSconto: freezed == idSconto
- ? _value.idSconto
- : idSconto // ignore: cast_nullable_to_non_nullable
- as int?,
- codSconto: freezed == codSconto
- ? _value.codSconto
- : codSconto // ignore: cast_nullable_to_non_nullable
- as String?,
- descrizione: freezed == descrizione
- ? _value.descrizione
- : descrizione // ignore: cast_nullable_to_non_nullable
- as String?,
- sconto1: freezed == sconto1
- ? _value.sconto1
- : sconto1 // ignore: cast_nullable_to_non_nullable
- as double?,
- sconto2: freezed == sconto2
- ? _value.sconto2
- : sconto2 // ignore: cast_nullable_to_non_nullable
- as double?,
- sconto3: freezed == sconto3
- ? _value.sconto3
- : sconto3 // ignore: cast_nullable_to_non_nullable
- as double?,
- sconto4: freezed == sconto4
- ? _value.sconto4
- : sconto4 // ignore: cast_nullable_to_non_nullable
- as double?,
- sconto5: freezed == sconto5
- ? _value.sconto5
- : sconto5 // ignore: cast_nullable_to_non_nullable
- as double?,
- ),
- );
- }
- }
- /// @nodoc
- @JsonSerializable()
- class _$ScontoDtoImpl implements _ScontoDto {
- const _$ScontoDtoImpl({
- this.idSconto,
- this.codSconto,
- this.descrizione,
- this.sconto1,
- this.sconto2,
- this.sconto3,
- this.sconto4,
- this.sconto5,
- });
- factory _$ScontoDtoImpl.fromJson(Map<String, dynamic> json) =>
- _$$ScontoDtoImplFromJson(json);
- @override
- final int? idSconto;
- @override
- final String? codSconto;
- @override
- final String? descrizione;
- @override
- final double? sconto1;
- @override
- final double? sconto2;
- @override
- final double? sconto3;
- @override
- final double? sconto4;
- @override
- final double? sconto5;
- @override
- String toString() {
- return 'ScontoDto(idSconto: $idSconto, codSconto: $codSconto, descrizione: $descrizione, sconto1: $sconto1, sconto2: $sconto2, sconto3: $sconto3, sconto4: $sconto4, sconto5: $sconto5)';
- }
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$ScontoDtoImpl &&
- (identical(other.idSconto, idSconto) ||
- other.idSconto == idSconto) &&
- (identical(other.codSconto, codSconto) ||
- other.codSconto == codSconto) &&
- (identical(other.descrizione, descrizione) ||
- other.descrizione == descrizione) &&
- (identical(other.sconto1, sconto1) || other.sconto1 == sconto1) &&
- (identical(other.sconto2, sconto2) || other.sconto2 == sconto2) &&
- (identical(other.sconto3, sconto3) || other.sconto3 == sconto3) &&
- (identical(other.sconto4, sconto4) || other.sconto4 == sconto4) &&
- (identical(other.sconto5, sconto5) || other.sconto5 == sconto5));
- }
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- int get hashCode => Object.hash(
- runtimeType,
- idSconto,
- codSconto,
- descrizione,
- sconto1,
- sconto2,
- sconto3,
- sconto4,
- sconto5,
- );
- /// Create a copy of ScontoDto
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- @pragma('vm:prefer-inline')
- _$$ScontoDtoImplCopyWith<_$ScontoDtoImpl> get copyWith =>
- __$$ScontoDtoImplCopyWithImpl<_$ScontoDtoImpl>(this, _$identity);
- @override
- Map<String, dynamic> toJson() {
- return _$$ScontoDtoImplToJson(this);
- }
- }
- abstract class _ScontoDto implements ScontoDto {
- const factory _ScontoDto({
- final int? idSconto,
- final String? codSconto,
- final String? descrizione,
- final double? sconto1,
- final double? sconto2,
- final double? sconto3,
- final double? sconto4,
- final double? sconto5,
- }) = _$ScontoDtoImpl;
- factory _ScontoDto.fromJson(Map<String, dynamic> json) =
- _$ScontoDtoImpl.fromJson;
- @override
- int? get idSconto;
- @override
- String? get codSconto;
- @override
- String? get descrizione;
- @override
- double? get sconto1;
- @override
- double? get sconto2;
- @override
- double? get sconto3;
- @override
- double? get sconto4;
- @override
- double? get sconto5;
- /// Create a copy of ScontoDto
- /// with the given fields replaced by the non-null parameter values.
- @override
- @JsonKey(includeFromJson: false, includeToJson: false)
- _$$ScontoDtoImplCopyWith<_$ScontoDtoImpl> get copyWith =>
- throw _privateConstructorUsedError;
- }
|