umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
51 lines (50 loc) • 1.67 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.instanceOfOEmbedResponseModel = instanceOfOEmbedResponseModel;
exports.OEmbedResponseModelFromJSON = OEmbedResponseModelFromJSON;
exports.OEmbedResponseModelFromJSONTyped = OEmbedResponseModelFromJSONTyped;
exports.OEmbedResponseModelToJSON = OEmbedResponseModelToJSON;
exports.OEmbedResponseModelToJSONTyped = OEmbedResponseModelToJSONTyped;
/**
* Check if a given object implements the OEmbedResponseModel interface.
*/
function instanceOfOEmbedResponseModel(value) {
if (!('markup' in value) || value['markup'] === undefined)
return false;
return true;
}
function OEmbedResponseModelFromJSON(json) {
return OEmbedResponseModelFromJSONTyped(json, false);
}
function OEmbedResponseModelFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'markup': json['markup'],
};
}
function OEmbedResponseModelToJSON(json) {
return OEmbedResponseModelToJSONTyped(json, false);
}
function OEmbedResponseModelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'markup': value['markup'],
};
}