wallee
Version:
TypeScript/JavaScript client for wallee
37 lines (36 loc) • 1.55 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfDocumentTemplateListResponse = instanceOfDocumentTemplateListResponse;
exports.DocumentTemplateListResponseFromJSON = DocumentTemplateListResponseFromJSON;
exports.DocumentTemplateListResponseFromJSONTyped = DocumentTemplateListResponseFromJSONTyped;
exports.DocumentTemplateListResponseToJSON = DocumentTemplateListResponseToJSON;
exports.DocumentTemplateListResponseToJSONTyped = DocumentTemplateListResponseToJSONTyped;
const DocumentTemplate_1 = require("./DocumentTemplate");
/**
* Check if a given object implements the DocumentTemplateListResponse interface.
*/
function instanceOfDocumentTemplateListResponse(value) {
return true;
}
function DocumentTemplateListResponseFromJSON(json) {
return DocumentTemplateListResponseFromJSONTyped(json, false);
}
function DocumentTemplateListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(DocumentTemplate_1.DocumentTemplateFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function DocumentTemplateListResponseToJSON(json) {
return DocumentTemplateListResponseToJSONTyped(json, false);
}
function DocumentTemplateListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}