fromValue static method
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}),
);
}