umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
63 lines (62 loc) • 2.25 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.instanceOfUpdateUserDataRequestModel = instanceOfUpdateUserDataRequestModel;
exports.UpdateUserDataRequestModelFromJSON = UpdateUserDataRequestModelFromJSON;
exports.UpdateUserDataRequestModelFromJSONTyped = UpdateUserDataRequestModelFromJSONTyped;
exports.UpdateUserDataRequestModelToJSON = UpdateUserDataRequestModelToJSON;
exports.UpdateUserDataRequestModelToJSONTyped = UpdateUserDataRequestModelToJSONTyped;
/**
* Check if a given object implements the UpdateUserDataRequestModel interface.
*/
function instanceOfUpdateUserDataRequestModel(value) {
if (!('group' in value) || value['group'] === undefined)
return false;
if (!('identifier' in value) || value['identifier'] === undefined)
return false;
if (!('value' in value) || value['value'] === undefined)
return false;
if (!('key' in value) || value['key'] === undefined)
return false;
return true;
}
function UpdateUserDataRequestModelFromJSON(json) {
return UpdateUserDataRequestModelFromJSONTyped(json, false);
}
function UpdateUserDataRequestModelFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'group': json['group'],
'identifier': json['identifier'],
'value': json['value'],
'key': json['key'],
};
}
function UpdateUserDataRequestModelToJSON(json) {
return UpdateUserDataRequestModelToJSONTyped(json, false);
}
function UpdateUserDataRequestModelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'group': value['group'],
'identifier': value['identifier'],
'value': value['value'],
'key': value['key'],
};
}