I’m trying to populate an object based on another field. e.g. if i’ve got a hit type field of “page_view”, “exception” and associated json objects of exceptionInfo.isFatal, exceptionInfo.message, etc. So when the hit type is “page_view” i need to null out the exceptionInfo object since its not relevent for a page_view. I CAN get the fields to null out using nil and a function but its more natural to have the entire exceptionInfo object as null rather then the child fields.
Is this possible?