umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
64 lines (63 loc) • 2.69 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.instanceOfPublicAccessRequestModel = instanceOfPublicAccessRequestModel;
exports.PublicAccessRequestModelFromJSON = PublicAccessRequestModelFromJSON;
exports.PublicAccessRequestModelFromJSONTyped = PublicAccessRequestModelFromJSONTyped;
exports.PublicAccessRequestModelToJSON = PublicAccessRequestModelToJSON;
exports.PublicAccessRequestModelToJSONTyped = PublicAccessRequestModelToJSONTyped;
const ReferenceByIdModel_1 = require("./ReferenceByIdModel");
/**
* Check if a given object implements the PublicAccessRequestModel interface.
*/
function instanceOfPublicAccessRequestModel(value) {
if (!('loginDocument' in value) || value['loginDocument'] === undefined)
return false;
if (!('errorDocument' in value) || value['errorDocument'] === undefined)
return false;
if (!('memberUserNames' in value) || value['memberUserNames'] === undefined)
return false;
if (!('memberGroupNames' in value) || value['memberGroupNames'] === undefined)
return false;
return true;
}
function PublicAccessRequestModelFromJSON(json) {
return PublicAccessRequestModelFromJSONTyped(json, false);
}
function PublicAccessRequestModelFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'loginDocument': (0, ReferenceByIdModel_1.ReferenceByIdModelFromJSON)(json['loginDocument']),
'errorDocument': (0, ReferenceByIdModel_1.ReferenceByIdModelFromJSON)(json['errorDocument']),
'memberUserNames': json['memberUserNames'],
'memberGroupNames': json['memberGroupNames'],
};
}
function PublicAccessRequestModelToJSON(json) {
return PublicAccessRequestModelToJSONTyped(json, false);
}
function PublicAccessRequestModelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'loginDocument': (0, ReferenceByIdModel_1.ReferenceByIdModelToJSON)(value['loginDocument']),
'errorDocument': (0, ReferenceByIdModel_1.ReferenceByIdModelToJSON)(value['errorDocument']),
'memberUserNames': value['memberUserNames'],
'memberGroupNames': value['memberGroupNames'],
};
}