fromValue static method
Implementation
static LiteRtLmInputDataType fromValue(int value) => switch (value) {
0 => kLiteRtLmInputDataTypeText,
1 => kLiteRtLmInputDataTypeImage,
2 => kLiteRtLmInputDataTypeImageEnd,
3 => kLiteRtLmInputDataTypeAudio,
4 => kLiteRtLmInputDataTypeAudioEnd,
_ => throw ArgumentError('Unknown value for LiteRtLmInputDataType: $value'),
};