UNPKG

umbraco-management-api-client

Version:

TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)

55 lines (54 loc) 2.19 kB
"use strict"; /* 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.instanceOfSortingRequestModel = instanceOfSortingRequestModel; exports.SortingRequestModelFromJSON = SortingRequestModelFromJSON; exports.SortingRequestModelFromJSONTyped = SortingRequestModelFromJSONTyped; exports.SortingRequestModelToJSON = SortingRequestModelToJSON; exports.SortingRequestModelToJSONTyped = SortingRequestModelToJSONTyped; const SortingRequestModelSortingInner_1 = require("./SortingRequestModelSortingInner"); const ReferenceByIdModel_1 = require("./ReferenceByIdModel"); /** * Check if a given object implements the SortingRequestModel interface. */ function instanceOfSortingRequestModel(value) { if (!('sorting' in value) || value['sorting'] === undefined) return false; return true; } function SortingRequestModelFromJSON(json) { return SortingRequestModelFromJSONTyped(json, false); } function SortingRequestModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'parent': json['parent'] == null ? undefined : (0, ReferenceByIdModel_1.ReferenceByIdModelFromJSON)(json['parent']), 'sorting': (json['sorting'].map(SortingRequestModelSortingInner_1.SortingRequestModelSortingInnerFromJSON)), }; } function SortingRequestModelToJSON(json) { return SortingRequestModelToJSONTyped(json, false); } function SortingRequestModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'parent': (0, ReferenceByIdModel_1.ReferenceByIdModelToJSON)(value['parent']), 'sorting': (value['sorting'].map(SortingRequestModelSortingInner_1.SortingRequestModelSortingInnerToJSON)), }; }