"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
class DataFormUtilities {
    static generateDefaultItem(formDefinition) {
        const newDataObject = {};
        for (let i = 0; i < formDefinition.fields.length; i++) {
            const field = formDefinition.fields[i];
            if (field.defaultValue !== undefined) {
                newDataObject[field.id] = field.defaultValue;
            }
        }
        return newDataObject;
    }
}
exports.default = DataFormUtilities;

//# sourceMappingURL=../maps/dataform/DataFormUtilities.js.map
