var CamelCase = (function () {
    function CamelCase() {
    }
    CamelCase.convertKeysToCamelCase = function (key, value) {
        if (value && typeof value === 'object') {
            for (var k in value) {
                if (/^[A-Z]/.test(k) && Object.hasOwnProperty.call(value, k)) {
                    value[this.toCamelCase(k)] = value[k];
                    delete value[k];
                }
            }
        }
        return value;
    };
    CamelCase.toCamelCase = function (key) {
        if (key != null && key.length > 0) {
            var camelCased = key.charAt(0).toLowerCase();
            if (key.length > 1) {
                camelCased += key.substring(1);
            }
            return camelCased;
        }
        return key;
    };
    return CamelCase;
}());
export { CamelCase };

//# sourceMappingURL=came-case.js.map
