toShardIteratorType method

ShardIteratorType toShardIteratorType()

Implementation

ShardIteratorType toShardIteratorType() {
  switch (this) {
    case 'AT_SEQUENCE_NUMBER':
      return ShardIteratorType.atSequenceNumber;
    case 'AFTER_SEQUENCE_NUMBER':
      return ShardIteratorType.afterSequenceNumber;
    case 'TRIM_HORIZON':
      return ShardIteratorType.trimHorizon;
    case 'LATEST':
      return ShardIteratorType.latest;
    case 'AT_TIMESTAMP':
      return ShardIteratorType.atTimestamp;
  }
  throw Exception('$this is not known in enum ShardIteratorType');
}