wallee
Version:
TypeScript/JavaScript client for wallee
37 lines (36 loc) • 1.34 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfRenderedDocument = instanceOfRenderedDocument;
exports.RenderedDocumentFromJSON = RenderedDocumentFromJSON;
exports.RenderedDocumentFromJSONTyped = RenderedDocumentFromJSONTyped;
exports.RenderedDocumentToJSON = RenderedDocumentToJSON;
exports.RenderedDocumentToJSONTyped = RenderedDocumentToJSONTyped;
/**
* Check if a given object implements the RenderedDocument interface.
*/
function instanceOfRenderedDocument(value) {
return true;
}
function RenderedDocumentFromJSON(json) {
return RenderedDocumentFromJSONTyped(json, false);
}
function RenderedDocumentFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'documentTemplateType': json['documentTemplateType'] == null ? undefined : json['documentTemplateType'],
'data': json['data'] == null ? undefined : json['data'],
'mimeType': json['mimeType'] == null ? undefined : json['mimeType'],
'title': json['title'] == null ? undefined : json['title'],
};
}
function RenderedDocumentToJSON(json) {
return RenderedDocumentToJSONTyped(json, false);
}
function RenderedDocumentToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}