jellyfin-discord-bot/server/jellyfin/models/XmlAttribute.ts

74 lines
1.8 KiB
TypeScript

/* 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';
/**
* Defines the MediaBrowser.Model.Dlna.XmlAttribute.
* @export
* @interface XmlAttribute
*/
export interface XmlAttribute {
/**
* Gets or sets the name of the attribute.
* @type {string}
* @memberof XmlAttribute
*/
name?: string | null;
/**
* Gets or sets the value of the attribute.
* @type {string}
* @memberof XmlAttribute
*/
value?: string | null;
}
/**
* Check if a given object implements the XmlAttribute interface.
*/
export function instanceOfXmlAttribute(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function XmlAttributeFromJSON(json: any): XmlAttribute {
return XmlAttributeFromJSONTyped(json, false);
}
export function XmlAttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): XmlAttribute {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'name': !exists(json, 'Name') ? undefined : json['Name'],
'value': !exists(json, 'Value') ? undefined : json['Value'],
};
}
export function XmlAttributeToJSON(value?: XmlAttribute | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'Name': value.name,
'Value': value.value,
};
}