UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
44 lines (43 loc) 1.14 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 Assets1 interface. */ export function instanceOfAssets1(value) { return true; } export function Assets1FromJSON(json) { return Assets1FromJSONTyped(json, false); } export function Assets1FromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'images': json['images'] == null ? undefined : json['images'], 'videos': json['videos'] == null ? undefined : json['videos'], }; } export function Assets1ToJSON(json) { return Assets1ToJSONTyped(json, false); } export function Assets1ToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'images': value['images'], 'videos': value['videos'], }; }