fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
61 lines • 2.48 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.instanceOfCreateAPIUserSubscriptionData = instanceOfCreateAPIUserSubscriptionData;
exports.CreateAPIUserSubscriptionDataFromJSON = CreateAPIUserSubscriptionDataFromJSON;
exports.CreateAPIUserSubscriptionDataFromJSONTyped = CreateAPIUserSubscriptionDataFromJSONTyped;
exports.CreateAPIUserSubscriptionDataToJSON = CreateAPIUserSubscriptionDataToJSON;
exports.CreateAPIUserSubscriptionDataToJSONTyped = CreateAPIUserSubscriptionDataToJSONTyped;
/**
* Check if a given object implements the CreateAPIUserSubscriptionData interface.
*/
function instanceOfCreateAPIUserSubscriptionData(value) {
if (!('urlId' in value) || value['urlId'] === undefined)
return false;
return true;
}
function CreateAPIUserSubscriptionDataFromJSON(json) {
return CreateAPIUserSubscriptionDataFromJSONTyped(json, false);
}
function CreateAPIUserSubscriptionDataFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'notificationFrequency': json['notificationFrequency'] == null ? undefined : json['notificationFrequency'],
'pageTitle': json['pageTitle'] == null ? undefined : json['pageTitle'],
'url': json['url'] == null ? undefined : json['url'],
'urlId': json['urlId'],
'anonUserId': json['anonUserId'] == null ? undefined : json['anonUserId'],
'userId': json['userId'] == null ? undefined : json['userId'],
};
}
function CreateAPIUserSubscriptionDataToJSON(json) {
return CreateAPIUserSubscriptionDataToJSONTyped(json, false);
}
function CreateAPIUserSubscriptionDataToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'notificationFrequency': value['notificationFrequency'],
'pageTitle': value['pageTitle'],
'url': value['url'],
'urlId': value['urlId'],
'anonUserId': value['anonUserId'],
'userId': value['userId'],
};
}
//# sourceMappingURL=CreateAPIUserSubscriptionData.js.map