Request variables different when local vs deployed using serverless-offline plugin

Wondering if I could get some help. I’m using serverless v1.0rc2 with serverless-offline plugin. I’m new to serverless so I am trying to get an understanding. When I run locally with serverless-offline, my requests parameters are, event.def, but when I deploy, my request parameters are, event.body.def. Is that normal? My expectation would be the parameters would have been and event.def on both local and once deployed.

I am defining the request template as events:
- http:
path: users
method: post
cors: true
application/json: >
“abc”: “$input.params(‘abc’)”,
“def”: “$input.params(‘def’)”