fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
53 lines • 1.78 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.instanceOfTOSConfig = instanceOfTOSConfig;
exports.TOSConfigFromJSON = TOSConfigFromJSON;
exports.TOSConfigFromJSONTyped = TOSConfigFromJSONTyped;
exports.TOSConfigToJSON = TOSConfigToJSON;
exports.TOSConfigToJSONTyped = TOSConfigToJSONTyped;
/**
* Check if a given object implements the TOSConfig interface.
*/
function instanceOfTOSConfig(value) {
return true;
}
function TOSConfigFromJSON(json) {
return TOSConfigFromJSONTyped(json, false);
}
function TOSConfigFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'enabled': json['enabled'] == null ? undefined : json['enabled'],
'textByLocale': json['textByLocale'] == null ? undefined : json['textByLocale'],
'lastUpdated': json['lastUpdated'] == null ? undefined : (new Date(json['lastUpdated'])),
};
}
function TOSConfigToJSON(json) {
return TOSConfigToJSONTyped(json, false);
}
function TOSConfigToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'enabled': value['enabled'],
'textByLocale': value['textByLocale'],
'lastUpdated': value['lastUpdated'] == null ? undefined : ((value['lastUpdated']).toISOString()),
};
}
//# sourceMappingURL=TOSConfig.js.map