decode_enum
decode_enum(enum: type[E], data: Any)The member of enum whose lowercase name is data.
Raises
| Name | Type | Description |
|---|---|---|
| OmkJsonError | for a string that names no member (including a member’s own value, where that differs from its name), or for anything that is not a string. |