// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'delivery_note_response.dart';

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

class _$DeliveryNoteResponse extends DeliveryNoteResponse {
  @override
  final DeliveryNote note;

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

  _$DeliveryNoteResponse._({required this.note}) : super._();
  @override
  DeliveryNoteResponse rebuild(
          void Function(DeliveryNoteResponseBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is DeliveryNoteResponse && note == other.note;
  }

  @override
  int get hashCode {
    var _$hash = 0;
    _$hash = $jc(_$hash, note.hashCode);
    _$hash = $jf(_$hash);
    return _$hash;
  }

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'DeliveryNoteResponse')
          ..add('note', note))
        .toString();
  }
}

class DeliveryNoteResponseBuilder
    implements Builder<DeliveryNoteResponse, DeliveryNoteResponseBuilder> {
  _$DeliveryNoteResponse? _$v;

  DeliveryNoteBuilder? _note;
  DeliveryNoteBuilder get note => _$this._note ??= DeliveryNoteBuilder();
  set note(DeliveryNoteBuilder? note) => _$this._note = note;

  DeliveryNoteResponseBuilder() {
    DeliveryNoteResponse._defaults(this);
  }

  DeliveryNoteResponseBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _note = $v.note.toBuilder();
      _$v = null;
    }
    return this;
  }

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

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

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

  _$DeliveryNoteResponse _build() {
    _$DeliveryNoteResponse _$result;
    try {
      _$result = _$v ??
          _$DeliveryNoteResponse._(
            note: note.build(),
          );
    } catch (_) {
      late String _$failedField;
      try {
        _$failedField = 'note';
        note.build();
      } catch (e) {
        throw BuiltValueNestedFieldError(
            r'DeliveryNoteResponse', _$failedField, e.toString());
      }
      rethrow;
    }
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
