/* 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.
*/
/**
* Request body for managing solution relationships
* @export
* @interface ManageSolutionRelationshipsRequest
*/
export interface ManageSolutionRelationshipsRequest {
/**
* Array of opportunity IDs to associate with the solution
* @type {Array<string>}
* @memberof ManageSolutionRelationshipsRequest
*/
opportunityIds?: Array<string>;
/**
* Array of outcome IDs to associate with the solution
* @type {Array<string>}
* @memberof ManageSolutionRelationshipsRequest
*/
outcomeIds?: Array<string>;
/**
* Array of feedback IDs to associate with the solution
* @type {Array<string>}
* @memberof ManageSolutionRelationshipsRequest
*/
insightIds?: Array<string>;
}
/**
* Check if a given object implements the ManageSolutionRelationshipsRequest interface.
*/
export function instanceOfManageSolutionRelationshipsRequest(
value: object,
): value is ManageSolutionRelationshipsRequest {
return true;
}
export function ManageSolutionRelationshipsRequestFromJSON(
json: any,
): ManageSolutionRelationshipsRequest {
return ManageSolutionRelationshipsRequestFromJSONTyped(json, false);
}
export function ManageSolutionRelationshipsRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): ManageSolutionRelationshipsRequest {
if (json == null) {
return json;
}
return {
opportunityIds:
json["opportunityIds"] == null ? undefined : json["opportunityIds"],
outcomeIds: json["outcomeIds"] == null ? undefined : json["outcomeIds"],
insightIds: json["insightIds"] == null ? undefined : json["insightIds"],
};
}
export function ManageSolutionRelationshipsRequestToJSON(
json: any,
): ManageSolutionRelationshipsRequest {
return ManageSolutionRelationshipsRequestToJSONTyped(json, false);
}
export function ManageSolutionRelationshipsRequestToJSONTyped(
value?: ManageSolutionRelationshipsRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
opportunityIds: value["opportunityIds"],
outcomeIds: value["outcomeIds"],
insightIds: value["insightIds"],
};
}