parseChapterOrdersFromEnum static method

String parseChapterOrdersFromEnum(
  1. ChapterOrders order
)

Implementation

static String parseChapterOrdersFromEnum(ChapterOrders order) {
  switch (order) {
    case ChapterOrders.createdAt:
      return 'createdAt';
    case ChapterOrders.updatedAt:
      return 'updatedAt';
    case ChapterOrders.publishAt:
      return 'publishAt';
    case ChapterOrders.readableAt:
      return 'readableAt';
    case ChapterOrders.volume:
      return 'volume';
    case ChapterOrders.chapter:
      return 'chapter';
  }
}