toSerializeVariantBytes method

BuBytes toSerializeVariantBytes()

Serializes the variant to JSON.

Implementation

BuBytes toSerializeVariantBytes() {
  final layout = toVariantLayout();
  return layout.serialize(toSerializeVariantJson());
}