fromValue static method
Returns the option for value, or null when value is null or is not
one of the four known options.
An unrecognised value is treated as unset rather than an error: the server may send an option a given SDK build does not know yet.
Implementation
static QuotedRepliesOptions? fromValue(int? value) {
if (value == null) return null;
for (final option in QuotedRepliesOptions.values) {
if (option.value == value) {
return option;
}
}
return null;
}