// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'service_kind.dart';

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

const ServiceKind _$boolean = const ServiceKind._('boolean');
const ServiceKind _$numeric = const ServiceKind._('numeric');

ServiceKind _$valueOf(String name) {
  switch (name) {
    case 'boolean':
      return _$boolean;
    case 'numeric':
      return _$numeric;
    default:
      throw ArgumentError(name);
  }
}

final BuiltSet<ServiceKind> _$values =
    BuiltSet<ServiceKind>(const <ServiceKind>[
  _$boolean,
  _$numeric,
]);

class _$ServiceKindMeta {
  const _$ServiceKindMeta();
  ServiceKind get boolean => _$boolean;
  ServiceKind get numeric => _$numeric;
  ServiceKind valueOf(String name) => _$valueOf(name);
  BuiltSet<ServiceKind> get values => _$values;
}

abstract class _$ServiceKindMixin {
  // ignore: non_constant_identifier_names
  _$ServiceKindMeta get ServiceKind => const _$ServiceKindMeta();
}

Serializer<ServiceKind> _$serviceKindSerializer = _$ServiceKindSerializer();

class _$ServiceKindSerializer implements PrimitiveSerializer<ServiceKind> {
  static const Map<String, Object> _toWire = const <String, Object>{
    'boolean': 'boolean',
    'numeric': 'numeric',
  };
  static const Map<Object, String> _fromWire = const <Object, String>{
    'boolean': 'boolean',
    'numeric': 'numeric',
  };

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

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

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

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
