// #region Imports
// #endregion
/**
 * The `CustomFormData`extends CustomFormData  class.
 *
 * @public
 */
export class CustomFormData extends FormData {
    // #region Fields
    _form = null;
    _submitter = null;
    _name = undefined;
    // #endregion
    // #region Ctor
    /**
     * Constructs a new instance of the `CustomFormData` class.
     *
     * @public
     */
    constructor(form, submitter, name) {
        super(form, submitter);
        this._form = form ?? null;
        this._submitter = submitter ?? null;
        this._name = name ?? undefined;
    }
    // #endregion
    // #region Properties
    /**
     * Returns the name of the form element.
     *
     * @public
     * @readonly
     */
    get name() {
        return this._name;
    }
    // #endregion
    // #region Methods
    /**
     * Returns a JSON object representation of the form data.
     *
     * @public
     */
    raw() {
        const result = {};
        this.forEach((value, key, parent) => {
            result[key] = value;
        });
        return result;
    }
}
//# sourceMappingURL=CustomFormData.js.map