// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'tour.dart';

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

class _$Tour extends Tour {
  @override
  final int accountId;
  @override
  final Date date;
  @override
  final String id;
  @override
  final DateTime syncedAt;

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

  _$Tour._(
      {required this.accountId,
      required this.date,
      required this.id,
      required this.syncedAt})
      : super._();
  @override
  Tour rebuild(void Function(TourBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is Tour &&
        accountId == other.accountId &&
        date == other.date &&
        id == other.id &&
        syncedAt == other.syncedAt;
  }

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

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'Tour')
          ..add('accountId', accountId)
          ..add('date', date)
          ..add('id', id)
          ..add('syncedAt', syncedAt))
        .toString();
  }
}

class TourBuilder implements Builder<Tour, TourBuilder> {
  _$Tour? _$v;

  int? _accountId;
  int? get accountId => _$this._accountId;
  set accountId(int? accountId) => _$this._accountId = accountId;

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

  String? _id;
  String? get id => _$this._id;
  set id(String? id) => _$this._id = id;

  DateTime? _syncedAt;
  DateTime? get syncedAt => _$this._syncedAt;
  set syncedAt(DateTime? syncedAt) => _$this._syncedAt = syncedAt;

  TourBuilder() {
    Tour._defaults(this);
  }

  TourBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _accountId = $v.accountId;
      _date = $v.date;
      _id = $v.id;
      _syncedAt = $v.syncedAt;
      _$v = null;
    }
    return this;
  }

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

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

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

  _$Tour _build() {
    final _$result = _$v ??
        _$Tour._(
          accountId: BuiltValueNullFieldError.checkNotNull(
              accountId, r'Tour', 'accountId'),
          date: BuiltValueNullFieldError.checkNotNull(date, r'Tour', 'date'),
          id: BuiltValueNullFieldError.checkNotNull(id, r'Tour', 'id'),
          syncedAt: BuiltValueNullFieldError.checkNotNull(
              syncedAt, r'Tour', 'syncedAt'),
        );
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
