Poq.SDK.Node

Home > @poq/sdk-sfcc > BaseModel > getPropertyValue

BaseModel.getPropertyValue() method

Method helps to get defined properties from contract.

Signature:

getPropertyValue<T extends {
        [K in keyof T]: T[K];
    }, K extends keyof T>(propertyName: K): T[K];

Parameters

Parameter Type Description
propertyName K Property name.

Returns:

T[K]

Value of the property.

Example

// Code could get defined properties and custom properties.
instance.getPropertyValue('definedProperty');