Export Web Parts using REST

In my previous post I discussed how you can export Web Parts using CSOM. But did you know that you can also do it using REST?