UNPKG

umbraco-management-api-client

Version:

TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)

52 lines (51 loc) 2.01 kB
"use strict"; /* 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.instanceOfEnableUserRequestModel = instanceOfEnableUserRequestModel; exports.EnableUserRequestModelFromJSON = EnableUserRequestModelFromJSON; exports.EnableUserRequestModelFromJSONTyped = EnableUserRequestModelFromJSONTyped; exports.EnableUserRequestModelToJSON = EnableUserRequestModelToJSON; exports.EnableUserRequestModelToJSONTyped = EnableUserRequestModelToJSONTyped; const PostUserGroupByIdUsersRequestInner_1 = require("./PostUserGroupByIdUsersRequestInner"); /** * Check if a given object implements the EnableUserRequestModel interface. */ function instanceOfEnableUserRequestModel(value) { if (!('userIds' in value) || value['userIds'] === undefined) return false; return true; } function EnableUserRequestModelFromJSON(json) { return EnableUserRequestModelFromJSONTyped(json, false); } function EnableUserRequestModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'userIds': (new Set(json['userIds'].map(PostUserGroupByIdUsersRequestInner_1.PostUserGroupByIdUsersRequestInnerFromJSON))), }; } function EnableUserRequestModelToJSON(json) { return EnableUserRequestModelToJSONTyped(json, false); } function EnableUserRequestModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'userIds': (Array.from(value['userIds']).map(PostUserGroupByIdUsersRequestInner_1.PostUserGroupByIdUsersRequestInnerToJSON)), }; }