// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'create_payment_method_request.dart';

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

class _$CreatePaymentMethodRequest extends CreatePaymentMethodRequest {
  @override
  final String code;
  @override
  final String name;

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

  _$CreatePaymentMethodRequest._({required this.code, required this.name})
      : super._();
  @override
  CreatePaymentMethodRequest rebuild(
          void Function(CreatePaymentMethodRequestBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

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

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

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

class CreatePaymentMethodRequestBuilder
    implements
        Builder<CreatePaymentMethodRequest, CreatePaymentMethodRequestBuilder> {
  _$CreatePaymentMethodRequest? _$v;

  String? _code;
  String? get code => _$this._code;
  set code(String? code) => _$this._code = code;

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

  CreatePaymentMethodRequestBuilder() {
    CreatePaymentMethodRequest._defaults(this);
  }

  CreatePaymentMethodRequestBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _code = $v.code;
      _name = $v.name;
      _$v = null;
    }
    return this;
  }

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

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

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

  _$CreatePaymentMethodRequest _build() {
    final _$result = _$v ??
        _$CreatePaymentMethodRequest._(
          code: BuiltValueNullFieldError.checkNotNull(
              code, r'CreatePaymentMethodRequest', 'code'),
          name: BuiltValueNullFieldError.checkNotNull(
              name, r'CreatePaymentMethodRequest', 'name'),
        );
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
