fromValue static method
Implementation
static ServiceProtocol fromValue(int? value) {
return values.firstWhere(
(e) => e.id == value,
orElse:
() =>
throw BuError(
DefaultErrorType.notFound,
"No matching item found for the given value. null",
),
);
}