/* tslint:disable */ /* eslint-disable */ /** * Jellyfin API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 10.8.9 * * * 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 ExternalUrl */ export interface ExternalUrl { /** * Gets or sets the name. * @type {string} * @memberof ExternalUrl */ name?: string | null; /** * Gets or sets the type of the item. * @type {string} * @memberof ExternalUrl */ url?: string | null; } /** * Check if a given object implements the ExternalUrl interface. */ export function instanceOfExternalUrl(value: object): boolean { let isInstance = true; return isInstance; } export function ExternalUrlFromJSON(json: any): ExternalUrl { return ExternalUrlFromJSONTyped(json, false); } export function ExternalUrlFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExternalUrl { if ((json === undefined) || (json === null)) { return json; } return { 'name': !exists(json, 'Name') ? undefined : json['Name'], 'url': !exists(json, 'Url') ? undefined : json['Url'], }; } export function ExternalUrlToJSON(value?: ExternalUrl | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'Name': value.name, 'Url': value.url, }; }