// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'warehouse.dart';

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

class _$Warehouse extends Warehouse {
  @override
  final String code;
  @override
  final String id;
  @override
  final bool isStandard;
  @override
  final String name;

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

  _$Warehouse._(
      {required this.code,
      required this.id,
      required this.isStandard,
      required this.name})
      : super._();
  @override
  Warehouse rebuild(void Function(WarehouseBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is Warehouse &&
        code == other.code &&
        id == other.id &&
        isStandard == other.isStandard &&
        name == other.name;
  }

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

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'Warehouse')
          ..add('code', code)
          ..add('id', id)
          ..add('isStandard', isStandard)
          ..add('name', name))
        .toString();
  }
}

class WarehouseBuilder implements Builder<Warehouse, WarehouseBuilder> {
  _$Warehouse? _$v;

  String? _code;
  String? get code => _$this._code;
  set code(String? code) => _$this._code = code;

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

  bool? _isStandard;
  bool? get isStandard => _$this._isStandard;
  set isStandard(bool? isStandard) => _$this._isStandard = isStandard;

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

  WarehouseBuilder() {
    Warehouse._defaults(this);
  }

  WarehouseBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _code = $v.code;
      _id = $v.id;
      _isStandard = $v.isStandard;
      _name = $v.name;
      _$v = null;
    }
    return this;
  }

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

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

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

  _$Warehouse _build() {
    final _$result = _$v ??
        _$Warehouse._(
          code:
              BuiltValueNullFieldError.checkNotNull(code, r'Warehouse', 'code'),
          id: BuiltValueNullFieldError.checkNotNull(id, r'Warehouse', 'id'),
          isStandard: BuiltValueNullFieldError.checkNotNull(
              isStandard, r'Warehouse', 'isStandard'),
          name:
              BuiltValueNullFieldError.checkNotNull(name, r'Warehouse', 'name'),
        );
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
