mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
92 lines
2.1 KiB
TypeScript
92 lines
2.1 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* FastAPI
|
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
*
|
|
* The version of the OpenAPI document: 0.1.0
|
|
*
|
|
*
|
|
* 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 SpeakerAssignment
|
|
*/
|
|
export interface SpeakerAssignment {
|
|
/**
|
|
*
|
|
* @type {any}
|
|
* @memberof SpeakerAssignment
|
|
*/
|
|
speaker?: any | null;
|
|
/**
|
|
*
|
|
* @type {any}
|
|
* @memberof SpeakerAssignment
|
|
*/
|
|
participant?: any | null;
|
|
/**
|
|
*
|
|
* @type {any}
|
|
* @memberof SpeakerAssignment
|
|
*/
|
|
timestampFrom: any | null;
|
|
/**
|
|
*
|
|
* @type {any}
|
|
* @memberof SpeakerAssignment
|
|
*/
|
|
timestampTo: any | null;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the SpeakerAssignment interface.
|
|
*/
|
|
export function instanceOfSpeakerAssignment(value: object): boolean {
|
|
let isInstance = true;
|
|
isInstance = isInstance && "timestampFrom" in value;
|
|
isInstance = isInstance && "timestampTo" in value;
|
|
|
|
return isInstance;
|
|
}
|
|
|
|
export function SpeakerAssignmentFromJSON(json: any): SpeakerAssignment {
|
|
return SpeakerAssignmentFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function SpeakerAssignmentFromJSONTyped(
|
|
json: any,
|
|
ignoreDiscriminator: boolean,
|
|
): SpeakerAssignment {
|
|
if (json === undefined || json === null) {
|
|
return json;
|
|
}
|
|
return {
|
|
speaker: !exists(json, "speaker") ? undefined : json["speaker"],
|
|
participant: !exists(json, "participant") ? undefined : json["participant"],
|
|
timestampFrom: json["timestamp_from"],
|
|
timestampTo: json["timestamp_to"],
|
|
};
|
|
}
|
|
|
|
export function SpeakerAssignmentToJSON(value?: SpeakerAssignment | null): any {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
speaker: value.speaker,
|
|
participant: value.participant,
|
|
timestamp_from: value.timestampFrom,
|
|
timestamp_to: value.timestampTo,
|
|
};
|
|
}
|