// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'create_service_request.dart';

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

class _$CreateServiceRequest extends CreateServiceRequest {
  @override
  final String key;
  @override
  final ServiceKind kind;
  @override
  final int? maxValue;
  @override
  final int? minValue;
  @override
  final String name;
  @override
  final int? sortOrder;

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

  _$CreateServiceRequest._(
      {required this.key,
      required this.kind,
      this.maxValue,
      this.minValue,
      required this.name,
      this.sortOrder})
      : super._();
  @override
  CreateServiceRequest rebuild(
          void Function(CreateServiceRequestBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

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

  @override
  int get hashCode {
    var _$hash = 0;
    _$hash = $jc(_$hash, key.hashCode);
    _$hash = $jc(_$hash, kind.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'CreateServiceRequest')
          ..add('key', key)
          ..add('kind', kind)
          ..add('maxValue', maxValue)
          ..add('minValue', minValue)
          ..add('name', name)
          ..add('sortOrder', sortOrder))
        .toString();
  }
}

class CreateServiceRequestBuilder
    implements Builder<CreateServiceRequest, CreateServiceRequestBuilder> {
  _$CreateServiceRequest? _$v;

  String? _key;
  String? get key => _$this._key;
  set key(String? key) => _$this._key = key;

  ServiceKind? _kind;
  ServiceKind? get kind => _$this._kind;
  set kind(ServiceKind? kind) => _$this._kind = kind;

  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;

  CreateServiceRequestBuilder() {
    CreateServiceRequest._defaults(this);
  }

  CreateServiceRequestBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _key = $v.key;
      _kind = $v.kind;
      _maxValue = $v.maxValue;
      _minValue = $v.minValue;
      _name = $v.name;
      _sortOrder = $v.sortOrder;
      _$v = null;
    }
    return this;
  }

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

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

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

  _$CreateServiceRequest _build() {
    final _$result = _$v ??
        _$CreateServiceRequest._(
          key: BuiltValueNullFieldError.checkNotNull(
              key, r'CreateServiceRequest', 'key'),
          kind: BuiltValueNullFieldError.checkNotNull(
              kind, r'CreateServiceRequest', 'kind'),
          maxValue: maxValue,
          minValue: minValue,
          name: BuiltValueNullFieldError.checkNotNull(
              name, r'CreateServiceRequest', 'name'),
          sortOrder: sortOrder,
        );
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
