// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'tour_summary_list.dart';

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

class _$TourSummaryList extends TourSummaryList {
  @override
  final BuiltList<TourSummary> tours;

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

  _$TourSummaryList._({required this.tours}) : super._();
  @override
  TourSummaryList rebuild(void Function(TourSummaryListBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

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

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

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

class TourSummaryListBuilder
    implements Builder<TourSummaryList, TourSummaryListBuilder> {
  _$TourSummaryList? _$v;

  ListBuilder<TourSummary>? _tours;
  ListBuilder<TourSummary> get tours =>
      _$this._tours ??= ListBuilder<TourSummary>();
  set tours(ListBuilder<TourSummary>? tours) => _$this._tours = tours;

  TourSummaryListBuilder() {
    TourSummaryList._defaults(this);
  }

  TourSummaryListBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _tours = $v.tours.toBuilder();
      _$v = null;
    }
    return this;
  }

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

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

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

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

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
