function nullFromDb(value) {
    if (value.NULL) {
        return null;
    }
    else {
        throw new Error(`there is no NULL value defiend on given attribute value ${value}`);
    }
}
function nullToDb(value) {
    if (value !== null) {
        throw new Error(`null mapper only supports null value, got ${value}`);
    }
    return { NULL: true };
}
export const NullMapper = {
    fromDb: nullFromDb,
    toDb: nullToDb,
};
//# sourceMappingURL=null.mapper.js.map