/* 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 Company */ export interface Company { /** * Company name (at least one alphabethic character is required) * @type {string} * @memberof Company */ name: string; /** * Company description * @type {string} * @memberof Company */ description: string; /** * Website URL * @type {string} * @memberof Company */ websiteUrl?: string; /** * Company identification number * @type {string} * @memberof Company */ identificationNumber?: string; } /** * Check if a given object implements the Company interface. */ export function instanceOfCompany(value: object): boolean { let isInstance = true; isInstance = isInstance && "name" in value; isInstance = isInstance && "description" in value; return isInstance; } export function CompanyFromJSON(json: any): Company { return CompanyFromJSONTyped(json, false); } export function CompanyFromJSONTyped(json: any, ignoreDiscriminator: boolean): Company { if ((json === undefined) || (json === null)) { return json; } return { 'name': json['name'], 'description': json['description'], 'websiteUrl': !exists(json, 'websiteUrl') ? undefined : json['websiteUrl'], 'identificationNumber': !exists(json, 'identificationNumber') ? undefined : json['identificationNumber'], }; } export function CompanyToJSON(value?: Company | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'name': value.name, 'description': value.description, 'websiteUrl': value.websiteUrl, 'identificationNumber': value.identificationNumber, }; }