toImageSortOrder method

ImageSortOrder toImageSortOrder()

Implementation

ImageSortOrder toImageSortOrder() {
  switch (this) {
    case 'ASCENDING':
      return ImageSortOrder.ascending;
    case 'DESCENDING':
      return ImageSortOrder.descending;
  }
  throw Exception('$this is not known in enum ImageSortOrder');
}