/* 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 From */ export interface From { /** * * @type {string} * @memberof From */ address?: string | null; /** * * @type {string} * @memberof From */ name?: string | null; /** * * @type {string} * @memberof From */ original?: string | null; } /** * Check if a given object implements the From interface. */ export function instanceOfFrom(value: object): value is From { return true; } export function FromFromJSON(json: any): From { return FromFromJSONTyped(json, false); } export function FromFromJSONTyped(json: any, ignoreDiscriminator: boolean): From { 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 FromToJSON(json: any): From { return FromToJSONTyped(json, false); } export function FromToJSONTyped(value?: From | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'address': value['address'], 'name': value['name'], 'original': value['original'], }; }