/* 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 OnboardPostRequest
*/
export interface OnboardPostRequest {
/**
* Name of the organization to create
* @type {string}
* @memberof OnboardPostRequest
*/
name: string;
/**
* Description of the organization for generating workspace and outcomes
* @type {string}
* @memberof OnboardPostRequest
*/
description: string;
}
/**
* Check if a given object implements the OnboardPostRequest interface.
*/
export function instanceOfOnboardPostRequest(
value: object,
): value is OnboardPostRequest {
if (!("name" in value) || value["name"] === undefined) return false;
if (!("description" in value) || value["description"] === undefined)
return false;
return true;
}
export function OnboardPostRequestFromJSON(json: any): OnboardPostRequest {
return OnboardPostRequestFromJSONTyped(json, false);
}
export function OnboardPostRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): OnboardPostRequest {
if (json == null) {
return json;
}
return {
name: json["name"],
description: json["description"],
};
}
export function OnboardPostRequestToJSON(json: any): OnboardPostRequest {
return OnboardPostRequestToJSONTyped(json, false);
}
export function OnboardPostRequestToJSONTyped(
value?: OnboardPostRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
name: value["name"],
description: value["description"],
};
}