/* 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 GoogleDocsParams
 */
export interface GoogleDocsParams {
    /**
     * The google service account json. This should be a dict. You can get this from the google cloud console. The document will be created in the service account's google drive and shared with the user.
     * @type {{ [key: string]: any; }}
     * @memberof GoogleDocsParams
     */
    clientJson: { [key: string]: any; };
    /**
     * 
     * @type {Array<string>}
     * @memberof GoogleDocsParams
     */
    emails?: Array<string> | null;
    /**
     * Append 'Generated by AskNews AI' watermark
     * @type {boolean}
     * @memberof GoogleDocsParams
     */
    asknewsWatermark?: boolean;
}

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

export function GoogleDocsParamsFromJSON(json: any): GoogleDocsParams {
    return GoogleDocsParamsFromJSONTyped(json, false);
}

export function GoogleDocsParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleDocsParams {
    if (json == null) {
        return json;
    }
    return {
        
        'clientJson': json['client_json'],
        'emails': json['emails'] == null ? undefined : json['emails'],
        'asknewsWatermark': json['asknews_watermark'] == null ? undefined : json['asknews_watermark'],
    };
}

export function GoogleDocsParamsToJSON(json: any): GoogleDocsParams {
    return GoogleDocsParamsToJSONTyped(json, false);
}

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

    return {
        
        'client_json': value['clientJson'],
        'emails': value['emails'],
        'asknews_watermark': value['asknewsWatermark'],
    };
}

