umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
60 lines (59 loc) • 2.6 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.instanceOfDatatypeConfigurationResponseModel = instanceOfDatatypeConfigurationResponseModel;
exports.DatatypeConfigurationResponseModelFromJSON = DatatypeConfigurationResponseModelFromJSON;
exports.DatatypeConfigurationResponseModelFromJSONTyped = DatatypeConfigurationResponseModelFromJSONTyped;
exports.DatatypeConfigurationResponseModelToJSON = DatatypeConfigurationResponseModelToJSON;
exports.DatatypeConfigurationResponseModelToJSONTyped = DatatypeConfigurationResponseModelToJSONTyped;
const DataTypeChangeModeModel_1 = require("./DataTypeChangeModeModel");
/**
* Check if a given object implements the DatatypeConfigurationResponseModel interface.
*/
function instanceOfDatatypeConfigurationResponseModel(value) {
if (!('canBeChanged' in value) || value['canBeChanged'] === undefined)
return false;
if (!('documentListViewId' in value) || value['documentListViewId'] === undefined)
return false;
if (!('mediaListViewId' in value) || value['mediaListViewId'] === undefined)
return false;
return true;
}
function DatatypeConfigurationResponseModelFromJSON(json) {
return DatatypeConfigurationResponseModelFromJSONTyped(json, false);
}
function DatatypeConfigurationResponseModelFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'canBeChanged': (0, DataTypeChangeModeModel_1.DataTypeChangeModeModelFromJSON)(json['canBeChanged']),
'documentListViewId': json['documentListViewId'],
'mediaListViewId': json['mediaListViewId'],
};
}
function DatatypeConfigurationResponseModelToJSON(json) {
return DatatypeConfigurationResponseModelToJSONTyped(json, false);
}
function DatatypeConfigurationResponseModelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'canBeChanged': (0, DataTypeChangeModeModel_1.DataTypeChangeModeModelToJSON)(value['canBeChanged']),
'documentListViewId': value['documentListViewId'],
'mediaListViewId': value['mediaListViewId'],
};
}