toOrigin method
Implementation
Origin toOrigin() {
switch (this) {
case 'OWNED':
return Origin.owned;
case 'ENTITLED':
return Origin.entitled;
}
throw Exception('$this is not known in enum Origin');
}
Origin toOrigin() {
switch (this) {
case 'OWNED':
return Origin.owned;
case 'ENTITLED':
return Origin.entitled;
}
throw Exception('$this is not known in enum Origin');
}