"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformProductVariant = transformProductVariant;
function transformProductVariant(payload) {
    return {
        productVariant: {
            id: payload.productVariant?.variantId,
            image: {
                src: payload.productVariant?.imageSrc
            },
            price: {
                amount: payload.productVariant?.priceAmount
            },
            product: {
                id: payload.productVariant?.id,
                title: payload.productVariant?.title,
                untranslatedTitle: payload.productVariant?.untranslatedTitle,
                vendor: payload.productVariant?.vendor,
                type: payload.productVariant?.type,
                url: payload.productVariant?.url
            },
            sku: payload.productVariant?.sku,
            title: payload.productVariant?.title,
            untranslatedTitle: payload.productVariant?.untranslatedTitle
        }
    };
}
//# sourceMappingURL=transformProductVariant.js.map