// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'payment_methods_list.dart';

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

class _$PaymentMethodsList extends PaymentMethodsList {
  @override
  final BuiltList<PaymentMethod> methods;

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

  _$PaymentMethodsList._({required this.methods}) : super._();
  @override
  PaymentMethodsList rebuild(
          void Function(PaymentMethodsListBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

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

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

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

class PaymentMethodsListBuilder
    implements Builder<PaymentMethodsList, PaymentMethodsListBuilder> {
  _$PaymentMethodsList? _$v;

  ListBuilder<PaymentMethod>? _methods;
  ListBuilder<PaymentMethod> get methods =>
      _$this._methods ??= ListBuilder<PaymentMethod>();
  set methods(ListBuilder<PaymentMethod>? methods) => _$this._methods = methods;

  PaymentMethodsListBuilder() {
    PaymentMethodsList._defaults(this);
  }

  PaymentMethodsListBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _methods = $v.methods.toBuilder();
      _$v = null;
    }
    return this;
  }

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

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

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

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

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
