/* tslint:disable */
/* eslint-disable */
/**
* Squad API
* API for managing Squad resources
*
* The version of the OpenAPI document: 0.14.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* Uploaded document information
* @export
* @interface OrganisationsOrgIdWorkspacesWorkspaceIdFeedbackDocumentPost200Response
*/
export interface OrganisationsOrgIdWorkspacesWorkspaceIdFeedbackDocumentPost200Response {
/**
* Generated document ID
* @type {string}
* @memberof OrganisationsOrgIdWorkspacesWorkspaceIdFeedbackDocumentPost200Response
*/
id: string;
/**
* URL to access the document
* @type {string}
* @memberof OrganisationsOrgIdWorkspacesWorkspaceIdFeedbackDocumentPost200Response
*/
url: string;
/**
* Associated feedback ID
* @type {string}
* @memberof OrganisationsOrgIdWorkspacesWorkspaceIdFeedbackDocumentPost200Response
*/
feedbackId?: string;
/**
* Name of the uploaded file
* @type {string}
* @memberof OrganisationsOrgIdWorkspacesWorkspaceIdFeedbackDocumentPost200Response
*/
fileName: string;
}
/**
* Check if a given object implements the OrganisationsOrgIdWorkspacesWorkspaceIdFeedbackDocumentPost200Response interface.
*/
export function instanceOfOrganisationsOrgIdWorkspacesWorkspaceIdFeedbackDocumentPost200Response(
value: object,
): value is OrganisationsOrgIdWorkspacesWorkspaceIdFeedbackDocumentPost200Response {
if (!("id" in value) || value["id"] === undefined) return false;
if (!("url" in value) || value["url"] === undefined) return false;
if (!("fileName" in value) || value["fileName"] === undefined) return false;
return true;
}
export function OrganisationsOrgIdWorkspacesWorkspaceIdFeedbackDocumentPost200ResponseFromJSON(
json: any,
): OrganisationsOrgIdWorkspacesWorkspaceIdFeedbackDocumentPost200Response {
return OrganisationsOrgIdWorkspacesWorkspaceIdFeedbackDocumentPost200ResponseFromJSONTyped(
json,
false,
);
}
export function OrganisationsOrgIdWorkspacesWorkspaceIdFeedbackDocumentPost200ResponseFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): OrganisationsOrgIdWorkspacesWorkspaceIdFeedbackDocumentPost200Response {
if (json == null) {
return json;
}
return {
id: json["id"],
url: json["url"],
feedbackId: json["feedbackId"] == null ? undefined : json["feedbackId"],
fileName: json["fileName"],
};
}
export function OrganisationsOrgIdWorkspacesWorkspaceIdFeedbackDocumentPost200ResponseToJSON(
json: any,
): OrganisationsOrgIdWorkspacesWorkspaceIdFeedbackDocumentPost200Response {
return OrganisationsOrgIdWorkspacesWorkspaceIdFeedbackDocumentPost200ResponseToJSONTyped(
json,
false,
);
}
export function OrganisationsOrgIdWorkspacesWorkspaceIdFeedbackDocumentPost200ResponseToJSONTyped(
value?: OrganisationsOrgIdWorkspacesWorkspaceIdFeedbackDocumentPost200Response | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
id: value["id"],
url: value["url"],
feedbackId: value["feedbackId"],
fileName: value["fileName"],
};
}