DeserializationPolicyOptions interface

Options to configure API response deserialization.

Properties

expectedContentTypes

Configures the expected content types for the deserialization of JSON and XML response bodies.

parseXML

A function that is able to parse XML. Required for XML support.

serializerOptions

Configures behavior of xml parser and builder.

Property Details

expectedContentTypes

Configures the expected content types for the deserialization of JSON and XML response bodies.

expectedContentTypes?: DeserializationContentTypes

Property Value

parseXML

A function that is able to parse XML. Required for XML support.

parseXML?: (str: string, opts?: XmlOptions) => Promise<any>

Property Value

(str: string, opts?: XmlOptions) => Promise<any>

serializerOptions

Configures behavior of xml parser and builder.

serializerOptions?: SerializerOptions

Property Value