"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toContentResponse = toContentResponse;
exports.toColorResponse = toColorResponse;
function toContentResponse(content) {
    return {
        id: content.id,
        page: content.page,
        section: content.section,
        type: content.type,
        key: content.key,
        value: JSON.parse(content.value),
        visible: Boolean(content.visible),
        created_at: content.created_at,
        updated_at: content.updated_at,
    };
}
function toColorResponse(color) {
    return {
        id: color.id,
        name: color.name,
        hex: color.hex,
        created_at: color.created_at,
        updated_at: color.updated_at,
    };
}
