toDeleteBehavior method

DeleteBehavior toDeleteBehavior()

Implementation

DeleteBehavior toDeleteBehavior() {
  switch (this) {
    case 'LOG':
      return DeleteBehavior.log;
    case 'DELETE_FROM_DATABASE':
      return DeleteBehavior.deleteFromDatabase;
    case 'DEPRECATE_IN_DATABASE':
      return DeleteBehavior.deprecateInDatabase;
  }
  throw Exception('$this is not known in enum DeleteBehavior');
}