toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case EventSourceState.pending:
      return 'PENDING';
    case EventSourceState.active:
      return 'ACTIVE';
    case EventSourceState.deleted:
      return 'DELETED';
  }
}