// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'delivery_credit_event_request.dart';

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

class _$DeliveryCreditEventRequest extends DeliveryCreditEventRequest {
  @override
  final CreditAction action;
  @override
  final int? amountCents;
  @override
  final String? authorCarId;
  @override
  final String clientEventId;
  @override
  final String? reason;

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

  _$DeliveryCreditEventRequest._(
      {required this.action,
      this.amountCents,
      this.authorCarId,
      required this.clientEventId,
      this.reason})
      : super._();
  @override
  DeliveryCreditEventRequest rebuild(
          void Function(DeliveryCreditEventRequestBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is DeliveryCreditEventRequest &&
        action == other.action &&
        amountCents == other.amountCents &&
        authorCarId == other.authorCarId &&
        clientEventId == other.clientEventId &&
        reason == other.reason;
  }

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

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'DeliveryCreditEventRequest')
          ..add('action', action)
          ..add('amountCents', amountCents)
          ..add('authorCarId', authorCarId)
          ..add('clientEventId', clientEventId)
          ..add('reason', reason))
        .toString();
  }
}

class DeliveryCreditEventRequestBuilder
    implements
        Builder<DeliveryCreditEventRequest, DeliveryCreditEventRequestBuilder> {
  _$DeliveryCreditEventRequest? _$v;

  CreditAction? _action;
  CreditAction? get action => _$this._action;
  set action(CreditAction? action) => _$this._action = action;

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

  String? _authorCarId;
  String? get authorCarId => _$this._authorCarId;
  set authorCarId(String? authorCarId) => _$this._authorCarId = authorCarId;

  String? _clientEventId;
  String? get clientEventId => _$this._clientEventId;
  set clientEventId(String? clientEventId) =>
      _$this._clientEventId = clientEventId;

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

  DeliveryCreditEventRequestBuilder() {
    DeliveryCreditEventRequest._defaults(this);
  }

  DeliveryCreditEventRequestBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _action = $v.action;
      _amountCents = $v.amountCents;
      _authorCarId = $v.authorCarId;
      _clientEventId = $v.clientEventId;
      _reason = $v.reason;
      _$v = null;
    }
    return this;
  }

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

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

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

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

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
