adding attributes for optional parameters with value of None to command data