/* 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 AbcAPIErrorModel109
 */
export interface AbcAPIErrorModel109 {
    /**
     * 
     * @type {number}
     * @memberof AbcAPIErrorModel109
     */
    code: number;
    /**
     * 
     * @type {string}
     * @memberof AbcAPIErrorModel109
     */
    detail: string;
}

/**
 * Check if a given object implements the AbcAPIErrorModel109 interface.
 */
export function instanceOfAbcAPIErrorModel109(value: object): value is AbcAPIErrorModel109 {
    if (!('code' in value) || value['code'] === undefined) return false;
    if (!('detail' in value) || value['detail'] === undefined) return false;
    return true;
}

export function AbcAPIErrorModel109FromJSON(json: any): AbcAPIErrorModel109 {
    return AbcAPIErrorModel109FromJSONTyped(json, false);
}

export function AbcAPIErrorModel109FromJSONTyped(json: any, ignoreDiscriminator: boolean): AbcAPIErrorModel109 {
    if (json == null) {
        return json;
    }
    return {
        
        'code': json['code'],
        'detail': json['detail'],
    };
}

export function AbcAPIErrorModel109ToJSON(json: any): AbcAPIErrorModel109 {
    return AbcAPIErrorModel109ToJSONTyped(json, false);
}

export function AbcAPIErrorModel109ToJSONTyped(value?: AbcAPIErrorModel109 | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'code': value['code'],
        'detail': value['detail'],
    };
}

