fromParams static method

Action fromParams(
  1. Map<String, String> params
)

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;
  }
}