/* tslint:disable */
/* eslint-disable */
/**
 * Scraper API
 * The scraping SaaS platform provides a RESTful API for developers to perform web scraping tasks. Users can submit scraping tasks, monitor task status, retrieve scraped data, and manage their account through the API.
 *
 * 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 RateLimit
 */
export interface RateLimit {
    /**
     * 
     * @type {string}
     * @memberof RateLimit
     */
    interval?: string;
    /**
     * 
     * @type {number}
     * @memberof RateLimit
     */
    limit?: number;
}

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

export function RateLimitFromJSON(json: any): RateLimit {
    return RateLimitFromJSONTyped(json, false);
}

export function RateLimitFromJSONTyped(json: any, ignoreDiscriminator: boolean): RateLimit {
    if (json == null) {
        return json;
    }
    return {
        
        'interval': json['interval'] == null ? undefined : json['interval'],
        'limit': json['limit'] == null ? undefined : json['limit'],
    };
}

export function RateLimitToJSON(value?: RateLimit | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'interval': value['interval'],
        'limit': value['limit'],
    };
}

