// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'cars_list.dart';

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

class _$CarsList extends CarsList {
  @override
  final BuiltList<Car> cars;

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

  _$CarsList._({required this.cars}) : super._();
  @override
  CarsList rebuild(void Function(CarsListBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

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

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

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

class CarsListBuilder implements Builder<CarsList, CarsListBuilder> {
  _$CarsList? _$v;

  ListBuilder<Car>? _cars;
  ListBuilder<Car> get cars => _$this._cars ??= ListBuilder<Car>();
  set cars(ListBuilder<Car>? cars) => _$this._cars = cars;

  CarsListBuilder() {
    CarsList._defaults(this);
  }

  CarsListBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _cars = $v.cars.toBuilder();
      _$v = null;
    }
    return this;
  }

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

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

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

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

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
