UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
76 lines (65 loc) 1.81 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. */ import { mapValues } from '../runtime'; /** * * @export * @interface DisplayImageUrl */ export interface DisplayImageUrl { /** * * @type {string} * @memberof DisplayImageUrl */ sourceId: string; /** * * @type {string} * @memberof DisplayImageUrl */ imageUrl: string; } /** * Check if a given object implements the DisplayImageUrl interface. */ export function instanceOfDisplayImageUrl(value: object): value is DisplayImageUrl { if (!('sourceId' in value) || value['sourceId'] === undefined) return false; if (!('imageUrl' in value) || value['imageUrl'] === undefined) return false; return true; } export function DisplayImageUrlFromJSON(json: any): DisplayImageUrl { return DisplayImageUrlFromJSONTyped(json, false); } export function DisplayImageUrlFromJSONTyped(json: any, ignoreDiscriminator: boolean): DisplayImageUrl { if (json == null) { return json; } return { 'sourceId': json['source_id'], 'imageUrl': json['image_url'], }; } export function DisplayImageUrlToJSON(json: any): DisplayImageUrl { return DisplayImageUrlToJSONTyped(json, false); } export function DisplayImageUrlToJSONTyped(value?: DisplayImageUrl | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'source_id': value['sourceId'], 'image_url': value['imageUrl'], }; }