"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertGroupToHubGroup = convertGroupToHubGroup;
const PropertyMapper_1 = require("../../core/_internal/PropertyMapper");
const computeProps_1 = require("./computeProps");
const getPropertyMap_1 = require("./getPropertyMap");
/**
 * Convert an IGroup to a Hub Group
 * @param group
 * @param requestOptions
 */
function convertGroupToHubGroup(group, entitySettings, requestOptions) {
    const mapper = new PropertyMapper_1.PropertyMapper((0, getPropertyMap_1.getPropertyMap)());
    const hubGroup = mapper.storeToEntity(group, {});
    return (0, computeProps_1.computeProps)(group, hubGroup, entitySettings, requestOptions);
}
//# sourceMappingURL=convertGroupToHubGroup.js.map