toTaskDefinitionFamilyStatus method

TaskDefinitionFamilyStatus toTaskDefinitionFamilyStatus()

Implementation

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