def serialize(self,writer: SerializationWriter) -> None:
        """
        Serializes information the current object
        param writer: Serialization writer to use to serialize this model
        Returns: None
        """
        if writer is None:
            raise TypeError("writer cannot be null.")
        writer.write_bool_value("cellularDataBlockWhenRoaming", self.cellular_data_block_when_roaming)
        writer.write_bool_value("cellularDataBlocked", self.cellular_data_blocked)
        writer.write_collection_of_object_values("managedApps", self.managed_apps)
        writer.write_str_value("@odata.type", self.odata_type)
        writer.write_additional_data_value(self.additional_data)

        Serializes information the current object
        param writer: Serialization writer to use to serialize this model
        Returns: None
        
msgraph/generated/models/ios_network_usage_rule.py