// dart format width=80 // 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 'stock_picking_model.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** // dart format off T _$identity(T value) => value; /// @nodoc mixin _$StockPickingResponseModel { String? get jsonrpc; int? get id; StockPickingResultModel? get result; /// Create a copy of StockPickingResponseModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $StockPickingResponseModelCopyWith get copyWith => _$StockPickingResponseModelCopyWithImpl(this as StockPickingResponseModel, _$identity); /// Serializes this StockPickingResponseModel to a JSON map. Map toJson(); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is StockPickingResponseModel&&(identical(other.jsonrpc, jsonrpc) || other.jsonrpc == jsonrpc)&&(identical(other.id, id) || other.id == id)&&(identical(other.result, result) || other.result == result)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType,jsonrpc,id,result); @override String toString() { return 'StockPickingResponseModel(jsonrpc: $jsonrpc, id: $id, result: $result)'; } } /// @nodoc abstract mixin class $StockPickingResponseModelCopyWith<$Res> { factory $StockPickingResponseModelCopyWith(StockPickingResponseModel value, $Res Function(StockPickingResponseModel) _then) = _$StockPickingResponseModelCopyWithImpl; @useResult $Res call({ String? jsonrpc, int? id, StockPickingResultModel? result }); $StockPickingResultModelCopyWith<$Res>? get result; } /// @nodoc class _$StockPickingResponseModelCopyWithImpl<$Res> implements $StockPickingResponseModelCopyWith<$Res> { _$StockPickingResponseModelCopyWithImpl(this._self, this._then); final StockPickingResponseModel _self; final $Res Function(StockPickingResponseModel) _then; /// Create a copy of StockPickingResponseModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? jsonrpc = freezed,Object? id = freezed,Object? result = freezed,}) { return _then(_self.copyWith( jsonrpc: freezed == jsonrpc ? _self.jsonrpc : jsonrpc // ignore: cast_nullable_to_non_nullable as String?,id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as int?,result: freezed == result ? _self.result : result // ignore: cast_nullable_to_non_nullable as StockPickingResultModel?, )); } /// Create a copy of StockPickingResponseModel /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $StockPickingResultModelCopyWith<$Res>? get result { if (_self.result == null) { return null; } return $StockPickingResultModelCopyWith<$Res>(_self.result!, (value) { return _then(_self.copyWith(result: value)); }); } } /// @nodoc @JsonSerializable() class _StockPickingResponseModel implements StockPickingResponseModel { const _StockPickingResponseModel({this.jsonrpc, this.id, this.result}); factory _StockPickingResponseModel.fromJson(Map json) => _$StockPickingResponseModelFromJson(json); @override final String? jsonrpc; @override final int? id; @override final StockPickingResultModel? result; /// Create a copy of StockPickingResponseModel /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$StockPickingResponseModelCopyWith<_StockPickingResponseModel> get copyWith => __$StockPickingResponseModelCopyWithImpl<_StockPickingResponseModel>(this, _$identity); @override Map toJson() { return _$StockPickingResponseModelToJson(this, ); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _StockPickingResponseModel&&(identical(other.jsonrpc, jsonrpc) || other.jsonrpc == jsonrpc)&&(identical(other.id, id) || other.id == id)&&(identical(other.result, result) || other.result == result)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType,jsonrpc,id,result); @override String toString() { return 'StockPickingResponseModel(jsonrpc: $jsonrpc, id: $id, result: $result)'; } } /// @nodoc abstract mixin class _$StockPickingResponseModelCopyWith<$Res> implements $StockPickingResponseModelCopyWith<$Res> { factory _$StockPickingResponseModelCopyWith(_StockPickingResponseModel value, $Res Function(_StockPickingResponseModel) _then) = __$StockPickingResponseModelCopyWithImpl; @override @useResult $Res call({ String? jsonrpc, int? id, StockPickingResultModel? result }); @override $StockPickingResultModelCopyWith<$Res>? get result; } /// @nodoc class __$StockPickingResponseModelCopyWithImpl<$Res> implements _$StockPickingResponseModelCopyWith<$Res> { __$StockPickingResponseModelCopyWithImpl(this._self, this._then); final _StockPickingResponseModel _self; final $Res Function(_StockPickingResponseModel) _then; /// Create a copy of StockPickingResponseModel /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? jsonrpc = freezed,Object? id = freezed,Object? result = freezed,}) { return _then(_StockPickingResponseModel( jsonrpc: freezed == jsonrpc ? _self.jsonrpc : jsonrpc // ignore: cast_nullable_to_non_nullable as String?,id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as int?,result: freezed == result ? _self.result : result // ignore: cast_nullable_to_non_nullable as StockPickingResultModel?, )); } /// Create a copy of StockPickingResponseModel /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $StockPickingResultModelCopyWith<$Res>? get result { if (_self.result == null) { return null; } return $StockPickingResultModelCopyWith<$Res>(_self.result!, (value) { return _then(_self.copyWith(result: value)); }); } } /// @nodoc mixin _$StockPickingResultModel { int? get length; List? get records; /// Create a copy of StockPickingResultModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $StockPickingResultModelCopyWith get copyWith => _$StockPickingResultModelCopyWithImpl(this as StockPickingResultModel, _$identity); /// Serializes this StockPickingResultModel to a JSON map. Map toJson(); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is StockPickingResultModel&&(identical(other.length, length) || other.length == length)&&const DeepCollectionEquality().equals(other.records, records)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType,length,const DeepCollectionEquality().hash(records)); @override String toString() { return 'StockPickingResultModel(length: $length, records: $records)'; } } /// @nodoc abstract mixin class $StockPickingResultModelCopyWith<$Res> { factory $StockPickingResultModelCopyWith(StockPickingResultModel value, $Res Function(StockPickingResultModel) _then) = _$StockPickingResultModelCopyWithImpl; @useResult $Res call({ int? length, List? records }); } /// @nodoc class _$StockPickingResultModelCopyWithImpl<$Res> implements $StockPickingResultModelCopyWith<$Res> { _$StockPickingResultModelCopyWithImpl(this._self, this._then); final StockPickingResultModel _self; final $Res Function(StockPickingResultModel) _then; /// Create a copy of StockPickingResultModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? length = freezed,Object? records = freezed,}) { return _then(_self.copyWith( length: freezed == length ? _self.length : length // ignore: cast_nullable_to_non_nullable as int?,records: freezed == records ? _self.records : records // ignore: cast_nullable_to_non_nullable as List?, )); } } /// @nodoc @JsonSerializable() class _StockPickingResultModel implements StockPickingResultModel { const _StockPickingResultModel({this.length, final List? records}): _records = records; factory _StockPickingResultModel.fromJson(Map json) => _$StockPickingResultModelFromJson(json); @override final int? length; final List? _records; @override List? get records { final value = _records; if (value == null) return null; if (_records is EqualUnmodifiableListView) return _records; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(value); } /// Create a copy of StockPickingResultModel /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$StockPickingResultModelCopyWith<_StockPickingResultModel> get copyWith => __$StockPickingResultModelCopyWithImpl<_StockPickingResultModel>(this, _$identity); @override Map toJson() { return _$StockPickingResultModelToJson(this, ); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _StockPickingResultModel&&(identical(other.length, length) || other.length == length)&&const DeepCollectionEquality().equals(other._records, _records)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType,length,const DeepCollectionEquality().hash(_records)); @override String toString() { return 'StockPickingResultModel(length: $length, records: $records)'; } } /// @nodoc abstract mixin class _$StockPickingResultModelCopyWith<$Res> implements $StockPickingResultModelCopyWith<$Res> { factory _$StockPickingResultModelCopyWith(_StockPickingResultModel value, $Res Function(_StockPickingResultModel) _then) = __$StockPickingResultModelCopyWithImpl; @override @useResult $Res call({ int? length, List? records }); } /// @nodoc class __$StockPickingResultModelCopyWithImpl<$Res> implements _$StockPickingResultModelCopyWith<$Res> { __$StockPickingResultModelCopyWithImpl(this._self, this._then); final _StockPickingResultModel _self; final $Res Function(_StockPickingResultModel) _then; /// Create a copy of StockPickingResultModel /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? length = freezed,Object? records = freezed,}) { return _then(_StockPickingResultModel( length: freezed == length ? _self.length : length // ignore: cast_nullable_to_non_nullable as int?,records: freezed == records ? _self._records : records // ignore: cast_nullable_to_non_nullable as List?, )); } } // dart format on