// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'delivery_credit_response.dart';

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

class _$DeliveryCreditResponse extends DeliveryCreditResponse {
  @override
  final DeliveryCredit? credit;

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

  _$DeliveryCreditResponse._({this.credit}) : super._();
  @override
  DeliveryCreditResponse rebuild(
          void Function(DeliveryCreditResponseBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

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

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

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

class DeliveryCreditResponseBuilder
    implements Builder<DeliveryCreditResponse, DeliveryCreditResponseBuilder> {
  _$DeliveryCreditResponse? _$v;

  DeliveryCreditBuilder? _credit;
  DeliveryCreditBuilder get credit =>
      _$this._credit ??= DeliveryCreditBuilder();
  set credit(DeliveryCreditBuilder? credit) => _$this._credit = credit;

  DeliveryCreditResponseBuilder() {
    DeliveryCreditResponse._defaults(this);
  }

  DeliveryCreditResponseBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _credit = $v.credit?.toBuilder();
      _$v = null;
    }
    return this;
  }

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

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

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

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

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
