// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'audit_action.dart';

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

const AuditAction _$scan = const AuditAction._('scan');
const AuditAction _$unscan = const AuditAction._('unscan');
const AuditAction _$hold = const AuditAction._('hold');
const AuditAction _$unhold = const AuditAction._('unhold');
const AuditAction _$remove = const AuditAction._('remove');
const AuditAction _$unremove = const AuditAction._('unremove');

AuditAction _$valueOf(String name) {
  switch (name) {
    case 'scan':
      return _$scan;
    case 'unscan':
      return _$unscan;
    case 'hold':
      return _$hold;
    case 'unhold':
      return _$unhold;
    case 'remove':
      return _$remove;
    case 'unremove':
      return _$unremove;
    default:
      throw ArgumentError(name);
  }
}

final BuiltSet<AuditAction> _$values =
    BuiltSet<AuditAction>(const <AuditAction>[
  _$scan,
  _$unscan,
  _$hold,
  _$unhold,
  _$remove,
  _$unremove,
]);

class _$AuditActionMeta {
  const _$AuditActionMeta();
  AuditAction get scan => _$scan;
  AuditAction get unscan => _$unscan;
  AuditAction get hold => _$hold;
  AuditAction get unhold => _$unhold;
  AuditAction get remove => _$remove;
  AuditAction get unremove => _$unremove;
  AuditAction valueOf(String name) => _$valueOf(name);
  BuiltSet<AuditAction> get values => _$values;
}

abstract class _$AuditActionMixin {
  // ignore: non_constant_identifier_names
  _$AuditActionMeta get AuditAction => const _$AuditActionMeta();
}

Serializer<AuditAction> _$auditActionSerializer = _$AuditActionSerializer();

class _$AuditActionSerializer implements PrimitiveSerializer<AuditAction> {
  static const Map<String, Object> _toWire = const <String, Object>{
    'scan': 'scan',
    'unscan': 'unscan',
    'hold': 'hold',
    'unhold': 'unhold',
    'remove': 'remove',
    'unremove': 'unremove',
  };
  static const Map<Object, String> _fromWire = const <Object, String>{
    'scan': 'scan',
    'unscan': 'unscan',
    'hold': 'hold',
    'unhold': 'unhold',
    'remove': 'remove',
    'unremove': 'unremove',
  };

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

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

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

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
