umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
51 lines (50 loc) • 2.07 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.SearchResultResponseModelFieldsInnerFromJSON = SearchResultResponseModelFieldsInnerFromJSON;
exports.SearchResultResponseModelFieldsInnerFromJSONTyped = SearchResultResponseModelFieldsInnerFromJSONTyped;
exports.SearchResultResponseModelFieldsInnerToJSON = SearchResultResponseModelFieldsInnerToJSON;
exports.SearchResultResponseModelFieldsInnerToJSONTyped = SearchResultResponseModelFieldsInnerToJSONTyped;
const FieldPresentationModel_1 = require("./FieldPresentationModel");
function SearchResultResponseModelFieldsInnerFromJSON(json) {
return SearchResultResponseModelFieldsInnerFromJSONTyped(json, false);
}
function SearchResultResponseModelFieldsInnerFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
if (typeof json !== 'object') {
return json;
}
if ((0, FieldPresentationModel_1.instanceOfFieldPresentationModel)(json)) {
return (0, FieldPresentationModel_1.FieldPresentationModelFromJSONTyped)(json, true);
}
return {};
}
function SearchResultResponseModelFieldsInnerToJSON(json) {
return SearchResultResponseModelFieldsInnerToJSONTyped(json, false);
}
function SearchResultResponseModelFieldsInnerToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
if (typeof value !== 'object') {
return value;
}
if ((0, FieldPresentationModel_1.instanceOfFieldPresentationModel)(value)) {
return (0, FieldPresentationModel_1.FieldPresentationModelToJSON)(value);
}
return {};
}