/* tslint:disable */ /* eslint-disable */ /** * Mubicon v1 API * Api with Swagger, Swashbuckle, and Manual API versioning. * * The version of the OpenAPI document: 1 * Contact: support@mubicloud.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; import type { Selection } from './Selection'; import { SelectionFromJSON, SelectionFromJSONTyped, SelectionToJSON, SelectionToJSONTyped, } from './Selection'; import type { CompanyType } from './CompanyType'; import { CompanyTypeFromJSON, CompanyTypeFromJSONTyped, CompanyTypeToJSON, CompanyTypeToJSONTyped, } from './CompanyType'; /** * * @export * @interface CompanyTypeSelection */ export interface CompanyTypeSelection { /** * * @type {number} * @memberof CompanyTypeSelection */ companyTypeId?: number; /** * * @type {CompanyType} * @memberof CompanyTypeSelection */ companyType?: CompanyType; /** * * @type {number} * @memberof CompanyTypeSelection */ selectionId?: number; /** * * @type {Selection} * @memberof CompanyTypeSelection */ selection?: Selection; } /** * Check if a given object implements the CompanyTypeSelection interface. */ export function instanceOfCompanyTypeSelection(value: object): value is CompanyTypeSelection { return true; } export function CompanyTypeSelectionFromJSON(json: any): CompanyTypeSelection { return CompanyTypeSelectionFromJSONTyped(json, false); } export function CompanyTypeSelectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): CompanyTypeSelection { if (json == null) { return json; } return { 'companyTypeId': json['CompanyTypeId'] == null ? undefined : json['CompanyTypeId'], 'companyType': json['CompanyType'] == null ? undefined : CompanyTypeFromJSON(json['CompanyType']), 'selectionId': json['SelectionId'] == null ? undefined : json['SelectionId'], 'selection': json['Selection'] == null ? undefined : SelectionFromJSON(json['Selection']), }; } export function CompanyTypeSelectionToJSON(json: any): CompanyTypeSelection { return CompanyTypeSelectionToJSONTyped(json, false); } export function CompanyTypeSelectionToJSONTyped(value?: CompanyTypeSelection | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'CompanyTypeId': value['companyTypeId'], 'CompanyType': CompanyTypeToJSON(value['companyType']), 'SelectionId': value['selectionId'], 'Selection': SelectionToJSON(value['selection']), }; }