fromValue static method

DohRequestType? fromValue(
  1. int value
)

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;
}