toSnapshotAttributeToSortBy method

SnapshotAttributeToSortBy toSnapshotAttributeToSortBy()

Implementation

SnapshotAttributeToSortBy toSnapshotAttributeToSortBy() {
  switch (this) {
    case 'SOURCE_TYPE':
      return SnapshotAttributeToSortBy.sourceType;
    case 'TOTAL_SIZE':
      return SnapshotAttributeToSortBy.totalSize;
    case 'CREATE_TIME':
      return SnapshotAttributeToSortBy.createTime;
  }
  throw Exception('$this is not known in enum SnapshotAttributeToSortBy');
}