toAliasLifecycle method

AliasLifecycle toAliasLifecycle()

Implementation

AliasLifecycle toAliasLifecycle() {
  switch (this) {
    case 'AVAILABLE':
      return AliasLifecycle.available;
    case 'CREATING':
      return AliasLifecycle.creating;
    case 'DELETING':
      return AliasLifecycle.deleting;
    case 'CREATE_FAILED':
      return AliasLifecycle.createFailed;
    case 'DELETE_FAILED':
      return AliasLifecycle.deleteFailed;
  }
  throw Exception('$this is not known in enum AliasLifecycle');
}