umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
56 lines (55 loc) • 2.14 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.instanceOfPagedIndexResponseModel = instanceOfPagedIndexResponseModel;
exports.PagedIndexResponseModelFromJSON = PagedIndexResponseModelFromJSON;
exports.PagedIndexResponseModelFromJSONTyped = PagedIndexResponseModelFromJSONTyped;
exports.PagedIndexResponseModelToJSON = PagedIndexResponseModelToJSON;
exports.PagedIndexResponseModelToJSONTyped = PagedIndexResponseModelToJSONTyped;
const PagedIndexResponseModelItemsInner_1 = require("./PagedIndexResponseModelItemsInner");
/**
* Check if a given object implements the PagedIndexResponseModel interface.
*/
function instanceOfPagedIndexResponseModel(value) {
if (!('total' in value) || value['total'] === undefined)
return false;
if (!('items' in value) || value['items'] === undefined)
return false;
return true;
}
function PagedIndexResponseModelFromJSON(json) {
return PagedIndexResponseModelFromJSONTyped(json, false);
}
function PagedIndexResponseModelFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'total': json['total'],
'items': (json['items'].map(PagedIndexResponseModelItemsInner_1.PagedIndexResponseModelItemsInnerFromJSON)),
};
}
function PagedIndexResponseModelToJSON(json) {
return PagedIndexResponseModelToJSONTyped(json, false);
}
function PagedIndexResponseModelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'total': value['total'],
'items': (value['items'].map(PagedIndexResponseModelItemsInner_1.PagedIndexResponseModelItemsInnerToJSON)),
};
}