valueOf static method
Returns KnownSearchPostsSort associated with value
, otherwise null.
Implementation
static KnownSearchPostsSort? valueOf(final String? value) {
if (value == null) return null;
for (final $value in values) {
if ($value.value == value) {
return $value;
}
}
return null;
}