enum OrderType {
  dineIn('DINE IN'),
  takeAway('TAKE AWAY'),
  grab('GRAB'),
  delivery('DELIVERY');

  final String value;
  const OrderType(this.value);

  static OrderType fromString(String value) {
    return OrderType.values.firstWhere(
      (type) => type.value == value,
      orElse: () => OrderType.dineIn,
    );
  }
} 