/* tslint:disable */ /* eslint-disable */ /** * Lemonway DirectKit API 2.0 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; /** * * @export * @interface Contact */ export interface Contact { /** * * @type {string} * @memberof Contact */ email?: string; } /** * Check if a given object implements the Contact interface. */ export function instanceOfContact(value: object): boolean { let isInstance = true; return isInstance; } export function ContactFromJSON(json: any): Contact { return ContactFromJSONTyped(json, false); } export function ContactFromJSONTyped(json: any, ignoreDiscriminator: boolean): Contact { if ((json === undefined) || (json === null)) { return json; } return { 'email': !exists(json, 'email') ? undefined : json['email'], }; } export function ContactToJSON(value?: Contact | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'email': value.email, }; }