umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
52 lines (51 loc) • 2.29 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.instanceOfSecurityConfigurationResponseModel = instanceOfSecurityConfigurationResponseModel;
exports.SecurityConfigurationResponseModelFromJSON = SecurityConfigurationResponseModelFromJSON;
exports.SecurityConfigurationResponseModelFromJSONTyped = SecurityConfigurationResponseModelFromJSONTyped;
exports.SecurityConfigurationResponseModelToJSON = SecurityConfigurationResponseModelToJSON;
exports.SecurityConfigurationResponseModelToJSONTyped = SecurityConfigurationResponseModelToJSONTyped;
const PasswordConfigurationResponseModel_1 = require("./PasswordConfigurationResponseModel");
/**
* Check if a given object implements the SecurityConfigurationResponseModel interface.
*/
function instanceOfSecurityConfigurationResponseModel(value) {
if (!('passwordConfiguration' in value) || value['passwordConfiguration'] === undefined)
return false;
return true;
}
function SecurityConfigurationResponseModelFromJSON(json) {
return SecurityConfigurationResponseModelFromJSONTyped(json, false);
}
function SecurityConfigurationResponseModelFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'passwordConfiguration': (0, PasswordConfigurationResponseModel_1.PasswordConfigurationResponseModelFromJSON)(json['passwordConfiguration']),
};
}
function SecurityConfigurationResponseModelToJSON(json) {
return SecurityConfigurationResponseModelToJSONTyped(json, false);
}
function SecurityConfigurationResponseModelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'passwordConfiguration': (0, PasswordConfigurationResponseModel_1.PasswordConfigurationResponseModelToJSON)(value['passwordConfiguration']),
};
}