// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'delivery_note.dart';

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

class _$DeliveryNote extends DeliveryNote {
  @override
  final String? authorCarId;
  @override
  final int authorPersonalnummer;
  @override
  final DateTime createdAt;
  @override
  final String? creditDeliveryItemId;
  @override
  final String deliveryId;
  @override
  final String id;
  @override
  final String? imageAttachment;
  @override
  final bool? imageAttachmentDeleted;
  @override
  final bool isAmountCreditNote;
  @override
  final String? text;

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

  _$DeliveryNote._(
      {this.authorCarId,
      required this.authorPersonalnummer,
      required this.createdAt,
      this.creditDeliveryItemId,
      required this.deliveryId,
      required this.id,
      this.imageAttachment,
      this.imageAttachmentDeleted,
      required this.isAmountCreditNote,
      this.text})
      : super._();
  @override
  DeliveryNote rebuild(void Function(DeliveryNoteBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is DeliveryNote &&
        authorCarId == other.authorCarId &&
        authorPersonalnummer == other.authorPersonalnummer &&
        createdAt == other.createdAt &&
        creditDeliveryItemId == other.creditDeliveryItemId &&
        deliveryId == other.deliveryId &&
        id == other.id &&
        imageAttachment == other.imageAttachment &&
        imageAttachmentDeleted == other.imageAttachmentDeleted &&
        isAmountCreditNote == other.isAmountCreditNote &&
        text == other.text;
  }

  @override
  int get hashCode {
    var _$hash = 0;
    _$hash = $jc(_$hash, authorCarId.hashCode);
    _$hash = $jc(_$hash, authorPersonalnummer.hashCode);
    _$hash = $jc(_$hash, createdAt.hashCode);
    _$hash = $jc(_$hash, creditDeliveryItemId.hashCode);
    _$hash = $jc(_$hash, deliveryId.hashCode);
    _$hash = $jc(_$hash, id.hashCode);
    _$hash = $jc(_$hash, imageAttachment.hashCode);
    _$hash = $jc(_$hash, imageAttachmentDeleted.hashCode);
    _$hash = $jc(_$hash, isAmountCreditNote.hashCode);
    _$hash = $jc(_$hash, text.hashCode);
    _$hash = $jf(_$hash);
    return _$hash;
  }

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'DeliveryNote')
          ..add('authorCarId', authorCarId)
          ..add('authorPersonalnummer', authorPersonalnummer)
          ..add('createdAt', createdAt)
          ..add('creditDeliveryItemId', creditDeliveryItemId)
          ..add('deliveryId', deliveryId)
          ..add('id', id)
          ..add('imageAttachment', imageAttachment)
          ..add('imageAttachmentDeleted', imageAttachmentDeleted)
          ..add('isAmountCreditNote', isAmountCreditNote)
          ..add('text', text))
        .toString();
  }
}

class DeliveryNoteBuilder
    implements Builder<DeliveryNote, DeliveryNoteBuilder> {
  _$DeliveryNote? _$v;

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

  int? _authorPersonalnummer;
  int? get authorPersonalnummer => _$this._authorPersonalnummer;
  set authorPersonalnummer(int? authorPersonalnummer) =>
      _$this._authorPersonalnummer = authorPersonalnummer;

  DateTime? _createdAt;
  DateTime? get createdAt => _$this._createdAt;
  set createdAt(DateTime? createdAt) => _$this._createdAt = createdAt;

  String? _creditDeliveryItemId;
  String? get creditDeliveryItemId => _$this._creditDeliveryItemId;
  set creditDeliveryItemId(String? creditDeliveryItemId) =>
      _$this._creditDeliveryItemId = creditDeliveryItemId;

  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? _imageAttachment;
  String? get imageAttachment => _$this._imageAttachment;
  set imageAttachment(String? imageAttachment) =>
      _$this._imageAttachment = imageAttachment;

  bool? _imageAttachmentDeleted;
  bool? get imageAttachmentDeleted => _$this._imageAttachmentDeleted;
  set imageAttachmentDeleted(bool? imageAttachmentDeleted) =>
      _$this._imageAttachmentDeleted = imageAttachmentDeleted;

  bool? _isAmountCreditNote;
  bool? get isAmountCreditNote => _$this._isAmountCreditNote;
  set isAmountCreditNote(bool? isAmountCreditNote) =>
      _$this._isAmountCreditNote = isAmountCreditNote;

  String? _text;
  String? get text => _$this._text;
  set text(String? text) => _$this._text = text;

  DeliveryNoteBuilder() {
    DeliveryNote._defaults(this);
  }

  DeliveryNoteBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _authorCarId = $v.authorCarId;
      _authorPersonalnummer = $v.authorPersonalnummer;
      _createdAt = $v.createdAt;
      _creditDeliveryItemId = $v.creditDeliveryItemId;
      _deliveryId = $v.deliveryId;
      _id = $v.id;
      _imageAttachment = $v.imageAttachment;
      _imageAttachmentDeleted = $v.imageAttachmentDeleted;
      _isAmountCreditNote = $v.isAmountCreditNote;
      _text = $v.text;
      _$v = null;
    }
    return this;
  }

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

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

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

  _$DeliveryNote _build() {
    final _$result = _$v ??
        _$DeliveryNote._(
          authorCarId: authorCarId,
          authorPersonalnummer: BuiltValueNullFieldError.checkNotNull(
              authorPersonalnummer, r'DeliveryNote', 'authorPersonalnummer'),
          createdAt: BuiltValueNullFieldError.checkNotNull(
              createdAt, r'DeliveryNote', 'createdAt'),
          creditDeliveryItemId: creditDeliveryItemId,
          deliveryId: BuiltValueNullFieldError.checkNotNull(
              deliveryId, r'DeliveryNote', 'deliveryId'),
          id: BuiltValueNullFieldError.checkNotNull(id, r'DeliveryNote', 'id'),
          imageAttachment: imageAttachment,
          imageAttachmentDeleted: imageAttachmentDeleted,
          isAmountCreditNote: BuiltValueNullFieldError.checkNotNull(
              isAmountCreditNote, r'DeliveryNote', 'isAmountCreditNote'),
          text: text,
        );
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
