toImageSortBy method

ImageSortBy toImageSortBy()

Implementation

ImageSortBy toImageSortBy() {
  switch (this) {
    case 'CREATION_TIME':
      return ImageSortBy.creationTime;
    case 'LAST_MODIFIED_TIME':
      return ImageSortBy.lastModifiedTime;
    case 'IMAGE_NAME':
      return ImageSortBy.imageName;
  }
  throw Exception('$this is not known in enum ImageSortBy');
}