fromValue static method
- String? value
Parses PlaylistVoteEditOptions from a raw value.
Implementation
static PlaylistVoteEditOptions? fromValue(String? value) {
if (value == null) return null;
return PlaylistVoteEditOptions.values.firstWhere(
(e) => e.value == value,
orElse: () => throw FormatException('Invalid value: $value'),
);
}