UNPKG

@apideck/node

Version:
82 lines (76 loc) 1.59 kB
/* tslint:disable */ /* eslint-disable */ /** * Apideck * The Apideck OpenAPI Spec: SDK Optimized * * The version of the OpenAPI document: 10.13.0 * Contact: support@apideck.com * * 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 } from '../runtime' /** * * @export * @interface Website */ export interface Website { /** * The website URL * @type {string} * @memberof Website */ url: string /** * Unique identifier for the website * @type {string} * @memberof Website */ id?: string | null /** * The type of website * @type {string} * @memberof Website */ type?: WebsiteType } /** * @export * @enum {string} */ export enum WebsiteType { primary = 'primary', secondary = 'secondary', work = 'work', personal = 'personal', other = 'other' } export function WebsiteFromJSON(json: any): Website { return WebsiteFromJSONTyped(json, false) } export function WebsiteFromJSONTyped(json: any, ignoreDiscriminator: boolean): Website { if (json === undefined || json === null) { return json } return { url: json['url'], id: !exists(json, 'id') ? undefined : json['id'], type: !exists(json, 'type') ? undefined : json['type'] } } export function WebsiteToJSON(value?: Website | null): any { if (value === undefined) { return undefined } if (value === null) { return null } return { url: value.url, id: value.id, type: value.type } }