@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
47 lines (39 loc) • 1.27 kB
text/typescript
/* tslint:disable */
/* eslint-disable */
/**
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.19.10
* 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';
/**
* Offset for pagination. The n_articles is your page size, while your offset is the number of articles to skip to get to your page of interest. For example, if you want to get page 3 for n_article page size of 10, you would set offset to 20.
* @export
* @interface Offset
*/
export interface Offset {
}
/**
* Check if a given object implements the Offset interface.
*/
export function instanceOfOffset(value: object): value is Offset {
return true;
}
export function OffsetFromJSON(json: any): Offset {
return OffsetFromJSONTyped(json, false);
}
export function OffsetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Offset {
return json;
}
export function OffsetToJSON(json: any): Offset {
return OffsetToJSONTyped(json, false);
}
export function OffsetToJSONTyped(value?: Offset | null, ignoreDiscriminator: boolean = false): any {
return value;
}