// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'contact_role.dart';

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

const ContactRole _$header = const ContactRole._('header');
const ContactRole _$delivery = const ContactRole._('delivery');
const ContactRole _$billing = const ContactRole._('billing');
const ContactRole _$contactPerson = const ContactRole._('contactPerson');
const ContactRole _$customerMaster = const ContactRole._('customerMaster');

ContactRole _$valueOf(String name) {
  switch (name) {
    case 'header':
      return _$header;
    case 'delivery':
      return _$delivery;
    case 'billing':
      return _$billing;
    case 'contactPerson':
      return _$contactPerson;
    case 'customerMaster':
      return _$customerMaster;
    default:
      throw ArgumentError(name);
  }
}

final BuiltSet<ContactRole> _$values =
    BuiltSet<ContactRole>(const <ContactRole>[
  _$header,
  _$delivery,
  _$billing,
  _$contactPerson,
  _$customerMaster,
]);

class _$ContactRoleMeta {
  const _$ContactRoleMeta();
  ContactRole get header => _$header;
  ContactRole get delivery => _$delivery;
  ContactRole get billing => _$billing;
  ContactRole get contactPerson => _$contactPerson;
  ContactRole get customerMaster => _$customerMaster;
  ContactRole valueOf(String name) => _$valueOf(name);
  BuiltSet<ContactRole> get values => _$values;
}

abstract class _$ContactRoleMixin {
  // ignore: non_constant_identifier_names
  _$ContactRoleMeta get ContactRole => const _$ContactRoleMeta();
}

Serializer<ContactRole> _$contactRoleSerializer = _$ContactRoleSerializer();

class _$ContactRoleSerializer implements PrimitiveSerializer<ContactRole> {
  static const Map<String, Object> _toWire = const <String, Object>{
    'header': 'header',
    'delivery': 'delivery',
    'billing': 'billing',
    'contactPerson': 'contact_person',
    'customerMaster': 'customer_master',
  };
  static const Map<Object, String> _fromWire = const <Object, String>{
    'header': 'header',
    'delivery': 'delivery',
    'billing': 'billing',
    'contact_person': 'contactPerson',
    'customer_master': 'customerMaster',
  };

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

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

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

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
