toEventType method
Implementation
EventType toEventType() {
switch (this) {
case 'AssignmentAccepted':
return EventType.assignmentAccepted;
case 'AssignmentAbandoned':
return EventType.assignmentAbandoned;
case 'AssignmentReturned':
return EventType.assignmentReturned;
case 'AssignmentSubmitted':
return EventType.assignmentSubmitted;
case 'AssignmentRejected':
return EventType.assignmentRejected;
case 'AssignmentApproved':
return EventType.assignmentApproved;
case 'HITCreated':
return EventType.hITCreated;
case 'HITExpired':
return EventType.hITExpired;
case 'HITReviewable':
return EventType.hITReviewable;
case 'HITExtended':
return EventType.hITExtended;
case 'HITDisposed':
return EventType.hITDisposed;
case 'Ping':
return EventType.ping;
}
throw Exception('$this is not known in enum EventType');
}