Hi everybody,
I want to convert all my block definitions to JSON format, but now I'm stuck on the SWITCH block that I used from this
link.
In that Block two mutators (?) are defined:
this.setMutator(new Blockly.Mutator(['case_incaseof','case_default']));
However if I want to convert that to JSON, I see this in the
documentation:
Mutators are the only way to provide custom serializable state on a block.
They are declared on a block's JSON definition using the mutator key.
Only one mutator may be declared on a block.
{
//...,
"mutator": "controls_if_mutator",
}
Is it possible to do this in JSON?
Thanks again !!
Bart