Home > @poq/sdk-sfcc > BaseModel > getPropertyValue
Method helps to get custom properties of object since they are not defined in schema.
Signature:
getPropertyValue<T>(propertyName: string): T;
Parameter | Type | Description |
---|---|---|
propertyName | string | Property name. |
Returns:
T
Value of the property.
// Code could get defined properties and custom properties.
instance.getPropertyValue('c_someCustomProperty');