fromValue static method
Find record type by value
Implementation
static DohRequestType? fromValue(int value) {
for (final type in DohRequestType.values) {
if (type.value == value) {
return type;
}
}
return null;
}
Find record type by value
static DohRequestType? fromValue(int value) {
for (final type in DohRequestType.values) {
if (type.value == value) {
return type;
}
}
return null;
}