Renamed 'params' in event obj to 'toParams' to be consistent with fromState/fromParams.