winccoa-manager
    Preparing search index...

    Variable Mapping

    Mapping: {
        convertFromObject(value: object, valueTypes: object): Vrpc.Mapping;
        new (): Vrpc.Mapping;
    }

    Implementation of Mapping.

    Type Declaration

    • convertFromObject: function
      • Converts a JavaScript object into a Mapping.

        Parameters

        • value: object

          The object value.

        • valueTypes: object

          The types of the values in the object. This is a mapping of keys to types. Note that in this context, it is not possible to determine the required parameter types automatically, therefore it is necessary to specify them explicitely.

        Returns Vrpc.Mapping

        The created Mapping.

        const mapping = Mapping.convertFromObject(
        { key1: 'value1', key2: 42 },
        { key1: VariableType.TEXT_VAR, key2: VariableType.INTEGER_VAR }
        );