toTriggerType method
Implementation
TriggerType toTriggerType() {
switch (this) {
case 'SCHEDULED':
return TriggerType.scheduled;
case 'CONDITIONAL':
return TriggerType.conditional;
case 'ON_DEMAND':
return TriggerType.onDemand;
}
throw Exception('$this is not known in enum TriggerType');
}