/* 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 Frecuency
 */
export interface Frecuency {
    /**
     * 
     * @type {string}
     * @memberof Frecuency
     */
    value?: string;
    /**
     * 
     * @type {string}
     * @memberof Frecuency
     */
    type?: FrecuencyTypeEnum;
}


/**
 * @export
 */
export const FrecuencyTypeEnum = {
    Daily: 'daily',
    Weekly: 'weekly',
    Montly: 'montly',
    Hourly: 'hourly',
    EveryXMinutes: 'every_x_minutes',
    EveryXHours: 'every_x_hours',
    EveryXDays: 'every_x_days',
    Custom: 'custom'
} as const;
export type FrecuencyTypeEnum = typeof FrecuencyTypeEnum[keyof typeof FrecuencyTypeEnum];


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

export function FrecuencyFromJSON(json: any): Frecuency {
    return FrecuencyFromJSONTyped(json, false);
}

export function FrecuencyFromJSONTyped(json: any, ignoreDiscriminator: boolean): Frecuency {
    if (json == null) {
        return json;
    }
    return {
        
        'value': json['value'] == null ? undefined : json['value'],
        'type': json['type'] == null ? undefined : json['type'],
    };
}

export function FrecuencyToJSON(value?: Frecuency | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'value': value['value'],
        'type': value['type'],
    };
}

