serializePayload method
Call to serialize only the payload, no header, returns a int with a serialized size
Implementation
@override
int serializePayload(
imc.DevCalibrationControl? message, ByteData byteData, int offset) {
if (message == null) return 0;
var byteOffset = offset;
// field op
byteData.setUint8(byteOffset, message.op.value);
byteOffset += 1;
return byteOffset - offset;
}