toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case EventStatusCode.open:
      return 'open';
    case EventStatusCode.closed:
      return 'closed';
    case EventStatusCode.upcoming:
      return 'upcoming';
  }
}