Converting inbound request to hash