/* tslint:disable */ /* eslint-disable */ /** * ChatGPT Function * Backend for Azure OpenAI integrations * * The version of the OpenAPI document: v1.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 To */ export interface To { /** * * @type {string} * @memberof To */ address?: string | null; /** * * @type {string} * @memberof To */ name?: string | null; /** * * @type {string} * @memberof To */ original?: string | null; } /** * Check if a given object implements the To interface. */ export function instanceOfTo(value: object): value is To { return true; } export function ToFromJSON(json: any): To { return ToFromJSONTyped(json, false); } export function ToFromJSONTyped(json: any, ignoreDiscriminator: boolean): To { if (json == null) { return json; } return { 'address': json['address'] == null ? undefined : json['address'], 'name': json['name'] == null ? undefined : json['name'], 'original': json['original'] == null ? undefined : json['original'], }; } export function ToToJSON(json: any): To { return ToToJSONTyped(json, false); } export function ToToJSONTyped(value?: To | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'address': value['address'], 'name': value['name'], 'original': value['original'], }; }