// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'set_delivery_order_response.dart';

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

class _$SetDeliveryOrderResponse extends SetDeliveryOrderResponse {
  @override
  final BuiltList<DeliveryOrderEntry> order;
  @override
  final String tourId;

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

  _$SetDeliveryOrderResponse._({required this.order, required this.tourId})
      : super._();
  @override
  SetDeliveryOrderResponse rebuild(
          void Function(SetDeliveryOrderResponseBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

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

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

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'SetDeliveryOrderResponse')
          ..add('order', order)
          ..add('tourId', tourId))
        .toString();
  }
}

class SetDeliveryOrderResponseBuilder
    implements
        Builder<SetDeliveryOrderResponse, SetDeliveryOrderResponseBuilder> {
  _$SetDeliveryOrderResponse? _$v;

  ListBuilder<DeliveryOrderEntry>? _order;
  ListBuilder<DeliveryOrderEntry> get order =>
      _$this._order ??= ListBuilder<DeliveryOrderEntry>();
  set order(ListBuilder<DeliveryOrderEntry>? order) => _$this._order = order;

  String? _tourId;
  String? get tourId => _$this._tourId;
  set tourId(String? tourId) => _$this._tourId = tourId;

  SetDeliveryOrderResponseBuilder() {
    SetDeliveryOrderResponse._defaults(this);
  }

  SetDeliveryOrderResponseBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _order = $v.order.toBuilder();
      _tourId = $v.tourId;
      _$v = null;
    }
    return this;
  }

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

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

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

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

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
