fromValue static method

CertificateType fromValue(
  1. int? value
)

Retrieves a CertificateType based on its value.

Implementation

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