toImageVersionSortBy method

ImageVersionSortBy toImageVersionSortBy()

Implementation

ImageVersionSortBy toImageVersionSortBy() {
  switch (this) {
    case 'CREATION_TIME':
      return ImageVersionSortBy.creationTime;
    case 'LAST_MODIFIED_TIME':
      return ImageVersionSortBy.lastModifiedTime;
    case 'VERSION':
      return ImageVersionSortBy.version;
  }
  throw Exception('$this is not known in enum ImageVersionSortBy');
}