parseSearchOrdersFromEnum static method
String
parseSearchOrdersFromEnum(
)
Implementation
static String parseSearchOrdersFromEnum(SearchOrders order) {
switch (order) {
case SearchOrders.title:
return 'title';
case SearchOrders.year:
return 'year';
case SearchOrders.createdAt:
return 'createdAt';
case SearchOrders.updatedAt:
return 'updatedAt';
case SearchOrders.latestUploadedChapter:
return 'latestUploadedChapter';
case SearchOrders.followedCount:
return 'followedCount';
case SearchOrders.relevance:
return 'relevance';
case SearchOrders.rating:
return 'rating';
}
}