// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'update_service_request.dart';

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

class _$UpdateServiceRequest extends UpdateServiceRequest {
  @override
  final bool? active;
  @override
  final int? maxValue;
  @override
  final int? minValue;
  @override
  final String? name;
  @override
  final int? sortOrder;

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

  _$UpdateServiceRequest._(
      {this.active, this.maxValue, this.minValue, this.name, this.sortOrder})
      : super._();
  @override
  UpdateServiceRequest rebuild(
          void Function(UpdateServiceRequestBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is UpdateServiceRequest &&
        active == other.active &&
        maxValue == other.maxValue &&
        minValue == other.minValue &&
        name == other.name &&
        sortOrder == other.sortOrder;
  }

  @override
  int get hashCode {
    var _$hash = 0;
    _$hash = $jc(_$hash, active.hashCode);
    _$hash = $jc(_$hash, maxValue.hashCode);
    _$hash = $jc(_$hash, minValue.hashCode);
    _$hash = $jc(_$hash, name.hashCode);
    _$hash = $jc(_$hash, sortOrder.hashCode);
    _$hash = $jf(_$hash);
    return _$hash;
  }

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'UpdateServiceRequest')
          ..add('active', active)
          ..add('maxValue', maxValue)
          ..add('minValue', minValue)
          ..add('name', name)
          ..add('sortOrder', sortOrder))
        .toString();
  }
}

class UpdateServiceRequestBuilder
    implements Builder<UpdateServiceRequest, UpdateServiceRequestBuilder> {
  _$UpdateServiceRequest? _$v;

  bool? _active;
  bool? get active => _$this._active;
  set active(bool? active) => _$this._active = active;

  int? _maxValue;
  int? get maxValue => _$this._maxValue;
  set maxValue(int? maxValue) => _$this._maxValue = maxValue;

  int? _minValue;
  int? get minValue => _$this._minValue;
  set minValue(int? minValue) => _$this._minValue = minValue;

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

  int? _sortOrder;
  int? get sortOrder => _$this._sortOrder;
  set sortOrder(int? sortOrder) => _$this._sortOrder = sortOrder;

  UpdateServiceRequestBuilder() {
    UpdateServiceRequest._defaults(this);
  }

  UpdateServiceRequestBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _active = $v.active;
      _maxValue = $v.maxValue;
      _minValue = $v.minValue;
      _name = $v.name;
      _sortOrder = $v.sortOrder;
      _$v = null;
    }
    return this;
  }

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

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

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

  _$UpdateServiceRequest _build() {
    final _$result = _$v ??
        _$UpdateServiceRequest._(
          active: active,
          maxValue: maxValue,
          minValue: minValue,
          name: name,
          sortOrder: sortOrder,
        );
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
