fromJson static method
Implementation
static AutomationType fromJson(dynamic data) {
switch (data?.toString()) {
case "date":
return AutomationType.date_;
case "interval":
return AutomationType.interval_;
default:
throw ('Unknown enum value to decode: $data');
}
}