@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
48 lines (47 loc) • 1.41 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* AskNews API
* AskNews API [](https://status.asknews.app/status/prod)
*
* The version of the OpenAPI document: 0.24.22
* 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.
*/
/**
* Check if a given object implements the HitShareItem interface.
*/
export function instanceOfHitShareItem(value) {
if (!('domain' in value) || value['domain'] === undefined)
return false;
if (!('hitShare' in value) || value['hitShare'] === undefined)
return false;
return true;
}
export function HitShareItemFromJSON(json) {
return HitShareItemFromJSONTyped(json, false);
}
export function HitShareItemFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'domain': json['domain'],
'hitShare': json['hit_share'],
};
}
export function HitShareItemToJSON(json) {
return HitShareItemToJSONTyped(json, false);
}
export function HitShareItemToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'domain': value['domain'],
'hit_share': value['hitShare'],
};
}