// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'complete_delivery_acknowledgements.dart';

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

class _$CompleteDeliveryAcknowledgements
    extends CompleteDeliveryAcknowledgements {
  @override
  final BuiltList<String>? acknowledgedNoteIds;
  @override
  final String? authorCarId;
  @override
  final bool? notesAcknowledged;
  @override
  final bool? paymentCollected;
  @override
  final String? paymentMethodId;
  @override
  final bool receiptConfirmed;

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

  _$CompleteDeliveryAcknowledgements._(
      {this.acknowledgedNoteIds,
      this.authorCarId,
      this.notesAcknowledged,
      this.paymentCollected,
      this.paymentMethodId,
      required this.receiptConfirmed})
      : super._();
  @override
  CompleteDeliveryAcknowledgements rebuild(
          void Function(CompleteDeliveryAcknowledgementsBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is CompleteDeliveryAcknowledgements &&
        acknowledgedNoteIds == other.acknowledgedNoteIds &&
        authorCarId == other.authorCarId &&
        notesAcknowledged == other.notesAcknowledged &&
        paymentCollected == other.paymentCollected &&
        paymentMethodId == other.paymentMethodId &&
        receiptConfirmed == other.receiptConfirmed;
  }

  @override
  int get hashCode {
    var _$hash = 0;
    _$hash = $jc(_$hash, acknowledgedNoteIds.hashCode);
    _$hash = $jc(_$hash, authorCarId.hashCode);
    _$hash = $jc(_$hash, notesAcknowledged.hashCode);
    _$hash = $jc(_$hash, paymentCollected.hashCode);
    _$hash = $jc(_$hash, paymentMethodId.hashCode);
    _$hash = $jc(_$hash, receiptConfirmed.hashCode);
    _$hash = $jf(_$hash);
    return _$hash;
  }

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'CompleteDeliveryAcknowledgements')
          ..add('acknowledgedNoteIds', acknowledgedNoteIds)
          ..add('authorCarId', authorCarId)
          ..add('notesAcknowledged', notesAcknowledged)
          ..add('paymentCollected', paymentCollected)
          ..add('paymentMethodId', paymentMethodId)
          ..add('receiptConfirmed', receiptConfirmed))
        .toString();
  }
}

class CompleteDeliveryAcknowledgementsBuilder
    implements
        Builder<CompleteDeliveryAcknowledgements,
            CompleteDeliveryAcknowledgementsBuilder> {
  _$CompleteDeliveryAcknowledgements? _$v;

  ListBuilder<String>? _acknowledgedNoteIds;
  ListBuilder<String> get acknowledgedNoteIds =>
      _$this._acknowledgedNoteIds ??= ListBuilder<String>();
  set acknowledgedNoteIds(ListBuilder<String>? acknowledgedNoteIds) =>
      _$this._acknowledgedNoteIds = acknowledgedNoteIds;

  String? _authorCarId;
  String? get authorCarId => _$this._authorCarId;
  set authorCarId(String? authorCarId) => _$this._authorCarId = authorCarId;

  bool? _notesAcknowledged;
  bool? get notesAcknowledged => _$this._notesAcknowledged;
  set notesAcknowledged(bool? notesAcknowledged) =>
      _$this._notesAcknowledged = notesAcknowledged;

  bool? _paymentCollected;
  bool? get paymentCollected => _$this._paymentCollected;
  set paymentCollected(bool? paymentCollected) =>
      _$this._paymentCollected = paymentCollected;

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

  bool? _receiptConfirmed;
  bool? get receiptConfirmed => _$this._receiptConfirmed;
  set receiptConfirmed(bool? receiptConfirmed) =>
      _$this._receiptConfirmed = receiptConfirmed;

  CompleteDeliveryAcknowledgementsBuilder() {
    CompleteDeliveryAcknowledgements._defaults(this);
  }

  CompleteDeliveryAcknowledgementsBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _acknowledgedNoteIds = $v.acknowledgedNoteIds?.toBuilder();
      _authorCarId = $v.authorCarId;
      _notesAcknowledged = $v.notesAcknowledged;
      _paymentCollected = $v.paymentCollected;
      _paymentMethodId = $v.paymentMethodId;
      _receiptConfirmed = $v.receiptConfirmed;
      _$v = null;
    }
    return this;
  }

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

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

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

  _$CompleteDeliveryAcknowledgements _build() {
    _$CompleteDeliveryAcknowledgements _$result;
    try {
      _$result = _$v ??
          _$CompleteDeliveryAcknowledgements._(
            acknowledgedNoteIds: _acknowledgedNoteIds?.build(),
            authorCarId: authorCarId,
            notesAcknowledged: notesAcknowledged,
            paymentCollected: paymentCollected,
            paymentMethodId: paymentMethodId,
            receiptConfirmed: BuiltValueNullFieldError.checkNotNull(
                receiptConfirmed,
                r'CompleteDeliveryAcknowledgements',
                'receiptConfirmed'),
          );
    } catch (_) {
      late String _$failedField;
      try {
        _$failedField = 'acknowledgedNoteIds';
        _acknowledgedNoteIds?.build();
      } catch (e) {
        throw BuiltValueNestedFieldError(
            r'CompleteDeliveryAcknowledgements', _$failedField, e.toString());
      }
      rethrow;
    }
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
