UNPKG

fastcomments-sdk

Version:

FastComments API Client - A SDK for interacting with the FastComments API

61 lines 2.12 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * fastcomments * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 0.0.0 * * * 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.instanceOfCreateModeratorBody = instanceOfCreateModeratorBody; exports.CreateModeratorBodyFromJSON = CreateModeratorBodyFromJSON; exports.CreateModeratorBodyFromJSONTyped = CreateModeratorBodyFromJSONTyped; exports.CreateModeratorBodyToJSON = CreateModeratorBodyToJSON; exports.CreateModeratorBodyToJSONTyped = CreateModeratorBodyToJSONTyped; /** * Check if a given object implements the CreateModeratorBody interface. */ function instanceOfCreateModeratorBody(value) { if (!('name' in value) || value['name'] === undefined) return false; if (!('email' in value) || value['email'] === undefined) return false; return true; } function CreateModeratorBodyFromJSON(json) { return CreateModeratorBodyFromJSONTyped(json, false); } function CreateModeratorBodyFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { ...json, 'name': json['name'], 'email': json['email'], 'userId': json['userId'] == null ? undefined : json['userId'], 'moderationGroupIds': json['moderationGroupIds'] == null ? undefined : json['moderationGroupIds'], }; } function CreateModeratorBodyToJSON(json) { return CreateModeratorBodyToJSONTyped(json, false); } function CreateModeratorBodyToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { ...value, 'name': value['name'], 'email': value['email'], 'userId': value['userId'], 'moderationGroupIds': value['moderationGroupIds'], }; } //# sourceMappingURL=CreateModeratorBody.js.map