// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'credit_action.dart';

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

const CreditAction _$set_ = const CreditAction._('set_');
const CreditAction _$remove = const CreditAction._('remove');

CreditAction _$valueOf(String name) {
  switch (name) {
    case 'set_':
      return _$set_;
    case 'remove':
      return _$remove;
    default:
      throw ArgumentError(name);
  }
}

final BuiltSet<CreditAction> _$values =
    BuiltSet<CreditAction>(const <CreditAction>[
  _$set_,
  _$remove,
]);

class _$CreditActionMeta {
  const _$CreditActionMeta();
  CreditAction get set_ => _$set_;
  CreditAction get remove => _$remove;
  CreditAction valueOf(String name) => _$valueOf(name);
  BuiltSet<CreditAction> get values => _$values;
}

abstract class _$CreditActionMixin {
  // ignore: non_constant_identifier_names
  _$CreditActionMeta get CreditAction => const _$CreditActionMeta();
}

Serializer<CreditAction> _$creditActionSerializer = _$CreditActionSerializer();

class _$CreditActionSerializer implements PrimitiveSerializer<CreditAction> {
  static const Map<String, Object> _toWire = const <String, Object>{
    'set_': 'set',
    'remove': 'remove',
  };
  static const Map<Object, String> _fromWire = const <Object, String>{
    'set': 'set_',
    'remove': 'remove',
  };

  @override
  final Iterable<Type> types = const <Type>[CreditAction];
  @override
  final String wireName = 'CreditAction';

  @override
  Object serialize(Serializers serializers, CreditAction object,
          {FullType specifiedType = FullType.unspecified}) =>
      _toWire[object.name] ?? object.name;

  @override
  CreditAction deserialize(Serializers serializers, Object serialized,
          {FullType specifiedType = FullType.unspecified}) =>
      CreditAction.valueOf(
          _fromWire[serialized] ?? (serialized is String ? serialized : ''));
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
