toAction method

Action toAction()

Implementation

Action toAction() {
  switch (this) {
    case 'OPEN_APP':
      return Action.openApp;
    case 'DEEP_LINK':
      return Action.deepLink;
    case 'URL':
      return Action.url;
  }
  throw Exception('$this is not known in enum Action');
}