encodeRaw method

  1. @override
BcsWriter encodeRaw(
  1. BcsWriter writer,
  2. dynamic data,
  3. List typeParams,
  4. Map<String, dynamic> typeMap,
)
override

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");
  }
}