// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'delivery_service_response.dart';

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

class _$DeliveryServiceResponse extends DeliveryServiceResponse {
  @override
  final DeliveryServiceValue value;

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

  _$DeliveryServiceResponse._({required this.value}) : super._();
  @override
  DeliveryServiceResponse rebuild(
          void Function(DeliveryServiceResponseBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

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

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

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

class DeliveryServiceResponseBuilder
    implements
        Builder<DeliveryServiceResponse, DeliveryServiceResponseBuilder> {
  _$DeliveryServiceResponse? _$v;

  DeliveryServiceValueBuilder? _value;
  DeliveryServiceValueBuilder get value =>
      _$this._value ??= DeliveryServiceValueBuilder();
  set value(DeliveryServiceValueBuilder? value) => _$this._value = value;

  DeliveryServiceResponseBuilder() {
    DeliveryServiceResponse._defaults(this);
  }

  DeliveryServiceResponseBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _value = $v.value.toBuilder();
      _$v = null;
    }
    return this;
  }

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

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

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

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

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
