fromJson$Enum$PurchaseStatusEnum function

Enum$PurchaseStatusEnum fromJson$Enum$PurchaseStatusEnum(
  1. String value
)

Implementation

Enum$PurchaseStatusEnum fromJson$Enum$PurchaseStatusEnum(String value) {
  switch (value) {
    case r'OPEN':
      return Enum$PurchaseStatusEnum.OPEN;
    case r'CANCELED':
      return Enum$PurchaseStatusEnum.CANCELED;
    case r'CONFIRMED':
      return Enum$PurchaseStatusEnum.CONFIRMED;
    case r'DELIVERED':
      return Enum$PurchaseStatusEnum.DELIVERED;
    default:
      return Enum$PurchaseStatusEnum.$unknown;
  }
}