/* tslint:disable */
/* eslint-disable */
/**
 * AskNews API
 * AskNews API [![status](https://status.asknews.app/api/badge/2/status?style=for-the-badge)](https://status.asknews.app/status/prod)
 *
 * The version of the OpenAPI document: 0.24.66
 * 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'],
    };
}

