toActivityTaskTimeoutType method
Implementation
ActivityTaskTimeoutType toActivityTaskTimeoutType() {
switch (this) {
case 'START_TO_CLOSE':
return ActivityTaskTimeoutType.startToClose;
case 'SCHEDULE_TO_START':
return ActivityTaskTimeoutType.scheduleToStart;
case 'SCHEDULE_TO_CLOSE':
return ActivityTaskTimeoutType.scheduleToClose;
case 'HEARTBEAT':
return ActivityTaskTimeoutType.heartbeat;
}
throw Exception('$this is not known in enum ActivityTaskTimeoutType');
}