fromRawValue static method
Implementation
static PromotionType fromRawValue(String value) {
return PromotionType.values.firstWhere(
(e) => e.rawValue == value,
orElse: () => throw ArgumentError('Unknown PromotionType: $value'),
);
}
static PromotionType fromRawValue(String value) {
return PromotionType.values.firstWhere(
(e) => e.rawValue == value,
orElse: () => throw ArgumentError('Unknown PromotionType: $value'),
);
}