// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'car_response.dart';

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

class _$CarResponse extends CarResponse {
  @override
  final Car car;

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

  _$CarResponse._({required this.car}) : super._();
  @override
  CarResponse rebuild(void Function(CarResponseBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

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

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

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

class CarResponseBuilder implements Builder<CarResponse, CarResponseBuilder> {
  _$CarResponse? _$v;

  CarBuilder? _car;
  CarBuilder get car => _$this._car ??= CarBuilder();
  set car(CarBuilder? car) => _$this._car = car;

  CarResponseBuilder() {
    CarResponse._defaults(this);
  }

  CarResponseBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _car = $v.car.toBuilder();
      _$v = null;
    }
    return this;
  }

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

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

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

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

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
