toTaskDefinitionStatus method

TaskDefinitionStatus toTaskDefinitionStatus()

Implementation

TaskDefinitionStatus toTaskDefinitionStatus() {
  switch (this) {
    case 'ACTIVE':
      return TaskDefinitionStatus.active;
    case 'INACTIVE':
      return TaskDefinitionStatus.inactive;
  }
  throw Exception('$this is not known in enum TaskDefinitionStatus');
}