// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'import_summary.dart';

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

class _$ImportSummary extends ImportSummary {
  @override
  final Date date;
  @override
  final int? driversProvisioned;
  @override
  final BuiltList<String> errors;
  @override
  final BuiltList<String>? provisioningErrors;
  @override
  final int toursFailed;
  @override
  final int toursOk;
  @override
  final int toursTotal;

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

  _$ImportSummary._(
      {required this.date,
      this.driversProvisioned,
      required this.errors,
      this.provisioningErrors,
      required this.toursFailed,
      required this.toursOk,
      required this.toursTotal})
      : super._();
  @override
  ImportSummary rebuild(void Function(ImportSummaryBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is ImportSummary &&
        date == other.date &&
        driversProvisioned == other.driversProvisioned &&
        errors == other.errors &&
        provisioningErrors == other.provisioningErrors &&
        toursFailed == other.toursFailed &&
        toursOk == other.toursOk &&
        toursTotal == other.toursTotal;
  }

  @override
  int get hashCode {
    var _$hash = 0;
    _$hash = $jc(_$hash, date.hashCode);
    _$hash = $jc(_$hash, driversProvisioned.hashCode);
    _$hash = $jc(_$hash, errors.hashCode);
    _$hash = $jc(_$hash, provisioningErrors.hashCode);
    _$hash = $jc(_$hash, toursFailed.hashCode);
    _$hash = $jc(_$hash, toursOk.hashCode);
    _$hash = $jc(_$hash, toursTotal.hashCode);
    _$hash = $jf(_$hash);
    return _$hash;
  }

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'ImportSummary')
          ..add('date', date)
          ..add('driversProvisioned', driversProvisioned)
          ..add('errors', errors)
          ..add('provisioningErrors', provisioningErrors)
          ..add('toursFailed', toursFailed)
          ..add('toursOk', toursOk)
          ..add('toursTotal', toursTotal))
        .toString();
  }
}

class ImportSummaryBuilder
    implements Builder<ImportSummary, ImportSummaryBuilder> {
  _$ImportSummary? _$v;

  Date? _date;
  Date? get date => _$this._date;
  set date(Date? date) => _$this._date = date;

  int? _driversProvisioned;
  int? get driversProvisioned => _$this._driversProvisioned;
  set driversProvisioned(int? driversProvisioned) =>
      _$this._driversProvisioned = driversProvisioned;

  ListBuilder<String>? _errors;
  ListBuilder<String> get errors => _$this._errors ??= ListBuilder<String>();
  set errors(ListBuilder<String>? errors) => _$this._errors = errors;

  ListBuilder<String>? _provisioningErrors;
  ListBuilder<String> get provisioningErrors =>
      _$this._provisioningErrors ??= ListBuilder<String>();
  set provisioningErrors(ListBuilder<String>? provisioningErrors) =>
      _$this._provisioningErrors = provisioningErrors;

  int? _toursFailed;
  int? get toursFailed => _$this._toursFailed;
  set toursFailed(int? toursFailed) => _$this._toursFailed = toursFailed;

  int? _toursOk;
  int? get toursOk => _$this._toursOk;
  set toursOk(int? toursOk) => _$this._toursOk = toursOk;

  int? _toursTotal;
  int? get toursTotal => _$this._toursTotal;
  set toursTotal(int? toursTotal) => _$this._toursTotal = toursTotal;

  ImportSummaryBuilder() {
    ImportSummary._defaults(this);
  }

  ImportSummaryBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _date = $v.date;
      _driversProvisioned = $v.driversProvisioned;
      _errors = $v.errors.toBuilder();
      _provisioningErrors = $v.provisioningErrors?.toBuilder();
      _toursFailed = $v.toursFailed;
      _toursOk = $v.toursOk;
      _toursTotal = $v.toursTotal;
      _$v = null;
    }
    return this;
  }

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

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

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

  _$ImportSummary _build() {
    _$ImportSummary _$result;
    try {
      _$result = _$v ??
          _$ImportSummary._(
            date: BuiltValueNullFieldError.checkNotNull(
                date, r'ImportSummary', 'date'),
            driversProvisioned: driversProvisioned,
            errors: errors.build(),
            provisioningErrors: _provisioningErrors?.build(),
            toursFailed: BuiltValueNullFieldError.checkNotNull(
                toursFailed, r'ImportSummary', 'toursFailed'),
            toursOk: BuiltValueNullFieldError.checkNotNull(
                toursOk, r'ImportSummary', 'toursOk'),
            toursTotal: BuiltValueNullFieldError.checkNotNull(
                toursTotal, r'ImportSummary', 'toursTotal'),
          );
    } catch (_) {
      late String _$failedField;
      try {
        _$failedField = 'errors';
        errors.build();
        _$failedField = 'provisioningErrors';
        _provisioningErrors?.build();
      } catch (e) {
        throw BuiltValueNestedFieldError(
            r'ImportSummary', _$failedField, e.toString());
      }
      rethrow;
    }
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
