UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
48 lines (47 loc) 1.32 kB
/* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API * * The version of the OpenAPI document: 0.19.10 * 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 DisplayImageUrl interface. */ export function instanceOfDisplayImageUrl(value) { if (!('sourceId' in value) || value['sourceId'] === undefined) return false; if (!('imageUrl' in value) || value['imageUrl'] === undefined) return false; return true; } export function DisplayImageUrlFromJSON(json) { return DisplayImageUrlFromJSONTyped(json, false); } export function DisplayImageUrlFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'sourceId': json['source_id'], 'imageUrl': json['image_url'], }; } export function DisplayImageUrlToJSON(json) { return DisplayImageUrlToJSONTyped(json, false); } export function DisplayImageUrlToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'source_id': value['sourceId'], 'image_url': value['imageUrl'], }; }