// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'contact_kind.dart';

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

const ContactKind _$phone = const ContactKind._('phone');
const ContactKind _$mobile = const ContactKind._('mobile');
const ContactKind _$email = const ContactKind._('email');
const ContactKind _$web = const ContactKind._('web');

ContactKind _$valueOf(String name) {
  switch (name) {
    case 'phone':
      return _$phone;
    case 'mobile':
      return _$mobile;
    case 'email':
      return _$email;
    case 'web':
      return _$web;
    default:
      throw ArgumentError(name);
  }
}

final BuiltSet<ContactKind> _$values =
    BuiltSet<ContactKind>(const <ContactKind>[
  _$phone,
  _$mobile,
  _$email,
  _$web,
]);

class _$ContactKindMeta {
  const _$ContactKindMeta();
  ContactKind get phone => _$phone;
  ContactKind get mobile => _$mobile;
  ContactKind get email => _$email;
  ContactKind get web => _$web;
  ContactKind valueOf(String name) => _$valueOf(name);
  BuiltSet<ContactKind> get values => _$values;
}

abstract class _$ContactKindMixin {
  // ignore: non_constant_identifier_names
  _$ContactKindMeta get ContactKind => const _$ContactKindMeta();
}

Serializer<ContactKind> _$contactKindSerializer = _$ContactKindSerializer();

class _$ContactKindSerializer implements PrimitiveSerializer<ContactKind> {
  static const Map<String, Object> _toWire = const <String, Object>{
    'phone': 'phone',
    'mobile': 'mobile',
    'email': 'email',
    'web': 'web',
  };
  static const Map<Object, String> _fromWire = const <Object, String>{
    'phone': 'phone',
    'mobile': 'mobile',
    'email': 'email',
    'web': 'web',
  };

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

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

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

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
