Skip to main content
Version: Next 🚧

[F] getEffectivePayloadType

function getEffectivePayloadType(context, type): Model

If the given type is an anonymous model and all of its properties excluding header/query/path/status-code are sourced from a named model, returns that original named model. Otherwise the given type is returned unchanged.

Parameters​

ParameterTypeDescription
contextTCGCContext
typeModel

Returns​

Model