fromValue static method

FeatureSetMessageEncoding fromValue(
  1. int? value
)

Looks up a value by its proto wire int. Throws if not found.

Implementation

static FeatureSetMessageEncoding fromValue(int? value) {
  return FeatureSetMessageEncoding.values.firstWhere(
    (e) => e.value == value,
    orElse:
        () =>
            throw ItemNotFoundException(
              name: "FeatureSetMessageEncoding",
              value: value,
            ),
  );
}