When returning a JSON representation of the filter, should we set mask to this.mask.toJSON()?