serialize method

List<int> serialize()

Implementation

List<int> serialize() {
  return CborListValue.fixedLength([
    CborBytesValue(rootHashBytes),
    attrs.toJson(),
    CborIntValue(type.value)
  ]).encode();
}