umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
56 lines (55 loc) • 2.08 kB
JavaScript
;
/* tslint:disable */
/* eslint-disable */
/**
* Umbraco Management API
* This shows all APIs available in this version of Umbraco - including all the legacy apis that are available for backward compatibility
*
* The version of the OpenAPI document: Latest
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfDocumentTypeSortModel = instanceOfDocumentTypeSortModel;
exports.DocumentTypeSortModelFromJSON = DocumentTypeSortModelFromJSON;
exports.DocumentTypeSortModelFromJSONTyped = DocumentTypeSortModelFromJSONTyped;
exports.DocumentTypeSortModelToJSON = DocumentTypeSortModelToJSON;
exports.DocumentTypeSortModelToJSONTyped = DocumentTypeSortModelToJSONTyped;
const ReferenceByIdModel_1 = require("./ReferenceByIdModel");
/**
* Check if a given object implements the DocumentTypeSortModel interface.
*/
function instanceOfDocumentTypeSortModel(value) {
if (!('documentType' in value) || value['documentType'] === undefined)
return false;
if (!('sortOrder' in value) || value['sortOrder'] === undefined)
return false;
return true;
}
function DocumentTypeSortModelFromJSON(json) {
return DocumentTypeSortModelFromJSONTyped(json, false);
}
function DocumentTypeSortModelFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'documentType': (0, ReferenceByIdModel_1.ReferenceByIdModelFromJSON)(json['documentType']),
'sortOrder': json['sortOrder'],
};
}
function DocumentTypeSortModelToJSON(json) {
return DocumentTypeSortModelToJSONTyped(json, false);
}
function DocumentTypeSortModelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'documentType': (0, ReferenceByIdModel_1.ReferenceByIdModelToJSON)(value['documentType']),
'sortOrder': value['sortOrder'],
};
}