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

74 lines
1.7 KiB
TypeScript
Raw Permalink Normal View History

2023-05-04 23:34:53 +02:00
/* 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 NameValuePair
*/
export interface NameValuePair {
/**
* Gets or sets the name.
* @type {string}
* @memberof NameValuePair
*/
name?: string | null;
/**
* Gets or sets the value.
* @type {string}
* @memberof NameValuePair
*/
value?: string | null;
}
/**
* Check if a given object implements the NameValuePair interface.
*/
export function instanceOfNameValuePair(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function NameValuePairFromJSON(json: any): NameValuePair {
return NameValuePairFromJSONTyped(json, false);
}
export function NameValuePairFromJSONTyped(json: any, ignoreDiscriminator: boolean): NameValuePair {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'name': !exists(json, 'Name') ? undefined : json['Name'],
'value': !exists(json, 'Value') ? undefined : json['Value'],
};
}
export function NameValuePairToJSON(value?: NameValuePair | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'Name': value.name,
'Value': value.value,
};
}