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

89 lines
2.1 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';
import type { HeaderMatchType } from './HeaderMatchType';
import {
HeaderMatchTypeFromJSON,
HeaderMatchTypeFromJSONTyped,
HeaderMatchTypeToJSON,
} from './HeaderMatchType';
/**
*
* @export
* @interface HttpHeaderInfo
*/
export interface HttpHeaderInfo {
/**
*
* @type {string}
* @memberof HttpHeaderInfo
*/
name?: string | null;
/**
*
* @type {string}
* @memberof HttpHeaderInfo
*/
value?: string | null;
/**
*
* @type {HeaderMatchType}
* @memberof HttpHeaderInfo
*/
match?: HeaderMatchType;
}
/**
* Check if a given object implements the HttpHeaderInfo interface.
*/
export function instanceOfHttpHeaderInfo(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function HttpHeaderInfoFromJSON(json: any): HttpHeaderInfo {
return HttpHeaderInfoFromJSONTyped(json, false);
}
export function HttpHeaderInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): HttpHeaderInfo {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'name': !exists(json, 'Name') ? undefined : json['Name'],
'value': !exists(json, 'Value') ? undefined : json['Value'],
'match': !exists(json, 'Match') ? undefined : HeaderMatchTypeFromJSON(json['Match']),
};
}
export function HttpHeaderInfoToJSON(value?: HttpHeaderInfo | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'Name': value.name,
'Value': value.value,
'Match': HeaderMatchTypeToJSON(value.match),
};
}