from method

Implementation

OverseerrRequestSortType? from(String? type) {
  switch (type) {
    case 'added':
      return OverseerrRequestSortType.ADDED;
    case 'modified':
      return OverseerrRequestSortType.MODIFIED;
    default:
      return null;
  }
}