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