toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case SessionState.active:
      return 'Active';
    case SessionState.history:
      return 'History';
  }
}