umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
56 lines (55 loc) • 2.45 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.instanceOfPagedDictionaryOverviewResponseModel = instanceOfPagedDictionaryOverviewResponseModel;
exports.PagedDictionaryOverviewResponseModelFromJSON = PagedDictionaryOverviewResponseModelFromJSON;
exports.PagedDictionaryOverviewResponseModelFromJSONTyped = PagedDictionaryOverviewResponseModelFromJSONTyped;
exports.PagedDictionaryOverviewResponseModelToJSON = PagedDictionaryOverviewResponseModelToJSON;
exports.PagedDictionaryOverviewResponseModelToJSONTyped = PagedDictionaryOverviewResponseModelToJSONTyped;
const PagedDictionaryOverviewResponseModelItemsInner_1 = require("./PagedDictionaryOverviewResponseModelItemsInner");
/**
* Check if a given object implements the PagedDictionaryOverviewResponseModel interface.
*/
function instanceOfPagedDictionaryOverviewResponseModel(value) {
if (!('total' in value) || value['total'] === undefined)
return false;
if (!('items' in value) || value['items'] === undefined)
return false;
return true;
}
function PagedDictionaryOverviewResponseModelFromJSON(json) {
return PagedDictionaryOverviewResponseModelFromJSONTyped(json, false);
}
function PagedDictionaryOverviewResponseModelFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'total': json['total'],
'items': (json['items'].map(PagedDictionaryOverviewResponseModelItemsInner_1.PagedDictionaryOverviewResponseModelItemsInnerFromJSON)),
};
}
function PagedDictionaryOverviewResponseModelToJSON(json) {
return PagedDictionaryOverviewResponseModelToJSONTyped(json, false);
}
function PagedDictionaryOverviewResponseModelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'total': value['total'],
'items': (value['items'].map(PagedDictionaryOverviewResponseModelItemsInner_1.PagedDictionaryOverviewResponseModelItemsInnerToJSON)),
};
}