umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
55 lines (54 loc) • 1.86 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.instanceOfFieldPresentationModel = instanceOfFieldPresentationModel;
exports.FieldPresentationModelFromJSON = FieldPresentationModelFromJSON;
exports.FieldPresentationModelFromJSONTyped = FieldPresentationModelFromJSONTyped;
exports.FieldPresentationModelToJSON = FieldPresentationModelToJSON;
exports.FieldPresentationModelToJSONTyped = FieldPresentationModelToJSONTyped;
/**
* Check if a given object implements the FieldPresentationModel interface.
*/
function instanceOfFieldPresentationModel(value) {
if (!('name' in value) || value['name'] === undefined)
return false;
if (!('values' in value) || value['values'] === undefined)
return false;
return true;
}
function FieldPresentationModelFromJSON(json) {
return FieldPresentationModelFromJSONTyped(json, false);
}
function FieldPresentationModelFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'name': json['name'],
'values': json['values'],
};
}
function FieldPresentationModelToJSON(json) {
return FieldPresentationModelToJSONTyped(json, false);
}
function FieldPresentationModelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'name': value['name'],
'values': value['values'],
};
}