fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
61 lines • 2.54 kB
JavaScript
;
/* 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.instanceOfUpdateFeedPostParams = instanceOfUpdateFeedPostParams;
exports.UpdateFeedPostParamsFromJSON = UpdateFeedPostParamsFromJSON;
exports.UpdateFeedPostParamsFromJSONTyped = UpdateFeedPostParamsFromJSONTyped;
exports.UpdateFeedPostParamsToJSON = UpdateFeedPostParamsToJSON;
exports.UpdateFeedPostParamsToJSONTyped = UpdateFeedPostParamsToJSONTyped;
const FeedPostLink_1 = require("./FeedPostLink");
const FeedPostMediaItem_1 = require("./FeedPostMediaItem");
/**
* Check if a given object implements the UpdateFeedPostParams interface.
*/
function instanceOfUpdateFeedPostParams(value) {
return true;
}
function UpdateFeedPostParamsFromJSON(json) {
return UpdateFeedPostParamsFromJSONTyped(json, false);
}
function UpdateFeedPostParamsFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'title': json['title'] == null ? undefined : json['title'],
'contentHTML': json['contentHTML'] == null ? undefined : json['contentHTML'],
'media': json['media'] == null ? undefined : (json['media'].map(FeedPostMediaItem_1.FeedPostMediaItemFromJSON)),
'links': json['links'] == null ? undefined : (json['links'].map(FeedPostLink_1.FeedPostLinkFromJSON)),
'tags': json['tags'] == null ? undefined : json['tags'],
'meta': json['meta'] == null ? undefined : json['meta'],
};
}
function UpdateFeedPostParamsToJSON(json) {
return UpdateFeedPostParamsToJSONTyped(json, false);
}
function UpdateFeedPostParamsToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'title': value['title'],
'contentHTML': value['contentHTML'],
'media': value['media'] == null ? undefined : (value['media'].map(FeedPostMediaItem_1.FeedPostMediaItemToJSON)),
'links': value['links'] == null ? undefined : (value['links'].map(FeedPostLink_1.FeedPostLinkToJSON)),
'tags': value['tags'],
'meta': value['meta'],
};
}
//# sourceMappingURL=UpdateFeedPostParams.js.map