Serializes the variant into BCS format (List of bytes).
List<int> toVariantBcs({String? property}) { final layout = createVariantLayout(property: property); return layout.serialize(toVariantLayoutStruct()); }