bytes method
Casts data to a List<int> (raw bytes) and returns it.
Throws LuckyParseException if data is not a List<int>.
Implementation
List<int> bytes() {
try {
return data as List<int>;
} catch (e) {
throw LuckyParseException(
'Expected List<int>, got ${data.runtimeType}',
cause: e,
);
}
}