// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'scan_status.dart';

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

const ScanStatus _$inProgress = const ScanStatus._('inProgress');
const ScanStatus _$done = const ScanStatus._('done');
const ScanStatus _$held = const ScanStatus._('held');
const ScanStatus _$removed = const ScanStatus._('removed');

ScanStatus _$valueOf(String name) {
  switch (name) {
    case 'inProgress':
      return _$inProgress;
    case 'done':
      return _$done;
    case 'held':
      return _$held;
    case 'removed':
      return _$removed;
    default:
      throw ArgumentError(name);
  }
}

final BuiltSet<ScanStatus> _$values = BuiltSet<ScanStatus>(const <ScanStatus>[
  _$inProgress,
  _$done,
  _$held,
  _$removed,
]);

class _$ScanStatusMeta {
  const _$ScanStatusMeta();
  ScanStatus get inProgress => _$inProgress;
  ScanStatus get done => _$done;
  ScanStatus get held => _$held;
  ScanStatus get removed => _$removed;
  ScanStatus valueOf(String name) => _$valueOf(name);
  BuiltSet<ScanStatus> get values => _$values;
}

abstract class _$ScanStatusMixin {
  // ignore: non_constant_identifier_names
  _$ScanStatusMeta get ScanStatus => const _$ScanStatusMeta();
}

Serializer<ScanStatus> _$scanStatusSerializer = _$ScanStatusSerializer();

class _$ScanStatusSerializer implements PrimitiveSerializer<ScanStatus> {
  static const Map<String, Object> _toWire = const <String, Object>{
    'inProgress': 'in_progress',
    'done': 'done',
    'held': 'held',
    'removed': 'removed',
  };
  static const Map<Object, String> _fromWire = const <Object, String>{
    'in_progress': 'inProgress',
    'done': 'done',
    'held': 'held',
    'removed': 'removed',
  };

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

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

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

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
