fromJSON static method
Implementation
static StateToUpdate fromJSON(String data) {
switch (data) {
case "VALUE":
return StateToUpdate.value;
case "VISIBLE":
return StateToUpdate.visible;
case "READONLY":
return StateToUpdate.readonly;
case "CLAZZ":
return StateToUpdate.clazz;
case "REQUIRED":
return StateToUpdate.required;
default:
throw ArgumentError('Invalid StateToUpdate entry value $data');
}
}