code: def get_action(action):
      
      action_obj = Base.get_or_new_from_json_dict_with_types(
          action, {
              'postback': PostbackAction,
              'message': MessageAction,
              'uri': URIAction,
              'datetimepicker': DatetimePickerAction,
              'camera': CameraAction,
              'cameraRoll': CameraRollAction,
              'location': LocationAction,
          }
      )
      return action_obj
docs: Get action.