umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
60 lines (59 loc) • 2.46 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.instanceOfCreateInitialPasswordUserRequestModel = instanceOfCreateInitialPasswordUserRequestModel;
exports.CreateInitialPasswordUserRequestModelFromJSON = CreateInitialPasswordUserRequestModelFromJSON;
exports.CreateInitialPasswordUserRequestModelFromJSONTyped = CreateInitialPasswordUserRequestModelFromJSONTyped;
exports.CreateInitialPasswordUserRequestModelToJSON = CreateInitialPasswordUserRequestModelToJSON;
exports.CreateInitialPasswordUserRequestModelToJSONTyped = CreateInitialPasswordUserRequestModelToJSONTyped;
const ReferenceByIdModel_1 = require("./ReferenceByIdModel");
/**
* Check if a given object implements the CreateInitialPasswordUserRequestModel interface.
*/
function instanceOfCreateInitialPasswordUserRequestModel(value) {
if (!('user' in value) || value['user'] === undefined)
return false;
if (!('token' in value) || value['token'] === undefined)
return false;
if (!('password' in value) || value['password'] === undefined)
return false;
return true;
}
function CreateInitialPasswordUserRequestModelFromJSON(json) {
return CreateInitialPasswordUserRequestModelFromJSONTyped(json, false);
}
function CreateInitialPasswordUserRequestModelFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'user': (0, ReferenceByIdModel_1.ReferenceByIdModelFromJSON)(json['user']),
'token': json['token'],
'password': json['password'],
};
}
function CreateInitialPasswordUserRequestModelToJSON(json) {
return CreateInitialPasswordUserRequestModelToJSONTyped(json, false);
}
function CreateInitialPasswordUserRequestModelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'user': (0, ReferenceByIdModel_1.ReferenceByIdModelToJSON)(value['user']),
'token': value['token'],
'password': value['password'],
};
}