UNPKG

umbraco-management-api-client

Version:

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

52 lines (51 loc) 2.03 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.instanceOfDisableUserRequestModel = instanceOfDisableUserRequestModel; exports.DisableUserRequestModelFromJSON = DisableUserRequestModelFromJSON; exports.DisableUserRequestModelFromJSONTyped = DisableUserRequestModelFromJSONTyped; exports.DisableUserRequestModelToJSON = DisableUserRequestModelToJSON; exports.DisableUserRequestModelToJSONTyped = DisableUserRequestModelToJSONTyped; const PostUserGroupByIdUsersRequestInner_1 = require("./PostUserGroupByIdUsersRequestInner"); /** * Check if a given object implements the DisableUserRequestModel interface. */ function instanceOfDisableUserRequestModel(value) { if (!('userIds' in value) || value['userIds'] === undefined) return false; return true; } function DisableUserRequestModelFromJSON(json) { return DisableUserRequestModelFromJSONTyped(json, false); } function DisableUserRequestModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'userIds': (new Set(json['userIds'].map(PostUserGroupByIdUsersRequestInner_1.PostUserGroupByIdUsersRequestInnerFromJSON))), }; } function DisableUserRequestModelToJSON(json) { return DisableUserRequestModelToJSONTyped(json, false); } function DisableUserRequestModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'userIds': (Array.from(value['userIds']).map(PostUserGroupByIdUsersRequestInner_1.PostUserGroupByIdUsersRequestInnerToJSON)), }; }