// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'article.dart';

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

class _$Article extends Article {
  @override
  final String articleNumber;
  @override
  final String? defaultWarehouseId;
  @override
  final String id;
  @override
  final String name;
  @override
  final bool scannable;

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

  _$Article._(
      {required this.articleNumber,
      this.defaultWarehouseId,
      required this.id,
      required this.name,
      required this.scannable})
      : super._();
  @override
  Article rebuild(void Function(ArticleBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is Article &&
        articleNumber == other.articleNumber &&
        defaultWarehouseId == other.defaultWarehouseId &&
        id == other.id &&
        name == other.name &&
        scannable == other.scannable;
  }

  @override
  int get hashCode {
    var _$hash = 0;
    _$hash = $jc(_$hash, articleNumber.hashCode);
    _$hash = $jc(_$hash, defaultWarehouseId.hashCode);
    _$hash = $jc(_$hash, id.hashCode);
    _$hash = $jc(_$hash, name.hashCode);
    _$hash = $jc(_$hash, scannable.hashCode);
    _$hash = $jf(_$hash);
    return _$hash;
  }

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'Article')
          ..add('articleNumber', articleNumber)
          ..add('defaultWarehouseId', defaultWarehouseId)
          ..add('id', id)
          ..add('name', name)
          ..add('scannable', scannable))
        .toString();
  }
}

class ArticleBuilder implements Builder<Article, ArticleBuilder> {
  _$Article? _$v;

  String? _articleNumber;
  String? get articleNumber => _$this._articleNumber;
  set articleNumber(String? articleNumber) =>
      _$this._articleNumber = articleNumber;

  String? _defaultWarehouseId;
  String? get defaultWarehouseId => _$this._defaultWarehouseId;
  set defaultWarehouseId(String? defaultWarehouseId) =>
      _$this._defaultWarehouseId = defaultWarehouseId;

  String? _id;
  String? get id => _$this._id;
  set id(String? id) => _$this._id = id;

  String? _name;
  String? get name => _$this._name;
  set name(String? name) => _$this._name = name;

  bool? _scannable;
  bool? get scannable => _$this._scannable;
  set scannable(bool? scannable) => _$this._scannable = scannable;

  ArticleBuilder() {
    Article._defaults(this);
  }

  ArticleBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _articleNumber = $v.articleNumber;
      _defaultWarehouseId = $v.defaultWarehouseId;
      _id = $v.id;
      _name = $v.name;
      _scannable = $v.scannable;
      _$v = null;
    }
    return this;
  }

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

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

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

  _$Article _build() {
    final _$result = _$v ??
        _$Article._(
          articleNumber: BuiltValueNullFieldError.checkNotNull(
              articleNumber, r'Article', 'articleNumber'),
          defaultWarehouseId: defaultWarehouseId,
          id: BuiltValueNullFieldError.checkNotNull(id, r'Article', 'id'),
          name: BuiltValueNullFieldError.checkNotNull(name, r'Article', 'name'),
          scannable: BuiltValueNullFieldError.checkNotNull(
              scannable, r'Article', 'scannable'),
        );
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
