toEventStatusCode method
Implementation
EventStatusCode toEventStatusCode() {
switch (this) {
case 'open':
return EventStatusCode.open;
case 'closed':
return EventStatusCode.closed;
case 'upcoming':
return EventStatusCode.upcoming;
}
throw Exception('$this is not known in enum EventStatusCode');
}