[F] getEffectivePayloadType
function getEffectivePayloadType( context, type, visibility?): Model;If the given type is an anonymous model, returns a named model with same shape. The finding logic will ignore all the properties of header/query/path/status-code metadata, as well as the properties that are not visible in the given visibility if provided. If the model found is also anonymous, the input type is returned unchanged.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
context | TCGCContext | |
type | Model | |
visibility? | Visibility | - |
Returns
Section titled “Returns”Model