toState method
Implementation
State toState() {
switch (this) {
case 'Pending':
return State.pending;
case 'Active':
return State.active;
case 'Inactive':
return State.inactive;
case 'Failed':
return State.failed;
}
throw Exception('$this is not known in enum State');
}