fromParams static method
Implementation
static Action fromParams(Map<String, String> params) {
switch (params['action']) {
case 'processing':
return Action.processing;
case 'cancelling':
return Action.cancelling;
default:
return Action.none;
}
}