toOrigination method
Implementation
Origination toOrigination() {
switch (this) {
case 'ALLOW':
return Origination.allow;
case 'DENY':
return Origination.deny;
}
throw Exception('$this is not known in enum Origination');
}
Origination toOrigination() {
switch (this) {
case 'ALLOW':
return Origination.allow;
case 'DENY':
return Origination.deny;
}
throw Exception('$this is not known in enum Origination');
}