toStopType method
Implementation
StopType toStopType() {
switch (this) {
case 'Complete':
return StopType.complete;
case 'Cancel':
return StopType.cancel;
}
throw Exception('$this is not known in enum StopType');
}
StopType toStopType() {
switch (this) {
case 'Complete':
return StopType.complete;
case 'Cancel':
return StopType.cancel;
}
throw Exception('$this is not known in enum StopType');
}