toUpdateBehavior method
Implementation
UpdateBehavior toUpdateBehavior() {
switch (this) {
case 'LOG':
return UpdateBehavior.log;
case 'UPDATE_IN_DATABASE':
return UpdateBehavior.updateInDatabase;
}
throw Exception('$this is not known in enum UpdateBehavior');
}