@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
56 lines (55 loc) • 1.78 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.21.1
* Contact: contact@emergentmethods.ai
*
* 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.HitShareItemToJSONTyped = exports.HitShareItemToJSON = exports.HitShareItemFromJSONTyped = exports.HitShareItemFromJSON = exports.instanceOfHitShareItem = void 0;
/**
* Check if a given object implements the HitShareItem interface.
*/
function instanceOfHitShareItem(value) {
if (!('domain' in value) || value['domain'] === undefined)
return false;
if (!('hitShare' in value) || value['hitShare'] === undefined)
return false;
return true;
}
exports.instanceOfHitShareItem = instanceOfHitShareItem;
function HitShareItemFromJSON(json) {
return HitShareItemFromJSONTyped(json, false);
}
exports.HitShareItemFromJSON = HitShareItemFromJSON;
function HitShareItemFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'domain': json['domain'],
'hitShare': json['hit_share'],
};
}
exports.HitShareItemFromJSONTyped = HitShareItemFromJSONTyped;
function HitShareItemToJSON(json) {
return HitShareItemToJSONTyped(json, false);
}
exports.HitShareItemToJSON = HitShareItemToJSON;
function HitShareItemToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'domain': value['domain'],
'hit_share': value['hitShare'],
};
}
exports.HitShareItemToJSONTyped = HitShareItemToJSONTyped;
;