fromIdentifier static method

BlockchainUtilsSerializationIdentifier fromIdentifier(
  1. int? value
)

Implementation

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