// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'delivery_item.dart';

// **************************************************************************
// BuiltValueGenerator
// **************************************************************************

class _$DeliveryItem extends DeliveryItem {
  @override
  final String articleId;
  @override
  final int belegzeilenNr;
  @override
  final String deliveryId;
  @override
  final String id;
  @override
  final String? komponentenArtikelNr;
  @override
  final String? parentArtikelNr;
  @override
  final int requiredQuantity;
  @override
  final ScanState scanState;
  @override
  final double unitPrice;
  @override
  final String warehouseId;

  factory _$DeliveryItem([void Function(DeliveryItemBuilder)? updates]) =>
      (DeliveryItemBuilder()..update(updates))._build();

  _$DeliveryItem._(
      {required this.articleId,
      required this.belegzeilenNr,
      required this.deliveryId,
      required this.id,
      this.komponentenArtikelNr,
      this.parentArtikelNr,
      required this.requiredQuantity,
      required this.scanState,
      required this.unitPrice,
      required this.warehouseId})
      : super._();
  @override
  DeliveryItem rebuild(void Function(DeliveryItemBuilder) updates) =>
      (toBuilder()..update(updates)).build();

  @override
  DeliveryItemBuilder toBuilder() => DeliveryItemBuilder()..replace(this);

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is DeliveryItem &&
        articleId == other.articleId &&
        belegzeilenNr == other.belegzeilenNr &&
        deliveryId == other.deliveryId &&
        id == other.id &&
        komponentenArtikelNr == other.komponentenArtikelNr &&
        parentArtikelNr == other.parentArtikelNr &&
        requiredQuantity == other.requiredQuantity &&
        scanState == other.scanState &&
        unitPrice == other.unitPrice &&
        warehouseId == other.warehouseId;
  }

  @override
  int get hashCode {
    var _$hash = 0;
    _$hash = $jc(_$hash, articleId.hashCode);
    _$hash = $jc(_$hash, belegzeilenNr.hashCode);
    _$hash = $jc(_$hash, deliveryId.hashCode);
    _$hash = $jc(_$hash, id.hashCode);
    _$hash = $jc(_$hash, komponentenArtikelNr.hashCode);
    _$hash = $jc(_$hash, parentArtikelNr.hashCode);
    _$hash = $jc(_$hash, requiredQuantity.hashCode);
    _$hash = $jc(_$hash, scanState.hashCode);
    _$hash = $jc(_$hash, unitPrice.hashCode);
    _$hash = $jc(_$hash, warehouseId.hashCode);
    _$hash = $jf(_$hash);
    return _$hash;
  }

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'DeliveryItem')
          ..add('articleId', articleId)
          ..add('belegzeilenNr', belegzeilenNr)
          ..add('deliveryId', deliveryId)
          ..add('id', id)
          ..add('komponentenArtikelNr', komponentenArtikelNr)
          ..add('parentArtikelNr', parentArtikelNr)
          ..add('requiredQuantity', requiredQuantity)
          ..add('scanState', scanState)
          ..add('unitPrice', unitPrice)
          ..add('warehouseId', warehouseId))
        .toString();
  }
}

class DeliveryItemBuilder
    implements Builder<DeliveryItem, DeliveryItemBuilder> {
  _$DeliveryItem? _$v;

  String? _articleId;
  String? get articleId => _$this._articleId;
  set articleId(String? articleId) => _$this._articleId = articleId;

  int? _belegzeilenNr;
  int? get belegzeilenNr => _$this._belegzeilenNr;
  set belegzeilenNr(int? belegzeilenNr) =>
      _$this._belegzeilenNr = belegzeilenNr;

  String? _deliveryId;
  String? get deliveryId => _$this._deliveryId;
  set deliveryId(String? deliveryId) => _$this._deliveryId = deliveryId;

  String? _id;
  String? get id => _$this._id;
  set id(String? id) => _$this._id = id;

  String? _komponentenArtikelNr;
  String? get komponentenArtikelNr => _$this._komponentenArtikelNr;
  set komponentenArtikelNr(String? komponentenArtikelNr) =>
      _$this._komponentenArtikelNr = komponentenArtikelNr;

  String? _parentArtikelNr;
  String? get parentArtikelNr => _$this._parentArtikelNr;
  set parentArtikelNr(String? parentArtikelNr) =>
      _$this._parentArtikelNr = parentArtikelNr;

  int? _requiredQuantity;
  int? get requiredQuantity => _$this._requiredQuantity;
  set requiredQuantity(int? requiredQuantity) =>
      _$this._requiredQuantity = requiredQuantity;

  ScanStateBuilder? _scanState;
  ScanStateBuilder get scanState => _$this._scanState ??= ScanStateBuilder();
  set scanState(ScanStateBuilder? scanState) => _$this._scanState = scanState;

  double? _unitPrice;
  double? get unitPrice => _$this._unitPrice;
  set unitPrice(double? unitPrice) => _$this._unitPrice = unitPrice;

  String? _warehouseId;
  String? get warehouseId => _$this._warehouseId;
  set warehouseId(String? warehouseId) => _$this._warehouseId = warehouseId;

  DeliveryItemBuilder() {
    DeliveryItem._defaults(this);
  }

  DeliveryItemBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _articleId = $v.articleId;
      _belegzeilenNr = $v.belegzeilenNr;
      _deliveryId = $v.deliveryId;
      _id = $v.id;
      _komponentenArtikelNr = $v.komponentenArtikelNr;
      _parentArtikelNr = $v.parentArtikelNr;
      _requiredQuantity = $v.requiredQuantity;
      _scanState = $v.scanState.toBuilder();
      _unitPrice = $v.unitPrice;
      _warehouseId = $v.warehouseId;
      _$v = null;
    }
    return this;
  }

  @override
  void replace(DeliveryItem other) {
    _$v = other as _$DeliveryItem;
  }

  @override
  void update(void Function(DeliveryItemBuilder)? updates) {
    if (updates != null) updates(this);
  }

  @override
  DeliveryItem build() => _build();

  _$DeliveryItem _build() {
    _$DeliveryItem _$result;
    try {
      _$result = _$v ??
          _$DeliveryItem._(
            articleId: BuiltValueNullFieldError.checkNotNull(
                articleId, r'DeliveryItem', 'articleId'),
            belegzeilenNr: BuiltValueNullFieldError.checkNotNull(
                belegzeilenNr, r'DeliveryItem', 'belegzeilenNr'),
            deliveryId: BuiltValueNullFieldError.checkNotNull(
                deliveryId, r'DeliveryItem', 'deliveryId'),
            id: BuiltValueNullFieldError.checkNotNull(
                id, r'DeliveryItem', 'id'),
            komponentenArtikelNr: komponentenArtikelNr,
            parentArtikelNr: parentArtikelNr,
            requiredQuantity: BuiltValueNullFieldError.checkNotNull(
                requiredQuantity, r'DeliveryItem', 'requiredQuantity'),
            scanState: scanState.build(),
            unitPrice: BuiltValueNullFieldError.checkNotNull(
                unitPrice, r'DeliveryItem', 'unitPrice'),
            warehouseId: BuiltValueNullFieldError.checkNotNull(
                warehouseId, r'DeliveryItem', 'warehouseId'),
          );
    } catch (_) {
      late String _$failedField;
      try {
        _$failedField = 'scanState';
        scanState.build();
      } catch (e) {
        throw BuiltValueNestedFieldError(
            r'DeliveryItem', _$failedField, e.toString());
      }
      rethrow;
    }
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
