import { ObjectSerializer } from "https://deno.land/x/windmill@v1.28.1/windmill-api/models/ObjectSerializer.ts";
Static Methods
deserialize()
data: any,
type: string,
format: string,
findCorrectType(data: any, expectedType: string)
getPreferredMediaType(mediaTypes: Array<string>): 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.
normalizeMediaType(mediaType: string | undefined): string | undefined
Normalize media type
We currently do not handle any media types attributes, i.e. anything after a semicolon. All content is assumed to be UTF-8 compatible.
parse(rawData: string, mediaType: string | undefined)
Parse data from a string according to the given media type
serialize()
data: any,
type: string,
format: string,
stringify(data: any, mediaType: string): string
Convert data to a string according the given media type