umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
56 lines (55 loc) • 2.19 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.instanceOfPagedSegmentResponseModel = instanceOfPagedSegmentResponseModel;
exports.PagedSegmentResponseModelFromJSON = PagedSegmentResponseModelFromJSON;
exports.PagedSegmentResponseModelFromJSONTyped = PagedSegmentResponseModelFromJSONTyped;
exports.PagedSegmentResponseModelToJSON = PagedSegmentResponseModelToJSON;
exports.PagedSegmentResponseModelToJSONTyped = PagedSegmentResponseModelToJSONTyped;
const PagedSegmentResponseModelItemsInner_1 = require("./PagedSegmentResponseModelItemsInner");
/**
* Check if a given object implements the PagedSegmentResponseModel interface.
*/
function instanceOfPagedSegmentResponseModel(value) {
if (!('total' in value) || value['total'] === undefined)
return false;
if (!('items' in value) || value['items'] === undefined)
return false;
return true;
}
function PagedSegmentResponseModelFromJSON(json) {
return PagedSegmentResponseModelFromJSONTyped(json, false);
}
function PagedSegmentResponseModelFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'total': json['total'],
'items': (json['items'].map(PagedSegmentResponseModelItemsInner_1.PagedSegmentResponseModelItemsInnerFromJSON)),
};
}
function PagedSegmentResponseModelToJSON(json) {
return PagedSegmentResponseModelToJSONTyped(json, false);
}
function PagedSegmentResponseModelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'total': value['total'],
'items': (value['items'].map(PagedSegmentResponseModelItemsInner_1.PagedSegmentResponseModelItemsInnerToJSON)),
};
}