fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
85 lines • 3.23 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.instanceOfHeaderAccountNotification = instanceOfHeaderAccountNotification;
exports.HeaderAccountNotificationFromJSON = HeaderAccountNotificationFromJSON;
exports.HeaderAccountNotificationFromJSONTyped = HeaderAccountNotificationFromJSONTyped;
exports.HeaderAccountNotificationToJSON = HeaderAccountNotificationToJSON;
exports.HeaderAccountNotificationToJSONTyped = HeaderAccountNotificationToJSONTyped;
/**
* Check if a given object implements the HeaderAccountNotification interface.
*/
function instanceOfHeaderAccountNotification(value) {
if (!('id' in value) || value['id'] === undefined)
return false;
if (!('title' in value) || value['title'] === undefined)
return false;
if (!('message' in value) || value['message'] === undefined)
return false;
if (!('messagesByLocale' in value) || value['messagesByLocale'] === undefined)
return false;
if (!('dates' in value) || value['dates'] === undefined)
return false;
if (!('severity' in value) || value['severity'] === undefined)
return false;
if (!('linkUrl' in value) || value['linkUrl'] === undefined)
return false;
if (!('linkText' in value) || value['linkText'] === undefined)
return false;
if (!('createdAt' in value) || value['createdAt'] === undefined)
return false;
return true;
}
function HeaderAccountNotificationFromJSON(json) {
return HeaderAccountNotificationFromJSONTyped(json, false);
}
function HeaderAccountNotificationFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'id': json['_id'],
'title': json['title'],
'message': json['message'],
'messagesByLocale': json['messagesByLocale'],
'dates': json['dates'],
'severity': json['severity'],
'linkUrl': json['linkUrl'],
'linkText': json['linkText'],
'createdAt': (new Date(json['createdAt'])),
'type': json['type'] == null ? undefined : json['type'],
};
}
function HeaderAccountNotificationToJSON(json) {
return HeaderAccountNotificationToJSONTyped(json, false);
}
function HeaderAccountNotificationToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'_id': value['id'],
'title': value['title'],
'message': value['message'],
'messagesByLocale': value['messagesByLocale'],
'dates': value['dates'],
'severity': value['severity'],
'linkUrl': value['linkUrl'],
'linkText': value['linkText'],
'createdAt': ((value['createdAt']).toISOString()),
'type': value['type'],
};
}
//# sourceMappingURL=HeaderAccountNotification.js.map