// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'scan_state.dart';

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

class _$ScanState extends ScanState {
  @override
  final int creditedQuantity;
  @override
  final String? heldReason;
  @override
  final DateTime lastUpdatedAt;
  @override
  final int scannedQuantity;
  @override
  final ScanStatus status;

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

  _$ScanState._(
      {required this.creditedQuantity,
      this.heldReason,
      required this.lastUpdatedAt,
      required this.scannedQuantity,
      required this.status})
      : super._();
  @override
  ScanState rebuild(void Function(ScanStateBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is ScanState &&
        creditedQuantity == other.creditedQuantity &&
        heldReason == other.heldReason &&
        lastUpdatedAt == other.lastUpdatedAt &&
        scannedQuantity == other.scannedQuantity &&
        status == other.status;
  }

  @override
  int get hashCode {
    var _$hash = 0;
    _$hash = $jc(_$hash, creditedQuantity.hashCode);
    _$hash = $jc(_$hash, heldReason.hashCode);
    _$hash = $jc(_$hash, lastUpdatedAt.hashCode);
    _$hash = $jc(_$hash, scannedQuantity.hashCode);
    _$hash = $jc(_$hash, status.hashCode);
    _$hash = $jf(_$hash);
    return _$hash;
  }

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'ScanState')
          ..add('creditedQuantity', creditedQuantity)
          ..add('heldReason', heldReason)
          ..add('lastUpdatedAt', lastUpdatedAt)
          ..add('scannedQuantity', scannedQuantity)
          ..add('status', status))
        .toString();
  }
}

class ScanStateBuilder implements Builder<ScanState, ScanStateBuilder> {
  _$ScanState? _$v;

  int? _creditedQuantity;
  int? get creditedQuantity => _$this._creditedQuantity;
  set creditedQuantity(int? creditedQuantity) =>
      _$this._creditedQuantity = creditedQuantity;

  String? _heldReason;
  String? get heldReason => _$this._heldReason;
  set heldReason(String? heldReason) => _$this._heldReason = heldReason;

  DateTime? _lastUpdatedAt;
  DateTime? get lastUpdatedAt => _$this._lastUpdatedAt;
  set lastUpdatedAt(DateTime? lastUpdatedAt) =>
      _$this._lastUpdatedAt = lastUpdatedAt;

  int? _scannedQuantity;
  int? get scannedQuantity => _$this._scannedQuantity;
  set scannedQuantity(int? scannedQuantity) =>
      _$this._scannedQuantity = scannedQuantity;

  ScanStatus? _status;
  ScanStatus? get status => _$this._status;
  set status(ScanStatus? status) => _$this._status = status;

  ScanStateBuilder() {
    ScanState._defaults(this);
  }

  ScanStateBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _creditedQuantity = $v.creditedQuantity;
      _heldReason = $v.heldReason;
      _lastUpdatedAt = $v.lastUpdatedAt;
      _scannedQuantity = $v.scannedQuantity;
      _status = $v.status;
      _$v = null;
    }
    return this;
  }

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

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

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

  _$ScanState _build() {
    final _$result = _$v ??
        _$ScanState._(
          creditedQuantity: BuiltValueNullFieldError.checkNotNull(
              creditedQuantity, r'ScanState', 'creditedQuantity'),
          heldReason: heldReason,
          lastUpdatedAt: BuiltValueNullFieldError.checkNotNull(
              lastUpdatedAt, r'ScanState', 'lastUpdatedAt'),
          scannedQuantity: BuiltValueNullFieldError.checkNotNull(
              scannedQuantity, r'ScanState', 'scannedQuantity'),
          status: BuiltValueNullFieldError.checkNotNull(
              status, r'ScanState', 'status'),
        );
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
