toBcs method

List<int> toBcs({
  1. String? property,
})

Serializes the object to BCS format (List of bytes).

Implementation

List<int> toBcs({String? property}) {
  final layout = createLayout(property: property);
  return layout.serialize(toLayoutStruct());
}