"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toClientReviewListItem = void 0;
const toClientReviewListItem = (row, media) => ({
    id: row.id,
    clientName: row.clientName,
    reviewText: row.reviewText,
    postUrl: row.postUrl,
    starRating: row.starRating,
    isActive: row.isActive,
    sortOrder: row.sortOrder,
    media: media.map((m) => ({
        id: m.id,
        url: m.url,
        altText: m.altText,
        isPrimary: m.isPrimary,
        sortOrder: m.sortOrder,
    })),
    createdAt: row.createdAt,
    updatedAt: row.updatedAt,
});
exports.toClientReviewListItem = toClientReviewListItem;
//# sourceMappingURL=clientReviewSerializers.js.map