Add properties to toggle serialisation of method params and return value