// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'delivery.dart';

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

abstract class DeliveryBuilder {
  void replace(Delivery other);
  void update(void Function(DeliveryBuilder) updates);
  String? get assignedCarId;
  set assignedCarId(String? assignedCarId);

  ListBuilder<String> get contactPersonIds;
  set contactPersonIds(ListBuilder<String>? contactPersonIds);

  String? get customerId;
  set customerId(String? customerId);

  AddressBuilder get deliveryAddressSnapshot;
  set deliveryAddressSnapshot(AddressBuilder? deliveryAddressSnapshot);

  String? get desiredTime;
  set desiredTime(String? desiredTime);

  int? get erpBelegartId;
  set erpBelegartId(int? erpBelegartId);

  String? get erpBelegnummer;
  set erpBelegnummer(String? erpBelegnummer);

  String? get id;
  set id(String? id);

  String? get paymentMethodId;
  set paymentMethodId(String? paymentMethodId);

  double? get prepaidAmount;
  set prepaidAmount(double? prepaidAmount);

  String? get specialAgreements;
  set specialAgreements(String? specialAgreements);

  DeliveryState? get state;
  set state(DeliveryState? state);

  String? get stateReason;
  set stateReason(String? stateReason);

  String? get tourId;
  set tourId(String? tourId);
}

class _$$Delivery extends $Delivery {
  @override
  final String? assignedCarId;
  @override
  final BuiltList<String> contactPersonIds;
  @override
  final String customerId;
  @override
  final Address deliveryAddressSnapshot;
  @override
  final String? desiredTime;
  @override
  final int erpBelegartId;
  @override
  final String erpBelegnummer;
  @override
  final String id;
  @override
  final String paymentMethodId;
  @override
  final double prepaidAmount;
  @override
  final String? specialAgreements;
  @override
  final DeliveryState state;
  @override
  final String? stateReason;
  @override
  final String tourId;

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

  _$$Delivery._(
      {this.assignedCarId,
      required this.contactPersonIds,
      required this.customerId,
      required this.deliveryAddressSnapshot,
      this.desiredTime,
      required this.erpBelegartId,
      required this.erpBelegnummer,
      required this.id,
      required this.paymentMethodId,
      required this.prepaidAmount,
      this.specialAgreements,
      required this.state,
      this.stateReason,
      required this.tourId})
      : super._();
  @override
  $Delivery rebuild(void Function($DeliveryBuilder) updates) =>
      (toBuilder()..update(updates)).build();

  @override
  $DeliveryBuilder toBuilder() => $DeliveryBuilder()..replace(this);

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is $Delivery &&
        assignedCarId == other.assignedCarId &&
        contactPersonIds == other.contactPersonIds &&
        customerId == other.customerId &&
        deliveryAddressSnapshot == other.deliveryAddressSnapshot &&
        desiredTime == other.desiredTime &&
        erpBelegartId == other.erpBelegartId &&
        erpBelegnummer == other.erpBelegnummer &&
        id == other.id &&
        paymentMethodId == other.paymentMethodId &&
        prepaidAmount == other.prepaidAmount &&
        specialAgreements == other.specialAgreements &&
        state == other.state &&
        stateReason == other.stateReason &&
        tourId == other.tourId;
  }

  @override
  int get hashCode {
    var _$hash = 0;
    _$hash = $jc(_$hash, assignedCarId.hashCode);
    _$hash = $jc(_$hash, contactPersonIds.hashCode);
    _$hash = $jc(_$hash, customerId.hashCode);
    _$hash = $jc(_$hash, deliveryAddressSnapshot.hashCode);
    _$hash = $jc(_$hash, desiredTime.hashCode);
    _$hash = $jc(_$hash, erpBelegartId.hashCode);
    _$hash = $jc(_$hash, erpBelegnummer.hashCode);
    _$hash = $jc(_$hash, id.hashCode);
    _$hash = $jc(_$hash, paymentMethodId.hashCode);
    _$hash = $jc(_$hash, prepaidAmount.hashCode);
    _$hash = $jc(_$hash, specialAgreements.hashCode);
    _$hash = $jc(_$hash, state.hashCode);
    _$hash = $jc(_$hash, stateReason.hashCode);
    _$hash = $jc(_$hash, tourId.hashCode);
    _$hash = $jf(_$hash);
    return _$hash;
  }

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'$Delivery')
          ..add('assignedCarId', assignedCarId)
          ..add('contactPersonIds', contactPersonIds)
          ..add('customerId', customerId)
          ..add('deliveryAddressSnapshot', deliveryAddressSnapshot)
          ..add('desiredTime', desiredTime)
          ..add('erpBelegartId', erpBelegartId)
          ..add('erpBelegnummer', erpBelegnummer)
          ..add('id', id)
          ..add('paymentMethodId', paymentMethodId)
          ..add('prepaidAmount', prepaidAmount)
          ..add('specialAgreements', specialAgreements)
          ..add('state', state)
          ..add('stateReason', stateReason)
          ..add('tourId', tourId))
        .toString();
  }
}

class $DeliveryBuilder
    implements Builder<$Delivery, $DeliveryBuilder>, DeliveryBuilder {
  _$$Delivery? _$v;

  String? _assignedCarId;
  String? get assignedCarId => _$this._assignedCarId;
  set assignedCarId(covariant String? assignedCarId) =>
      _$this._assignedCarId = assignedCarId;

  ListBuilder<String>? _contactPersonIds;
  ListBuilder<String> get contactPersonIds =>
      _$this._contactPersonIds ??= ListBuilder<String>();
  set contactPersonIds(covariant ListBuilder<String>? contactPersonIds) =>
      _$this._contactPersonIds = contactPersonIds;

  String? _customerId;
  String? get customerId => _$this._customerId;
  set customerId(covariant String? customerId) =>
      _$this._customerId = customerId;

  AddressBuilder? _deliveryAddressSnapshot;
  AddressBuilder get deliveryAddressSnapshot =>
      _$this._deliveryAddressSnapshot ??= AddressBuilder();
  set deliveryAddressSnapshot(
          covariant AddressBuilder? deliveryAddressSnapshot) =>
      _$this._deliveryAddressSnapshot = deliveryAddressSnapshot;

  String? _desiredTime;
  String? get desiredTime => _$this._desiredTime;
  set desiredTime(covariant String? desiredTime) =>
      _$this._desiredTime = desiredTime;

  int? _erpBelegartId;
  int? get erpBelegartId => _$this._erpBelegartId;
  set erpBelegartId(covariant int? erpBelegartId) =>
      _$this._erpBelegartId = erpBelegartId;

  String? _erpBelegnummer;
  String? get erpBelegnummer => _$this._erpBelegnummer;
  set erpBelegnummer(covariant String? erpBelegnummer) =>
      _$this._erpBelegnummer = erpBelegnummer;

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

  String? _paymentMethodId;
  String? get paymentMethodId => _$this._paymentMethodId;
  set paymentMethodId(covariant String? paymentMethodId) =>
      _$this._paymentMethodId = paymentMethodId;

  double? _prepaidAmount;
  double? get prepaidAmount => _$this._prepaidAmount;
  set prepaidAmount(covariant double? prepaidAmount) =>
      _$this._prepaidAmount = prepaidAmount;

  String? _specialAgreements;
  String? get specialAgreements => _$this._specialAgreements;
  set specialAgreements(covariant String? specialAgreements) =>
      _$this._specialAgreements = specialAgreements;

  DeliveryState? _state;
  DeliveryState? get state => _$this._state;
  set state(covariant DeliveryState? state) => _$this._state = state;

  String? _stateReason;
  String? get stateReason => _$this._stateReason;
  set stateReason(covariant String? stateReason) =>
      _$this._stateReason = stateReason;

  String? _tourId;
  String? get tourId => _$this._tourId;
  set tourId(covariant String? tourId) => _$this._tourId = tourId;

  $DeliveryBuilder() {
    $Delivery._defaults(this);
  }

  $DeliveryBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _assignedCarId = $v.assignedCarId;
      _contactPersonIds = $v.contactPersonIds.toBuilder();
      _customerId = $v.customerId;
      _deliveryAddressSnapshot = $v.deliveryAddressSnapshot.toBuilder();
      _desiredTime = $v.desiredTime;
      _erpBelegartId = $v.erpBelegartId;
      _erpBelegnummer = $v.erpBelegnummer;
      _id = $v.id;
      _paymentMethodId = $v.paymentMethodId;
      _prepaidAmount = $v.prepaidAmount;
      _specialAgreements = $v.specialAgreements;
      _state = $v.state;
      _stateReason = $v.stateReason;
      _tourId = $v.tourId;
      _$v = null;
    }
    return this;
  }

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

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

  @override
  $Delivery build() => _build();

  _$$Delivery _build() {
    _$$Delivery _$result;
    try {
      _$result = _$v ??
          _$$Delivery._(
            assignedCarId: assignedCarId,
            contactPersonIds: contactPersonIds.build(),
            customerId: BuiltValueNullFieldError.checkNotNull(
                customerId, r'$Delivery', 'customerId'),
            deliveryAddressSnapshot: deliveryAddressSnapshot.build(),
            desiredTime: desiredTime,
            erpBelegartId: BuiltValueNullFieldError.checkNotNull(
                erpBelegartId, r'$Delivery', 'erpBelegartId'),
            erpBelegnummer: BuiltValueNullFieldError.checkNotNull(
                erpBelegnummer, r'$Delivery', 'erpBelegnummer'),
            id: BuiltValueNullFieldError.checkNotNull(id, r'$Delivery', 'id'),
            paymentMethodId: BuiltValueNullFieldError.checkNotNull(
                paymentMethodId, r'$Delivery', 'paymentMethodId'),
            prepaidAmount: BuiltValueNullFieldError.checkNotNull(
                prepaidAmount, r'$Delivery', 'prepaidAmount'),
            specialAgreements: specialAgreements,
            state: BuiltValueNullFieldError.checkNotNull(
                state, r'$Delivery', 'state'),
            stateReason: stateReason,
            tourId: BuiltValueNullFieldError.checkNotNull(
                tourId, r'$Delivery', 'tourId'),
          );
    } catch (_) {
      late String _$failedField;
      try {
        _$failedField = 'contactPersonIds';
        contactPersonIds.build();

        _$failedField = 'deliveryAddressSnapshot';
        deliveryAddressSnapshot.build();
      } catch (e) {
        throw BuiltValueNestedFieldError(
            r'$Delivery', _$failedField, e.toString());
      }
      rethrow;
    }
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
