fromJson$Enum$ProductStructureEnum function

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

Implementation

Enum$ProductStructureEnum fromJson$Enum$ProductStructureEnum(String value) {
  switch (value) {
    case r'STOCKABLE':
      return Enum$ProductStructureEnum.STOCKABLE;
    case r'CONSUMABLE':
      return Enum$ProductStructureEnum.CONSUMABLE;
    case r'SERVICE':
      return Enum$ProductStructureEnum.SERVICE;
    default:
      return Enum$ProductStructureEnum.$unknown;
  }
}