UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
46 lines (45 loc) 1.38 kB
/* 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.22 * 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. */ /** * Check if a given object implements the IndexUrlsResponse interface. */ export function instanceOfIndexUrlsResponse(value) { if (!('status' in value) || value['status'] === undefined) return false; return true; } export function IndexUrlsResponseFromJSON(json) { return IndexUrlsResponseFromJSONTyped(json, false); } export function IndexUrlsResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'status': json['status'], 'jobId': json['job_id'] == null ? undefined : json['job_id'], }; } export function IndexUrlsResponseToJSON(json) { return IndexUrlsResponseToJSONTyped(json, false); } export function IndexUrlsResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'status': value['status'], 'job_id': value['jobId'], }; }