/* 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 GetTranscriptTopic
 */
export interface GetTranscriptTopic {
  /**
   *
   * @type {any}
   * @memberof GetTranscriptTopic
   */
  id: any | null;
  /**
   *
   * @type {any}
   * @memberof GetTranscriptTopic
   */
  title: any | null;
  /**
   *
   * @type {any}
   * @memberof GetTranscriptTopic
   */
  summary: any | null;
  /**
   *
   * @type {any}
   * @memberof GetTranscriptTopic
   */
  timestamp: any | null;
  /**
   *
   * @type {any}
   * @memberof GetTranscriptTopic
   */
  duration: any | null;
  /**
   *
   * @type {any}
   * @memberof GetTranscriptTopic
   */
  transcript: any | null;
  /**
   *
   * @type {any}
   * @memberof GetTranscriptTopic
   */
  segments?: any | null;
}

/**
 * Check if a given object implements the GetTranscriptTopic interface.
 */
export function instanceOfGetTranscriptTopic(value: object): boolean {
  let isInstance = true;
  isInstance = isInstance && "id" in value;
  isInstance = isInstance && "title" in value;
  isInstance = isInstance && "summary" in value;
  isInstance = isInstance && "timestamp" in value;
  isInstance = isInstance && "duration" in value;
  isInstance = isInstance && "transcript" in value;

  return isInstance;
}

export function GetTranscriptTopicFromJSON(json: any): GetTranscriptTopic {
  return GetTranscriptTopicFromJSONTyped(json, false);
}

export function GetTranscriptTopicFromJSONTyped(
  json: any,
  ignoreDiscriminator: boolean,
): GetTranscriptTopic {
  if (json === undefined || json === null) {
    return json;
  }
  return {
    id: json["id"],
    title: json["title"],
    summary: json["summary"],
    timestamp: json["timestamp"],
    duration: json["duration"],
    transcript: json["transcript"],
    segments: !exists(json, "segments") ? undefined : json["segments"],
  };
}

export function GetTranscriptTopicToJSON(
  value?: GetTranscriptTopic | null,
): any {
  if (value === undefined) {
    return undefined;
  }
  if (value === null) {
    return null;
  }
  return {
    id: value.id,
    title: value.title,
    summary: value.summary,
    timestamp: value.timestamp,
    duration: value.duration,
    transcript: value.transcript,
    segments: value.segments,
  };
}
