/* tslint:disable */
/* eslint-disable */
/**
 * zrok
 * zrok client access
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 *
 * 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 GetSparklinesRequest
 */
export interface GetSparklinesRequest {
    /**
     * 
     * @type {boolean}
     * @memberof GetSparklinesRequest
     */
    account?: boolean;
    /**
     * 
     * @type {Array<string>}
     * @memberof GetSparklinesRequest
     */
    environments?: Array<string>;
    /**
     * 
     * @type {Array<string>}
     * @memberof GetSparklinesRequest
     */
    shares?: Array<string>;
}

/**
 * Check if a given object implements the GetSparklinesRequest interface.
 */
export function instanceOfGetSparklinesRequest(value: object): value is GetSparklinesRequest {
    return true;
}

export function GetSparklinesRequestFromJSON(json: any): GetSparklinesRequest {
    return GetSparklinesRequestFromJSONTyped(json, false);
}

export function GetSparklinesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSparklinesRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'account': json['account'] == null ? undefined : json['account'],
        'environments': json['environments'] == null ? undefined : json['environments'],
        'shares': json['shares'] == null ? undefined : json['shares'],
    };
}

export function GetSparklinesRequestToJSON(value?: GetSparklinesRequest | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'account': value['account'],
        'environments': value['environments'],
        'shares': value['shares'],
    };
}

