toAppStatus method

AppStatus toAppStatus()

Implementation

AppStatus toAppStatus() {
  switch (this) {
    case 'CREATING':
      return AppStatus.creating;
    case 'ACTIVE':
      return AppStatus.active;
    case 'UPDATING':
      return AppStatus.updating;
    case 'DELETING':
      return AppStatus.deleting;
    case 'DELETED':
      return AppStatus.deleted;
    case 'DELETE_FAILED':
      return AppStatus.deleteFailed;
  }
  throw Exception('$this is not known in enum AppStatus');
}