// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'delivery_state.dart';

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

const DeliveryState _$active = const DeliveryState._('active');
const DeliveryState _$held = const DeliveryState._('held');
const DeliveryState _$canceled = const DeliveryState._('canceled');
const DeliveryState _$completed = const DeliveryState._('completed');

DeliveryState _$valueOf(String name) {
  switch (name) {
    case 'active':
      return _$active;
    case 'held':
      return _$held;
    case 'canceled':
      return _$canceled;
    case 'completed':
      return _$completed;
    default:
      throw ArgumentError(name);
  }
}

final BuiltSet<DeliveryState> _$values =
    BuiltSet<DeliveryState>(const <DeliveryState>[
  _$active,
  _$held,
  _$canceled,
  _$completed,
]);

class _$DeliveryStateMeta {
  const _$DeliveryStateMeta();
  DeliveryState get active => _$active;
  DeliveryState get held => _$held;
  DeliveryState get canceled => _$canceled;
  DeliveryState get completed => _$completed;
  DeliveryState valueOf(String name) => _$valueOf(name);
  BuiltSet<DeliveryState> get values => _$values;
}

abstract class _$DeliveryStateMixin {
  // ignore: non_constant_identifier_names
  _$DeliveryStateMeta get DeliveryState => const _$DeliveryStateMeta();
}

Serializer<DeliveryState> _$deliveryStateSerializer =
    _$DeliveryStateSerializer();

class _$DeliveryStateSerializer implements PrimitiveSerializer<DeliveryState> {
  static const Map<String, Object> _toWire = const <String, Object>{
    'active': 'active',
    'held': 'held',
    'canceled': 'canceled',
    'completed': 'completed',
  };
  static const Map<Object, String> _fromWire = const <Object, String>{
    'active': 'active',
    'held': 'held',
    'canceled': 'canceled',
    'completed': 'completed',
  };

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

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

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

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
