/* 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 OnboardPost200ResponseWorkspace
*/
export interface OnboardPost200ResponseWorkspace {
/**
* Unique identifier for the workspace
* @type {string}
* @memberof OnboardPost200ResponseWorkspace
*/
id: string;
/**
* Name of the workspace
* @type {string}
* @memberof OnboardPost200ResponseWorkspace
*/
name: string;
/**
* Description of the workspace
* @type {string}
* @memberof OnboardPost200ResponseWorkspace
*/
description: string;
/**
* ID of the organization that owns this workspace
* @type {string}
* @memberof OnboardPost200ResponseWorkspace
*/
organisationId: string;
}
/**
* Check if a given object implements the OnboardPost200ResponseWorkspace interface.
*/
export function instanceOfOnboardPost200ResponseWorkspace(
value: object,
): value is OnboardPost200ResponseWorkspace {
if (!("id" in value) || value["id"] === undefined) return false;
if (!("name" in value) || value["name"] === undefined) return false;
if (!("description" in value) || value["description"] === undefined)
return false;
if (!("organisationId" in value) || value["organisationId"] === undefined)
return false;
return true;
}
export function OnboardPost200ResponseWorkspaceFromJSON(
json: any,
): OnboardPost200ResponseWorkspace {
return OnboardPost200ResponseWorkspaceFromJSONTyped(json, false);
}
export function OnboardPost200ResponseWorkspaceFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): OnboardPost200ResponseWorkspace {
if (json == null) {
return json;
}
return {
id: json["id"],
name: json["name"],
description: json["description"],
organisationId: json["organisationId"],
};
}
export function OnboardPost200ResponseWorkspaceToJSON(
json: any,
): OnboardPost200ResponseWorkspace {
return OnboardPost200ResponseWorkspaceToJSONTyped(json, false);
}
export function OnboardPost200ResponseWorkspaceToJSONTyped(
value?: OnboardPost200ResponseWorkspace | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
id: value["id"],
name: value["name"],
description: value["description"],
organisationId: value["organisationId"],
};
}