// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'create_delivery_note_request.dart';

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

class _$CreateDeliveryNoteRequest extends CreateDeliveryNoteRequest {
  @override
  final String? authorCarId;
  @override
  final String? creditDeliveryItemId;
  @override
  final String? imageAttachment;
  @override
  final bool? isAmountCreditNote;
  @override
  final String? text;

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

  _$CreateDeliveryNoteRequest._(
      {this.authorCarId,
      this.creditDeliveryItemId,
      this.imageAttachment,
      this.isAmountCreditNote,
      this.text})
      : super._();
  @override
  CreateDeliveryNoteRequest rebuild(
          void Function(CreateDeliveryNoteRequestBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is CreateDeliveryNoteRequest &&
        authorCarId == other.authorCarId &&
        creditDeliveryItemId == other.creditDeliveryItemId &&
        imageAttachment == other.imageAttachment &&
        isAmountCreditNote == other.isAmountCreditNote &&
        text == other.text;
  }

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

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'CreateDeliveryNoteRequest')
          ..add('authorCarId', authorCarId)
          ..add('creditDeliveryItemId', creditDeliveryItemId)
          ..add('imageAttachment', imageAttachment)
          ..add('isAmountCreditNote', isAmountCreditNote)
          ..add('text', text))
        .toString();
  }
}

class CreateDeliveryNoteRequestBuilder
    implements
        Builder<CreateDeliveryNoteRequest, CreateDeliveryNoteRequestBuilder> {
  _$CreateDeliveryNoteRequest? _$v;

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

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

  String? _imageAttachment;
  String? get imageAttachment => _$this._imageAttachment;
  set imageAttachment(String? imageAttachment) =>
      _$this._imageAttachment = imageAttachment;

  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;

  CreateDeliveryNoteRequestBuilder() {
    CreateDeliveryNoteRequest._defaults(this);
  }

  CreateDeliveryNoteRequestBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _authorCarId = $v.authorCarId;
      _creditDeliveryItemId = $v.creditDeliveryItemId;
      _imageAttachment = $v.imageAttachment;
      _isAmountCreditNote = $v.isAmountCreditNote;
      _text = $v.text;
      _$v = null;
    }
    return this;
  }

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

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

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

  _$CreateDeliveryNoteRequest _build() {
    final _$result = _$v ??
        _$CreateDeliveryNoteRequest._(
          authorCarId: authorCarId,
          creditDeliveryItemId: creditDeliveryItemId,
          imageAttachment: imageAttachment,
          isAmountCreditNote: isAmountCreditNote,
          text: text,
        );
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
