// To parse this data?: // // import { Convert, User } from "./file"; // // const user = Convert.toUser(json); // // These functions will throw an error if the JSON doesn't // match the expected interface, even if the JSON is valid. export interface User { userAccounts?: UserAccount[]; contact?: Contact; accountId?: number; uiLink?: string; uiLegacyLink?: string; id?: string; customFields?: any[]; pluralName?: string; userName?: string; contactId?: string; password?: string; setUserRoles?: null; passwordReset?: boolean; userRoles?: string; defaultAccountId?: number; clearedFields?: null; lookupFields?: any[]; sourceId?: null; dateCreated?: Date; dateModified?: Date; createdById?: null; modifiedById?: string; } export interface UserAccount { accountId?: number; uiLink?: string; uiLegacyLink?: string; id?: string; customFields?: null; pluralName?: string; userId?: string; fullName?: string; contactId?: string; roles?: string; clearedFields?: null; lookupFields?: any[]; sourceId?: null; dateCreated?: Date; dateModified?: Date; createdById?: null; modifiedById?: string; contact?: Contact; } export interface Contact { addresses?: null; phones?: any[]; uiLegacyLink?: string; userAccounts?: UserAccount[]; accountId?: number; uiLink?: string; id?: string; customFields?: any[]; pluralName?: string; firstName?: string; lastName?: string; active?: boolean; fullName?: string; businessName?: null; email?: string; recordTypeId?: string; custom1?: null; custom2?: null; custom3?: null; custom4?: null; custom5?: null; custom6?: null; custom7?: null; custom8?: null; custom9?: null; custom10?: null; custom11?: null; custom12?: null; custom13?: null; custom14?: null; custom15?: null; custom16?: null; custom17?: null; custom18?: null; custom19?: null; custom20?: null; custom21?: null; custom22?: null; custom23?: null; custom24?: null; custom25?: null; custom26?: null; custom27?: null; custom28?: null; custom29?: null; custom30?: null; custom31?: null; custom32?: null; custom33?: null; custom34?: null; custom35?: null; custom36?: null; custom37?: null; custom38?: null; custom39?: null; custom40?: null; custom41?: null; custom42?: null; custom43?: null; custom44?: null; custom45?: null; custom46?: null; custom47?: null; custom48?: null; custom49?: null; custom50?: null; custom51?: null; custom52?: null; custom53?: null; custom54?: null; custom55?: null; custom56?: null; custom57?: null; custom58?: null; custom59?: null; custom60?: null; custom61?: null; custom62?: null; custom63?: null; custom64?: null; custom65?: null; custom66?: null; custom67?: null; custom68?: null; custom69?: null; custom70?: null; custom71?: null; custom72?: null; custom73?: null; custom74?: null; custom75?: null; custom76?: null; custom77?: null; custom78?: null; custom79?: null; custom80?: null; custom81?: null; custom82?: null; custom83?: null; custom84?: null; custom85?: null; custom86?: null; custom87?: null; custom88?: null; custom89?: null; custom90?: null; custom91?: null; custom92?: null; custom93?: null; custom94?: null; custom95?: null; custom96?: null; custom97?: null; custom98?: null; custom99?: null; custom100?: null; clearedFields?: null; lookupFields?: any[]; sourceId?: null; dateCreated?: Date; dateModified?: Date; createdById?: string; modifiedById?: string; }