fromJSON static method
Implementation
static Trigger fromJSON(String data) {
switch (data) {
case "INIT":
return Trigger.init;
case "CHANGE":
return Trigger.change;
case "CLICK":
return Trigger.click;
case "VISIBLE":
return Trigger.visible;
case "ERROR":
return Trigger.error;
case "VALID":
return Trigger.valid;
case "EVENT":
return Trigger.event;
default:
throw ArgumentError('Invalid Trigger entry value $data');
}
}