UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
44 lines (43 loc) 1.13 kB
/* 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. */ /** * Check if a given object implements the Assets interface. */ export function instanceOfAssets(value) { return true; } export function AssetsFromJSON(json) { return AssetsFromJSONTyped(json, false); } export function AssetsFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'images': json['images'] == null ? undefined : json['images'], 'videos': json['videos'] == null ? undefined : json['videos'], }; } export function AssetsToJSON(json) { return AssetsToJSONTyped(json, false); } export function AssetsToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'images': value['images'], 'videos': value['videos'], }; }