// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'service_response.dart';

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

class _$ServiceResponse extends ServiceResponse {
  @override
  final Service service;

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

  _$ServiceResponse._({required this.service}) : super._();
  @override
  ServiceResponse rebuild(void Function(ServiceResponseBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is ServiceResponse && service == other.service;
  }

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

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'ServiceResponse')
          ..add('service', service))
        .toString();
  }
}

class ServiceResponseBuilder
    implements Builder<ServiceResponse, ServiceResponseBuilder> {
  _$ServiceResponse? _$v;

  ServiceBuilder? _service;
  ServiceBuilder get service => _$this._service ??= ServiceBuilder();
  set service(ServiceBuilder? service) => _$this._service = service;

  ServiceResponseBuilder() {
    ServiceResponse._defaults(this);
  }

  ServiceResponseBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _service = $v.service.toBuilder();
      _$v = null;
    }
    return this;
  }

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

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

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

  _$ServiceResponse _build() {
    _$ServiceResponse _$result;
    try {
      _$result = _$v ??
          _$ServiceResponse._(
            service: service.build(),
          );
    } catch (_) {
      late String _$failedField;
      try {
        _$failedField = 'service';
        service.build();
      } catch (e) {
        throw BuiltValueNestedFieldError(
            r'ServiceResponse', _$failedField, e.toString());
      }
      rethrow;
    }
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
