// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'tour_details.dart';

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

class _$TourDetails extends TourDetails {
  @override
  final BuiltList<Article> articles;
  @override
  final BuiltList<ContactChannel> contactChannels;
  @override
  final BuiltList<ContactSource> contactSources;
  @override
  final BuiltList<DeliveryCredit> credits;
  @override
  final BuiltList<CustomerContact> customerContacts;
  @override
  final BuiltList<Customer> customers;
  @override
  final BuiltList<DeliveryWithItems> deliveries;
  @override
  final BuiltList<DeliveryServiceValue> deliveryServices;
  @override
  final BuiltList<DeliveryNote> notes;
  @override
  final BuiltList<Service> services;
  @override
  final Tour tour;
  @override
  final BuiltList<Warehouse> warehouses;

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

  _$TourDetails._(
      {required this.articles,
      required this.contactChannels,
      required this.contactSources,
      required this.credits,
      required this.customerContacts,
      required this.customers,
      required this.deliveries,
      required this.deliveryServices,
      required this.notes,
      required this.services,
      required this.tour,
      required this.warehouses})
      : super._();
  @override
  TourDetails rebuild(void Function(TourDetailsBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is TourDetails &&
        articles == other.articles &&
        contactChannels == other.contactChannels &&
        contactSources == other.contactSources &&
        credits == other.credits &&
        customerContacts == other.customerContacts &&
        customers == other.customers &&
        deliveries == other.deliveries &&
        deliveryServices == other.deliveryServices &&
        notes == other.notes &&
        services == other.services &&
        tour == other.tour &&
        warehouses == other.warehouses;
  }

  @override
  int get hashCode {
    var _$hash = 0;
    _$hash = $jc(_$hash, articles.hashCode);
    _$hash = $jc(_$hash, contactChannels.hashCode);
    _$hash = $jc(_$hash, contactSources.hashCode);
    _$hash = $jc(_$hash, credits.hashCode);
    _$hash = $jc(_$hash, customerContacts.hashCode);
    _$hash = $jc(_$hash, customers.hashCode);
    _$hash = $jc(_$hash, deliveries.hashCode);
    _$hash = $jc(_$hash, deliveryServices.hashCode);
    _$hash = $jc(_$hash, notes.hashCode);
    _$hash = $jc(_$hash, services.hashCode);
    _$hash = $jc(_$hash, tour.hashCode);
    _$hash = $jc(_$hash, warehouses.hashCode);
    _$hash = $jf(_$hash);
    return _$hash;
  }

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'TourDetails')
          ..add('articles', articles)
          ..add('contactChannels', contactChannels)
          ..add('contactSources', contactSources)
          ..add('credits', credits)
          ..add('customerContacts', customerContacts)
          ..add('customers', customers)
          ..add('deliveries', deliveries)
          ..add('deliveryServices', deliveryServices)
          ..add('notes', notes)
          ..add('services', services)
          ..add('tour', tour)
          ..add('warehouses', warehouses))
        .toString();
  }
}

class TourDetailsBuilder implements Builder<TourDetails, TourDetailsBuilder> {
  _$TourDetails? _$v;

  ListBuilder<Article>? _articles;
  ListBuilder<Article> get articles =>
      _$this._articles ??= ListBuilder<Article>();
  set articles(ListBuilder<Article>? articles) => _$this._articles = articles;

  ListBuilder<ContactChannel>? _contactChannels;
  ListBuilder<ContactChannel> get contactChannels =>
      _$this._contactChannels ??= ListBuilder<ContactChannel>();
  set contactChannels(ListBuilder<ContactChannel>? contactChannels) =>
      _$this._contactChannels = contactChannels;

  ListBuilder<ContactSource>? _contactSources;
  ListBuilder<ContactSource> get contactSources =>
      _$this._contactSources ??= ListBuilder<ContactSource>();
  set contactSources(ListBuilder<ContactSource>? contactSources) =>
      _$this._contactSources = contactSources;

  ListBuilder<DeliveryCredit>? _credits;
  ListBuilder<DeliveryCredit> get credits =>
      _$this._credits ??= ListBuilder<DeliveryCredit>();
  set credits(ListBuilder<DeliveryCredit>? credits) =>
      _$this._credits = credits;

  ListBuilder<CustomerContact>? _customerContacts;
  ListBuilder<CustomerContact> get customerContacts =>
      _$this._customerContacts ??= ListBuilder<CustomerContact>();
  set customerContacts(ListBuilder<CustomerContact>? customerContacts) =>
      _$this._customerContacts = customerContacts;

  ListBuilder<Customer>? _customers;
  ListBuilder<Customer> get customers =>
      _$this._customers ??= ListBuilder<Customer>();
  set customers(ListBuilder<Customer>? customers) =>
      _$this._customers = customers;

  ListBuilder<DeliveryWithItems>? _deliveries;
  ListBuilder<DeliveryWithItems> get deliveries =>
      _$this._deliveries ??= ListBuilder<DeliveryWithItems>();
  set deliveries(ListBuilder<DeliveryWithItems>? deliveries) =>
      _$this._deliveries = deliveries;

  ListBuilder<DeliveryServiceValue>? _deliveryServices;
  ListBuilder<DeliveryServiceValue> get deliveryServices =>
      _$this._deliveryServices ??= ListBuilder<DeliveryServiceValue>();
  set deliveryServices(ListBuilder<DeliveryServiceValue>? deliveryServices) =>
      _$this._deliveryServices = deliveryServices;

  ListBuilder<DeliveryNote>? _notes;
  ListBuilder<DeliveryNote> get notes =>
      _$this._notes ??= ListBuilder<DeliveryNote>();
  set notes(ListBuilder<DeliveryNote>? notes) => _$this._notes = notes;

  ListBuilder<Service>? _services;
  ListBuilder<Service> get services =>
      _$this._services ??= ListBuilder<Service>();
  set services(ListBuilder<Service>? services) => _$this._services = services;

  TourBuilder? _tour;
  TourBuilder get tour => _$this._tour ??= TourBuilder();
  set tour(TourBuilder? tour) => _$this._tour = tour;

  ListBuilder<Warehouse>? _warehouses;
  ListBuilder<Warehouse> get warehouses =>
      _$this._warehouses ??= ListBuilder<Warehouse>();
  set warehouses(ListBuilder<Warehouse>? warehouses) =>
      _$this._warehouses = warehouses;

  TourDetailsBuilder() {
    TourDetails._defaults(this);
  }

  TourDetailsBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _articles = $v.articles.toBuilder();
      _contactChannels = $v.contactChannels.toBuilder();
      _contactSources = $v.contactSources.toBuilder();
      _credits = $v.credits.toBuilder();
      _customerContacts = $v.customerContacts.toBuilder();
      _customers = $v.customers.toBuilder();
      _deliveries = $v.deliveries.toBuilder();
      _deliveryServices = $v.deliveryServices.toBuilder();
      _notes = $v.notes.toBuilder();
      _services = $v.services.toBuilder();
      _tour = $v.tour.toBuilder();
      _warehouses = $v.warehouses.toBuilder();
      _$v = null;
    }
    return this;
  }

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

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

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

  _$TourDetails _build() {
    _$TourDetails _$result;
    try {
      _$result = _$v ??
          _$TourDetails._(
            articles: articles.build(),
            contactChannels: contactChannels.build(),
            contactSources: contactSources.build(),
            credits: credits.build(),
            customerContacts: customerContacts.build(),
            customers: customers.build(),
            deliveries: deliveries.build(),
            deliveryServices: deliveryServices.build(),
            notes: notes.build(),
            services: services.build(),
            tour: tour.build(),
            warehouses: warehouses.build(),
          );
    } catch (_) {
      late String _$failedField;
      try {
        _$failedField = 'articles';
        articles.build();
        _$failedField = 'contactChannels';
        contactChannels.build();
        _$failedField = 'contactSources';
        contactSources.build();
        _$failedField = 'credits';
        credits.build();
        _$failedField = 'customerContacts';
        customerContacts.build();
        _$failedField = 'customers';
        customers.build();
        _$failedField = 'deliveries';
        deliveries.build();
        _$failedField = 'deliveryServices';
        deliveryServices.build();
        _$failedField = 'notes';
        notes.build();
        _$failedField = 'services';
        services.build();
        _$failedField = 'tour';
        tour.build();
        _$failedField = 'warehouses';
        warehouses.build();
      } catch (e) {
        throw BuiltValueNestedFieldError(
            r'TourDetails', _$failedField, e.toString());
      }
      rethrow;
    }
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
