ValidatorAccountType.fromValue constructor

ValidatorAccountType.fromValue(
  1. int? value
)

Implementation

factory ValidatorAccountType.fromValue(int? value) {
  return values.firstWhere(
    (element) => element.value == value,
    orElse: () => throw MessageException(
        "No ValidatorAccountType found matching the specified value",
        details: {"value": value}),
  );
}