/* 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 { ApplicationUser } from './ApplicationUser'; import { ApplicationUserFromJSON, ApplicationUserFromJSONTyped, ApplicationUserToJSON, ApplicationUserToJSONTyped, } from './ApplicationUser'; import type { CompanyType } from './CompanyType'; import { CompanyTypeFromJSON, CompanyTypeFromJSONTyped, CompanyTypeToJSON, CompanyTypeToJSONTyped, } from './CompanyType'; /** * * @export * @interface CompanyTypeUser */ export interface CompanyTypeUser { /** * * @type {number} * @memberof CompanyTypeUser */ companyTypeId?: number; /** * * @type {CompanyType} * @memberof CompanyTypeUser */ companyType?: CompanyType; /** * * @type {string} * @memberof CompanyTypeUser */ id?: string | null; /** * * @type {ApplicationUser} * @memberof CompanyTypeUser */ applicationUser?: ApplicationUser; } /** * Check if a given object implements the CompanyTypeUser interface. */ export function instanceOfCompanyTypeUser(value: object): value is CompanyTypeUser { return true; } export function CompanyTypeUserFromJSON(json: any): CompanyTypeUser { return CompanyTypeUserFromJSONTyped(json, false); } export function CompanyTypeUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): CompanyTypeUser { if (json == null) { return json; } return { 'companyTypeId': json['CompanyTypeId'] == null ? undefined : json['CompanyTypeId'], 'companyType': json['CompanyType'] == null ? undefined : CompanyTypeFromJSON(json['CompanyType']), 'id': json['Id'] == null ? undefined : json['Id'], 'applicationUser': json['ApplicationUser'] == null ? undefined : ApplicationUserFromJSON(json['ApplicationUser']), }; } export function CompanyTypeUserToJSON(json: any): CompanyTypeUser { return CompanyTypeUserToJSONTyped(json, false); } export function CompanyTypeUserToJSONTyped(value?: CompanyTypeUser | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'CompanyTypeId': value['companyTypeId'], 'CompanyType': CompanyTypeToJSON(value['companyType']), 'Id': value['id'], 'ApplicationUser': ApplicationUserToJSON(value['applicationUser']), }; }