// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'update_payment_method_request.dart';

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

class _$UpdatePaymentMethodRequest extends UpdatePaymentMethodRequest {
  @override
  final bool? active;
  @override
  final String? name;

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

  _$UpdatePaymentMethodRequest._({this.active, this.name}) : super._();
  @override
  UpdatePaymentMethodRequest rebuild(
          void Function(UpdatePaymentMethodRequestBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

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

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

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'UpdatePaymentMethodRequest')
          ..add('active', active)
          ..add('name', name))
        .toString();
  }
}

class UpdatePaymentMethodRequestBuilder
    implements
        Builder<UpdatePaymentMethodRequest, UpdatePaymentMethodRequestBuilder> {
  _$UpdatePaymentMethodRequest? _$v;

  bool? _active;
  bool? get active => _$this._active;
  set active(bool? active) => _$this._active = active;

  String? _name;
  String? get name => _$this._name;
  set name(String? name) => _$this._name = name;

  UpdatePaymentMethodRequestBuilder() {
    UpdatePaymentMethodRequest._defaults(this);
  }

  UpdatePaymentMethodRequestBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _active = $v.active;
      _name = $v.name;
      _$v = null;
    }
    return this;
  }

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

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

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

  _$UpdatePaymentMethodRequest _build() {
    final _$result = _$v ??
        _$UpdatePaymentMethodRequest._(
          active: active,
          name: name,
        );
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
