encodeRaw method
Implementation
@override
BcsWriter encodeRaw(writer, data, typeParams, typeMap) {
if (validateCb(data)) {
return encodeCb(writer, data, typeParams, typeMap);
} else {
throw ArgumentError("Validation failed for data: $data");
}
}