toEventSourceState method
Implementation
EventSourceState toEventSourceState() {
switch (this) {
case 'PENDING':
return EventSourceState.pending;
case 'ACTIVE':
return EventSourceState.active;
case 'DELETED':
return EventSourceState.deleted;
}
throw Exception('$this is not known in enum EventSourceState');
}