toImageVersionSortOrder method

ImageVersionSortOrder toImageVersionSortOrder()

Implementation

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