import BadDataException from "../Exception/BadDataException";
import { ObjectType } from "../JSON";
import QueryOperator from "./QueryOperator";
export default class NotNull extends QueryOperator {
    constructor() {
        super();
    }
    toJSON() {
        return {
            _type: ObjectType.NotNull,
            value: null,
        };
    }
    static fromJSON(json) {
        if (json["_type"] === ObjectType.NotNull) {
            return new NotNull();
        }
        throw new BadDataException("Invalid JSON: " + JSON.stringify(json));
    }
    toString() {
        return "";
    }
}
//# sourceMappingURL=NotNull.js.map