// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'payment_method_response.dart';

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

class _$PaymentMethodResponse extends PaymentMethodResponse {
  @override
  final PaymentMethod method;

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

  _$PaymentMethodResponse._({required this.method}) : super._();
  @override
  PaymentMethodResponse rebuild(
          void Function(PaymentMethodResponseBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

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

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

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

class PaymentMethodResponseBuilder
    implements Builder<PaymentMethodResponse, PaymentMethodResponseBuilder> {
  _$PaymentMethodResponse? _$v;

  PaymentMethodBuilder? _method;
  PaymentMethodBuilder get method => _$this._method ??= PaymentMethodBuilder();
  set method(PaymentMethodBuilder? method) => _$this._method = method;

  PaymentMethodResponseBuilder() {
    PaymentMethodResponse._defaults(this);
  }

  PaymentMethodResponseBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _method = $v.method.toBuilder();
      _$v = null;
    }
    return this;
  }

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

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

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

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

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
