toShardFilterType method

ShardFilterType toShardFilterType()

Implementation

ShardFilterType toShardFilterType() {
  switch (this) {
    case 'AFTER_SHARD_ID':
      return ShardFilterType.afterShardId;
    case 'AT_TRIM_HORIZON':
      return ShardFilterType.atTrimHorizon;
    case 'FROM_TRIM_HORIZON':
      return ShardFilterType.fromTrimHorizon;
    case 'AT_LATEST':
      return ShardFilterType.atLatest;
    case 'AT_TIMESTAMP':
      return ShardFilterType.atTimestamp;
    case 'FROM_TIMESTAMP':
      return ShardFilterType.fromTimestamp;
  }
  throw Exception('$this is not known in enum ShardFilterType');
}