/* 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.
*/
/**
*
* @export
* @interface OnboardPost200ResponseOutcomesInner
*/
export interface OnboardPost200ResponseOutcomesInner {
/**
* Unique identifier for the outcome
* @type {string}
* @memberof OnboardPost200ResponseOutcomesInner
*/
id: string;
/**
* Title of the outcome
* @type {string}
* @memberof OnboardPost200ResponseOutcomesInner
*/
title: string;
/**
* Detailed description of the outcome
* @type {string}
* @memberof OnboardPost200ResponseOutcomesInner
*/
description: string;
/**
* ID of the workspace this outcome belongs to
* @type {string}
* @memberof OnboardPost200ResponseOutcomesInner
*/
workspaceId: string;
/**
* ID of the organization that owns this outcome
* @type {string}
* @memberof OnboardPost200ResponseOutcomesInner
*/
organisationId: string;
}
/**
* Check if a given object implements the OnboardPost200ResponseOutcomesInner interface.
*/
export function instanceOfOnboardPost200ResponseOutcomesInner(
value: object,
): value is OnboardPost200ResponseOutcomesInner {
if (!("id" in value) || value["id"] === undefined) return false;
if (!("title" in value) || value["title"] === undefined) return false;
if (!("description" in value) || value["description"] === undefined)
return false;
if (!("workspaceId" in value) || value["workspaceId"] === undefined)
return false;
if (!("organisationId" in value) || value["organisationId"] === undefined)
return false;
return true;
}
export function OnboardPost200ResponseOutcomesInnerFromJSON(
json: any,
): OnboardPost200ResponseOutcomesInner {
return OnboardPost200ResponseOutcomesInnerFromJSONTyped(json, false);
}
export function OnboardPost200ResponseOutcomesInnerFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): OnboardPost200ResponseOutcomesInner {
if (json == null) {
return json;
}
return {
id: json["id"],
title: json["title"],
description: json["description"],
workspaceId: json["workspaceId"],
organisationId: json["organisationId"],
};
}
export function OnboardPost200ResponseOutcomesInnerToJSON(
json: any,
): OnboardPost200ResponseOutcomesInner {
return OnboardPost200ResponseOutcomesInnerToJSONTyped(json, false);
}
export function OnboardPost200ResponseOutcomesInnerToJSONTyped(
value?: OnboardPost200ResponseOutcomesInner | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
id: value["id"],
title: value["title"],
description: value["description"],
workspaceId: value["workspaceId"],
organisationId: value["organisationId"],
};
}