toSignalType method

SignalType toSignalType()

Implementation

SignalType toSignalType() {
  switch (this) {
    case 'Approve':
      return SignalType.approve;
    case 'Reject':
      return SignalType.reject;
    case 'StartStep':
      return SignalType.startStep;
    case 'StopStep':
      return SignalType.stopStep;
    case 'Resume':
      return SignalType.resume;
  }
  throw Exception('$this is not known in enum SignalType');
}