toEventSourcePosition method

EventSourcePosition toEventSourcePosition()

Implementation

EventSourcePosition toEventSourcePosition() {
  switch (this) {
    case 'TRIM_HORIZON':
      return EventSourcePosition.trimHorizon;
    case 'LATEST':
      return EventSourcePosition.latest;
    case 'AT_TIMESTAMP':
      return EventSourcePosition.atTimestamp;
  }
  throw Exception('$this is not known in enum EventSourcePosition');
}