Methods
Static
deserialize
- deserialize(data: any, type: string, format?: string): any
-
Parameters
-
data: any
-
type: string
-
format: string = ""
Returns any
Static
getPreferredMediaType
- getPreferredMediaType(mediaTypes: string[]): string
-
Returns string
Static
normalizeMediaType
- normalizeMediaType(mediaType: undefined | string): undefined | string
-
Parameters
-
mediaType: undefined | string
Returns undefined | string
Static
parse
- parse(rawData: string, mediaType: undefined | string): any
-
Parameters
-
rawData: string
-
mediaType: undefined | string
Returns any
Static
serialize
- serialize(data: any, type: string, format: string): any
-
Parameters
-
data: any
-
type: string
-
format: string
Returns any
Static
stringify
- stringify(data: any, mediaType: string): string
-
Parameters
-
data: any
-
mediaType: string
Returns string
From a list of possible media types, choose the one we can handle best.
The order of the given media types does not have any impact on the choice made.