// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'delivery_credit.dart';

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

class _$DeliveryCredit extends DeliveryCredit {
  @override
  final int amountCents;
  @override
  final String deliveryId;
  @override
  final String reason;

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

  _$DeliveryCredit._(
      {required this.amountCents,
      required this.deliveryId,
      required this.reason})
      : super._();
  @override
  DeliveryCredit rebuild(void Function(DeliveryCreditBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is DeliveryCredit &&
        amountCents == other.amountCents &&
        deliveryId == other.deliveryId &&
        reason == other.reason;
  }

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

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'DeliveryCredit')
          ..add('amountCents', amountCents)
          ..add('deliveryId', deliveryId)
          ..add('reason', reason))
        .toString();
  }
}

class DeliveryCreditBuilder
    implements Builder<DeliveryCredit, DeliveryCreditBuilder> {
  _$DeliveryCredit? _$v;

  int? _amountCents;
  int? get amountCents => _$this._amountCents;
  set amountCents(int? amountCents) => _$this._amountCents = amountCents;

  String? _deliveryId;
  String? get deliveryId => _$this._deliveryId;
  set deliveryId(String? deliveryId) => _$this._deliveryId = deliveryId;

  String? _reason;
  String? get reason => _$this._reason;
  set reason(String? reason) => _$this._reason = reason;

  DeliveryCreditBuilder() {
    DeliveryCredit._defaults(this);
  }

  DeliveryCreditBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _amountCents = $v.amountCents;
      _deliveryId = $v.deliveryId;
      _reason = $v.reason;
      _$v = null;
    }
    return this;
  }

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

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

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

  _$DeliveryCredit _build() {
    final _$result = _$v ??
        _$DeliveryCredit._(
          amountCents: BuiltValueNullFieldError.checkNotNull(
              amountCents, r'DeliveryCredit', 'amountCents'),
          deliveryId: BuiltValueNullFieldError.checkNotNull(
              deliveryId, r'DeliveryCredit', 'deliveryId'),
          reason: BuiltValueNullFieldError.checkNotNull(
              reason, r'DeliveryCredit', 'reason'),
        );
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
