toTriggerState method

TriggerState toTriggerState()

Implementation

TriggerState toTriggerState() {
  switch (this) {
    case 'CREATING':
      return TriggerState.creating;
    case 'CREATED':
      return TriggerState.created;
    case 'ACTIVATING':
      return TriggerState.activating;
    case 'ACTIVATED':
      return TriggerState.activated;
    case 'DEACTIVATING':
      return TriggerState.deactivating;
    case 'DEACTIVATED':
      return TriggerState.deactivated;
    case 'DELETING':
      return TriggerState.deleting;
    case 'UPDATING':
      return TriggerState.updating;
  }
  throw Exception('$this is not known in enum TriggerState');
}