toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case SessionState.active:
      return 'ACTIVE';
    case SessionState.pending:
      return 'PENDING';
    case SessionState.expired:
      return 'EXPIRED';
  }
}