Does anybody know how to generate machine definitions (to display the bed shape etc.)

Does anybody know how to generate machine definitions (to display the bed shape etc.) for Cura 2.4? Like this one? +Ultimaker

It’s just an STL referenced in the json, check out the Cura/CuraEngine git hub for examples