/* 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 OnboardingResponseOrganisation
*/
export interface OnboardingResponseOrganisation {
/**
* Unique identifier for the organization
* @type {string}
* @memberof OnboardingResponseOrganisation
*/
id: string;
/**
* Name of the organization
* @type {string}
* @memberof OnboardingResponseOrganisation
*/
name: string;
}
/**
* Check if a given object implements the OnboardingResponseOrganisation interface.
*/
export function instanceOfOnboardingResponseOrganisation(
value: object,
): value is OnboardingResponseOrganisation {
if (!("id" in value) || value["id"] === undefined) return false;
if (!("name" in value) || value["name"] === undefined) return false;
return true;
}
export function OnboardingResponseOrganisationFromJSON(
json: any,
): OnboardingResponseOrganisation {
return OnboardingResponseOrganisationFromJSONTyped(json, false);
}
export function OnboardingResponseOrganisationFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): OnboardingResponseOrganisation {
if (json == null) {
return json;
}
return {
id: json["id"],
name: json["name"],
};
}
export function OnboardingResponseOrganisationToJSON(
json: any,
): OnboardingResponseOrganisation {
return OnboardingResponseOrganisationToJSONTyped(json, false);
}
export function OnboardingResponseOrganisationToJSONTyped(
value?: OnboardingResponseOrganisation | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
id: value["id"],
name: value["name"],
};
}