Uint8List toBinary(Type transactionType) { var buffer = ser.SerialBuffer(Uint8List(0)); transactionType.serialize?.call(transactionType, buffer, this.toJson()); return buffer.asUint8List(); }