fromWire static method
The reason for the export's wire value; values this version does not
know map to unknown.
Implementation
static LiteRtLmFinishReason fromWire(int value) => switch (value) {
1 => stop,
2 => length,
3 => contextExhausted,
4 => cancelled,
5 => error,
_ => unknown,
};