[F] addEncodeInfo
function addEncodeInfo( context, type, propertyType, defaultContentType?): [void, readonly Diagnostic[]];Add encoding info onto an sdk type. Since the encoding decorator decorates the ModelProperty, we add the encoding info onto the property’s internal type.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
context | TCGCContext | sdk context |
type | ModelProperty | Scalar | the original typespec type. Used to grab the encoding decorator off of |
propertyType | SdkType | the type of the property, i.e. the internal type that we add the encoding info onto |
defaultContentType? | string | - |
Returns
Section titled “Returns”[void, readonly Diagnostic[]]