other.m.dart 571 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839
  1. import 'authentication.m.dart';
  2. import 'notification.m.dart';
  3. import 'login.m.dart';
  4. import 'upgrade.m.dart';
  5. import 'user.m.dart';
  6. import 'patient.m.dart';
  7. import 'remedical.m.dart';
  8. import 'liveConsultation.m.dart';
  9. import 'recordInfo.m.dart';
  10. import 'organization.m.dart';
  11. import 'device.m.dart';
  12. import 'education.m.dart';
  13. import 'connect.m.dart';
  14. import 'appletAPI.m.dart';
  15. import 'aIDiagnosis.m.dart';
  16. import 'chatMessage.m.dart';
  17. import 'storage.m.dart';
  18. import 'report.m.dart';
  19. import 'payment.m.dart';
  20. import 'lab.m.dart';
  21. import 'vinnoServer.m.dart';
  22. import 'deployPlatform.m.dart';
  23. import 'position.m.dart';
  24. import 'rank.m.dart';
  25. import 'identityApply.m.dart';
  26. import 'role.m.dart';
  27. import 'region.m.dart';
  28. import 'aSR.m.dart';
  29. import 'package:fis_jsonrpc/utils.dart';
  30. import 'package:fis_common/json_convert.dart';
  31. class GenerateRoomUrlRequest {
  32. int roomId;
  33. String? uniqueId;
  34. GenerateRoomUrlRequest({
  35. this.roomId = 0,
  36. this.uniqueId,
  37. });
  38. factory GenerateRoomUrlRequest.fromJson(Map<String, dynamic> map) {
  39. return GenerateRoomUrlRequest(
  40. roomId: map['RoomId'],
  41. uniqueId: map['UniqueId'],
  42. );
  43. }
  44. Map<String, dynamic> toJson() {
  45. final map = Map<String, dynamic>();
  46. map['RoomId'] = roomId;
  47. if(uniqueId != null)
  48. map['UniqueId'] = uniqueId;
  49. return map;
  50. }
  51. }
  52. class GenerateRoomUrlResult {
  53. String? rtmpUrl;
  54. String? rtmpPushUrl;
  55. String? hlsUrl;
  56. String? flvUrl;
  57. GenerateRoomUrlResult({
  58. this.rtmpUrl,
  59. this.rtmpPushUrl,
  60. this.hlsUrl,
  61. this.flvUrl,
  62. });
  63. factory GenerateRoomUrlResult.fromJson(Map<String, dynamic> map) {
  64. return GenerateRoomUrlResult(
  65. rtmpUrl: map['RtmpUrl'],
  66. rtmpPushUrl: map['RtmpPushUrl'],
  67. hlsUrl: map['HlsUrl'],
  68. flvUrl: map['FlvUrl'],
  69. );
  70. }
  71. Map<String, dynamic> toJson() {
  72. final map = Map<String, dynamic>();
  73. if(rtmpUrl != null)
  74. map['RtmpUrl'] = rtmpUrl;
  75. if(rtmpPushUrl != null)
  76. map['RtmpPushUrl'] = rtmpPushUrl;
  77. if(hlsUrl != null)
  78. map['HlsUrl'] = hlsUrl;
  79. if(flvUrl != null)
  80. map['FlvUrl'] = flvUrl;
  81. return map;
  82. }
  83. }
  84. class GetRoomIdRequest {
  85. String? uniqueId;
  86. GetRoomIdRequest({
  87. this.uniqueId,
  88. });
  89. factory GetRoomIdRequest.fromJson(Map<String, dynamic> map) {
  90. return GetRoomIdRequest(
  91. uniqueId: map['UniqueId'],
  92. );
  93. }
  94. Map<String, dynamic> toJson() {
  95. final map = Map<String, dynamic>();
  96. if(uniqueId != null)
  97. map['UniqueId'] = uniqueId;
  98. return map;
  99. }
  100. }
  101. class GetRoomIdResult {
  102. int roomId;
  103. GetRoomIdResult({
  104. this.roomId = 0,
  105. });
  106. factory GetRoomIdResult.fromJson(Map<String, dynamic> map) {
  107. return GetRoomIdResult(
  108. roomId: map['RoomId'],
  109. );
  110. }
  111. Map<String, dynamic> toJson() {
  112. final map = Map<String, dynamic>();
  113. map['RoomId'] = roomId;
  114. return map;
  115. }
  116. }
  117. class GetRtcSettingRequest {
  118. GetRtcSettingRequest();
  119. factory GetRtcSettingRequest.fromJson(Map<String, dynamic> map) {
  120. return GetRtcSettingRequest(
  121. );
  122. }
  123. Map<String, dynamic> toJson() {
  124. final map = Map<String, dynamic>();
  125. return map;
  126. }
  127. }
  128. class GetRtcSettingResult {
  129. int appId;
  130. GetRtcSettingResult({
  131. this.appId = 0,
  132. });
  133. factory GetRtcSettingResult.fromJson(Map<String, dynamic> map) {
  134. return GetRtcSettingResult(
  135. appId: map['AppId'],
  136. );
  137. }
  138. Map<String, dynamic> toJson() {
  139. final map = Map<String, dynamic>();
  140. map['AppId'] = appId;
  141. return map;
  142. }
  143. }
  144. class GetUserSignRequest {
  145. String? userId;
  146. GetUserSignRequest({
  147. this.userId,
  148. });
  149. factory GetUserSignRequest.fromJson(Map<String, dynamic> map) {
  150. return GetUserSignRequest(
  151. userId: map['UserId'],
  152. );
  153. }
  154. Map<String, dynamic> toJson() {
  155. final map = Map<String, dynamic>();
  156. if(userId != null)
  157. map['UserId'] = userId;
  158. return map;
  159. }
  160. }
  161. class GetUserSignResult {
  162. String? userSign;
  163. GetUserSignResult({
  164. this.userSign,
  165. });
  166. factory GetUserSignResult.fromJson(Map<String, dynamic> map) {
  167. return GetUserSignResult(
  168. userSign: map['UserSign'],
  169. );
  170. }
  171. Map<String, dynamic> toJson() {
  172. final map = Map<String, dynamic>();
  173. if(userSign != null)
  174. map['UserSign'] = userSign;
  175. return map;
  176. }
  177. }
  178. class StorageInfoResult {
  179. int code;
  180. bool isSuccess;
  181. String? message;
  182. StorageInfoResult({
  183. this.code = 0,
  184. this.isSuccess = false,
  185. this.message,
  186. });
  187. factory StorageInfoResult.fromJson(Map<String, dynamic> map) {
  188. return StorageInfoResult(
  189. code: map['Code'],
  190. isSuccess: map['IsSuccess'],
  191. message: map['Message'],
  192. );
  193. }
  194. Map<String, dynamic> toJson() {
  195. final map = Map<String, dynamic>();
  196. map['Code'] = code;
  197. map['IsSuccess'] = isSuccess;
  198. if(message != null)
  199. map['Message'] = message;
  200. return map;
  201. }
  202. }
  203. class MeasureItemsResult {
  204. MeasureItemsResult();
  205. factory MeasureItemsResult.fromJson(Map<String, dynamic> map) {
  206. return MeasureItemsResult(
  207. );
  208. }
  209. Map<String, dynamic> toJson() {
  210. final map = Map<String, dynamic>();
  211. return map;
  212. }
  213. }
  214. class WaitClearLogResult {
  215. int daysAgo;
  216. int waitDelCount;
  217. WaitClearLogResult({
  218. this.daysAgo = 0,
  219. this.waitDelCount = 0,
  220. });
  221. factory WaitClearLogResult.fromJson(Map<String, dynamic> map) {
  222. return WaitClearLogResult(
  223. daysAgo: map['DaysAgo'],
  224. waitDelCount: map['WaitDelCount'],
  225. );
  226. }
  227. Map<String, dynamic> toJson() {
  228. final map = Map<String, dynamic>();
  229. map['DaysAgo'] = daysAgo;
  230. map['WaitDelCount'] = waitDelCount;
  231. return map;
  232. }
  233. }
  234. class ClearSystemLogRecordResult {
  235. int daysAgo;
  236. String? requestServerHost;
  237. String? clearTime;
  238. List<WaitClearLogResult >? waitClearLogs;
  239. ClearSystemLogRecordResult({
  240. this.daysAgo = 0,
  241. this.requestServerHost,
  242. this.clearTime,
  243. this.waitClearLogs,
  244. });
  245. factory ClearSystemLogRecordResult.fromJson(Map<String, dynamic> map) {
  246. return ClearSystemLogRecordResult(
  247. daysAgo: map['DaysAgo'],
  248. requestServerHost: map['RequestServerHost'],
  249. clearTime: map['ClearTime'],
  250. waitClearLogs: map['WaitClearLogs'] != null ? (map['WaitClearLogs'] as List).map((e)=>WaitClearLogResult.fromJson(e as Map<String,dynamic>)).toList() : null,
  251. );
  252. }
  253. Map<String, dynamic> toJson() {
  254. final map = Map<String, dynamic>();
  255. map['DaysAgo'] = daysAgo;
  256. if(requestServerHost != null)
  257. map['RequestServerHost'] = requestServerHost;
  258. if(clearTime != null)
  259. map['ClearTime'] = clearTime;
  260. if(waitClearLogs != null)
  261. map['WaitClearLogs'] = waitClearLogs;
  262. return map;
  263. }
  264. }
  265. enum CMSTemplateStatusTypeEnum {
  266. UnPublished,
  267. Published,
  268. }
  269. class CMSTemplateResult {
  270. String? cMSTemplateCode;
  271. String? cMSTemplateName;
  272. CMSTemplateStatusTypeEnum cMSTemplateStateType;
  273. String? cMSTemplateJson;
  274. bool isDefault;
  275. DateTime? createTime;
  276. String? cMSBgColor;
  277. String? cMSBgImg;
  278. bool isShowTop;
  279. String? cMSBorderColor;
  280. int cMSBorderShadow;
  281. CMSTemplateResult({
  282. this.cMSTemplateCode,
  283. this.cMSTemplateName,
  284. this.cMSTemplateStateType = CMSTemplateStatusTypeEnum.UnPublished,
  285. this.cMSTemplateJson,
  286. this.isDefault = false,
  287. this.createTime,
  288. this.cMSBgColor,
  289. this.cMSBgImg,
  290. this.isShowTop = false,
  291. this.cMSBorderColor,
  292. this.cMSBorderShadow = 0,
  293. });
  294. factory CMSTemplateResult.fromJson(Map<String, dynamic> map) {
  295. return CMSTemplateResult(
  296. cMSTemplateCode: map['CMSTemplateCode'],
  297. cMSTemplateName: map['CMSTemplateName'],
  298. cMSTemplateStateType: CMSTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['CMSTemplateStateType']),
  299. cMSTemplateJson: map['CMSTemplateJson'],
  300. isDefault: map['IsDefault'],
  301. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  302. cMSBgColor: map['CMSBgColor'],
  303. cMSBgImg: map['CMSBgImg'],
  304. isShowTop: map['IsShowTop'],
  305. cMSBorderColor: map['CMSBorderColor'],
  306. cMSBorderShadow: map['CMSBorderShadow'],
  307. );
  308. }
  309. Map<String, dynamic> toJson() {
  310. final map = Map<String, dynamic>();
  311. if(cMSTemplateCode != null)
  312. map['CMSTemplateCode'] = cMSTemplateCode;
  313. if(cMSTemplateName != null)
  314. map['CMSTemplateName'] = cMSTemplateName;
  315. map['CMSTemplateStateType'] = cMSTemplateStateType.index;
  316. if(cMSTemplateJson != null)
  317. map['CMSTemplateJson'] = cMSTemplateJson;
  318. map['IsDefault'] = isDefault;
  319. if(createTime != null)
  320. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  321. if(cMSBgColor != null)
  322. map['CMSBgColor'] = cMSBgColor;
  323. if(cMSBgImg != null)
  324. map['CMSBgImg'] = cMSBgImg;
  325. map['IsShowTop'] = isShowTop;
  326. if(cMSBorderColor != null)
  327. map['CMSBorderColor'] = cMSBorderColor;
  328. map['CMSBorderShadow'] = cMSBorderShadow;
  329. return map;
  330. }
  331. }
  332. class OrganizationBindQueryResult {
  333. int bindDeviceNum;
  334. int bindUserNum;
  335. OrganizationBindQueryResult({
  336. this.bindDeviceNum = 0,
  337. this.bindUserNum = 0,
  338. });
  339. factory OrganizationBindQueryResult.fromJson(Map<String, dynamic> map) {
  340. return OrganizationBindQueryResult(
  341. bindDeviceNum: map['BindDeviceNum'],
  342. bindUserNum: map['BindUserNum'],
  343. );
  344. }
  345. Map<String, dynamic> toJson() {
  346. final map = Map<String, dynamic>();
  347. map['BindDeviceNum'] = bindDeviceNum;
  348. map['BindUserNum'] = bindUserNum;
  349. return map;
  350. }
  351. }
  352. class ShareExamUrlResult {
  353. String? posterUrl;
  354. String? videoUrl;
  355. ShareExamUrlResult({
  356. this.posterUrl,
  357. this.videoUrl,
  358. });
  359. factory ShareExamUrlResult.fromJson(Map<String, dynamic> map) {
  360. return ShareExamUrlResult(
  361. posterUrl: map['PosterUrl'],
  362. videoUrl: map['VideoUrl'],
  363. );
  364. }
  365. Map<String, dynamic> toJson() {
  366. final map = Map<String, dynamic>();
  367. if(posterUrl != null)
  368. map['PosterUrl'] = posterUrl;
  369. if(videoUrl != null)
  370. map['VideoUrl'] = videoUrl;
  371. return map;
  372. }
  373. }
  374. class ApplyLockResult {
  375. bool isSuccess;
  376. String? lockUniqueCode;
  377. ApplyLockResult({
  378. this.isSuccess = false,
  379. this.lockUniqueCode,
  380. });
  381. factory ApplyLockResult.fromJson(Map<String, dynamic> map) {
  382. return ApplyLockResult(
  383. isSuccess: map['IsSuccess'],
  384. lockUniqueCode: map['LockUniqueCode'],
  385. );
  386. }
  387. Map<String, dynamic> toJson() {
  388. final map = Map<String, dynamic>();
  389. map['IsSuccess'] = isSuccess;
  390. if(lockUniqueCode != null)
  391. map['LockUniqueCode'] = lockUniqueCode;
  392. return map;
  393. }
  394. }
  395. class ReleaseLockResult {
  396. bool isSuccess;
  397. ReleaseLockResult({
  398. this.isSuccess = false,
  399. });
  400. factory ReleaseLockResult.fromJson(Map<String, dynamic> map) {
  401. return ReleaseLockResult(
  402. isSuccess: map['IsSuccess'],
  403. );
  404. }
  405. Map<String, dynamic> toJson() {
  406. final map = Map<String, dynamic>();
  407. map['IsSuccess'] = isSuccess;
  408. return map;
  409. }
  410. }
  411. class MarshalByRefObject {
  412. MarshalByRefObject();
  413. factory MarshalByRefObject.fromJson(Map<String, dynamic> map) {
  414. return MarshalByRefObject(
  415. );
  416. }
  417. Map<String, dynamic> toJson() {
  418. final map = Map<String, dynamic>();
  419. return map;
  420. }
  421. }
  422. class Stream extends MarshalByRefObject{
  423. bool canRead;
  424. bool canWrite;
  425. bool canSeek;
  426. bool canTimeout;
  427. int length;
  428. int position;
  429. int readTimeout;
  430. int writeTimeout;
  431. Stream({
  432. this.canRead = false,
  433. this.canWrite = false,
  434. this.canSeek = false,
  435. this.canTimeout = false,
  436. this.length = 0,
  437. this.position = 0,
  438. this.readTimeout = 0,
  439. this.writeTimeout = 0,
  440. }) : super(
  441. );
  442. factory Stream.fromJson(Map<String, dynamic> map) {
  443. return Stream(
  444. canRead: map['CanRead'],
  445. canWrite: map['CanWrite'],
  446. canSeek: map['CanSeek'],
  447. canTimeout: map['CanTimeout'],
  448. length: map['Length'],
  449. position: map['Position'],
  450. readTimeout: map['ReadTimeout'],
  451. writeTimeout: map['WriteTimeout'],
  452. );
  453. }
  454. Map<String, dynamic> toJson() {
  455. final map = super.toJson();
  456. map['CanRead'] = canRead;
  457. map['CanWrite'] = canWrite;
  458. map['CanSeek'] = canSeek;
  459. map['CanTimeout'] = canTimeout;
  460. map['Length'] = length;
  461. map['Position'] = position;
  462. map['ReadTimeout'] = readTimeout;
  463. map['WriteTimeout'] = writeTimeout;
  464. return map;
  465. }
  466. }
  467. class DownloadFileResult {
  468. Stream? merageFileStream;
  469. int fileSize;
  470. DownloadFileResult({
  471. this.merageFileStream,
  472. this.fileSize = 0,
  473. });
  474. factory DownloadFileResult.fromJson(Map<String, dynamic> map) {
  475. return DownloadFileResult(
  476. merageFileStream: map['MerageFileStream'] != null ? Stream.fromJson(map['MerageFileStream']) : null,
  477. fileSize: map['FileSize'],
  478. );
  479. }
  480. Map<String, dynamic> toJson() {
  481. final map = Map<String, dynamic>();
  482. if(merageFileStream != null)
  483. map['MerageFileStream'] = merageFileStream;
  484. map['FileSize'] = fileSize;
  485. return map;
  486. }
  487. }
  488. class BaseLiveResult {
  489. String? roomCode;
  490. int integerRoomId;
  491. String? rtcMessageJson;
  492. BaseLiveResult({
  493. this.roomCode,
  494. this.integerRoomId = 0,
  495. this.rtcMessageJson,
  496. });
  497. factory BaseLiveResult.fromJson(Map<String, dynamic> map) {
  498. return BaseLiveResult(
  499. roomCode: map['RoomCode'],
  500. integerRoomId: map['IntegerRoomId'],
  501. rtcMessageJson: map['RtcMessageJson'],
  502. );
  503. }
  504. Map<String, dynamic> toJson() {
  505. final map = Map<String, dynamic>();
  506. if(roomCode != null)
  507. map['RoomCode'] = roomCode;
  508. map['IntegerRoomId'] = integerRoomId;
  509. if(rtcMessageJson != null)
  510. map['RtcMessageJson'] = rtcMessageJson;
  511. return map;
  512. }
  513. }
  514. class MuteLiveResult extends BaseLiveResult{
  515. bool mute;
  516. MuteLiveResult({
  517. this.mute = false,
  518. String? roomCode,
  519. int integerRoomId = 0,
  520. String? rtcMessageJson,
  521. }) : super(
  522. roomCode: roomCode,
  523. integerRoomId: integerRoomId,
  524. rtcMessageJson: rtcMessageJson,
  525. );
  526. factory MuteLiveResult.fromJson(Map<String, dynamic> map) {
  527. return MuteLiveResult(
  528. mute: map['Mute'],
  529. roomCode: map['RoomCode'],
  530. integerRoomId: map['IntegerRoomId'],
  531. rtcMessageJson: map['RtcMessageJson'],
  532. );
  533. }
  534. Map<String, dynamic> toJson() {
  535. final map = super.toJson();
  536. map['Mute'] = mute;
  537. return map;
  538. }
  539. }
  540. class OpenedVideoLiveResult extends BaseLiveResult{
  541. bool videoOpend;
  542. OpenedVideoLiveResult({
  543. this.videoOpend = false,
  544. String? roomCode,
  545. int integerRoomId = 0,
  546. String? rtcMessageJson,
  547. }) : super(
  548. roomCode: roomCode,
  549. integerRoomId: integerRoomId,
  550. rtcMessageJson: rtcMessageJson,
  551. );
  552. factory OpenedVideoLiveResult.fromJson(Map<String, dynamic> map) {
  553. return OpenedVideoLiveResult(
  554. videoOpend: map['VideoOpend'],
  555. roomCode: map['RoomCode'],
  556. integerRoomId: map['IntegerRoomId'],
  557. rtcMessageJson: map['RtcMessageJson'],
  558. );
  559. }
  560. Map<String, dynamic> toJson() {
  561. final map = super.toJson();
  562. map['VideoOpend'] = videoOpend;
  563. return map;
  564. }
  565. }
  566. class ControllingParameterLiveResult extends BaseLiveResult{
  567. bool isControllingParameter;
  568. ControllingParameterLiveResult({
  569. this.isControllingParameter = false,
  570. String? roomCode,
  571. int integerRoomId = 0,
  572. String? rtcMessageJson,
  573. }) : super(
  574. roomCode: roomCode,
  575. integerRoomId: integerRoomId,
  576. rtcMessageJson: rtcMessageJson,
  577. );
  578. factory ControllingParameterLiveResult.fromJson(Map<String, dynamic> map) {
  579. return ControllingParameterLiveResult(
  580. isControllingParameter: map['IsControllingParameter'],
  581. roomCode: map['RoomCode'],
  582. integerRoomId: map['IntegerRoomId'],
  583. rtcMessageJson: map['RtcMessageJson'],
  584. );
  585. }
  586. Map<String, dynamic> toJson() {
  587. final map = super.toJson();
  588. map['IsControllingParameter'] = isControllingParameter;
  589. return map;
  590. }
  591. }
  592. class ChangeCourseStatusResult extends BaseLiveResult{
  593. CourseStatusEnum status;
  594. ChangeCourseStatusResult({
  595. this.status = CourseStatusEnum.Unknown,
  596. String? roomCode,
  597. int integerRoomId = 0,
  598. String? rtcMessageJson,
  599. }) : super(
  600. roomCode: roomCode,
  601. integerRoomId: integerRoomId,
  602. rtcMessageJson: rtcMessageJson,
  603. );
  604. factory ChangeCourseStatusResult.fromJson(Map<String, dynamic> map) {
  605. return ChangeCourseStatusResult(
  606. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  607. roomCode: map['RoomCode'],
  608. integerRoomId: map['IntegerRoomId'],
  609. rtcMessageJson: map['RtcMessageJson'],
  610. );
  611. }
  612. Map<String, dynamic> toJson() {
  613. final map = super.toJson();
  614. map['Status'] = status.index;
  615. return map;
  616. }
  617. }
  618. class FindConsultationSettingResult {
  619. String? version;
  620. String? settingData;
  621. FindConsultationSettingResult({
  622. this.version,
  623. this.settingData,
  624. });
  625. factory FindConsultationSettingResult.fromJson(Map<String, dynamic> map) {
  626. return FindConsultationSettingResult(
  627. version: map['Version'],
  628. settingData: map['SettingData'],
  629. );
  630. }
  631. Map<String, dynamic> toJson() {
  632. final map = Map<String, dynamic>();
  633. if(version != null)
  634. map['Version'] = version;
  635. if(settingData != null)
  636. map['SettingData'] = settingData;
  637. return map;
  638. }
  639. }
  640. class AddCacheReportPosterRequest extends TokenRequest{
  641. String? reportPosterCode;
  642. AddCacheReportPosterRequest({
  643. this.reportPosterCode,
  644. String? token,
  645. }) : super(
  646. token: token,
  647. );
  648. factory AddCacheReportPosterRequest.fromJson(Map<String, dynamic> map) {
  649. return AddCacheReportPosterRequest(
  650. reportPosterCode: map['ReportPosterCode'],
  651. token: map['Token'],
  652. );
  653. }
  654. Map<String, dynamic> toJson() {
  655. final map = super.toJson();
  656. if(reportPosterCode != null)
  657. map['ReportPosterCode'] = reportPosterCode;
  658. return map;
  659. }
  660. }
  661. class DeleteThesaurusUserCodeRequest extends TokenRequest{
  662. String? thesaurusCode;
  663. DeleteThesaurusUserCodeRequest({
  664. this.thesaurusCode,
  665. String? token,
  666. }) : super(
  667. token: token,
  668. );
  669. factory DeleteThesaurusUserCodeRequest.fromJson(Map<String, dynamic> map) {
  670. return DeleteThesaurusUserCodeRequest(
  671. thesaurusCode: map['ThesaurusCode'],
  672. token: map['Token'],
  673. );
  674. }
  675. Map<String, dynamic> toJson() {
  676. final map = super.toJson();
  677. if(thesaurusCode != null)
  678. map['ThesaurusCode'] = thesaurusCode;
  679. return map;
  680. }
  681. }
  682. class RemoveCacheReportPosterRequest extends TokenRequest{
  683. String? reportPosterCode;
  684. RemoveCacheReportPosterRequest({
  685. this.reportPosterCode,
  686. String? token,
  687. }) : super(
  688. token: token,
  689. );
  690. factory RemoveCacheReportPosterRequest.fromJson(Map<String, dynamic> map) {
  691. return RemoveCacheReportPosterRequest(
  692. reportPosterCode: map['ReportPosterCode'],
  693. token: map['Token'],
  694. );
  695. }
  696. Map<String, dynamic> toJson() {
  697. final map = super.toJson();
  698. if(reportPosterCode != null)
  699. map['ReportPosterCode'] = reportPosterCode;
  700. return map;
  701. }
  702. }
  703. class UpdateThesaurusUserCodeRequest extends TokenRequest{
  704. String? thesaurusCode;
  705. UpdateThesaurusUserCodeRequest({
  706. this.thesaurusCode,
  707. String? token,
  708. }) : super(
  709. token: token,
  710. );
  711. factory UpdateThesaurusUserCodeRequest.fromJson(Map<String, dynamic> map) {
  712. return UpdateThesaurusUserCodeRequest(
  713. thesaurusCode: map['ThesaurusCode'],
  714. token: map['Token'],
  715. );
  716. }
  717. Map<String, dynamic> toJson() {
  718. final map = super.toJson();
  719. if(thesaurusCode != null)
  720. map['ThesaurusCode'] = thesaurusCode;
  721. return map;
  722. }
  723. }
  724. class PushRecordCodesToDeviceRequest extends TokenRequest{
  725. List<String >? recordCodes;
  726. String? deviceCode;
  727. PushRecordCodesToDeviceRequest({
  728. this.recordCodes,
  729. this.deviceCode,
  730. String? token,
  731. }) : super(
  732. token: token,
  733. );
  734. factory PushRecordCodesToDeviceRequest.fromJson(Map<String, dynamic> map) {
  735. return PushRecordCodesToDeviceRequest(
  736. recordCodes: map['RecordCodes'] != null ? map['RecordCodes'].cast<String>().toList() : null,
  737. deviceCode: map['DeviceCode'],
  738. token: map['Token'],
  739. );
  740. }
  741. Map<String, dynamic> toJson() {
  742. final map = super.toJson();
  743. if(recordCodes != null)
  744. map['RecordCodes'] = recordCodes;
  745. if(deviceCode != null)
  746. map['DeviceCode'] = deviceCode;
  747. return map;
  748. }
  749. }
  750. class PayCallbackRequest {
  751. String? keyWord;
  752. PayCallbackRequest({
  753. this.keyWord,
  754. });
  755. factory PayCallbackRequest.fromJson(Map<String, dynamic> map) {
  756. return PayCallbackRequest(
  757. keyWord: map['KeyWord'],
  758. );
  759. }
  760. Map<String, dynamic> toJson() {
  761. final map = Map<String, dynamic>();
  762. if(keyWord != null)
  763. map['KeyWord'] = keyWord;
  764. return map;
  765. }
  766. }
  767. class CloseNotifyQueueRequest {
  768. String? msgQueueId;
  769. CloseNotifyQueueRequest({
  770. this.msgQueueId,
  771. });
  772. factory CloseNotifyQueueRequest.fromJson(Map<String, dynamic> map) {
  773. return CloseNotifyQueueRequest(
  774. msgQueueId: map['MsgQueueId'],
  775. );
  776. }
  777. Map<String, dynamic> toJson() {
  778. final map = Map<String, dynamic>();
  779. if(msgQueueId != null)
  780. map['MsgQueueId'] = msgQueueId;
  781. return map;
  782. }
  783. }
  784. class OpenNotifyQueueRequest {
  785. String? module;
  786. OpenNotifyQueueRequest({
  787. this.module,
  788. });
  789. factory OpenNotifyQueueRequest.fromJson(Map<String, dynamic> map) {
  790. return OpenNotifyQueueRequest(
  791. module: map['Module'],
  792. );
  793. }
  794. Map<String, dynamic> toJson() {
  795. final map = Map<String, dynamic>();
  796. if(module != null)
  797. map['Module'] = module;
  798. return map;
  799. }
  800. }
  801. class ApplyLockRequest {
  802. String? lockKey;
  803. ApplyLockRequest({
  804. this.lockKey,
  805. });
  806. factory ApplyLockRequest.fromJson(Map<String, dynamic> map) {
  807. return ApplyLockRequest(
  808. lockKey: map['LockKey'],
  809. );
  810. }
  811. Map<String, dynamic> toJson() {
  812. final map = Map<String, dynamic>();
  813. if(lockKey != null)
  814. map['LockKey'] = lockKey;
  815. return map;
  816. }
  817. }
  818. class ReleaseLockRequest {
  819. String? lockUniqueCode;
  820. ReleaseLockRequest({
  821. this.lockUniqueCode,
  822. });
  823. factory ReleaseLockRequest.fromJson(Map<String, dynamic> map) {
  824. return ReleaseLockRequest(
  825. lockUniqueCode: map['LockUniqueCode'],
  826. );
  827. }
  828. Map<String, dynamic> toJson() {
  829. final map = Map<String, dynamic>();
  830. if(lockUniqueCode != null)
  831. map['LockUniqueCode'] = lockUniqueCode;
  832. return map;
  833. }
  834. }
  835. class AssignPatientToUsersRequest extends TokenRequest{
  836. String? patientCode;
  837. List<String >? userCodes;
  838. AssignPatientToUsersRequest({
  839. this.patientCode,
  840. this.userCodes,
  841. String? token,
  842. }) : super(
  843. token: token,
  844. );
  845. factory AssignPatientToUsersRequest.fromJson(Map<String, dynamic> map) {
  846. return AssignPatientToUsersRequest(
  847. patientCode: map['PatientCode'],
  848. userCodes: map['UserCodes'] != null ? map['UserCodes'].cast<String>().toList() : null,
  849. token: map['Token'],
  850. );
  851. }
  852. Map<String, dynamic> toJson() {
  853. final map = super.toJson();
  854. if(patientCode != null)
  855. map['PatientCode'] = patientCode;
  856. if(userCodes != null)
  857. map['UserCodes'] = userCodes;
  858. return map;
  859. }
  860. }
  861. class QuestionDetailDTO extends BaseDTO{
  862. String? code;
  863. double score;
  864. QuestionDetailDTO({
  865. this.code,
  866. this.score = 0,
  867. DateTime? createTime,
  868. DateTime? updateTime,
  869. }) : super(
  870. createTime: createTime,
  871. updateTime: updateTime,
  872. );
  873. factory QuestionDetailDTO.fromJson(Map<String, dynamic> map) {
  874. return QuestionDetailDTO(
  875. code: map['Code'],
  876. score: double.parse(map['Score'].toString()),
  877. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  878. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  879. );
  880. }
  881. Map<String, dynamic> toJson() {
  882. final map = super.toJson();
  883. if(code != null)
  884. map['Code'] = code;
  885. map['Score'] = score;
  886. return map;
  887. }
  888. }
  889. class AddExaminationPaperRequest extends TokenRequest{
  890. String? name;
  891. double totalScore;
  892. List<QuestionDetailDTO >? questionList;
  893. List<String >? caseLabelCodes;
  894. List<String >? courseLabelCodes;
  895. AddExaminationPaperRequest({
  896. this.name,
  897. this.totalScore = 0,
  898. this.questionList,
  899. this.caseLabelCodes,
  900. this.courseLabelCodes,
  901. String? token,
  902. }) : super(
  903. token: token,
  904. );
  905. factory AddExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  906. return AddExaminationPaperRequest(
  907. name: map['Name'],
  908. totalScore: double.parse(map['TotalScore'].toString()),
  909. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>QuestionDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  910. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  911. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  912. token: map['Token'],
  913. );
  914. }
  915. Map<String, dynamic> toJson() {
  916. final map = super.toJson();
  917. if(name != null)
  918. map['Name'] = name;
  919. map['TotalScore'] = totalScore;
  920. if(questionList != null)
  921. map['QuestionList'] = questionList;
  922. if(caseLabelCodes != null)
  923. map['CaseLabelCodes'] = caseLabelCodes;
  924. if(courseLabelCodes != null)
  925. map['CourseLabelCodes'] = courseLabelCodes;
  926. return map;
  927. }
  928. }
  929. class FindUserGroupByStudentRequest extends TokenRequest{
  930. FindUserGroupByStudentRequest({
  931. String? token,
  932. }) : super(
  933. token: token,
  934. );
  935. factory FindUserGroupByStudentRequest.fromJson(Map<String, dynamic> map) {
  936. return FindUserGroupByStudentRequest(
  937. token: map['Token'],
  938. );
  939. }
  940. Map<String, dynamic> toJson() {
  941. final map = super.toJson();
  942. return map;
  943. }
  944. }
  945. class CourseLabelRequest extends TokenRequest{
  946. String? code;
  947. List<LabelLanguageConfigDTO >? labelLanguageConfigs;
  948. OrganizationPatientTypeEnum useObjectType;
  949. LabelTypeEnum type;
  950. String? parentCode;
  951. CourseLabelRequest({
  952. this.code,
  953. this.labelLanguageConfigs,
  954. this.useObjectType = OrganizationPatientTypeEnum.Person,
  955. this.type = LabelTypeEnum.Unknown,
  956. this.parentCode,
  957. String? token,
  958. }) : super(
  959. token: token,
  960. );
  961. factory CourseLabelRequest.fromJson(Map<String, dynamic> map) {
  962. return CourseLabelRequest(
  963. code: map['Code'],
  964. labelLanguageConfigs: map['LabelLanguageConfigs'] != null ? (map['LabelLanguageConfigs'] as List).map((e)=>LabelLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  965. useObjectType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['UseObjectType']),
  966. type: LabelTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  967. parentCode: map['ParentCode'],
  968. token: map['Token'],
  969. );
  970. }
  971. Map<String, dynamic> toJson() {
  972. final map = super.toJson();
  973. if(code != null)
  974. map['Code'] = code;
  975. if(labelLanguageConfigs != null)
  976. map['LabelLanguageConfigs'] = labelLanguageConfigs;
  977. map['UseObjectType'] = useObjectType.index;
  978. map['Type'] = type.index;
  979. if(parentCode != null)
  980. map['ParentCode'] = parentCode;
  981. return map;
  982. }
  983. }
  984. class DeleteExaminationPaperRequest extends TokenRequest{
  985. String? examinationPaperCode;
  986. DeleteExaminationPaperRequest({
  987. this.examinationPaperCode,
  988. String? token,
  989. }) : super(
  990. token: token,
  991. );
  992. factory DeleteExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  993. return DeleteExaminationPaperRequest(
  994. examinationPaperCode: map['ExaminationPaperCode'],
  995. token: map['Token'],
  996. );
  997. }
  998. Map<String, dynamic> toJson() {
  999. final map = super.toJson();
  1000. if(examinationPaperCode != null)
  1001. map['ExaminationPaperCode'] = examinationPaperCode;
  1002. return map;
  1003. }
  1004. }
  1005. class FindExaminationQuestionPagesRequest extends PageRequest{
  1006. String? searchKey;
  1007. List<String >? caseLabelCodes;
  1008. List<String >? courseLabelCodes;
  1009. List<String >? codes;
  1010. List<String >? notInCodes;
  1011. FindExaminationQuestionPagesRequest({
  1012. this.searchKey,
  1013. this.caseLabelCodes,
  1014. this.courseLabelCodes,
  1015. this.codes,
  1016. this.notInCodes,
  1017. int pageIndex = 0,
  1018. int pageSize = 0,
  1019. String? token,
  1020. }) : super(
  1021. pageIndex: pageIndex,
  1022. pageSize: pageSize,
  1023. token: token,
  1024. );
  1025. factory FindExaminationQuestionPagesRequest.fromJson(Map<String, dynamic> map) {
  1026. return FindExaminationQuestionPagesRequest(
  1027. searchKey: map['SearchKey'],
  1028. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  1029. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  1030. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  1031. notInCodes: map['NotInCodes'] != null ? map['NotInCodes'].cast<String>().toList() : null,
  1032. pageIndex: map['PageIndex'],
  1033. pageSize: map['PageSize'],
  1034. token: map['Token'],
  1035. );
  1036. }
  1037. Map<String, dynamic> toJson() {
  1038. final map = super.toJson();
  1039. if(searchKey != null)
  1040. map['SearchKey'] = searchKey;
  1041. if(caseLabelCodes != null)
  1042. map['CaseLabelCodes'] = caseLabelCodes;
  1043. if(courseLabelCodes != null)
  1044. map['CourseLabelCodes'] = courseLabelCodes;
  1045. if(codes != null)
  1046. map['Codes'] = codes;
  1047. if(notInCodes != null)
  1048. map['NotInCodes'] = notInCodes;
  1049. return map;
  1050. }
  1051. }
  1052. class FindExaminationQuestionsByCodesRequest extends TokenRequest{
  1053. List<String >? codes;
  1054. FindExaminationQuestionsByCodesRequest({
  1055. this.codes,
  1056. String? token,
  1057. }) : super(
  1058. token: token,
  1059. );
  1060. factory FindExaminationQuestionsByCodesRequest.fromJson(Map<String, dynamic> map) {
  1061. return FindExaminationQuestionsByCodesRequest(
  1062. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  1063. token: map['Token'],
  1064. );
  1065. }
  1066. Map<String, dynamic> toJson() {
  1067. final map = super.toJson();
  1068. if(codes != null)
  1069. map['Codes'] = codes;
  1070. return map;
  1071. }
  1072. }
  1073. class CreateExaminationQuestionRequest extends TokenRequest{
  1074. String? stem;
  1075. QuestionTypeEnum questionType;
  1076. List<QuestionOptionDTO >? questionOptionList;
  1077. List<QuestionFileDTO >? fileList;
  1078. List<String >? caseLabelCodes;
  1079. List<String >? courseLabelCodes;
  1080. bool trueOrFalse;
  1081. CreateExaminationQuestionRequest({
  1082. this.stem,
  1083. this.questionType = QuestionTypeEnum.Judge,
  1084. this.questionOptionList,
  1085. this.fileList,
  1086. this.caseLabelCodes,
  1087. this.courseLabelCodes,
  1088. this.trueOrFalse = false,
  1089. String? token,
  1090. }) : super(
  1091. token: token,
  1092. );
  1093. factory CreateExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1094. return CreateExaminationQuestionRequest(
  1095. stem: map['Stem'],
  1096. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  1097. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1098. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1099. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  1100. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  1101. trueOrFalse: map['TrueOrFalse'],
  1102. token: map['Token'],
  1103. );
  1104. }
  1105. Map<String, dynamic> toJson() {
  1106. final map = super.toJson();
  1107. if(stem != null)
  1108. map['Stem'] = stem;
  1109. map['QuestionType'] = questionType.index;
  1110. if(questionOptionList != null)
  1111. map['QuestionOptionList'] = questionOptionList;
  1112. if(fileList != null)
  1113. map['FileList'] = fileList;
  1114. if(caseLabelCodes != null)
  1115. map['CaseLabelCodes'] = caseLabelCodes;
  1116. if(courseLabelCodes != null)
  1117. map['CourseLabelCodes'] = courseLabelCodes;
  1118. map['TrueOrFalse'] = trueOrFalse;
  1119. return map;
  1120. }
  1121. }
  1122. class GetExaminationQuestionRequest extends TokenRequest{
  1123. String? code;
  1124. GetExaminationQuestionRequest({
  1125. this.code,
  1126. String? token,
  1127. }) : super(
  1128. token: token,
  1129. );
  1130. factory GetExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1131. return GetExaminationQuestionRequest(
  1132. code: map['Code'],
  1133. token: map['Token'],
  1134. );
  1135. }
  1136. Map<String, dynamic> toJson() {
  1137. final map = super.toJson();
  1138. if(code != null)
  1139. map['Code'] = code;
  1140. return map;
  1141. }
  1142. }
  1143. class UpdateExaminationQuestionRequest extends TokenRequest{
  1144. String? code;
  1145. String? stem;
  1146. QuestionTypeEnum questionType;
  1147. List<QuestionOptionDTO >? questionOptionList;
  1148. List<QuestionFileDTO >? fileList;
  1149. List<String >? caseLabelCodes;
  1150. List<String >? courseLabelCodes;
  1151. bool trueOrFalse;
  1152. UpdateExaminationQuestionRequest({
  1153. this.code,
  1154. this.stem,
  1155. this.questionType = QuestionTypeEnum.Judge,
  1156. this.questionOptionList,
  1157. this.fileList,
  1158. this.caseLabelCodes,
  1159. this.courseLabelCodes,
  1160. this.trueOrFalse = false,
  1161. String? token,
  1162. }) : super(
  1163. token: token,
  1164. );
  1165. factory UpdateExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1166. return UpdateExaminationQuestionRequest(
  1167. code: map['Code'],
  1168. stem: map['Stem'],
  1169. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  1170. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1171. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1172. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  1173. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  1174. trueOrFalse: map['TrueOrFalse'],
  1175. token: map['Token'],
  1176. );
  1177. }
  1178. Map<String, dynamic> toJson() {
  1179. final map = super.toJson();
  1180. if(code != null)
  1181. map['Code'] = code;
  1182. if(stem != null)
  1183. map['Stem'] = stem;
  1184. map['QuestionType'] = questionType.index;
  1185. if(questionOptionList != null)
  1186. map['QuestionOptionList'] = questionOptionList;
  1187. if(fileList != null)
  1188. map['FileList'] = fileList;
  1189. if(caseLabelCodes != null)
  1190. map['CaseLabelCodes'] = caseLabelCodes;
  1191. if(courseLabelCodes != null)
  1192. map['CourseLabelCodes'] = courseLabelCodes;
  1193. map['TrueOrFalse'] = trueOrFalse;
  1194. return map;
  1195. }
  1196. }
  1197. class DeleteExaminationQuestionRequest extends TokenRequest{
  1198. String? code;
  1199. DeleteExaminationQuestionRequest({
  1200. this.code,
  1201. String? token,
  1202. }) : super(
  1203. token: token,
  1204. );
  1205. factory DeleteExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1206. return DeleteExaminationQuestionRequest(
  1207. code: map['Code'],
  1208. token: map['Token'],
  1209. );
  1210. }
  1211. Map<String, dynamic> toJson() {
  1212. final map = super.toJson();
  1213. if(code != null)
  1214. map['Code'] = code;
  1215. return map;
  1216. }
  1217. }
  1218. class GetExaminationPaperPagesRequest extends PageRequest{
  1219. String? keyword;
  1220. List<String >? caseLabelCodes;
  1221. List<String >? courseLabelCodes;
  1222. GetExaminationPaperPagesRequest({
  1223. this.keyword,
  1224. this.caseLabelCodes,
  1225. this.courseLabelCodes,
  1226. int pageIndex = 0,
  1227. int pageSize = 0,
  1228. String? token,
  1229. }) : super(
  1230. pageIndex: pageIndex,
  1231. pageSize: pageSize,
  1232. token: token,
  1233. );
  1234. factory GetExaminationPaperPagesRequest.fromJson(Map<String, dynamic> map) {
  1235. return GetExaminationPaperPagesRequest(
  1236. keyword: map['Keyword'],
  1237. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  1238. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  1239. pageIndex: map['PageIndex'],
  1240. pageSize: map['PageSize'],
  1241. token: map['Token'],
  1242. );
  1243. }
  1244. Map<String, dynamic> toJson() {
  1245. final map = super.toJson();
  1246. if(keyword != null)
  1247. map['Keyword'] = keyword;
  1248. if(caseLabelCodes != null)
  1249. map['CaseLabelCodes'] = caseLabelCodes;
  1250. if(courseLabelCodes != null)
  1251. map['CourseLabelCodes'] = courseLabelCodes;
  1252. return map;
  1253. }
  1254. }
  1255. class GetExaminationPaperRequest extends TokenRequest{
  1256. String? examinationPaperCode;
  1257. GetExaminationPaperRequest({
  1258. this.examinationPaperCode,
  1259. String? token,
  1260. }) : super(
  1261. token: token,
  1262. );
  1263. factory GetExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  1264. return GetExaminationPaperRequest(
  1265. examinationPaperCode: map['ExaminationPaperCode'],
  1266. token: map['Token'],
  1267. );
  1268. }
  1269. Map<String, dynamic> toJson() {
  1270. final map = super.toJson();
  1271. if(examinationPaperCode != null)
  1272. map['ExaminationPaperCode'] = examinationPaperCode;
  1273. return map;
  1274. }
  1275. }
  1276. class CancelLiveCourseRequest extends InitiateLiveCourseRequest{
  1277. CancelLiveCourseRequest({
  1278. String? courseCode,
  1279. String? token,
  1280. }) : super(
  1281. courseCode: courseCode,
  1282. token: token,
  1283. );
  1284. factory CancelLiveCourseRequest.fromJson(Map<String, dynamic> map) {
  1285. return CancelLiveCourseRequest(
  1286. courseCode: map['CourseCode'],
  1287. token: map['Token'],
  1288. );
  1289. }
  1290. Map<String, dynamic> toJson() {
  1291. final map = super.toJson();
  1292. return map;
  1293. }
  1294. }
  1295. class QueryStudentByGroupCodePageRequest extends PageRequest{
  1296. String? keyword;
  1297. String? userGroupCode;
  1298. QueryStudentByGroupCodePageRequest({
  1299. this.keyword,
  1300. this.userGroupCode,
  1301. int pageIndex = 0,
  1302. int pageSize = 0,
  1303. String? token,
  1304. }) : super(
  1305. pageIndex: pageIndex,
  1306. pageSize: pageSize,
  1307. token: token,
  1308. );
  1309. factory QueryStudentByGroupCodePageRequest.fromJson(Map<String, dynamic> map) {
  1310. return QueryStudentByGroupCodePageRequest(
  1311. keyword: map['Keyword'],
  1312. userGroupCode: map['UserGroupCode'],
  1313. pageIndex: map['PageIndex'],
  1314. pageSize: map['PageSize'],
  1315. token: map['Token'],
  1316. );
  1317. }
  1318. Map<String, dynamic> toJson() {
  1319. final map = super.toJson();
  1320. if(keyword != null)
  1321. map['Keyword'] = keyword;
  1322. if(userGroupCode != null)
  1323. map['UserGroupCode'] = userGroupCode;
  1324. return map;
  1325. }
  1326. }
  1327. class UpdateExaminationPaperRequest extends TokenRequest{
  1328. String? examinationPaperCode;
  1329. String? name;
  1330. double totalScore;
  1331. List<QuestionDetailDTO >? questionList;
  1332. List<String >? caseLabelCodes;
  1333. List<String >? courseLabelCodes;
  1334. UpdateExaminationPaperRequest({
  1335. this.examinationPaperCode,
  1336. this.name,
  1337. this.totalScore = 0,
  1338. this.questionList,
  1339. this.caseLabelCodes,
  1340. this.courseLabelCodes,
  1341. String? token,
  1342. }) : super(
  1343. token: token,
  1344. );
  1345. factory UpdateExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  1346. return UpdateExaminationPaperRequest(
  1347. examinationPaperCode: map['ExaminationPaperCode'],
  1348. name: map['Name'],
  1349. totalScore: double.parse(map['TotalScore'].toString()),
  1350. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>QuestionDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1351. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  1352. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  1353. token: map['Token'],
  1354. );
  1355. }
  1356. Map<String, dynamic> toJson() {
  1357. final map = super.toJson();
  1358. if(examinationPaperCode != null)
  1359. map['ExaminationPaperCode'] = examinationPaperCode;
  1360. if(name != null)
  1361. map['Name'] = name;
  1362. map['TotalScore'] = totalScore;
  1363. if(questionList != null)
  1364. map['QuestionList'] = questionList;
  1365. if(caseLabelCodes != null)
  1366. map['CaseLabelCodes'] = caseLabelCodes;
  1367. if(courseLabelCodes != null)
  1368. map['CourseLabelCodes'] = courseLabelCodes;
  1369. return map;
  1370. }
  1371. }
  1372. class QueryCourseLabelPageRequest extends PageRequest{
  1373. String? name;
  1374. String? languageCode;
  1375. LabelTypeEnum type;
  1376. String? parentCode;
  1377. QueryCourseLabelPageRequest({
  1378. this.name,
  1379. this.languageCode,
  1380. this.type = LabelTypeEnum.Unknown,
  1381. this.parentCode,
  1382. int pageIndex = 0,
  1383. int pageSize = 0,
  1384. String? token,
  1385. }) : super(
  1386. pageIndex: pageIndex,
  1387. pageSize: pageSize,
  1388. token: token,
  1389. );
  1390. factory QueryCourseLabelPageRequest.fromJson(Map<String, dynamic> map) {
  1391. return QueryCourseLabelPageRequest(
  1392. name: map['Name'],
  1393. languageCode: map['LanguageCode'],
  1394. type: LabelTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  1395. parentCode: map['ParentCode'],
  1396. pageIndex: map['PageIndex'],
  1397. pageSize: map['PageSize'],
  1398. token: map['Token'],
  1399. );
  1400. }
  1401. Map<String, dynamic> toJson() {
  1402. final map = super.toJson();
  1403. if(name != null)
  1404. map['Name'] = name;
  1405. if(languageCode != null)
  1406. map['LanguageCode'] = languageCode;
  1407. map['Type'] = type.index;
  1408. if(parentCode != null)
  1409. map['ParentCode'] = parentCode;
  1410. return map;
  1411. }
  1412. }
  1413. class AlterDeviceRequest extends TokenRequest{
  1414. String? deviceCode;
  1415. String? serialNumber;
  1416. String? name;
  1417. String? description;
  1418. String? headPicUrl;
  1419. String? organizationCode;
  1420. String? departmentCode;
  1421. bool isAutoShared;
  1422. AlterDeviceRequest({
  1423. this.deviceCode,
  1424. this.serialNumber,
  1425. this.name,
  1426. this.description,
  1427. this.headPicUrl,
  1428. this.organizationCode,
  1429. this.departmentCode,
  1430. this.isAutoShared = false,
  1431. String? token,
  1432. }) : super(
  1433. token: token,
  1434. );
  1435. factory AlterDeviceRequest.fromJson(Map<String, dynamic> map) {
  1436. return AlterDeviceRequest(
  1437. deviceCode: map['DeviceCode'],
  1438. serialNumber: map['SerialNumber'],
  1439. name: map['Name'],
  1440. description: map['Description'],
  1441. headPicUrl: map['HeadPicUrl'],
  1442. organizationCode: map['OrganizationCode'],
  1443. departmentCode: map['DepartmentCode'],
  1444. isAutoShared: map['IsAutoShared'],
  1445. token: map['Token'],
  1446. );
  1447. }
  1448. Map<String, dynamic> toJson() {
  1449. final map = super.toJson();
  1450. if(deviceCode != null)
  1451. map['DeviceCode'] = deviceCode;
  1452. if(serialNumber != null)
  1453. map['SerialNumber'] = serialNumber;
  1454. if(name != null)
  1455. map['Name'] = name;
  1456. if(description != null)
  1457. map['Description'] = description;
  1458. if(headPicUrl != null)
  1459. map['HeadPicUrl'] = headPicUrl;
  1460. if(organizationCode != null)
  1461. map['OrganizationCode'] = organizationCode;
  1462. if(departmentCode != null)
  1463. map['DepartmentCode'] = departmentCode;
  1464. map['IsAutoShared'] = isAutoShared;
  1465. return map;
  1466. }
  1467. }
  1468. class CleanDeviceCacheRequest {
  1469. String? deviceCode;
  1470. CleanDeviceCacheRequest({
  1471. this.deviceCode,
  1472. });
  1473. factory CleanDeviceCacheRequest.fromJson(Map<String, dynamic> map) {
  1474. return CleanDeviceCacheRequest(
  1475. deviceCode: map['DeviceCode'],
  1476. );
  1477. }
  1478. Map<String, dynamic> toJson() {
  1479. final map = Map<String, dynamic>();
  1480. if(deviceCode != null)
  1481. map['DeviceCode'] = deviceCode;
  1482. return map;
  1483. }
  1484. }
  1485. class DeviceDiagnosisChangedNotification extends TokenRequest{
  1486. String? diagnosisModule;
  1487. String? organizationCode;
  1488. String? deviceCode;
  1489. DeviceDiagnosisChangedNotification({
  1490. this.diagnosisModule,
  1491. this.organizationCode,
  1492. this.deviceCode,
  1493. String? token,
  1494. }) : super(
  1495. token: token,
  1496. );
  1497. factory DeviceDiagnosisChangedNotification.fromJson(Map<String, dynamic> map) {
  1498. return DeviceDiagnosisChangedNotification(
  1499. diagnosisModule: map['DiagnosisModule'],
  1500. organizationCode: map['OrganizationCode'],
  1501. deviceCode: map['DeviceCode'],
  1502. token: map['Token'],
  1503. );
  1504. }
  1505. Map<String, dynamic> toJson() {
  1506. final map = super.toJson();
  1507. if(diagnosisModule != null)
  1508. map['DiagnosisModule'] = diagnosisModule;
  1509. if(organizationCode != null)
  1510. map['OrganizationCode'] = organizationCode;
  1511. if(deviceCode != null)
  1512. map['DeviceCode'] = deviceCode;
  1513. return map;
  1514. }
  1515. }
  1516. class DeviceLeaveLiveConsultationRequest extends TokenRequest{
  1517. String? consultationCode;
  1518. DeviceLeaveLiveConsultationRequest({
  1519. this.consultationCode,
  1520. String? token,
  1521. }) : super(
  1522. token: token,
  1523. );
  1524. factory DeviceLeaveLiveConsultationRequest.fromJson(Map<String, dynamic> map) {
  1525. return DeviceLeaveLiveConsultationRequest(
  1526. consultationCode: map['ConsultationCode'],
  1527. token: map['Token'],
  1528. );
  1529. }
  1530. Map<String, dynamic> toJson() {
  1531. final map = super.toJson();
  1532. if(consultationCode != null)
  1533. map['ConsultationCode'] = consultationCode;
  1534. return map;
  1535. }
  1536. }
  1537. class DeviceLeaveLiveConsultationResult {
  1538. bool success;
  1539. DeviceLeaveLiveConsultationResult({
  1540. this.success = false,
  1541. });
  1542. factory DeviceLeaveLiveConsultationResult.fromJson(Map<String, dynamic> map) {
  1543. return DeviceLeaveLiveConsultationResult(
  1544. success: map['Success'],
  1545. );
  1546. }
  1547. Map<String, dynamic> toJson() {
  1548. final map = Map<String, dynamic>();
  1549. map['Success'] = success;
  1550. return map;
  1551. }
  1552. }
  1553. class GetDevicePrinterRequest extends TokenRequest{
  1554. String? deviceCode;
  1555. DevicePrinterEnum getPrinterEnum;
  1556. GetDevicePrinterRequest({
  1557. this.deviceCode,
  1558. this.getPrinterEnum = DevicePrinterEnum.GetInstalledPrinters,
  1559. String? token,
  1560. }) : super(
  1561. token: token,
  1562. );
  1563. factory GetDevicePrinterRequest.fromJson(Map<String, dynamic> map) {
  1564. return GetDevicePrinterRequest(
  1565. deviceCode: map['DeviceCode'],
  1566. getPrinterEnum: DevicePrinterEnum.values.firstWhere((e) => e.index == map['GetPrinterEnum']),
  1567. token: map['Token'],
  1568. );
  1569. }
  1570. Map<String, dynamic> toJson() {
  1571. final map = super.toJson();
  1572. if(deviceCode != null)
  1573. map['DeviceCode'] = deviceCode;
  1574. map['GetPrinterEnum'] = getPrinterEnum.index;
  1575. return map;
  1576. }
  1577. }
  1578. class RemoteConnectDataRequest {
  1579. String? roomCode;
  1580. UserRemoteConnectRequest? userRemoteConnect;
  1581. bool isManangeDisConnnect;
  1582. RemoteConnectDataRequest({
  1583. this.roomCode,
  1584. this.userRemoteConnect,
  1585. this.isManangeDisConnnect = false,
  1586. });
  1587. factory RemoteConnectDataRequest.fromJson(Map<String, dynamic> map) {
  1588. return RemoteConnectDataRequest(
  1589. roomCode: map['RoomCode'],
  1590. userRemoteConnect: map['UserRemoteConnect'] != null ? UserRemoteConnectRequest.fromJson(map['UserRemoteConnect']) : null,
  1591. isManangeDisConnnect: map['IsManangeDisConnnect'],
  1592. );
  1593. }
  1594. Map<String, dynamic> toJson() {
  1595. final map = Map<String, dynamic>();
  1596. if(roomCode != null)
  1597. map['RoomCode'] = roomCode;
  1598. if(userRemoteConnect != null)
  1599. map['UserRemoteConnect'] = userRemoteConnect;
  1600. map['IsManangeDisConnnect'] = isManangeDisConnnect;
  1601. return map;
  1602. }
  1603. }
  1604. class ReportLiveStateResult {
  1605. ReportLiveStateResult();
  1606. factory ReportLiveStateResult.fromJson(Map<String, dynamic> map) {
  1607. return ReportLiveStateResult(
  1608. );
  1609. }
  1610. Map<String, dynamic> toJson() {
  1611. final map = Map<String, dynamic>();
  1612. return map;
  1613. }
  1614. }
  1615. class RemoteControlRequest extends TokenRequest{
  1616. String? controlUserCode;
  1617. RemoteControlRequest({
  1618. this.controlUserCode,
  1619. String? token,
  1620. }) : super(
  1621. token: token,
  1622. );
  1623. factory RemoteControlRequest.fromJson(Map<String, dynamic> map) {
  1624. return RemoteControlRequest(
  1625. controlUserCode: map['ControlUserCode'],
  1626. token: map['Token'],
  1627. );
  1628. }
  1629. Map<String, dynamic> toJson() {
  1630. final map = super.toJson();
  1631. if(controlUserCode != null)
  1632. map['ControlUserCode'] = controlUserCode;
  1633. return map;
  1634. }
  1635. }
  1636. class TransportAfterSalesCommonRequest {
  1637. String? reqJson;
  1638. String? receiverId;
  1639. NotificationTypeEnum notificationType;
  1640. TransportAfterSalesCommonRequest({
  1641. this.reqJson,
  1642. this.receiverId,
  1643. this.notificationType = NotificationTypeEnum.Unknown,
  1644. });
  1645. factory TransportAfterSalesCommonRequest.fromJson(Map<String, dynamic> map) {
  1646. return TransportAfterSalesCommonRequest(
  1647. reqJson: map['ReqJson'],
  1648. receiverId: map['ReceiverId'],
  1649. notificationType: NotificationTypeEnum.values.firstWhere((e) => e.index == map['NotificationType']),
  1650. );
  1651. }
  1652. Map<String, dynamic> toJson() {
  1653. final map = Map<String, dynamic>();
  1654. if(reqJson != null)
  1655. map['ReqJson'] = reqJson;
  1656. if(receiverId != null)
  1657. map['ReceiverId'] = receiverId;
  1658. map['NotificationType'] = notificationType.index;
  1659. return map;
  1660. }
  1661. }
  1662. class ConfirmAssociatedWithAccountRequest extends TokenRequest{
  1663. String? emailAddress;
  1664. String? verifyCode;
  1665. ConfirmAssociatedWithAccountRequest({
  1666. this.emailAddress,
  1667. this.verifyCode,
  1668. String? token,
  1669. }) : super(
  1670. token: token,
  1671. );
  1672. factory ConfirmAssociatedWithAccountRequest.fromJson(Map<String, dynamic> map) {
  1673. return ConfirmAssociatedWithAccountRequest(
  1674. emailAddress: map['EmailAddress'],
  1675. verifyCode: map['VerifyCode'],
  1676. token: map['Token'],
  1677. );
  1678. }
  1679. Map<String, dynamic> toJson() {
  1680. final map = super.toJson();
  1681. if(emailAddress != null)
  1682. map['EmailAddress'] = emailAddress;
  1683. if(verifyCode != null)
  1684. map['VerifyCode'] = verifyCode;
  1685. return map;
  1686. }
  1687. }
  1688. class DeleteThesaurusCodeRequest extends TokenRequest{
  1689. String? thesaurusCode;
  1690. DeleteThesaurusCodeRequest({
  1691. this.thesaurusCode,
  1692. String? token,
  1693. }) : super(
  1694. token: token,
  1695. );
  1696. factory DeleteThesaurusCodeRequest.fromJson(Map<String, dynamic> map) {
  1697. return DeleteThesaurusCodeRequest(
  1698. thesaurusCode: map['ThesaurusCode'],
  1699. token: map['Token'],
  1700. );
  1701. }
  1702. Map<String, dynamic> toJson() {
  1703. final map = super.toJson();
  1704. if(thesaurusCode != null)
  1705. map['ThesaurusCode'] = thesaurusCode;
  1706. return map;
  1707. }
  1708. }
  1709. class SignUpRequest extends UserDTO{
  1710. SignUpRequest({
  1711. String? nickName,
  1712. String? organizationCode,
  1713. String? organizationName,
  1714. String? rootOrganizationCode,
  1715. String? rootOrganizationName,
  1716. List<String >? authorityGroups,
  1717. List<String >? bindDevices,
  1718. String? lastIP,
  1719. int logintimes = 0,
  1720. UserInfoStateEnum userState = UserInfoStateEnum.Nonactivated,
  1721. List<String >? roleCodes,
  1722. List<String >? rankCodes,
  1723. List<String >? positionCodes,
  1724. ApplyStateEnum applyState = ApplyStateEnum.NotApply,
  1725. String? rankName,
  1726. String? positionName,
  1727. bool isDirector = false,
  1728. List<String >? fieldList,
  1729. List<String >? deletePatientCodes,
  1730. bool isBatchExportDiagnoseData = false,
  1731. String? bindAssistantUserCode,
  1732. String? bindAssistantDoctorUserCode,
  1733. LoginLockInfoDTO? loginLockInfo,
  1734. String? signature,
  1735. String? language,
  1736. bool enableReportLabel = false,
  1737. List<AssociatedInfoDTO >? associatedInfos,
  1738. String? commonPlatformUserId,
  1739. String? bindEmergencyDeviceCode,
  1740. String? bindEmergencyExpertCode,
  1741. List<String >? dashboardOrgCodes,
  1742. String? phone,
  1743. String? email,
  1744. String? userCode,
  1745. String? userName,
  1746. String? fullName,
  1747. String? headImageUrl,
  1748. String? displayName,
  1749. DateTime? createTime,
  1750. DateTime? updateTime,
  1751. }) : super(
  1752. nickName: nickName,
  1753. organizationCode: organizationCode,
  1754. organizationName: organizationName,
  1755. rootOrganizationCode: rootOrganizationCode,
  1756. rootOrganizationName: rootOrganizationName,
  1757. authorityGroups: authorityGroups,
  1758. bindDevices: bindDevices,
  1759. lastIP: lastIP,
  1760. logintimes: logintimes,
  1761. userState: userState,
  1762. roleCodes: roleCodes,
  1763. rankCodes: rankCodes,
  1764. positionCodes: positionCodes,
  1765. applyState: applyState,
  1766. rankName: rankName,
  1767. positionName: positionName,
  1768. isDirector: isDirector,
  1769. fieldList: fieldList,
  1770. deletePatientCodes: deletePatientCodes,
  1771. isBatchExportDiagnoseData: isBatchExportDiagnoseData,
  1772. bindAssistantUserCode: bindAssistantUserCode,
  1773. bindAssistantDoctorUserCode: bindAssistantDoctorUserCode,
  1774. loginLockInfo: loginLockInfo,
  1775. signature: signature,
  1776. language: language,
  1777. enableReportLabel: enableReportLabel,
  1778. associatedInfos: associatedInfos,
  1779. commonPlatformUserId: commonPlatformUserId,
  1780. bindEmergencyDeviceCode: bindEmergencyDeviceCode,
  1781. bindEmergencyExpertCode: bindEmergencyExpertCode,
  1782. dashboardOrgCodes: dashboardOrgCodes,
  1783. phone: phone,
  1784. email: email,
  1785. userCode: userCode,
  1786. userName: userName,
  1787. fullName: fullName,
  1788. headImageUrl: headImageUrl,
  1789. displayName: displayName,
  1790. createTime: createTime,
  1791. updateTime: updateTime,
  1792. );
  1793. factory SignUpRequest.fromJson(Map<String, dynamic> map) {
  1794. return SignUpRequest(
  1795. nickName: map['NickName'],
  1796. organizationCode: map['OrganizationCode'],
  1797. organizationName: map['OrganizationName'],
  1798. rootOrganizationCode: map['RootOrganizationCode'],
  1799. rootOrganizationName: map['RootOrganizationName'],
  1800. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  1801. bindDevices: map['BindDevices'] != null ? map['BindDevices'].cast<String>().toList() : null,
  1802. lastIP: map['LastIP'],
  1803. logintimes: map['Logintimes'],
  1804. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  1805. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  1806. rankCodes: map['RankCodes'] != null ? map['RankCodes'].cast<String>().toList() : null,
  1807. positionCodes: map['PositionCodes'] != null ? map['PositionCodes'].cast<String>().toList() : null,
  1808. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  1809. rankName: map['RankName'],
  1810. positionName: map['PositionName'],
  1811. isDirector: map['IsDirector'],
  1812. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  1813. deletePatientCodes: map['DeletePatientCodes'] != null ? map['DeletePatientCodes'].cast<String>().toList() : null,
  1814. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  1815. bindAssistantUserCode: map['BindAssistantUserCode'],
  1816. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  1817. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  1818. signature: map['Signature'],
  1819. language: map['Language'],
  1820. enableReportLabel: map['EnableReportLabel'],
  1821. associatedInfos: map['AssociatedInfos'] != null ? (map['AssociatedInfos'] as List).map((e)=>AssociatedInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1822. commonPlatformUserId: map['CommonPlatformUserId'],
  1823. bindEmergencyDeviceCode: map['BindEmergencyDeviceCode'],
  1824. bindEmergencyExpertCode: map['BindEmergencyExpertCode'],
  1825. dashboardOrgCodes: map['DashboardOrgCodes'] != null ? map['DashboardOrgCodes'].cast<String>().toList() : null,
  1826. phone: map['Phone'],
  1827. email: map['Email'],
  1828. userCode: map['UserCode'],
  1829. userName: map['UserName'],
  1830. fullName: map['FullName'],
  1831. headImageUrl: map['HeadImageUrl'],
  1832. displayName: map['DisplayName'],
  1833. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  1834. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  1835. );
  1836. }
  1837. Map<String, dynamic> toJson() {
  1838. final map = super.toJson();
  1839. return map;
  1840. }
  1841. }
  1842. class UpdateThesaurusCodeRequest extends TokenRequest{
  1843. String? thesaurusCode;
  1844. UpdateThesaurusCodeRequest({
  1845. this.thesaurusCode,
  1846. String? token,
  1847. }) : super(
  1848. token: token,
  1849. );
  1850. factory UpdateThesaurusCodeRequest.fromJson(Map<String, dynamic> map) {
  1851. return UpdateThesaurusCodeRequest(
  1852. thesaurusCode: map['ThesaurusCode'],
  1853. token: map['Token'],
  1854. );
  1855. }
  1856. Map<String, dynamic> toJson() {
  1857. final map = super.toJson();
  1858. if(thesaurusCode != null)
  1859. map['ThesaurusCode'] = thesaurusCode;
  1860. return map;
  1861. }
  1862. }
  1863. enum AnnouncementStatusEnum {
  1864. placeHolder_0,
  1865. Released,
  1866. Pending,
  1867. }
  1868. class AnnouncementInfoDTO extends BaseDTO{
  1869. String? code;
  1870. AnnouncementTypeEnum announcementType;
  1871. AnnouncementStatusEnum announcementStatus;
  1872. List<AnnouncementLanguageConfigDTO >? languageConfigs;
  1873. AnnouncementInfoDTO({
  1874. this.code,
  1875. this.announcementType = AnnouncementTypeEnum.Broadcast,
  1876. this.announcementStatus = AnnouncementStatusEnum.Released,
  1877. this.languageConfigs,
  1878. DateTime? createTime,
  1879. DateTime? updateTime,
  1880. }) : super(
  1881. createTime: createTime,
  1882. updateTime: updateTime,
  1883. );
  1884. factory AnnouncementInfoDTO.fromJson(Map<String, dynamic> map) {
  1885. return AnnouncementInfoDTO(
  1886. code: map['Code'],
  1887. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  1888. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  1889. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>AnnouncementLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1890. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  1891. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  1892. );
  1893. }
  1894. Map<String, dynamic> toJson() {
  1895. final map = super.toJson();
  1896. if(code != null)
  1897. map['Code'] = code;
  1898. map['AnnouncementType'] = announcementType.index;
  1899. map['AnnouncementStatus'] = announcementStatus.index;
  1900. if(languageConfigs != null)
  1901. map['LanguageConfigs'] = languageConfigs;
  1902. return map;
  1903. }
  1904. }
  1905. class AddAnnouncementRequest extends AnnouncementInfoDTO{
  1906. AddAnnouncementRequest({
  1907. String? code,
  1908. AnnouncementTypeEnum announcementType = AnnouncementTypeEnum.Broadcast,
  1909. AnnouncementStatusEnum announcementStatus = AnnouncementStatusEnum.Released,
  1910. List<AnnouncementLanguageConfigDTO >? languageConfigs,
  1911. DateTime? createTime,
  1912. DateTime? updateTime,
  1913. }) : super(
  1914. code: code,
  1915. announcementType: announcementType,
  1916. announcementStatus: announcementStatus,
  1917. languageConfigs: languageConfigs,
  1918. createTime: createTime,
  1919. updateTime: updateTime,
  1920. );
  1921. factory AddAnnouncementRequest.fromJson(Map<String, dynamic> map) {
  1922. return AddAnnouncementRequest(
  1923. code: map['Code'],
  1924. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  1925. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  1926. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>AnnouncementLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1927. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  1928. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  1929. );
  1930. }
  1931. Map<String, dynamic> toJson() {
  1932. final map = super.toJson();
  1933. return map;
  1934. }
  1935. }
  1936. class UpdateAnnouncementRequest extends AnnouncementInfoDTO{
  1937. UpdateAnnouncementRequest({
  1938. String? code,
  1939. AnnouncementTypeEnum announcementType = AnnouncementTypeEnum.Broadcast,
  1940. AnnouncementStatusEnum announcementStatus = AnnouncementStatusEnum.Released,
  1941. List<AnnouncementLanguageConfigDTO >? languageConfigs,
  1942. DateTime? createTime,
  1943. DateTime? updateTime,
  1944. }) : super(
  1945. code: code,
  1946. announcementType: announcementType,
  1947. announcementStatus: announcementStatus,
  1948. languageConfigs: languageConfigs,
  1949. createTime: createTime,
  1950. updateTime: updateTime,
  1951. );
  1952. factory UpdateAnnouncementRequest.fromJson(Map<String, dynamic> map) {
  1953. return UpdateAnnouncementRequest(
  1954. code: map['Code'],
  1955. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  1956. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  1957. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>AnnouncementLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1958. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  1959. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  1960. );
  1961. }
  1962. Map<String, dynamic> toJson() {
  1963. final map = super.toJson();
  1964. return map;
  1965. }
  1966. }
  1967. class AddContentConfigRequest extends TokenRequest{
  1968. String? bindTypeKey;
  1969. String? bindTypeValue;
  1970. String? bindContentKey;
  1971. String? bindContentValue;
  1972. AddContentConfigRequest({
  1973. this.bindTypeKey,
  1974. this.bindTypeValue,
  1975. this.bindContentKey,
  1976. this.bindContentValue,
  1977. String? token,
  1978. }) : super(
  1979. token: token,
  1980. );
  1981. factory AddContentConfigRequest.fromJson(Map<String, dynamic> map) {
  1982. return AddContentConfigRequest(
  1983. bindTypeKey: map['BindTypeKey'],
  1984. bindTypeValue: map['BindTypeValue'],
  1985. bindContentKey: map['BindContentKey'],
  1986. bindContentValue: map['BindContentValue'],
  1987. token: map['Token'],
  1988. );
  1989. }
  1990. Map<String, dynamic> toJson() {
  1991. final map = super.toJson();
  1992. if(bindTypeKey != null)
  1993. map['BindTypeKey'] = bindTypeKey;
  1994. if(bindTypeValue != null)
  1995. map['BindTypeValue'] = bindTypeValue;
  1996. if(bindContentKey != null)
  1997. map['BindContentKey'] = bindContentKey;
  1998. if(bindContentValue != null)
  1999. map['BindContentValue'] = bindContentValue;
  2000. return map;
  2001. }
  2002. }
  2003. enum DeviceVideoOutputTypeEnum {
  2004. MergedVideo,
  2005. Desktop,
  2006. Camera,
  2007. }
  2008. class AddDeviceOutputConfigRequest extends TokenRequest{
  2009. DeviceVideoOutputTypeEnum deviceVideoOutputType;
  2010. int videoWidth;
  2011. int videoHeight;
  2012. AddDeviceOutputConfigRequest({
  2013. this.deviceVideoOutputType = DeviceVideoOutputTypeEnum.MergedVideo,
  2014. this.videoWidth = 0,
  2015. this.videoHeight = 0,
  2016. String? token,
  2017. }) : super(
  2018. token: token,
  2019. );
  2020. factory AddDeviceOutputConfigRequest.fromJson(Map<String, dynamic> map) {
  2021. return AddDeviceOutputConfigRequest(
  2022. deviceVideoOutputType: DeviceVideoOutputTypeEnum.values.firstWhere((e) => e.index == map['DeviceVideoOutputType']),
  2023. videoWidth: map['VideoWidth'],
  2024. videoHeight: map['VideoHeight'],
  2025. token: map['Token'],
  2026. );
  2027. }
  2028. Map<String, dynamic> toJson() {
  2029. final map = super.toJson();
  2030. map['DeviceVideoOutputType'] = deviceVideoOutputType.index;
  2031. map['VideoWidth'] = videoWidth;
  2032. map['VideoHeight'] = videoHeight;
  2033. return map;
  2034. }
  2035. }
  2036. class AdminApplyCourseRequest extends TokenRequest{
  2037. String? name;
  2038. String? courseIntro;
  2039. String? teacherCode;
  2040. String? cover;
  2041. DateTime? startTime;
  2042. int duration;
  2043. CourseTypeEnum courseType;
  2044. CourseAudienceTypeEnum audienceType;
  2045. String? coursewareToken;
  2046. String? teacherName;
  2047. CourseViewRangeEnum viewRange;
  2048. List<String >? caseLabelCodes;
  2049. List<String >? courseLabelCodes;
  2050. List<String >? userGroupCodes;
  2051. Decimal? price;
  2052. List<String >? courseVideoCodes;
  2053. List<CourseExaminationDTO >? bindExams;
  2054. bool isSmallClass;
  2055. List<String >? assistants;
  2056. List<String >? experts;
  2057. bool isAgentCourse;
  2058. List<String >? courseAlbumCodes;
  2059. bool isStick;
  2060. int sort;
  2061. AdminApplyCourseRequest({
  2062. this.name,
  2063. this.courseIntro,
  2064. this.teacherCode,
  2065. this.cover,
  2066. this.startTime,
  2067. this.duration = 0,
  2068. this.courseType = CourseTypeEnum.Unknown,
  2069. this.audienceType = CourseAudienceTypeEnum.Unknown,
  2070. this.coursewareToken,
  2071. this.teacherName,
  2072. this.viewRange = CourseViewRangeEnum.All,
  2073. this.caseLabelCodes,
  2074. this.courseLabelCodes,
  2075. this.userGroupCodes,
  2076. this.price,
  2077. this.courseVideoCodes,
  2078. this.bindExams,
  2079. this.isSmallClass = false,
  2080. this.assistants,
  2081. this.experts,
  2082. this.isAgentCourse = false,
  2083. this.courseAlbumCodes,
  2084. this.isStick = false,
  2085. this.sort = 0,
  2086. String? token,
  2087. }) : super(
  2088. token: token,
  2089. );
  2090. factory AdminApplyCourseRequest.fromJson(Map<String, dynamic> map) {
  2091. return AdminApplyCourseRequest(
  2092. name: map['Name'],
  2093. courseIntro: map['CourseIntro'],
  2094. teacherCode: map['TeacherCode'],
  2095. cover: map['Cover'],
  2096. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  2097. duration: map['Duration'],
  2098. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  2099. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  2100. coursewareToken: map['CoursewareToken'],
  2101. teacherName: map['TeacherName'],
  2102. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  2103. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  2104. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  2105. userGroupCodes: map['UserGroupCodes'] != null ? map['UserGroupCodes'].cast<String>().toList() : null,
  2106. price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
  2107. courseVideoCodes: map['CourseVideoCodes'] != null ? map['CourseVideoCodes'].cast<String>().toList() : null,
  2108. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2109. isSmallClass: map['IsSmallClass'],
  2110. assistants: map['Assistants'] != null ? map['Assistants'].cast<String>().toList() : null,
  2111. experts: map['Experts'] != null ? map['Experts'].cast<String>().toList() : null,
  2112. isAgentCourse: map['IsAgentCourse'],
  2113. courseAlbumCodes: map['CourseAlbumCodes'] != null ? map['CourseAlbumCodes'].cast<String>().toList() : null,
  2114. isStick: map['IsStick'],
  2115. sort: map['Sort'],
  2116. token: map['Token'],
  2117. );
  2118. }
  2119. Map<String, dynamic> toJson() {
  2120. final map = super.toJson();
  2121. if(name != null)
  2122. map['Name'] = name;
  2123. if(courseIntro != null)
  2124. map['CourseIntro'] = courseIntro;
  2125. if(teacherCode != null)
  2126. map['TeacherCode'] = teacherCode;
  2127. if(cover != null)
  2128. map['Cover'] = cover;
  2129. if(startTime != null)
  2130. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  2131. map['Duration'] = duration;
  2132. map['CourseType'] = courseType.index;
  2133. map['AudienceType'] = audienceType.index;
  2134. if(coursewareToken != null)
  2135. map['CoursewareToken'] = coursewareToken;
  2136. if(teacherName != null)
  2137. map['TeacherName'] = teacherName;
  2138. map['ViewRange'] = viewRange.index;
  2139. if(caseLabelCodes != null)
  2140. map['CaseLabelCodes'] = caseLabelCodes;
  2141. if(courseLabelCodes != null)
  2142. map['CourseLabelCodes'] = courseLabelCodes;
  2143. if(userGroupCodes != null)
  2144. map['UserGroupCodes'] = userGroupCodes;
  2145. if(price != null)
  2146. map['Price'] = price;
  2147. if(courseVideoCodes != null)
  2148. map['CourseVideoCodes'] = courseVideoCodes;
  2149. if(bindExams != null)
  2150. map['BindExams'] = bindExams;
  2151. map['IsSmallClass'] = isSmallClass;
  2152. if(assistants != null)
  2153. map['Assistants'] = assistants;
  2154. if(experts != null)
  2155. map['Experts'] = experts;
  2156. map['IsAgentCourse'] = isAgentCourse;
  2157. if(courseAlbumCodes != null)
  2158. map['CourseAlbumCodes'] = courseAlbumCodes;
  2159. map['IsStick'] = isStick;
  2160. map['Sort'] = sort;
  2161. return map;
  2162. }
  2163. }
  2164. class AdminApprovalCourseRequest extends TokenRequest{
  2165. String? code;
  2166. CourseStatusEnum status;
  2167. AdminApprovalCourseRequest({
  2168. this.code,
  2169. this.status = CourseStatusEnum.Unknown,
  2170. String? token,
  2171. }) : super(
  2172. token: token,
  2173. );
  2174. factory AdminApprovalCourseRequest.fromJson(Map<String, dynamic> map) {
  2175. return AdminApprovalCourseRequest(
  2176. code: map['Code'],
  2177. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  2178. token: map['Token'],
  2179. );
  2180. }
  2181. Map<String, dynamic> toJson() {
  2182. final map = super.toJson();
  2183. if(code != null)
  2184. map['Code'] = code;
  2185. map['Status'] = status.index;
  2186. return map;
  2187. }
  2188. }
  2189. class AdminDeleteCourseByCodeRequest extends TokenRequest{
  2190. String? code;
  2191. AdminDeleteCourseByCodeRequest({
  2192. this.code,
  2193. String? token,
  2194. }) : super(
  2195. token: token,
  2196. );
  2197. factory AdminDeleteCourseByCodeRequest.fromJson(Map<String, dynamic> map) {
  2198. return AdminDeleteCourseByCodeRequest(
  2199. code: map['Code'],
  2200. token: map['Token'],
  2201. );
  2202. }
  2203. Map<String, dynamic> toJson() {
  2204. final map = super.toJson();
  2205. if(code != null)
  2206. map['Code'] = code;
  2207. return map;
  2208. }
  2209. }
  2210. class AdminFindCoursePagesRequest extends PageRequest{
  2211. String? keyword;
  2212. CourseStatusEnum status;
  2213. String? languageCode;
  2214. CourseTypeEnum courseType;
  2215. CourseAudienceTypeEnum audienceType;
  2216. AdminFindCoursePagesRequest({
  2217. this.keyword,
  2218. this.status = CourseStatusEnum.Unknown,
  2219. this.languageCode,
  2220. this.courseType = CourseTypeEnum.Unknown,
  2221. this.audienceType = CourseAudienceTypeEnum.Unknown,
  2222. int pageIndex = 0,
  2223. int pageSize = 0,
  2224. String? token,
  2225. }) : super(
  2226. pageIndex: pageIndex,
  2227. pageSize: pageSize,
  2228. token: token,
  2229. );
  2230. factory AdminFindCoursePagesRequest.fromJson(Map<String, dynamic> map) {
  2231. return AdminFindCoursePagesRequest(
  2232. keyword: map['Keyword'],
  2233. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  2234. languageCode: map['LanguageCode'],
  2235. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  2236. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  2237. pageIndex: map['PageIndex'],
  2238. pageSize: map['PageSize'],
  2239. token: map['Token'],
  2240. );
  2241. }
  2242. Map<String, dynamic> toJson() {
  2243. final map = super.toJson();
  2244. if(keyword != null)
  2245. map['Keyword'] = keyword;
  2246. map['Status'] = status.index;
  2247. if(languageCode != null)
  2248. map['LanguageCode'] = languageCode;
  2249. map['CourseType'] = courseType.index;
  2250. map['AudienceType'] = audienceType.index;
  2251. return map;
  2252. }
  2253. }
  2254. class AdminUpdateCourseRequest extends TokenRequest{
  2255. String? code;
  2256. String? name;
  2257. String? courseIntro;
  2258. String? teacherCode;
  2259. String? cover;
  2260. DateTime? startTime;
  2261. int duration;
  2262. CourseTypeEnum courseType;
  2263. CourseAudienceTypeEnum audienceType;
  2264. String? coursewareToken;
  2265. String? teacherName;
  2266. CourseViewRangeEnum viewRange;
  2267. List<String >? caseLabelCodes;
  2268. List<String >? courseLabelCodes;
  2269. List<String >? userGroupCodes;
  2270. Decimal? price;
  2271. List<String >? courseVideoCodes;
  2272. List<CourseExaminationDTO >? bindExams;
  2273. bool isSmallClass;
  2274. List<String >? assistants;
  2275. List<String >? experts;
  2276. bool isAgentCourse;
  2277. List<String >? courseAlbumCodes;
  2278. bool isStick;
  2279. int sort;
  2280. AdminUpdateCourseRequest({
  2281. this.code,
  2282. this.name,
  2283. this.courseIntro,
  2284. this.teacherCode,
  2285. this.cover,
  2286. this.startTime,
  2287. this.duration = 0,
  2288. this.courseType = CourseTypeEnum.Unknown,
  2289. this.audienceType = CourseAudienceTypeEnum.Unknown,
  2290. this.coursewareToken,
  2291. this.teacherName,
  2292. this.viewRange = CourseViewRangeEnum.All,
  2293. this.caseLabelCodes,
  2294. this.courseLabelCodes,
  2295. this.userGroupCodes,
  2296. this.price,
  2297. this.courseVideoCodes,
  2298. this.bindExams,
  2299. this.isSmallClass = false,
  2300. this.assistants,
  2301. this.experts,
  2302. this.isAgentCourse = false,
  2303. this.courseAlbumCodes,
  2304. this.isStick = false,
  2305. this.sort = 0,
  2306. String? token,
  2307. }) : super(
  2308. token: token,
  2309. );
  2310. factory AdminUpdateCourseRequest.fromJson(Map<String, dynamic> map) {
  2311. return AdminUpdateCourseRequest(
  2312. code: map['Code'],
  2313. name: map['Name'],
  2314. courseIntro: map['CourseIntro'],
  2315. teacherCode: map['TeacherCode'],
  2316. cover: map['Cover'],
  2317. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  2318. duration: map['Duration'],
  2319. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  2320. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  2321. coursewareToken: map['CoursewareToken'],
  2322. teacherName: map['TeacherName'],
  2323. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  2324. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  2325. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  2326. userGroupCodes: map['UserGroupCodes'] != null ? map['UserGroupCodes'].cast<String>().toList() : null,
  2327. price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
  2328. courseVideoCodes: map['CourseVideoCodes'] != null ? map['CourseVideoCodes'].cast<String>().toList() : null,
  2329. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2330. isSmallClass: map['IsSmallClass'],
  2331. assistants: map['Assistants'] != null ? map['Assistants'].cast<String>().toList() : null,
  2332. experts: map['Experts'] != null ? map['Experts'].cast<String>().toList() : null,
  2333. isAgentCourse: map['IsAgentCourse'],
  2334. courseAlbumCodes: map['CourseAlbumCodes'] != null ? map['CourseAlbumCodes'].cast<String>().toList() : null,
  2335. isStick: map['IsStick'],
  2336. sort: map['Sort'],
  2337. token: map['Token'],
  2338. );
  2339. }
  2340. Map<String, dynamic> toJson() {
  2341. final map = super.toJson();
  2342. if(code != null)
  2343. map['Code'] = code;
  2344. if(name != null)
  2345. map['Name'] = name;
  2346. if(courseIntro != null)
  2347. map['CourseIntro'] = courseIntro;
  2348. if(teacherCode != null)
  2349. map['TeacherCode'] = teacherCode;
  2350. if(cover != null)
  2351. map['Cover'] = cover;
  2352. if(startTime != null)
  2353. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  2354. map['Duration'] = duration;
  2355. map['CourseType'] = courseType.index;
  2356. map['AudienceType'] = audienceType.index;
  2357. if(coursewareToken != null)
  2358. map['CoursewareToken'] = coursewareToken;
  2359. if(teacherName != null)
  2360. map['TeacherName'] = teacherName;
  2361. map['ViewRange'] = viewRange.index;
  2362. if(caseLabelCodes != null)
  2363. map['CaseLabelCodes'] = caseLabelCodes;
  2364. if(courseLabelCodes != null)
  2365. map['CourseLabelCodes'] = courseLabelCodes;
  2366. if(userGroupCodes != null)
  2367. map['UserGroupCodes'] = userGroupCodes;
  2368. if(price != null)
  2369. map['Price'] = price;
  2370. if(courseVideoCodes != null)
  2371. map['CourseVideoCodes'] = courseVideoCodes;
  2372. if(bindExams != null)
  2373. map['BindExams'] = bindExams;
  2374. map['IsSmallClass'] = isSmallClass;
  2375. if(assistants != null)
  2376. map['Assistants'] = assistants;
  2377. if(experts != null)
  2378. map['Experts'] = experts;
  2379. map['IsAgentCourse'] = isAgentCourse;
  2380. if(courseAlbumCodes != null)
  2381. map['CourseAlbumCodes'] = courseAlbumCodes;
  2382. map['IsStick'] = isStick;
  2383. map['Sort'] = sort;
  2384. return map;
  2385. }
  2386. }
  2387. class AdminUpdateCourseBindExamsRequest extends TokenRequest{
  2388. String? code;
  2389. List<CourseExaminationDTO >? bindExams;
  2390. AdminUpdateCourseBindExamsRequest({
  2391. this.code,
  2392. this.bindExams,
  2393. String? token,
  2394. }) : super(
  2395. token: token,
  2396. );
  2397. factory AdminUpdateCourseBindExamsRequest.fromJson(Map<String, dynamic> map) {
  2398. return AdminUpdateCourseBindExamsRequest(
  2399. code: map['Code'],
  2400. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2401. token: map['Token'],
  2402. );
  2403. }
  2404. Map<String, dynamic> toJson() {
  2405. final map = super.toJson();
  2406. if(code != null)
  2407. map['Code'] = code;
  2408. if(bindExams != null)
  2409. map['BindExams'] = bindExams;
  2410. return map;
  2411. }
  2412. }
  2413. class AssignedAdminsToOrganizationsRequest extends TokenRequest{
  2414. List<String >? assignedAdmins;
  2415. List<String >? organizationCodes;
  2416. AssignedAdminsToOrganizationsRequest({
  2417. this.assignedAdmins,
  2418. this.organizationCodes,
  2419. String? token,
  2420. }) : super(
  2421. token: token,
  2422. );
  2423. factory AssignedAdminsToOrganizationsRequest.fromJson(Map<String, dynamic> map) {
  2424. return AssignedAdminsToOrganizationsRequest(
  2425. assignedAdmins: map['AssignedAdmins'] != null ? map['AssignedAdmins'].cast<String>().toList() : null,
  2426. organizationCodes: map['OrganizationCodes'] != null ? map['OrganizationCodes'].cast<String>().toList() : null,
  2427. token: map['Token'],
  2428. );
  2429. }
  2430. Map<String, dynamic> toJson() {
  2431. final map = super.toJson();
  2432. if(assignedAdmins != null)
  2433. map['AssignedAdmins'] = assignedAdmins;
  2434. if(organizationCodes != null)
  2435. map['OrganizationCodes'] = organizationCodes;
  2436. return map;
  2437. }
  2438. }
  2439. class ClearLogOperateDTO {
  2440. String? serverHost;
  2441. DateTime? lastClearTime;
  2442. DateTime? lastClearOperateTime;
  2443. ClearLogOperateDTO({
  2444. this.serverHost,
  2445. this.lastClearTime,
  2446. this.lastClearOperateTime,
  2447. });
  2448. factory ClearLogOperateDTO.fromJson(Map<String, dynamic> map) {
  2449. return ClearLogOperateDTO(
  2450. serverHost: map['ServerHost'],
  2451. lastClearTime: map['LastClearTime'] != null ? DateTime.parse(map['LastClearTime']) : null,
  2452. lastClearOperateTime: map['LastClearOperateTime'] != null ? DateTime.parse(map['LastClearOperateTime']) : null,
  2453. );
  2454. }
  2455. Map<String, dynamic> toJson() {
  2456. final map = Map<String, dynamic>();
  2457. if(serverHost != null)
  2458. map['ServerHost'] = serverHost;
  2459. if(lastClearTime != null)
  2460. map['LastClearTime'] = JsonRpcUtils.dateFormat(lastClearTime!);
  2461. if(lastClearOperateTime != null)
  2462. map['LastClearOperateTime'] = JsonRpcUtils.dateFormat(lastClearOperateTime!);
  2463. return map;
  2464. }
  2465. }
  2466. class AdminInfoDTO extends BaseDTO{
  2467. String? adminCode;
  2468. String? fatherCode;
  2469. String? adminName;
  2470. String? fullName;
  2471. String? secretPassword;
  2472. String? headImageToken;
  2473. String? licenseKey;
  2474. String? lastIP;
  2475. String? phone;
  2476. String? email;
  2477. List<String >? roleCodes;
  2478. LoginLockInfoDTO? loginLockInfo;
  2479. DateTime? passwordUpdateTime;
  2480. List<String >? passwordRecords;
  2481. List<ClearLogOperateDTO >? clearLogOperateList;
  2482. AdminInfoDTO({
  2483. this.adminCode,
  2484. this.fatherCode,
  2485. this.adminName,
  2486. this.fullName,
  2487. this.secretPassword,
  2488. this.headImageToken,
  2489. this.licenseKey,
  2490. this.lastIP,
  2491. this.phone,
  2492. this.email,
  2493. this.roleCodes,
  2494. this.loginLockInfo,
  2495. this.passwordUpdateTime,
  2496. this.passwordRecords,
  2497. this.clearLogOperateList,
  2498. DateTime? createTime,
  2499. DateTime? updateTime,
  2500. }) : super(
  2501. createTime: createTime,
  2502. updateTime: updateTime,
  2503. );
  2504. factory AdminInfoDTO.fromJson(Map<String, dynamic> map) {
  2505. return AdminInfoDTO(
  2506. adminCode: map['AdminCode'],
  2507. fatherCode: map['FatherCode'],
  2508. adminName: map['AdminName'],
  2509. fullName: map['FullName'],
  2510. secretPassword: map['SecretPassword'],
  2511. headImageToken: map['HeadImageToken'],
  2512. licenseKey: map['LicenseKey'],
  2513. lastIP: map['LastIP'],
  2514. phone: map['Phone'],
  2515. email: map['Email'],
  2516. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  2517. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  2518. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  2519. passwordRecords: map['PasswordRecords'] != null ? map['PasswordRecords'].cast<String>().toList() : null,
  2520. clearLogOperateList: map['ClearLogOperateList'] != null ? (map['ClearLogOperateList'] as List).map((e)=>ClearLogOperateDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2521. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  2522. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  2523. );
  2524. }
  2525. Map<String, dynamic> toJson() {
  2526. final map = super.toJson();
  2527. if(adminCode != null)
  2528. map['AdminCode'] = adminCode;
  2529. if(fatherCode != null)
  2530. map['FatherCode'] = fatherCode;
  2531. if(adminName != null)
  2532. map['AdminName'] = adminName;
  2533. if(fullName != null)
  2534. map['FullName'] = fullName;
  2535. if(secretPassword != null)
  2536. map['SecretPassword'] = secretPassword;
  2537. if(headImageToken != null)
  2538. map['HeadImageToken'] = headImageToken;
  2539. if(licenseKey != null)
  2540. map['LicenseKey'] = licenseKey;
  2541. if(lastIP != null)
  2542. map['LastIP'] = lastIP;
  2543. if(phone != null)
  2544. map['Phone'] = phone;
  2545. if(email != null)
  2546. map['Email'] = email;
  2547. if(roleCodes != null)
  2548. map['RoleCodes'] = roleCodes;
  2549. if(loginLockInfo != null)
  2550. map['LoginLockInfo'] = loginLockInfo;
  2551. if(passwordUpdateTime != null)
  2552. map['PasswordUpdateTime'] = JsonRpcUtils.dateFormat(passwordUpdateTime!);
  2553. if(passwordRecords != null)
  2554. map['PasswordRecords'] = passwordRecords;
  2555. if(clearLogOperateList != null)
  2556. map['ClearLogOperateList'] = clearLogOperateList;
  2557. return map;
  2558. }
  2559. }
  2560. enum AdminMigratoryRoleEnum {
  2561. PrimaryAdmin01,
  2562. GeneralAdmin,
  2563. }
  2564. class AdminMigratoryInfo extends AdminInfoDTO{
  2565. AdminMigratoryRoleEnum adminRole;
  2566. bool isDelete;
  2567. AdminMigratoryInfo({
  2568. this.adminRole = AdminMigratoryRoleEnum.PrimaryAdmin01,
  2569. this.isDelete = false,
  2570. String? adminCode,
  2571. String? fatherCode,
  2572. String? adminName,
  2573. String? fullName,
  2574. String? secretPassword,
  2575. String? headImageToken,
  2576. String? licenseKey,
  2577. String? lastIP,
  2578. String? phone,
  2579. String? email,
  2580. List<String >? roleCodes,
  2581. LoginLockInfoDTO? loginLockInfo,
  2582. DateTime? passwordUpdateTime,
  2583. List<String >? passwordRecords,
  2584. List<ClearLogOperateDTO >? clearLogOperateList,
  2585. DateTime? createTime,
  2586. DateTime? updateTime,
  2587. }) : super(
  2588. adminCode: adminCode,
  2589. fatherCode: fatherCode,
  2590. adminName: adminName,
  2591. fullName: fullName,
  2592. secretPassword: secretPassword,
  2593. headImageToken: headImageToken,
  2594. licenseKey: licenseKey,
  2595. lastIP: lastIP,
  2596. phone: phone,
  2597. email: email,
  2598. roleCodes: roleCodes,
  2599. loginLockInfo: loginLockInfo,
  2600. passwordUpdateTime: passwordUpdateTime,
  2601. passwordRecords: passwordRecords,
  2602. clearLogOperateList: clearLogOperateList,
  2603. createTime: createTime,
  2604. updateTime: updateTime,
  2605. );
  2606. factory AdminMigratoryInfo.fromJson(Map<String, dynamic> map) {
  2607. return AdminMigratoryInfo(
  2608. adminRole: AdminMigratoryRoleEnum.values.firstWhere((e) => e.index == map['AdminRole']),
  2609. isDelete: map['IsDelete'],
  2610. adminCode: map['AdminCode'],
  2611. fatherCode: map['FatherCode'],
  2612. adminName: map['AdminName'],
  2613. fullName: map['FullName'],
  2614. secretPassword: map['SecretPassword'],
  2615. headImageToken: map['HeadImageToken'],
  2616. licenseKey: map['LicenseKey'],
  2617. lastIP: map['LastIP'],
  2618. phone: map['Phone'],
  2619. email: map['Email'],
  2620. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  2621. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  2622. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  2623. passwordRecords: map['PasswordRecords'] != null ? map['PasswordRecords'].cast<String>().toList() : null,
  2624. clearLogOperateList: map['ClearLogOperateList'] != null ? (map['ClearLogOperateList'] as List).map((e)=>ClearLogOperateDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2625. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  2626. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  2627. );
  2628. }
  2629. Map<String, dynamic> toJson() {
  2630. final map = super.toJson();
  2631. map['AdminRole'] = adminRole.index;
  2632. map['IsDelete'] = isDelete;
  2633. return map;
  2634. }
  2635. }
  2636. class BatchInsertAdminRequest extends TokenRequest{
  2637. SyncDBEnum syncType;
  2638. List<AdminMigratoryInfo >? adminMigratorys;
  2639. BatchInsertAdminRequest({
  2640. this.syncType = SyncDBEnum.Migrate,
  2641. this.adminMigratorys,
  2642. String? token,
  2643. }) : super(
  2644. token: token,
  2645. );
  2646. factory BatchInsertAdminRequest.fromJson(Map<String, dynamic> map) {
  2647. return BatchInsertAdminRequest(
  2648. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  2649. adminMigratorys: map['AdminMigratorys'] != null ? (map['AdminMigratorys'] as List).map((e)=>AdminMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  2650. token: map['Token'],
  2651. );
  2652. }
  2653. Map<String, dynamic> toJson() {
  2654. final map = super.toJson();
  2655. map['SyncType'] = syncType.index;
  2656. if(adminMigratorys != null)
  2657. map['AdminMigratorys'] = adminMigratorys;
  2658. return map;
  2659. }
  2660. }
  2661. class CourseLabelMigratoryInfo extends BaseDTO{
  2662. bool isDelete;
  2663. String? code;
  2664. List<LabelLanguageConfigDTO >? labelLanguageConfigs;
  2665. OrganizationPatientTypeEnum useObjectType;
  2666. LabelTypeEnum type;
  2667. CourseLabelMigratoryInfo({
  2668. this.isDelete = false,
  2669. this.code,
  2670. this.labelLanguageConfigs,
  2671. this.useObjectType = OrganizationPatientTypeEnum.Person,
  2672. this.type = LabelTypeEnum.Unknown,
  2673. DateTime? createTime,
  2674. DateTime? updateTime,
  2675. }) : super(
  2676. createTime: createTime,
  2677. updateTime: updateTime,
  2678. );
  2679. factory CourseLabelMigratoryInfo.fromJson(Map<String, dynamic> map) {
  2680. return CourseLabelMigratoryInfo(
  2681. isDelete: map['IsDelete'],
  2682. code: map['Code'],
  2683. labelLanguageConfigs: map['LabelLanguageConfigs'] != null ? (map['LabelLanguageConfigs'] as List).map((e)=>LabelLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2684. useObjectType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['UseObjectType']),
  2685. type: LabelTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  2686. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  2687. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  2688. );
  2689. }
  2690. Map<String, dynamic> toJson() {
  2691. final map = super.toJson();
  2692. map['IsDelete'] = isDelete;
  2693. if(code != null)
  2694. map['Code'] = code;
  2695. if(labelLanguageConfigs != null)
  2696. map['LabelLanguageConfigs'] = labelLanguageConfigs;
  2697. map['UseObjectType'] = useObjectType.index;
  2698. map['Type'] = type.index;
  2699. return map;
  2700. }
  2701. }
  2702. class BatchInsertCourseLabelRequest extends TokenRequest{
  2703. SyncDBEnum syncType;
  2704. List<CourseLabelMigratoryInfo >? courseLabelMigratorys;
  2705. BatchInsertCourseLabelRequest({
  2706. this.syncType = SyncDBEnum.Migrate,
  2707. this.courseLabelMigratorys,
  2708. String? token,
  2709. }) : super(
  2710. token: token,
  2711. );
  2712. factory BatchInsertCourseLabelRequest.fromJson(Map<String, dynamic> map) {
  2713. return BatchInsertCourseLabelRequest(
  2714. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  2715. courseLabelMigratorys: map['CourseLabelMigratorys'] != null ? (map['CourseLabelMigratorys'] as List).map((e)=>CourseLabelMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  2716. token: map['Token'],
  2717. );
  2718. }
  2719. Map<String, dynamic> toJson() {
  2720. final map = super.toJson();
  2721. map['SyncType'] = syncType.index;
  2722. if(courseLabelMigratorys != null)
  2723. map['CourseLabelMigratorys'] = courseLabelMigratorys;
  2724. return map;
  2725. }
  2726. }
  2727. class CourseMigratoryInfo extends BaseDTO{
  2728. bool isDelete;
  2729. String? code;
  2730. String? name;
  2731. String? courseIntro;
  2732. String? teacherCode;
  2733. String? poster;
  2734. CourseStatusEnum status;
  2735. DateTime? startTime;
  2736. int duration;
  2737. DateTime? deadline;
  2738. DateTime? actualStartTime;
  2739. DateTime? actualEndTime;
  2740. String? courseToken;
  2741. String? creatorCode;
  2742. String? organizationCode;
  2743. CourseTypeEnum courseType;
  2744. CourseAudienceTypeEnum audienceType;
  2745. String? coursewareToken;
  2746. String? teacherName;
  2747. CourseViewRangeEnum viewRange;
  2748. List<String >? caseLabelCodes;
  2749. List<String >? courseLabelCodes;
  2750. List<String >? userGroupCodes;
  2751. Decimal? price;
  2752. List<String >? courseVideoCodes;
  2753. List<StudentInfoDTO >? assistants;
  2754. List<StudentInfoDTO >? experts;
  2755. bool isAgentCourse;
  2756. List<String >? courseAlbumCodes;
  2757. bool isStick;
  2758. int sort;
  2759. List<String >? courseMaterialCodes;
  2760. List<CourseExaminationDTO >? bindExams;
  2761. CourseAppearTypeEnum courseAppearType;
  2762. List<StudentInfoDTO >? students;
  2763. int playCount;
  2764. CourseMigratoryInfo({
  2765. this.isDelete = false,
  2766. this.code,
  2767. this.name,
  2768. this.courseIntro,
  2769. this.teacherCode,
  2770. this.poster,
  2771. this.status = CourseStatusEnum.Unknown,
  2772. this.startTime,
  2773. this.duration = 0,
  2774. this.deadline,
  2775. this.actualStartTime,
  2776. this.actualEndTime,
  2777. this.courseToken,
  2778. this.creatorCode,
  2779. this.organizationCode,
  2780. this.courseType = CourseTypeEnum.Unknown,
  2781. this.audienceType = CourseAudienceTypeEnum.Unknown,
  2782. this.coursewareToken,
  2783. this.teacherName,
  2784. this.viewRange = CourseViewRangeEnum.All,
  2785. this.caseLabelCodes,
  2786. this.courseLabelCodes,
  2787. this.userGroupCodes,
  2788. this.price,
  2789. this.courseVideoCodes,
  2790. this.assistants,
  2791. this.experts,
  2792. this.isAgentCourse = false,
  2793. this.courseAlbumCodes,
  2794. this.isStick = false,
  2795. this.sort = 0,
  2796. this.courseMaterialCodes,
  2797. this.bindExams,
  2798. this.courseAppearType = CourseAppearTypeEnum.Unknown,
  2799. this.students,
  2800. this.playCount = 0,
  2801. DateTime? createTime,
  2802. DateTime? updateTime,
  2803. }) : super(
  2804. createTime: createTime,
  2805. updateTime: updateTime,
  2806. );
  2807. factory CourseMigratoryInfo.fromJson(Map<String, dynamic> map) {
  2808. return CourseMigratoryInfo(
  2809. isDelete: map['IsDelete'],
  2810. code: map['Code'],
  2811. name: map['Name'],
  2812. courseIntro: map['CourseIntro'],
  2813. teacherCode: map['TeacherCode'],
  2814. poster: map['Poster'],
  2815. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  2816. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  2817. duration: map['Duration'],
  2818. deadline: map['Deadline'] != null ? DateTime.parse(map['Deadline']) : null,
  2819. actualStartTime: map['ActualStartTime'] != null ? DateTime.parse(map['ActualStartTime']) : null,
  2820. actualEndTime: map['ActualEndTime'] != null ? DateTime.parse(map['ActualEndTime']) : null,
  2821. courseToken: map['CourseToken'],
  2822. creatorCode: map['CreatorCode'],
  2823. organizationCode: map['OrganizationCode'],
  2824. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  2825. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  2826. coursewareToken: map['CoursewareToken'],
  2827. teacherName: map['TeacherName'],
  2828. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  2829. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  2830. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  2831. userGroupCodes: map['UserGroupCodes'] != null ? map['UserGroupCodes'].cast<String>().toList() : null,
  2832. price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
  2833. courseVideoCodes: map['CourseVideoCodes'] != null ? map['CourseVideoCodes'].cast<String>().toList() : null,
  2834. assistants: map['Assistants'] != null ? (map['Assistants'] as List).map((e)=>StudentInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2835. experts: map['Experts'] != null ? (map['Experts'] as List).map((e)=>StudentInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2836. isAgentCourse: map['IsAgentCourse'],
  2837. courseAlbumCodes: map['CourseAlbumCodes'] != null ? map['CourseAlbumCodes'].cast<String>().toList() : null,
  2838. isStick: map['IsStick'],
  2839. sort: map['Sort'],
  2840. courseMaterialCodes: map['CourseMaterialCodes'] != null ? map['CourseMaterialCodes'].cast<String>().toList() : null,
  2841. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2842. courseAppearType: CourseAppearTypeEnum.values.firstWhere((e) => e.index == map['CourseAppearType']),
  2843. students: map['Students'] != null ? (map['Students'] as List).map((e)=>StudentInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2844. playCount: map['PlayCount'],
  2845. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  2846. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  2847. );
  2848. }
  2849. Map<String, dynamic> toJson() {
  2850. final map = super.toJson();
  2851. map['IsDelete'] = isDelete;
  2852. if(code != null)
  2853. map['Code'] = code;
  2854. if(name != null)
  2855. map['Name'] = name;
  2856. if(courseIntro != null)
  2857. map['CourseIntro'] = courseIntro;
  2858. if(teacherCode != null)
  2859. map['TeacherCode'] = teacherCode;
  2860. if(poster != null)
  2861. map['Poster'] = poster;
  2862. map['Status'] = status.index;
  2863. if(startTime != null)
  2864. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  2865. map['Duration'] = duration;
  2866. if(deadline != null)
  2867. map['Deadline'] = JsonRpcUtils.dateFormat(deadline!);
  2868. if(actualStartTime != null)
  2869. map['ActualStartTime'] = JsonRpcUtils.dateFormat(actualStartTime!);
  2870. if(actualEndTime != null)
  2871. map['ActualEndTime'] = JsonRpcUtils.dateFormat(actualEndTime!);
  2872. if(courseToken != null)
  2873. map['CourseToken'] = courseToken;
  2874. if(creatorCode != null)
  2875. map['CreatorCode'] = creatorCode;
  2876. if(organizationCode != null)
  2877. map['OrganizationCode'] = organizationCode;
  2878. map['CourseType'] = courseType.index;
  2879. map['AudienceType'] = audienceType.index;
  2880. if(coursewareToken != null)
  2881. map['CoursewareToken'] = coursewareToken;
  2882. if(teacherName != null)
  2883. map['TeacherName'] = teacherName;
  2884. map['ViewRange'] = viewRange.index;
  2885. if(caseLabelCodes != null)
  2886. map['CaseLabelCodes'] = caseLabelCodes;
  2887. if(courseLabelCodes != null)
  2888. map['CourseLabelCodes'] = courseLabelCodes;
  2889. if(userGroupCodes != null)
  2890. map['UserGroupCodes'] = userGroupCodes;
  2891. if(price != null)
  2892. map['Price'] = price;
  2893. if(courseVideoCodes != null)
  2894. map['CourseVideoCodes'] = courseVideoCodes;
  2895. if(assistants != null)
  2896. map['Assistants'] = assistants;
  2897. if(experts != null)
  2898. map['Experts'] = experts;
  2899. map['IsAgentCourse'] = isAgentCourse;
  2900. if(courseAlbumCodes != null)
  2901. map['CourseAlbumCodes'] = courseAlbumCodes;
  2902. map['IsStick'] = isStick;
  2903. map['Sort'] = sort;
  2904. if(courseMaterialCodes != null)
  2905. map['CourseMaterialCodes'] = courseMaterialCodes;
  2906. if(bindExams != null)
  2907. map['BindExams'] = bindExams;
  2908. map['CourseAppearType'] = courseAppearType.index;
  2909. if(students != null)
  2910. map['Students'] = students;
  2911. map['PlayCount'] = playCount;
  2912. return map;
  2913. }
  2914. }
  2915. class VideoMigratoryInfo extends BaseDTO{
  2916. bool isDelete;
  2917. String? code;
  2918. String? name;
  2919. String? videoToken;
  2920. String? vodFileId;
  2921. String? poster;
  2922. int duration;
  2923. double videoSize;
  2924. String? creatorCode;
  2925. String? creatorName;
  2926. UploadFileTypeEnum fodderType;
  2927. bool isPublic;
  2928. CourseViewRangeEnum viewRange;
  2929. int playCount;
  2930. String? srcFileToken;
  2931. VideoMigratoryInfo({
  2932. this.isDelete = false,
  2933. this.code,
  2934. this.name,
  2935. this.videoToken,
  2936. this.vodFileId,
  2937. this.poster,
  2938. this.duration = 0,
  2939. this.videoSize = 0,
  2940. this.creatorCode,
  2941. this.creatorName,
  2942. this.fodderType = UploadFileTypeEnum.Unknown,
  2943. this.isPublic = false,
  2944. this.viewRange = CourseViewRangeEnum.All,
  2945. this.playCount = 0,
  2946. this.srcFileToken,
  2947. DateTime? createTime,
  2948. DateTime? updateTime,
  2949. }) : super(
  2950. createTime: createTime,
  2951. updateTime: updateTime,
  2952. );
  2953. factory VideoMigratoryInfo.fromJson(Map<String, dynamic> map) {
  2954. return VideoMigratoryInfo(
  2955. isDelete: map['IsDelete'],
  2956. code: map['Code'],
  2957. name: map['Name'],
  2958. videoToken: map['VideoToken'],
  2959. vodFileId: map['VodFileId'],
  2960. poster: map['Poster'],
  2961. duration: map['Duration'],
  2962. videoSize: double.parse(map['VideoSize'].toString()),
  2963. creatorCode: map['CreatorCode'],
  2964. creatorName: map['CreatorName'],
  2965. fodderType: UploadFileTypeEnum.values.firstWhere((e) => e.index == map['FodderType']),
  2966. isPublic: map['IsPublic'],
  2967. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  2968. playCount: map['PlayCount'],
  2969. srcFileToken: map['SrcFileToken'],
  2970. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  2971. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  2972. );
  2973. }
  2974. Map<String, dynamic> toJson() {
  2975. final map = super.toJson();
  2976. map['IsDelete'] = isDelete;
  2977. if(code != null)
  2978. map['Code'] = code;
  2979. if(name != null)
  2980. map['Name'] = name;
  2981. if(videoToken != null)
  2982. map['VideoToken'] = videoToken;
  2983. if(vodFileId != null)
  2984. map['VodFileId'] = vodFileId;
  2985. if(poster != null)
  2986. map['Poster'] = poster;
  2987. map['Duration'] = duration;
  2988. map['VideoSize'] = videoSize;
  2989. if(creatorCode != null)
  2990. map['CreatorCode'] = creatorCode;
  2991. if(creatorName != null)
  2992. map['CreatorName'] = creatorName;
  2993. map['FodderType'] = fodderType.index;
  2994. map['IsPublic'] = isPublic;
  2995. map['ViewRange'] = viewRange.index;
  2996. map['PlayCount'] = playCount;
  2997. if(srcFileToken != null)
  2998. map['SrcFileToken'] = srcFileToken;
  2999. return map;
  3000. }
  3001. }
  3002. class ExaminationPaperDTO {
  3003. String? code;
  3004. String? name;
  3005. double totalScore;
  3006. List<QuestionDetailDTO >? questionList;
  3007. List<String >? caseLabelCodes;
  3008. List<String >? courseLabelCodes;
  3009. DateTime? createTime;
  3010. DateTime? updateTime;
  3011. ExaminationPaperDTO({
  3012. this.code,
  3013. this.name,
  3014. this.totalScore = 0,
  3015. this.questionList,
  3016. this.caseLabelCodes,
  3017. this.courseLabelCodes,
  3018. this.createTime,
  3019. this.updateTime,
  3020. });
  3021. factory ExaminationPaperDTO.fromJson(Map<String, dynamic> map) {
  3022. return ExaminationPaperDTO(
  3023. code: map['Code'],
  3024. name: map['Name'],
  3025. totalScore: double.parse(map['TotalScore'].toString()),
  3026. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>QuestionDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3027. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  3028. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  3029. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3030. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3031. );
  3032. }
  3033. Map<String, dynamic> toJson() {
  3034. final map = Map<String, dynamic>();
  3035. if(code != null)
  3036. map['Code'] = code;
  3037. if(name != null)
  3038. map['Name'] = name;
  3039. map['TotalScore'] = totalScore;
  3040. if(questionList != null)
  3041. map['QuestionList'] = questionList;
  3042. if(caseLabelCodes != null)
  3043. map['CaseLabelCodes'] = caseLabelCodes;
  3044. if(courseLabelCodes != null)
  3045. map['CourseLabelCodes'] = courseLabelCodes;
  3046. if(createTime != null)
  3047. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  3048. if(updateTime != null)
  3049. map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
  3050. return map;
  3051. }
  3052. }
  3053. class ExaminationQuestionDTO extends BaseDTO{
  3054. bool isDelete;
  3055. String? code;
  3056. String? stem;
  3057. QuestionTypeEnum questionType;
  3058. List<QuestionOptionDTO >? questionOptionList;
  3059. List<QuestionFileDTO >? fileList;
  3060. List<String >? caseLabelCodes;
  3061. List<String >? courseLabelCodes;
  3062. bool trueOrFalse;
  3063. ExaminationQuestionDTO({
  3064. this.isDelete = false,
  3065. this.code,
  3066. this.stem,
  3067. this.questionType = QuestionTypeEnum.Judge,
  3068. this.questionOptionList,
  3069. this.fileList,
  3070. this.caseLabelCodes,
  3071. this.courseLabelCodes,
  3072. this.trueOrFalse = false,
  3073. DateTime? createTime,
  3074. DateTime? updateTime,
  3075. }) : super(
  3076. createTime: createTime,
  3077. updateTime: updateTime,
  3078. );
  3079. factory ExaminationQuestionDTO.fromJson(Map<String, dynamic> map) {
  3080. return ExaminationQuestionDTO(
  3081. isDelete: map['IsDelete'],
  3082. code: map['Code'],
  3083. stem: map['Stem'],
  3084. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  3085. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3086. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3087. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  3088. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  3089. trueOrFalse: map['TrueOrFalse'],
  3090. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3091. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3092. );
  3093. }
  3094. Map<String, dynamic> toJson() {
  3095. final map = super.toJson();
  3096. map['IsDelete'] = isDelete;
  3097. if(code != null)
  3098. map['Code'] = code;
  3099. if(stem != null)
  3100. map['Stem'] = stem;
  3101. map['QuestionType'] = questionType.index;
  3102. if(questionOptionList != null)
  3103. map['QuestionOptionList'] = questionOptionList;
  3104. if(fileList != null)
  3105. map['FileList'] = fileList;
  3106. if(caseLabelCodes != null)
  3107. map['CaseLabelCodes'] = caseLabelCodes;
  3108. if(courseLabelCodes != null)
  3109. map['CourseLabelCodes'] = courseLabelCodes;
  3110. map['TrueOrFalse'] = trueOrFalse;
  3111. return map;
  3112. }
  3113. }
  3114. enum RelevanceTypeEnum {
  3115. Course,
  3116. }
  3117. class StudentExaminationDTO extends BaseStudentExaminationDTO{
  3118. bool isDelete;
  3119. RelevanceTypeEnum relevanceType;
  3120. String? relevanceCode;
  3121. List<ExaminationAnswerDTO >? studentAnswers;
  3122. int submitCount;
  3123. StudentExaminationDTO({
  3124. this.isDelete = false,
  3125. this.relevanceType = RelevanceTypeEnum.Course,
  3126. this.relevanceCode,
  3127. this.studentAnswers,
  3128. this.submitCount = 0,
  3129. String? code,
  3130. String? examinationCode,
  3131. String? studentCode,
  3132. String? studentName,
  3133. double totalScore = 0,
  3134. }) : super(
  3135. code: code,
  3136. examinationCode: examinationCode,
  3137. studentCode: studentCode,
  3138. studentName: studentName,
  3139. totalScore: totalScore,
  3140. );
  3141. factory StudentExaminationDTO.fromJson(Map<String, dynamic> map) {
  3142. return StudentExaminationDTO(
  3143. isDelete: map['IsDelete'],
  3144. relevanceType: RelevanceTypeEnum.values.firstWhere((e) => e.index == map['RelevanceType']),
  3145. relevanceCode: map['RelevanceCode'],
  3146. studentAnswers: map['StudentAnswers'] != null ? (map['StudentAnswers'] as List).map((e)=>ExaminationAnswerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3147. submitCount: map['SubmitCount'],
  3148. code: map['Code'],
  3149. examinationCode: map['ExaminationCode'],
  3150. studentCode: map['StudentCode'],
  3151. studentName: map['StudentName'],
  3152. totalScore: double.parse(map['TotalScore'].toString()),
  3153. );
  3154. }
  3155. Map<String, dynamic> toJson() {
  3156. final map = super.toJson();
  3157. map['IsDelete'] = isDelete;
  3158. map['RelevanceType'] = relevanceType.index;
  3159. if(relevanceCode != null)
  3160. map['RelevanceCode'] = relevanceCode;
  3161. if(studentAnswers != null)
  3162. map['StudentAnswers'] = studentAnswers;
  3163. map['SubmitCount'] = submitCount;
  3164. return map;
  3165. }
  3166. }
  3167. class ExamMigratoryInfo extends ExaminationPaperDTO{
  3168. bool isDelete;
  3169. List<ExaminationQuestionDTO >? examinationQuestions;
  3170. List<StudentExaminationDTO >? studentExamination;
  3171. ExamMigratoryInfo({
  3172. this.isDelete = false,
  3173. this.examinationQuestions,
  3174. this.studentExamination,
  3175. String? code,
  3176. String? name,
  3177. double totalScore = 0,
  3178. List<QuestionDetailDTO >? questionList,
  3179. List<String >? caseLabelCodes,
  3180. List<String >? courseLabelCodes,
  3181. DateTime? createTime,
  3182. DateTime? updateTime,
  3183. }) : super(
  3184. code: code,
  3185. name: name,
  3186. totalScore: totalScore,
  3187. questionList: questionList,
  3188. caseLabelCodes: caseLabelCodes,
  3189. courseLabelCodes: courseLabelCodes,
  3190. createTime: createTime,
  3191. updateTime: updateTime,
  3192. );
  3193. factory ExamMigratoryInfo.fromJson(Map<String, dynamic> map) {
  3194. return ExamMigratoryInfo(
  3195. isDelete: map['IsDelete'],
  3196. examinationQuestions: map['ExaminationQuestions'] != null ? (map['ExaminationQuestions'] as List).map((e)=>ExaminationQuestionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3197. studentExamination: map['StudentExamination'] != null ? (map['StudentExamination'] as List).map((e)=>StudentExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3198. code: map['Code'],
  3199. name: map['Name'],
  3200. totalScore: double.parse(map['TotalScore'].toString()),
  3201. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>QuestionDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3202. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  3203. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  3204. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3205. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3206. );
  3207. }
  3208. Map<String, dynamic> toJson() {
  3209. final map = super.toJson();
  3210. map['IsDelete'] = isDelete;
  3211. if(examinationQuestions != null)
  3212. map['ExaminationQuestions'] = examinationQuestions;
  3213. if(studentExamination != null)
  3214. map['StudentExamination'] = studentExamination;
  3215. return map;
  3216. }
  3217. }
  3218. class BatchInsertCourseRequest extends TokenRequest{
  3219. SyncDBEnum syncType;
  3220. List<CourseMigratoryInfo >? courseMigratorys;
  3221. List<VideoMigratoryInfo >? videoMigratorys;
  3222. List<ExamMigratoryInfo >? examMigratorys;
  3223. List<RemoteExaminationDTO >? remoteExaminationMigratorys;
  3224. BatchInsertCourseRequest({
  3225. this.syncType = SyncDBEnum.Migrate,
  3226. this.courseMigratorys,
  3227. this.videoMigratorys,
  3228. this.examMigratorys,
  3229. this.remoteExaminationMigratorys,
  3230. String? token,
  3231. }) : super(
  3232. token: token,
  3233. );
  3234. factory BatchInsertCourseRequest.fromJson(Map<String, dynamic> map) {
  3235. return BatchInsertCourseRequest(
  3236. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  3237. courseMigratorys: map['CourseMigratorys'] != null ? (map['CourseMigratorys'] as List).map((e)=>CourseMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  3238. videoMigratorys: map['VideoMigratorys'] != null ? (map['VideoMigratorys'] as List).map((e)=>VideoMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  3239. examMigratorys: map['ExamMigratorys'] != null ? (map['ExamMigratorys'] as List).map((e)=>ExamMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  3240. remoteExaminationMigratorys: map['RemoteExaminationMigratorys'] != null ? (map['RemoteExaminationMigratorys'] as List).map((e)=>RemoteExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3241. token: map['Token'],
  3242. );
  3243. }
  3244. Map<String, dynamic> toJson() {
  3245. final map = super.toJson();
  3246. map['SyncType'] = syncType.index;
  3247. if(courseMigratorys != null)
  3248. map['CourseMigratorys'] = courseMigratorys;
  3249. if(videoMigratorys != null)
  3250. map['VideoMigratorys'] = videoMigratorys;
  3251. if(examMigratorys != null)
  3252. map['ExamMigratorys'] = examMigratorys;
  3253. if(remoteExaminationMigratorys != null)
  3254. map['RemoteExaminationMigratorys'] = remoteExaminationMigratorys;
  3255. return map;
  3256. }
  3257. }
  3258. enum DiagnosisModuleEnum {
  3259. LiverLesionDetect,
  3260. ThyroidLesionDetect,
  3261. CarotidPlaqueDetect,
  3262. BreastLesionDetectBIRADS,
  3263. }
  3264. class DeviceMigratoryInfo extends DeviceInfoDTO{
  3265. bool isDelete;
  3266. List<DiagnosisModuleEnum >? diagnosisModule;
  3267. DeviceMigratoryInfo({
  3268. this.isDelete = false,
  3269. this.diagnosisModule,
  3270. String? deviceCode,
  3271. String? serialNumber,
  3272. String? password,
  3273. String? name,
  3274. String? description,
  3275. String? deviceModel,
  3276. String? deviceType,
  3277. String? headPicUrl,
  3278. String? deviceSoftwareVersion,
  3279. String? sDKSoftwareVersion,
  3280. String? organizationCode,
  3281. String? departmentCode,
  3282. String? shortCode,
  3283. bool isAutoShared = false,
  3284. bool isEncryptedShow = false,
  3285. DateTime? lastLoginTime,
  3286. String? systemVersion,
  3287. String? cPUModel,
  3288. String? systemLanguage,
  3289. List<String >? diagnosisModules,
  3290. List<String >? reportPosterCodes,
  3291. bool mergedChannel = false,
  3292. int mergedVideoOutputWidth = 0,
  3293. int mergedVideoOutputHeight = 0,
  3294. List<VideoDeviceDTO >? videoDeviceInfos,
  3295. DownloadModeSettingEnum downloadModeSetting = DownloadModeSettingEnum.Auto,
  3296. bool liveOpened = false,
  3297. String? displayName,
  3298. DateTime? createTime,
  3299. DateTime? updateTime,
  3300. }) : super(
  3301. deviceCode: deviceCode,
  3302. serialNumber: serialNumber,
  3303. password: password,
  3304. name: name,
  3305. description: description,
  3306. deviceModel: deviceModel,
  3307. deviceType: deviceType,
  3308. headPicUrl: headPicUrl,
  3309. deviceSoftwareVersion: deviceSoftwareVersion,
  3310. sDKSoftwareVersion: sDKSoftwareVersion,
  3311. organizationCode: organizationCode,
  3312. departmentCode: departmentCode,
  3313. shortCode: shortCode,
  3314. isAutoShared: isAutoShared,
  3315. isEncryptedShow: isEncryptedShow,
  3316. lastLoginTime: lastLoginTime,
  3317. systemVersion: systemVersion,
  3318. cPUModel: cPUModel,
  3319. systemLanguage: systemLanguage,
  3320. diagnosisModules: diagnosisModules,
  3321. reportPosterCodes: reportPosterCodes,
  3322. mergedChannel: mergedChannel,
  3323. mergedVideoOutputWidth: mergedVideoOutputWidth,
  3324. mergedVideoOutputHeight: mergedVideoOutputHeight,
  3325. videoDeviceInfos: videoDeviceInfos,
  3326. downloadModeSetting: downloadModeSetting,
  3327. liveOpened: liveOpened,
  3328. displayName: displayName,
  3329. createTime: createTime,
  3330. updateTime: updateTime,
  3331. );
  3332. factory DeviceMigratoryInfo.fromJson(Map<String, dynamic> map) {
  3333. return DeviceMigratoryInfo(
  3334. isDelete: map['IsDelete'],
  3335. diagnosisModule: map['DiagnosisModule'] != null ? (map['DiagnosisModule'] as List).map((e)=>DiagnosisModuleEnum.values.firstWhere((i) => i.index == e)).toList() : null,
  3336. deviceCode: map['DeviceCode'],
  3337. serialNumber: map['SerialNumber'],
  3338. password: map['Password'],
  3339. name: map['Name'],
  3340. description: map['Description'],
  3341. deviceModel: map['DeviceModel'],
  3342. deviceType: map['DeviceType'],
  3343. headPicUrl: map['HeadPicUrl'],
  3344. deviceSoftwareVersion: map['DeviceSoftwareVersion'],
  3345. sDKSoftwareVersion: map['SDKSoftwareVersion'],
  3346. organizationCode: map['OrganizationCode'],
  3347. departmentCode: map['DepartmentCode'],
  3348. shortCode: map['ShortCode'],
  3349. isAutoShared: map['IsAutoShared'],
  3350. isEncryptedShow: map['IsEncryptedShow'],
  3351. lastLoginTime: map['LastLoginTime'] != null ? DateTime.parse(map['LastLoginTime']) : null,
  3352. systemVersion: map['SystemVersion'],
  3353. cPUModel: map['CPUModel'],
  3354. systemLanguage: map['SystemLanguage'],
  3355. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  3356. reportPosterCodes: map['ReportPosterCodes'] != null ? map['ReportPosterCodes'].cast<String>().toList() : null,
  3357. mergedChannel: map['MergedChannel'],
  3358. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  3359. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  3360. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3361. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  3362. liveOpened: map['LiveOpened'],
  3363. displayName: map['DisplayName'],
  3364. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3365. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3366. );
  3367. }
  3368. Map<String, dynamic> toJson() {
  3369. final map = super.toJson();
  3370. map['IsDelete'] = isDelete;
  3371. if(diagnosisModule != null)
  3372. map['DiagnosisModule'] = diagnosisModule;
  3373. return map;
  3374. }
  3375. }
  3376. class BatchInsertDeviceRequest extends TokenRequest{
  3377. SyncDBEnum syncType;
  3378. List<DeviceMigratoryInfo >? deviceMigratorys;
  3379. BatchInsertDeviceRequest({
  3380. this.syncType = SyncDBEnum.Migrate,
  3381. this.deviceMigratorys,
  3382. String? token,
  3383. }) : super(
  3384. token: token,
  3385. );
  3386. factory BatchInsertDeviceRequest.fromJson(Map<String, dynamic> map) {
  3387. return BatchInsertDeviceRequest(
  3388. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  3389. deviceMigratorys: map['DeviceMigratorys'] != null ? (map['DeviceMigratorys'] as List).map((e)=>DeviceMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  3390. token: map['Token'],
  3391. );
  3392. }
  3393. Map<String, dynamic> toJson() {
  3394. final map = super.toJson();
  3395. map['SyncType'] = syncType.index;
  3396. if(deviceMigratorys != null)
  3397. map['DeviceMigratorys'] = deviceMigratorys;
  3398. return map;
  3399. }
  3400. }
  3401. class OrganizationMigratoryInfo extends OrganizationDTO{
  3402. bool isDelete;
  3403. List<DiagnosisModuleEnum >? diagnosisModule;
  3404. String? regionName;
  3405. String? defaultTemplateId;
  3406. List<String >? reportTemplateIds;
  3407. OrganizationMigratoryInfo({
  3408. this.isDelete = false,
  3409. this.diagnosisModule,
  3410. this.regionName,
  3411. this.defaultTemplateId,
  3412. this.reportTemplateIds,
  3413. String? description,
  3414. String? rootCode,
  3415. OrganizationTypeEnum organizationType = OrganizationTypeEnum.Corporation,
  3416. List<String >? authorityGroups,
  3417. String? nautica,
  3418. OrganizationStateEnum state = OrganizationStateEnum.WaitAudit,
  3419. List<String >? directors,
  3420. List<String >? assignedAdmins,
  3421. String? patientSettingJson,
  3422. String? examSettingJson,
  3423. String? consultationSettingJson,
  3424. String? patientSettingVersion,
  3425. String? examSettingVersion,
  3426. String? consultationSettingVersion,
  3427. String? parentOrganizationName,
  3428. String? regionCode,
  3429. String? parentCode,
  3430. String? logoUrl,
  3431. OrganizationPatientTypeEnum patientType = OrganizationPatientTypeEnum.Person,
  3432. bool isinvented = false,
  3433. List<SettingDTOClass >? settings,
  3434. List<String >? diagnosisModules,
  3435. bool isEncryptedShow = false,
  3436. double referralLimitHours = 0,
  3437. List<String >? referralOrganizationCodes,
  3438. List<ReferralOrganizationDTO >? referralOrganizations,
  3439. String? organizationCode,
  3440. String? organizationName,
  3441. DateTime? createTime,
  3442. DateTime? updateTime,
  3443. }) : super(
  3444. description: description,
  3445. rootCode: rootCode,
  3446. organizationType: organizationType,
  3447. authorityGroups: authorityGroups,
  3448. nautica: nautica,
  3449. state: state,
  3450. directors: directors,
  3451. assignedAdmins: assignedAdmins,
  3452. patientSettingJson: patientSettingJson,
  3453. examSettingJson: examSettingJson,
  3454. consultationSettingJson: consultationSettingJson,
  3455. patientSettingVersion: patientSettingVersion,
  3456. examSettingVersion: examSettingVersion,
  3457. consultationSettingVersion: consultationSettingVersion,
  3458. parentOrganizationName: parentOrganizationName,
  3459. regionCode: regionCode,
  3460. parentCode: parentCode,
  3461. logoUrl: logoUrl,
  3462. patientType: patientType,
  3463. isinvented: isinvented,
  3464. settings: settings,
  3465. diagnosisModules: diagnosisModules,
  3466. isEncryptedShow: isEncryptedShow,
  3467. referralLimitHours: referralLimitHours,
  3468. referralOrganizationCodes: referralOrganizationCodes,
  3469. referralOrganizations: referralOrganizations,
  3470. organizationCode: organizationCode,
  3471. organizationName: organizationName,
  3472. createTime: createTime,
  3473. updateTime: updateTime,
  3474. );
  3475. factory OrganizationMigratoryInfo.fromJson(Map<String, dynamic> map) {
  3476. return OrganizationMigratoryInfo(
  3477. isDelete: map['IsDelete'],
  3478. diagnosisModule: map['DiagnosisModule'] != null ? (map['DiagnosisModule'] as List).map((e)=>DiagnosisModuleEnum.values.firstWhere((i) => i.index == e)).toList() : null,
  3479. regionName: map['RegionName'],
  3480. defaultTemplateId: map['DefaultTemplateId'],
  3481. reportTemplateIds: map['ReportTemplateIds'] != null ? map['ReportTemplateIds'].cast<String>().toList() : null,
  3482. description: map['Description'],
  3483. rootCode: map['RootCode'],
  3484. organizationType: OrganizationTypeEnum.values.firstWhere((e) => e.index == map['OrganizationType']),
  3485. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  3486. nautica: map['Nautica'],
  3487. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  3488. directors: map['Directors'] != null ? map['Directors'].cast<String>().toList() : null,
  3489. assignedAdmins: map['AssignedAdmins'] != null ? map['AssignedAdmins'].cast<String>().toList() : null,
  3490. patientSettingJson: map['PatientSettingJson'],
  3491. examSettingJson: map['ExamSettingJson'],
  3492. consultationSettingJson: map['ConsultationSettingJson'],
  3493. patientSettingVersion: map['PatientSettingVersion'],
  3494. examSettingVersion: map['ExamSettingVersion'],
  3495. consultationSettingVersion: map['ConsultationSettingVersion'],
  3496. parentOrganizationName: map['ParentOrganizationName'],
  3497. regionCode: map['RegionCode'],
  3498. parentCode: map['ParentCode'],
  3499. logoUrl: map['LogoUrl'],
  3500. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  3501. isinvented: map['Isinvented'],
  3502. settings: map['Settings'] != null ? (map['Settings'] as List).map((e)=>SettingDTOClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  3503. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  3504. isEncryptedShow: map['IsEncryptedShow'],
  3505. referralLimitHours: double.parse(map['ReferralLimitHours'].toString()),
  3506. referralOrganizationCodes: map['ReferralOrganizationCodes'] != null ? map['ReferralOrganizationCodes'].cast<String>().toList() : null,
  3507. referralOrganizations: map['ReferralOrganizations'] != null ? (map['ReferralOrganizations'] as List).map((e)=>ReferralOrganizationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3508. organizationCode: map['OrganizationCode'],
  3509. organizationName: map['OrganizationName'],
  3510. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3511. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3512. );
  3513. }
  3514. Map<String, dynamic> toJson() {
  3515. final map = super.toJson();
  3516. map['IsDelete'] = isDelete;
  3517. if(diagnosisModule != null)
  3518. map['DiagnosisModule'] = diagnosisModule;
  3519. if(regionName != null)
  3520. map['RegionName'] = regionName;
  3521. if(defaultTemplateId != null)
  3522. map['DefaultTemplateId'] = defaultTemplateId;
  3523. if(reportTemplateIds != null)
  3524. map['ReportTemplateIds'] = reportTemplateIds;
  3525. return map;
  3526. }
  3527. }
  3528. class BatchInsertOrganizationRequest extends TokenRequest{
  3529. SyncDBEnum syncType;
  3530. List<OrganizationMigratoryInfo >? organizationMigratorys;
  3531. BatchInsertOrganizationRequest({
  3532. this.syncType = SyncDBEnum.Migrate,
  3533. this.organizationMigratorys,
  3534. String? token,
  3535. }) : super(
  3536. token: token,
  3537. );
  3538. factory BatchInsertOrganizationRequest.fromJson(Map<String, dynamic> map) {
  3539. return BatchInsertOrganizationRequest(
  3540. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  3541. organizationMigratorys: map['OrganizationMigratorys'] != null ? (map['OrganizationMigratorys'] as List).map((e)=>OrganizationMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  3542. token: map['Token'],
  3543. );
  3544. }
  3545. Map<String, dynamic> toJson() {
  3546. final map = super.toJson();
  3547. map['SyncType'] = syncType.index;
  3548. if(organizationMigratorys != null)
  3549. map['OrganizationMigratorys'] = organizationMigratorys;
  3550. return map;
  3551. }
  3552. }
  3553. class MedicalConsortiumDetail {
  3554. String? name;
  3555. String? code;
  3556. OrganizationPatientTypeEnum patientType;
  3557. MedicalConsortiumDetail({
  3558. this.name,
  3559. this.code,
  3560. this.patientType = OrganizationPatientTypeEnum.Person,
  3561. });
  3562. factory MedicalConsortiumDetail.fromJson(Map<String, dynamic> map) {
  3563. return MedicalConsortiumDetail(
  3564. name: map['Name'],
  3565. code: map['Code'],
  3566. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  3567. );
  3568. }
  3569. Map<String, dynamic> toJson() {
  3570. final map = Map<String, dynamic>();
  3571. if(name != null)
  3572. map['Name'] = name;
  3573. if(code != null)
  3574. map['Code'] = code;
  3575. map['PatientType'] = patientType.index;
  3576. return map;
  3577. }
  3578. }
  3579. class BatchInsertMedicalConsortiumRequest {
  3580. List<MedicalConsortiumDetail >? medicalConsortiumDetails;
  3581. BatchInsertMedicalConsortiumRequest({
  3582. this.medicalConsortiumDetails,
  3583. });
  3584. factory BatchInsertMedicalConsortiumRequest.fromJson(Map<String, dynamic> map) {
  3585. return BatchInsertMedicalConsortiumRequest(
  3586. medicalConsortiumDetails: map['MedicalConsortiumDetails'] != null ? (map['MedicalConsortiumDetails'] as List).map((e)=>MedicalConsortiumDetail.fromJson(e as Map<String,dynamic>)).toList() : null,
  3587. );
  3588. }
  3589. Map<String, dynamic> toJson() {
  3590. final map = Map<String, dynamic>();
  3591. if(medicalConsortiumDetails != null)
  3592. map['MedicalConsortiumDetails'] = medicalConsortiumDetails;
  3593. return map;
  3594. }
  3595. }
  3596. enum ReportPosterTypeEnum {
  3597. Default,
  3598. BJAid,
  3599. }
  3600. enum ReportFormatEnum {
  3601. Json,
  3602. Xml,
  3603. Text,
  3604. }
  3605. class PosterConfigMigratoryInfo {
  3606. String? code;
  3607. DateTime? createTime;
  3608. DateTime? updateTime;
  3609. bool isDelete;
  3610. String? receiverName;
  3611. String? contact;
  3612. String? phone;
  3613. String? targetUrl;
  3614. String? template;
  3615. ReportPosterTypeEnum posterType;
  3616. ReportFormatEnum reportFormat;
  3617. int postTimeout;
  3618. PosterConfigMigratoryInfo({
  3619. this.code,
  3620. this.createTime,
  3621. this.updateTime,
  3622. this.isDelete = false,
  3623. this.receiverName,
  3624. this.contact,
  3625. this.phone,
  3626. this.targetUrl,
  3627. this.template,
  3628. this.posterType = ReportPosterTypeEnum.Default,
  3629. this.reportFormat = ReportFormatEnum.Json,
  3630. this.postTimeout = 0,
  3631. });
  3632. factory PosterConfigMigratoryInfo.fromJson(Map<String, dynamic> map) {
  3633. return PosterConfigMigratoryInfo(
  3634. code: map['Code'],
  3635. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3636. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3637. isDelete: map['IsDelete'],
  3638. receiverName: map['ReceiverName'],
  3639. contact: map['Contact'],
  3640. phone: map['Phone'],
  3641. targetUrl: map['TargetUrl'],
  3642. template: map['Template'],
  3643. posterType: ReportPosterTypeEnum.values.firstWhere((e) => e.index == map['PosterType']),
  3644. reportFormat: ReportFormatEnum.values.firstWhere((e) => e.index == map['ReportFormat']),
  3645. postTimeout: map['PostTimeout'],
  3646. );
  3647. }
  3648. Map<String, dynamic> toJson() {
  3649. final map = Map<String, dynamic>();
  3650. if(code != null)
  3651. map['Code'] = code;
  3652. if(createTime != null)
  3653. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  3654. if(updateTime != null)
  3655. map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
  3656. map['IsDelete'] = isDelete;
  3657. if(receiverName != null)
  3658. map['ReceiverName'] = receiverName;
  3659. if(contact != null)
  3660. map['Contact'] = contact;
  3661. if(phone != null)
  3662. map['Phone'] = phone;
  3663. if(targetUrl != null)
  3664. map['TargetUrl'] = targetUrl;
  3665. if(template != null)
  3666. map['Template'] = template;
  3667. map['PosterType'] = posterType.index;
  3668. map['ReportFormat'] = reportFormat.index;
  3669. map['PostTimeout'] = postTimeout;
  3670. return map;
  3671. }
  3672. }
  3673. class BatchInsertPosterConfigRequest extends TokenRequest{
  3674. SyncDBEnum syncType;
  3675. List<PosterConfigMigratoryInfo >? posterConfigMigratorys;
  3676. BatchInsertPosterConfigRequest({
  3677. this.syncType = SyncDBEnum.Migrate,
  3678. this.posterConfigMigratorys,
  3679. String? token,
  3680. }) : super(
  3681. token: token,
  3682. );
  3683. factory BatchInsertPosterConfigRequest.fromJson(Map<String, dynamic> map) {
  3684. return BatchInsertPosterConfigRequest(
  3685. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  3686. posterConfigMigratorys: map['PosterConfigMigratorys'] != null ? (map['PosterConfigMigratorys'] as List).map((e)=>PosterConfigMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  3687. token: map['Token'],
  3688. );
  3689. }
  3690. Map<String, dynamic> toJson() {
  3691. final map = super.toJson();
  3692. map['SyncType'] = syncType.index;
  3693. if(posterConfigMigratorys != null)
  3694. map['PosterConfigMigratorys'] = posterConfigMigratorys;
  3695. return map;
  3696. }
  3697. }
  3698. class ReportTemplateMigratoryInfo extends ReportTemplateDTO{
  3699. bool isDelete;
  3700. DateTime? createTime;
  3701. DateTime? updateTime;
  3702. ReportTemplateMigratoryInfo({
  3703. this.isDelete = false,
  3704. this.createTime,
  3705. this.updateTime,
  3706. String? reportTemplateCode,
  3707. String? reportTemplateName,
  3708. ReportTemplateStatusTypeEnum reportTemplateStateType = ReportTemplateStatusTypeEnum.Unpublished,
  3709. ReportTemplateTypeEnum reportTemplateType = ReportTemplateTypeEnum.Default,
  3710. ReportTemplateUsageTypeEnum reportTemplateUsageType = ReportTemplateUsageTypeEnum.People,
  3711. String? organizationCode,
  3712. String? personalCode,
  3713. String? reportTemplateJson,
  3714. String? referenceReportTemplateCode,
  3715. bool isDefault = false,
  3716. bool isUserDefault = false,
  3717. String? reportDatasJson,
  3718. List<ReportPreviewDTO >? templatePreviewList,
  3719. List<String >? templatePreviewUrlList,
  3720. String? languageCode,
  3721. }) : super(
  3722. reportTemplateCode: reportTemplateCode,
  3723. reportTemplateName: reportTemplateName,
  3724. reportTemplateStateType: reportTemplateStateType,
  3725. reportTemplateType: reportTemplateType,
  3726. reportTemplateUsageType: reportTemplateUsageType,
  3727. organizationCode: organizationCode,
  3728. personalCode: personalCode,
  3729. reportTemplateJson: reportTemplateJson,
  3730. referenceReportTemplateCode: referenceReportTemplateCode,
  3731. isDefault: isDefault,
  3732. isUserDefault: isUserDefault,
  3733. reportDatasJson: reportDatasJson,
  3734. templatePreviewList: templatePreviewList,
  3735. templatePreviewUrlList: templatePreviewUrlList,
  3736. languageCode: languageCode,
  3737. );
  3738. factory ReportTemplateMigratoryInfo.fromJson(Map<String, dynamic> map) {
  3739. return ReportTemplateMigratoryInfo(
  3740. isDelete: map['IsDelete'],
  3741. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3742. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3743. reportTemplateCode: map['ReportTemplateCode'],
  3744. reportTemplateName: map['ReportTemplateName'],
  3745. reportTemplateStateType: ReportTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['ReportTemplateStateType']),
  3746. reportTemplateType: ReportTemplateTypeEnum.values.firstWhere((e) => e.index == map['ReportTemplateType']),
  3747. reportTemplateUsageType: ReportTemplateUsageTypeEnum.values.firstWhere((e) => e.index == map['ReportTemplateUsageType']),
  3748. organizationCode: map['OrganizationCode'],
  3749. personalCode: map['PersonalCode'],
  3750. reportTemplateJson: map['ReportTemplateJson'],
  3751. referenceReportTemplateCode: map['ReferenceReportTemplateCode'],
  3752. isDefault: map['IsDefault'],
  3753. isUserDefault: map['IsUserDefault'],
  3754. reportDatasJson: map['ReportDatasJson'],
  3755. templatePreviewList: map['TemplatePreviewList'] != null ? (map['TemplatePreviewList'] as List).map((e)=>ReportPreviewDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3756. templatePreviewUrlList: map['TemplatePreviewUrlList'] != null ? map['TemplatePreviewUrlList'].cast<String>().toList() : null,
  3757. languageCode: map['LanguageCode'],
  3758. );
  3759. }
  3760. Map<String, dynamic> toJson() {
  3761. final map = super.toJson();
  3762. map['IsDelete'] = isDelete;
  3763. if(createTime != null)
  3764. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  3765. if(updateTime != null)
  3766. map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
  3767. return map;
  3768. }
  3769. }
  3770. class BatchInsertReportTemplateRequest extends TokenRequest{
  3771. SyncDBEnum syncType;
  3772. List<ReportTemplateMigratoryInfo >? reportTemplateMigratorys;
  3773. BatchInsertReportTemplateRequest({
  3774. this.syncType = SyncDBEnum.Migrate,
  3775. this.reportTemplateMigratorys,
  3776. String? token,
  3777. }) : super(
  3778. token: token,
  3779. );
  3780. factory BatchInsertReportTemplateRequest.fromJson(Map<String, dynamic> map) {
  3781. return BatchInsertReportTemplateRequest(
  3782. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  3783. reportTemplateMigratorys: map['ReportTemplateMigratorys'] != null ? (map['ReportTemplateMigratorys'] as List).map((e)=>ReportTemplateMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  3784. token: map['Token'],
  3785. );
  3786. }
  3787. Map<String, dynamic> toJson() {
  3788. final map = super.toJson();
  3789. map['SyncType'] = syncType.index;
  3790. if(reportTemplateMigratorys != null)
  3791. map['ReportTemplateMigratorys'] = reportTemplateMigratorys;
  3792. return map;
  3793. }
  3794. }
  3795. class ReportLabelMigratoryInfo extends ReportLabelDTO{
  3796. bool isDelete;
  3797. ReportLabelMigratoryInfo({
  3798. this.isDelete = false,
  3799. String? reportLabelCode,
  3800. String? labelName,
  3801. String? languageCode,
  3802. ReportLabelUsageTypeEnum usageType = ReportLabelUsageTypeEnum.People,
  3803. List<String >? labelItems,
  3804. DateTime? createTime,
  3805. DateTime? updateTime,
  3806. }) : super(
  3807. reportLabelCode: reportLabelCode,
  3808. labelName: labelName,
  3809. languageCode: languageCode,
  3810. usageType: usageType,
  3811. labelItems: labelItems,
  3812. createTime: createTime,
  3813. updateTime: updateTime,
  3814. );
  3815. factory ReportLabelMigratoryInfo.fromJson(Map<String, dynamic> map) {
  3816. return ReportLabelMigratoryInfo(
  3817. isDelete: map['IsDelete'],
  3818. reportLabelCode: map['ReportLabelCode'],
  3819. labelName: map['LabelName'],
  3820. languageCode: map['LanguageCode'],
  3821. usageType: ReportLabelUsageTypeEnum.values.firstWhere((e) => e.index == map['UsageType']),
  3822. labelItems: map['LabelItems'] != null ? map['LabelItems'].cast<String>().toList() : null,
  3823. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3824. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3825. );
  3826. }
  3827. Map<String, dynamic> toJson() {
  3828. final map = super.toJson();
  3829. map['IsDelete'] = isDelete;
  3830. return map;
  3831. }
  3832. }
  3833. class BatchInsertReportLabelRequest extends TokenRequest{
  3834. SyncDBEnum syncType;
  3835. List<ReportLabelMigratoryInfo >? reportLabelData;
  3836. BatchInsertReportLabelRequest({
  3837. this.syncType = SyncDBEnum.Migrate,
  3838. this.reportLabelData,
  3839. String? token,
  3840. }) : super(
  3841. token: token,
  3842. );
  3843. factory BatchInsertReportLabelRequest.fromJson(Map<String, dynamic> map) {
  3844. return BatchInsertReportLabelRequest(
  3845. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  3846. reportLabelData: map['ReportLabelData'] != null ? (map['ReportLabelData'] as List).map((e)=>ReportLabelMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  3847. token: map['Token'],
  3848. );
  3849. }
  3850. Map<String, dynamic> toJson() {
  3851. final map = super.toJson();
  3852. map['SyncType'] = syncType.index;
  3853. if(reportLabelData != null)
  3854. map['ReportLabelData'] = reportLabelData;
  3855. return map;
  3856. }
  3857. }
  3858. class UserGroupMigratoryInfo extends BaseDTO{
  3859. bool isDelete;
  3860. String? code;
  3861. String? name;
  3862. int maxPeople;
  3863. String? creatorCode;
  3864. List<StudentInfoDTO >? students;
  3865. String? shortCode;
  3866. bool isAgent;
  3867. UserGroupMigratoryInfo({
  3868. this.isDelete = false,
  3869. this.code,
  3870. this.name,
  3871. this.maxPeople = 0,
  3872. this.creatorCode,
  3873. this.students,
  3874. this.shortCode,
  3875. this.isAgent = false,
  3876. DateTime? createTime,
  3877. DateTime? updateTime,
  3878. }) : super(
  3879. createTime: createTime,
  3880. updateTime: updateTime,
  3881. );
  3882. factory UserGroupMigratoryInfo.fromJson(Map<String, dynamic> map) {
  3883. return UserGroupMigratoryInfo(
  3884. isDelete: map['IsDelete'],
  3885. code: map['Code'],
  3886. name: map['Name'],
  3887. maxPeople: map['MaxPeople'],
  3888. creatorCode: map['CreatorCode'],
  3889. students: map['Students'] != null ? (map['Students'] as List).map((e)=>StudentInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3890. shortCode: map['ShortCode'],
  3891. isAgent: map['IsAgent'],
  3892. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3893. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3894. );
  3895. }
  3896. Map<String, dynamic> toJson() {
  3897. final map = super.toJson();
  3898. map['IsDelete'] = isDelete;
  3899. if(code != null)
  3900. map['Code'] = code;
  3901. if(name != null)
  3902. map['Name'] = name;
  3903. map['MaxPeople'] = maxPeople;
  3904. if(creatorCode != null)
  3905. map['CreatorCode'] = creatorCode;
  3906. if(students != null)
  3907. map['Students'] = students;
  3908. if(shortCode != null)
  3909. map['ShortCode'] = shortCode;
  3910. map['IsAgent'] = isAgent;
  3911. return map;
  3912. }
  3913. }
  3914. class BatchInsertUserGroupRequest extends TokenRequest{
  3915. SyncDBEnum syncType;
  3916. List<UserGroupMigratoryInfo >? userGroupMigratorys;
  3917. BatchInsertUserGroupRequest({
  3918. this.syncType = SyncDBEnum.Migrate,
  3919. this.userGroupMigratorys,
  3920. String? token,
  3921. }) : super(
  3922. token: token,
  3923. );
  3924. factory BatchInsertUserGroupRequest.fromJson(Map<String, dynamic> map) {
  3925. return BatchInsertUserGroupRequest(
  3926. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  3927. userGroupMigratorys: map['UserGroupMigratorys'] != null ? (map['UserGroupMigratorys'] as List).map((e)=>UserGroupMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  3928. token: map['Token'],
  3929. );
  3930. }
  3931. Map<String, dynamic> toJson() {
  3932. final map = super.toJson();
  3933. map['SyncType'] = syncType.index;
  3934. if(userGroupMigratorys != null)
  3935. map['UserGroupMigratorys'] = userGroupMigratorys;
  3936. return map;
  3937. }
  3938. }
  3939. class ConfirmIdentityApplyRequest extends TokenRequest{
  3940. String? identityApplyCode;
  3941. ConfirmIdentityApplyRequest({
  3942. this.identityApplyCode,
  3943. String? token,
  3944. }) : super(
  3945. token: token,
  3946. );
  3947. factory ConfirmIdentityApplyRequest.fromJson(Map<String, dynamic> map) {
  3948. return ConfirmIdentityApplyRequest(
  3949. identityApplyCode: map['IdentityApplyCode'],
  3950. token: map['Token'],
  3951. );
  3952. }
  3953. Map<String, dynamic> toJson() {
  3954. final map = super.toJson();
  3955. if(identityApplyCode != null)
  3956. map['IdentityApplyCode'] = identityApplyCode;
  3957. return map;
  3958. }
  3959. }
  3960. class CreateThirdPartyTokenRequest extends TokenRequest{
  3961. String? code;
  3962. CreateThirdPartyTokenRequest({
  3963. this.code,
  3964. String? token,
  3965. }) : super(
  3966. token: token,
  3967. );
  3968. factory CreateThirdPartyTokenRequest.fromJson(Map<String, dynamic> map) {
  3969. return CreateThirdPartyTokenRequest(
  3970. code: map['Code'],
  3971. token: map['Token'],
  3972. );
  3973. }
  3974. Map<String, dynamic> toJson() {
  3975. final map = super.toJson();
  3976. if(code != null)
  3977. map['Code'] = code;
  3978. return map;
  3979. }
  3980. }
  3981. class DeleteAdminFeatureRequest extends TokenRequest{
  3982. String? adminFeatureCode;
  3983. DeleteAdminFeatureRequest({
  3984. this.adminFeatureCode,
  3985. String? token,
  3986. }) : super(
  3987. token: token,
  3988. );
  3989. factory DeleteAdminFeatureRequest.fromJson(Map<String, dynamic> map) {
  3990. return DeleteAdminFeatureRequest(
  3991. adminFeatureCode: map['AdminFeatureCode'],
  3992. token: map['Token'],
  3993. );
  3994. }
  3995. Map<String, dynamic> toJson() {
  3996. final map = super.toJson();
  3997. if(adminFeatureCode != null)
  3998. map['AdminFeatureCode'] = adminFeatureCode;
  3999. return map;
  4000. }
  4001. }
  4002. class DeleteAdminRoleRequest extends TokenRequest{
  4003. String? adminRoleCode;
  4004. DeleteAdminRoleRequest({
  4005. this.adminRoleCode,
  4006. String? token,
  4007. }) : super(
  4008. token: token,
  4009. );
  4010. factory DeleteAdminRoleRequest.fromJson(Map<String, dynamic> map) {
  4011. return DeleteAdminRoleRequest(
  4012. adminRoleCode: map['AdminRoleCode'],
  4013. token: map['Token'],
  4014. );
  4015. }
  4016. Map<String, dynamic> toJson() {
  4017. final map = super.toJson();
  4018. if(adminRoleCode != null)
  4019. map['AdminRoleCode'] = adminRoleCode;
  4020. return map;
  4021. }
  4022. }
  4023. class DeleteDeviceRequest extends TokenRequest{
  4024. String? deviceCode;
  4025. DeleteDeviceRequest({
  4026. this.deviceCode,
  4027. String? token,
  4028. }) : super(
  4029. token: token,
  4030. );
  4031. factory DeleteDeviceRequest.fromJson(Map<String, dynamic> map) {
  4032. return DeleteDeviceRequest(
  4033. deviceCode: map['DeviceCode'],
  4034. token: map['Token'],
  4035. );
  4036. }
  4037. Map<String, dynamic> toJson() {
  4038. final map = super.toJson();
  4039. if(deviceCode != null)
  4040. map['DeviceCode'] = deviceCode;
  4041. return map;
  4042. }
  4043. }
  4044. class DeleteLogsRequest extends TokenRequest{
  4045. int daysAgo;
  4046. String? requestServerHost;
  4047. DeleteLogsRequest({
  4048. this.daysAgo = 0,
  4049. this.requestServerHost,
  4050. String? token,
  4051. }) : super(
  4052. token: token,
  4053. );
  4054. factory DeleteLogsRequest.fromJson(Map<String, dynamic> map) {
  4055. return DeleteLogsRequest(
  4056. daysAgo: map['DaysAgo'],
  4057. requestServerHost: map['RequestServerHost'],
  4058. token: map['Token'],
  4059. );
  4060. }
  4061. Map<String, dynamic> toJson() {
  4062. final map = super.toJson();
  4063. map['DaysAgo'] = daysAgo;
  4064. if(requestServerHost != null)
  4065. map['RequestServerHost'] = requestServerHost;
  4066. return map;
  4067. }
  4068. }
  4069. class QueryClearLogsRequest extends DeleteLogsRequest{
  4070. List<int >? dayAgoList;
  4071. QueryClearLogsRequest({
  4072. this.dayAgoList,
  4073. int daysAgo = 0,
  4074. String? requestServerHost,
  4075. String? token,
  4076. }) : super(
  4077. daysAgo: daysAgo,
  4078. requestServerHost: requestServerHost,
  4079. token: token,
  4080. );
  4081. factory QueryClearLogsRequest.fromJson(Map<String, dynamic> map) {
  4082. return QueryClearLogsRequest(
  4083. dayAgoList: map['DayAgoList'] != null ? map['DayAgoList'].cast<int>().toList() : null,
  4084. daysAgo: map['DaysAgo'],
  4085. requestServerHost: map['RequestServerHost'],
  4086. token: map['Token'],
  4087. );
  4088. }
  4089. Map<String, dynamic> toJson() {
  4090. final map = super.toJson();
  4091. if(dayAgoList != null)
  4092. map['DayAgoList'] = dayAgoList;
  4093. return map;
  4094. }
  4095. }
  4096. class DeleteRoleRequest extends TokenRequest{
  4097. String? roleCode;
  4098. DeleteRoleRequest({
  4099. this.roleCode,
  4100. String? token,
  4101. }) : super(
  4102. token: token,
  4103. );
  4104. factory DeleteRoleRequest.fromJson(Map<String, dynamic> map) {
  4105. return DeleteRoleRequest(
  4106. roleCode: map['RoleCode'],
  4107. token: map['Token'],
  4108. );
  4109. }
  4110. Map<String, dynamic> toJson() {
  4111. final map = super.toJson();
  4112. if(roleCode != null)
  4113. map['RoleCode'] = roleCode;
  4114. return map;
  4115. }
  4116. }
  4117. class DeleteThesaurusRequest extends TokenRequest{
  4118. String? thesaurusCode;
  4119. DeleteThesaurusRequest({
  4120. this.thesaurusCode,
  4121. String? token,
  4122. }) : super(
  4123. token: token,
  4124. );
  4125. factory DeleteThesaurusRequest.fromJson(Map<String, dynamic> map) {
  4126. return DeleteThesaurusRequest(
  4127. thesaurusCode: map['ThesaurusCode'],
  4128. token: map['Token'],
  4129. );
  4130. }
  4131. Map<String, dynamic> toJson() {
  4132. final map = super.toJson();
  4133. if(thesaurusCode != null)
  4134. map['ThesaurusCode'] = thesaurusCode;
  4135. return map;
  4136. }
  4137. }
  4138. class DeleteThirdPartyInfoRequest extends TokenRequest{
  4139. String? code;
  4140. DeleteThirdPartyInfoRequest({
  4141. this.code,
  4142. String? token,
  4143. }) : super(
  4144. token: token,
  4145. );
  4146. factory DeleteThirdPartyInfoRequest.fromJson(Map<String, dynamic> map) {
  4147. return DeleteThirdPartyInfoRequest(
  4148. code: map['Code'],
  4149. token: map['Token'],
  4150. );
  4151. }
  4152. Map<String, dynamic> toJson() {
  4153. final map = super.toJson();
  4154. if(code != null)
  4155. map['Code'] = code;
  4156. return map;
  4157. }
  4158. }
  4159. class DeleteUserFeatureRequest extends TokenRequest{
  4160. String? userFeatureCode;
  4161. DeleteUserFeatureRequest({
  4162. this.userFeatureCode,
  4163. String? token,
  4164. }) : super(
  4165. token: token,
  4166. );
  4167. factory DeleteUserFeatureRequest.fromJson(Map<String, dynamic> map) {
  4168. return DeleteUserFeatureRequest(
  4169. userFeatureCode: map['UserFeatureCode'],
  4170. token: map['Token'],
  4171. );
  4172. }
  4173. Map<String, dynamic> toJson() {
  4174. final map = super.toJson();
  4175. if(userFeatureCode != null)
  4176. map['UserFeatureCode'] = userFeatureCode;
  4177. return map;
  4178. }
  4179. }
  4180. enum DistributedServerTypeEnum {
  4181. Official,
  4182. Private,
  4183. }
  4184. class IPAddressInfoDTO {
  4185. String? startIp;
  4186. String? endIp;
  4187. int longStartIP;
  4188. int longEndIP;
  4189. IPAddressInfoDTO({
  4190. this.startIp,
  4191. this.endIp,
  4192. this.longStartIP = 0,
  4193. this.longEndIP = 0,
  4194. });
  4195. factory IPAddressInfoDTO.fromJson(Map<String, dynamic> map) {
  4196. return IPAddressInfoDTO(
  4197. startIp: map['StartIp'],
  4198. endIp: map['EndIp'],
  4199. longStartIP: map['LongStartIP'],
  4200. longEndIP: map['LongEndIP'],
  4201. );
  4202. }
  4203. Map<String, dynamic> toJson() {
  4204. final map = Map<String, dynamic>();
  4205. if(startIp != null)
  4206. map['StartIp'] = startIp;
  4207. if(endIp != null)
  4208. map['EndIp'] = endIp;
  4209. map['LongStartIP'] = longStartIP;
  4210. map['LongEndIP'] = longEndIP;
  4211. return map;
  4212. }
  4213. }
  4214. class DistributedServerInfoRequest extends TokenRequest{
  4215. String? code;
  4216. List<String >? codes;
  4217. bool isMaster;
  4218. String? name;
  4219. String? description;
  4220. bool enable;
  4221. DistributedServerTypeEnum serverType;
  4222. String? serverUrl;
  4223. String? lat;
  4224. String? lng;
  4225. List<IPAddressInfoDTO >? assignClientIPList;
  4226. int rTCStartingRoomId;
  4227. String? shareCodePrefix;
  4228. DistributedServerInfoRequest({
  4229. this.code,
  4230. this.codes,
  4231. this.isMaster = false,
  4232. this.name,
  4233. this.description,
  4234. this.enable = false,
  4235. this.serverType = DistributedServerTypeEnum.Official,
  4236. this.serverUrl,
  4237. this.lat,
  4238. this.lng,
  4239. this.assignClientIPList,
  4240. this.rTCStartingRoomId = 0,
  4241. this.shareCodePrefix,
  4242. String? token,
  4243. }) : super(
  4244. token: token,
  4245. );
  4246. factory DistributedServerInfoRequest.fromJson(Map<String, dynamic> map) {
  4247. return DistributedServerInfoRequest(
  4248. code: map['Code'],
  4249. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  4250. isMaster: map['IsMaster'],
  4251. name: map['Name'],
  4252. description: map['Description'],
  4253. enable: map['Enable'],
  4254. serverType: DistributedServerTypeEnum.values.firstWhere((e) => e.index == map['ServerType']),
  4255. serverUrl: map['ServerUrl'],
  4256. lat: map['Lat'],
  4257. lng: map['Lng'],
  4258. assignClientIPList: map['AssignClientIPList'] != null ? (map['AssignClientIPList'] as List).map((e)=>IPAddressInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4259. rTCStartingRoomId: map['RTCStartingRoomId'],
  4260. shareCodePrefix: map['ShareCodePrefix'],
  4261. token: map['Token'],
  4262. );
  4263. }
  4264. Map<String, dynamic> toJson() {
  4265. final map = super.toJson();
  4266. if(code != null)
  4267. map['Code'] = code;
  4268. if(codes != null)
  4269. map['Codes'] = codes;
  4270. map['IsMaster'] = isMaster;
  4271. if(name != null)
  4272. map['Name'] = name;
  4273. if(description != null)
  4274. map['Description'] = description;
  4275. map['Enable'] = enable;
  4276. map['ServerType'] = serverType.index;
  4277. if(serverUrl != null)
  4278. map['ServerUrl'] = serverUrl;
  4279. if(lat != null)
  4280. map['Lat'] = lat;
  4281. if(lng != null)
  4282. map['Lng'] = lng;
  4283. if(assignClientIPList != null)
  4284. map['AssignClientIPList'] = assignClientIPList;
  4285. map['RTCStartingRoomId'] = rTCStartingRoomId;
  4286. if(shareCodePrefix != null)
  4287. map['ShareCodePrefix'] = shareCodePrefix;
  4288. return map;
  4289. }
  4290. }
  4291. class SaveDistributedServerIpRequest extends TokenRequest{
  4292. String? startIp;
  4293. String? endIp;
  4294. String? code;
  4295. SaveDistributedServerIpRequest({
  4296. this.startIp,
  4297. this.endIp,
  4298. this.code,
  4299. String? token,
  4300. }) : super(
  4301. token: token,
  4302. );
  4303. factory SaveDistributedServerIpRequest.fromJson(Map<String, dynamic> map) {
  4304. return SaveDistributedServerIpRequest(
  4305. startIp: map['StartIp'],
  4306. endIp: map['EndIp'],
  4307. code: map['Code'],
  4308. token: map['Token'],
  4309. );
  4310. }
  4311. Map<String, dynamic> toJson() {
  4312. final map = super.toJson();
  4313. if(startIp != null)
  4314. map['StartIp'] = startIp;
  4315. if(endIp != null)
  4316. map['EndIp'] = endIp;
  4317. if(code != null)
  4318. map['Code'] = code;
  4319. return map;
  4320. }
  4321. }
  4322. class GetDistributedServerIpListRequest extends PageRequest{
  4323. String? code;
  4324. String? keyword;
  4325. GetDistributedServerIpListRequest({
  4326. this.code,
  4327. this.keyword,
  4328. int pageIndex = 0,
  4329. int pageSize = 0,
  4330. String? token,
  4331. }) : super(
  4332. pageIndex: pageIndex,
  4333. pageSize: pageSize,
  4334. token: token,
  4335. );
  4336. factory GetDistributedServerIpListRequest.fromJson(Map<String, dynamic> map) {
  4337. return GetDistributedServerIpListRequest(
  4338. code: map['Code'],
  4339. keyword: map['Keyword'],
  4340. pageIndex: map['PageIndex'],
  4341. pageSize: map['PageSize'],
  4342. token: map['Token'],
  4343. );
  4344. }
  4345. Map<String, dynamic> toJson() {
  4346. final map = super.toJson();
  4347. if(code != null)
  4348. map['Code'] = code;
  4349. if(keyword != null)
  4350. map['Keyword'] = keyword;
  4351. return map;
  4352. }
  4353. }
  4354. class FindAdminByCodeRequest extends TokenRequest{
  4355. String? adminCode;
  4356. FindAdminByCodeRequest({
  4357. this.adminCode,
  4358. String? token,
  4359. }) : super(
  4360. token: token,
  4361. );
  4362. factory FindAdminByCodeRequest.fromJson(Map<String, dynamic> map) {
  4363. return FindAdminByCodeRequest(
  4364. adminCode: map['AdminCode'],
  4365. token: map['Token'],
  4366. );
  4367. }
  4368. Map<String, dynamic> toJson() {
  4369. final map = super.toJson();
  4370. if(adminCode != null)
  4371. map['AdminCode'] = adminCode;
  4372. return map;
  4373. }
  4374. }
  4375. class FindAdminRoleByCodeRequest extends TokenRequest{
  4376. String? adminRoleCode;
  4377. FindAdminRoleByCodeRequest({
  4378. this.adminRoleCode,
  4379. String? token,
  4380. }) : super(
  4381. token: token,
  4382. );
  4383. factory FindAdminRoleByCodeRequest.fromJson(Map<String, dynamic> map) {
  4384. return FindAdminRoleByCodeRequest(
  4385. adminRoleCode: map['AdminRoleCode'],
  4386. token: map['Token'],
  4387. );
  4388. }
  4389. Map<String, dynamic> toJson() {
  4390. final map = super.toJson();
  4391. if(adminRoleCode != null)
  4392. map['AdminRoleCode'] = adminRoleCode;
  4393. return map;
  4394. }
  4395. }
  4396. class FindAdminStatisticRecordsRequest extends TokenRequest{
  4397. String? languageCode;
  4398. FindAdminStatisticRecordsRequest({
  4399. this.languageCode,
  4400. String? token,
  4401. }) : super(
  4402. token: token,
  4403. );
  4404. factory FindAdminStatisticRecordsRequest.fromJson(Map<String, dynamic> map) {
  4405. return FindAdminStatisticRecordsRequest(
  4406. languageCode: map['LanguageCode'],
  4407. token: map['Token'],
  4408. );
  4409. }
  4410. Map<String, dynamic> toJson() {
  4411. final map = super.toJson();
  4412. if(languageCode != null)
  4413. map['LanguageCode'] = languageCode;
  4414. return map;
  4415. }
  4416. }
  4417. class FindCMSStatisticRequest extends TokenRequest{
  4418. String? clientId;
  4419. FindCMSStatisticRequest({
  4420. this.clientId,
  4421. String? token,
  4422. }) : super(
  4423. token: token,
  4424. );
  4425. factory FindCMSStatisticRequest.fromJson(Map<String, dynamic> map) {
  4426. return FindCMSStatisticRequest(
  4427. clientId: map['ClientId'],
  4428. token: map['Token'],
  4429. );
  4430. }
  4431. Map<String, dynamic> toJson() {
  4432. final map = super.toJson();
  4433. if(clientId != null)
  4434. map['ClientId'] = clientId;
  4435. return map;
  4436. }
  4437. }
  4438. class FindCMSTemplateByUserRequest extends TokenRequest{
  4439. String? clientId;
  4440. FindCMSTemplateByUserRequest({
  4441. this.clientId,
  4442. String? token,
  4443. }) : super(
  4444. token: token,
  4445. );
  4446. factory FindCMSTemplateByUserRequest.fromJson(Map<String, dynamic> map) {
  4447. return FindCMSTemplateByUserRequest(
  4448. clientId: map['ClientId'],
  4449. token: map['Token'],
  4450. );
  4451. }
  4452. Map<String, dynamic> toJson() {
  4453. final map = super.toJson();
  4454. if(clientId != null)
  4455. map['ClientId'] = clientId;
  4456. return map;
  4457. }
  4458. }
  4459. class FindCMSTemplateDetailRequest extends TokenRequest{
  4460. String? cMSTemplateCode;
  4461. FindCMSTemplateDetailRequest({
  4462. this.cMSTemplateCode,
  4463. String? token,
  4464. }) : super(
  4465. token: token,
  4466. );
  4467. factory FindCMSTemplateDetailRequest.fromJson(Map<String, dynamic> map) {
  4468. return FindCMSTemplateDetailRequest(
  4469. cMSTemplateCode: map['CMSTemplateCode'],
  4470. token: map['Token'],
  4471. );
  4472. }
  4473. Map<String, dynamic> toJson() {
  4474. final map = super.toJson();
  4475. if(cMSTemplateCode != null)
  4476. map['CMSTemplateCode'] = cMSTemplateCode;
  4477. return map;
  4478. }
  4479. }
  4480. class FindCMSTemplatePageRequest extends PageRequest{
  4481. String? searchKey;
  4482. FindCMSTemplatePageRequest({
  4483. this.searchKey,
  4484. int pageIndex = 0,
  4485. int pageSize = 0,
  4486. String? token,
  4487. }) : super(
  4488. pageIndex: pageIndex,
  4489. pageSize: pageSize,
  4490. token: token,
  4491. );
  4492. factory FindCMSTemplatePageRequest.fromJson(Map<String, dynamic> map) {
  4493. return FindCMSTemplatePageRequest(
  4494. searchKey: map['SearchKey'],
  4495. pageIndex: map['PageIndex'],
  4496. pageSize: map['PageSize'],
  4497. token: map['Token'],
  4498. );
  4499. }
  4500. Map<String, dynamic> toJson() {
  4501. final map = super.toJson();
  4502. if(searchKey != null)
  4503. map['SearchKey'] = searchKey;
  4504. return map;
  4505. }
  4506. }
  4507. class FindContentConfigRequest extends TokenRequest{
  4508. int type;
  4509. String? parentCode;
  4510. FindContentConfigRequest({
  4511. this.type = 0,
  4512. this.parentCode,
  4513. String? token,
  4514. }) : super(
  4515. token: token,
  4516. );
  4517. factory FindContentConfigRequest.fromJson(Map<String, dynamic> map) {
  4518. return FindContentConfigRequest(
  4519. type: map['Type'],
  4520. parentCode: map['ParentCode'],
  4521. token: map['Token'],
  4522. );
  4523. }
  4524. Map<String, dynamic> toJson() {
  4525. final map = super.toJson();
  4526. map['Type'] = type;
  4527. if(parentCode != null)
  4528. map['ParentCode'] = parentCode;
  4529. return map;
  4530. }
  4531. }
  4532. class FindDeviceDiagnosisModulesRequest2 extends TokenRequest{
  4533. String? deviceCode;
  4534. FindDeviceDiagnosisModulesRequest2({
  4535. this.deviceCode,
  4536. String? token,
  4537. }) : super(
  4538. token: token,
  4539. );
  4540. factory FindDeviceDiagnosisModulesRequest2.fromJson(Map<String, dynamic> map) {
  4541. return FindDeviceDiagnosisModulesRequest2(
  4542. deviceCode: map['DeviceCode'],
  4543. token: map['Token'],
  4544. );
  4545. }
  4546. Map<String, dynamic> toJson() {
  4547. final map = super.toJson();
  4548. if(deviceCode != null)
  4549. map['DeviceCode'] = deviceCode;
  4550. return map;
  4551. }
  4552. }
  4553. class FindDiagnosisModuleByPageRequest extends PageRequest{
  4554. FindDiagnosisModuleByPageRequest({
  4555. int pageIndex = 0,
  4556. int pageSize = 0,
  4557. String? token,
  4558. }) : super(
  4559. pageIndex: pageIndex,
  4560. pageSize: pageSize,
  4561. token: token,
  4562. );
  4563. factory FindDiagnosisModuleByPageRequest.fromJson(Map<String, dynamic> map) {
  4564. return FindDiagnosisModuleByPageRequest(
  4565. pageIndex: map['PageIndex'],
  4566. pageSize: map['PageSize'],
  4567. token: map['Token'],
  4568. );
  4569. }
  4570. Map<String, dynamic> toJson() {
  4571. final map = super.toJson();
  4572. return map;
  4573. }
  4574. }
  4575. class FindGradingProtectionConfigByPageRequest extends PageRequest{
  4576. String? keyword;
  4577. FindGradingProtectionConfigByPageRequest({
  4578. this.keyword,
  4579. int pageIndex = 0,
  4580. int pageSize = 0,
  4581. String? token,
  4582. }) : super(
  4583. pageIndex: pageIndex,
  4584. pageSize: pageSize,
  4585. token: token,
  4586. );
  4587. factory FindGradingProtectionConfigByPageRequest.fromJson(Map<String, dynamic> map) {
  4588. return FindGradingProtectionConfigByPageRequest(
  4589. keyword: map['Keyword'],
  4590. pageIndex: map['PageIndex'],
  4591. pageSize: map['PageSize'],
  4592. token: map['Token'],
  4593. );
  4594. }
  4595. Map<String, dynamic> toJson() {
  4596. final map = super.toJson();
  4597. if(keyword != null)
  4598. map['Keyword'] = keyword;
  4599. return map;
  4600. }
  4601. }
  4602. class FindOrganizationDiagnosisModulesRequest extends TokenRequest{
  4603. String? organizationCode;
  4604. FindOrganizationDiagnosisModulesRequest({
  4605. this.organizationCode,
  4606. String? token,
  4607. }) : super(
  4608. token: token,
  4609. );
  4610. factory FindOrganizationDiagnosisModulesRequest.fromJson(Map<String, dynamic> map) {
  4611. return FindOrganizationDiagnosisModulesRequest(
  4612. organizationCode: map['OrganizationCode'],
  4613. token: map['Token'],
  4614. );
  4615. }
  4616. Map<String, dynamic> toJson() {
  4617. final map = super.toJson();
  4618. if(organizationCode != null)
  4619. map['OrganizationCode'] = organizationCode;
  4620. return map;
  4621. }
  4622. }
  4623. class FindReferralRecordSettingRequest extends TokenRequest{
  4624. FindReferralRecordSettingRequest({
  4625. String? token,
  4626. }) : super(
  4627. token: token,
  4628. );
  4629. factory FindReferralRecordSettingRequest.fromJson(Map<String, dynamic> map) {
  4630. return FindReferralRecordSettingRequest(
  4631. token: map['Token'],
  4632. );
  4633. }
  4634. Map<String, dynamic> toJson() {
  4635. final map = super.toJson();
  4636. return map;
  4637. }
  4638. }
  4639. class FindRelatedDeviceCodesRequest extends TokenRequest{
  4640. String? reportPosterCode;
  4641. FindRelatedDeviceCodesRequest({
  4642. this.reportPosterCode,
  4643. String? token,
  4644. }) : super(
  4645. token: token,
  4646. );
  4647. factory FindRelatedDeviceCodesRequest.fromJson(Map<String, dynamic> map) {
  4648. return FindRelatedDeviceCodesRequest(
  4649. reportPosterCode: map['ReportPosterCode'],
  4650. token: map['Token'],
  4651. );
  4652. }
  4653. Map<String, dynamic> toJson() {
  4654. final map = super.toJson();
  4655. if(reportPosterCode != null)
  4656. map['ReportPosterCode'] = reportPosterCode;
  4657. return map;
  4658. }
  4659. }
  4660. class FindReportLabelByCodeRequest extends TokenRequest{
  4661. String? reportLabelCode;
  4662. FindReportLabelByCodeRequest({
  4663. this.reportLabelCode,
  4664. String? token,
  4665. }) : super(
  4666. token: token,
  4667. );
  4668. factory FindReportLabelByCodeRequest.fromJson(Map<String, dynamic> map) {
  4669. return FindReportLabelByCodeRequest(
  4670. reportLabelCode: map['ReportLabelCode'],
  4671. token: map['Token'],
  4672. );
  4673. }
  4674. Map<String, dynamic> toJson() {
  4675. final map = super.toJson();
  4676. if(reportLabelCode != null)
  4677. map['ReportLabelCode'] = reportLabelCode;
  4678. return map;
  4679. }
  4680. }
  4681. class FindReportLabelByPageRequest extends PageRequest{
  4682. String? keyword;
  4683. FindReportLabelByPageRequest({
  4684. this.keyword,
  4685. int pageIndex = 0,
  4686. int pageSize = 0,
  4687. String? token,
  4688. }) : super(
  4689. pageIndex: pageIndex,
  4690. pageSize: pageSize,
  4691. token: token,
  4692. );
  4693. factory FindReportLabelByPageRequest.fromJson(Map<String, dynamic> map) {
  4694. return FindReportLabelByPageRequest(
  4695. keyword: map['Keyword'],
  4696. pageIndex: map['PageIndex'],
  4697. pageSize: map['PageSize'],
  4698. token: map['Token'],
  4699. );
  4700. }
  4701. Map<String, dynamic> toJson() {
  4702. final map = super.toJson();
  4703. if(keyword != null)
  4704. map['Keyword'] = keyword;
  4705. return map;
  4706. }
  4707. }
  4708. class FindReportPosterByCodeRequest extends TokenRequest{
  4709. String? reportPosterCode;
  4710. FindReportPosterByCodeRequest({
  4711. this.reportPosterCode,
  4712. String? token,
  4713. }) : super(
  4714. token: token,
  4715. );
  4716. factory FindReportPosterByCodeRequest.fromJson(Map<String, dynamic> map) {
  4717. return FindReportPosterByCodeRequest(
  4718. reportPosterCode: map['ReportPosterCode'],
  4719. token: map['Token'],
  4720. );
  4721. }
  4722. Map<String, dynamic> toJson() {
  4723. final map = super.toJson();
  4724. if(reportPosterCode != null)
  4725. map['ReportPosterCode'] = reportPosterCode;
  4726. return map;
  4727. }
  4728. }
  4729. class FindReportPosterByPageRequest extends PageRequest{
  4730. String? keyword;
  4731. FindReportPosterByPageRequest({
  4732. this.keyword,
  4733. int pageIndex = 0,
  4734. int pageSize = 0,
  4735. String? token,
  4736. }) : super(
  4737. pageIndex: pageIndex,
  4738. pageSize: pageSize,
  4739. token: token,
  4740. );
  4741. factory FindReportPosterByPageRequest.fromJson(Map<String, dynamic> map) {
  4742. return FindReportPosterByPageRequest(
  4743. keyword: map['Keyword'],
  4744. pageIndex: map['PageIndex'],
  4745. pageSize: map['PageSize'],
  4746. token: map['Token'],
  4747. );
  4748. }
  4749. Map<String, dynamic> toJson() {
  4750. final map = super.toJson();
  4751. if(keyword != null)
  4752. map['Keyword'] = keyword;
  4753. return map;
  4754. }
  4755. }
  4756. class FindReportPreviewUrlRequest extends TokenRequest{
  4757. String? reportCode;
  4758. String? languageCode;
  4759. FindReportPreviewUrlRequest({
  4760. this.reportCode,
  4761. this.languageCode,
  4762. String? token,
  4763. }) : super(
  4764. token: token,
  4765. );
  4766. factory FindReportPreviewUrlRequest.fromJson(Map<String, dynamic> map) {
  4767. return FindReportPreviewUrlRequest(
  4768. reportCode: map['ReportCode'],
  4769. languageCode: map['LanguageCode'],
  4770. token: map['Token'],
  4771. );
  4772. }
  4773. Map<String, dynamic> toJson() {
  4774. final map = super.toJson();
  4775. if(reportCode != null)
  4776. map['ReportCode'] = reportCode;
  4777. if(languageCode != null)
  4778. map['LanguageCode'] = languageCode;
  4779. return map;
  4780. }
  4781. }
  4782. enum PushDataStateEnum {
  4783. UnDo,
  4784. Successful,
  4785. Failed,
  4786. All,
  4787. }
  4788. class FindReportPushRecordsByPageRequest extends PageRequest{
  4789. String? keyword;
  4790. PushDataStateEnum queryState;
  4791. FindReportPushRecordsByPageRequest({
  4792. this.keyword,
  4793. this.queryState = PushDataStateEnum.UnDo,
  4794. int pageIndex = 0,
  4795. int pageSize = 0,
  4796. String? token,
  4797. }) : super(
  4798. pageIndex: pageIndex,
  4799. pageSize: pageSize,
  4800. token: token,
  4801. );
  4802. factory FindReportPushRecordsByPageRequest.fromJson(Map<String, dynamic> map) {
  4803. return FindReportPushRecordsByPageRequest(
  4804. keyword: map['Keyword'],
  4805. queryState: PushDataStateEnum.values.firstWhere((e) => e.index == map['QueryState']),
  4806. pageIndex: map['PageIndex'],
  4807. pageSize: map['PageSize'],
  4808. token: map['Token'],
  4809. );
  4810. }
  4811. Map<String, dynamic> toJson() {
  4812. final map = super.toJson();
  4813. if(keyword != null)
  4814. map['Keyword'] = keyword;
  4815. map['QueryState'] = queryState.index;
  4816. return map;
  4817. }
  4818. }
  4819. class FindReportShareConentRequest extends TokenRequest{
  4820. String? shortCode;
  4821. FindReportShareConentRequest({
  4822. this.shortCode,
  4823. String? token,
  4824. }) : super(
  4825. token: token,
  4826. );
  4827. factory FindReportShareConentRequest.fromJson(Map<String, dynamic> map) {
  4828. return FindReportShareConentRequest(
  4829. shortCode: map['ShortCode'],
  4830. token: map['Token'],
  4831. );
  4832. }
  4833. Map<String, dynamic> toJson() {
  4834. final map = super.toJson();
  4835. if(shortCode != null)
  4836. map['ShortCode'] = shortCode;
  4837. return map;
  4838. }
  4839. }
  4840. class FindReportTemplateUserPagesRequest extends PageRequest{
  4841. String? reportTemplateCode;
  4842. String? keyword;
  4843. FindReportTemplateUserPagesRequest({
  4844. this.reportTemplateCode,
  4845. this.keyword,
  4846. int pageIndex = 0,
  4847. int pageSize = 0,
  4848. String? token,
  4849. }) : super(
  4850. pageIndex: pageIndex,
  4851. pageSize: pageSize,
  4852. token: token,
  4853. );
  4854. factory FindReportTemplateUserPagesRequest.fromJson(Map<String, dynamic> map) {
  4855. return FindReportTemplateUserPagesRequest(
  4856. reportTemplateCode: map['ReportTemplateCode'],
  4857. keyword: map['Keyword'],
  4858. pageIndex: map['PageIndex'],
  4859. pageSize: map['PageSize'],
  4860. token: map['Token'],
  4861. );
  4862. }
  4863. Map<String, dynamic> toJson() {
  4864. final map = super.toJson();
  4865. if(reportTemplateCode != null)
  4866. map['ReportTemplateCode'] = reportTemplateCode;
  4867. if(keyword != null)
  4868. map['Keyword'] = keyword;
  4869. return map;
  4870. }
  4871. }
  4872. class FindRoleByCodeRequest extends TokenRequest{
  4873. String? roleCode;
  4874. FindRoleByCodeRequest({
  4875. this.roleCode,
  4876. String? token,
  4877. }) : super(
  4878. token: token,
  4879. );
  4880. factory FindRoleByCodeRequest.fromJson(Map<String, dynamic> map) {
  4881. return FindRoleByCodeRequest(
  4882. roleCode: map['RoleCode'],
  4883. token: map['Token'],
  4884. );
  4885. }
  4886. Map<String, dynamic> toJson() {
  4887. final map = super.toJson();
  4888. if(roleCode != null)
  4889. map['RoleCode'] = roleCode;
  4890. return map;
  4891. }
  4892. }
  4893. class FindThesaurusByCodeRequest extends TokenRequest{
  4894. String? thesaurusCode;
  4895. FindThesaurusByCodeRequest({
  4896. this.thesaurusCode,
  4897. String? token,
  4898. }) : super(
  4899. token: token,
  4900. );
  4901. factory FindThesaurusByCodeRequest.fromJson(Map<String, dynamic> map) {
  4902. return FindThesaurusByCodeRequest(
  4903. thesaurusCode: map['ThesaurusCode'],
  4904. token: map['Token'],
  4905. );
  4906. }
  4907. Map<String, dynamic> toJson() {
  4908. final map = super.toJson();
  4909. if(thesaurusCode != null)
  4910. map['ThesaurusCode'] = thesaurusCode;
  4911. return map;
  4912. }
  4913. }
  4914. class FindThesaurusPagesRequest extends PageRequest{
  4915. String? keyword;
  4916. FindThesaurusPagesRequest({
  4917. this.keyword,
  4918. int pageIndex = 0,
  4919. int pageSize = 0,
  4920. String? token,
  4921. }) : super(
  4922. pageIndex: pageIndex,
  4923. pageSize: pageSize,
  4924. token: token,
  4925. );
  4926. factory FindThesaurusPagesRequest.fromJson(Map<String, dynamic> map) {
  4927. return FindThesaurusPagesRequest(
  4928. keyword: map['Keyword'],
  4929. pageIndex: map['PageIndex'],
  4930. pageSize: map['PageSize'],
  4931. token: map['Token'],
  4932. );
  4933. }
  4934. Map<String, dynamic> toJson() {
  4935. final map = super.toJson();
  4936. if(keyword != null)
  4937. map['Keyword'] = keyword;
  4938. return map;
  4939. }
  4940. }
  4941. class FindThesaurusUserPagesRequest extends PageRequest{
  4942. String? thesaurusCode;
  4943. String? keyword;
  4944. FindThesaurusUserPagesRequest({
  4945. this.thesaurusCode,
  4946. this.keyword,
  4947. int pageIndex = 0,
  4948. int pageSize = 0,
  4949. String? token,
  4950. }) : super(
  4951. pageIndex: pageIndex,
  4952. pageSize: pageSize,
  4953. token: token,
  4954. );
  4955. factory FindThesaurusUserPagesRequest.fromJson(Map<String, dynamic> map) {
  4956. return FindThesaurusUserPagesRequest(
  4957. thesaurusCode: map['ThesaurusCode'],
  4958. keyword: map['Keyword'],
  4959. pageIndex: map['PageIndex'],
  4960. pageSize: map['PageSize'],
  4961. token: map['Token'],
  4962. );
  4963. }
  4964. Map<String, dynamic> toJson() {
  4965. final map = super.toJson();
  4966. if(thesaurusCode != null)
  4967. map['ThesaurusCode'] = thesaurusCode;
  4968. if(keyword != null)
  4969. map['Keyword'] = keyword;
  4970. return map;
  4971. }
  4972. }
  4973. class FindThirdPartyInfoByCodeRequest extends TokenRequest{
  4974. String? code;
  4975. FindThirdPartyInfoByCodeRequest({
  4976. this.code,
  4977. String? token,
  4978. }) : super(
  4979. token: token,
  4980. );
  4981. factory FindThirdPartyInfoByCodeRequest.fromJson(Map<String, dynamic> map) {
  4982. return FindThirdPartyInfoByCodeRequest(
  4983. code: map['Code'],
  4984. token: map['Token'],
  4985. );
  4986. }
  4987. Map<String, dynamic> toJson() {
  4988. final map = super.toJson();
  4989. if(code != null)
  4990. map['Code'] = code;
  4991. return map;
  4992. }
  4993. }
  4994. class FindUserByCodeRequest extends TokenRequest{
  4995. String? userCode;
  4996. FindUserByCodeRequest({
  4997. this.userCode,
  4998. String? token,
  4999. }) : super(
  5000. token: token,
  5001. );
  5002. factory FindUserByCodeRequest.fromJson(Map<String, dynamic> map) {
  5003. return FindUserByCodeRequest(
  5004. userCode: map['UserCode'],
  5005. token: map['Token'],
  5006. );
  5007. }
  5008. Map<String, dynamic> toJson() {
  5009. final map = super.toJson();
  5010. if(userCode != null)
  5011. map['UserCode'] = userCode;
  5012. return map;
  5013. }
  5014. }
  5015. class GetAdminPagesRequest extends PageRequest{
  5016. String? queryType;
  5017. String? keyWord;
  5018. String? roleCode;
  5019. bool isShowSuperRoleCode;
  5020. String? fatherCode;
  5021. GetAdminPagesRequest({
  5022. this.queryType,
  5023. this.keyWord,
  5024. this.roleCode,
  5025. this.isShowSuperRoleCode = false,
  5026. this.fatherCode,
  5027. int pageIndex = 0,
  5028. int pageSize = 0,
  5029. String? token,
  5030. }) : super(
  5031. pageIndex: pageIndex,
  5032. pageSize: pageSize,
  5033. token: token,
  5034. );
  5035. factory GetAdminPagesRequest.fromJson(Map<String, dynamic> map) {
  5036. return GetAdminPagesRequest(
  5037. queryType: map['QueryType'],
  5038. keyWord: map['KeyWord'],
  5039. roleCode: map['RoleCode'],
  5040. isShowSuperRoleCode: map['IsShowSuperRoleCode'],
  5041. fatherCode: map['FatherCode'],
  5042. pageIndex: map['PageIndex'],
  5043. pageSize: map['PageSize'],
  5044. token: map['Token'],
  5045. );
  5046. }
  5047. Map<String, dynamic> toJson() {
  5048. final map = super.toJson();
  5049. if(queryType != null)
  5050. map['QueryType'] = queryType;
  5051. if(keyWord != null)
  5052. map['KeyWord'] = keyWord;
  5053. if(roleCode != null)
  5054. map['RoleCode'] = roleCode;
  5055. map['IsShowSuperRoleCode'] = isShowSuperRoleCode;
  5056. if(fatherCode != null)
  5057. map['FatherCode'] = fatherCode;
  5058. return map;
  5059. }
  5060. }
  5061. class GetAdminRolePagesRequest extends PageRequest{
  5062. String? roleName;
  5063. GetAdminRolePagesRequest({
  5064. this.roleName,
  5065. int pageIndex = 0,
  5066. int pageSize = 0,
  5067. String? token,
  5068. }) : super(
  5069. pageIndex: pageIndex,
  5070. pageSize: pageSize,
  5071. token: token,
  5072. );
  5073. factory GetAdminRolePagesRequest.fromJson(Map<String, dynamic> map) {
  5074. return GetAdminRolePagesRequest(
  5075. roleName: map['RoleName'],
  5076. pageIndex: map['PageIndex'],
  5077. pageSize: map['PageSize'],
  5078. token: map['Token'],
  5079. );
  5080. }
  5081. Map<String, dynamic> toJson() {
  5082. final map = super.toJson();
  5083. if(roleName != null)
  5084. map['RoleName'] = roleName;
  5085. return map;
  5086. }
  5087. }
  5088. class GetDeviceModelSelectRequest extends TokenRequest{
  5089. String? parentCode;
  5090. GetDeviceModelSelectRequest({
  5091. this.parentCode,
  5092. String? token,
  5093. }) : super(
  5094. token: token,
  5095. );
  5096. factory GetDeviceModelSelectRequest.fromJson(Map<String, dynamic> map) {
  5097. return GetDeviceModelSelectRequest(
  5098. parentCode: map['ParentCode'],
  5099. token: map['Token'],
  5100. );
  5101. }
  5102. Map<String, dynamic> toJson() {
  5103. final map = super.toJson();
  5104. if(parentCode != null)
  5105. map['ParentCode'] = parentCode;
  5106. return map;
  5107. }
  5108. }
  5109. class GetDeviceOutputConfigRequest extends TokenRequest{
  5110. DeviceVideoOutputTypeEnum deviceVideoOutputType;
  5111. GetDeviceOutputConfigRequest({
  5112. this.deviceVideoOutputType = DeviceVideoOutputTypeEnum.MergedVideo,
  5113. String? token,
  5114. }) : super(
  5115. token: token,
  5116. );
  5117. factory GetDeviceOutputConfigRequest.fromJson(Map<String, dynamic> map) {
  5118. return GetDeviceOutputConfigRequest(
  5119. deviceVideoOutputType: DeviceVideoOutputTypeEnum.values.firstWhere((e) => e.index == map['DeviceVideoOutputType']),
  5120. token: map['Token'],
  5121. );
  5122. }
  5123. Map<String, dynamic> toJson() {
  5124. final map = super.toJson();
  5125. map['DeviceVideoOutputType'] = deviceVideoOutputType.index;
  5126. return map;
  5127. }
  5128. }
  5129. class GetDeviceBrandModelPageRequest extends PageRequest{
  5130. String? keyword;
  5131. GetDeviceBrandModelPageRequest({
  5132. this.keyword,
  5133. int pageIndex = 0,
  5134. int pageSize = 0,
  5135. String? token,
  5136. }) : super(
  5137. pageIndex: pageIndex,
  5138. pageSize: pageSize,
  5139. token: token,
  5140. );
  5141. factory GetDeviceBrandModelPageRequest.fromJson(Map<String, dynamic> map) {
  5142. return GetDeviceBrandModelPageRequest(
  5143. keyword: map['Keyword'],
  5144. pageIndex: map['PageIndex'],
  5145. pageSize: map['PageSize'],
  5146. token: map['Token'],
  5147. );
  5148. }
  5149. Map<String, dynamic> toJson() {
  5150. final map = super.toJson();
  5151. if(keyword != null)
  5152. map['Keyword'] = keyword;
  5153. return map;
  5154. }
  5155. }
  5156. class DeleteBrandModelOutputConfigRequest {
  5157. List<String >? brandModelCodes;
  5158. DeleteBrandModelOutputConfigRequest({
  5159. this.brandModelCodes,
  5160. });
  5161. factory DeleteBrandModelOutputConfigRequest.fromJson(Map<String, dynamic> map) {
  5162. return DeleteBrandModelOutputConfigRequest(
  5163. brandModelCodes: map['BrandModelCodes'] != null ? map['BrandModelCodes'].cast<String>().toList() : null,
  5164. );
  5165. }
  5166. Map<String, dynamic> toJson() {
  5167. final map = Map<String, dynamic>();
  5168. if(brandModelCodes != null)
  5169. map['BrandModelCodes'] = brandModelCodes;
  5170. return map;
  5171. }
  5172. }
  5173. class GetDevicePagesRequest extends PageRequest{
  5174. String? queryType;
  5175. String? keyword;
  5176. List<String >? hospitals;
  5177. String? adminName;
  5178. String? userName;
  5179. GetDevicePagesRequest({
  5180. this.queryType,
  5181. this.keyword,
  5182. this.hospitals,
  5183. this.adminName,
  5184. this.userName,
  5185. int pageIndex = 0,
  5186. int pageSize = 0,
  5187. String? token,
  5188. }) : super(
  5189. pageIndex: pageIndex,
  5190. pageSize: pageSize,
  5191. token: token,
  5192. );
  5193. factory GetDevicePagesRequest.fromJson(Map<String, dynamic> map) {
  5194. return GetDevicePagesRequest(
  5195. queryType: map['QueryType'],
  5196. keyword: map['Keyword'],
  5197. hospitals: map['Hospitals'] != null ? map['Hospitals'].cast<String>().toList() : null,
  5198. adminName: map['AdminName'],
  5199. userName: map['UserName'],
  5200. pageIndex: map['PageIndex'],
  5201. pageSize: map['PageSize'],
  5202. token: map['Token'],
  5203. );
  5204. }
  5205. Map<String, dynamic> toJson() {
  5206. final map = super.toJson();
  5207. if(queryType != null)
  5208. map['QueryType'] = queryType;
  5209. if(keyword != null)
  5210. map['Keyword'] = keyword;
  5211. if(hospitals != null)
  5212. map['Hospitals'] = hospitals;
  5213. if(adminName != null)
  5214. map['AdminName'] = adminName;
  5215. if(userName != null)
  5216. map['UserName'] = userName;
  5217. return map;
  5218. }
  5219. }
  5220. class FindDeviceInfoByDeviceTypeRequest {
  5221. String? deviceTypeCode;
  5222. FindDeviceInfoByDeviceTypeRequest({
  5223. this.deviceTypeCode,
  5224. });
  5225. factory FindDeviceInfoByDeviceTypeRequest.fromJson(Map<String, dynamic> map) {
  5226. return FindDeviceInfoByDeviceTypeRequest(
  5227. deviceTypeCode: map['DeviceTypeCode'],
  5228. );
  5229. }
  5230. Map<String, dynamic> toJson() {
  5231. final map = Map<String, dynamic>();
  5232. if(deviceTypeCode != null)
  5233. map['DeviceTypeCode'] = deviceTypeCode;
  5234. return map;
  5235. }
  5236. }
  5237. class GetDeviceTypePagesRequest extends PageRequest{
  5238. String? deviceType;
  5239. String? deviceModel;
  5240. GetDeviceTypePagesRequest({
  5241. this.deviceType,
  5242. this.deviceModel,
  5243. int pageIndex = 0,
  5244. int pageSize = 0,
  5245. String? token,
  5246. }) : super(
  5247. pageIndex: pageIndex,
  5248. pageSize: pageSize,
  5249. token: token,
  5250. );
  5251. factory GetDeviceTypePagesRequest.fromJson(Map<String, dynamic> map) {
  5252. return GetDeviceTypePagesRequest(
  5253. deviceType: map['DeviceType'],
  5254. deviceModel: map['DeviceModel'],
  5255. pageIndex: map['PageIndex'],
  5256. pageSize: map['PageSize'],
  5257. token: map['Token'],
  5258. );
  5259. }
  5260. Map<String, dynamic> toJson() {
  5261. final map = super.toJson();
  5262. if(deviceType != null)
  5263. map['DeviceType'] = deviceType;
  5264. if(deviceModel != null)
  5265. map['DeviceModel'] = deviceModel;
  5266. return map;
  5267. }
  5268. }
  5269. class GetDeviceUserPagesRequest extends PageRequest{
  5270. List<String >? deviceCodes;
  5271. String? queryType;
  5272. String? keyword;
  5273. int type;
  5274. GetDeviceUserPagesRequest({
  5275. this.deviceCodes,
  5276. this.queryType,
  5277. this.keyword,
  5278. this.type = 0,
  5279. int pageIndex = 0,
  5280. int pageSize = 0,
  5281. String? token,
  5282. }) : super(
  5283. pageIndex: pageIndex,
  5284. pageSize: pageSize,
  5285. token: token,
  5286. );
  5287. factory GetDeviceUserPagesRequest.fromJson(Map<String, dynamic> map) {
  5288. return GetDeviceUserPagesRequest(
  5289. deviceCodes: map['DeviceCodes'] != null ? map['DeviceCodes'].cast<String>().toList() : null,
  5290. queryType: map['QueryType'],
  5291. keyword: map['Keyword'],
  5292. type: map['Type'],
  5293. pageIndex: map['PageIndex'],
  5294. pageSize: map['PageSize'],
  5295. token: map['Token'],
  5296. );
  5297. }
  5298. Map<String, dynamic> toJson() {
  5299. final map = super.toJson();
  5300. if(deviceCodes != null)
  5301. map['DeviceCodes'] = deviceCodes;
  5302. if(queryType != null)
  5303. map['QueryType'] = queryType;
  5304. if(keyword != null)
  5305. map['Keyword'] = keyword;
  5306. map['Type'] = type;
  5307. return map;
  5308. }
  5309. }
  5310. class GetDistributedServerRequest extends PageRequest{
  5311. String? keyword;
  5312. GetDistributedServerRequest({
  5313. this.keyword,
  5314. int pageIndex = 0,
  5315. int pageSize = 0,
  5316. String? token,
  5317. }) : super(
  5318. pageIndex: pageIndex,
  5319. pageSize: pageSize,
  5320. token: token,
  5321. );
  5322. factory GetDistributedServerRequest.fromJson(Map<String, dynamic> map) {
  5323. return GetDistributedServerRequest(
  5324. keyword: map['Keyword'],
  5325. pageIndex: map['PageIndex'],
  5326. pageSize: map['PageSize'],
  5327. token: map['Token'],
  5328. );
  5329. }
  5330. Map<String, dynamic> toJson() {
  5331. final map = super.toJson();
  5332. if(keyword != null)
  5333. map['Keyword'] = keyword;
  5334. return map;
  5335. }
  5336. }
  5337. class GetLogPagesRequest extends PageRequest{
  5338. String? level;
  5339. String? keyWord;
  5340. String? exclude;
  5341. DateTime? startTime;
  5342. DateTime? endTime;
  5343. String? requestServerHost;
  5344. GetLogPagesRequest({
  5345. this.level,
  5346. this.keyWord,
  5347. this.exclude,
  5348. this.startTime,
  5349. this.endTime,
  5350. this.requestServerHost,
  5351. int pageIndex = 0,
  5352. int pageSize = 0,
  5353. String? token,
  5354. }) : super(
  5355. pageIndex: pageIndex,
  5356. pageSize: pageSize,
  5357. token: token,
  5358. );
  5359. factory GetLogPagesRequest.fromJson(Map<String, dynamic> map) {
  5360. return GetLogPagesRequest(
  5361. level: map['Level'],
  5362. keyWord: map['KeyWord'],
  5363. exclude: map['Exclude'],
  5364. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  5365. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  5366. requestServerHost: map['RequestServerHost'],
  5367. pageIndex: map['PageIndex'],
  5368. pageSize: map['PageSize'],
  5369. token: map['Token'],
  5370. );
  5371. }
  5372. Map<String, dynamic> toJson() {
  5373. final map = super.toJson();
  5374. if(level != null)
  5375. map['Level'] = level;
  5376. if(keyWord != null)
  5377. map['KeyWord'] = keyWord;
  5378. if(exclude != null)
  5379. map['Exclude'] = exclude;
  5380. if(startTime != null)
  5381. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  5382. if(endTime != null)
  5383. map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
  5384. if(requestServerHost != null)
  5385. map['RequestServerHost'] = requestServerHost;
  5386. return map;
  5387. }
  5388. }
  5389. class GetOrganizationCustomSettingRequest extends TokenRequest{
  5390. String? langugeKey;
  5391. String? settingModule;
  5392. String? organizationCode;
  5393. GetOrganizationCustomSettingRequest({
  5394. this.langugeKey,
  5395. this.settingModule,
  5396. this.organizationCode,
  5397. String? token,
  5398. }) : super(
  5399. token: token,
  5400. );
  5401. factory GetOrganizationCustomSettingRequest.fromJson(Map<String, dynamic> map) {
  5402. return GetOrganizationCustomSettingRequest(
  5403. langugeKey: map['LangugeKey'],
  5404. settingModule: map['SettingModule'],
  5405. organizationCode: map['OrganizationCode'],
  5406. token: map['Token'],
  5407. );
  5408. }
  5409. Map<String, dynamic> toJson() {
  5410. final map = super.toJson();
  5411. if(langugeKey != null)
  5412. map['LangugeKey'] = langugeKey;
  5413. if(settingModule != null)
  5414. map['SettingModule'] = settingModule;
  5415. if(organizationCode != null)
  5416. map['OrganizationCode'] = organizationCode;
  5417. return map;
  5418. }
  5419. }
  5420. class GetOrganizationPagesRequest extends PageRequest{
  5421. String? queryType;
  5422. String? keyword;
  5423. String? state;
  5424. String? isinvented;
  5425. GetOrganizationPagesRequest({
  5426. this.queryType,
  5427. this.keyword,
  5428. this.state,
  5429. this.isinvented,
  5430. int pageIndex = 0,
  5431. int pageSize = 0,
  5432. String? token,
  5433. }) : super(
  5434. pageIndex: pageIndex,
  5435. pageSize: pageSize,
  5436. token: token,
  5437. );
  5438. factory GetOrganizationPagesRequest.fromJson(Map<String, dynamic> map) {
  5439. return GetOrganizationPagesRequest(
  5440. queryType: map['QueryType'],
  5441. keyword: map['Keyword'],
  5442. state: map['State'],
  5443. isinvented: map['Isinvented'],
  5444. pageIndex: map['PageIndex'],
  5445. pageSize: map['PageSize'],
  5446. token: map['Token'],
  5447. );
  5448. }
  5449. Map<String, dynamic> toJson() {
  5450. final map = super.toJson();
  5451. if(queryType != null)
  5452. map['QueryType'] = queryType;
  5453. if(keyword != null)
  5454. map['Keyword'] = keyword;
  5455. if(state != null)
  5456. map['State'] = state;
  5457. if(isinvented != null)
  5458. map['Isinvented'] = isinvented;
  5459. return map;
  5460. }
  5461. }
  5462. class GetOrganizationRequest extends TokenRequest{
  5463. String? organizationCode;
  5464. GetOrganizationRequest({
  5465. this.organizationCode,
  5466. String? token,
  5467. }) : super(
  5468. token: token,
  5469. );
  5470. factory GetOrganizationRequest.fromJson(Map<String, dynamic> map) {
  5471. return GetOrganizationRequest(
  5472. organizationCode: map['OrganizationCode'],
  5473. token: map['Token'],
  5474. );
  5475. }
  5476. Map<String, dynamic> toJson() {
  5477. final map = super.toJson();
  5478. if(organizationCode != null)
  5479. map['OrganizationCode'] = organizationCode;
  5480. return map;
  5481. }
  5482. }
  5483. class GetOrganizationSettingRequest extends TokenRequest{
  5484. OrganizationSettingTypeEnum settingType;
  5485. String? organizationCode;
  5486. GetOrganizationSettingRequest({
  5487. this.settingType = OrganizationSettingTypeEnum.Patient,
  5488. this.organizationCode,
  5489. String? token,
  5490. }) : super(
  5491. token: token,
  5492. );
  5493. factory GetOrganizationSettingRequest.fromJson(Map<String, dynamic> map) {
  5494. return GetOrganizationSettingRequest(
  5495. settingType: OrganizationSettingTypeEnum.values.firstWhere((e) => e.index == map['SettingType']),
  5496. organizationCode: map['OrganizationCode'],
  5497. token: map['Token'],
  5498. );
  5499. }
  5500. Map<String, dynamic> toJson() {
  5501. final map = super.toJson();
  5502. map['SettingType'] = settingType.index;
  5503. if(organizationCode != null)
  5504. map['OrganizationCode'] = organizationCode;
  5505. return map;
  5506. }
  5507. }
  5508. class GetOrganizationUserPagesRequest extends PageRequest{
  5509. String? organizationCode;
  5510. String? queryType;
  5511. String? keyword;
  5512. GetOrganizationUserPagesRequest({
  5513. this.organizationCode,
  5514. this.queryType,
  5515. this.keyword,
  5516. int pageIndex = 0,
  5517. int pageSize = 0,
  5518. String? token,
  5519. }) : super(
  5520. pageIndex: pageIndex,
  5521. pageSize: pageSize,
  5522. token: token,
  5523. );
  5524. factory GetOrganizationUserPagesRequest.fromJson(Map<String, dynamic> map) {
  5525. return GetOrganizationUserPagesRequest(
  5526. organizationCode: map['OrganizationCode'],
  5527. queryType: map['QueryType'],
  5528. keyword: map['Keyword'],
  5529. pageIndex: map['PageIndex'],
  5530. pageSize: map['PageSize'],
  5531. token: map['Token'],
  5532. );
  5533. }
  5534. Map<String, dynamic> toJson() {
  5535. final map = super.toJson();
  5536. if(organizationCode != null)
  5537. map['OrganizationCode'] = organizationCode;
  5538. if(queryType != null)
  5539. map['QueryType'] = queryType;
  5540. if(keyword != null)
  5541. map['Keyword'] = keyword;
  5542. return map;
  5543. }
  5544. }
  5545. class GetPayUrlRequest extends PageRequest{
  5546. String? shortCode;
  5547. GetPayUrlRequest({
  5548. this.shortCode,
  5549. int pageIndex = 0,
  5550. int pageSize = 0,
  5551. String? token,
  5552. }) : super(
  5553. pageIndex: pageIndex,
  5554. pageSize: pageSize,
  5555. token: token,
  5556. );
  5557. factory GetPayUrlRequest.fromJson(Map<String, dynamic> map) {
  5558. return GetPayUrlRequest(
  5559. shortCode: map['ShortCode'],
  5560. pageIndex: map['PageIndex'],
  5561. pageSize: map['PageSize'],
  5562. token: map['Token'],
  5563. );
  5564. }
  5565. Map<String, dynamic> toJson() {
  5566. final map = super.toJson();
  5567. if(shortCode != null)
  5568. map['ShortCode'] = shortCode;
  5569. return map;
  5570. }
  5571. }
  5572. class GetPayUrlResult {
  5573. String? payUrl;
  5574. GetPayUrlResult({
  5575. this.payUrl,
  5576. });
  5577. factory GetPayUrlResult.fromJson(Map<String, dynamic> map) {
  5578. return GetPayUrlResult(
  5579. payUrl: map['PayUrl'],
  5580. );
  5581. }
  5582. Map<String, dynamic> toJson() {
  5583. final map = Map<String, dynamic>();
  5584. if(payUrl != null)
  5585. map['PayUrl'] = payUrl;
  5586. return map;
  5587. }
  5588. }
  5589. class GetRolePagesRequest extends PageRequest{
  5590. String? roleName;
  5591. GetRolePagesRequest({
  5592. this.roleName,
  5593. int pageIndex = 0,
  5594. int pageSize = 0,
  5595. String? token,
  5596. }) : super(
  5597. pageIndex: pageIndex,
  5598. pageSize: pageSize,
  5599. token: token,
  5600. );
  5601. factory GetRolePagesRequest.fromJson(Map<String, dynamic> map) {
  5602. return GetRolePagesRequest(
  5603. roleName: map['RoleName'],
  5604. pageIndex: map['PageIndex'],
  5605. pageSize: map['PageSize'],
  5606. token: map['Token'],
  5607. );
  5608. }
  5609. Map<String, dynamic> toJson() {
  5610. final map = super.toJson();
  5611. if(roleName != null)
  5612. map['RoleName'] = roleName;
  5613. return map;
  5614. }
  5615. }
  5616. class GetRoleSelectListRequest extends TokenRequest{
  5617. String? languageCode;
  5618. GetRoleSelectListRequest({
  5619. this.languageCode,
  5620. String? token,
  5621. }) : super(
  5622. token: token,
  5623. );
  5624. factory GetRoleSelectListRequest.fromJson(Map<String, dynamic> map) {
  5625. return GetRoleSelectListRequest(
  5626. languageCode: map['LanguageCode'],
  5627. token: map['Token'],
  5628. );
  5629. }
  5630. Map<String, dynamic> toJson() {
  5631. final map = super.toJson();
  5632. if(languageCode != null)
  5633. map['LanguageCode'] = languageCode;
  5634. return map;
  5635. }
  5636. }
  5637. class GetSelectOrganizationPageRequest extends PageRequest{
  5638. String? keyword;
  5639. GetSelectOrganizationPageRequest({
  5640. this.keyword,
  5641. int pageIndex = 0,
  5642. int pageSize = 0,
  5643. String? token,
  5644. }) : super(
  5645. pageIndex: pageIndex,
  5646. pageSize: pageSize,
  5647. token: token,
  5648. );
  5649. factory GetSelectOrganizationPageRequest.fromJson(Map<String, dynamic> map) {
  5650. return GetSelectOrganizationPageRequest(
  5651. keyword: map['Keyword'],
  5652. pageIndex: map['PageIndex'],
  5653. pageSize: map['PageSize'],
  5654. token: map['Token'],
  5655. );
  5656. }
  5657. Map<String, dynamic> toJson() {
  5658. final map = super.toJson();
  5659. if(keyword != null)
  5660. map['Keyword'] = keyword;
  5661. return map;
  5662. }
  5663. }
  5664. class GetShareExamUrlRequest {
  5665. String? requestUrl;
  5666. String? languageCode;
  5667. GetShareExamUrlRequest({
  5668. this.requestUrl,
  5669. this.languageCode,
  5670. });
  5671. factory GetShareExamUrlRequest.fromJson(Map<String, dynamic> map) {
  5672. return GetShareExamUrlRequest(
  5673. requestUrl: map['RequestUrl'],
  5674. languageCode: map['LanguageCode'],
  5675. );
  5676. }
  5677. Map<String, dynamic> toJson() {
  5678. final map = Map<String, dynamic>();
  5679. if(requestUrl != null)
  5680. map['RequestUrl'] = requestUrl;
  5681. if(languageCode != null)
  5682. map['LanguageCode'] = languageCode;
  5683. return map;
  5684. }
  5685. }
  5686. class GetThesaurusItemRequest extends TokenRequest{
  5687. String? thesaurusCode;
  5688. String? thesaurusItemCode;
  5689. GetThesaurusItemRequest({
  5690. this.thesaurusCode,
  5691. this.thesaurusItemCode,
  5692. String? token,
  5693. }) : super(
  5694. token: token,
  5695. );
  5696. factory GetThesaurusItemRequest.fromJson(Map<String, dynamic> map) {
  5697. return GetThesaurusItemRequest(
  5698. thesaurusCode: map['ThesaurusCode'],
  5699. thesaurusItemCode: map['ThesaurusItemCode'],
  5700. token: map['Token'],
  5701. );
  5702. }
  5703. Map<String, dynamic> toJson() {
  5704. final map = super.toJson();
  5705. if(thesaurusCode != null)
  5706. map['ThesaurusCode'] = thesaurusCode;
  5707. if(thesaurusItemCode != null)
  5708. map['ThesaurusItemCode'] = thesaurusItemCode;
  5709. return map;
  5710. }
  5711. }
  5712. class GetThirdPartyInfoPagesRequest extends PageRequest{
  5713. String? name;
  5714. String? isValid;
  5715. GetThirdPartyInfoPagesRequest({
  5716. this.name,
  5717. this.isValid,
  5718. int pageIndex = 0,
  5719. int pageSize = 0,
  5720. String? token,
  5721. }) : super(
  5722. pageIndex: pageIndex,
  5723. pageSize: pageSize,
  5724. token: token,
  5725. );
  5726. factory GetThirdPartyInfoPagesRequest.fromJson(Map<String, dynamic> map) {
  5727. return GetThirdPartyInfoPagesRequest(
  5728. name: map['Name'],
  5729. isValid: map['IsValid'],
  5730. pageIndex: map['PageIndex'],
  5731. pageSize: map['PageSize'],
  5732. token: map['Token'],
  5733. );
  5734. }
  5735. Map<String, dynamic> toJson() {
  5736. final map = super.toJson();
  5737. if(name != null)
  5738. map['Name'] = name;
  5739. if(isValid != null)
  5740. map['IsValid'] = isValid;
  5741. return map;
  5742. }
  5743. }
  5744. class ImitateLoginRequest {
  5745. String? account;
  5746. String? password;
  5747. AccountType accountType;
  5748. ImitateLoginRequest({
  5749. this.account,
  5750. this.password,
  5751. this.accountType = AccountType.Admin,
  5752. });
  5753. factory ImitateLoginRequest.fromJson(Map<String, dynamic> map) {
  5754. return ImitateLoginRequest(
  5755. account: map['Account'],
  5756. password: map['Password'],
  5757. accountType: AccountType.values.firstWhere((e) => e.index == map['AccountType']),
  5758. );
  5759. }
  5760. Map<String, dynamic> toJson() {
  5761. final map = Map<String, dynamic>();
  5762. if(account != null)
  5763. map['Account'] = account;
  5764. if(password != null)
  5765. map['Password'] = password;
  5766. map['AccountType'] = accountType.index;
  5767. return map;
  5768. }
  5769. }
  5770. class ImitateLoginResult {
  5771. String? clientId;
  5772. ImitateLoginResult({
  5773. this.clientId,
  5774. });
  5775. factory ImitateLoginResult.fromJson(Map<String, dynamic> map) {
  5776. return ImitateLoginResult(
  5777. clientId: map['ClientId'],
  5778. );
  5779. }
  5780. Map<String, dynamic> toJson() {
  5781. final map = Map<String, dynamic>();
  5782. if(clientId != null)
  5783. map['ClientId'] = clientId;
  5784. return map;
  5785. }
  5786. }
  5787. class ImportThesaurusRequest {
  5788. String? thesaurusName;
  5789. String? json;
  5790. ThesaurusUsageTypeEnum thesaurusUsageType;
  5791. ImportThesaurusRequest({
  5792. this.thesaurusName,
  5793. this.json,
  5794. this.thesaurusUsageType = ThesaurusUsageTypeEnum.People,
  5795. });
  5796. factory ImportThesaurusRequest.fromJson(Map<String, dynamic> map) {
  5797. return ImportThesaurusRequest(
  5798. thesaurusName: map['ThesaurusName'],
  5799. json: map['Json'],
  5800. thesaurusUsageType: ThesaurusUsageTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusUsageType']),
  5801. );
  5802. }
  5803. Map<String, dynamic> toJson() {
  5804. final map = Map<String, dynamic>();
  5805. if(thesaurusName != null)
  5806. map['ThesaurusName'] = thesaurusName;
  5807. if(json != null)
  5808. map['Json'] = json;
  5809. map['ThesaurusUsageType'] = thesaurusUsageType.index;
  5810. return map;
  5811. }
  5812. }
  5813. class LoginRequest {
  5814. String? adminName;
  5815. String? password;
  5816. LoginRequest({
  5817. this.adminName,
  5818. this.password,
  5819. });
  5820. factory LoginRequest.fromJson(Map<String, dynamic> map) {
  5821. return LoginRequest(
  5822. adminName: map['AdminName'],
  5823. password: map['Password'],
  5824. );
  5825. }
  5826. Map<String, dynamic> toJson() {
  5827. final map = Map<String, dynamic>();
  5828. if(adminName != null)
  5829. map['AdminName'] = adminName;
  5830. if(password != null)
  5831. map['Password'] = password;
  5832. return map;
  5833. }
  5834. }
  5835. enum ProductStatusEnum {
  5836. SoldOut,
  5837. Putaway,
  5838. }
  5839. enum ProductTypeEnum {
  5840. Course,
  5841. Other,
  5842. }
  5843. class ManageCreateProductRequest extends TokenRequest{
  5844. String? name;
  5845. String? headImage;
  5846. double price;
  5847. ProductStatusEnum status;
  5848. ProductTypeEnum productType;
  5849. String? belongerCode;
  5850. String? relationInfo;
  5851. ManageCreateProductRequest({
  5852. this.name,
  5853. this.headImage,
  5854. this.price = 0,
  5855. this.status = ProductStatusEnum.SoldOut,
  5856. this.productType = ProductTypeEnum.Course,
  5857. this.belongerCode,
  5858. this.relationInfo,
  5859. String? token,
  5860. }) : super(
  5861. token: token,
  5862. );
  5863. factory ManageCreateProductRequest.fromJson(Map<String, dynamic> map) {
  5864. return ManageCreateProductRequest(
  5865. name: map['Name'],
  5866. headImage: map['HeadImage'],
  5867. price: double.parse(map['Price'].toString()),
  5868. status: ProductStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  5869. productType: ProductTypeEnum.values.firstWhere((e) => e.index == map['ProductType']),
  5870. belongerCode: map['BelongerCode'],
  5871. relationInfo: map['RelationInfo'],
  5872. token: map['Token'],
  5873. );
  5874. }
  5875. Map<String, dynamic> toJson() {
  5876. final map = super.toJson();
  5877. if(name != null)
  5878. map['Name'] = name;
  5879. if(headImage != null)
  5880. map['HeadImage'] = headImage;
  5881. map['Price'] = price;
  5882. map['Status'] = status.index;
  5883. map['ProductType'] = productType.index;
  5884. if(belongerCode != null)
  5885. map['BelongerCode'] = belongerCode;
  5886. if(relationInfo != null)
  5887. map['RelationInfo'] = relationInfo;
  5888. return map;
  5889. }
  5890. }
  5891. class ManageGetOrderDetailRequest extends TokenRequest{
  5892. String? orderCode;
  5893. ManageGetOrderDetailRequest({
  5894. this.orderCode,
  5895. String? token,
  5896. }) : super(
  5897. token: token,
  5898. );
  5899. factory ManageGetOrderDetailRequest.fromJson(Map<String, dynamic> map) {
  5900. return ManageGetOrderDetailRequest(
  5901. orderCode: map['OrderCode'],
  5902. token: map['Token'],
  5903. );
  5904. }
  5905. Map<String, dynamic> toJson() {
  5906. final map = super.toJson();
  5907. if(orderCode != null)
  5908. map['OrderCode'] = orderCode;
  5909. return map;
  5910. }
  5911. }
  5912. class ManageGetOrderPagesRequest extends PageRequest{
  5913. String? keyWord;
  5914. ManageGetOrderPagesRequest({
  5915. this.keyWord,
  5916. int pageIndex = 0,
  5917. int pageSize = 0,
  5918. String? token,
  5919. }) : super(
  5920. pageIndex: pageIndex,
  5921. pageSize: pageSize,
  5922. token: token,
  5923. );
  5924. factory ManageGetOrderPagesRequest.fromJson(Map<String, dynamic> map) {
  5925. return ManageGetOrderPagesRequest(
  5926. keyWord: map['KeyWord'],
  5927. pageIndex: map['PageIndex'],
  5928. pageSize: map['PageSize'],
  5929. token: map['Token'],
  5930. );
  5931. }
  5932. Map<String, dynamic> toJson() {
  5933. final map = super.toJson();
  5934. if(keyWord != null)
  5935. map['KeyWord'] = keyWord;
  5936. return map;
  5937. }
  5938. }
  5939. class ManageGetPaymentRecordsRequest extends PageRequest{
  5940. String? keyword;
  5941. ManageGetPaymentRecordsRequest({
  5942. this.keyword,
  5943. int pageIndex = 0,
  5944. int pageSize = 0,
  5945. String? token,
  5946. }) : super(
  5947. pageIndex: pageIndex,
  5948. pageSize: pageSize,
  5949. token: token,
  5950. );
  5951. factory ManageGetPaymentRecordsRequest.fromJson(Map<String, dynamic> map) {
  5952. return ManageGetPaymentRecordsRequest(
  5953. keyword: map['Keyword'],
  5954. pageIndex: map['PageIndex'],
  5955. pageSize: map['PageSize'],
  5956. token: map['Token'],
  5957. );
  5958. }
  5959. Map<String, dynamic> toJson() {
  5960. final map = super.toJson();
  5961. if(keyword != null)
  5962. map['Keyword'] = keyword;
  5963. return map;
  5964. }
  5965. }
  5966. class ManageUpdateProductRequest extends TokenRequest{
  5967. String? code;
  5968. String? name;
  5969. String? headImage;
  5970. double price;
  5971. ProductStatusEnum status;
  5972. ProductTypeEnum productType;
  5973. String? belongerCode;
  5974. String? relationInfo;
  5975. ManageUpdateProductRequest({
  5976. this.code,
  5977. this.name,
  5978. this.headImage,
  5979. this.price = 0,
  5980. this.status = ProductStatusEnum.SoldOut,
  5981. this.productType = ProductTypeEnum.Course,
  5982. this.belongerCode,
  5983. this.relationInfo,
  5984. String? token,
  5985. }) : super(
  5986. token: token,
  5987. );
  5988. factory ManageUpdateProductRequest.fromJson(Map<String, dynamic> map) {
  5989. return ManageUpdateProductRequest(
  5990. code: map['Code'],
  5991. name: map['Name'],
  5992. headImage: map['HeadImage'],
  5993. price: double.parse(map['Price'].toString()),
  5994. status: ProductStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  5995. productType: ProductTypeEnum.values.firstWhere((e) => e.index == map['ProductType']),
  5996. belongerCode: map['BelongerCode'],
  5997. relationInfo: map['RelationInfo'],
  5998. token: map['Token'],
  5999. );
  6000. }
  6001. Map<String, dynamic> toJson() {
  6002. final map = super.toJson();
  6003. if(code != null)
  6004. map['Code'] = code;
  6005. if(name != null)
  6006. map['Name'] = name;
  6007. if(headImage != null)
  6008. map['HeadImage'] = headImage;
  6009. map['Price'] = price;
  6010. map['Status'] = status.index;
  6011. map['ProductType'] = productType.index;
  6012. if(belongerCode != null)
  6013. map['BelongerCode'] = belongerCode;
  6014. if(relationInfo != null)
  6015. map['RelationInfo'] = relationInfo;
  6016. return map;
  6017. }
  6018. }
  6019. class BaseFeatureInfoDTO extends BaseDTO{
  6020. String? featureCode;
  6021. String? featureName;
  6022. String? fatherCode;
  6023. String? uniqueCode;
  6024. BaseFeatureInfoDTO({
  6025. this.featureCode,
  6026. this.featureName,
  6027. this.fatherCode,
  6028. this.uniqueCode,
  6029. DateTime? createTime,
  6030. DateTime? updateTime,
  6031. }) : super(
  6032. createTime: createTime,
  6033. updateTime: updateTime,
  6034. );
  6035. factory BaseFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  6036. return BaseFeatureInfoDTO(
  6037. featureCode: map['FeatureCode'],
  6038. featureName: map['FeatureName'],
  6039. fatherCode: map['FatherCode'],
  6040. uniqueCode: map['UniqueCode'],
  6041. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6042. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  6043. );
  6044. }
  6045. Map<String, dynamic> toJson() {
  6046. final map = super.toJson();
  6047. if(featureCode != null)
  6048. map['FeatureCode'] = featureCode;
  6049. if(featureName != null)
  6050. map['FeatureName'] = featureName;
  6051. if(fatherCode != null)
  6052. map['FatherCode'] = fatherCode;
  6053. if(uniqueCode != null)
  6054. map['UniqueCode'] = uniqueCode;
  6055. return map;
  6056. }
  6057. }
  6058. class AdminFeatureInfoDTO extends BaseFeatureInfoDTO{
  6059. AdminFeatureInfoDTO({
  6060. String? featureCode,
  6061. String? featureName,
  6062. String? fatherCode,
  6063. String? uniqueCode,
  6064. DateTime? createTime,
  6065. DateTime? updateTime,
  6066. }) : super(
  6067. featureCode: featureCode,
  6068. featureName: featureName,
  6069. fatherCode: fatherCode,
  6070. uniqueCode: uniqueCode,
  6071. createTime: createTime,
  6072. updateTime: updateTime,
  6073. );
  6074. factory AdminFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  6075. return AdminFeatureInfoDTO(
  6076. featureCode: map['FeatureCode'],
  6077. featureName: map['FeatureName'],
  6078. fatherCode: map['FatherCode'],
  6079. uniqueCode: map['UniqueCode'],
  6080. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6081. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  6082. );
  6083. }
  6084. Map<String, dynamic> toJson() {
  6085. final map = super.toJson();
  6086. return map;
  6087. }
  6088. }
  6089. class ModifyAdminFeatureRequest extends AdminFeatureInfoDTO{
  6090. String? token;
  6091. ModifyAdminFeatureRequest({
  6092. this.token,
  6093. String? featureCode,
  6094. String? featureName,
  6095. String? fatherCode,
  6096. String? uniqueCode,
  6097. DateTime? createTime,
  6098. DateTime? updateTime,
  6099. }) : super(
  6100. featureCode: featureCode,
  6101. featureName: featureName,
  6102. fatherCode: fatherCode,
  6103. uniqueCode: uniqueCode,
  6104. createTime: createTime,
  6105. updateTime: updateTime,
  6106. );
  6107. factory ModifyAdminFeatureRequest.fromJson(Map<String, dynamic> map) {
  6108. return ModifyAdminFeatureRequest(
  6109. token: map['Token'],
  6110. featureCode: map['FeatureCode'],
  6111. featureName: map['FeatureName'],
  6112. fatherCode: map['FatherCode'],
  6113. uniqueCode: map['UniqueCode'],
  6114. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6115. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  6116. );
  6117. }
  6118. Map<String, dynamic> toJson() {
  6119. final map = super.toJson();
  6120. if(token != null)
  6121. map['Token'] = token;
  6122. return map;
  6123. }
  6124. }
  6125. class ModifyAdminPasswordRequest extends TokenRequest{
  6126. String? adminCode;
  6127. String? oldPassword;
  6128. String? newPassword;
  6129. ModifyAdminPasswordRequest({
  6130. this.adminCode,
  6131. this.oldPassword,
  6132. this.newPassword,
  6133. String? token,
  6134. }) : super(
  6135. token: token,
  6136. );
  6137. factory ModifyAdminPasswordRequest.fromJson(Map<String, dynamic> map) {
  6138. return ModifyAdminPasswordRequest(
  6139. adminCode: map['AdminCode'],
  6140. oldPassword: map['OldPassword'],
  6141. newPassword: map['NewPassword'],
  6142. token: map['Token'],
  6143. );
  6144. }
  6145. Map<String, dynamic> toJson() {
  6146. final map = super.toJson();
  6147. if(adminCode != null)
  6148. map['AdminCode'] = adminCode;
  6149. if(oldPassword != null)
  6150. map['OldPassword'] = oldPassword;
  6151. if(newPassword != null)
  6152. map['NewPassword'] = newPassword;
  6153. return map;
  6154. }
  6155. }
  6156. class ModifyAdminRequest extends AdminInfoDTO{
  6157. String? token;
  6158. ModifyAdminRequest({
  6159. this.token,
  6160. String? adminCode,
  6161. String? fatherCode,
  6162. String? adminName,
  6163. String? fullName,
  6164. String? secretPassword,
  6165. String? headImageToken,
  6166. String? licenseKey,
  6167. String? lastIP,
  6168. String? phone,
  6169. String? email,
  6170. List<String >? roleCodes,
  6171. LoginLockInfoDTO? loginLockInfo,
  6172. DateTime? passwordUpdateTime,
  6173. List<String >? passwordRecords,
  6174. List<ClearLogOperateDTO >? clearLogOperateList,
  6175. DateTime? createTime,
  6176. DateTime? updateTime,
  6177. }) : super(
  6178. adminCode: adminCode,
  6179. fatherCode: fatherCode,
  6180. adminName: adminName,
  6181. fullName: fullName,
  6182. secretPassword: secretPassword,
  6183. headImageToken: headImageToken,
  6184. licenseKey: licenseKey,
  6185. lastIP: lastIP,
  6186. phone: phone,
  6187. email: email,
  6188. roleCodes: roleCodes,
  6189. loginLockInfo: loginLockInfo,
  6190. passwordUpdateTime: passwordUpdateTime,
  6191. passwordRecords: passwordRecords,
  6192. clearLogOperateList: clearLogOperateList,
  6193. createTime: createTime,
  6194. updateTime: updateTime,
  6195. );
  6196. factory ModifyAdminRequest.fromJson(Map<String, dynamic> map) {
  6197. return ModifyAdminRequest(
  6198. token: map['Token'],
  6199. adminCode: map['AdminCode'],
  6200. fatherCode: map['FatherCode'],
  6201. adminName: map['AdminName'],
  6202. fullName: map['FullName'],
  6203. secretPassword: map['SecretPassword'],
  6204. headImageToken: map['HeadImageToken'],
  6205. licenseKey: map['LicenseKey'],
  6206. lastIP: map['LastIP'],
  6207. phone: map['Phone'],
  6208. email: map['Email'],
  6209. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  6210. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  6211. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  6212. passwordRecords: map['PasswordRecords'] != null ? map['PasswordRecords'].cast<String>().toList() : null,
  6213. clearLogOperateList: map['ClearLogOperateList'] != null ? (map['ClearLogOperateList'] as List).map((e)=>ClearLogOperateDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6214. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6215. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  6216. );
  6217. }
  6218. Map<String, dynamic> toJson() {
  6219. final map = super.toJson();
  6220. if(token != null)
  6221. map['Token'] = token;
  6222. return map;
  6223. }
  6224. }
  6225. class AdminRoleDTO extends BaseRoleDTO{
  6226. String? adminGroupCode;
  6227. int adminNum;
  6228. AdminRoleDTO({
  6229. this.adminGroupCode,
  6230. this.adminNum = 0,
  6231. String? roleCode,
  6232. String? roleName,
  6233. String? description,
  6234. List<UserRoleLanguageConfigDTO >? languageConfigs,
  6235. DateTime? createTime,
  6236. DateTime? updateTime,
  6237. }) : super(
  6238. roleCode: roleCode,
  6239. roleName: roleName,
  6240. description: description,
  6241. languageConfigs: languageConfigs,
  6242. createTime: createTime,
  6243. updateTime: updateTime,
  6244. );
  6245. factory AdminRoleDTO.fromJson(Map<String, dynamic> map) {
  6246. return AdminRoleDTO(
  6247. adminGroupCode: map['AdminGroupCode'],
  6248. adminNum: map['AdminNum'],
  6249. roleCode: map['RoleCode'],
  6250. roleName: map['RoleName'],
  6251. description: map['Description'],
  6252. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6253. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6254. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  6255. );
  6256. }
  6257. Map<String, dynamic> toJson() {
  6258. final map = super.toJson();
  6259. if(adminGroupCode != null)
  6260. map['AdminGroupCode'] = adminGroupCode;
  6261. map['AdminNum'] = adminNum;
  6262. return map;
  6263. }
  6264. }
  6265. class ModifyAdminRoleInfoRequest extends AdminRoleDTO{
  6266. String? token;
  6267. List<String >? featuresCodeList;
  6268. ModifyAdminRoleInfoRequest({
  6269. this.token,
  6270. this.featuresCodeList,
  6271. String? adminGroupCode,
  6272. int adminNum = 0,
  6273. String? roleCode,
  6274. String? roleName,
  6275. String? description,
  6276. List<UserRoleLanguageConfigDTO >? languageConfigs,
  6277. DateTime? createTime,
  6278. DateTime? updateTime,
  6279. }) : super(
  6280. adminGroupCode: adminGroupCode,
  6281. adminNum: adminNum,
  6282. roleCode: roleCode,
  6283. roleName: roleName,
  6284. description: description,
  6285. languageConfigs: languageConfigs,
  6286. createTime: createTime,
  6287. updateTime: updateTime,
  6288. );
  6289. factory ModifyAdminRoleInfoRequest.fromJson(Map<String, dynamic> map) {
  6290. return ModifyAdminRoleInfoRequest(
  6291. token: map['Token'],
  6292. featuresCodeList: map['FeaturesCodeList'] != null ? map['FeaturesCodeList'].cast<String>().toList() : null,
  6293. adminGroupCode: map['AdminGroupCode'],
  6294. adminNum: map['AdminNum'],
  6295. roleCode: map['RoleCode'],
  6296. roleName: map['RoleName'],
  6297. description: map['Description'],
  6298. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6299. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6300. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  6301. );
  6302. }
  6303. Map<String, dynamic> toJson() {
  6304. final map = super.toJson();
  6305. if(token != null)
  6306. map['Token'] = token;
  6307. if(featuresCodeList != null)
  6308. map['FeaturesCodeList'] = featuresCodeList;
  6309. return map;
  6310. }
  6311. }
  6312. class ModifyAdminsRolesRequest {
  6313. String? token;
  6314. List<String >? adminCodes;
  6315. List<String >? adminRoleCodes;
  6316. ModifyAdminsRolesRequest({
  6317. this.token,
  6318. this.adminCodes,
  6319. this.adminRoleCodes,
  6320. });
  6321. factory ModifyAdminsRolesRequest.fromJson(Map<String, dynamic> map) {
  6322. return ModifyAdminsRolesRequest(
  6323. token: map['Token'],
  6324. adminCodes: map['AdminCodes'] != null ? map['AdminCodes'].cast<String>().toList() : null,
  6325. adminRoleCodes: map['AdminRoleCodes'] != null ? map['AdminRoleCodes'].cast<String>().toList() : null,
  6326. );
  6327. }
  6328. Map<String, dynamic> toJson() {
  6329. final map = Map<String, dynamic>();
  6330. if(token != null)
  6331. map['Token'] = token;
  6332. if(adminCodes != null)
  6333. map['AdminCodes'] = adminCodes;
  6334. if(adminRoleCodes != null)
  6335. map['AdminRoleCodes'] = adminRoleCodes;
  6336. return map;
  6337. }
  6338. }
  6339. class ModifyDeviceRequest2 extends DeviceInfoDTO{
  6340. String? token;
  6341. ModifyDeviceRequest2({
  6342. this.token,
  6343. String? deviceCode,
  6344. String? serialNumber,
  6345. String? password,
  6346. String? name,
  6347. String? description,
  6348. String? deviceModel,
  6349. String? deviceType,
  6350. String? headPicUrl,
  6351. String? deviceSoftwareVersion,
  6352. String? sDKSoftwareVersion,
  6353. String? organizationCode,
  6354. String? departmentCode,
  6355. String? shortCode,
  6356. bool isAutoShared = false,
  6357. bool isEncryptedShow = false,
  6358. DateTime? lastLoginTime,
  6359. String? systemVersion,
  6360. String? cPUModel,
  6361. String? systemLanguage,
  6362. List<String >? diagnosisModules,
  6363. List<String >? reportPosterCodes,
  6364. bool mergedChannel = false,
  6365. int mergedVideoOutputWidth = 0,
  6366. int mergedVideoOutputHeight = 0,
  6367. List<VideoDeviceDTO >? videoDeviceInfos,
  6368. DownloadModeSettingEnum downloadModeSetting = DownloadModeSettingEnum.Auto,
  6369. bool liveOpened = false,
  6370. String? displayName,
  6371. DateTime? createTime,
  6372. DateTime? updateTime,
  6373. }) : super(
  6374. deviceCode: deviceCode,
  6375. serialNumber: serialNumber,
  6376. password: password,
  6377. name: name,
  6378. description: description,
  6379. deviceModel: deviceModel,
  6380. deviceType: deviceType,
  6381. headPicUrl: headPicUrl,
  6382. deviceSoftwareVersion: deviceSoftwareVersion,
  6383. sDKSoftwareVersion: sDKSoftwareVersion,
  6384. organizationCode: organizationCode,
  6385. departmentCode: departmentCode,
  6386. shortCode: shortCode,
  6387. isAutoShared: isAutoShared,
  6388. isEncryptedShow: isEncryptedShow,
  6389. lastLoginTime: lastLoginTime,
  6390. systemVersion: systemVersion,
  6391. cPUModel: cPUModel,
  6392. systemLanguage: systemLanguage,
  6393. diagnosisModules: diagnosisModules,
  6394. reportPosterCodes: reportPosterCodes,
  6395. mergedChannel: mergedChannel,
  6396. mergedVideoOutputWidth: mergedVideoOutputWidth,
  6397. mergedVideoOutputHeight: mergedVideoOutputHeight,
  6398. videoDeviceInfos: videoDeviceInfos,
  6399. downloadModeSetting: downloadModeSetting,
  6400. liveOpened: liveOpened,
  6401. displayName: displayName,
  6402. createTime: createTime,
  6403. updateTime: updateTime,
  6404. );
  6405. factory ModifyDeviceRequest2.fromJson(Map<String, dynamic> map) {
  6406. return ModifyDeviceRequest2(
  6407. token: map['Token'],
  6408. deviceCode: map['DeviceCode'],
  6409. serialNumber: map['SerialNumber'],
  6410. password: map['Password'],
  6411. name: map['Name'],
  6412. description: map['Description'],
  6413. deviceModel: map['DeviceModel'],
  6414. deviceType: map['DeviceType'],
  6415. headPicUrl: map['HeadPicUrl'],
  6416. deviceSoftwareVersion: map['DeviceSoftwareVersion'],
  6417. sDKSoftwareVersion: map['SDKSoftwareVersion'],
  6418. organizationCode: map['OrganizationCode'],
  6419. departmentCode: map['DepartmentCode'],
  6420. shortCode: map['ShortCode'],
  6421. isAutoShared: map['IsAutoShared'],
  6422. isEncryptedShow: map['IsEncryptedShow'],
  6423. lastLoginTime: map['LastLoginTime'] != null ? DateTime.parse(map['LastLoginTime']) : null,
  6424. systemVersion: map['SystemVersion'],
  6425. cPUModel: map['CPUModel'],
  6426. systemLanguage: map['SystemLanguage'],
  6427. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  6428. reportPosterCodes: map['ReportPosterCodes'] != null ? map['ReportPosterCodes'].cast<String>().toList() : null,
  6429. mergedChannel: map['MergedChannel'],
  6430. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  6431. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  6432. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6433. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  6434. liveOpened: map['LiveOpened'],
  6435. displayName: map['DisplayName'],
  6436. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6437. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  6438. );
  6439. }
  6440. Map<String, dynamic> toJson() {
  6441. final map = super.toJson();
  6442. if(token != null)
  6443. map['Token'] = token;
  6444. return map;
  6445. }
  6446. }
  6447. class ModifyDeviceDownloadModeRequest extends TokenRequest{
  6448. String? deviceCode;
  6449. DownloadModeSettingEnum downloadModeSetting;
  6450. ModifyDeviceDownloadModeRequest({
  6451. this.deviceCode,
  6452. this.downloadModeSetting = DownloadModeSettingEnum.Auto,
  6453. String? token,
  6454. }) : super(
  6455. token: token,
  6456. );
  6457. factory ModifyDeviceDownloadModeRequest.fromJson(Map<String, dynamic> map) {
  6458. return ModifyDeviceDownloadModeRequest(
  6459. deviceCode: map['DeviceCode'],
  6460. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  6461. token: map['Token'],
  6462. );
  6463. }
  6464. Map<String, dynamic> toJson() {
  6465. final map = super.toJson();
  6466. if(deviceCode != null)
  6467. map['DeviceCode'] = deviceCode;
  6468. map['DownloadModeSetting'] = downloadModeSetting.index;
  6469. return map;
  6470. }
  6471. }
  6472. class ModifyDeviceMergedVideoSizeRequest extends TokenRequest{
  6473. String? deviceCode;
  6474. bool mergedChannel;
  6475. int mergedVideoOutputWidth;
  6476. int mergedVideoOutputHeight;
  6477. List<VideoDeviceDTO >? videoDeviceInfos;
  6478. ModifyDeviceMergedVideoSizeRequest({
  6479. this.deviceCode,
  6480. this.mergedChannel = false,
  6481. this.mergedVideoOutputWidth = 0,
  6482. this.mergedVideoOutputHeight = 0,
  6483. this.videoDeviceInfos,
  6484. String? token,
  6485. }) : super(
  6486. token: token,
  6487. );
  6488. factory ModifyDeviceMergedVideoSizeRequest.fromJson(Map<String, dynamic> map) {
  6489. return ModifyDeviceMergedVideoSizeRequest(
  6490. deviceCode: map['DeviceCode'],
  6491. mergedChannel: map['MergedChannel'],
  6492. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  6493. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  6494. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6495. token: map['Token'],
  6496. );
  6497. }
  6498. Map<String, dynamic> toJson() {
  6499. final map = super.toJson();
  6500. if(deviceCode != null)
  6501. map['DeviceCode'] = deviceCode;
  6502. map['MergedChannel'] = mergedChannel;
  6503. map['MergedVideoOutputWidth'] = mergedVideoOutputWidth;
  6504. map['MergedVideoOutputHeight'] = mergedVideoOutputHeight;
  6505. if(videoDeviceInfos != null)
  6506. map['VideoDeviceInfos'] = videoDeviceInfos;
  6507. return map;
  6508. }
  6509. }
  6510. class DeviceModelClass {
  6511. String? deviceModelCode;
  6512. String? deviceModelName;
  6513. DeviceModelClass({
  6514. this.deviceModelCode,
  6515. this.deviceModelName,
  6516. });
  6517. factory DeviceModelClass.fromJson(Map<String, dynamic> map) {
  6518. return DeviceModelClass(
  6519. deviceModelCode: map['DeviceModelCode'],
  6520. deviceModelName: map['DeviceModelName'],
  6521. );
  6522. }
  6523. Map<String, dynamic> toJson() {
  6524. final map = Map<String, dynamic>();
  6525. if(deviceModelCode != null)
  6526. map['DeviceModelCode'] = deviceModelCode;
  6527. if(deviceModelName != null)
  6528. map['DeviceModelName'] = deviceModelName;
  6529. return map;
  6530. }
  6531. }
  6532. class ModifyDeviceTypeRequest extends TokenRequest{
  6533. String? deviceTypeCode;
  6534. List<DictionaryLanguageConfigDTO >? languageConfigs;
  6535. List<DeviceModelClass >? deviceModelList;
  6536. ModifyDeviceTypeRequest({
  6537. this.deviceTypeCode,
  6538. this.languageConfigs,
  6539. this.deviceModelList,
  6540. String? token,
  6541. }) : super(
  6542. token: token,
  6543. );
  6544. factory ModifyDeviceTypeRequest.fromJson(Map<String, dynamic> map) {
  6545. return ModifyDeviceTypeRequest(
  6546. deviceTypeCode: map['DeviceTypeCode'],
  6547. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>DictionaryLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6548. deviceModelList: map['DeviceModelList'] != null ? (map['DeviceModelList'] as List).map((e)=>DeviceModelClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  6549. token: map['Token'],
  6550. );
  6551. }
  6552. Map<String, dynamic> toJson() {
  6553. final map = super.toJson();
  6554. if(deviceTypeCode != null)
  6555. map['DeviceTypeCode'] = deviceTypeCode;
  6556. if(languageConfigs != null)
  6557. map['LanguageConfigs'] = languageConfigs;
  6558. if(deviceModelList != null)
  6559. map['DeviceModelList'] = deviceModelList;
  6560. return map;
  6561. }
  6562. }
  6563. class DeleteDeviceTypeRequest {
  6564. String? deviceTypeCode;
  6565. DeleteDeviceTypeRequest({
  6566. this.deviceTypeCode,
  6567. });
  6568. factory DeleteDeviceTypeRequest.fromJson(Map<String, dynamic> map) {
  6569. return DeleteDeviceTypeRequest(
  6570. deviceTypeCode: map['DeviceTypeCode'],
  6571. );
  6572. }
  6573. Map<String, dynamic> toJson() {
  6574. final map = Map<String, dynamic>();
  6575. if(deviceTypeCode != null)
  6576. map['DeviceTypeCode'] = deviceTypeCode;
  6577. return map;
  6578. }
  6579. }
  6580. class ModifyDiagnosisModuleEnableStateRequest extends TokenRequest{
  6581. List<String >? diagnosisModules;
  6582. bool enabled;
  6583. ModifyDiagnosisModuleEnableStateRequest({
  6584. this.diagnosisModules,
  6585. this.enabled = false,
  6586. String? token,
  6587. }) : super(
  6588. token: token,
  6589. );
  6590. factory ModifyDiagnosisModuleEnableStateRequest.fromJson(Map<String, dynamic> map) {
  6591. return ModifyDiagnosisModuleEnableStateRequest(
  6592. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  6593. enabled: map['Enabled'],
  6594. token: map['Token'],
  6595. );
  6596. }
  6597. Map<String, dynamic> toJson() {
  6598. final map = super.toJson();
  6599. if(diagnosisModules != null)
  6600. map['DiagnosisModules'] = diagnosisModules;
  6601. map['Enabled'] = enabled;
  6602. return map;
  6603. }
  6604. }
  6605. class ModifyDiagnosisModulesRequest extends TokenRequest{
  6606. List<String >? diagnosisModules;
  6607. ModifyDiagnosisModulesRequest({
  6608. this.diagnosisModules,
  6609. String? token,
  6610. }) : super(
  6611. token: token,
  6612. );
  6613. factory ModifyDiagnosisModulesRequest.fromJson(Map<String, dynamic> map) {
  6614. return ModifyDiagnosisModulesRequest(
  6615. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  6616. token: map['Token'],
  6617. );
  6618. }
  6619. Map<String, dynamic> toJson() {
  6620. final map = super.toJson();
  6621. if(diagnosisModules != null)
  6622. map['DiagnosisModules'] = diagnosisModules;
  6623. return map;
  6624. }
  6625. }
  6626. class ModifyOrganizationCustomSettingRequest extends TokenRequest{
  6627. String? langugeKey;
  6628. String? settingModule;
  6629. String? settingJson;
  6630. String? organizationCode;
  6631. ModifyOrganizationCustomSettingRequest({
  6632. this.langugeKey,
  6633. this.settingModule,
  6634. this.settingJson,
  6635. this.organizationCode,
  6636. String? token,
  6637. }) : super(
  6638. token: token,
  6639. );
  6640. factory ModifyOrganizationCustomSettingRequest.fromJson(Map<String, dynamic> map) {
  6641. return ModifyOrganizationCustomSettingRequest(
  6642. langugeKey: map['LangugeKey'],
  6643. settingModule: map['SettingModule'],
  6644. settingJson: map['SettingJson'],
  6645. organizationCode: map['OrganizationCode'],
  6646. token: map['Token'],
  6647. );
  6648. }
  6649. Map<String, dynamic> toJson() {
  6650. final map = super.toJson();
  6651. if(langugeKey != null)
  6652. map['LangugeKey'] = langugeKey;
  6653. if(settingModule != null)
  6654. map['SettingModule'] = settingModule;
  6655. if(settingJson != null)
  6656. map['SettingJson'] = settingJson;
  6657. if(organizationCode != null)
  6658. map['OrganizationCode'] = organizationCode;
  6659. return map;
  6660. }
  6661. }
  6662. class ModifyOrganizationDiagnosisModulesRequest extends TokenRequest{
  6663. String? organizationCode;
  6664. List<String >? diagnosisModules;
  6665. ModifyOrganizationDiagnosisModulesRequest({
  6666. this.organizationCode,
  6667. this.diagnosisModules,
  6668. String? token,
  6669. }) : super(
  6670. token: token,
  6671. );
  6672. factory ModifyOrganizationDiagnosisModulesRequest.fromJson(Map<String, dynamic> map) {
  6673. return ModifyOrganizationDiagnosisModulesRequest(
  6674. organizationCode: map['OrganizationCode'],
  6675. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  6676. token: map['Token'],
  6677. );
  6678. }
  6679. Map<String, dynamic> toJson() {
  6680. final map = super.toJson();
  6681. if(organizationCode != null)
  6682. map['OrganizationCode'] = organizationCode;
  6683. if(diagnosisModules != null)
  6684. map['DiagnosisModules'] = diagnosisModules;
  6685. return map;
  6686. }
  6687. }
  6688. class ModifyOrganizationDirectorsRequest extends TokenRequest{
  6689. String? organizationCode;
  6690. List<String >? directors;
  6691. ModifyOrganizationDirectorsRequest({
  6692. this.organizationCode,
  6693. this.directors,
  6694. String? token,
  6695. }) : super(
  6696. token: token,
  6697. );
  6698. factory ModifyOrganizationDirectorsRequest.fromJson(Map<String, dynamic> map) {
  6699. return ModifyOrganizationDirectorsRequest(
  6700. organizationCode: map['OrganizationCode'],
  6701. directors: map['Directors'] != null ? map['Directors'].cast<String>().toList() : null,
  6702. token: map['Token'],
  6703. );
  6704. }
  6705. Map<String, dynamic> toJson() {
  6706. final map = super.toJson();
  6707. if(organizationCode != null)
  6708. map['OrganizationCode'] = organizationCode;
  6709. if(directors != null)
  6710. map['Directors'] = directors;
  6711. return map;
  6712. }
  6713. }
  6714. class ModifyOrganizationRequest extends OrganizationDTO{
  6715. String? token;
  6716. ModifyOrganizationRequest({
  6717. this.token,
  6718. String? description,
  6719. String? rootCode,
  6720. OrganizationTypeEnum organizationType = OrganizationTypeEnum.Corporation,
  6721. List<String >? authorityGroups,
  6722. String? nautica,
  6723. OrganizationStateEnum state = OrganizationStateEnum.WaitAudit,
  6724. List<String >? directors,
  6725. List<String >? assignedAdmins,
  6726. String? patientSettingJson,
  6727. String? examSettingJson,
  6728. String? consultationSettingJson,
  6729. String? patientSettingVersion,
  6730. String? examSettingVersion,
  6731. String? consultationSettingVersion,
  6732. String? parentOrganizationName,
  6733. String? regionCode,
  6734. String? parentCode,
  6735. String? logoUrl,
  6736. OrganizationPatientTypeEnum patientType = OrganizationPatientTypeEnum.Person,
  6737. bool isinvented = false,
  6738. List<SettingDTOClass >? settings,
  6739. List<String >? diagnosisModules,
  6740. bool isEncryptedShow = false,
  6741. double referralLimitHours = 0,
  6742. List<String >? referralOrganizationCodes,
  6743. List<ReferralOrganizationDTO >? referralOrganizations,
  6744. String? organizationCode,
  6745. String? organizationName,
  6746. DateTime? createTime,
  6747. DateTime? updateTime,
  6748. }) : super(
  6749. description: description,
  6750. rootCode: rootCode,
  6751. organizationType: organizationType,
  6752. authorityGroups: authorityGroups,
  6753. nautica: nautica,
  6754. state: state,
  6755. directors: directors,
  6756. assignedAdmins: assignedAdmins,
  6757. patientSettingJson: patientSettingJson,
  6758. examSettingJson: examSettingJson,
  6759. consultationSettingJson: consultationSettingJson,
  6760. patientSettingVersion: patientSettingVersion,
  6761. examSettingVersion: examSettingVersion,
  6762. consultationSettingVersion: consultationSettingVersion,
  6763. parentOrganizationName: parentOrganizationName,
  6764. regionCode: regionCode,
  6765. parentCode: parentCode,
  6766. logoUrl: logoUrl,
  6767. patientType: patientType,
  6768. isinvented: isinvented,
  6769. settings: settings,
  6770. diagnosisModules: diagnosisModules,
  6771. isEncryptedShow: isEncryptedShow,
  6772. referralLimitHours: referralLimitHours,
  6773. referralOrganizationCodes: referralOrganizationCodes,
  6774. referralOrganizations: referralOrganizations,
  6775. organizationCode: organizationCode,
  6776. organizationName: organizationName,
  6777. createTime: createTime,
  6778. updateTime: updateTime,
  6779. );
  6780. factory ModifyOrganizationRequest.fromJson(Map<String, dynamic> map) {
  6781. return ModifyOrganizationRequest(
  6782. token: map['Token'],
  6783. description: map['Description'],
  6784. rootCode: map['RootCode'],
  6785. organizationType: OrganizationTypeEnum.values.firstWhere((e) => e.index == map['OrganizationType']),
  6786. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  6787. nautica: map['Nautica'],
  6788. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  6789. directors: map['Directors'] != null ? map['Directors'].cast<String>().toList() : null,
  6790. assignedAdmins: map['AssignedAdmins'] != null ? map['AssignedAdmins'].cast<String>().toList() : null,
  6791. patientSettingJson: map['PatientSettingJson'],
  6792. examSettingJson: map['ExamSettingJson'],
  6793. consultationSettingJson: map['ConsultationSettingJson'],
  6794. patientSettingVersion: map['PatientSettingVersion'],
  6795. examSettingVersion: map['ExamSettingVersion'],
  6796. consultationSettingVersion: map['ConsultationSettingVersion'],
  6797. parentOrganizationName: map['ParentOrganizationName'],
  6798. regionCode: map['RegionCode'],
  6799. parentCode: map['ParentCode'],
  6800. logoUrl: map['LogoUrl'],
  6801. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  6802. isinvented: map['Isinvented'],
  6803. settings: map['Settings'] != null ? (map['Settings'] as List).map((e)=>SettingDTOClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  6804. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  6805. isEncryptedShow: map['IsEncryptedShow'],
  6806. referralLimitHours: double.parse(map['ReferralLimitHours'].toString()),
  6807. referralOrganizationCodes: map['ReferralOrganizationCodes'] != null ? map['ReferralOrganizationCodes'].cast<String>().toList() : null,
  6808. referralOrganizations: map['ReferralOrganizations'] != null ? (map['ReferralOrganizations'] as List).map((e)=>ReferralOrganizationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6809. organizationCode: map['OrganizationCode'],
  6810. organizationName: map['OrganizationName'],
  6811. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6812. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  6813. );
  6814. }
  6815. Map<String, dynamic> toJson() {
  6816. final map = super.toJson();
  6817. if(token != null)
  6818. map['Token'] = token;
  6819. return map;
  6820. }
  6821. }
  6822. class ModifyOrganizationSettingRequest extends TokenRequest{
  6823. OrganizationSettingTypeEnum settingType;
  6824. String? settingJson;
  6825. String? organizationCode;
  6826. String? cMSTemplateCode;
  6827. ModifyOrganizationSettingRequest({
  6828. this.settingType = OrganizationSettingTypeEnum.Patient,
  6829. this.settingJson,
  6830. this.organizationCode,
  6831. this.cMSTemplateCode,
  6832. String? token,
  6833. }) : super(
  6834. token: token,
  6835. );
  6836. factory ModifyOrganizationSettingRequest.fromJson(Map<String, dynamic> map) {
  6837. return ModifyOrganizationSettingRequest(
  6838. settingType: OrganizationSettingTypeEnum.values.firstWhere((e) => e.index == map['SettingType']),
  6839. settingJson: map['SettingJson'],
  6840. organizationCode: map['OrganizationCode'],
  6841. cMSTemplateCode: map['CMSTemplateCode'],
  6842. token: map['Token'],
  6843. );
  6844. }
  6845. Map<String, dynamic> toJson() {
  6846. final map = super.toJson();
  6847. map['SettingType'] = settingType.index;
  6848. if(settingJson != null)
  6849. map['SettingJson'] = settingJson;
  6850. if(organizationCode != null)
  6851. map['OrganizationCode'] = organizationCode;
  6852. if(cMSTemplateCode != null)
  6853. map['CMSTemplateCode'] = cMSTemplateCode;
  6854. return map;
  6855. }
  6856. }
  6857. class ConsultationBaseInfoItem {
  6858. String? name;
  6859. bool isDefult;
  6860. bool isShow;
  6861. bool required;
  6862. ConsultationBaseInfoItem({
  6863. this.name,
  6864. this.isDefult = false,
  6865. this.isShow = false,
  6866. this.required = false,
  6867. });
  6868. factory ConsultationBaseInfoItem.fromJson(Map<String, dynamic> map) {
  6869. return ConsultationBaseInfoItem(
  6870. name: map['Name'],
  6871. isDefult: map['IsDefult'],
  6872. isShow: map['IsShow'],
  6873. required: map['Required'],
  6874. );
  6875. }
  6876. Map<String, dynamic> toJson() {
  6877. final map = Map<String, dynamic>();
  6878. if(name != null)
  6879. map['Name'] = name;
  6880. map['IsDefult'] = isDefult;
  6881. map['IsShow'] = isShow;
  6882. map['Required'] = required;
  6883. return map;
  6884. }
  6885. }
  6886. class ModifycConsultationBaseInfoSettingRequest extends TokenRequest{
  6887. List<ConsultationBaseInfoItem >? consultationBaseInfoList;
  6888. String? organizationCode;
  6889. ModifycConsultationBaseInfoSettingRequest({
  6890. this.consultationBaseInfoList,
  6891. this.organizationCode,
  6892. String? token,
  6893. }) : super(
  6894. token: token,
  6895. );
  6896. factory ModifycConsultationBaseInfoSettingRequest.fromJson(Map<String, dynamic> map) {
  6897. return ModifycConsultationBaseInfoSettingRequest(
  6898. consultationBaseInfoList: map['ConsultationBaseInfoList'] != null ? (map['ConsultationBaseInfoList'] as List).map((e)=>ConsultationBaseInfoItem.fromJson(e as Map<String,dynamic>)).toList() : null,
  6899. organizationCode: map['OrganizationCode'],
  6900. token: map['Token'],
  6901. );
  6902. }
  6903. Map<String, dynamic> toJson() {
  6904. final map = super.toJson();
  6905. if(consultationBaseInfoList != null)
  6906. map['ConsultationBaseInfoList'] = consultationBaseInfoList;
  6907. if(organizationCode != null)
  6908. map['OrganizationCode'] = organizationCode;
  6909. return map;
  6910. }
  6911. }
  6912. class ModifyOrganizationStateRequest extends TokenRequest{
  6913. String? organizationCode;
  6914. OrganizationStateEnum state;
  6915. ModifyOrganizationStateRequest({
  6916. this.organizationCode,
  6917. this.state = OrganizationStateEnum.WaitAudit,
  6918. String? token,
  6919. }) : super(
  6920. token: token,
  6921. );
  6922. factory ModifyOrganizationStateRequest.fromJson(Map<String, dynamic> map) {
  6923. return ModifyOrganizationStateRequest(
  6924. organizationCode: map['OrganizationCode'],
  6925. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  6926. token: map['Token'],
  6927. );
  6928. }
  6929. Map<String, dynamic> toJson() {
  6930. final map = super.toJson();
  6931. if(organizationCode != null)
  6932. map['OrganizationCode'] = organizationCode;
  6933. map['State'] = state.index;
  6934. return map;
  6935. }
  6936. }
  6937. class ModifyReferralRecordSettingRequest extends TokenRequest{
  6938. double limitHours;
  6939. ModifyReferralRecordSettingRequest({
  6940. this.limitHours = 0,
  6941. String? token,
  6942. }) : super(
  6943. token: token,
  6944. );
  6945. factory ModifyReferralRecordSettingRequest.fromJson(Map<String, dynamic> map) {
  6946. return ModifyReferralRecordSettingRequest(
  6947. limitHours: double.parse(map['LimitHours'].toString()),
  6948. token: map['Token'],
  6949. );
  6950. }
  6951. Map<String, dynamic> toJson() {
  6952. final map = super.toJson();
  6953. map['LimitHours'] = limitHours;
  6954. return map;
  6955. }
  6956. }
  6957. class ModifyReportPosterDevicesRequest extends TokenRequest{
  6958. String? reportPosterCode;
  6959. List<String >? deviceIds;
  6960. ModifyReportPosterDevicesRequest({
  6961. this.reportPosterCode,
  6962. this.deviceIds,
  6963. String? token,
  6964. }) : super(
  6965. token: token,
  6966. );
  6967. factory ModifyReportPosterDevicesRequest.fromJson(Map<String, dynamic> map) {
  6968. return ModifyReportPosterDevicesRequest(
  6969. reportPosterCode: map['ReportPosterCode'],
  6970. deviceIds: map['DeviceIds'] != null ? map['DeviceIds'].cast<String>().toList() : null,
  6971. token: map['Token'],
  6972. );
  6973. }
  6974. Map<String, dynamic> toJson() {
  6975. final map = super.toJson();
  6976. if(reportPosterCode != null)
  6977. map['ReportPosterCode'] = reportPosterCode;
  6978. if(deviceIds != null)
  6979. map['DeviceIds'] = deviceIds;
  6980. return map;
  6981. }
  6982. }
  6983. class ModifyRoleInfoRequest extends RoleDTO{
  6984. String? token;
  6985. List<String >? featuresCodeList;
  6986. ModifyRoleInfoRequest({
  6987. this.token,
  6988. this.featuresCodeList,
  6989. RoleShowTypeEnum roleShowType = RoleShowTypeEnum.NotShow,
  6990. String? iConUrl,
  6991. String? colorStart,
  6992. String? colorEnd,
  6993. RoleQualificationEnum roleQualification = RoleQualificationEnum.NoNeed,
  6994. String? userGroupCode,
  6995. RoleShowTypeEnum fieldShowType = RoleShowTypeEnum.NotShow,
  6996. List<String >? fieldList,
  6997. String? roleCode,
  6998. String? roleName,
  6999. String? description,
  7000. List<UserRoleLanguageConfigDTO >? languageConfigs,
  7001. DateTime? createTime,
  7002. DateTime? updateTime,
  7003. }) : super(
  7004. roleShowType: roleShowType,
  7005. iConUrl: iConUrl,
  7006. colorStart: colorStart,
  7007. colorEnd: colorEnd,
  7008. roleQualification: roleQualification,
  7009. userGroupCode: userGroupCode,
  7010. fieldShowType: fieldShowType,
  7011. fieldList: fieldList,
  7012. roleCode: roleCode,
  7013. roleName: roleName,
  7014. description: description,
  7015. languageConfigs: languageConfigs,
  7016. createTime: createTime,
  7017. updateTime: updateTime,
  7018. );
  7019. factory ModifyRoleInfoRequest.fromJson(Map<String, dynamic> map) {
  7020. return ModifyRoleInfoRequest(
  7021. token: map['Token'],
  7022. featuresCodeList: map['FeaturesCodeList'] != null ? map['FeaturesCodeList'].cast<String>().toList() : null,
  7023. roleShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['RoleShowType']),
  7024. iConUrl: map['IConUrl'],
  7025. colorStart: map['ColorStart'],
  7026. colorEnd: map['ColorEnd'],
  7027. roleQualification: RoleQualificationEnum.values.firstWhere((e) => e.index == map['RoleQualification']),
  7028. userGroupCode: map['UserGroupCode'],
  7029. fieldShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['FieldShowType']),
  7030. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  7031. roleCode: map['RoleCode'],
  7032. roleName: map['RoleName'],
  7033. description: map['Description'],
  7034. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  7035. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7036. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7037. );
  7038. }
  7039. Map<String, dynamic> toJson() {
  7040. final map = super.toJson();
  7041. if(token != null)
  7042. map['Token'] = token;
  7043. if(featuresCodeList != null)
  7044. map['FeaturesCodeList'] = featuresCodeList;
  7045. return map;
  7046. }
  7047. }
  7048. class ThirdPartyInfoDTO extends BaseDTO{
  7049. String? code;
  7050. String? name;
  7051. String? contactPersonName;
  7052. String? contactPhone;
  7053. List<String >? allowedInterfaces;
  7054. bool isValid;
  7055. String? token;
  7056. ThirdPartyInfoDTO({
  7057. this.code,
  7058. this.name,
  7059. this.contactPersonName,
  7060. this.contactPhone,
  7061. this.allowedInterfaces,
  7062. this.isValid = false,
  7063. this.token,
  7064. DateTime? createTime,
  7065. DateTime? updateTime,
  7066. }) : super(
  7067. createTime: createTime,
  7068. updateTime: updateTime,
  7069. );
  7070. factory ThirdPartyInfoDTO.fromJson(Map<String, dynamic> map) {
  7071. return ThirdPartyInfoDTO(
  7072. code: map['Code'],
  7073. name: map['Name'],
  7074. contactPersonName: map['ContactPersonName'],
  7075. contactPhone: map['ContactPhone'],
  7076. allowedInterfaces: map['AllowedInterfaces'] != null ? map['AllowedInterfaces'].cast<String>().toList() : null,
  7077. isValid: map['IsValid'],
  7078. token: map['Token'],
  7079. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7080. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7081. );
  7082. }
  7083. Map<String, dynamic> toJson() {
  7084. final map = super.toJson();
  7085. if(code != null)
  7086. map['Code'] = code;
  7087. if(name != null)
  7088. map['Name'] = name;
  7089. if(contactPersonName != null)
  7090. map['ContactPersonName'] = contactPersonName;
  7091. if(contactPhone != null)
  7092. map['ContactPhone'] = contactPhone;
  7093. if(allowedInterfaces != null)
  7094. map['AllowedInterfaces'] = allowedInterfaces;
  7095. map['IsValid'] = isValid;
  7096. if(token != null)
  7097. map['Token'] = token;
  7098. return map;
  7099. }
  7100. }
  7101. class ModifyThirdPartyInfoRequest extends ThirdPartyInfoDTO{
  7102. ModifyThirdPartyInfoRequest({
  7103. String? token,
  7104. String? code,
  7105. String? name,
  7106. String? contactPersonName,
  7107. String? contactPhone,
  7108. List<String >? allowedInterfaces,
  7109. bool isValid = false,
  7110. DateTime? createTime,
  7111. DateTime? updateTime,
  7112. }) : super(
  7113. code: code,
  7114. name: name,
  7115. contactPersonName: contactPersonName,
  7116. contactPhone: contactPhone,
  7117. allowedInterfaces: allowedInterfaces,
  7118. isValid: isValid,
  7119. token: token,
  7120. createTime: createTime,
  7121. updateTime: updateTime,
  7122. );
  7123. factory ModifyThirdPartyInfoRequest.fromJson(Map<String, dynamic> map) {
  7124. return ModifyThirdPartyInfoRequest(
  7125. token: map['Token'],
  7126. code: map['Code'],
  7127. name: map['Name'],
  7128. contactPersonName: map['ContactPersonName'],
  7129. contactPhone: map['ContactPhone'],
  7130. allowedInterfaces: map['AllowedInterfaces'] != null ? map['AllowedInterfaces'].cast<String>().toList() : null,
  7131. isValid: map['IsValid'],
  7132. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7133. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7134. );
  7135. }
  7136. Map<String, dynamic> toJson() {
  7137. final map = super.toJson();
  7138. return map;
  7139. }
  7140. }
  7141. class UserFeatureInfoDTO extends BaseFeatureInfoDTO{
  7142. UserFeatureInfoDTO({
  7143. String? featureCode,
  7144. String? featureName,
  7145. String? fatherCode,
  7146. String? uniqueCode,
  7147. DateTime? createTime,
  7148. DateTime? updateTime,
  7149. }) : super(
  7150. featureCode: featureCode,
  7151. featureName: featureName,
  7152. fatherCode: fatherCode,
  7153. uniqueCode: uniqueCode,
  7154. createTime: createTime,
  7155. updateTime: updateTime,
  7156. );
  7157. factory UserFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  7158. return UserFeatureInfoDTO(
  7159. featureCode: map['FeatureCode'],
  7160. featureName: map['FeatureName'],
  7161. fatherCode: map['FatherCode'],
  7162. uniqueCode: map['UniqueCode'],
  7163. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7164. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7165. );
  7166. }
  7167. Map<String, dynamic> toJson() {
  7168. final map = super.toJson();
  7169. return map;
  7170. }
  7171. }
  7172. class ModifyUserFeatureRequest extends UserFeatureInfoDTO{
  7173. String? token;
  7174. ModifyUserFeatureRequest({
  7175. this.token,
  7176. String? featureCode,
  7177. String? featureName,
  7178. String? fatherCode,
  7179. String? uniqueCode,
  7180. DateTime? createTime,
  7181. DateTime? updateTime,
  7182. }) : super(
  7183. featureCode: featureCode,
  7184. featureName: featureName,
  7185. fatherCode: fatherCode,
  7186. uniqueCode: uniqueCode,
  7187. createTime: createTime,
  7188. updateTime: updateTime,
  7189. );
  7190. factory ModifyUserFeatureRequest.fromJson(Map<String, dynamic> map) {
  7191. return ModifyUserFeatureRequest(
  7192. token: map['Token'],
  7193. featureCode: map['FeatureCode'],
  7194. featureName: map['FeatureName'],
  7195. fatherCode: map['FatherCode'],
  7196. uniqueCode: map['UniqueCode'],
  7197. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7198. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7199. );
  7200. }
  7201. Map<String, dynamic> toJson() {
  7202. final map = super.toJson();
  7203. if(token != null)
  7204. map['Token'] = token;
  7205. return map;
  7206. }
  7207. }
  7208. enum ManagementUserInfoStateEnum {
  7209. Nonactivated,
  7210. Activated,
  7211. Locked,
  7212. }
  7213. class ManageUserInfoDTO extends UserDTO{
  7214. String? roleName;
  7215. String? departmentName;
  7216. String? hospitalName;
  7217. String? identityApplyCode;
  7218. List<String >? identityCard;
  7219. List<String >? licenseCard;
  7220. String? identityApplyRoleCode;
  7221. String? identityApplyRoleName;
  7222. ManagementUserInfoStateEnum managementUserState;
  7223. ManageUserInfoDTO({
  7224. this.roleName,
  7225. this.departmentName,
  7226. this.hospitalName,
  7227. this.identityApplyCode,
  7228. this.identityCard,
  7229. this.licenseCard,
  7230. this.identityApplyRoleCode,
  7231. this.identityApplyRoleName,
  7232. bool isBatchExportDiagnoseData = false,
  7233. List<String >? fieldList,
  7234. this.managementUserState = ManagementUserInfoStateEnum.Nonactivated,
  7235. String? nickName,
  7236. String? organizationCode,
  7237. String? organizationName,
  7238. String? rootOrganizationCode,
  7239. String? rootOrganizationName,
  7240. List<String >? authorityGroups,
  7241. List<String >? bindDevices,
  7242. String? lastIP,
  7243. int logintimes = 0,
  7244. UserInfoStateEnum userState = UserInfoStateEnum.Nonactivated,
  7245. List<String >? roleCodes,
  7246. List<String >? rankCodes,
  7247. List<String >? positionCodes,
  7248. ApplyStateEnum applyState = ApplyStateEnum.NotApply,
  7249. String? rankName,
  7250. String? positionName,
  7251. bool isDirector = false,
  7252. List<String >? deletePatientCodes,
  7253. String? bindAssistantUserCode,
  7254. String? bindAssistantDoctorUserCode,
  7255. LoginLockInfoDTO? loginLockInfo,
  7256. String? signature,
  7257. String? language,
  7258. bool enableReportLabel = false,
  7259. List<AssociatedInfoDTO >? associatedInfos,
  7260. String? commonPlatformUserId,
  7261. String? bindEmergencyDeviceCode,
  7262. String? bindEmergencyExpertCode,
  7263. List<String >? dashboardOrgCodes,
  7264. String? phone,
  7265. String? email,
  7266. String? userCode,
  7267. String? userName,
  7268. String? fullName,
  7269. String? headImageUrl,
  7270. String? displayName,
  7271. DateTime? createTime,
  7272. DateTime? updateTime,
  7273. }) : super(
  7274. nickName: nickName,
  7275. organizationCode: organizationCode,
  7276. organizationName: organizationName,
  7277. rootOrganizationCode: rootOrganizationCode,
  7278. rootOrganizationName: rootOrganizationName,
  7279. authorityGroups: authorityGroups,
  7280. bindDevices: bindDevices,
  7281. lastIP: lastIP,
  7282. logintimes: logintimes,
  7283. userState: userState,
  7284. roleCodes: roleCodes,
  7285. rankCodes: rankCodes,
  7286. positionCodes: positionCodes,
  7287. applyState: applyState,
  7288. rankName: rankName,
  7289. positionName: positionName,
  7290. isDirector: isDirector,
  7291. fieldList: fieldList,
  7292. deletePatientCodes: deletePatientCodes,
  7293. isBatchExportDiagnoseData: isBatchExportDiagnoseData,
  7294. bindAssistantUserCode: bindAssistantUserCode,
  7295. bindAssistantDoctorUserCode: bindAssistantDoctorUserCode,
  7296. loginLockInfo: loginLockInfo,
  7297. signature: signature,
  7298. language: language,
  7299. enableReportLabel: enableReportLabel,
  7300. associatedInfos: associatedInfos,
  7301. commonPlatformUserId: commonPlatformUserId,
  7302. bindEmergencyDeviceCode: bindEmergencyDeviceCode,
  7303. bindEmergencyExpertCode: bindEmergencyExpertCode,
  7304. dashboardOrgCodes: dashboardOrgCodes,
  7305. phone: phone,
  7306. email: email,
  7307. userCode: userCode,
  7308. userName: userName,
  7309. fullName: fullName,
  7310. headImageUrl: headImageUrl,
  7311. displayName: displayName,
  7312. createTime: createTime,
  7313. updateTime: updateTime,
  7314. );
  7315. factory ManageUserInfoDTO.fromJson(Map<String, dynamic> map) {
  7316. return ManageUserInfoDTO(
  7317. roleName: map['RoleName'],
  7318. departmentName: map['DepartmentName'],
  7319. hospitalName: map['HospitalName'],
  7320. identityApplyCode: map['IdentityApplyCode'],
  7321. identityCard: map['IdentityCard'] != null ? map['IdentityCard'].cast<String>().toList() : null,
  7322. licenseCard: map['LicenseCard'] != null ? map['LicenseCard'].cast<String>().toList() : null,
  7323. identityApplyRoleCode: map['IdentityApplyRoleCode'],
  7324. identityApplyRoleName: map['IdentityApplyRoleName'],
  7325. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  7326. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  7327. managementUserState: ManagementUserInfoStateEnum.values.firstWhere((e) => e.index == map['ManagementUserState']),
  7328. nickName: map['NickName'],
  7329. organizationCode: map['OrganizationCode'],
  7330. organizationName: map['OrganizationName'],
  7331. rootOrganizationCode: map['RootOrganizationCode'],
  7332. rootOrganizationName: map['RootOrganizationName'],
  7333. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  7334. bindDevices: map['BindDevices'] != null ? map['BindDevices'].cast<String>().toList() : null,
  7335. lastIP: map['LastIP'],
  7336. logintimes: map['Logintimes'],
  7337. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  7338. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  7339. rankCodes: map['RankCodes'] != null ? map['RankCodes'].cast<String>().toList() : null,
  7340. positionCodes: map['PositionCodes'] != null ? map['PositionCodes'].cast<String>().toList() : null,
  7341. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  7342. rankName: map['RankName'],
  7343. positionName: map['PositionName'],
  7344. isDirector: map['IsDirector'],
  7345. deletePatientCodes: map['DeletePatientCodes'] != null ? map['DeletePatientCodes'].cast<String>().toList() : null,
  7346. bindAssistantUserCode: map['BindAssistantUserCode'],
  7347. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  7348. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  7349. signature: map['Signature'],
  7350. language: map['Language'],
  7351. enableReportLabel: map['EnableReportLabel'],
  7352. associatedInfos: map['AssociatedInfos'] != null ? (map['AssociatedInfos'] as List).map((e)=>AssociatedInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  7353. commonPlatformUserId: map['CommonPlatformUserId'],
  7354. bindEmergencyDeviceCode: map['BindEmergencyDeviceCode'],
  7355. bindEmergencyExpertCode: map['BindEmergencyExpertCode'],
  7356. dashboardOrgCodes: map['DashboardOrgCodes'] != null ? map['DashboardOrgCodes'].cast<String>().toList() : null,
  7357. phone: map['Phone'],
  7358. email: map['Email'],
  7359. userCode: map['UserCode'],
  7360. userName: map['UserName'],
  7361. fullName: map['FullName'],
  7362. headImageUrl: map['HeadImageUrl'],
  7363. displayName: map['DisplayName'],
  7364. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7365. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7366. );
  7367. }
  7368. Map<String, dynamic> toJson() {
  7369. final map = super.toJson();
  7370. if(roleName != null)
  7371. map['RoleName'] = roleName;
  7372. if(departmentName != null)
  7373. map['DepartmentName'] = departmentName;
  7374. if(hospitalName != null)
  7375. map['HospitalName'] = hospitalName;
  7376. if(identityApplyCode != null)
  7377. map['IdentityApplyCode'] = identityApplyCode;
  7378. if(identityCard != null)
  7379. map['IdentityCard'] = identityCard;
  7380. if(licenseCard != null)
  7381. map['LicenseCard'] = licenseCard;
  7382. if(identityApplyRoleCode != null)
  7383. map['IdentityApplyRoleCode'] = identityApplyRoleCode;
  7384. if(identityApplyRoleName != null)
  7385. map['IdentityApplyRoleName'] = identityApplyRoleName;
  7386. map['ManagementUserState'] = managementUserState.index;
  7387. return map;
  7388. }
  7389. }
  7390. class ModifyUserRequest extends ManageUserInfoDTO{
  7391. String? token;
  7392. ModifyUserRequest({
  7393. this.token,
  7394. String? roleName,
  7395. String? departmentName,
  7396. String? hospitalName,
  7397. String? identityApplyCode,
  7398. List<String >? identityCard,
  7399. List<String >? licenseCard,
  7400. String? identityApplyRoleCode,
  7401. String? identityApplyRoleName,
  7402. bool isBatchExportDiagnoseData = false,
  7403. List<String >? fieldList,
  7404. ManagementUserInfoStateEnum managementUserState = ManagementUserInfoStateEnum.Nonactivated,
  7405. String? nickName,
  7406. String? organizationCode,
  7407. String? organizationName,
  7408. String? rootOrganizationCode,
  7409. String? rootOrganizationName,
  7410. List<String >? authorityGroups,
  7411. List<String >? bindDevices,
  7412. String? lastIP,
  7413. int logintimes = 0,
  7414. UserInfoStateEnum userState = UserInfoStateEnum.Nonactivated,
  7415. List<String >? roleCodes,
  7416. List<String >? rankCodes,
  7417. List<String >? positionCodes,
  7418. ApplyStateEnum applyState = ApplyStateEnum.NotApply,
  7419. String? rankName,
  7420. String? positionName,
  7421. bool isDirector = false,
  7422. List<String >? deletePatientCodes,
  7423. String? bindAssistantUserCode,
  7424. String? bindAssistantDoctorUserCode,
  7425. LoginLockInfoDTO? loginLockInfo,
  7426. String? signature,
  7427. String? language,
  7428. bool enableReportLabel = false,
  7429. List<AssociatedInfoDTO >? associatedInfos,
  7430. String? commonPlatformUserId,
  7431. String? bindEmergencyDeviceCode,
  7432. String? bindEmergencyExpertCode,
  7433. List<String >? dashboardOrgCodes,
  7434. String? phone,
  7435. String? email,
  7436. String? userCode,
  7437. String? userName,
  7438. String? fullName,
  7439. String? headImageUrl,
  7440. String? displayName,
  7441. DateTime? createTime,
  7442. DateTime? updateTime,
  7443. }) : super(
  7444. roleName: roleName,
  7445. departmentName: departmentName,
  7446. hospitalName: hospitalName,
  7447. identityApplyCode: identityApplyCode,
  7448. identityCard: identityCard,
  7449. licenseCard: licenseCard,
  7450. identityApplyRoleCode: identityApplyRoleCode,
  7451. identityApplyRoleName: identityApplyRoleName,
  7452. isBatchExportDiagnoseData: isBatchExportDiagnoseData,
  7453. fieldList: fieldList,
  7454. managementUserState: managementUserState,
  7455. nickName: nickName,
  7456. organizationCode: organizationCode,
  7457. organizationName: organizationName,
  7458. rootOrganizationCode: rootOrganizationCode,
  7459. rootOrganizationName: rootOrganizationName,
  7460. authorityGroups: authorityGroups,
  7461. bindDevices: bindDevices,
  7462. lastIP: lastIP,
  7463. logintimes: logintimes,
  7464. userState: userState,
  7465. roleCodes: roleCodes,
  7466. rankCodes: rankCodes,
  7467. positionCodes: positionCodes,
  7468. applyState: applyState,
  7469. rankName: rankName,
  7470. positionName: positionName,
  7471. isDirector: isDirector,
  7472. deletePatientCodes: deletePatientCodes,
  7473. bindAssistantUserCode: bindAssistantUserCode,
  7474. bindAssistantDoctorUserCode: bindAssistantDoctorUserCode,
  7475. loginLockInfo: loginLockInfo,
  7476. signature: signature,
  7477. language: language,
  7478. enableReportLabel: enableReportLabel,
  7479. associatedInfos: associatedInfos,
  7480. commonPlatformUserId: commonPlatformUserId,
  7481. bindEmergencyDeviceCode: bindEmergencyDeviceCode,
  7482. bindEmergencyExpertCode: bindEmergencyExpertCode,
  7483. dashboardOrgCodes: dashboardOrgCodes,
  7484. phone: phone,
  7485. email: email,
  7486. userCode: userCode,
  7487. userName: userName,
  7488. fullName: fullName,
  7489. headImageUrl: headImageUrl,
  7490. displayName: displayName,
  7491. createTime: createTime,
  7492. updateTime: updateTime,
  7493. );
  7494. factory ModifyUserRequest.fromJson(Map<String, dynamic> map) {
  7495. return ModifyUserRequest(
  7496. token: map['Token'],
  7497. roleName: map['RoleName'],
  7498. departmentName: map['DepartmentName'],
  7499. hospitalName: map['HospitalName'],
  7500. identityApplyCode: map['IdentityApplyCode'],
  7501. identityCard: map['IdentityCard'] != null ? map['IdentityCard'].cast<String>().toList() : null,
  7502. licenseCard: map['LicenseCard'] != null ? map['LicenseCard'].cast<String>().toList() : null,
  7503. identityApplyRoleCode: map['IdentityApplyRoleCode'],
  7504. identityApplyRoleName: map['IdentityApplyRoleName'],
  7505. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  7506. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  7507. managementUserState: ManagementUserInfoStateEnum.values.firstWhere((e) => e.index == map['ManagementUserState']),
  7508. nickName: map['NickName'],
  7509. organizationCode: map['OrganizationCode'],
  7510. organizationName: map['OrganizationName'],
  7511. rootOrganizationCode: map['RootOrganizationCode'],
  7512. rootOrganizationName: map['RootOrganizationName'],
  7513. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  7514. bindDevices: map['BindDevices'] != null ? map['BindDevices'].cast<String>().toList() : null,
  7515. lastIP: map['LastIP'],
  7516. logintimes: map['Logintimes'],
  7517. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  7518. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  7519. rankCodes: map['RankCodes'] != null ? map['RankCodes'].cast<String>().toList() : null,
  7520. positionCodes: map['PositionCodes'] != null ? map['PositionCodes'].cast<String>().toList() : null,
  7521. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  7522. rankName: map['RankName'],
  7523. positionName: map['PositionName'],
  7524. isDirector: map['IsDirector'],
  7525. deletePatientCodes: map['DeletePatientCodes'] != null ? map['DeletePatientCodes'].cast<String>().toList() : null,
  7526. bindAssistantUserCode: map['BindAssistantUserCode'],
  7527. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  7528. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  7529. signature: map['Signature'],
  7530. language: map['Language'],
  7531. enableReportLabel: map['EnableReportLabel'],
  7532. associatedInfos: map['AssociatedInfos'] != null ? (map['AssociatedInfos'] as List).map((e)=>AssociatedInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  7533. commonPlatformUserId: map['CommonPlatformUserId'],
  7534. bindEmergencyDeviceCode: map['BindEmergencyDeviceCode'],
  7535. bindEmergencyExpertCode: map['BindEmergencyExpertCode'],
  7536. dashboardOrgCodes: map['DashboardOrgCodes'] != null ? map['DashboardOrgCodes'].cast<String>().toList() : null,
  7537. phone: map['Phone'],
  7538. email: map['Email'],
  7539. userCode: map['UserCode'],
  7540. userName: map['UserName'],
  7541. fullName: map['FullName'],
  7542. headImageUrl: map['HeadImageUrl'],
  7543. displayName: map['DisplayName'],
  7544. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7545. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7546. );
  7547. }
  7548. Map<String, dynamic> toJson() {
  7549. final map = super.toJson();
  7550. if(token != null)
  7551. map['Token'] = token;
  7552. return map;
  7553. }
  7554. }
  7555. class PublishReportTemplateRequest extends TokenRequest{
  7556. String? reportTemplateCode;
  7557. PublishReportTemplateRequest({
  7558. this.reportTemplateCode,
  7559. String? token,
  7560. }) : super(
  7561. token: token,
  7562. );
  7563. factory PublishReportTemplateRequest.fromJson(Map<String, dynamic> map) {
  7564. return PublishReportTemplateRequest(
  7565. reportTemplateCode: map['ReportTemplateCode'],
  7566. token: map['Token'],
  7567. );
  7568. }
  7569. Map<String, dynamic> toJson() {
  7570. final map = super.toJson();
  7571. if(reportTemplateCode != null)
  7572. map['ReportTemplateCode'] = reportTemplateCode;
  7573. return map;
  7574. }
  7575. }
  7576. class PublishThesaurusRequest extends TokenRequest{
  7577. String? thesaurusCode;
  7578. PublishThesaurusRequest({
  7579. this.thesaurusCode,
  7580. String? token,
  7581. }) : super(
  7582. token: token,
  7583. );
  7584. factory PublishThesaurusRequest.fromJson(Map<String, dynamic> map) {
  7585. return PublishThesaurusRequest(
  7586. thesaurusCode: map['ThesaurusCode'],
  7587. token: map['Token'],
  7588. );
  7589. }
  7590. Map<String, dynamic> toJson() {
  7591. final map = super.toJson();
  7592. if(thesaurusCode != null)
  7593. map['ThesaurusCode'] = thesaurusCode;
  7594. return map;
  7595. }
  7596. }
  7597. class QueryAnnouncementPageRequest extends PageRequest{
  7598. AnnouncementTypeEnum announcementType;
  7599. AnnouncementStatusEnum announcementStatus;
  7600. String? keyword;
  7601. DateTime? startTime;
  7602. DateTime? endTime;
  7603. QueryAnnouncementPageRequest({
  7604. this.announcementType = AnnouncementTypeEnum.Broadcast,
  7605. this.announcementStatus = AnnouncementStatusEnum.Released,
  7606. this.keyword,
  7607. this.startTime,
  7608. this.endTime,
  7609. int pageIndex = 0,
  7610. int pageSize = 0,
  7611. String? token,
  7612. }) : super(
  7613. pageIndex: pageIndex,
  7614. pageSize: pageSize,
  7615. token: token,
  7616. );
  7617. factory QueryAnnouncementPageRequest.fromJson(Map<String, dynamic> map) {
  7618. return QueryAnnouncementPageRequest(
  7619. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  7620. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  7621. keyword: map['Keyword'],
  7622. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  7623. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  7624. pageIndex: map['PageIndex'],
  7625. pageSize: map['PageSize'],
  7626. token: map['Token'],
  7627. );
  7628. }
  7629. Map<String, dynamic> toJson() {
  7630. final map = super.toJson();
  7631. map['AnnouncementType'] = announcementType.index;
  7632. map['AnnouncementStatus'] = announcementStatus.index;
  7633. if(keyword != null)
  7634. map['Keyword'] = keyword;
  7635. if(startTime != null)
  7636. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  7637. if(endTime != null)
  7638. map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
  7639. return map;
  7640. }
  7641. }
  7642. class QueryDeviceModelBindNumRequest extends TokenRequest{
  7643. String? deviceModelCode;
  7644. QueryDeviceModelBindNumRequest({
  7645. this.deviceModelCode,
  7646. String? token,
  7647. }) : super(
  7648. token: token,
  7649. );
  7650. factory QueryDeviceModelBindNumRequest.fromJson(Map<String, dynamic> map) {
  7651. return QueryDeviceModelBindNumRequest(
  7652. deviceModelCode: map['DeviceModelCode'],
  7653. token: map['Token'],
  7654. );
  7655. }
  7656. Map<String, dynamic> toJson() {
  7657. final map = super.toJson();
  7658. if(deviceModelCode != null)
  7659. map['DeviceModelCode'] = deviceModelCode;
  7660. return map;
  7661. }
  7662. }
  7663. class QueryRoleAdminNumRequest extends TokenRequest{
  7664. String? adminRoleCode;
  7665. QueryRoleAdminNumRequest({
  7666. this.adminRoleCode,
  7667. String? token,
  7668. }) : super(
  7669. token: token,
  7670. );
  7671. factory QueryRoleAdminNumRequest.fromJson(Map<String, dynamic> map) {
  7672. return QueryRoleAdminNumRequest(
  7673. adminRoleCode: map['AdminRoleCode'],
  7674. token: map['Token'],
  7675. );
  7676. }
  7677. Map<String, dynamic> toJson() {
  7678. final map = super.toJson();
  7679. if(adminRoleCode != null)
  7680. map['AdminRoleCode'] = adminRoleCode;
  7681. return map;
  7682. }
  7683. }
  7684. class QueryRoleUserNumRequest extends TokenRequest{
  7685. String? roleCode;
  7686. QueryRoleUserNumRequest({
  7687. this.roleCode,
  7688. String? token,
  7689. }) : super(
  7690. token: token,
  7691. );
  7692. factory QueryRoleUserNumRequest.fromJson(Map<String, dynamic> map) {
  7693. return QueryRoleUserNumRequest(
  7694. roleCode: map['RoleCode'],
  7695. token: map['Token'],
  7696. );
  7697. }
  7698. Map<String, dynamic> toJson() {
  7699. final map = super.toJson();
  7700. if(roleCode != null)
  7701. map['RoleCode'] = roleCode;
  7702. return map;
  7703. }
  7704. }
  7705. class QuerySystemConfigRequest extends TokenRequest{
  7706. String? code;
  7707. String? configKey;
  7708. QuerySystemConfigRequest({
  7709. this.code,
  7710. this.configKey,
  7711. String? token,
  7712. }) : super(
  7713. token: token,
  7714. );
  7715. factory QuerySystemConfigRequest.fromJson(Map<String, dynamic> map) {
  7716. return QuerySystemConfigRequest(
  7717. code: map['Code'],
  7718. configKey: map['ConfigKey'],
  7719. token: map['Token'],
  7720. );
  7721. }
  7722. Map<String, dynamic> toJson() {
  7723. final map = super.toJson();
  7724. if(code != null)
  7725. map['Code'] = code;
  7726. if(configKey != null)
  7727. map['ConfigKey'] = configKey;
  7728. return map;
  7729. }
  7730. }
  7731. class RejectIdentityApplyRequest extends TokenRequest{
  7732. String? identityApplyCode;
  7733. String? rejectReason;
  7734. RejectIdentityApplyRequest({
  7735. this.identityApplyCode,
  7736. this.rejectReason,
  7737. String? token,
  7738. }) : super(
  7739. token: token,
  7740. );
  7741. factory RejectIdentityApplyRequest.fromJson(Map<String, dynamic> map) {
  7742. return RejectIdentityApplyRequest(
  7743. identityApplyCode: map['IdentityApplyCode'],
  7744. rejectReason: map['RejectReason'],
  7745. token: map['Token'],
  7746. );
  7747. }
  7748. Map<String, dynamic> toJson() {
  7749. final map = super.toJson();
  7750. if(identityApplyCode != null)
  7751. map['IdentityApplyCode'] = identityApplyCode;
  7752. if(rejectReason != null)
  7753. map['RejectReason'] = rejectReason;
  7754. return map;
  7755. }
  7756. }
  7757. class RemoveAdminRequest extends TokenRequest{
  7758. String? adminCode;
  7759. RemoveAdminRequest({
  7760. this.adminCode,
  7761. String? token,
  7762. }) : super(
  7763. token: token,
  7764. );
  7765. factory RemoveAdminRequest.fromJson(Map<String, dynamic> map) {
  7766. return RemoveAdminRequest(
  7767. adminCode: map['AdminCode'],
  7768. token: map['Token'],
  7769. );
  7770. }
  7771. Map<String, dynamic> toJson() {
  7772. final map = super.toJson();
  7773. if(adminCode != null)
  7774. map['AdminCode'] = adminCode;
  7775. return map;
  7776. }
  7777. }
  7778. class RemoveOrganizationRequest extends TokenRequest{
  7779. String? organizationCode;
  7780. RemoveOrganizationRequest({
  7781. this.organizationCode,
  7782. String? token,
  7783. }) : super(
  7784. token: token,
  7785. );
  7786. factory RemoveOrganizationRequest.fromJson(Map<String, dynamic> map) {
  7787. return RemoveOrganizationRequest(
  7788. organizationCode: map['OrganizationCode'],
  7789. token: map['Token'],
  7790. );
  7791. }
  7792. Map<String, dynamic> toJson() {
  7793. final map = super.toJson();
  7794. if(organizationCode != null)
  7795. map['OrganizationCode'] = organizationCode;
  7796. return map;
  7797. }
  7798. }
  7799. class RemoveReportLabelRequest extends TokenRequest{
  7800. String? reportLabelCode;
  7801. RemoveReportLabelRequest({
  7802. this.reportLabelCode,
  7803. String? token,
  7804. }) : super(
  7805. token: token,
  7806. );
  7807. factory RemoveReportLabelRequest.fromJson(Map<String, dynamic> map) {
  7808. return RemoveReportLabelRequest(
  7809. reportLabelCode: map['ReportLabelCode'],
  7810. token: map['Token'],
  7811. );
  7812. }
  7813. Map<String, dynamic> toJson() {
  7814. final map = super.toJson();
  7815. if(reportLabelCode != null)
  7816. map['ReportLabelCode'] = reportLabelCode;
  7817. return map;
  7818. }
  7819. }
  7820. class RemoveReportPosterRequest extends TokenRequest{
  7821. String? reportPosterCode;
  7822. RemoveReportPosterRequest({
  7823. this.reportPosterCode,
  7824. String? token,
  7825. }) : super(
  7826. token: token,
  7827. );
  7828. factory RemoveReportPosterRequest.fromJson(Map<String, dynamic> map) {
  7829. return RemoveReportPosterRequest(
  7830. reportPosterCode: map['ReportPosterCode'],
  7831. token: map['Token'],
  7832. );
  7833. }
  7834. Map<String, dynamic> toJson() {
  7835. final map = super.toJson();
  7836. if(reportPosterCode != null)
  7837. map['ReportPosterCode'] = reportPosterCode;
  7838. return map;
  7839. }
  7840. }
  7841. class RemoveUserRequest extends TokenRequest{
  7842. String? userCode;
  7843. RemoveUserRequest({
  7844. this.userCode,
  7845. String? token,
  7846. }) : super(
  7847. token: token,
  7848. );
  7849. factory RemoveUserRequest.fromJson(Map<String, dynamic> map) {
  7850. return RemoveUserRequest(
  7851. userCode: map['UserCode'],
  7852. token: map['Token'],
  7853. );
  7854. }
  7855. Map<String, dynamic> toJson() {
  7856. final map = super.toJson();
  7857. if(userCode != null)
  7858. map['UserCode'] = userCode;
  7859. return map;
  7860. }
  7861. }
  7862. class UnlockAccountRequest extends TokenRequest{
  7863. String? userCode;
  7864. UnlockAccountRequest({
  7865. this.userCode,
  7866. String? token,
  7867. }) : super(
  7868. token: token,
  7869. );
  7870. factory UnlockAccountRequest.fromJson(Map<String, dynamic> map) {
  7871. return UnlockAccountRequest(
  7872. userCode: map['UserCode'],
  7873. token: map['Token'],
  7874. );
  7875. }
  7876. Map<String, dynamic> toJson() {
  7877. final map = super.toJson();
  7878. if(userCode != null)
  7879. map['UserCode'] = userCode;
  7880. return map;
  7881. }
  7882. }
  7883. class ResetAdminPasswordRequest extends TokenRequest{
  7884. String? adminCode;
  7885. String? passWord;
  7886. ResetAdminPasswordRequest({
  7887. this.adminCode,
  7888. this.passWord,
  7889. String? token,
  7890. }) : super(
  7891. token: token,
  7892. );
  7893. factory ResetAdminPasswordRequest.fromJson(Map<String, dynamic> map) {
  7894. return ResetAdminPasswordRequest(
  7895. adminCode: map['AdminCode'],
  7896. passWord: map['PassWord'],
  7897. token: map['Token'],
  7898. );
  7899. }
  7900. Map<String, dynamic> toJson() {
  7901. final map = super.toJson();
  7902. if(adminCode != null)
  7903. map['AdminCode'] = adminCode;
  7904. if(passWord != null)
  7905. map['PassWord'] = passWord;
  7906. return map;
  7907. }
  7908. }
  7909. class ResetUserPasswordRequest extends TokenRequest{
  7910. String? userCode;
  7911. String? passWord;
  7912. ResetUserPasswordRequest({
  7913. this.userCode,
  7914. this.passWord,
  7915. String? token,
  7916. }) : super(
  7917. token: token,
  7918. );
  7919. factory ResetUserPasswordRequest.fromJson(Map<String, dynamic> map) {
  7920. return ResetUserPasswordRequest(
  7921. userCode: map['UserCode'],
  7922. passWord: map['PassWord'],
  7923. token: map['Token'],
  7924. );
  7925. }
  7926. Map<String, dynamic> toJson() {
  7927. final map = super.toJson();
  7928. if(userCode != null)
  7929. map['UserCode'] = userCode;
  7930. if(passWord != null)
  7931. map['PassWord'] = passWord;
  7932. return map;
  7933. }
  7934. }
  7935. class RetryPushReportRecordsRequest extends TokenRequest{
  7936. List<String >? codes;
  7937. RetryPushReportRecordsRequest({
  7938. this.codes,
  7939. String? token,
  7940. }) : super(
  7941. token: token,
  7942. );
  7943. factory RetryPushReportRecordsRequest.fromJson(Map<String, dynamic> map) {
  7944. return RetryPushReportRecordsRequest(
  7945. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  7946. token: map['Token'],
  7947. );
  7948. }
  7949. Map<String, dynamic> toJson() {
  7950. final map = super.toJson();
  7951. if(codes != null)
  7952. map['Codes'] = codes;
  7953. return map;
  7954. }
  7955. }
  7956. class SaveCMSTemplateDetailRequest extends TokenRequest{
  7957. String? cMSTemplateCode;
  7958. String? cMSTemplateName;
  7959. CMSTemplateStatusTypeEnum cMSTemplateStateType;
  7960. String? cMSTemplateJson;
  7961. bool isDefault;
  7962. String? cMSBgColor;
  7963. String? cMSBgImg;
  7964. bool isShowTop;
  7965. String? cMSBorderColor;
  7966. int cMSBorderShadow;
  7967. SaveCMSTemplateDetailRequest({
  7968. this.cMSTemplateCode,
  7969. this.cMSTemplateName,
  7970. this.cMSTemplateStateType = CMSTemplateStatusTypeEnum.UnPublished,
  7971. this.cMSTemplateJson,
  7972. this.isDefault = false,
  7973. this.cMSBgColor,
  7974. this.cMSBgImg,
  7975. this.isShowTop = false,
  7976. this.cMSBorderColor,
  7977. this.cMSBorderShadow = 0,
  7978. String? token,
  7979. }) : super(
  7980. token: token,
  7981. );
  7982. factory SaveCMSTemplateDetailRequest.fromJson(Map<String, dynamic> map) {
  7983. return SaveCMSTemplateDetailRequest(
  7984. cMSTemplateCode: map['CMSTemplateCode'],
  7985. cMSTemplateName: map['CMSTemplateName'],
  7986. cMSTemplateStateType: CMSTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['CMSTemplateStateType']),
  7987. cMSTemplateJson: map['CMSTemplateJson'],
  7988. isDefault: map['IsDefault'],
  7989. cMSBgColor: map['CMSBgColor'],
  7990. cMSBgImg: map['CMSBgImg'],
  7991. isShowTop: map['IsShowTop'],
  7992. cMSBorderColor: map['CMSBorderColor'],
  7993. cMSBorderShadow: map['CMSBorderShadow'],
  7994. token: map['Token'],
  7995. );
  7996. }
  7997. Map<String, dynamic> toJson() {
  7998. final map = super.toJson();
  7999. if(cMSTemplateCode != null)
  8000. map['CMSTemplateCode'] = cMSTemplateCode;
  8001. if(cMSTemplateName != null)
  8002. map['CMSTemplateName'] = cMSTemplateName;
  8003. map['CMSTemplateStateType'] = cMSTemplateStateType.index;
  8004. if(cMSTemplateJson != null)
  8005. map['CMSTemplateJson'] = cMSTemplateJson;
  8006. map['IsDefault'] = isDefault;
  8007. if(cMSBgColor != null)
  8008. map['CMSBgColor'] = cMSBgColor;
  8009. if(cMSBgImg != null)
  8010. map['CMSBgImg'] = cMSBgImg;
  8011. map['IsShowTop'] = isShowTop;
  8012. if(cMSBorderColor != null)
  8013. map['CMSBorderColor'] = cMSBorderColor;
  8014. map['CMSBorderShadow'] = cMSBorderShadow;
  8015. return map;
  8016. }
  8017. }
  8018. class SaveReportLabelRequest extends TokenRequest{
  8019. String? reportLabelCode;
  8020. String? labelName;
  8021. String? languageCode;
  8022. ReportLabelUsageTypeEnum usageType;
  8023. List<String >? labelItems;
  8024. SaveReportLabelRequest({
  8025. this.reportLabelCode,
  8026. this.labelName,
  8027. this.languageCode,
  8028. this.usageType = ReportLabelUsageTypeEnum.People,
  8029. this.labelItems,
  8030. String? token,
  8031. }) : super(
  8032. token: token,
  8033. );
  8034. factory SaveReportLabelRequest.fromJson(Map<String, dynamic> map) {
  8035. return SaveReportLabelRequest(
  8036. reportLabelCode: map['ReportLabelCode'],
  8037. labelName: map['LabelName'],
  8038. languageCode: map['LanguageCode'],
  8039. usageType: ReportLabelUsageTypeEnum.values.firstWhere((e) => e.index == map['UsageType']),
  8040. labelItems: map['LabelItems'] != null ? map['LabelItems'].cast<String>().toList() : null,
  8041. token: map['Token'],
  8042. );
  8043. }
  8044. Map<String, dynamic> toJson() {
  8045. final map = super.toJson();
  8046. if(reportLabelCode != null)
  8047. map['ReportLabelCode'] = reportLabelCode;
  8048. if(labelName != null)
  8049. map['LabelName'] = labelName;
  8050. if(languageCode != null)
  8051. map['LanguageCode'] = languageCode;
  8052. map['UsageType'] = usageType.index;
  8053. if(labelItems != null)
  8054. map['LabelItems'] = labelItems;
  8055. return map;
  8056. }
  8057. }
  8058. class SaveReportPosterRequest extends TokenRequest{
  8059. String? reportPosterCode;
  8060. String? receiverName;
  8061. String? contact;
  8062. String? phone;
  8063. String? targetUrl;
  8064. String? template;
  8065. ReportPosterTypeEnum posterType;
  8066. ReportFormatEnum reportFormat;
  8067. int postTimeout;
  8068. SaveReportPosterRequest({
  8069. this.reportPosterCode,
  8070. this.receiverName,
  8071. this.contact,
  8072. this.phone,
  8073. this.targetUrl,
  8074. this.template,
  8075. this.posterType = ReportPosterTypeEnum.Default,
  8076. this.reportFormat = ReportFormatEnum.Json,
  8077. this.postTimeout = 0,
  8078. String? token,
  8079. }) : super(
  8080. token: token,
  8081. );
  8082. factory SaveReportPosterRequest.fromJson(Map<String, dynamic> map) {
  8083. return SaveReportPosterRequest(
  8084. reportPosterCode: map['ReportPosterCode'],
  8085. receiverName: map['ReceiverName'],
  8086. contact: map['Contact'],
  8087. phone: map['Phone'],
  8088. targetUrl: map['TargetUrl'],
  8089. template: map['Template'],
  8090. posterType: ReportPosterTypeEnum.values.firstWhere((e) => e.index == map['PosterType']),
  8091. reportFormat: ReportFormatEnum.values.firstWhere((e) => e.index == map['ReportFormat']),
  8092. postTimeout: map['PostTimeout'],
  8093. token: map['Token'],
  8094. );
  8095. }
  8096. Map<String, dynamic> toJson() {
  8097. final map = super.toJson();
  8098. if(reportPosterCode != null)
  8099. map['ReportPosterCode'] = reportPosterCode;
  8100. if(receiverName != null)
  8101. map['ReceiverName'] = receiverName;
  8102. if(contact != null)
  8103. map['Contact'] = contact;
  8104. if(phone != null)
  8105. map['Phone'] = phone;
  8106. if(targetUrl != null)
  8107. map['TargetUrl'] = targetUrl;
  8108. if(template != null)
  8109. map['Template'] = template;
  8110. map['PosterType'] = posterType.index;
  8111. map['ReportFormat'] = reportFormat.index;
  8112. map['PostTimeout'] = postTimeout;
  8113. return map;
  8114. }
  8115. }
  8116. class SaveThesaurusRequest extends ThesaurusDTO{
  8117. String? token;
  8118. SaveThesaurusRequest({
  8119. this.token,
  8120. String? thesaurusCode,
  8121. String? thesaurusName,
  8122. ThesaurusStatusTypeEnum thesaurusStateType = ThesaurusStatusTypeEnum.Unpublished,
  8123. ThesaurusTypeEnum thesaurusType = ThesaurusTypeEnum.Default,
  8124. ThesaurusUsageTypeEnum thesaurusUsageType = ThesaurusUsageTypeEnum.People,
  8125. String? organizationCode,
  8126. String? personalCode,
  8127. String? referenceThesaurusCode,
  8128. bool isDefault = false,
  8129. bool isUserDefault = false,
  8130. String? languageCode,
  8131. }) : super(
  8132. thesaurusCode: thesaurusCode,
  8133. thesaurusName: thesaurusName,
  8134. thesaurusStateType: thesaurusStateType,
  8135. thesaurusType: thesaurusType,
  8136. thesaurusUsageType: thesaurusUsageType,
  8137. organizationCode: organizationCode,
  8138. personalCode: personalCode,
  8139. referenceThesaurusCode: referenceThesaurusCode,
  8140. isDefault: isDefault,
  8141. isUserDefault: isUserDefault,
  8142. languageCode: languageCode,
  8143. );
  8144. factory SaveThesaurusRequest.fromJson(Map<String, dynamic> map) {
  8145. return SaveThesaurusRequest(
  8146. token: map['Token'],
  8147. thesaurusCode: map['ThesaurusCode'],
  8148. thesaurusName: map['ThesaurusName'],
  8149. thesaurusStateType: ThesaurusStatusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusStateType']),
  8150. thesaurusType: ThesaurusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusType']),
  8151. thesaurusUsageType: ThesaurusUsageTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusUsageType']),
  8152. organizationCode: map['OrganizationCode'],
  8153. personalCode: map['PersonalCode'],
  8154. referenceThesaurusCode: map['ReferenceThesaurusCode'],
  8155. isDefault: map['IsDefault'],
  8156. isUserDefault: map['IsUserDefault'],
  8157. languageCode: map['LanguageCode'],
  8158. );
  8159. }
  8160. Map<String, dynamic> toJson() {
  8161. final map = super.toJson();
  8162. if(token != null)
  8163. map['Token'] = token;
  8164. return map;
  8165. }
  8166. }
  8167. class SettingReloadRequest extends TokenRequest{
  8168. String? settingKey;
  8169. SettingReloadRequest({
  8170. this.settingKey,
  8171. String? token,
  8172. }) : super(
  8173. token: token,
  8174. );
  8175. factory SettingReloadRequest.fromJson(Map<String, dynamic> map) {
  8176. return SettingReloadRequest(
  8177. settingKey: map['SettingKey'],
  8178. token: map['Token'],
  8179. );
  8180. }
  8181. Map<String, dynamic> toJson() {
  8182. final map = super.toJson();
  8183. if(settingKey != null)
  8184. map['SettingKey'] = settingKey;
  8185. return map;
  8186. }
  8187. }
  8188. class ShareDeviceRequest extends TokenRequest{
  8189. List<String >? userCodeList;
  8190. List<String >? deviceCodes;
  8191. ShareDeviceRequest({
  8192. this.userCodeList,
  8193. this.deviceCodes,
  8194. String? token,
  8195. }) : super(
  8196. token: token,
  8197. );
  8198. factory ShareDeviceRequest.fromJson(Map<String, dynamic> map) {
  8199. return ShareDeviceRequest(
  8200. userCodeList: map['UserCodeList'] != null ? map['UserCodeList'].cast<String>().toList() : null,
  8201. deviceCodes: map['DeviceCodes'] != null ? map['DeviceCodes'].cast<String>().toList() : null,
  8202. token: map['Token'],
  8203. );
  8204. }
  8205. Map<String, dynamic> toJson() {
  8206. final map = super.toJson();
  8207. if(userCodeList != null)
  8208. map['UserCodeList'] = userCodeList;
  8209. if(deviceCodes != null)
  8210. map['DeviceCodes'] = deviceCodes;
  8211. return map;
  8212. }
  8213. }
  8214. class ThesaurusItemRequest extends TokenRequest{
  8215. String? thesaurusItemCode;
  8216. ThesaurusItemTypeEnum thesaurusItemType;
  8217. String? thesaurusItemName;
  8218. String? parentItemCode;
  8219. String? thesaurusCode;
  8220. String? thesaurusItemDescription;
  8221. String? thesaurusItemConclusion;
  8222. ThesaurusItemRequest({
  8223. this.thesaurusItemCode,
  8224. this.thesaurusItemType = ThesaurusItemTypeEnum.Classification,
  8225. this.thesaurusItemName,
  8226. this.parentItemCode,
  8227. this.thesaurusCode,
  8228. this.thesaurusItemDescription,
  8229. this.thesaurusItemConclusion,
  8230. String? token,
  8231. }) : super(
  8232. token: token,
  8233. );
  8234. factory ThesaurusItemRequest.fromJson(Map<String, dynamic> map) {
  8235. return ThesaurusItemRequest(
  8236. thesaurusItemCode: map['ThesaurusItemCode'],
  8237. thesaurusItemType: ThesaurusItemTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusItemType']),
  8238. thesaurusItemName: map['ThesaurusItemName'],
  8239. parentItemCode: map['ParentItemCode'],
  8240. thesaurusCode: map['ThesaurusCode'],
  8241. thesaurusItemDescription: map['ThesaurusItemDescription'],
  8242. thesaurusItemConclusion: map['ThesaurusItemConclusion'],
  8243. token: map['Token'],
  8244. );
  8245. }
  8246. Map<String, dynamic> toJson() {
  8247. final map = super.toJson();
  8248. if(thesaurusItemCode != null)
  8249. map['ThesaurusItemCode'] = thesaurusItemCode;
  8250. map['ThesaurusItemType'] = thesaurusItemType.index;
  8251. if(thesaurusItemName != null)
  8252. map['ThesaurusItemName'] = thesaurusItemName;
  8253. if(parentItemCode != null)
  8254. map['ParentItemCode'] = parentItemCode;
  8255. if(thesaurusCode != null)
  8256. map['ThesaurusCode'] = thesaurusCode;
  8257. if(thesaurusItemDescription != null)
  8258. map['ThesaurusItemDescription'] = thesaurusItemDescription;
  8259. if(thesaurusItemConclusion != null)
  8260. map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
  8261. return map;
  8262. }
  8263. }
  8264. enum GradingConfigTypeEnum {
  8265. Switch,
  8266. Text,
  8267. }
  8268. class UpdateGradingProtectionConfigEnableRequest extends TokenRequest{
  8269. List<String >? codes;
  8270. GradingConfigTypeEnum configType;
  8271. String? value;
  8272. UpdateGradingProtectionConfigEnableRequest({
  8273. this.codes,
  8274. this.configType = GradingConfigTypeEnum.Switch,
  8275. this.value,
  8276. String? token,
  8277. }) : super(
  8278. token: token,
  8279. );
  8280. factory UpdateGradingProtectionConfigEnableRequest.fromJson(Map<String, dynamic> map) {
  8281. return UpdateGradingProtectionConfigEnableRequest(
  8282. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  8283. configType: GradingConfigTypeEnum.values.firstWhere((e) => e.index == map['ConfigType']),
  8284. value: map['Value'],
  8285. token: map['Token'],
  8286. );
  8287. }
  8288. Map<String, dynamic> toJson() {
  8289. final map = super.toJson();
  8290. if(codes != null)
  8291. map['Codes'] = codes;
  8292. map['ConfigType'] = configType.index;
  8293. if(value != null)
  8294. map['Value'] = value;
  8295. return map;
  8296. }
  8297. }
  8298. class FindCourseAlbumPageRequest extends PageRequest{
  8299. String? keyword;
  8300. StudentCourseStatusEnum queryStatus;
  8301. List<String >? courseLabelCodes;
  8302. String? teacherCode;
  8303. String? teacherName;
  8304. CourseViewRangeEnum viewRange;
  8305. Decimal? price;
  8306. FindCourseAlbumPageRequest({
  8307. this.keyword,
  8308. this.queryStatus = StudentCourseStatusEnum.All,
  8309. this.courseLabelCodes,
  8310. this.teacherCode,
  8311. this.teacherName,
  8312. this.viewRange = CourseViewRangeEnum.All,
  8313. this.price,
  8314. int pageIndex = 0,
  8315. int pageSize = 0,
  8316. String? token,
  8317. }) : super(
  8318. pageIndex: pageIndex,
  8319. pageSize: pageSize,
  8320. token: token,
  8321. );
  8322. factory FindCourseAlbumPageRequest.fromJson(Map<String, dynamic> map) {
  8323. return FindCourseAlbumPageRequest(
  8324. keyword: map['Keyword'],
  8325. queryStatus: StudentCourseStatusEnum.values.firstWhere((e) => e.index == map['QueryStatus']),
  8326. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  8327. teacherCode: map['TeacherCode'],
  8328. teacherName: map['TeacherName'],
  8329. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  8330. price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
  8331. pageIndex: map['PageIndex'],
  8332. pageSize: map['PageSize'],
  8333. token: map['Token'],
  8334. );
  8335. }
  8336. Map<String, dynamic> toJson() {
  8337. final map = super.toJson();
  8338. if(keyword != null)
  8339. map['Keyword'] = keyword;
  8340. map['QueryStatus'] = queryStatus.index;
  8341. if(courseLabelCodes != null)
  8342. map['CourseLabelCodes'] = courseLabelCodes;
  8343. if(teacherCode != null)
  8344. map['TeacherCode'] = teacherCode;
  8345. if(teacherName != null)
  8346. map['TeacherName'] = teacherName;
  8347. map['ViewRange'] = viewRange.index;
  8348. if(price != null)
  8349. map['Price'] = price;
  8350. return map;
  8351. }
  8352. }
  8353. class CourseAlbumAddCourseCodesRequest extends TokenRequest{
  8354. List<String >? courseCodes;
  8355. CourseAlbumAddCourseCodesRequest({
  8356. this.courseCodes,
  8357. String? token,
  8358. }) : super(
  8359. token: token,
  8360. );
  8361. factory CourseAlbumAddCourseCodesRequest.fromJson(Map<String, dynamic> map) {
  8362. return CourseAlbumAddCourseCodesRequest(
  8363. courseCodes: map['CourseCodes'] != null ? map['CourseCodes'].cast<String>().toList() : null,
  8364. token: map['Token'],
  8365. );
  8366. }
  8367. Map<String, dynamic> toJson() {
  8368. final map = super.toJson();
  8369. if(courseCodes != null)
  8370. map['CourseCodes'] = courseCodes;
  8371. return map;
  8372. }
  8373. }
  8374. class CourseAlbumAddCourseLabelCodesRequest extends TokenRequest{
  8375. List<String >? courseLabelCodes;
  8376. CourseAlbumAddCourseLabelCodesRequest({
  8377. this.courseLabelCodes,
  8378. String? token,
  8379. }) : super(
  8380. token: token,
  8381. );
  8382. factory CourseAlbumAddCourseLabelCodesRequest.fromJson(Map<String, dynamic> map) {
  8383. return CourseAlbumAddCourseLabelCodesRequest(
  8384. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  8385. token: map['Token'],
  8386. );
  8387. }
  8388. Map<String, dynamic> toJson() {
  8389. final map = super.toJson();
  8390. if(courseLabelCodes != null)
  8391. map['CourseLabelCodes'] = courseLabelCodes;
  8392. return map;
  8393. }
  8394. }
  8395. class SignUpCourseAlbumRequest extends TokenRequest{
  8396. String? courseAlbumCode;
  8397. SignUpCourseAlbumRequest({
  8398. this.courseAlbumCode,
  8399. String? token,
  8400. }) : super(
  8401. token: token,
  8402. );
  8403. factory SignUpCourseAlbumRequest.fromJson(Map<String, dynamic> map) {
  8404. return SignUpCourseAlbumRequest(
  8405. courseAlbumCode: map['CourseAlbumCode'],
  8406. token: map['Token'],
  8407. );
  8408. }
  8409. Map<String, dynamic> toJson() {
  8410. final map = super.toJson();
  8411. if(courseAlbumCode != null)
  8412. map['CourseAlbumCode'] = courseAlbumCode;
  8413. return map;
  8414. }
  8415. }
  8416. class FindVideosByCourseCodeRequest extends TokenRequest{
  8417. String? code;
  8418. String? courseCode;
  8419. FindVideosByCourseCodeRequest({
  8420. this.code,
  8421. this.courseCode,
  8422. String? token,
  8423. }) : super(
  8424. token: token,
  8425. );
  8426. factory FindVideosByCourseCodeRequest.fromJson(Map<String, dynamic> map) {
  8427. return FindVideosByCourseCodeRequest(
  8428. code: map['Code'],
  8429. courseCode: map['CourseCode'],
  8430. token: map['Token'],
  8431. );
  8432. }
  8433. Map<String, dynamic> toJson() {
  8434. final map = super.toJson();
  8435. if(code != null)
  8436. map['Code'] = code;
  8437. if(courseCode != null)
  8438. map['CourseCode'] = courseCode;
  8439. return map;
  8440. }
  8441. }
  8442. class GetReportDetailRequest extends AppletAPIBaseRequest{
  8443. String? reportId;
  8444. GetReportDetailRequest({
  8445. this.reportId,
  8446. String? openId,
  8447. }) : super(
  8448. openId: openId,
  8449. );
  8450. factory GetReportDetailRequest.fromJson(Map<String, dynamic> map) {
  8451. return GetReportDetailRequest(
  8452. reportId: map['ReportId'],
  8453. openId: map['OpenId'],
  8454. );
  8455. }
  8456. Map<String, dynamic> toJson() {
  8457. final map = super.toJson();
  8458. if(reportId != null)
  8459. map['ReportId'] = reportId;
  8460. return map;
  8461. }
  8462. }
  8463. class GetOpLogsByCodesFormMasterRequest {
  8464. List<String >? codes;
  8465. GetOpLogsByCodesFormMasterRequest({
  8466. this.codes,
  8467. });
  8468. factory GetOpLogsByCodesFormMasterRequest.fromJson(Map<String, dynamic> map) {
  8469. return GetOpLogsByCodesFormMasterRequest(
  8470. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  8471. );
  8472. }
  8473. Map<String, dynamic> toJson() {
  8474. final map = Map<String, dynamic>();
  8475. if(codes != null)
  8476. map['Codes'] = codes;
  8477. return map;
  8478. }
  8479. }
  8480. class GetOpLogsFormMasterRequest {
  8481. int cursor;
  8482. String? sourceUrl;
  8483. GetOpLogsFormMasterRequest({
  8484. this.cursor = 0,
  8485. this.sourceUrl,
  8486. });
  8487. factory GetOpLogsFormMasterRequest.fromJson(Map<String, dynamic> map) {
  8488. return GetOpLogsFormMasterRequest(
  8489. cursor: map['Cursor'],
  8490. sourceUrl: map['SourceUrl'],
  8491. );
  8492. }
  8493. Map<String, dynamic> toJson() {
  8494. final map = Map<String, dynamic>();
  8495. map['Cursor'] = cursor;
  8496. if(sourceUrl != null)
  8497. map['SourceUrl'] = sourceUrl;
  8498. return map;
  8499. }
  8500. }
  8501. enum MongoDBActionTypeEnum {
  8502. InsertOne,
  8503. InsertOneAsync,
  8504. InsertMany,
  8505. InsertManyAsync,
  8506. DeleteOne,
  8507. DeleteOneAsync,
  8508. DeleteMany,
  8509. DeleteManyAsync,
  8510. FindOneAndDelete,
  8511. FindOneAndDeleteAsync,
  8512. ReplaceOne,
  8513. ReplaceOneAsync,
  8514. FindOneAndReplace,
  8515. FindOneAndReplaceAsync,
  8516. UpdateOne,
  8517. UpdateOneAsync,
  8518. UpdateMany,
  8519. UpdateManyAsync,
  8520. FindOneAndUpdate,
  8521. FindOneAndUpdateAsync,
  8522. }
  8523. class OperationLogDTO {
  8524. int id;
  8525. String? collectionName;
  8526. MongoDBActionTypeEnum actionType;
  8527. String? bsonContent;
  8528. String? filterContent;
  8529. DateTime? createTime;
  8530. String? code;
  8531. String? sourceUrl;
  8532. bool isSimple;
  8533. OperationLogDTO({
  8534. this.id = 0,
  8535. this.collectionName,
  8536. this.actionType = MongoDBActionTypeEnum.InsertOne,
  8537. this.bsonContent,
  8538. this.filterContent,
  8539. this.createTime,
  8540. this.code,
  8541. this.sourceUrl,
  8542. this.isSimple = false,
  8543. });
  8544. factory OperationLogDTO.fromJson(Map<String, dynamic> map) {
  8545. return OperationLogDTO(
  8546. id: map['Id'],
  8547. collectionName: map['CollectionName'],
  8548. actionType: MongoDBActionTypeEnum.values.firstWhere((e) => e.index == map['ActionType']),
  8549. bsonContent: map['BsonContent'],
  8550. filterContent: map['FilterContent'],
  8551. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  8552. code: map['Code'],
  8553. sourceUrl: map['SourceUrl'],
  8554. isSimple: map['IsSimple'],
  8555. );
  8556. }
  8557. Map<String, dynamic> toJson() {
  8558. final map = Map<String, dynamic>();
  8559. map['Id'] = id;
  8560. if(collectionName != null)
  8561. map['CollectionName'] = collectionName;
  8562. map['ActionType'] = actionType.index;
  8563. if(bsonContent != null)
  8564. map['BsonContent'] = bsonContent;
  8565. if(filterContent != null)
  8566. map['FilterContent'] = filterContent;
  8567. if(createTime != null)
  8568. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  8569. if(code != null)
  8570. map['Code'] = code;
  8571. if(sourceUrl != null)
  8572. map['SourceUrl'] = sourceUrl;
  8573. map['IsSimple'] = isSimple;
  8574. return map;
  8575. }
  8576. }
  8577. class SyncCompleteOpLogsRequest {
  8578. List<OperationLogDTO >? oplogs;
  8579. SyncCompleteOpLogsRequest({
  8580. this.oplogs,
  8581. });
  8582. factory SyncCompleteOpLogsRequest.fromJson(Map<String, dynamic> map) {
  8583. return SyncCompleteOpLogsRequest(
  8584. oplogs: map['Oplogs'] != null ? (map['Oplogs'] as List).map((e)=>OperationLogDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8585. );
  8586. }
  8587. Map<String, dynamic> toJson() {
  8588. final map = Map<String, dynamic>();
  8589. if(oplogs != null)
  8590. map['Oplogs'] = oplogs;
  8591. return map;
  8592. }
  8593. }
  8594. class SyncOpLogToMasterRequest {
  8595. String? collectionName;
  8596. MongoDBActionTypeEnum actionType;
  8597. String? bsonContent;
  8598. String? filterContent;
  8599. DateTime? createTime;
  8600. String? sourceUrl;
  8601. String? code;
  8602. String? serverID;
  8603. bool isSimple;
  8604. SyncOpLogToMasterRequest({
  8605. this.collectionName,
  8606. this.actionType = MongoDBActionTypeEnum.InsertOne,
  8607. this.bsonContent,
  8608. this.filterContent,
  8609. this.createTime,
  8610. this.sourceUrl,
  8611. this.code,
  8612. this.serverID,
  8613. this.isSimple = false,
  8614. });
  8615. factory SyncOpLogToMasterRequest.fromJson(Map<String, dynamic> map) {
  8616. return SyncOpLogToMasterRequest(
  8617. collectionName: map['CollectionName'],
  8618. actionType: MongoDBActionTypeEnum.values.firstWhere((e) => e.index == map['ActionType']),
  8619. bsonContent: map['BsonContent'],
  8620. filterContent: map['FilterContent'],
  8621. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  8622. sourceUrl: map['SourceUrl'],
  8623. code: map['Code'],
  8624. serverID: map['ServerID'],
  8625. isSimple: map['IsSimple'],
  8626. );
  8627. }
  8628. Map<String, dynamic> toJson() {
  8629. final map = Map<String, dynamic>();
  8630. if(collectionName != null)
  8631. map['CollectionName'] = collectionName;
  8632. map['ActionType'] = actionType.index;
  8633. if(bsonContent != null)
  8634. map['BsonContent'] = bsonContent;
  8635. if(filterContent != null)
  8636. map['FilterContent'] = filterContent;
  8637. if(createTime != null)
  8638. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  8639. if(sourceUrl != null)
  8640. map['SourceUrl'] = sourceUrl;
  8641. if(code != null)
  8642. map['Code'] = code;
  8643. if(serverID != null)
  8644. map['ServerID'] = serverID;
  8645. map['IsSimple'] = isSimple;
  8646. return map;
  8647. }
  8648. }
  8649. class NotificationClientInfo {
  8650. String? clientId;
  8651. String? loginServerUrl;
  8652. NotificationClientInfo({
  8653. this.clientId,
  8654. this.loginServerUrl,
  8655. });
  8656. factory NotificationClientInfo.fromJson(Map<String, dynamic> map) {
  8657. return NotificationClientInfo(
  8658. clientId: map['ClientId'],
  8659. loginServerUrl: map['LoginServerUrl'],
  8660. );
  8661. }
  8662. Map<String, dynamic> toJson() {
  8663. final map = Map<String, dynamic>();
  8664. if(clientId != null)
  8665. map['ClientId'] = clientId;
  8666. if(loginServerUrl != null)
  8667. map['LoginServerUrl'] = loginServerUrl;
  8668. return map;
  8669. }
  8670. }
  8671. class ChangeConsultationControllingStateRequest extends TokenRequest{
  8672. String? deviceCode;
  8673. String? userCode;
  8674. bool isControllingParameter;
  8675. ChangeConsultationControllingStateRequest({
  8676. this.deviceCode,
  8677. this.userCode,
  8678. this.isControllingParameter = false,
  8679. String? token,
  8680. }) : super(
  8681. token: token,
  8682. );
  8683. factory ChangeConsultationControllingStateRequest.fromJson(Map<String, dynamic> map) {
  8684. return ChangeConsultationControllingStateRequest(
  8685. deviceCode: map['DeviceCode'],
  8686. userCode: map['UserCode'],
  8687. isControllingParameter: map['IsControllingParameter'],
  8688. token: map['Token'],
  8689. );
  8690. }
  8691. Map<String, dynamic> toJson() {
  8692. final map = super.toJson();
  8693. if(deviceCode != null)
  8694. map['DeviceCode'] = deviceCode;
  8695. if(userCode != null)
  8696. map['UserCode'] = userCode;
  8697. map['IsControllingParameter'] = isControllingParameter;
  8698. return map;
  8699. }
  8700. }
  8701. enum ConsultationMemeberAcceptStatus {
  8702. Default,
  8703. Accepted,
  8704. Rejected,
  8705. }
  8706. enum LiveConsultationRoleEnum {
  8707. Expert,
  8708. General,
  8709. OtherParticipant,
  8710. AssistantDoctor,
  8711. Assistant,
  8712. }
  8713. enum LiveConsultationRoomStatus {
  8714. Default,
  8715. Initiating,
  8716. Cancelled,
  8717. ConnectionTimeout,
  8718. Connected,
  8719. Closed,
  8720. }
  8721. enum VideoProtocol {
  8722. Rtmp,
  8723. Rtc,
  8724. }
  8725. class DeviceJoinLiveConsultationResult {
  8726. String? consultationCode;
  8727. String? deviceCode;
  8728. int roomNo;
  8729. int appId;
  8730. String? deviceSign;
  8731. List<LiveConsultationMember >? memberLiveDatas;
  8732. List<InteractiveBoardDataDTO >? interactiveBoardDatas;
  8733. DeviceJoinLiveConsultationResult({
  8734. this.consultationCode,
  8735. this.deviceCode,
  8736. this.roomNo = 0,
  8737. this.appId = 0,
  8738. this.deviceSign,
  8739. this.memberLiveDatas,
  8740. this.interactiveBoardDatas,
  8741. });
  8742. factory DeviceJoinLiveConsultationResult.fromJson(Map<String, dynamic> map) {
  8743. return DeviceJoinLiveConsultationResult(
  8744. consultationCode: map['ConsultationCode'],
  8745. deviceCode: map['DeviceCode'],
  8746. roomNo: map['RoomNo'],
  8747. appId: map['AppId'],
  8748. deviceSign: map['DeviceSign'],
  8749. memberLiveDatas: map['MemberLiveDatas'] != null ? (map['MemberLiveDatas'] as List).map((e)=>LiveConsultationMember.fromJson(e as Map<String,dynamic>)).toList() : null,
  8750. interactiveBoardDatas: map['InteractiveBoardDatas'] != null ? (map['InteractiveBoardDatas'] as List).map((e)=>InteractiveBoardDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8751. );
  8752. }
  8753. Map<String, dynamic> toJson() {
  8754. final map = Map<String, dynamic>();
  8755. if(consultationCode != null)
  8756. map['ConsultationCode'] = consultationCode;
  8757. if(deviceCode != null)
  8758. map['DeviceCode'] = deviceCode;
  8759. map['RoomNo'] = roomNo;
  8760. map['AppId'] = appId;
  8761. if(deviceSign != null)
  8762. map['DeviceSign'] = deviceSign;
  8763. if(memberLiveDatas != null)
  8764. map['MemberLiveDatas'] = memberLiveDatas;
  8765. if(interactiveBoardDatas != null)
  8766. map['InteractiveBoardDatas'] = interactiveBoardDatas;
  8767. return map;
  8768. }
  8769. }
  8770. class LiveConsultationRoomDTO {
  8771. String? consultationCode;
  8772. LiveConsultationMember? initiator;
  8773. List<LiveConsultationMember >? members;
  8774. List<LiveConsultationMember >? devices;
  8775. LiveConsultationRoomStatus status;
  8776. int roomNo;
  8777. LiveConsultationRoomDTO({
  8778. this.consultationCode,
  8779. this.initiator,
  8780. this.members,
  8781. this.devices,
  8782. this.status = LiveConsultationRoomStatus.Default,
  8783. this.roomNo = 0,
  8784. });
  8785. factory LiveConsultationRoomDTO.fromJson(Map<String, dynamic> map) {
  8786. return LiveConsultationRoomDTO(
  8787. consultationCode: map['ConsultationCode'],
  8788. initiator: map['Initiator'] != null ? LiveConsultationMember.fromJson(map['Initiator']) : null,
  8789. members: map['Members'] != null ? (map['Members'] as List).map((e)=>LiveConsultationMember.fromJson(e as Map<String,dynamic>)).toList() : null,
  8790. devices: map['Devices'] != null ? (map['Devices'] as List).map((e)=>LiveConsultationMember.fromJson(e as Map<String,dynamic>)).toList() : null,
  8791. status: LiveConsultationRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  8792. roomNo: map['RoomNo'],
  8793. );
  8794. }
  8795. Map<String, dynamic> toJson() {
  8796. final map = Map<String, dynamic>();
  8797. if(consultationCode != null)
  8798. map['ConsultationCode'] = consultationCode;
  8799. if(initiator != null)
  8800. map['Initiator'] = initiator;
  8801. if(members != null)
  8802. map['Members'] = members;
  8803. if(devices != null)
  8804. map['Devices'] = devices;
  8805. map['Status'] = status.index;
  8806. map['RoomNo'] = roomNo;
  8807. return map;
  8808. }
  8809. }
  8810. enum BoardTypeEnum {
  8811. ReadOnly,
  8812. Ink,
  8813. Line,
  8814. Erase,
  8815. }
  8816. class FindConsultationSettingRequest extends TokenRequest{
  8817. String? version;
  8818. FindConsultationSettingRequest({
  8819. this.version,
  8820. String? token,
  8821. }) : super(
  8822. token: token,
  8823. );
  8824. factory FindConsultationSettingRequest.fromJson(Map<String, dynamic> map) {
  8825. return FindConsultationSettingRequest(
  8826. version: map['Version'],
  8827. token: map['Token'],
  8828. );
  8829. }
  8830. Map<String, dynamic> toJson() {
  8831. final map = super.toJson();
  8832. if(version != null)
  8833. map['Version'] = version;
  8834. return map;
  8835. }
  8836. }
  8837. class FindOrganizationBindExpertsRequest extends TokenRequest{
  8838. FindOrganizationBindExpertsRequest({
  8839. String? token,
  8840. }) : super(
  8841. token: token,
  8842. );
  8843. factory FindOrganizationBindExpertsRequest.fromJson(Map<String, dynamic> map) {
  8844. return FindOrganizationBindExpertsRequest(
  8845. token: map['Token'],
  8846. );
  8847. }
  8848. Map<String, dynamic> toJson() {
  8849. final map = super.toJson();
  8850. return map;
  8851. }
  8852. }
  8853. class GetEmergencyOrderRequest extends TokenRequest{
  8854. String? emergencySerialNumber;
  8855. GetEmergencyOrderRequest({
  8856. this.emergencySerialNumber,
  8857. String? token,
  8858. }) : super(
  8859. token: token,
  8860. );
  8861. factory GetEmergencyOrderRequest.fromJson(Map<String, dynamic> map) {
  8862. return GetEmergencyOrderRequest(
  8863. emergencySerialNumber: map['EmergencySerialNumber'],
  8864. token: map['Token'],
  8865. );
  8866. }
  8867. Map<String, dynamic> toJson() {
  8868. final map = super.toJson();
  8869. if(emergencySerialNumber != null)
  8870. map['EmergencySerialNumber'] = emergencySerialNumber;
  8871. return map;
  8872. }
  8873. }
  8874. enum AgeUnitsEnum {
  8875. Year,
  8876. YearAndMonth,
  8877. MonthAndWeek,
  8878. WeekAndDay,
  8879. }
  8880. enum AnnounceTypeEnum {
  8881. Broadcast,
  8882. Maintain,
  8883. }
  8884. enum MessageCategoryEnum {
  8885. Consultation,
  8886. Diagnosis,
  8887. Course,
  8888. }
  8889. enum UpgradeEnum {
  8890. Windows,
  8891. Android,
  8892. SonoPost,
  8893. Server,
  8894. FISSDK,
  8895. }
  8896. enum ChannelDescriptionEnum {
  8897. DeskChannel,
  8898. TerminalChannel,
  8899. CameraChannel,
  8900. TerminalTestChannel,
  8901. NoneChannel,
  8902. }
  8903. enum QueryCMSTemplateStatusTypeEnum {
  8904. UnPublished,
  8905. Published,
  8906. }
  8907. enum QueryCMSMessageStatusEnum {
  8908. UnRead,
  8909. Read,
  8910. }
  8911. enum CMSMessageStatusEnum {
  8912. UnRead,
  8913. Read,
  8914. }
  8915. enum StatisticsPlatformEnum {
  8916. Management,
  8917. CMS,
  8918. }
  8919. enum StatisticsBannerTypeEnum {
  8920. PlatActivity,
  8921. Devices,
  8922. Download,
  8923. }
  8924. enum QueryStatisticsBannerTypeEnum {
  8925. PlatActivity,
  8926. Devices,
  8927. Download,
  8928. }
  8929. enum CourseAvailabilityEnum {
  8930. Public,
  8931. Limited,
  8932. Fee,
  8933. Invitation,
  8934. Meeting,
  8935. }
  8936. enum CustomLabelTypeEnum {
  8937. Group,
  8938. Label,
  8939. }
  8940. enum LogEventLevel {
  8941. Verbose,
  8942. Debug,
  8943. Information,
  8944. Warning,
  8945. Error,
  8946. Fatal,
  8947. }
  8948. enum DevicePatchTypeEnum {
  8949. US,
  8950. sonopost,
  8951. FISSDK,
  8952. }
  8953. enum DiagnosisLabelEnum {
  8954. BIRads1,
  8955. Lipomyoma,
  8956. BIRads2,
  8957. BIRads3,
  8958. BIRads4A,
  8959. BIRads4B,
  8960. BIRads4C,
  8961. BIRads5,
  8962. IntrahepaticHyperechoic,
  8963. HHE,
  8964. CYST,
  8965. PossibleCancer,
  8966. FattyLiver,
  8967. DiffuseLesions,
  8968. Cirrhosis,
  8969. PCLD,
  8970. }
  8971. enum DiagnosisBreastLabelEnum {
  8972. BIRads1,
  8973. Lipomyoma,
  8974. BIRads2,
  8975. BIRads3,
  8976. BIRads4A,
  8977. BIRads4B,
  8978. BIRads4C,
  8979. BIRads5,
  8980. }
  8981. enum DiagnosisLiverLabelEnum {
  8982. BIRads1,
  8983. Hyperechoic,
  8984. HHE,
  8985. CYST,
  8986. PossibleCancer,
  8987. FattyLiver,
  8988. DiffuseLesions,
  8989. Cirrhosis,
  8990. PCLD,
  8991. }
  8992. enum AIThyroidLabelEnum {
  8993. TIRADS0,
  8994. TIRADS2,
  8995. TIRADS3,
  8996. TIRADS4a,
  8997. TIRADS4b,
  8998. TIRADS4c,
  8999. TIRADS5,
  9000. DiffuseDisease,
  9001. }
  9002. enum DiseaseConclusion {
  9003. NoConclusion,
  9004. Positive,
  9005. Negative,
  9006. }
  9007. enum ExaminationAvailabilityEnum {
  9008. Public,
  9009. Limited,
  9010. }
  9011. enum ExamTypeEnum {
  9012. GeneralExam,
  9013. AgentExam,
  9014. Standardized,
  9015. }
  9016. enum FunctionalityStatusEnum {
  9017. DemoMode,
  9018. Activity,
  9019. }
  9020. enum GestationalAgeOriginEnum {
  9021. GestationalAge,
  9022. IVF,
  9023. OospermForm,
  9024. BBT,
  9025. LMP,
  9026. }
  9027. enum GetUserListTypeEnum {
  9028. FullName,
  9029. Phone,
  9030. }
  9031. enum HeartbeatTypeEnum {
  9032. ClientToken,
  9033. TerminalToken,
  9034. ThirdpartyToken,
  9035. LiveState,
  9036. RTCState,
  9037. }
  9038. enum ImageTypeEnum {
  9039. placeHolder_0,
  9040. Local,
  9041. Ob,
  9042. WorkSheet,
  9043. Remote,
  9044. DigitalSignature,
  9045. AIDiagnosis,
  9046. }
  9047. enum LabConvertStateEnum {
  9048. NotStarted,
  9049. Running,
  9050. Finish,
  9051. }
  9052. enum LabFileTypeEnum {
  9053. Media,
  9054. ZipFile,
  9055. }
  9056. enum LiveMemberStatusEnum {
  9057. Default,
  9058. Accepted,
  9059. Rejected,
  9060. Joined,
  9061. Left,
  9062. }
  9063. enum LiveProtocolEnum {
  9064. placeHolder_0,
  9065. RTMP,
  9066. RTC,
  9067. }
  9068. enum LiveRoomStatus {
  9069. Default,
  9070. Initiating,
  9071. Cancelled,
  9072. ConnectionTimeout,
  9073. Connected,
  9074. Closed,
  9075. }
  9076. enum LoginProcessorTypeEnum {
  9077. Official,
  9078. Wechat,
  9079. Phone,
  9080. Email,
  9081. placeHolder_4,
  9082. placeHolder_5,
  9083. placeHolder_6,
  9084. placeHolder_7,
  9085. placeHolder_8,
  9086. placeHolder_9,
  9087. placeHolder_10,
  9088. placeHolder_11,
  9089. placeHolder_12,
  9090. placeHolder_13,
  9091. placeHolder_14,
  9092. placeHolder_15,
  9093. placeHolder_16,
  9094. placeHolder_17,
  9095. placeHolder_18,
  9096. placeHolder_19,
  9097. placeHolder_20,
  9098. placeHolder_21,
  9099. placeHolder_22,
  9100. placeHolder_23,
  9101. placeHolder_24,
  9102. placeHolder_25,
  9103. placeHolder_26,
  9104. placeHolder_27,
  9105. placeHolder_28,
  9106. placeHolder_29,
  9107. placeHolder_30,
  9108. placeHolder_31,
  9109. placeHolder_32,
  9110. placeHolder_33,
  9111. placeHolder_34,
  9112. placeHolder_35,
  9113. placeHolder_36,
  9114. placeHolder_37,
  9115. placeHolder_38,
  9116. placeHolder_39,
  9117. placeHolder_40,
  9118. placeHolder_41,
  9119. placeHolder_42,
  9120. placeHolder_43,
  9121. placeHolder_44,
  9122. placeHolder_45,
  9123. placeHolder_46,
  9124. placeHolder_47,
  9125. placeHolder_48,
  9126. placeHolder_49,
  9127. placeHolder_50,
  9128. placeHolder_51,
  9129. placeHolder_52,
  9130. placeHolder_53,
  9131. placeHolder_54,
  9132. placeHolder_55,
  9133. placeHolder_56,
  9134. placeHolder_57,
  9135. placeHolder_58,
  9136. placeHolder_59,
  9137. placeHolder_60,
  9138. placeHolder_61,
  9139. placeHolder_62,
  9140. placeHolder_63,
  9141. placeHolder_64,
  9142. placeHolder_65,
  9143. placeHolder_66,
  9144. placeHolder_67,
  9145. placeHolder_68,
  9146. placeHolder_69,
  9147. placeHolder_70,
  9148. placeHolder_71,
  9149. placeHolder_72,
  9150. placeHolder_73,
  9151. placeHolder_74,
  9152. placeHolder_75,
  9153. placeHolder_76,
  9154. placeHolder_77,
  9155. placeHolder_78,
  9156. placeHolder_79,
  9157. placeHolder_80,
  9158. placeHolder_81,
  9159. placeHolder_82,
  9160. placeHolder_83,
  9161. placeHolder_84,
  9162. placeHolder_85,
  9163. placeHolder_86,
  9164. placeHolder_87,
  9165. placeHolder_88,
  9166. placeHolder_89,
  9167. placeHolder_90,
  9168. placeHolder_91,
  9169. placeHolder_92,
  9170. placeHolder_93,
  9171. placeHolder_94,
  9172. placeHolder_95,
  9173. placeHolder_96,
  9174. placeHolder_97,
  9175. placeHolder_98,
  9176. placeHolder_99,
  9177. placeHolder_100,
  9178. placeHolder_101,
  9179. placeHolder_102,
  9180. placeHolder_103,
  9181. placeHolder_104,
  9182. placeHolder_105,
  9183. placeHolder_106,
  9184. placeHolder_107,
  9185. placeHolder_108,
  9186. placeHolder_109,
  9187. placeHolder_110,
  9188. placeHolder_111,
  9189. placeHolder_112,
  9190. placeHolder_113,
  9191. placeHolder_114,
  9192. placeHolder_115,
  9193. placeHolder_116,
  9194. placeHolder_117,
  9195. placeHolder_118,
  9196. placeHolder_119,
  9197. placeHolder_120,
  9198. placeHolder_121,
  9199. placeHolder_122,
  9200. placeHolder_123,
  9201. placeHolder_124,
  9202. placeHolder_125,
  9203. placeHolder_126,
  9204. placeHolder_127,
  9205. placeHolder_128,
  9206. placeHolder_129,
  9207. placeHolder_130,
  9208. placeHolder_131,
  9209. placeHolder_132,
  9210. placeHolder_133,
  9211. placeHolder_134,
  9212. placeHolder_135,
  9213. placeHolder_136,
  9214. placeHolder_137,
  9215. placeHolder_138,
  9216. placeHolder_139,
  9217. placeHolder_140,
  9218. placeHolder_141,
  9219. placeHolder_142,
  9220. placeHolder_143,
  9221. placeHolder_144,
  9222. placeHolder_145,
  9223. placeHolder_146,
  9224. placeHolder_147,
  9225. placeHolder_148,
  9226. placeHolder_149,
  9227. placeHolder_150,
  9228. placeHolder_151,
  9229. placeHolder_152,
  9230. placeHolder_153,
  9231. placeHolder_154,
  9232. placeHolder_155,
  9233. placeHolder_156,
  9234. placeHolder_157,
  9235. placeHolder_158,
  9236. placeHolder_159,
  9237. placeHolder_160,
  9238. placeHolder_161,
  9239. placeHolder_162,
  9240. placeHolder_163,
  9241. placeHolder_164,
  9242. placeHolder_165,
  9243. placeHolder_166,
  9244. placeHolder_167,
  9245. placeHolder_168,
  9246. placeHolder_169,
  9247. placeHolder_170,
  9248. placeHolder_171,
  9249. placeHolder_172,
  9250. placeHolder_173,
  9251. placeHolder_174,
  9252. placeHolder_175,
  9253. placeHolder_176,
  9254. placeHolder_177,
  9255. placeHolder_178,
  9256. placeHolder_179,
  9257. placeHolder_180,
  9258. placeHolder_181,
  9259. placeHolder_182,
  9260. placeHolder_183,
  9261. placeHolder_184,
  9262. placeHolder_185,
  9263. placeHolder_186,
  9264. placeHolder_187,
  9265. placeHolder_188,
  9266. placeHolder_189,
  9267. placeHolder_190,
  9268. placeHolder_191,
  9269. placeHolder_192,
  9270. placeHolder_193,
  9271. placeHolder_194,
  9272. placeHolder_195,
  9273. placeHolder_196,
  9274. placeHolder_197,
  9275. placeHolder_198,
  9276. placeHolder_199,
  9277. placeHolder_200,
  9278. placeHolder_201,
  9279. placeHolder_202,
  9280. placeHolder_203,
  9281. placeHolder_204,
  9282. placeHolder_205,
  9283. placeHolder_206,
  9284. placeHolder_207,
  9285. placeHolder_208,
  9286. placeHolder_209,
  9287. placeHolder_210,
  9288. placeHolder_211,
  9289. placeHolder_212,
  9290. placeHolder_213,
  9291. placeHolder_214,
  9292. placeHolder_215,
  9293. placeHolder_216,
  9294. placeHolder_217,
  9295. placeHolder_218,
  9296. placeHolder_219,
  9297. placeHolder_220,
  9298. placeHolder_221,
  9299. placeHolder_222,
  9300. placeHolder_223,
  9301. placeHolder_224,
  9302. placeHolder_225,
  9303. placeHolder_226,
  9304. placeHolder_227,
  9305. placeHolder_228,
  9306. placeHolder_229,
  9307. placeHolder_230,
  9308. placeHolder_231,
  9309. placeHolder_232,
  9310. placeHolder_233,
  9311. placeHolder_234,
  9312. placeHolder_235,
  9313. placeHolder_236,
  9314. placeHolder_237,
  9315. placeHolder_238,
  9316. placeHolder_239,
  9317. placeHolder_240,
  9318. placeHolder_241,
  9319. placeHolder_242,
  9320. placeHolder_243,
  9321. placeHolder_244,
  9322. placeHolder_245,
  9323. placeHolder_246,
  9324. placeHolder_247,
  9325. placeHolder_248,
  9326. placeHolder_249,
  9327. placeHolder_250,
  9328. placeHolder_251,
  9329. placeHolder_252,
  9330. placeHolder_253,
  9331. placeHolder_254,
  9332. placeHolder_255,
  9333. placeHolder_256,
  9334. placeHolder_257,
  9335. placeHolder_258,
  9336. placeHolder_259,
  9337. placeHolder_260,
  9338. placeHolder_261,
  9339. placeHolder_262,
  9340. placeHolder_263,
  9341. placeHolder_264,
  9342. placeHolder_265,
  9343. placeHolder_266,
  9344. placeHolder_267,
  9345. placeHolder_268,
  9346. placeHolder_269,
  9347. placeHolder_270,
  9348. placeHolder_271,
  9349. placeHolder_272,
  9350. placeHolder_273,
  9351. placeHolder_274,
  9352. placeHolder_275,
  9353. placeHolder_276,
  9354. placeHolder_277,
  9355. placeHolder_278,
  9356. placeHolder_279,
  9357. placeHolder_280,
  9358. placeHolder_281,
  9359. placeHolder_282,
  9360. placeHolder_283,
  9361. placeHolder_284,
  9362. placeHolder_285,
  9363. placeHolder_286,
  9364. placeHolder_287,
  9365. placeHolder_288,
  9366. placeHolder_289,
  9367. placeHolder_290,
  9368. placeHolder_291,
  9369. placeHolder_292,
  9370. placeHolder_293,
  9371. placeHolder_294,
  9372. placeHolder_295,
  9373. placeHolder_296,
  9374. placeHolder_297,
  9375. placeHolder_298,
  9376. placeHolder_299,
  9377. placeHolder_300,
  9378. placeHolder_301,
  9379. placeHolder_302,
  9380. placeHolder_303,
  9381. placeHolder_304,
  9382. placeHolder_305,
  9383. placeHolder_306,
  9384. placeHolder_307,
  9385. placeHolder_308,
  9386. placeHolder_309,
  9387. placeHolder_310,
  9388. placeHolder_311,
  9389. placeHolder_312,
  9390. placeHolder_313,
  9391. placeHolder_314,
  9392. placeHolder_315,
  9393. placeHolder_316,
  9394. placeHolder_317,
  9395. placeHolder_318,
  9396. placeHolder_319,
  9397. placeHolder_320,
  9398. placeHolder_321,
  9399. placeHolder_322,
  9400. placeHolder_323,
  9401. placeHolder_324,
  9402. placeHolder_325,
  9403. placeHolder_326,
  9404. placeHolder_327,
  9405. placeHolder_328,
  9406. placeHolder_329,
  9407. placeHolder_330,
  9408. placeHolder_331,
  9409. placeHolder_332,
  9410. placeHolder_333,
  9411. placeHolder_334,
  9412. placeHolder_335,
  9413. placeHolder_336,
  9414. placeHolder_337,
  9415. placeHolder_338,
  9416. placeHolder_339,
  9417. placeHolder_340,
  9418. placeHolder_341,
  9419. placeHolder_342,
  9420. placeHolder_343,
  9421. placeHolder_344,
  9422. placeHolder_345,
  9423. placeHolder_346,
  9424. placeHolder_347,
  9425. placeHolder_348,
  9426. placeHolder_349,
  9427. placeHolder_350,
  9428. placeHolder_351,
  9429. placeHolder_352,
  9430. placeHolder_353,
  9431. placeHolder_354,
  9432. placeHolder_355,
  9433. placeHolder_356,
  9434. placeHolder_357,
  9435. placeHolder_358,
  9436. placeHolder_359,
  9437. placeHolder_360,
  9438. placeHolder_361,
  9439. placeHolder_362,
  9440. placeHolder_363,
  9441. placeHolder_364,
  9442. placeHolder_365,
  9443. placeHolder_366,
  9444. placeHolder_367,
  9445. placeHolder_368,
  9446. placeHolder_369,
  9447. placeHolder_370,
  9448. placeHolder_371,
  9449. placeHolder_372,
  9450. placeHolder_373,
  9451. placeHolder_374,
  9452. placeHolder_375,
  9453. placeHolder_376,
  9454. placeHolder_377,
  9455. placeHolder_378,
  9456. placeHolder_379,
  9457. placeHolder_380,
  9458. placeHolder_381,
  9459. placeHolder_382,
  9460. placeHolder_383,
  9461. placeHolder_384,
  9462. placeHolder_385,
  9463. placeHolder_386,
  9464. placeHolder_387,
  9465. placeHolder_388,
  9466. placeHolder_389,
  9467. placeHolder_390,
  9468. placeHolder_391,
  9469. placeHolder_392,
  9470. placeHolder_393,
  9471. placeHolder_394,
  9472. placeHolder_395,
  9473. placeHolder_396,
  9474. placeHolder_397,
  9475. placeHolder_398,
  9476. placeHolder_399,
  9477. placeHolder_400,
  9478. placeHolder_401,
  9479. placeHolder_402,
  9480. placeHolder_403,
  9481. placeHolder_404,
  9482. placeHolder_405,
  9483. placeHolder_406,
  9484. placeHolder_407,
  9485. placeHolder_408,
  9486. placeHolder_409,
  9487. placeHolder_410,
  9488. placeHolder_411,
  9489. placeHolder_412,
  9490. placeHolder_413,
  9491. placeHolder_414,
  9492. placeHolder_415,
  9493. placeHolder_416,
  9494. placeHolder_417,
  9495. placeHolder_418,
  9496. placeHolder_419,
  9497. placeHolder_420,
  9498. placeHolder_421,
  9499. placeHolder_422,
  9500. placeHolder_423,
  9501. placeHolder_424,
  9502. placeHolder_425,
  9503. placeHolder_426,
  9504. placeHolder_427,
  9505. placeHolder_428,
  9506. placeHolder_429,
  9507. placeHolder_430,
  9508. placeHolder_431,
  9509. placeHolder_432,
  9510. placeHolder_433,
  9511. placeHolder_434,
  9512. placeHolder_435,
  9513. placeHolder_436,
  9514. placeHolder_437,
  9515. placeHolder_438,
  9516. placeHolder_439,
  9517. placeHolder_440,
  9518. placeHolder_441,
  9519. placeHolder_442,
  9520. placeHolder_443,
  9521. placeHolder_444,
  9522. placeHolder_445,
  9523. placeHolder_446,
  9524. placeHolder_447,
  9525. placeHolder_448,
  9526. placeHolder_449,
  9527. placeHolder_450,
  9528. placeHolder_451,
  9529. placeHolder_452,
  9530. placeHolder_453,
  9531. placeHolder_454,
  9532. placeHolder_455,
  9533. placeHolder_456,
  9534. placeHolder_457,
  9535. placeHolder_458,
  9536. placeHolder_459,
  9537. placeHolder_460,
  9538. placeHolder_461,
  9539. placeHolder_462,
  9540. placeHolder_463,
  9541. placeHolder_464,
  9542. placeHolder_465,
  9543. placeHolder_466,
  9544. placeHolder_467,
  9545. placeHolder_468,
  9546. placeHolder_469,
  9547. placeHolder_470,
  9548. placeHolder_471,
  9549. placeHolder_472,
  9550. placeHolder_473,
  9551. placeHolder_474,
  9552. placeHolder_475,
  9553. placeHolder_476,
  9554. placeHolder_477,
  9555. placeHolder_478,
  9556. placeHolder_479,
  9557. placeHolder_480,
  9558. placeHolder_481,
  9559. placeHolder_482,
  9560. placeHolder_483,
  9561. placeHolder_484,
  9562. placeHolder_485,
  9563. placeHolder_486,
  9564. placeHolder_487,
  9565. placeHolder_488,
  9566. placeHolder_489,
  9567. placeHolder_490,
  9568. placeHolder_491,
  9569. placeHolder_492,
  9570. placeHolder_493,
  9571. placeHolder_494,
  9572. placeHolder_495,
  9573. placeHolder_496,
  9574. placeHolder_497,
  9575. placeHolder_498,
  9576. placeHolder_499,
  9577. placeHolder_500,
  9578. placeHolder_501,
  9579. placeHolder_502,
  9580. placeHolder_503,
  9581. placeHolder_504,
  9582. placeHolder_505,
  9583. placeHolder_506,
  9584. placeHolder_507,
  9585. placeHolder_508,
  9586. placeHolder_509,
  9587. placeHolder_510,
  9588. placeHolder_511,
  9589. placeHolder_512,
  9590. placeHolder_513,
  9591. placeHolder_514,
  9592. placeHolder_515,
  9593. placeHolder_516,
  9594. placeHolder_517,
  9595. placeHolder_518,
  9596. placeHolder_519,
  9597. placeHolder_520,
  9598. placeHolder_521,
  9599. placeHolder_522,
  9600. placeHolder_523,
  9601. placeHolder_524,
  9602. placeHolder_525,
  9603. placeHolder_526,
  9604. placeHolder_527,
  9605. placeHolder_528,
  9606. placeHolder_529,
  9607. placeHolder_530,
  9608. placeHolder_531,
  9609. placeHolder_532,
  9610. placeHolder_533,
  9611. placeHolder_534,
  9612. placeHolder_535,
  9613. placeHolder_536,
  9614. placeHolder_537,
  9615. placeHolder_538,
  9616. placeHolder_539,
  9617. placeHolder_540,
  9618. placeHolder_541,
  9619. placeHolder_542,
  9620. placeHolder_543,
  9621. placeHolder_544,
  9622. placeHolder_545,
  9623. placeHolder_546,
  9624. placeHolder_547,
  9625. placeHolder_548,
  9626. placeHolder_549,
  9627. placeHolder_550,
  9628. placeHolder_551,
  9629. placeHolder_552,
  9630. placeHolder_553,
  9631. placeHolder_554,
  9632. placeHolder_555,
  9633. placeHolder_556,
  9634. placeHolder_557,
  9635. placeHolder_558,
  9636. placeHolder_559,
  9637. placeHolder_560,
  9638. placeHolder_561,
  9639. placeHolder_562,
  9640. placeHolder_563,
  9641. placeHolder_564,
  9642. placeHolder_565,
  9643. placeHolder_566,
  9644. placeHolder_567,
  9645. placeHolder_568,
  9646. placeHolder_569,
  9647. placeHolder_570,
  9648. placeHolder_571,
  9649. placeHolder_572,
  9650. placeHolder_573,
  9651. placeHolder_574,
  9652. placeHolder_575,
  9653. placeHolder_576,
  9654. placeHolder_577,
  9655. placeHolder_578,
  9656. placeHolder_579,
  9657. placeHolder_580,
  9658. placeHolder_581,
  9659. placeHolder_582,
  9660. placeHolder_583,
  9661. placeHolder_584,
  9662. placeHolder_585,
  9663. placeHolder_586,
  9664. placeHolder_587,
  9665. placeHolder_588,
  9666. placeHolder_589,
  9667. placeHolder_590,
  9668. placeHolder_591,
  9669. placeHolder_592,
  9670. placeHolder_593,
  9671. placeHolder_594,
  9672. placeHolder_595,
  9673. placeHolder_596,
  9674. placeHolder_597,
  9675. placeHolder_598,
  9676. placeHolder_599,
  9677. placeHolder_600,
  9678. placeHolder_601,
  9679. placeHolder_602,
  9680. placeHolder_603,
  9681. placeHolder_604,
  9682. placeHolder_605,
  9683. placeHolder_606,
  9684. placeHolder_607,
  9685. placeHolder_608,
  9686. placeHolder_609,
  9687. placeHolder_610,
  9688. placeHolder_611,
  9689. placeHolder_612,
  9690. placeHolder_613,
  9691. placeHolder_614,
  9692. placeHolder_615,
  9693. placeHolder_616,
  9694. placeHolder_617,
  9695. placeHolder_618,
  9696. placeHolder_619,
  9697. placeHolder_620,
  9698. placeHolder_621,
  9699. placeHolder_622,
  9700. placeHolder_623,
  9701. placeHolder_624,
  9702. placeHolder_625,
  9703. placeHolder_626,
  9704. placeHolder_627,
  9705. placeHolder_628,
  9706. placeHolder_629,
  9707. placeHolder_630,
  9708. placeHolder_631,
  9709. placeHolder_632,
  9710. placeHolder_633,
  9711. placeHolder_634,
  9712. placeHolder_635,
  9713. placeHolder_636,
  9714. placeHolder_637,
  9715. placeHolder_638,
  9716. placeHolder_639,
  9717. placeHolder_640,
  9718. placeHolder_641,
  9719. placeHolder_642,
  9720. placeHolder_643,
  9721. placeHolder_644,
  9722. placeHolder_645,
  9723. placeHolder_646,
  9724. placeHolder_647,
  9725. placeHolder_648,
  9726. placeHolder_649,
  9727. placeHolder_650,
  9728. placeHolder_651,
  9729. placeHolder_652,
  9730. placeHolder_653,
  9731. placeHolder_654,
  9732. placeHolder_655,
  9733. placeHolder_656,
  9734. placeHolder_657,
  9735. placeHolder_658,
  9736. placeHolder_659,
  9737. placeHolder_660,
  9738. placeHolder_661,
  9739. placeHolder_662,
  9740. placeHolder_663,
  9741. placeHolder_664,
  9742. placeHolder_665,
  9743. placeHolder_666,
  9744. placeHolder_667,
  9745. placeHolder_668,
  9746. placeHolder_669,
  9747. placeHolder_670,
  9748. placeHolder_671,
  9749. placeHolder_672,
  9750. placeHolder_673,
  9751. placeHolder_674,
  9752. placeHolder_675,
  9753. placeHolder_676,
  9754. placeHolder_677,
  9755. placeHolder_678,
  9756. placeHolder_679,
  9757. placeHolder_680,
  9758. placeHolder_681,
  9759. placeHolder_682,
  9760. placeHolder_683,
  9761. placeHolder_684,
  9762. placeHolder_685,
  9763. placeHolder_686,
  9764. placeHolder_687,
  9765. placeHolder_688,
  9766. placeHolder_689,
  9767. placeHolder_690,
  9768. placeHolder_691,
  9769. placeHolder_692,
  9770. placeHolder_693,
  9771. placeHolder_694,
  9772. placeHolder_695,
  9773. placeHolder_696,
  9774. placeHolder_697,
  9775. placeHolder_698,
  9776. placeHolder_699,
  9777. placeHolder_700,
  9778. placeHolder_701,
  9779. placeHolder_702,
  9780. placeHolder_703,
  9781. placeHolder_704,
  9782. placeHolder_705,
  9783. placeHolder_706,
  9784. placeHolder_707,
  9785. placeHolder_708,
  9786. placeHolder_709,
  9787. placeHolder_710,
  9788. placeHolder_711,
  9789. placeHolder_712,
  9790. placeHolder_713,
  9791. placeHolder_714,
  9792. placeHolder_715,
  9793. placeHolder_716,
  9794. placeHolder_717,
  9795. placeHolder_718,
  9796. placeHolder_719,
  9797. placeHolder_720,
  9798. placeHolder_721,
  9799. placeHolder_722,
  9800. placeHolder_723,
  9801. placeHolder_724,
  9802. placeHolder_725,
  9803. placeHolder_726,
  9804. placeHolder_727,
  9805. placeHolder_728,
  9806. placeHolder_729,
  9807. placeHolder_730,
  9808. placeHolder_731,
  9809. placeHolder_732,
  9810. placeHolder_733,
  9811. placeHolder_734,
  9812. placeHolder_735,
  9813. placeHolder_736,
  9814. placeHolder_737,
  9815. placeHolder_738,
  9816. placeHolder_739,
  9817. placeHolder_740,
  9818. placeHolder_741,
  9819. placeHolder_742,
  9820. placeHolder_743,
  9821. placeHolder_744,
  9822. placeHolder_745,
  9823. placeHolder_746,
  9824. placeHolder_747,
  9825. placeHolder_748,
  9826. placeHolder_749,
  9827. placeHolder_750,
  9828. placeHolder_751,
  9829. placeHolder_752,
  9830. placeHolder_753,
  9831. placeHolder_754,
  9832. placeHolder_755,
  9833. placeHolder_756,
  9834. placeHolder_757,
  9835. placeHolder_758,
  9836. placeHolder_759,
  9837. placeHolder_760,
  9838. placeHolder_761,
  9839. placeHolder_762,
  9840. placeHolder_763,
  9841. placeHolder_764,
  9842. placeHolder_765,
  9843. placeHolder_766,
  9844. placeHolder_767,
  9845. placeHolder_768,
  9846. placeHolder_769,
  9847. placeHolder_770,
  9848. placeHolder_771,
  9849. placeHolder_772,
  9850. placeHolder_773,
  9851. placeHolder_774,
  9852. placeHolder_775,
  9853. placeHolder_776,
  9854. placeHolder_777,
  9855. placeHolder_778,
  9856. placeHolder_779,
  9857. placeHolder_780,
  9858. placeHolder_781,
  9859. placeHolder_782,
  9860. placeHolder_783,
  9861. placeHolder_784,
  9862. placeHolder_785,
  9863. placeHolder_786,
  9864. placeHolder_787,
  9865. placeHolder_788,
  9866. placeHolder_789,
  9867. placeHolder_790,
  9868. placeHolder_791,
  9869. placeHolder_792,
  9870. placeHolder_793,
  9871. placeHolder_794,
  9872. placeHolder_795,
  9873. placeHolder_796,
  9874. placeHolder_797,
  9875. placeHolder_798,
  9876. placeHolder_799,
  9877. placeHolder_800,
  9878. placeHolder_801,
  9879. placeHolder_802,
  9880. placeHolder_803,
  9881. placeHolder_804,
  9882. placeHolder_805,
  9883. placeHolder_806,
  9884. placeHolder_807,
  9885. placeHolder_808,
  9886. placeHolder_809,
  9887. placeHolder_810,
  9888. placeHolder_811,
  9889. placeHolder_812,
  9890. placeHolder_813,
  9891. placeHolder_814,
  9892. placeHolder_815,
  9893. placeHolder_816,
  9894. placeHolder_817,
  9895. placeHolder_818,
  9896. placeHolder_819,
  9897. placeHolder_820,
  9898. placeHolder_821,
  9899. placeHolder_822,
  9900. placeHolder_823,
  9901. placeHolder_824,
  9902. placeHolder_825,
  9903. placeHolder_826,
  9904. placeHolder_827,
  9905. placeHolder_828,
  9906. placeHolder_829,
  9907. placeHolder_830,
  9908. placeHolder_831,
  9909. placeHolder_832,
  9910. placeHolder_833,
  9911. placeHolder_834,
  9912. placeHolder_835,
  9913. placeHolder_836,
  9914. placeHolder_837,
  9915. placeHolder_838,
  9916. placeHolder_839,
  9917. placeHolder_840,
  9918. placeHolder_841,
  9919. placeHolder_842,
  9920. placeHolder_843,
  9921. placeHolder_844,
  9922. placeHolder_845,
  9923. placeHolder_846,
  9924. placeHolder_847,
  9925. placeHolder_848,
  9926. placeHolder_849,
  9927. placeHolder_850,
  9928. placeHolder_851,
  9929. placeHolder_852,
  9930. placeHolder_853,
  9931. placeHolder_854,
  9932. placeHolder_855,
  9933. placeHolder_856,
  9934. placeHolder_857,
  9935. placeHolder_858,
  9936. placeHolder_859,
  9937. placeHolder_860,
  9938. placeHolder_861,
  9939. placeHolder_862,
  9940. placeHolder_863,
  9941. placeHolder_864,
  9942. placeHolder_865,
  9943. placeHolder_866,
  9944. placeHolder_867,
  9945. placeHolder_868,
  9946. placeHolder_869,
  9947. placeHolder_870,
  9948. placeHolder_871,
  9949. placeHolder_872,
  9950. placeHolder_873,
  9951. placeHolder_874,
  9952. placeHolder_875,
  9953. placeHolder_876,
  9954. placeHolder_877,
  9955. placeHolder_878,
  9956. placeHolder_879,
  9957. placeHolder_880,
  9958. placeHolder_881,
  9959. placeHolder_882,
  9960. placeHolder_883,
  9961. placeHolder_884,
  9962. placeHolder_885,
  9963. placeHolder_886,
  9964. placeHolder_887,
  9965. placeHolder_888,
  9966. placeHolder_889,
  9967. placeHolder_890,
  9968. placeHolder_891,
  9969. placeHolder_892,
  9970. placeHolder_893,
  9971. placeHolder_894,
  9972. placeHolder_895,
  9973. placeHolder_896,
  9974. placeHolder_897,
  9975. placeHolder_898,
  9976. placeHolder_899,
  9977. placeHolder_900,
  9978. placeHolder_901,
  9979. placeHolder_902,
  9980. placeHolder_903,
  9981. placeHolder_904,
  9982. placeHolder_905,
  9983. placeHolder_906,
  9984. placeHolder_907,
  9985. placeHolder_908,
  9986. placeHolder_909,
  9987. placeHolder_910,
  9988. placeHolder_911,
  9989. placeHolder_912,
  9990. placeHolder_913,
  9991. placeHolder_914,
  9992. placeHolder_915,
  9993. placeHolder_916,
  9994. placeHolder_917,
  9995. placeHolder_918,
  9996. placeHolder_919,
  9997. placeHolder_920,
  9998. placeHolder_921,
  9999. placeHolder_922,
  10000. placeHolder_923,
  10001. placeHolder_924,
  10002. placeHolder_925,
  10003. placeHolder_926,
  10004. placeHolder_927,
  10005. placeHolder_928,
  10006. placeHolder_929,
  10007. placeHolder_930,
  10008. placeHolder_931,
  10009. placeHolder_932,
  10010. placeHolder_933,
  10011. placeHolder_934,
  10012. placeHolder_935,
  10013. placeHolder_936,
  10014. placeHolder_937,
  10015. placeHolder_938,
  10016. placeHolder_939,
  10017. placeHolder_940,
  10018. placeHolder_941,
  10019. placeHolder_942,
  10020. placeHolder_943,
  10021. placeHolder_944,
  10022. placeHolder_945,
  10023. placeHolder_946,
  10024. placeHolder_947,
  10025. placeHolder_948,
  10026. placeHolder_949,
  10027. placeHolder_950,
  10028. placeHolder_951,
  10029. placeHolder_952,
  10030. placeHolder_953,
  10031. placeHolder_954,
  10032. placeHolder_955,
  10033. placeHolder_956,
  10034. placeHolder_957,
  10035. placeHolder_958,
  10036. placeHolder_959,
  10037. placeHolder_960,
  10038. placeHolder_961,
  10039. placeHolder_962,
  10040. placeHolder_963,
  10041. placeHolder_964,
  10042. placeHolder_965,
  10043. placeHolder_966,
  10044. placeHolder_967,
  10045. placeHolder_968,
  10046. placeHolder_969,
  10047. placeHolder_970,
  10048. placeHolder_971,
  10049. placeHolder_972,
  10050. placeHolder_973,
  10051. placeHolder_974,
  10052. placeHolder_975,
  10053. placeHolder_976,
  10054. placeHolder_977,
  10055. placeHolder_978,
  10056. placeHolder_979,
  10057. placeHolder_980,
  10058. placeHolder_981,
  10059. placeHolder_982,
  10060. placeHolder_983,
  10061. placeHolder_984,
  10062. placeHolder_985,
  10063. placeHolder_986,
  10064. placeHolder_987,
  10065. placeHolder_988,
  10066. placeHolder_989,
  10067. placeHolder_990,
  10068. placeHolder_991,
  10069. placeHolder_992,
  10070. placeHolder_993,
  10071. placeHolder_994,
  10072. placeHolder_995,
  10073. placeHolder_996,
  10074. placeHolder_997,
  10075. placeHolder_998,
  10076. Unregistered,
  10077. }
  10078. enum AnimalGenderEnum {
  10079. AnimalInfoNotFilled,
  10080. AnimalInfoMale,
  10081. AnimalInfoFemale,
  10082. }
  10083. enum QualifiedState {
  10084. UnSet,
  10085. Qualified,
  10086. UnQualified,
  10087. }
  10088. enum QualityType {
  10089. None,
  10090. Qualified,
  10091. InformationUnCompleted,
  10092. ImageNotClear,
  10093. PositiveSiteNotClear,
  10094. }
  10095. enum RegionGradeEnum {
  10096. Country,
  10097. Province,
  10098. City,
  10099. Area,
  10100. }
  10101. enum RemedicalApparatusTypeEnum {
  10102. BreastOuterUpper,
  10103. BreastInnerUpper,
  10104. BreastOuterLower,
  10105. BreastInnerLower,
  10106. Lobe,
  10107. LobeOfUnder,
  10108. LobeOfInter,
  10109. Thyroid,
  10110. Abdomen,
  10111. }
  10112. enum RemedicalImageLocationTypeEnum {
  10113. BreastImageLocation,
  10114. LiverImageLocation,
  10115. ThyroidImageLocation,
  10116. PositionImageLocation,
  10117. }
  10118. enum RemedicalImagePositionTypeEnum {
  10119. None,
  10120. Left,
  10121. Right,
  10122. Middle,
  10123. }
  10124. enum ReportTemplateQueryTypeEnum {
  10125. All,
  10126. Personal,
  10127. Organization,
  10128. }
  10129. enum SyncTypeEnum {
  10130. Initiate,
  10131. Accept,
  10132. Reject,
  10133. CancelInitiate,
  10134. HeartRateJoin,
  10135. NetworkErr,
  10136. HeartRateLeave,
  10137. Leave,
  10138. Close,
  10139. ChangeMuteState,
  10140. ChangeVideoOpenState,
  10141. InviteIn,
  10142. CancelInviteIn,
  10143. AcceptIn,
  10144. RejectIn,
  10145. ChangeConsultationStatus,
  10146. Agree,
  10147. Notification,
  10148. EmergencyAccept,
  10149. ChangeControllingParameter,
  10150. SendInteractiveBoardData,
  10151. ChangeRoom,
  10152. SaveViewer,
  10153. DeleteViewer,
  10154. DeviceAcceptIn,
  10155. SyncControllingParameter,
  10156. ApplyRemoteConnect,
  10157. AcceptRemoteConnect,
  10158. RejectRemoteConnect,
  10159. ApplyDisConnect,
  10160. AcceptDisConnect,
  10161. DeviceDisconnect,
  10162. DeviceRemoteConnectHeartRate,
  10163. UserRemoteConnectHeartRate,
  10164. DeviceRemoteConnectOutline,
  10165. UserRemoteConnectOutline,
  10166. ConsultionRemoteConnect,
  10167. ConsultionDisConnect,
  10168. RestartDevice,
  10169. AcceptDevice,
  10170. SetShareInfo,
  10171. LeaveDevice,
  10172. RemoteMaintainData,
  10173. ProbeApplication,
  10174. }
  10175. enum SyncServiceEnum {
  10176. Live,
  10177. LiveConsultation,
  10178. Notification,
  10179. ScanLogin,
  10180. Device,
  10181. RemoteConnect,
  10182. }
  10183. enum VideoPermissionsEnum {
  10184. Public,
  10185. Private,
  10186. LinkToCourse,
  10187. Fee,
  10188. AdminAvailable,
  10189. Standardized,
  10190. }
  10191. enum VideoImportanceEnum {
  10192. Normal,
  10193. Importance,
  10194. }
  10195. enum VideoLabelEnum {
  10196. NoRecording,
  10197. NoFastForward,
  10198. TeachingDocument,
  10199. }
  10200. enum WSConnectTypeEnum {
  10201. Default,
  10202. ConsultationSecondWindow,
  10203. EducationSecondWindow,
  10204. RemoteConnectSecondWindow,
  10205. AppletAPI,
  10206. }
  10207. enum ASETypeEnum {
  10208. Off,
  10209. Max,
  10210. Mean,
  10211. Both,
  10212. }
  10213. enum StraightLineShapeEnum {
  10214. StraightLine,
  10215. HalfCircle,
  10216. AutoPWVSlope,
  10217. }
  10218. enum DefinitionMeasureItemsEnum {
  10219. Default,
  10220. UserDefined,
  10221. }
  10222. enum DefinitionPriorityEnum {
  10223. Notset,
  10224. Root,
  10225. Global,
  10226. GlobalCategory,
  10227. GlobalApp,
  10228. FactoryDefault,
  10229. OemDefault,
  10230. UserDefined,
  10231. }
  10232. enum MeasureTypeUnitEnum {
  10233. None,
  10234. AreaUnit,
  10235. VelocityUnit,
  10236. TimeUnit,
  10237. }
  10238. enum UnExecuteAction {
  10239. None,
  10240. OneStep,
  10241. AllSteps,
  10242. GeometryOnly,
  10243. }
  10244. class PriorityPair {
  10245. DefinitionPriorityEnum target;
  10246. DefinitionPriorityEnum? base;
  10247. PriorityPair({
  10248. this.target = DefinitionPriorityEnum.Notset,
  10249. this.base,
  10250. });
  10251. factory PriorityPair.fromJson(Map<String, dynamic> map) {
  10252. return PriorityPair(
  10253. target: DefinitionPriorityEnum.values.firstWhere((e) => e.index == map['Target']),
  10254. base: map['Base'] != null ? DefinitionPriorityEnum.values.firstWhere((e) => e.index == map['Base']) : null,
  10255. );
  10256. }
  10257. Map<String, dynamic> toJson() {
  10258. final map = Map<String, dynamic>();
  10259. map['Target'] = target.index;
  10260. if(base != null)
  10261. map['Base'] = base;
  10262. return map;
  10263. }
  10264. }
  10265. class DefinitionPriorityEnumExtension {
  10266. DefinitionPriorityEnumExtension();
  10267. factory DefinitionPriorityEnumExtension.fromJson(Map<String, dynamic> map) {
  10268. return DefinitionPriorityEnumExtension(
  10269. );
  10270. }
  10271. Map<String, dynamic> toJson() {
  10272. final map = Map<String, dynamic>();
  10273. return map;
  10274. }
  10275. }
  10276. enum TracePeakType {
  10277. Normal,
  10278. OnePeak,
  10279. TwoPeaks,
  10280. }
  10281. enum LineWeightType {
  10282. NormalWeight,
  10283. Thin,
  10284. }
  10285. enum IMTType {
  10286. placeHolder_0,
  10287. Post,
  10288. Ant,
  10289. Both,
  10290. }
  10291. enum MeasureSectionType {
  10292. None,
  10293. Root,
  10294. Application,
  10295. MeasureMode,
  10296. Group,
  10297. Folder,
  10298. Item,
  10299. Calculator,
  10300. OutPut,
  10301. Formular,
  10302. Processor,
  10303. TypeParams,
  10304. }
  10305. enum ModeTypeEnum {
  10306. Undefined,
  10307. Tissue,
  10308. Flow,
  10309. Doppler,
  10310. TissueTM,
  10311. }
  10312. enum ResourceDefPriorityEnum {
  10313. Root,
  10314. placeHolder_1,
  10315. placeHolder_2,
  10316. placeHolder_3,
  10317. placeHolder_4,
  10318. placeHolder_5,
  10319. placeHolder_6,
  10320. placeHolder_7,
  10321. placeHolder_8,
  10322. placeHolder_9,
  10323. placeHolder_10,
  10324. placeHolder_11,
  10325. placeHolder_12,
  10326. placeHolder_13,
  10327. placeHolder_14,
  10328. placeHolder_15,
  10329. placeHolder_16,
  10330. placeHolder_17,
  10331. placeHolder_18,
  10332. placeHolder_19,
  10333. placeHolder_20,
  10334. placeHolder_21,
  10335. placeHolder_22,
  10336. placeHolder_23,
  10337. placeHolder_24,
  10338. placeHolder_25,
  10339. placeHolder_26,
  10340. placeHolder_27,
  10341. placeHolder_28,
  10342. placeHolder_29,
  10343. placeHolder_30,
  10344. placeHolder_31,
  10345. placeHolder_32,
  10346. placeHolder_33,
  10347. placeHolder_34,
  10348. placeHolder_35,
  10349. placeHolder_36,
  10350. placeHolder_37,
  10351. placeHolder_38,
  10352. placeHolder_39,
  10353. FactoryDefault,
  10354. placeHolder_41,
  10355. placeHolder_42,
  10356. placeHolder_43,
  10357. placeHolder_44,
  10358. PackageDefault,
  10359. placeHolder_46,
  10360. placeHolder_47,
  10361. placeHolder_48,
  10362. placeHolder_49,
  10363. OemDefault,
  10364. placeHolder_51,
  10365. placeHolder_52,
  10366. placeHolder_53,
  10367. placeHolder_54,
  10368. placeHolder_55,
  10369. placeHolder_56,
  10370. placeHolder_57,
  10371. placeHolder_58,
  10372. placeHolder_59,
  10373. UserDefined,
  10374. }
  10375. enum Unit {
  10376. None,
  10377. percent,
  10378. fraction,
  10379. placeHolder_3,
  10380. placeHolder_4,
  10381. placeHolder_5,
  10382. placeHolder_6,
  10383. placeHolder_7,
  10384. placeHolder_8,
  10385. placeHolder_9,
  10386. cm,
  10387. mm,
  10388. inch,
  10389. ft,
  10390. placeHolder_14,
  10391. placeHolder_15,
  10392. placeHolder_16,
  10393. placeHolder_17,
  10394. placeHolder_18,
  10395. placeHolder_19,
  10396. s,
  10397. minute,
  10398. hour,
  10399. day,
  10400. week,
  10401. week_day,
  10402. Tick,
  10403. msec,
  10404. placeHolder_28,
  10405. placeHolder_29,
  10406. degree,
  10407. radian,
  10408. placeHolder_32,
  10409. placeHolder_33,
  10410. placeHolder_34,
  10411. placeHolder_35,
  10412. placeHolder_36,
  10413. placeHolder_37,
  10414. placeHolder_38,
  10415. placeHolder_39,
  10416. g,
  10417. mg,
  10418. ng,
  10419. kg,
  10420. oz,
  10421. lb,
  10422. lb_oz,
  10423. placeHolder_47,
  10424. placeHolder_48,
  10425. placeHolder_49,
  10426. cm2,
  10427. mm2,
  10428. m2,
  10429. placeHolder_53,
  10430. placeHolder_54,
  10431. placeHolder_55,
  10432. placeHolder_56,
  10433. placeHolder_57,
  10434. placeHolder_58,
  10435. placeHolder_59,
  10436. cm3,
  10437. mm3,
  10438. ml,
  10439. L,
  10440. placeHolder_64,
  10441. placeHolder_65,
  10442. placeHolder_66,
  10443. placeHolder_67,
  10444. placeHolder_68,
  10445. placeHolder_69,
  10446. cms,
  10447. mms,
  10448. ms,
  10449. placeHolder_73,
  10450. placeHolder_74,
  10451. placeHolder_75,
  10452. placeHolder_76,
  10453. placeHolder_77,
  10454. placeHolder_78,
  10455. placeHolder_79,
  10456. cms2,
  10457. mms2,
  10458. placeHolder_82,
  10459. placeHolder_83,
  10460. placeHolder_84,
  10461. placeHolder_85,
  10462. placeHolder_86,
  10463. placeHolder_87,
  10464. placeHolder_88,
  10465. placeHolder_89,
  10466. cm3s,
  10467. mls,
  10468. mlmin,
  10469. Lmin,
  10470. placeHolder_94,
  10471. placeHolder_95,
  10472. placeHolder_96,
  10473. placeHolder_97,
  10474. placeHolder_98,
  10475. placeHolder_99,
  10476. gcm3,
  10477. gml,
  10478. ngml,
  10479. placeHolder_103,
  10480. placeHolder_104,
  10481. placeHolder_105,
  10482. placeHolder_106,
  10483. placeHolder_107,
  10484. placeHolder_108,
  10485. placeHolder_109,
  10486. mmHg,
  10487. placeHolder_111,
  10488. placeHolder_112,
  10489. placeHolder_113,
  10490. placeHolder_114,
  10491. placeHolder_115,
  10492. placeHolder_116,
  10493. placeHolder_117,
  10494. placeHolder_118,
  10495. placeHolder_119,
  10496. mV,
  10497. placeHolder_121,
  10498. placeHolder_122,
  10499. placeHolder_123,
  10500. placeHolder_124,
  10501. placeHolder_125,
  10502. placeHolder_126,
  10503. placeHolder_127,
  10504. placeHolder_128,
  10505. placeHolder_129,
  10506. Hz,
  10507. KHz,
  10508. HR,
  10509. placeHolder_133,
  10510. placeHolder_134,
  10511. placeHolder_135,
  10512. placeHolder_136,
  10513. placeHolder_137,
  10514. placeHolder_138,
  10515. placeHolder_139,
  10516. cm3m2,
  10517. mlm2,
  10518. placeHolder_142,
  10519. placeHolder_143,
  10520. placeHolder_144,
  10521. placeHolder_145,
  10522. placeHolder_146,
  10523. placeHolder_147,
  10524. placeHolder_148,
  10525. placeHolder_149,
  10526. cm3sm2,
  10527. mlsm2,
  10528. placeHolder_152,
  10529. cm3minm2,
  10530. mlminm2,
  10531. Lminm2,
  10532. placeHolder_156,
  10533. placeHolder_157,
  10534. placeHolder_158,
  10535. placeHolder_159,
  10536. circs,
  10537. placeHolder_161,
  10538. placeHolder_162,
  10539. placeHolder_163,
  10540. placeHolder_164,
  10541. placeHolder_165,
  10542. placeHolder_166,
  10543. placeHolder_167,
  10544. placeHolder_168,
  10545. placeHolder_169,
  10546. mlbeat,
  10547. placeHolder_171,
  10548. placeHolder_172,
  10549. placeHolder_173,
  10550. placeHolder_174,
  10551. placeHolder_175,
  10552. placeHolder_176,
  10553. placeHolder_177,
  10554. placeHolder_178,
  10555. placeHolder_179,
  10556. mm2pa,
  10557. d1mpa,
  10558. kpa,
  10559. placeHolder_183,
  10560. placeHolder_184,
  10561. placeHolder_185,
  10562. placeHolder_186,
  10563. placeHolder_187,
  10564. placeHolder_188,
  10565. placeHolder_189,
  10566. mmHgs,
  10567. placeHolder_191,
  10568. placeHolder_192,
  10569. placeHolder_193,
  10570. placeHolder_194,
  10571. placeHolder_195,
  10572. placeHolder_196,
  10573. placeHolder_197,
  10574. placeHolder_198,
  10575. placeHolder_199,
  10576. gm2,
  10577. kgm2,
  10578. placeHolder_202,
  10579. placeHolder_203,
  10580. placeHolder_204,
  10581. placeHolder_205,
  10582. placeHolder_206,
  10583. placeHolder_207,
  10584. placeHolder_208,
  10585. placeHolder_209,
  10586. cm2m2,
  10587. placeHolder_211,
  10588. placeHolder_212,
  10589. placeHolder_213,
  10590. placeHolder_214,
  10591. placeHolder_215,
  10592. placeHolder_216,
  10593. placeHolder_217,
  10594. placeHolder_218,
  10595. placeHolder_219,
  10596. cmm2,
  10597. mmm2,
  10598. placeHolder_222,
  10599. placeHolder_223,
  10600. placeHolder_224,
  10601. placeHolder_225,
  10602. placeHolder_226,
  10603. placeHolder_227,
  10604. placeHolder_228,
  10605. placeHolder_229,
  10606. pers,
  10607. placeHolder_231,
  10608. placeHolder_232,
  10609. placeHolder_233,
  10610. placeHolder_234,
  10611. placeHolder_235,
  10612. placeHolder_236,
  10613. placeHolder_237,
  10614. placeHolder_238,
  10615. placeHolder_239,
  10616. placeHolder_240,
  10617. placeHolder_241,
  10618. placeHolder_242,
  10619. placeHolder_243,
  10620. placeHolder_244,
  10621. placeHolder_245,
  10622. placeHolder_246,
  10623. placeHolder_247,
  10624. placeHolder_248,
  10625. placeHolder_249,
  10626. Celsius,
  10627. Fahrenheit,
  10628. placeHolder_252,
  10629. placeHolder_253,
  10630. placeHolder_254,
  10631. placeHolder_255,
  10632. placeHolder_256,
  10633. placeHolder_257,
  10634. placeHolder_258,
  10635. placeHolder_259,
  10636. Ohm,
  10637. placeHolder_261,
  10638. placeHolder_262,
  10639. placeHolder_263,
  10640. placeHolder_264,
  10641. placeHolder_265,
  10642. placeHolder_266,
  10643. placeHolder_267,
  10644. placeHolder_268,
  10645. placeHolder_269,
  10646. mmHgml,
  10647. }
  10648. enum QueryCourseSortEnum {
  10649. StartTime,
  10650. Recommended,
  10651. }
  10652. enum QueryCourseTypeEnum {
  10653. All,
  10654. LiveCourse,
  10655. VideoCourse,
  10656. }
  10657. enum ArrowOrientation {
  10658. Down,
  10659. Left,
  10660. Up,
  10661. Right,
  10662. }
  10663. class UserScanInfo {
  10664. String? scanCode;
  10665. ScanLoginSource scanLoginSource;
  10666. Platform platform;
  10667. DateTime? createTime;
  10668. DateTime? expireTime;
  10669. String? installVersion;
  10670. LoginResult? loginResult;
  10671. UserScanInfo({
  10672. this.scanCode,
  10673. this.scanLoginSource = ScanLoginSource.PC,
  10674. this.platform = Platform.Windows,
  10675. this.createTime,
  10676. this.expireTime,
  10677. this.installVersion,
  10678. this.loginResult,
  10679. });
  10680. factory UserScanInfo.fromJson(Map<String, dynamic> map) {
  10681. return UserScanInfo(
  10682. scanCode: map['ScanCode'],
  10683. scanLoginSource: ScanLoginSource.values.firstWhere((e) => e.index == map['ScanLoginSource']),
  10684. platform: Platform.values.firstWhere((e) => e.index == map['Platform']),
  10685. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  10686. expireTime: map['ExpireTime'] != null ? DateTime.parse(map['ExpireTime']) : null,
  10687. installVersion: map['InstallVersion'],
  10688. loginResult: map['LoginResult'] != null ? LoginResult.fromJson(map['LoginResult']) : null,
  10689. );
  10690. }
  10691. Map<String, dynamic> toJson() {
  10692. final map = Map<String, dynamic>();
  10693. if(scanCode != null)
  10694. map['ScanCode'] = scanCode;
  10695. map['ScanLoginSource'] = scanLoginSource.index;
  10696. map['Platform'] = platform.index;
  10697. if(createTime != null)
  10698. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  10699. if(expireTime != null)
  10700. map['ExpireTime'] = JsonRpcUtils.dateFormat(expireTime!);
  10701. if(installVersion != null)
  10702. map['InstallVersion'] = installVersion;
  10703. if(loginResult != null)
  10704. map['LoginResult'] = loginResult;
  10705. return map;
  10706. }
  10707. }
  10708. class UserCMSDTO {
  10709. String? cMSData;
  10710. UserCMSDTO({
  10711. this.cMSData,
  10712. });
  10713. factory UserCMSDTO.fromJson(Map<String, dynamic> map) {
  10714. return UserCMSDTO(
  10715. cMSData: map['CMSData'],
  10716. );
  10717. }
  10718. Map<String, dynamic> toJson() {
  10719. final map = Map<String, dynamic>();
  10720. if(cMSData != null)
  10721. map['CMSData'] = cMSData;
  10722. return map;
  10723. }
  10724. }
  10725. class UserPasswordDTO extends BaseDTO{
  10726. String? userCode;
  10727. String? userName;
  10728. String? secretPassword;
  10729. String? phone;
  10730. String? email;
  10731. String? nickName;
  10732. String? fullName;
  10733. String? headImageUrl;
  10734. String? organizationCode;
  10735. String? rootOrganizationCode;
  10736. List<String >? authorityGroups;
  10737. List<String >? bindDevices;
  10738. String? lastIP;
  10739. int logintimes;
  10740. UserInfoStateEnum userState;
  10741. List<String >? roleCodes;
  10742. List<String >? rankCodes;
  10743. List<String >? positionCodes;
  10744. ApplyStateEnum applyState;
  10745. List<String >? fieldList;
  10746. List<String >? deletePatientCodes;
  10747. bool isBatchExportDiagnoseData;
  10748. String? bindAssistantUserCode;
  10749. String? bindAssistantDoctorUserCode;
  10750. DateTime? passwordUpdateTime;
  10751. List<String >? passwordRecords;
  10752. String? signature;
  10753. String? language;
  10754. bool enableReportLabel;
  10755. UserPasswordDTO({
  10756. this.userCode,
  10757. this.userName,
  10758. this.secretPassword,
  10759. this.phone,
  10760. this.email,
  10761. this.nickName,
  10762. this.fullName,
  10763. this.headImageUrl,
  10764. this.organizationCode,
  10765. this.rootOrganizationCode,
  10766. this.authorityGroups,
  10767. this.bindDevices,
  10768. this.lastIP,
  10769. this.logintimes = 0,
  10770. this.userState = UserInfoStateEnum.Nonactivated,
  10771. this.roleCodes,
  10772. this.rankCodes,
  10773. this.positionCodes,
  10774. this.applyState = ApplyStateEnum.NotApply,
  10775. this.fieldList,
  10776. this.deletePatientCodes,
  10777. this.isBatchExportDiagnoseData = false,
  10778. this.bindAssistantUserCode,
  10779. this.bindAssistantDoctorUserCode,
  10780. this.passwordUpdateTime,
  10781. this.passwordRecords,
  10782. this.signature,
  10783. this.language,
  10784. this.enableReportLabel = false,
  10785. DateTime? createTime,
  10786. DateTime? updateTime,
  10787. }) : super(
  10788. createTime: createTime,
  10789. updateTime: updateTime,
  10790. );
  10791. factory UserPasswordDTO.fromJson(Map<String, dynamic> map) {
  10792. return UserPasswordDTO(
  10793. userCode: map['UserCode'],
  10794. userName: map['UserName'],
  10795. secretPassword: map['SecretPassword'],
  10796. phone: map['Phone'],
  10797. email: map['Email'],
  10798. nickName: map['NickName'],
  10799. fullName: map['FullName'],
  10800. headImageUrl: map['HeadImageUrl'],
  10801. organizationCode: map['OrganizationCode'],
  10802. rootOrganizationCode: map['RootOrganizationCode'],
  10803. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  10804. bindDevices: map['BindDevices'] != null ? map['BindDevices'].cast<String>().toList() : null,
  10805. lastIP: map['LastIP'],
  10806. logintimes: map['Logintimes'],
  10807. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  10808. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  10809. rankCodes: map['RankCodes'] != null ? map['RankCodes'].cast<String>().toList() : null,
  10810. positionCodes: map['PositionCodes'] != null ? map['PositionCodes'].cast<String>().toList() : null,
  10811. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  10812. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  10813. deletePatientCodes: map['DeletePatientCodes'] != null ? map['DeletePatientCodes'].cast<String>().toList() : null,
  10814. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  10815. bindAssistantUserCode: map['BindAssistantUserCode'],
  10816. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  10817. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  10818. passwordRecords: map['PasswordRecords'] != null ? map['PasswordRecords'].cast<String>().toList() : null,
  10819. signature: map['Signature'],
  10820. language: map['Language'],
  10821. enableReportLabel: map['EnableReportLabel'],
  10822. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  10823. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  10824. );
  10825. }
  10826. Map<String, dynamic> toJson() {
  10827. final map = super.toJson();
  10828. if(userCode != null)
  10829. map['UserCode'] = userCode;
  10830. if(userName != null)
  10831. map['UserName'] = userName;
  10832. if(secretPassword != null)
  10833. map['SecretPassword'] = secretPassword;
  10834. if(phone != null)
  10835. map['Phone'] = phone;
  10836. if(email != null)
  10837. map['Email'] = email;
  10838. if(nickName != null)
  10839. map['NickName'] = nickName;
  10840. if(fullName != null)
  10841. map['FullName'] = fullName;
  10842. if(headImageUrl != null)
  10843. map['HeadImageUrl'] = headImageUrl;
  10844. if(organizationCode != null)
  10845. map['OrganizationCode'] = organizationCode;
  10846. if(rootOrganizationCode != null)
  10847. map['RootOrganizationCode'] = rootOrganizationCode;
  10848. if(authorityGroups != null)
  10849. map['AuthorityGroups'] = authorityGroups;
  10850. if(bindDevices != null)
  10851. map['BindDevices'] = bindDevices;
  10852. if(lastIP != null)
  10853. map['LastIP'] = lastIP;
  10854. map['Logintimes'] = logintimes;
  10855. map['UserState'] = userState.index;
  10856. if(roleCodes != null)
  10857. map['RoleCodes'] = roleCodes;
  10858. if(rankCodes != null)
  10859. map['RankCodes'] = rankCodes;
  10860. if(positionCodes != null)
  10861. map['PositionCodes'] = positionCodes;
  10862. map['ApplyState'] = applyState.index;
  10863. if(fieldList != null)
  10864. map['FieldList'] = fieldList;
  10865. if(deletePatientCodes != null)
  10866. map['DeletePatientCodes'] = deletePatientCodes;
  10867. map['IsBatchExportDiagnoseData'] = isBatchExportDiagnoseData;
  10868. if(bindAssistantUserCode != null)
  10869. map['BindAssistantUserCode'] = bindAssistantUserCode;
  10870. if(bindAssistantDoctorUserCode != null)
  10871. map['BindAssistantDoctorUserCode'] = bindAssistantDoctorUserCode;
  10872. if(passwordUpdateTime != null)
  10873. map['PasswordUpdateTime'] = JsonRpcUtils.dateFormat(passwordUpdateTime!);
  10874. if(passwordRecords != null)
  10875. map['PasswordRecords'] = passwordRecords;
  10876. if(signature != null)
  10877. map['Signature'] = signature;
  10878. if(language != null)
  10879. map['Language'] = language;
  10880. map['EnableReportLabel'] = enableReportLabel;
  10881. return map;
  10882. }
  10883. }
  10884. class UserTokenDTO {
  10885. String? token;
  10886. bool passwordExpired;
  10887. UserTokenDTO({
  10888. this.token,
  10889. this.passwordExpired = false,
  10890. });
  10891. factory UserTokenDTO.fromJson(Map<String, dynamic> map) {
  10892. return UserTokenDTO(
  10893. token: map['Token'],
  10894. passwordExpired: map['PasswordExpired'],
  10895. );
  10896. }
  10897. Map<String, dynamic> toJson() {
  10898. final map = Map<String, dynamic>();
  10899. if(token != null)
  10900. map['Token'] = token;
  10901. map['PasswordExpired'] = passwordExpired;
  10902. return map;
  10903. }
  10904. }
  10905. class BaseFeatureItemBaseDTO<T> {
  10906. String? id;
  10907. String? label;
  10908. String? fatherCode;
  10909. String? uniqueCode;
  10910. List<T>? children;
  10911. BaseFeatureItemBaseDTO({
  10912. this.id,
  10913. this.label,
  10914. this.fatherCode,
  10915. this.uniqueCode,
  10916. this.children,
  10917. });
  10918. factory BaseFeatureItemBaseDTO.fromJson(Map<String, dynamic> map) {
  10919. List<T> childrenList = [];
  10920. if (map['Children'] != null) {
  10921. childrenList.addAll(
  10922. (map['Children'] as List).map((e) => FJsonConvert.fromJson<T>(e)!));
  10923. }
  10924. return BaseFeatureItemBaseDTO(
  10925. id: map['Id'],
  10926. label: map['Label'],
  10927. fatherCode: map['FatherCode'],
  10928. uniqueCode: map['UniqueCode'],
  10929. children: childrenList,
  10930. );
  10931. }
  10932. Map<String, dynamic> toJson() {
  10933. final map = Map<String, dynamic>();
  10934. if(id != null)
  10935. map['Id'] = id;
  10936. if(label != null)
  10937. map['Label'] = label;
  10938. if(fatherCode != null)
  10939. map['FatherCode'] = fatherCode;
  10940. if(uniqueCode != null)
  10941. map['UniqueCode'] = uniqueCode;
  10942. if(children != null)
  10943. map['Children'] = children;
  10944. return map;
  10945. }
  10946. }
  10947. class UserFeatureItemDTO extends BaseFeatureItemBaseDTO<UserFeatureItemDTO>{
  10948. UserFeatureItemDTO(
  10949. );
  10950. factory UserFeatureItemDTO.fromJson(Map<String, dynamic> map) {
  10951. return UserFeatureItemDTO(
  10952. );
  10953. }
  10954. Map<String, dynamic> toJson() {
  10955. final map = super.toJson();
  10956. return map;
  10957. }
  10958. }
  10959. class UserAuthorityGroupDTO extends BaseDTO{
  10960. String? userGroupCode;
  10961. String? description;
  10962. List<String >? adminCodes;
  10963. List<String >? features;
  10964. String? createAdmin;
  10965. UserAuthorityGroupDTO({
  10966. this.userGroupCode,
  10967. this.description,
  10968. this.adminCodes,
  10969. this.features,
  10970. this.createAdmin,
  10971. DateTime? createTime,
  10972. DateTime? updateTime,
  10973. }) : super(
  10974. createTime: createTime,
  10975. updateTime: updateTime,
  10976. );
  10977. factory UserAuthorityGroupDTO.fromJson(Map<String, dynamic> map) {
  10978. return UserAuthorityGroupDTO(
  10979. userGroupCode: map['UserGroupCode'],
  10980. description: map['Description'],
  10981. adminCodes: map['AdminCodes'] != null ? map['AdminCodes'].cast<String>().toList() : null,
  10982. features: map['Features'] != null ? map['Features'].cast<String>().toList() : null,
  10983. createAdmin: map['CreateAdmin'],
  10984. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  10985. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  10986. );
  10987. }
  10988. Map<String, dynamic> toJson() {
  10989. final map = super.toJson();
  10990. if(userGroupCode != null)
  10991. map['UserGroupCode'] = userGroupCode;
  10992. if(description != null)
  10993. map['Description'] = description;
  10994. if(adminCodes != null)
  10995. map['AdminCodes'] = adminCodes;
  10996. if(features != null)
  10997. map['Features'] = features;
  10998. if(createAdmin != null)
  10999. map['CreateAdmin'] = createAdmin;
  11000. return map;
  11001. }
  11002. }
  11003. class StorageInfoDTO extends BaseDTO{
  11004. String? token;
  11005. String? fileName;
  11006. String? storageRoute;
  11007. StorageInfoDTO({
  11008. this.token,
  11009. this.fileName,
  11010. this.storageRoute,
  11011. DateTime? createTime,
  11012. DateTime? updateTime,
  11013. }) : super(
  11014. createTime: createTime,
  11015. updateTime: updateTime,
  11016. );
  11017. factory StorageInfoDTO.fromJson(Map<String, dynamic> map) {
  11018. return StorageInfoDTO(
  11019. token: map['Token'],
  11020. fileName: map['FileName'],
  11021. storageRoute: map['StorageRoute'],
  11022. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  11023. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  11024. );
  11025. }
  11026. Map<String, dynamic> toJson() {
  11027. final map = super.toJson();
  11028. if(token != null)
  11029. map['Token'] = token;
  11030. if(fileName != null)
  11031. map['FileName'] = fileName;
  11032. if(storageRoute != null)
  11033. map['StorageRoute'] = storageRoute;
  11034. return map;
  11035. }
  11036. }
  11037. class StatisticDTO extends BaseDTO{
  11038. String? statisticCode;
  11039. String? name;
  11040. String? description;
  11041. String? intervalSetting;
  11042. bool enabled;
  11043. String? handleClass;
  11044. String? serverHost;
  11045. StatisticDTO({
  11046. this.statisticCode,
  11047. this.name,
  11048. this.description,
  11049. this.intervalSetting,
  11050. this.enabled = false,
  11051. this.handleClass,
  11052. this.serverHost,
  11053. DateTime? createTime,
  11054. DateTime? updateTime,
  11055. }) : super(
  11056. createTime: createTime,
  11057. updateTime: updateTime,
  11058. );
  11059. factory StatisticDTO.fromJson(Map<String, dynamic> map) {
  11060. return StatisticDTO(
  11061. statisticCode: map['StatisticCode'],
  11062. name: map['Name'],
  11063. description: map['Description'],
  11064. intervalSetting: map['IntervalSetting'],
  11065. enabled: map['Enabled'],
  11066. handleClass: map['HandleClass'],
  11067. serverHost: map['ServerHost'],
  11068. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  11069. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  11070. );
  11071. }
  11072. Map<String, dynamic> toJson() {
  11073. final map = super.toJson();
  11074. if(statisticCode != null)
  11075. map['StatisticCode'] = statisticCode;
  11076. if(name != null)
  11077. map['Name'] = name;
  11078. if(description != null)
  11079. map['Description'] = description;
  11080. if(intervalSetting != null)
  11081. map['IntervalSetting'] = intervalSetting;
  11082. map['Enabled'] = enabled;
  11083. if(handleClass != null)
  11084. map['HandleClass'] = handleClass;
  11085. if(serverHost != null)
  11086. map['ServerHost'] = serverHost;
  11087. return map;
  11088. }
  11089. }
  11090. class StatisticInfoDTO {
  11091. List<String >? xAxisDatas;
  11092. List<List<double> >? yAxisDatas;
  11093. List<StatisticInfoDTO >? children;
  11094. StatisticInfoDTO({
  11095. this.xAxisDatas,
  11096. this.yAxisDatas,
  11097. this.children,
  11098. });
  11099. factory StatisticInfoDTO.fromJson(Map<String, dynamic> map) {
  11100. return StatisticInfoDTO(
  11101. xAxisDatas: map['XAxisDatas'] != null ? map['XAxisDatas'].cast<String>().toList() : null,
  11102. yAxisDatas: map['YAxisDatas'] != null ? map['YAxisDatas'].cast<List<double>>().toList() : null,
  11103. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11104. );
  11105. }
  11106. Map<String, dynamic> toJson() {
  11107. final map = Map<String, dynamic>();
  11108. if(xAxisDatas != null)
  11109. map['XAxisDatas'] = xAxisDatas;
  11110. if(yAxisDatas != null)
  11111. map['YAxisDatas'] = yAxisDatas;
  11112. if(children != null)
  11113. map['Children'] = children;
  11114. return map;
  11115. }
  11116. }
  11117. class StatisticRecordDTO extends BaseDTO{
  11118. String? statisticRecordCode;
  11119. String? statisticCode;
  11120. String? statisticName;
  11121. String? userCode;
  11122. DateTime? lastestUpdateTime;
  11123. DateTime? nextHandleTime;
  11124. List<String >? xAxisDatas;
  11125. List<List<double> >? yAxisDatas;
  11126. List<StatisticInfoDTO >? children;
  11127. StatisticRecordDTO({
  11128. this.statisticRecordCode,
  11129. this.statisticCode,
  11130. this.statisticName,
  11131. this.userCode,
  11132. this.lastestUpdateTime,
  11133. this.nextHandleTime,
  11134. this.xAxisDatas,
  11135. this.yAxisDatas,
  11136. this.children,
  11137. DateTime? createTime,
  11138. DateTime? updateTime,
  11139. }) : super(
  11140. createTime: createTime,
  11141. updateTime: updateTime,
  11142. );
  11143. factory StatisticRecordDTO.fromJson(Map<String, dynamic> map) {
  11144. return StatisticRecordDTO(
  11145. statisticRecordCode: map['StatisticRecordCode'],
  11146. statisticCode: map['StatisticCode'],
  11147. statisticName: map['StatisticName'],
  11148. userCode: map['UserCode'],
  11149. lastestUpdateTime: map['LastestUpdateTime'] != null ? DateTime.parse(map['LastestUpdateTime']) : null,
  11150. nextHandleTime: map['NextHandleTime'] != null ? DateTime.parse(map['NextHandleTime']) : null,
  11151. xAxisDatas: map['XAxisDatas'] != null ? map['XAxisDatas'].cast<String>().toList() : null,
  11152. yAxisDatas: map['YAxisDatas'] != null ? map['YAxisDatas'].cast<List<double>>().toList() : null,
  11153. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11154. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  11155. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  11156. );
  11157. }
  11158. Map<String, dynamic> toJson() {
  11159. final map = super.toJson();
  11160. if(statisticRecordCode != null)
  11161. map['StatisticRecordCode'] = statisticRecordCode;
  11162. if(statisticCode != null)
  11163. map['StatisticCode'] = statisticCode;
  11164. if(statisticName != null)
  11165. map['StatisticName'] = statisticName;
  11166. if(userCode != null)
  11167. map['UserCode'] = userCode;
  11168. if(lastestUpdateTime != null)
  11169. map['LastestUpdateTime'] = JsonRpcUtils.dateFormat(lastestUpdateTime!);
  11170. if(nextHandleTime != null)
  11171. map['NextHandleTime'] = JsonRpcUtils.dateFormat(nextHandleTime!);
  11172. if(xAxisDatas != null)
  11173. map['XAxisDatas'] = xAxisDatas;
  11174. if(yAxisDatas != null)
  11175. map['YAxisDatas'] = yAxisDatas;
  11176. if(children != null)
  11177. map['Children'] = children;
  11178. return map;
  11179. }
  11180. }
  11181. class ServerListResult extends BaseServerResult{
  11182. bool isDistributed;
  11183. List<ServerInfoDTO >? serverList;
  11184. ServerListResult({
  11185. this.isDistributed = false,
  11186. this.serverList,
  11187. int code = 0,
  11188. }) : super(
  11189. code: code,
  11190. );
  11191. factory ServerListResult.fromJson(Map<String, dynamic> map) {
  11192. return ServerListResult(
  11193. isDistributed: map['IsDistributed'],
  11194. serverList: map['ServerList'] != null ? (map['ServerList'] as List).map((e)=>ServerInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11195. code: map['Code'],
  11196. );
  11197. }
  11198. Map<String, dynamic> toJson() {
  11199. final map = super.toJson();
  11200. map['IsDistributed'] = isDistributed;
  11201. if(serverList != null)
  11202. map['ServerList'] = serverList;
  11203. return map;
  11204. }
  11205. }
  11206. class LoginSuccessResult extends BaseServerResult{
  11207. LoginSuccessResult({
  11208. int code = 0,
  11209. }) : super(
  11210. code: code,
  11211. );
  11212. factory LoginSuccessResult.fromJson(Map<String, dynamic> map) {
  11213. return LoginSuccessResult(
  11214. code: map['Code'],
  11215. );
  11216. }
  11217. Map<String, dynamic> toJson() {
  11218. final map = super.toJson();
  11219. return map;
  11220. }
  11221. }
  11222. class ScheduleDTO extends ClientScheduleDTO{
  11223. List<String >? userCodes;
  11224. String? code;
  11225. ScheduleDTO({
  11226. this.userCodes,
  11227. this.code,
  11228. String? title,
  11229. TransactionStatusEnum status = TransactionStatusEnum.Applied,
  11230. ScheduleTypeEnum scheduleType = ScheduleTypeEnum.Consultation,
  11231. DateTime? startTime,
  11232. DateTime? endTime,
  11233. String? relevanceCode,
  11234. }) : super(
  11235. title: title,
  11236. status: status,
  11237. scheduleType: scheduleType,
  11238. startTime: startTime,
  11239. endTime: endTime,
  11240. relevanceCode: relevanceCode,
  11241. );
  11242. factory ScheduleDTO.fromJson(Map<String, dynamic> map) {
  11243. return ScheduleDTO(
  11244. userCodes: map['UserCodes'] != null ? map['UserCodes'].cast<String>().toList() : null,
  11245. code: map['Code'],
  11246. title: map['Title'],
  11247. status: TransactionStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  11248. scheduleType: ScheduleTypeEnum.values.firstWhere((e) => e.index == map['ScheduleType']),
  11249. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  11250. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  11251. relevanceCode: map['RelevanceCode'],
  11252. );
  11253. }
  11254. Map<String, dynamic> toJson() {
  11255. final map = super.toJson();
  11256. if(userCodes != null)
  11257. map['UserCodes'] = userCodes;
  11258. if(code != null)
  11259. map['Code'] = code;
  11260. return map;
  11261. }
  11262. }
  11263. class LiveMemberDTO {
  11264. String? code;
  11265. LiveMemberEnum memberType;
  11266. String? name;
  11267. String? headImageToken;
  11268. LiveMemberStatus status;
  11269. bool muteOpened;
  11270. bool videoOpened;
  11271. LiveDataDTO? liveData;
  11272. bool isControllingParameter;
  11273. DateTime? firstJoinTime;
  11274. int sortLevel;
  11275. List<VideoDeviceInfoDTO >? videoDeviceInfos;
  11276. LoginSource loginSource;
  11277. String? inviterCode;
  11278. bool backgroundRole;
  11279. LiveMemberDTO({
  11280. this.code,
  11281. this.memberType = LiveMemberEnum.User,
  11282. this.name,
  11283. this.headImageToken,
  11284. this.status = LiveMemberStatus.Default,
  11285. this.muteOpened = false,
  11286. this.videoOpened = false,
  11287. this.liveData,
  11288. this.isControllingParameter = false,
  11289. this.firstJoinTime,
  11290. this.sortLevel = 0,
  11291. this.videoDeviceInfos,
  11292. this.loginSource = LoginSource.PC,
  11293. this.inviterCode,
  11294. this.backgroundRole = false,
  11295. });
  11296. factory LiveMemberDTO.fromJson(Map<String, dynamic> map) {
  11297. return LiveMemberDTO(
  11298. code: map['Code'],
  11299. memberType: LiveMemberEnum.values.firstWhere((e) => e.index == map['MemberType']),
  11300. name: map['Name'],
  11301. headImageToken: map['HeadImageToken'],
  11302. status: LiveMemberStatus.values.firstWhere((e) => e.index == map['Status']),
  11303. muteOpened: map['MuteOpened'],
  11304. videoOpened: map['VideoOpened'],
  11305. liveData: map['LiveData'] != null ? LiveDataDTO.fromJson(map['LiveData']) : null,
  11306. isControllingParameter: map['IsControllingParameter'],
  11307. firstJoinTime: map['FirstJoinTime'] != null ? DateTime.parse(map['FirstJoinTime']) : null,
  11308. sortLevel: map['SortLevel'],
  11309. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11310. loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
  11311. inviterCode: map['InviterCode'],
  11312. backgroundRole: map['BackgroundRole'],
  11313. );
  11314. }
  11315. Map<String, dynamic> toJson() {
  11316. final map = Map<String, dynamic>();
  11317. if(code != null)
  11318. map['Code'] = code;
  11319. map['MemberType'] = memberType.index;
  11320. if(name != null)
  11321. map['Name'] = name;
  11322. if(headImageToken != null)
  11323. map['HeadImageToken'] = headImageToken;
  11324. map['Status'] = status.index;
  11325. map['MuteOpened'] = muteOpened;
  11326. map['VideoOpened'] = videoOpened;
  11327. if(liveData != null)
  11328. map['LiveData'] = liveData;
  11329. map['IsControllingParameter'] = isControllingParameter;
  11330. if(firstJoinTime != null)
  11331. map['FirstJoinTime'] = JsonRpcUtils.dateFormat(firstJoinTime!);
  11332. map['SortLevel'] = sortLevel;
  11333. if(videoDeviceInfos != null)
  11334. map['VideoDeviceInfos'] = videoDeviceInfos;
  11335. map['LoginSource'] = loginSource.index;
  11336. if(inviterCode != null)
  11337. map['InviterCode'] = inviterCode;
  11338. map['BackgroundRole'] = backgroundRole;
  11339. return map;
  11340. }
  11341. }
  11342. class LiveViewerDTO {
  11343. String? userCode;
  11344. String? name;
  11345. DateTime? lastReportTime;
  11346. LiveViewerDTO({
  11347. this.userCode,
  11348. this.name,
  11349. this.lastReportTime,
  11350. });
  11351. factory LiveViewerDTO.fromJson(Map<String, dynamic> map) {
  11352. return LiveViewerDTO(
  11353. userCode: map['UserCode'],
  11354. name: map['Name'],
  11355. lastReportTime: map['LastReportTime'] != null ? DateTime.parse(map['LastReportTime']) : null,
  11356. );
  11357. }
  11358. Map<String, dynamic> toJson() {
  11359. final map = Map<String, dynamic>();
  11360. if(userCode != null)
  11361. map['UserCode'] = userCode;
  11362. if(name != null)
  11363. map['Name'] = name;
  11364. if(lastReportTime != null)
  11365. map['LastReportTime'] = JsonRpcUtils.dateFormat(lastReportTime!);
  11366. return map;
  11367. }
  11368. }
  11369. class LiveRoomInfoDTO {
  11370. String? roomId;
  11371. int roomNo;
  11372. String? msgQueueId;
  11373. List<LiveMemberDTO >? members;
  11374. List<LiveViewerDTO >? viewerInfos;
  11375. LiveMemberDTO? initiator;
  11376. List<LiveMemberDTO >? userInfos;
  11377. List<LiveMemberDTO >? deviceInfos;
  11378. List<LiveMemberDTO >? expertUserInfos;
  11379. List<LiveMemberDTO >? assistantsInfos;
  11380. LiveRoomStatus status;
  11381. String? name;
  11382. DateTime? liveTime;
  11383. int liveStatus;
  11384. List<InteractiveBoardDataDTO >? interactiveBoardDatas;
  11385. LiveRoomInfoDTO({
  11386. this.roomId,
  11387. this.roomNo = 0,
  11388. this.msgQueueId,
  11389. this.members,
  11390. this.viewerInfos,
  11391. this.initiator,
  11392. this.userInfos,
  11393. this.deviceInfos,
  11394. this.expertUserInfos,
  11395. this.assistantsInfos,
  11396. this.status = LiveRoomStatus.Default,
  11397. this.name,
  11398. this.liveTime,
  11399. this.liveStatus = 0,
  11400. this.interactiveBoardDatas,
  11401. });
  11402. factory LiveRoomInfoDTO.fromJson(Map<String, dynamic> map) {
  11403. return LiveRoomInfoDTO(
  11404. roomId: map['RoomId'],
  11405. roomNo: map['RoomNo'],
  11406. msgQueueId: map['MsgQueueId'],
  11407. members: map['Members'] != null ? (map['Members'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11408. viewerInfos: map['ViewerInfos'] != null ? (map['ViewerInfos'] as List).map((e)=>LiveViewerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11409. initiator: map['Initiator'] != null ? LiveMemberDTO.fromJson(map['Initiator']) : null,
  11410. userInfos: map['UserInfos'] != null ? (map['UserInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11411. deviceInfos: map['DeviceInfos'] != null ? (map['DeviceInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11412. expertUserInfos: map['ExpertUserInfos'] != null ? (map['ExpertUserInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11413. assistantsInfos: map['AssistantsInfos'] != null ? (map['AssistantsInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11414. status: LiveRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  11415. name: map['Name'],
  11416. liveTime: map['LiveTime'] != null ? DateTime.parse(map['LiveTime']) : null,
  11417. liveStatus: map['LiveStatus'],
  11418. interactiveBoardDatas: map['InteractiveBoardDatas'] != null ? (map['InteractiveBoardDatas'] as List).map((e)=>InteractiveBoardDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11419. );
  11420. }
  11421. Map<String, dynamic> toJson() {
  11422. final map = Map<String, dynamic>();
  11423. if(roomId != null)
  11424. map['RoomId'] = roomId;
  11425. map['RoomNo'] = roomNo;
  11426. if(msgQueueId != null)
  11427. map['MsgQueueId'] = msgQueueId;
  11428. if(members != null)
  11429. map['Members'] = members;
  11430. if(viewerInfos != null)
  11431. map['ViewerInfos'] = viewerInfos;
  11432. if(initiator != null)
  11433. map['Initiator'] = initiator;
  11434. if(userInfos != null)
  11435. map['UserInfos'] = userInfos;
  11436. if(deviceInfos != null)
  11437. map['DeviceInfos'] = deviceInfos;
  11438. if(expertUserInfos != null)
  11439. map['ExpertUserInfos'] = expertUserInfos;
  11440. if(assistantsInfos != null)
  11441. map['AssistantsInfos'] = assistantsInfos;
  11442. map['Status'] = status.index;
  11443. if(name != null)
  11444. map['Name'] = name;
  11445. if(liveTime != null)
  11446. map['LiveTime'] = JsonRpcUtils.dateFormat(liveTime!);
  11447. map['LiveStatus'] = liveStatus;
  11448. if(interactiveBoardDatas != null)
  11449. map['InteractiveBoardDatas'] = interactiveBoardDatas;
  11450. return map;
  11451. }
  11452. }
  11453. class RtcBoardDataDTO {
  11454. String? userCode;
  11455. String? boardData;
  11456. DateTime? interactiveTime;
  11457. RtcBoardDataDTO({
  11458. this.userCode,
  11459. this.boardData,
  11460. this.interactiveTime,
  11461. });
  11462. factory RtcBoardDataDTO.fromJson(Map<String, dynamic> map) {
  11463. return RtcBoardDataDTO(
  11464. userCode: map['UserCode'],
  11465. boardData: map['BoardData'],
  11466. interactiveTime: map['InteractiveTime'] != null ? DateTime.parse(map['InteractiveTime']) : null,
  11467. );
  11468. }
  11469. Map<String, dynamic> toJson() {
  11470. final map = Map<String, dynamic>();
  11471. if(userCode != null)
  11472. map['UserCode'] = userCode;
  11473. if(boardData != null)
  11474. map['BoardData'] = boardData;
  11475. if(interactiveTime != null)
  11476. map['InteractiveTime'] = JsonRpcUtils.dateFormat(interactiveTime!);
  11477. return map;
  11478. }
  11479. }
  11480. class RtcLiveDataDTO {
  11481. String? pullUrl;
  11482. RtcLiveDataDTO({
  11483. this.pullUrl,
  11484. });
  11485. factory RtcLiveDataDTO.fromJson(Map<String, dynamic> map) {
  11486. return RtcLiveDataDTO(
  11487. pullUrl: map['PullUrl'],
  11488. );
  11489. }
  11490. Map<String, dynamic> toJson() {
  11491. final map = Map<String, dynamic>();
  11492. if(pullUrl != null)
  11493. map['PullUrl'] = pullUrl;
  11494. return map;
  11495. }
  11496. }
  11497. class RtcMemberDTO {
  11498. String? id;
  11499. String? name;
  11500. String? avatarUrl;
  11501. LiveMemberEnum memberType;
  11502. LiveMemberStatus status;
  11503. bool muteOpened;
  11504. bool videoOpened;
  11505. bool isInitiator;
  11506. bool isControllingParameter;
  11507. RtcLiveDataDTO? rtcLiveData;
  11508. RtcMemberDTO({
  11509. this.id,
  11510. this.name,
  11511. this.avatarUrl,
  11512. this.memberType = LiveMemberEnum.User,
  11513. this.status = LiveMemberStatus.Default,
  11514. this.muteOpened = false,
  11515. this.videoOpened = false,
  11516. this.isInitiator = false,
  11517. this.isControllingParameter = false,
  11518. this.rtcLiveData,
  11519. });
  11520. factory RtcMemberDTO.fromJson(Map<String, dynamic> map) {
  11521. return RtcMemberDTO(
  11522. id: map['Id'],
  11523. name: map['Name'],
  11524. avatarUrl: map['AvatarUrl'],
  11525. memberType: LiveMemberEnum.values.firstWhere((e) => e.index == map['MemberType']),
  11526. status: LiveMemberStatus.values.firstWhere((e) => e.index == map['Status']),
  11527. muteOpened: map['MuteOpened'],
  11528. videoOpened: map['VideoOpened'],
  11529. isInitiator: map['IsInitiator'],
  11530. isControllingParameter: map['IsControllingParameter'],
  11531. rtcLiveData: map['RtcLiveData'] != null ? RtcLiveDataDTO.fromJson(map['RtcLiveData']) : null,
  11532. );
  11533. }
  11534. Map<String, dynamic> toJson() {
  11535. final map = Map<String, dynamic>();
  11536. if(id != null)
  11537. map['Id'] = id;
  11538. if(name != null)
  11539. map['Name'] = name;
  11540. if(avatarUrl != null)
  11541. map['AvatarUrl'] = avatarUrl;
  11542. map['MemberType'] = memberType.index;
  11543. map['Status'] = status.index;
  11544. map['MuteOpened'] = muteOpened;
  11545. map['VideoOpened'] = videoOpened;
  11546. map['IsInitiator'] = isInitiator;
  11547. map['IsControllingParameter'] = isControllingParameter;
  11548. if(rtcLiveData != null)
  11549. map['RtcLiveData'] = rtcLiveData;
  11550. return map;
  11551. }
  11552. }
  11553. class RtcViewerDTO {
  11554. String? userCode;
  11555. DateTime? lastReportTime;
  11556. RtcViewerDTO({
  11557. this.userCode,
  11558. this.lastReportTime,
  11559. });
  11560. factory RtcViewerDTO.fromJson(Map<String, dynamic> map) {
  11561. return RtcViewerDTO(
  11562. userCode: map['UserCode'],
  11563. lastReportTime: map['LastReportTime'] != null ? DateTime.parse(map['LastReportTime']) : null,
  11564. );
  11565. }
  11566. Map<String, dynamic> toJson() {
  11567. final map = Map<String, dynamic>();
  11568. if(userCode != null)
  11569. map['UserCode'] = userCode;
  11570. if(lastReportTime != null)
  11571. map['LastReportTime'] = JsonRpcUtils.dateFormat(lastReportTime!);
  11572. return map;
  11573. }
  11574. }
  11575. class RtcRoomDTO {
  11576. String? liveRoomCode;
  11577. String? name;
  11578. String? initiateCode;
  11579. int rtcRoomId;
  11580. int sdkAppId;
  11581. String? msgQueueId;
  11582. LiveRoomStatus status;
  11583. List<RtcMemberDTO >? members;
  11584. List<RtcViewerDTO >? viewers;
  11585. List<RtcBoardDataDTO >? interactiveBoardDatas;
  11586. RtcRoomDTO({
  11587. this.liveRoomCode,
  11588. this.name,
  11589. this.initiateCode,
  11590. this.rtcRoomId = 0,
  11591. this.sdkAppId = 0,
  11592. this.msgQueueId,
  11593. this.status = LiveRoomStatus.Default,
  11594. this.members,
  11595. this.viewers,
  11596. this.interactiveBoardDatas,
  11597. });
  11598. factory RtcRoomDTO.fromJson(Map<String, dynamic> map) {
  11599. return RtcRoomDTO(
  11600. liveRoomCode: map['LiveRoomCode'],
  11601. name: map['Name'],
  11602. initiateCode: map['InitiateCode'],
  11603. rtcRoomId: map['RtcRoomId'],
  11604. sdkAppId: map['SdkAppId'],
  11605. msgQueueId: map['MsgQueueId'],
  11606. status: LiveRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  11607. members: map['Members'] != null ? (map['Members'] as List).map((e)=>RtcMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11608. viewers: map['Viewers'] != null ? (map['Viewers'] as List).map((e)=>RtcViewerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11609. interactiveBoardDatas: map['InteractiveBoardDatas'] != null ? (map['InteractiveBoardDatas'] as List).map((e)=>RtcBoardDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11610. );
  11611. }
  11612. Map<String, dynamic> toJson() {
  11613. final map = Map<String, dynamic>();
  11614. if(liveRoomCode != null)
  11615. map['LiveRoomCode'] = liveRoomCode;
  11616. if(name != null)
  11617. map['Name'] = name;
  11618. if(initiateCode != null)
  11619. map['InitiateCode'] = initiateCode;
  11620. map['RtcRoomId'] = rtcRoomId;
  11621. map['SdkAppId'] = sdkAppId;
  11622. if(msgQueueId != null)
  11623. map['MsgQueueId'] = msgQueueId;
  11624. map['Status'] = status.index;
  11625. if(members != null)
  11626. map['Members'] = members;
  11627. if(viewers != null)
  11628. map['Viewers'] = viewers;
  11629. if(interactiveBoardDatas != null)
  11630. map['InteractiveBoardDatas'] = interactiveBoardDatas;
  11631. return map;
  11632. }
  11633. }
  11634. class ReportElementDTO {
  11635. String? key;
  11636. String? tagId;
  11637. String? name;
  11638. String? aILanguage;
  11639. ReportElementDTO({
  11640. this.key,
  11641. this.tagId,
  11642. this.name,
  11643. this.aILanguage,
  11644. });
  11645. factory ReportElementDTO.fromJson(Map<String, dynamic> map) {
  11646. return ReportElementDTO(
  11647. key: map['Key'],
  11648. tagId: map['TagId'],
  11649. name: map['Name'],
  11650. aILanguage: map['AILanguage'],
  11651. );
  11652. }
  11653. Map<String, dynamic> toJson() {
  11654. final map = Map<String, dynamic>();
  11655. if(key != null)
  11656. map['Key'] = key;
  11657. if(tagId != null)
  11658. map['TagId'] = tagId;
  11659. if(name != null)
  11660. map['Name'] = name;
  11661. if(aILanguage != null)
  11662. map['AILanguage'] = aILanguage;
  11663. return map;
  11664. }
  11665. }
  11666. class ReportPosterDTO extends BaseDTO{
  11667. String? reportPosterCode;
  11668. String? receiverName;
  11669. String? contact;
  11670. String? phone;
  11671. String? targetUrl;
  11672. String? template;
  11673. ReportPosterTypeEnum posterType;
  11674. ReportFormatEnum reportFormat;
  11675. int postTimeout;
  11676. List<String >? deviceIds;
  11677. ReportPosterDTO({
  11678. this.reportPosterCode,
  11679. this.receiverName,
  11680. this.contact,
  11681. this.phone,
  11682. this.targetUrl,
  11683. this.template,
  11684. this.posterType = ReportPosterTypeEnum.Default,
  11685. this.reportFormat = ReportFormatEnum.Json,
  11686. this.postTimeout = 0,
  11687. this.deviceIds,
  11688. DateTime? createTime,
  11689. DateTime? updateTime,
  11690. }) : super(
  11691. createTime: createTime,
  11692. updateTime: updateTime,
  11693. );
  11694. factory ReportPosterDTO.fromJson(Map<String, dynamic> map) {
  11695. return ReportPosterDTO(
  11696. reportPosterCode: map['ReportPosterCode'],
  11697. receiverName: map['ReceiverName'],
  11698. contact: map['Contact'],
  11699. phone: map['Phone'],
  11700. targetUrl: map['TargetUrl'],
  11701. template: map['Template'],
  11702. posterType: ReportPosterTypeEnum.values.firstWhere((e) => e.index == map['PosterType']),
  11703. reportFormat: ReportFormatEnum.values.firstWhere((e) => e.index == map['ReportFormat']),
  11704. postTimeout: map['PostTimeout'],
  11705. deviceIds: map['DeviceIds'] != null ? map['DeviceIds'].cast<String>().toList() : null,
  11706. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  11707. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  11708. );
  11709. }
  11710. Map<String, dynamic> toJson() {
  11711. final map = super.toJson();
  11712. if(reportPosterCode != null)
  11713. map['ReportPosterCode'] = reportPosterCode;
  11714. if(receiverName != null)
  11715. map['ReceiverName'] = receiverName;
  11716. if(contact != null)
  11717. map['Contact'] = contact;
  11718. if(phone != null)
  11719. map['Phone'] = phone;
  11720. if(targetUrl != null)
  11721. map['TargetUrl'] = targetUrl;
  11722. if(template != null)
  11723. map['Template'] = template;
  11724. map['PosterType'] = posterType.index;
  11725. map['ReportFormat'] = reportFormat.index;
  11726. map['PostTimeout'] = postTimeout;
  11727. if(deviceIds != null)
  11728. map['DeviceIds'] = deviceIds;
  11729. return map;
  11730. }
  11731. }
  11732. class ReportPushRecordDTO extends BaseDTO{
  11733. String? pushRecordCode;
  11734. String? patientId;
  11735. String? patientName;
  11736. String? poseterConfigId;
  11737. PushDataStateEnum state;
  11738. String? poseterConfigName;
  11739. String? reportId;
  11740. String? patientRecordId;
  11741. String? pushResultToken;
  11742. String? pushResponse;
  11743. ReportPushRecordDTO({
  11744. this.pushRecordCode,
  11745. this.patientId,
  11746. this.patientName,
  11747. this.poseterConfigId,
  11748. this.state = PushDataStateEnum.UnDo,
  11749. this.poseterConfigName,
  11750. this.reportId,
  11751. this.patientRecordId,
  11752. this.pushResultToken,
  11753. this.pushResponse,
  11754. DateTime? createTime,
  11755. DateTime? updateTime,
  11756. }) : super(
  11757. createTime: createTime,
  11758. updateTime: updateTime,
  11759. );
  11760. factory ReportPushRecordDTO.fromJson(Map<String, dynamic> map) {
  11761. return ReportPushRecordDTO(
  11762. pushRecordCode: map['PushRecordCode'],
  11763. patientId: map['PatientId'],
  11764. patientName: map['PatientName'],
  11765. poseterConfigId: map['PoseterConfigId'],
  11766. state: PushDataStateEnum.values.firstWhere((e) => e.index == map['State']),
  11767. poseterConfigName: map['PoseterConfigName'],
  11768. reportId: map['ReportId'],
  11769. patientRecordId: map['PatientRecordId'],
  11770. pushResultToken: map['PushResultToken'],
  11771. pushResponse: map['PushResponse'],
  11772. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  11773. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  11774. );
  11775. }
  11776. Map<String, dynamic> toJson() {
  11777. final map = super.toJson();
  11778. if(pushRecordCode != null)
  11779. map['PushRecordCode'] = pushRecordCode;
  11780. if(patientId != null)
  11781. map['PatientId'] = patientId;
  11782. if(patientName != null)
  11783. map['PatientName'] = patientName;
  11784. if(poseterConfigId != null)
  11785. map['PoseterConfigId'] = poseterConfigId;
  11786. map['State'] = state.index;
  11787. if(poseterConfigName != null)
  11788. map['PoseterConfigName'] = poseterConfigName;
  11789. if(reportId != null)
  11790. map['ReportId'] = reportId;
  11791. if(patientRecordId != null)
  11792. map['PatientRecordId'] = patientRecordId;
  11793. if(pushResultToken != null)
  11794. map['PushResultToken'] = pushResultToken;
  11795. if(pushResponse != null)
  11796. map['PushResponse'] = pushResponse;
  11797. return map;
  11798. }
  11799. }
  11800. class RegionItemDTO {
  11801. String? c;
  11802. String? g;
  11803. String? f;
  11804. String? n;
  11805. RegionItemDTO({
  11806. this.c,
  11807. this.g,
  11808. this.f,
  11809. this.n,
  11810. });
  11811. factory RegionItemDTO.fromJson(Map<String, dynamic> map) {
  11812. return RegionItemDTO(
  11813. c: map['c'],
  11814. g: map['g'],
  11815. f: map['f'],
  11816. n: map['n'],
  11817. );
  11818. }
  11819. Map<String, dynamic> toJson() {
  11820. final map = Map<String, dynamic>();
  11821. if(c != null)
  11822. map['c'] = c;
  11823. if(g != null)
  11824. map['g'] = g;
  11825. if(f != null)
  11826. map['f'] = f;
  11827. if(n != null)
  11828. map['n'] = n;
  11829. return map;
  11830. }
  11831. }
  11832. class RegionDataDTO {
  11833. String? lang;
  11834. List<RegionItemDTO >? datas;
  11835. RegionDataDTO({
  11836. this.lang,
  11837. this.datas,
  11838. });
  11839. factory RegionDataDTO.fromJson(Map<String, dynamic> map) {
  11840. return RegionDataDTO(
  11841. lang: map['lang'],
  11842. datas: map['datas'] != null ? (map['datas'] as List).map((e)=>RegionItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11843. );
  11844. }
  11845. Map<String, dynamic> toJson() {
  11846. final map = Map<String, dynamic>();
  11847. if(lang != null)
  11848. map['lang'] = lang;
  11849. if(datas != null)
  11850. map['datas'] = datas;
  11851. return map;
  11852. }
  11853. }
  11854. class ReferralRecordSettingDTO extends BaseDTO{
  11855. String? referralRecordSettingCode;
  11856. double limitHours;
  11857. ReferralRecordSettingDTO({
  11858. this.referralRecordSettingCode,
  11859. this.limitHours = 0,
  11860. DateTime? createTime,
  11861. DateTime? updateTime,
  11862. }) : super(
  11863. createTime: createTime,
  11864. updateTime: updateTime,
  11865. );
  11866. factory ReferralRecordSettingDTO.fromJson(Map<String, dynamic> map) {
  11867. return ReferralRecordSettingDTO(
  11868. referralRecordSettingCode: map['ReferralRecordSettingCode'],
  11869. limitHours: double.parse(map['LimitHours'].toString()),
  11870. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  11871. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  11872. );
  11873. }
  11874. Map<String, dynamic> toJson() {
  11875. final map = super.toJson();
  11876. if(referralRecordSettingCode != null)
  11877. map['ReferralRecordSettingCode'] = referralRecordSettingCode;
  11878. map['LimitHours'] = limitHours;
  11879. return map;
  11880. }
  11881. }
  11882. class CreatePaymentRecordResultDTO {
  11883. String? paymentRecordCode;
  11884. CreatePaymentRecordResultDTO({
  11885. this.paymentRecordCode,
  11886. });
  11887. factory CreatePaymentRecordResultDTO.fromJson(Map<String, dynamic> map) {
  11888. return CreatePaymentRecordResultDTO(
  11889. paymentRecordCode: map['PaymentRecordCode'],
  11890. );
  11891. }
  11892. Map<String, dynamic> toJson() {
  11893. final map = Map<String, dynamic>();
  11894. if(paymentRecordCode != null)
  11895. map['PaymentRecordCode'] = paymentRecordCode;
  11896. return map;
  11897. }
  11898. }
  11899. class CreateProductDTO extends BaseDTO{
  11900. String? productCode;
  11901. CreateProductDTO({
  11902. this.productCode,
  11903. DateTime? createTime,
  11904. DateTime? updateTime,
  11905. }) : super(
  11906. createTime: createTime,
  11907. updateTime: updateTime,
  11908. );
  11909. factory CreateProductDTO.fromJson(Map<String, dynamic> map) {
  11910. return CreateProductDTO(
  11911. productCode: map['ProductCode'],
  11912. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  11913. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  11914. );
  11915. }
  11916. Map<String, dynamic> toJson() {
  11917. final map = super.toJson();
  11918. if(productCode != null)
  11919. map['ProductCode'] = productCode;
  11920. return map;
  11921. }
  11922. }
  11923. class PaymentRecordDTO extends BaseDTO{
  11924. String? orderCode;
  11925. double payAmount;
  11926. DateTime? payTime;
  11927. PayStatusEnum payStatus;
  11928. PayTypeEnum payType;
  11929. String? payReqContent;
  11930. String? payResContent;
  11931. PaymentRecordDTO({
  11932. this.orderCode,
  11933. this.payAmount = 0,
  11934. this.payTime,
  11935. this.payStatus = PayStatusEnum.NoPay,
  11936. this.payType = PayTypeEnum.Alipay_PAGE,
  11937. this.payReqContent,
  11938. this.payResContent,
  11939. DateTime? createTime,
  11940. DateTime? updateTime,
  11941. }) : super(
  11942. createTime: createTime,
  11943. updateTime: updateTime,
  11944. );
  11945. factory PaymentRecordDTO.fromJson(Map<String, dynamic> map) {
  11946. return PaymentRecordDTO(
  11947. orderCode: map['OrderCode'],
  11948. payAmount: double.parse(map['PayAmount'].toString()),
  11949. payTime: map['PayTime'] != null ? DateTime.parse(map['PayTime']) : null,
  11950. payStatus: PayStatusEnum.values.firstWhere((e) => e.index == map['PayStatus']),
  11951. payType: PayTypeEnum.values.firstWhere((e) => e.index == map['PayType']),
  11952. payReqContent: map['PayReqContent'],
  11953. payResContent: map['PayResContent'],
  11954. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  11955. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  11956. );
  11957. }
  11958. Map<String, dynamic> toJson() {
  11959. final map = super.toJson();
  11960. if(orderCode != null)
  11961. map['OrderCode'] = orderCode;
  11962. map['PayAmount'] = payAmount;
  11963. if(payTime != null)
  11964. map['PayTime'] = JsonRpcUtils.dateFormat(payTime!);
  11965. map['PayStatus'] = payStatus.index;
  11966. map['PayType'] = payType.index;
  11967. if(payReqContent != null)
  11968. map['PayReqContent'] = payReqContent;
  11969. if(payResContent != null)
  11970. map['PayResContent'] = payResContent;
  11971. return map;
  11972. }
  11973. }
  11974. class ProductDetailDTO extends BaseDTO{
  11975. String? code;
  11976. String? name;
  11977. String? headImage;
  11978. double price;
  11979. ProductStatusEnum status;
  11980. ProductTypeEnum productType;
  11981. String? belongerCode;
  11982. String? relationInfo;
  11983. ProductDetailDTO({
  11984. this.code,
  11985. this.name,
  11986. this.headImage,
  11987. this.price = 0,
  11988. this.status = ProductStatusEnum.SoldOut,
  11989. this.productType = ProductTypeEnum.Course,
  11990. this.belongerCode,
  11991. this.relationInfo,
  11992. DateTime? createTime,
  11993. DateTime? updateTime,
  11994. }) : super(
  11995. createTime: createTime,
  11996. updateTime: updateTime,
  11997. );
  11998. factory ProductDetailDTO.fromJson(Map<String, dynamic> map) {
  11999. return ProductDetailDTO(
  12000. code: map['Code'],
  12001. name: map['Name'],
  12002. headImage: map['HeadImage'],
  12003. price: double.parse(map['Price'].toString()),
  12004. status: ProductStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  12005. productType: ProductTypeEnum.values.firstWhere((e) => e.index == map['ProductType']),
  12006. belongerCode: map['BelongerCode'],
  12007. relationInfo: map['RelationInfo'],
  12008. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12009. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12010. );
  12011. }
  12012. Map<String, dynamic> toJson() {
  12013. final map = super.toJson();
  12014. if(code != null)
  12015. map['Code'] = code;
  12016. if(name != null)
  12017. map['Name'] = name;
  12018. if(headImage != null)
  12019. map['HeadImage'] = headImage;
  12020. map['Price'] = price;
  12021. map['Status'] = status.index;
  12022. map['ProductType'] = productType.index;
  12023. if(belongerCode != null)
  12024. map['BelongerCode'] = belongerCode;
  12025. if(relationInfo != null)
  12026. map['RelationInfo'] = relationInfo;
  12027. return map;
  12028. }
  12029. }
  12030. class UpdateOrderResultDTO {
  12031. bool isSuccess;
  12032. UpdateOrderResultDTO({
  12033. this.isSuccess = false,
  12034. });
  12035. factory UpdateOrderResultDTO.fromJson(Map<String, dynamic> map) {
  12036. return UpdateOrderResultDTO(
  12037. isSuccess: map['IsSuccess'],
  12038. );
  12039. }
  12040. Map<String, dynamic> toJson() {
  12041. final map = Map<String, dynamic>();
  12042. map['IsSuccess'] = isSuccess;
  12043. return map;
  12044. }
  12045. }
  12046. class UpdatePaymentRecordResultDTO {
  12047. bool isSuccess;
  12048. UpdatePaymentRecordResultDTO({
  12049. this.isSuccess = false,
  12050. });
  12051. factory UpdatePaymentRecordResultDTO.fromJson(Map<String, dynamic> map) {
  12052. return UpdatePaymentRecordResultDTO(
  12053. isSuccess: map['IsSuccess'],
  12054. );
  12055. }
  12056. Map<String, dynamic> toJson() {
  12057. final map = Map<String, dynamic>();
  12058. map['IsSuccess'] = isSuccess;
  12059. return map;
  12060. }
  12061. }
  12062. class UpdateProductDTO {
  12063. bool isSuccess;
  12064. UpdateProductDTO({
  12065. this.isSuccess = false,
  12066. });
  12067. factory UpdateProductDTO.fromJson(Map<String, dynamic> map) {
  12068. return UpdateProductDTO(
  12069. isSuccess: map['IsSuccess'],
  12070. );
  12071. }
  12072. Map<String, dynamic> toJson() {
  12073. final map = Map<String, dynamic>();
  12074. map['IsSuccess'] = isSuccess;
  12075. return map;
  12076. }
  12077. }
  12078. class StatisticDetailSettingDTO {
  12079. String? cMSTemplateCode;
  12080. StatisticDetailSettingDTO({
  12081. this.cMSTemplateCode,
  12082. });
  12083. factory StatisticDetailSettingDTO.fromJson(Map<String, dynamic> map) {
  12084. return StatisticDetailSettingDTO(
  12085. cMSTemplateCode: map['CMSTemplateCode'],
  12086. );
  12087. }
  12088. Map<String, dynamic> toJson() {
  12089. final map = Map<String, dynamic>();
  12090. if(cMSTemplateCode != null)
  12091. map['CMSTemplateCode'] = cMSTemplateCode;
  12092. return map;
  12093. }
  12094. }
  12095. class ClientInfoDTO {
  12096. String? clientId;
  12097. String? name;
  12098. bool isReaded;
  12099. DateTime? deliveryTime;
  12100. DateTime? readTime;
  12101. ClientInfoDTO({
  12102. this.clientId,
  12103. this.name,
  12104. this.isReaded = false,
  12105. this.deliveryTime,
  12106. this.readTime,
  12107. });
  12108. factory ClientInfoDTO.fromJson(Map<String, dynamic> map) {
  12109. return ClientInfoDTO(
  12110. clientId: map['ClientId'],
  12111. name: map['Name'],
  12112. isReaded: map['IsReaded'],
  12113. deliveryTime: map['DeliveryTime'] != null ? DateTime.parse(map['DeliveryTime']) : null,
  12114. readTime: map['ReadTime'] != null ? DateTime.parse(map['ReadTime']) : null,
  12115. );
  12116. }
  12117. Map<String, dynamic> toJson() {
  12118. final map = Map<String, dynamic>();
  12119. if(clientId != null)
  12120. map['ClientId'] = clientId;
  12121. if(name != null)
  12122. map['Name'] = name;
  12123. map['IsReaded'] = isReaded;
  12124. if(deliveryTime != null)
  12125. map['DeliveryTime'] = JsonRpcUtils.dateFormat(deliveryTime!);
  12126. if(readTime != null)
  12127. map['ReadTime'] = JsonRpcUtils.dateFormat(readTime!);
  12128. return map;
  12129. }
  12130. }
  12131. class MessageInfoDTO extends BaseDTO{
  12132. String? code;
  12133. NotificationTypeEnum notificationType;
  12134. String? content;
  12135. String? serverHost;
  12136. DateTime? notifyTime;
  12137. ApplicantTypeEnum receiverType;
  12138. TransactionTypeEnum transactionType;
  12139. String? relevanceCode;
  12140. List<ClientInfoDTO >? clientInfos;
  12141. MessageInfoDTO({
  12142. this.code,
  12143. this.notificationType = NotificationTypeEnum.Unknown,
  12144. this.content,
  12145. this.serverHost,
  12146. this.notifyTime,
  12147. this.receiverType = ApplicantTypeEnum.Client,
  12148. this.transactionType = TransactionTypeEnum.Consultion,
  12149. this.relevanceCode,
  12150. this.clientInfos,
  12151. DateTime? createTime,
  12152. DateTime? updateTime,
  12153. }) : super(
  12154. createTime: createTime,
  12155. updateTime: updateTime,
  12156. );
  12157. factory MessageInfoDTO.fromJson(Map<String, dynamic> map) {
  12158. return MessageInfoDTO(
  12159. code: map['Code'],
  12160. notificationType: NotificationTypeEnum.values.firstWhere((e) => e.index == map['NotificationType']),
  12161. content: map['Content'],
  12162. serverHost: map['ServerHost'],
  12163. notifyTime: map['NotifyTime'] != null ? DateTime.parse(map['NotifyTime']) : null,
  12164. receiverType: ApplicantTypeEnum.values.firstWhere((e) => e.index == map['ReceiverType']),
  12165. transactionType: TransactionTypeEnum.values.firstWhere((e) => e.index == map['TransactionType']),
  12166. relevanceCode: map['RelevanceCode'],
  12167. clientInfos: map['ClientInfos'] != null ? (map['ClientInfos'] as List).map((e)=>ClientInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12168. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12169. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12170. );
  12171. }
  12172. Map<String, dynamic> toJson() {
  12173. final map = super.toJson();
  12174. if(code != null)
  12175. map['Code'] = code;
  12176. map['NotificationType'] = notificationType.index;
  12177. if(content != null)
  12178. map['Content'] = content;
  12179. if(serverHost != null)
  12180. map['ServerHost'] = serverHost;
  12181. if(notifyTime != null)
  12182. map['NotifyTime'] = JsonRpcUtils.dateFormat(notifyTime!);
  12183. map['ReceiverType'] = receiverType.index;
  12184. map['TransactionType'] = transactionType.index;
  12185. if(relevanceCode != null)
  12186. map['RelevanceCode'] = relevanceCode;
  12187. if(clientInfos != null)
  12188. map['ClientInfos'] = clientInfos;
  12189. return map;
  12190. }
  12191. }
  12192. class OutputUnitDTO {
  12193. int unit;
  12194. OutputUnitDTO({
  12195. this.unit = 0,
  12196. });
  12197. factory OutputUnitDTO.fromJson(Map<String, dynamic> map) {
  12198. return OutputUnitDTO(
  12199. unit: map['Unit'],
  12200. );
  12201. }
  12202. Map<String, dynamic> toJson() {
  12203. final map = Map<String, dynamic>();
  12204. map['Unit'] = unit;
  12205. return map;
  12206. }
  12207. }
  12208. class FormularMetaDTO {
  12209. String? name;
  12210. FormularMetaDTO({
  12211. this.name,
  12212. });
  12213. factory FormularMetaDTO.fromJson(Map<String, dynamic> map) {
  12214. return FormularMetaDTO(
  12215. name: map['Name'],
  12216. );
  12217. }
  12218. Map<String, dynamic> toJson() {
  12219. final map = Map<String, dynamic>();
  12220. if(name != null)
  12221. map['Name'] = name;
  12222. return map;
  12223. }
  12224. }
  12225. class MeasuredValueDTO {
  12226. String? typeName;
  12227. String? name;
  12228. String? description;
  12229. bool worksheetAffinity;
  12230. String? briefDescription;
  12231. String? value;
  12232. Unit unit;
  12233. Unit targetUnit;
  12234. MeasuredValueDTO({
  12235. this.typeName,
  12236. this.name,
  12237. this.description,
  12238. this.worksheetAffinity = false,
  12239. this.briefDescription,
  12240. this.value,
  12241. this.unit = Unit.None,
  12242. this.targetUnit = Unit.None,
  12243. });
  12244. factory MeasuredValueDTO.fromJson(Map<String, dynamic> map) {
  12245. return MeasuredValueDTO(
  12246. typeName: map['TypeName'],
  12247. name: map['Name'],
  12248. description: map['Description'],
  12249. worksheetAffinity: map['WorksheetAffinity'],
  12250. briefDescription: map['BriefDescription'],
  12251. value: map['Value'],
  12252. unit: Unit.values.firstWhere((e) => e.index == map['Unit']),
  12253. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  12254. );
  12255. }
  12256. Map<String, dynamic> toJson() {
  12257. final map = Map<String, dynamic>();
  12258. if(typeName != null)
  12259. map['TypeName'] = typeName;
  12260. if(name != null)
  12261. map['Name'] = name;
  12262. if(description != null)
  12263. map['Description'] = description;
  12264. map['WorksheetAffinity'] = worksheetAffinity;
  12265. if(briefDescription != null)
  12266. map['BriefDescription'] = briefDescription;
  12267. if(value != null)
  12268. map['Value'] = value;
  12269. map['Unit'] = unit.index;
  12270. map['TargetUnit'] = targetUnit.index;
  12271. return map;
  12272. }
  12273. }
  12274. class MeasuredFeatureDTO {
  12275. String? typeName;
  12276. String? creator;
  12277. String? guid;
  12278. bool showChildFeatures;
  12279. DateTime? timeStamp;
  12280. bool isAutoCalculated;
  12281. List<MeasuredValueDTO >? values;
  12282. List<MeasuredFeatureDTO >? childFeatures;
  12283. MeasuredFeatureDTO({
  12284. this.typeName,
  12285. this.creator,
  12286. this.guid,
  12287. this.showChildFeatures = false,
  12288. this.timeStamp,
  12289. this.isAutoCalculated = false,
  12290. this.values,
  12291. this.childFeatures,
  12292. });
  12293. factory MeasuredFeatureDTO.fromJson(Map<String, dynamic> map) {
  12294. return MeasuredFeatureDTO(
  12295. typeName: map['TypeName'],
  12296. creator: map['Creator'],
  12297. guid: map['Guid'],
  12298. showChildFeatures: map['ShowChildFeatures'],
  12299. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  12300. isAutoCalculated: map['IsAutoCalculated'],
  12301. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12302. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12303. );
  12304. }
  12305. Map<String, dynamic> toJson() {
  12306. final map = Map<String, dynamic>();
  12307. if(typeName != null)
  12308. map['TypeName'] = typeName;
  12309. if(creator != null)
  12310. map['Creator'] = creator;
  12311. if(guid != null)
  12312. map['Guid'] = guid;
  12313. map['ShowChildFeatures'] = showChildFeatures;
  12314. if(timeStamp != null)
  12315. map['TimeStamp'] = JsonRpcUtils.dateFormat(timeStamp!);
  12316. map['IsAutoCalculated'] = isAutoCalculated;
  12317. if(values != null)
  12318. map['Values'] = values;
  12319. if(childFeatures != null)
  12320. map['ChildFeatures'] = childFeatures;
  12321. return map;
  12322. }
  12323. }
  12324. class MeasureExportRecordDTO {
  12325. String? languageCode;
  12326. List<MeasureExportDetailDTO >? remedicalMeasuredInfoCodes;
  12327. String? exportFileToken;
  12328. DateTime? createTime;
  12329. DateTime? updateTime;
  12330. MeasureExportRecordDTO({
  12331. this.languageCode,
  12332. this.remedicalMeasuredInfoCodes,
  12333. this.exportFileToken,
  12334. this.createTime,
  12335. this.updateTime,
  12336. });
  12337. factory MeasureExportRecordDTO.fromJson(Map<String, dynamic> map) {
  12338. return MeasureExportRecordDTO(
  12339. languageCode: map['LanguageCode'],
  12340. remedicalMeasuredInfoCodes: map['RemedicalMeasuredInfoCodes'] != null ? (map['RemedicalMeasuredInfoCodes'] as List).map((e)=>MeasureExportDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12341. exportFileToken: map['ExportFileToken'],
  12342. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12343. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12344. );
  12345. }
  12346. Map<String, dynamic> toJson() {
  12347. final map = Map<String, dynamic>();
  12348. if(languageCode != null)
  12349. map['LanguageCode'] = languageCode;
  12350. if(remedicalMeasuredInfoCodes != null)
  12351. map['RemedicalMeasuredInfoCodes'] = remedicalMeasuredInfoCodes;
  12352. if(exportFileToken != null)
  12353. map['ExportFileToken'] = exportFileToken;
  12354. if(createTime != null)
  12355. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  12356. if(updateTime != null)
  12357. map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
  12358. return map;
  12359. }
  12360. }
  12361. class MeasureItemDTO {
  12362. String? name;
  12363. String? description;
  12364. String? briefAnnotation;
  12365. String? typeName;
  12366. MeasureItemDTO({
  12367. this.name,
  12368. this.description,
  12369. this.briefAnnotation,
  12370. this.typeName,
  12371. });
  12372. factory MeasureItemDTO.fromJson(Map<String, dynamic> map) {
  12373. return MeasureItemDTO(
  12374. name: map['Name'],
  12375. description: map['Description'],
  12376. briefAnnotation: map['BriefAnnotation'],
  12377. typeName: map['TypeName'],
  12378. );
  12379. }
  12380. Map<String, dynamic> toJson() {
  12381. final map = Map<String, dynamic>();
  12382. if(name != null)
  12383. map['Name'] = name;
  12384. if(description != null)
  12385. map['Description'] = description;
  12386. if(briefAnnotation != null)
  12387. map['BriefAnnotation'] = briefAnnotation;
  12388. if(typeName != null)
  12389. map['TypeName'] = typeName;
  12390. return map;
  12391. }
  12392. }
  12393. class MeasureResultExcelDTO {
  12394. String? number;
  12395. String? measureItem;
  12396. String? measureResult;
  12397. MeasureResultExcelDTO({
  12398. this.number,
  12399. this.measureItem,
  12400. this.measureResult,
  12401. });
  12402. factory MeasureResultExcelDTO.fromJson(Map<String, dynamic> map) {
  12403. return MeasureResultExcelDTO(
  12404. number: map['Number'],
  12405. measureItem: map['MeasureItem'],
  12406. measureResult: map['MeasureResult'],
  12407. );
  12408. }
  12409. Map<String, dynamic> toJson() {
  12410. final map = Map<String, dynamic>();
  12411. if(number != null)
  12412. map['Number'] = number;
  12413. if(measureItem != null)
  12414. map['MeasureItem'] = measureItem;
  12415. if(measureResult != null)
  12416. map['MeasureResult'] = measureResult;
  12417. return map;
  12418. }
  12419. }
  12420. class MultiMethodItemDTO extends MeasureItemDTO{
  12421. MultiMethodItemDTO({
  12422. String? name,
  12423. String? description,
  12424. String? briefAnnotation,
  12425. String? typeName,
  12426. }) : super(
  12427. name: name,
  12428. description: description,
  12429. briefAnnotation: briefAnnotation,
  12430. typeName: typeName,
  12431. );
  12432. factory MultiMethodItemDTO.fromJson(Map<String, dynamic> map) {
  12433. return MultiMethodItemDTO(
  12434. name: map['Name'],
  12435. description: map['Description'],
  12436. briefAnnotation: map['BriefAnnotation'],
  12437. typeName: map['TypeName'],
  12438. );
  12439. }
  12440. Map<String, dynamic> toJson() {
  12441. final map = super.toJson();
  12442. return map;
  12443. }
  12444. }
  12445. class UserDefinedMeasureApplicationDTO {
  12446. String? version;
  12447. String? id;
  12448. String? categoryName;
  12449. List<UserDefinedMeasureModeDTO >? modes;
  12450. UserDefinedMeasureApplicationDTO({
  12451. this.version,
  12452. this.id,
  12453. this.categoryName,
  12454. this.modes,
  12455. });
  12456. factory UserDefinedMeasureApplicationDTO.fromJson(Map<String, dynamic> map) {
  12457. return UserDefinedMeasureApplicationDTO(
  12458. version: map['Version'],
  12459. id: map['Id'],
  12460. categoryName: map['CategoryName'],
  12461. modes: map['Modes'] != null ? (map['Modes'] as List).map((e)=>UserDefinedMeasureModeDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12462. );
  12463. }
  12464. Map<String, dynamic> toJson() {
  12465. final map = Map<String, dynamic>();
  12466. if(version != null)
  12467. map['Version'] = version;
  12468. if(id != null)
  12469. map['Id'] = id;
  12470. if(categoryName != null)
  12471. map['CategoryName'] = categoryName;
  12472. if(modes != null)
  12473. map['Modes'] = modes;
  12474. return map;
  12475. }
  12476. }
  12477. class UserDefinedCommentDataDTO {
  12478. String? version;
  12479. String? languageCode;
  12480. String? categoryName;
  12481. String? applicationName;
  12482. List<CommentItemDTO >? commentItems;
  12483. UserDefinedCommentDataDTO({
  12484. this.version,
  12485. this.languageCode,
  12486. this.categoryName,
  12487. this.applicationName,
  12488. this.commentItems,
  12489. });
  12490. factory UserDefinedCommentDataDTO.fromJson(Map<String, dynamic> map) {
  12491. return UserDefinedCommentDataDTO(
  12492. version: map['Version'],
  12493. languageCode: map['LanguageCode'],
  12494. categoryName: map['CategoryName'],
  12495. applicationName: map['ApplicationName'],
  12496. commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>CommentItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12497. );
  12498. }
  12499. Map<String, dynamic> toJson() {
  12500. final map = Map<String, dynamic>();
  12501. if(version != null)
  12502. map['Version'] = version;
  12503. if(languageCode != null)
  12504. map['LanguageCode'] = languageCode;
  12505. if(categoryName != null)
  12506. map['CategoryName'] = categoryName;
  12507. if(applicationName != null)
  12508. map['ApplicationName'] = applicationName;
  12509. if(commentItems != null)
  12510. map['CommentItems'] = commentItems;
  12511. return map;
  12512. }
  12513. }
  12514. class UserDefinedMeasureInfoDTO {
  12515. String? userId;
  12516. Map<String,String>? systemSettings;
  12517. List<UserDefinedMeasureApplicationDTO >? measureApplications;
  12518. List<UserDefinedCommentDataDTO >? commentItems;
  12519. UserDefinedMeasureInfoDTO({
  12520. this.userId,
  12521. this.systemSettings,
  12522. this.measureApplications,
  12523. this.commentItems,
  12524. });
  12525. factory UserDefinedMeasureInfoDTO.fromJson(Map<String, dynamic> map) {
  12526. return UserDefinedMeasureInfoDTO(
  12527. userId: map['UserId'],
  12528. systemSettings: map['SystemSettings'] != null ? map['SystemSettings'].cast<String,String>() : null,
  12529. measureApplications: map['MeasureApplications'] != null ? (map['MeasureApplications'] as List).map((e)=>UserDefinedMeasureApplicationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12530. commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>UserDefinedCommentDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12531. );
  12532. }
  12533. Map<String, dynamic> toJson() {
  12534. final map = Map<String, dynamic>();
  12535. if(userId != null)
  12536. map['UserId'] = userId;
  12537. if(systemSettings != null)
  12538. map['SystemSettings'] = systemSettings;
  12539. if(measureApplications != null)
  12540. map['MeasureApplications'] = measureApplications;
  12541. if(commentItems != null)
  12542. map['CommentItems'] = commentItems;
  12543. return map;
  12544. }
  12545. }
  12546. class AbRatioDTO extends MultiMethodItemDTO{
  12547. AbRatioDTO({
  12548. String? name,
  12549. String? description,
  12550. String? briefAnnotation,
  12551. String? typeName,
  12552. }) : super(
  12553. name: name,
  12554. description: description,
  12555. briefAnnotation: briefAnnotation,
  12556. typeName: typeName,
  12557. );
  12558. factory AbRatioDTO.fromJson(Map<String, dynamic> map) {
  12559. return AbRatioDTO(
  12560. name: map['Name'],
  12561. description: map['Description'],
  12562. briefAnnotation: map['BriefAnnotation'],
  12563. typeName: map['TypeName'],
  12564. );
  12565. }
  12566. Map<String, dynamic> toJson() {
  12567. final map = super.toJson();
  12568. return map;
  12569. }
  12570. }
  12571. class AngleDTO extends MeasureItemDTO{
  12572. AngleDTO({
  12573. String? name,
  12574. String? description,
  12575. String? briefAnnotation,
  12576. String? typeName,
  12577. }) : super(
  12578. name: name,
  12579. description: description,
  12580. briefAnnotation: briefAnnotation,
  12581. typeName: typeName,
  12582. );
  12583. factory AngleDTO.fromJson(Map<String, dynamic> map) {
  12584. return AngleDTO(
  12585. name: map['Name'],
  12586. description: map['Description'],
  12587. briefAnnotation: map['BriefAnnotation'],
  12588. typeName: map['TypeName'],
  12589. );
  12590. }
  12591. Map<String, dynamic> toJson() {
  12592. final map = super.toJson();
  12593. return map;
  12594. }
  12595. }
  12596. class AreaPerimeterDTO extends MultiMethodItemDTO{
  12597. AreaPerimeterDTO({
  12598. String? name,
  12599. String? description,
  12600. String? briefAnnotation,
  12601. String? typeName,
  12602. }) : super(
  12603. name: name,
  12604. description: description,
  12605. briefAnnotation: briefAnnotation,
  12606. typeName: typeName,
  12607. );
  12608. factory AreaPerimeterDTO.fromJson(Map<String, dynamic> map) {
  12609. return AreaPerimeterDTO(
  12610. name: map['Name'],
  12611. description: map['Description'],
  12612. briefAnnotation: map['BriefAnnotation'],
  12613. typeName: map['TypeName'],
  12614. );
  12615. }
  12616. Map<String, dynamic> toJson() {
  12617. final map = super.toJson();
  12618. return map;
  12619. }
  12620. }
  12621. class CircleDTO extends MeasureItemDTO{
  12622. CircleDTO({
  12623. String? name,
  12624. String? description,
  12625. String? briefAnnotation,
  12626. String? typeName,
  12627. }) : super(
  12628. name: name,
  12629. description: description,
  12630. briefAnnotation: briefAnnotation,
  12631. typeName: typeName,
  12632. );
  12633. factory CircleDTO.fromJson(Map<String, dynamic> map) {
  12634. return CircleDTO(
  12635. name: map['Name'],
  12636. description: map['Description'],
  12637. briefAnnotation: map['BriefAnnotation'],
  12638. typeName: map['TypeName'],
  12639. );
  12640. }
  12641. Map<String, dynamic> toJson() {
  12642. final map = super.toJson();
  12643. return map;
  12644. }
  12645. }
  12646. class CurveLengthDTO extends MultiMethodItemDTO{
  12647. CurveLengthDTO({
  12648. String? name,
  12649. String? description,
  12650. String? briefAnnotation,
  12651. String? typeName,
  12652. }) : super(
  12653. name: name,
  12654. description: description,
  12655. briefAnnotation: briefAnnotation,
  12656. typeName: typeName,
  12657. );
  12658. factory CurveLengthDTO.fromJson(Map<String, dynamic> map) {
  12659. return CurveLengthDTO(
  12660. name: map['Name'],
  12661. description: map['Description'],
  12662. briefAnnotation: map['BriefAnnotation'],
  12663. typeName: map['TypeName'],
  12664. );
  12665. }
  12666. Map<String, dynamic> toJson() {
  12667. final map = super.toJson();
  12668. return map;
  12669. }
  12670. }
  12671. class EllipseDTO extends MeasureItemDTO{
  12672. EllipseDTO({
  12673. String? name,
  12674. String? description,
  12675. String? briefAnnotation,
  12676. String? typeName,
  12677. }) : super(
  12678. name: name,
  12679. description: description,
  12680. briefAnnotation: briefAnnotation,
  12681. typeName: typeName,
  12682. );
  12683. factory EllipseDTO.fromJson(Map<String, dynamic> map) {
  12684. return EllipseDTO(
  12685. name: map['Name'],
  12686. description: map['Description'],
  12687. briefAnnotation: map['BriefAnnotation'],
  12688. typeName: map['TypeName'],
  12689. );
  12690. }
  12691. Map<String, dynamic> toJson() {
  12692. final map = super.toJson();
  12693. return map;
  12694. }
  12695. }
  12696. class LocationDTO extends MeasureItemDTO{
  12697. LocationDTO({
  12698. String? name,
  12699. String? description,
  12700. String? briefAnnotation,
  12701. String? typeName,
  12702. }) : super(
  12703. name: name,
  12704. description: description,
  12705. briefAnnotation: briefAnnotation,
  12706. typeName: typeName,
  12707. );
  12708. factory LocationDTO.fromJson(Map<String, dynamic> map) {
  12709. return LocationDTO(
  12710. name: map['Name'],
  12711. description: map['Description'],
  12712. briefAnnotation: map['BriefAnnotation'],
  12713. typeName: map['TypeName'],
  12714. );
  12715. }
  12716. Map<String, dynamic> toJson() {
  12717. final map = super.toJson();
  12718. return map;
  12719. }
  12720. }
  12721. class LWHStraightLineDTO extends MeasureItemDTO{
  12722. LWHStraightLineDTO({
  12723. String? name,
  12724. String? description,
  12725. String? briefAnnotation,
  12726. String? typeName,
  12727. }) : super(
  12728. name: name,
  12729. description: description,
  12730. briefAnnotation: briefAnnotation,
  12731. typeName: typeName,
  12732. );
  12733. factory LWHStraightLineDTO.fromJson(Map<String, dynamic> map) {
  12734. return LWHStraightLineDTO(
  12735. name: map['Name'],
  12736. description: map['Description'],
  12737. briefAnnotation: map['BriefAnnotation'],
  12738. typeName: map['TypeName'],
  12739. );
  12740. }
  12741. Map<String, dynamic> toJson() {
  12742. final map = super.toJson();
  12743. return map;
  12744. }
  12745. }
  12746. class PolylineDTO extends MeasureItemDTO{
  12747. PolylineDTO({
  12748. String? name,
  12749. String? description,
  12750. String? briefAnnotation,
  12751. String? typeName,
  12752. }) : super(
  12753. name: name,
  12754. description: description,
  12755. briefAnnotation: briefAnnotation,
  12756. typeName: typeName,
  12757. );
  12758. factory PolylineDTO.fromJson(Map<String, dynamic> map) {
  12759. return PolylineDTO(
  12760. name: map['Name'],
  12761. description: map['Description'],
  12762. briefAnnotation: map['BriefAnnotation'],
  12763. typeName: map['TypeName'],
  12764. );
  12765. }
  12766. Map<String, dynamic> toJson() {
  12767. final map = super.toJson();
  12768. return map;
  12769. }
  12770. }
  12771. class RectDTO extends MeasureItemDTO{
  12772. RectDTO({
  12773. String? name,
  12774. String? description,
  12775. String? briefAnnotation,
  12776. String? typeName,
  12777. }) : super(
  12778. name: name,
  12779. description: description,
  12780. briefAnnotation: briefAnnotation,
  12781. typeName: typeName,
  12782. );
  12783. factory RectDTO.fromJson(Map<String, dynamic> map) {
  12784. return RectDTO(
  12785. name: map['Name'],
  12786. description: map['Description'],
  12787. briefAnnotation: map['BriefAnnotation'],
  12788. typeName: map['TypeName'],
  12789. );
  12790. }
  12791. Map<String, dynamic> toJson() {
  12792. final map = super.toJson();
  12793. return map;
  12794. }
  12795. }
  12796. class StenosisDTO extends MultiMethodItemDTO{
  12797. StenosisDTO({
  12798. String? name,
  12799. String? description,
  12800. String? briefAnnotation,
  12801. String? typeName,
  12802. }) : super(
  12803. name: name,
  12804. description: description,
  12805. briefAnnotation: briefAnnotation,
  12806. typeName: typeName,
  12807. );
  12808. factory StenosisDTO.fromJson(Map<String, dynamic> map) {
  12809. return StenosisDTO(
  12810. name: map['Name'],
  12811. description: map['Description'],
  12812. briefAnnotation: map['BriefAnnotation'],
  12813. typeName: map['TypeName'],
  12814. );
  12815. }
  12816. Map<String, dynamic> toJson() {
  12817. final map = super.toJson();
  12818. return map;
  12819. }
  12820. }
  12821. class StraightLineDTO extends MeasureItemDTO{
  12822. StraightLineDTO({
  12823. String? name,
  12824. String? description,
  12825. String? briefAnnotation,
  12826. String? typeName,
  12827. }) : super(
  12828. name: name,
  12829. description: description,
  12830. briefAnnotation: briefAnnotation,
  12831. typeName: typeName,
  12832. );
  12833. factory StraightLineDTO.fromJson(Map<String, dynamic> map) {
  12834. return StraightLineDTO(
  12835. name: map['Name'],
  12836. description: map['Description'],
  12837. briefAnnotation: map['BriefAnnotation'],
  12838. typeName: map['TypeName'],
  12839. );
  12840. }
  12841. Map<String, dynamic> toJson() {
  12842. final map = super.toJson();
  12843. return map;
  12844. }
  12845. }
  12846. class VolumeDTO extends MultiMethodItemDTO{
  12847. VolumeDTO({
  12848. String? name,
  12849. String? description,
  12850. String? briefAnnotation,
  12851. String? typeName,
  12852. }) : super(
  12853. name: name,
  12854. description: description,
  12855. briefAnnotation: briefAnnotation,
  12856. typeName: typeName,
  12857. );
  12858. factory VolumeDTO.fromJson(Map<String, dynamic> map) {
  12859. return VolumeDTO(
  12860. name: map['Name'],
  12861. description: map['Description'],
  12862. briefAnnotation: map['BriefAnnotation'],
  12863. typeName: map['TypeName'],
  12864. );
  12865. }
  12866. Map<String, dynamic> toJson() {
  12867. final map = super.toJson();
  12868. return map;
  12869. }
  12870. }
  12871. class CardiacAxisFeatureDTO extends MeasuredFeatureDTO{
  12872. String? logicalName;
  12873. String? logicalMode;
  12874. CardiacAxisFeatureDTO({
  12875. String? typeName,
  12876. this.logicalName,
  12877. this.logicalMode,
  12878. String? creator,
  12879. String? guid,
  12880. bool showChildFeatures = false,
  12881. DateTime? timeStamp,
  12882. bool isAutoCalculated = false,
  12883. List<MeasuredValueDTO >? values,
  12884. List<MeasuredFeatureDTO >? childFeatures,
  12885. }) : super(
  12886. typeName: typeName,
  12887. creator: creator,
  12888. guid: guid,
  12889. showChildFeatures: showChildFeatures,
  12890. timeStamp: timeStamp,
  12891. isAutoCalculated: isAutoCalculated,
  12892. values: values,
  12893. childFeatures: childFeatures,
  12894. );
  12895. factory CardiacAxisFeatureDTO.fromJson(Map<String, dynamic> map) {
  12896. return CardiacAxisFeatureDTO(
  12897. typeName: map['TypeName'],
  12898. logicalName: map['LogicalName'],
  12899. logicalMode: map['LogicalMode'],
  12900. creator: map['Creator'],
  12901. guid: map['Guid'],
  12902. showChildFeatures: map['ShowChildFeatures'],
  12903. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  12904. isAutoCalculated: map['IsAutoCalculated'],
  12905. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12906. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12907. );
  12908. }
  12909. Map<String, dynamic> toJson() {
  12910. final map = super.toJson();
  12911. if(logicalName != null)
  12912. map['LogicalName'] = logicalName;
  12913. if(logicalMode != null)
  12914. map['LogicalMode'] = logicalMode;
  12915. return map;
  12916. }
  12917. }
  12918. class CustomCalculatorFeatureDTO extends MeasuredFeatureDTO{
  12919. String? logicalName;
  12920. String? logicalMode;
  12921. CustomCalculatorFeatureDTO({
  12922. String? typeName,
  12923. this.logicalName,
  12924. this.logicalMode,
  12925. String? creator,
  12926. String? guid,
  12927. bool showChildFeatures = false,
  12928. DateTime? timeStamp,
  12929. bool isAutoCalculated = false,
  12930. List<MeasuredValueDTO >? values,
  12931. List<MeasuredFeatureDTO >? childFeatures,
  12932. }) : super(
  12933. typeName: typeName,
  12934. creator: creator,
  12935. guid: guid,
  12936. showChildFeatures: showChildFeatures,
  12937. timeStamp: timeStamp,
  12938. isAutoCalculated: isAutoCalculated,
  12939. values: values,
  12940. childFeatures: childFeatures,
  12941. );
  12942. factory CustomCalculatorFeatureDTO.fromJson(Map<String, dynamic> map) {
  12943. return CustomCalculatorFeatureDTO(
  12944. typeName: map['TypeName'],
  12945. logicalName: map['LogicalName'],
  12946. logicalMode: map['LogicalMode'],
  12947. creator: map['Creator'],
  12948. guid: map['Guid'],
  12949. showChildFeatures: map['ShowChildFeatures'],
  12950. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  12951. isAutoCalculated: map['IsAutoCalculated'],
  12952. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12953. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12954. );
  12955. }
  12956. Map<String, dynamic> toJson() {
  12957. final map = super.toJson();
  12958. if(logicalName != null)
  12959. map['LogicalName'] = logicalName;
  12960. if(logicalMode != null)
  12961. map['LogicalMode'] = logicalMode;
  12962. return map;
  12963. }
  12964. }
  12965. class GeometryFeatureDTO extends MeasuredFeatureDTO{
  12966. bool isVisible;
  12967. String? annotation;
  12968. String? briefAnnotation;
  12969. Unit xUnit;
  12970. Unit yUnit;
  12971. bool showAnnotation;
  12972. bool showCalliper;
  12973. List<PointDTO >? points;
  12974. GeometryFeatureDTO({
  12975. this.isVisible = false,
  12976. this.annotation,
  12977. this.briefAnnotation,
  12978. this.xUnit = Unit.None,
  12979. this.yUnit = Unit.None,
  12980. this.showAnnotation = false,
  12981. this.showCalliper = false,
  12982. this.points,
  12983. String? typeName,
  12984. String? creator,
  12985. String? guid,
  12986. bool showChildFeatures = false,
  12987. DateTime? timeStamp,
  12988. bool isAutoCalculated = false,
  12989. List<MeasuredValueDTO >? values,
  12990. List<MeasuredFeatureDTO >? childFeatures,
  12991. }) : super(
  12992. typeName: typeName,
  12993. creator: creator,
  12994. guid: guid,
  12995. showChildFeatures: showChildFeatures,
  12996. timeStamp: timeStamp,
  12997. isAutoCalculated: isAutoCalculated,
  12998. values: values,
  12999. childFeatures: childFeatures,
  13000. );
  13001. factory GeometryFeatureDTO.fromJson(Map<String, dynamic> map) {
  13002. return GeometryFeatureDTO(
  13003. isVisible: map['IsVisible'],
  13004. annotation: map['Annotation'],
  13005. briefAnnotation: map['BriefAnnotation'],
  13006. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  13007. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  13008. showAnnotation: map['ShowAnnotation'],
  13009. showCalliper: map['ShowCalliper'],
  13010. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13011. typeName: map['TypeName'],
  13012. creator: map['Creator'],
  13013. guid: map['Guid'],
  13014. showChildFeatures: map['ShowChildFeatures'],
  13015. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  13016. isAutoCalculated: map['IsAutoCalculated'],
  13017. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13018. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13019. );
  13020. }
  13021. Map<String, dynamic> toJson() {
  13022. final map = super.toJson();
  13023. map['IsVisible'] = isVisible;
  13024. if(annotation != null)
  13025. map['Annotation'] = annotation;
  13026. if(briefAnnotation != null)
  13027. map['BriefAnnotation'] = briefAnnotation;
  13028. map['XUnit'] = xUnit.index;
  13029. map['YUnit'] = yUnit.index;
  13030. map['ShowAnnotation'] = showAnnotation;
  13031. map['ShowCalliper'] = showCalliper;
  13032. if(points != null)
  13033. map['Points'] = points;
  13034. return map;
  13035. }
  13036. }
  13037. class CardiacCycleDTO {
  13038. int index;
  13039. PointDTO? systoleStart;
  13040. PointDTO? diastoleEnd;
  13041. PointDTO? peakSystolic;
  13042. PointDTO? minimumAbsoluteVelocity;
  13043. CardiacCycleDTO({
  13044. this.index = 0,
  13045. this.systoleStart,
  13046. this.diastoleEnd,
  13047. this.peakSystolic,
  13048. this.minimumAbsoluteVelocity,
  13049. });
  13050. factory CardiacCycleDTO.fromJson(Map<String, dynamic> map) {
  13051. return CardiacCycleDTO(
  13052. index: map['Index'],
  13053. systoleStart: map['SystoleStart'] != null ? PointDTO.fromJson(map['SystoleStart']) : null,
  13054. diastoleEnd: map['DiastoleEnd'] != null ? PointDTO.fromJson(map['DiastoleEnd']) : null,
  13055. peakSystolic: map['PeakSystolic'] != null ? PointDTO.fromJson(map['PeakSystolic']) : null,
  13056. minimumAbsoluteVelocity: map['MinimumAbsoluteVelocity'] != null ? PointDTO.fromJson(map['MinimumAbsoluteVelocity']) : null,
  13057. );
  13058. }
  13059. Map<String, dynamic> toJson() {
  13060. final map = Map<String, dynamic>();
  13061. map['Index'] = index;
  13062. if(systoleStart != null)
  13063. map['SystoleStart'] = systoleStart;
  13064. if(diastoleEnd != null)
  13065. map['DiastoleEnd'] = diastoleEnd;
  13066. if(peakSystolic != null)
  13067. map['PeakSystolic'] = peakSystolic;
  13068. if(minimumAbsoluteVelocity != null)
  13069. map['MinimumAbsoluteVelocity'] = minimumAbsoluteVelocity;
  13070. return map;
  13071. }
  13072. }
  13073. class GrowthPercentileDTO {
  13074. int oBTableCategory;
  13075. String? tableAuthor;
  13076. String? measureItem;
  13077. int gAinDays;
  13078. int status;
  13079. double value;
  13080. double tableDataLimitation;
  13081. double zScoreValue;
  13082. int zScoreStatus;
  13083. GrowthPercentileDTO({
  13084. this.oBTableCategory = 0,
  13085. this.tableAuthor,
  13086. this.measureItem,
  13087. this.gAinDays = 0,
  13088. this.status = 0,
  13089. this.value = 0,
  13090. this.tableDataLimitation = 0,
  13091. this.zScoreValue = 0,
  13092. this.zScoreStatus = 0,
  13093. });
  13094. factory GrowthPercentileDTO.fromJson(Map<String, dynamic> map) {
  13095. return GrowthPercentileDTO(
  13096. oBTableCategory: map['OBTableCategory'],
  13097. tableAuthor: map['TableAuthor'],
  13098. measureItem: map['MeasureItem'],
  13099. gAinDays: map['GAinDays'],
  13100. status: map['Status'],
  13101. value: double.parse(map['Value'].toString()),
  13102. tableDataLimitation: double.parse(map['TableDataLimitation'].toString()),
  13103. zScoreValue: double.parse(map['ZScoreValue'].toString()),
  13104. zScoreStatus: map['ZScoreStatus'],
  13105. );
  13106. }
  13107. Map<String, dynamic> toJson() {
  13108. final map = Map<String, dynamic>();
  13109. map['OBTableCategory'] = oBTableCategory;
  13110. if(tableAuthor != null)
  13111. map['TableAuthor'] = tableAuthor;
  13112. if(measureItem != null)
  13113. map['MeasureItem'] = measureItem;
  13114. map['GAinDays'] = gAinDays;
  13115. map['Status'] = status;
  13116. map['Value'] = value;
  13117. map['TableDataLimitation'] = tableDataLimitation;
  13118. map['ZScoreValue'] = zScoreValue;
  13119. map['ZScoreStatus'] = zScoreStatus;
  13120. return map;
  13121. }
  13122. }
  13123. class GrowthAgeDTO {
  13124. int oBTableCategory;
  13125. String? tableAuthor;
  13126. String? measureItem;
  13127. int days;
  13128. int status;
  13129. int minDays;
  13130. int maxDays;
  13131. GrowthAgeDTO({
  13132. this.oBTableCategory = 0,
  13133. this.tableAuthor,
  13134. this.measureItem,
  13135. this.days = 0,
  13136. this.status = 0,
  13137. this.minDays = 0,
  13138. this.maxDays = 0,
  13139. });
  13140. factory GrowthAgeDTO.fromJson(Map<String, dynamic> map) {
  13141. return GrowthAgeDTO(
  13142. oBTableCategory: map['OBTableCategory'],
  13143. tableAuthor: map['TableAuthor'],
  13144. measureItem: map['MeasureItem'],
  13145. days: map['Days'],
  13146. status: map['Status'],
  13147. minDays: map['MinDays'],
  13148. maxDays: map['MaxDays'],
  13149. );
  13150. }
  13151. Map<String, dynamic> toJson() {
  13152. final map = Map<String, dynamic>();
  13153. map['OBTableCategory'] = oBTableCategory;
  13154. if(tableAuthor != null)
  13155. map['TableAuthor'] = tableAuthor;
  13156. if(measureItem != null)
  13157. map['MeasureItem'] = measureItem;
  13158. map['Days'] = days;
  13159. map['Status'] = status;
  13160. map['MinDays'] = minDays;
  13161. map['MaxDays'] = maxDays;
  13162. return map;
  13163. }
  13164. }
  13165. class FetalGrowthIndexDTO {
  13166. GrowthPercentileDTO? percentile;
  13167. GrowthAgeDTO? growthAge;
  13168. DateTime? estimateDueDate;
  13169. FetalGrowthIndexDTO({
  13170. this.percentile,
  13171. this.growthAge,
  13172. this.estimateDueDate,
  13173. });
  13174. factory FetalGrowthIndexDTO.fromJson(Map<String, dynamic> map) {
  13175. return FetalGrowthIndexDTO(
  13176. percentile: map['Percentile'] != null ? GrowthPercentileDTO.fromJson(map['Percentile']) : null,
  13177. growthAge: map['GrowthAge'] != null ? GrowthAgeDTO.fromJson(map['GrowthAge']) : null,
  13178. estimateDueDate: map['EstimateDueDate'] != null ? DateTime.parse(map['EstimateDueDate']) : null,
  13179. );
  13180. }
  13181. Map<String, dynamic> toJson() {
  13182. final map = Map<String, dynamic>();
  13183. if(percentile != null)
  13184. map['Percentile'] = percentile;
  13185. if(growthAge != null)
  13186. map['GrowthAge'] = growthAge;
  13187. if(estimateDueDate != null)
  13188. map['EstimateDueDate'] = JsonRpcUtils.dateFormat(estimateDueDate!);
  13189. return map;
  13190. }
  13191. }
  13192. class FloatValueDTO extends MeasuredValueDTO{
  13193. FetalGrowthIndexDTO? fetalGrowthIndex;
  13194. String? typeName;
  13195. String? name;
  13196. String? description;
  13197. bool worksheetAffinity;
  13198. String? briefDescription;
  13199. String? value;
  13200. Unit unit;
  13201. Unit targetUnit;
  13202. FloatValueDTO({
  13203. this.fetalGrowthIndex,
  13204. this.typeName,
  13205. this.name,
  13206. this.description,
  13207. this.worksheetAffinity = false,
  13208. this.briefDescription,
  13209. this.value,
  13210. this.unit = Unit.None,
  13211. this.targetUnit = Unit.None,
  13212. });
  13213. factory FloatValueDTO.fromJson(Map<String, dynamic> map) {
  13214. return FloatValueDTO(
  13215. fetalGrowthIndex: map['FetalGrowthIndex'] != null ? FetalGrowthIndexDTO.fromJson(map['FetalGrowthIndex']) : null,
  13216. typeName: map['TypeName'],
  13217. name: map['Name'],
  13218. description: map['Description'],
  13219. worksheetAffinity: map['WorksheetAffinity'],
  13220. briefDescription: map['BriefDescription'],
  13221. value: map['Value'],
  13222. unit: Unit.values.firstWhere((e) => e.index == map['Unit']),
  13223. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  13224. );
  13225. }
  13226. Map<String, dynamic> toJson() {
  13227. final map = super.toJson();
  13228. return map;
  13229. }
  13230. }
  13231. class DopplerTraceFeatureDTO extends GeometryFeatureDTO{
  13232. int avgHeartCycle;
  13233. ASETypeEnum traceType;
  13234. List<PointDTO >? maxTraceLine;
  13235. List<CardiacCycleDTO >? cardiacCycles;
  13236. List<FloatValueDTO >? autoMeasureValues;
  13237. DopplerTraceFeatureDTO({
  13238. String? typeName,
  13239. this.avgHeartCycle = 0,
  13240. this.traceType = ASETypeEnum.Off,
  13241. this.maxTraceLine,
  13242. this.cardiacCycles,
  13243. this.autoMeasureValues,
  13244. bool isVisible = false,
  13245. String? annotation,
  13246. String? briefAnnotation,
  13247. Unit xUnit = Unit.None,
  13248. Unit yUnit = Unit.None,
  13249. bool showAnnotation = false,
  13250. bool showCalliper = false,
  13251. List<PointDTO >? points,
  13252. String? creator,
  13253. String? guid,
  13254. bool showChildFeatures = false,
  13255. DateTime? timeStamp,
  13256. bool isAutoCalculated = false,
  13257. List<MeasuredValueDTO >? values,
  13258. List<MeasuredFeatureDTO >? childFeatures,
  13259. }) : super(
  13260. isVisible: isVisible,
  13261. annotation: annotation,
  13262. briefAnnotation: briefAnnotation,
  13263. xUnit: xUnit,
  13264. yUnit: yUnit,
  13265. showAnnotation: showAnnotation,
  13266. showCalliper: showCalliper,
  13267. points: points,
  13268. typeName: typeName,
  13269. creator: creator,
  13270. guid: guid,
  13271. showChildFeatures: showChildFeatures,
  13272. timeStamp: timeStamp,
  13273. isAutoCalculated: isAutoCalculated,
  13274. values: values,
  13275. childFeatures: childFeatures,
  13276. );
  13277. factory DopplerTraceFeatureDTO.fromJson(Map<String, dynamic> map) {
  13278. return DopplerTraceFeatureDTO(
  13279. typeName: map['TypeName'],
  13280. avgHeartCycle: map['AvgHeartCycle'],
  13281. traceType: ASETypeEnum.values.firstWhere((e) => e.index == map['TraceType']),
  13282. maxTraceLine: map['MaxTraceLine'] != null ? (map['MaxTraceLine'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13283. cardiacCycles: map['CardiacCycles'] != null ? (map['CardiacCycles'] as List).map((e)=>CardiacCycleDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13284. autoMeasureValues: map['AutoMeasureValues'] != null ? (map['AutoMeasureValues'] as List).map((e)=>FloatValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13285. isVisible: map['IsVisible'],
  13286. annotation: map['Annotation'],
  13287. briefAnnotation: map['BriefAnnotation'],
  13288. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  13289. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  13290. showAnnotation: map['ShowAnnotation'],
  13291. showCalliper: map['ShowCalliper'],
  13292. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13293. creator: map['Creator'],
  13294. guid: map['Guid'],
  13295. showChildFeatures: map['ShowChildFeatures'],
  13296. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  13297. isAutoCalculated: map['IsAutoCalculated'],
  13298. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13299. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13300. );
  13301. }
  13302. Map<String, dynamic> toJson() {
  13303. final map = super.toJson();
  13304. map['AvgHeartCycle'] = avgHeartCycle;
  13305. map['TraceType'] = traceType.index;
  13306. if(maxTraceLine != null)
  13307. map['MaxTraceLine'] = maxTraceLine;
  13308. if(cardiacCycles != null)
  13309. map['CardiacCycles'] = cardiacCycles;
  13310. if(autoMeasureValues != null)
  13311. map['AutoMeasureValues'] = autoMeasureValues;
  13312. return map;
  13313. }
  13314. }
  13315. class EllipseFeatureDTO extends GeometryFeatureDTO{
  13316. double angle;
  13317. EllipseFeatureDTO({
  13318. String? typeName,
  13319. this.angle = 0,
  13320. bool isVisible = false,
  13321. String? annotation,
  13322. String? briefAnnotation,
  13323. Unit xUnit = Unit.None,
  13324. Unit yUnit = Unit.None,
  13325. bool showAnnotation = false,
  13326. bool showCalliper = false,
  13327. List<PointDTO >? points,
  13328. String? creator,
  13329. String? guid,
  13330. bool showChildFeatures = false,
  13331. DateTime? timeStamp,
  13332. bool isAutoCalculated = false,
  13333. List<MeasuredValueDTO >? values,
  13334. List<MeasuredFeatureDTO >? childFeatures,
  13335. }) : super(
  13336. isVisible: isVisible,
  13337. annotation: annotation,
  13338. briefAnnotation: briefAnnotation,
  13339. xUnit: xUnit,
  13340. yUnit: yUnit,
  13341. showAnnotation: showAnnotation,
  13342. showCalliper: showCalliper,
  13343. points: points,
  13344. typeName: typeName,
  13345. creator: creator,
  13346. guid: guid,
  13347. showChildFeatures: showChildFeatures,
  13348. timeStamp: timeStamp,
  13349. isAutoCalculated: isAutoCalculated,
  13350. values: values,
  13351. childFeatures: childFeatures,
  13352. );
  13353. factory EllipseFeatureDTO.fromJson(Map<String, dynamic> map) {
  13354. return EllipseFeatureDTO(
  13355. typeName: map['TypeName'],
  13356. angle: double.parse(map['Angle'].toString()),
  13357. isVisible: map['IsVisible'],
  13358. annotation: map['Annotation'],
  13359. briefAnnotation: map['BriefAnnotation'],
  13360. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  13361. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  13362. showAnnotation: map['ShowAnnotation'],
  13363. showCalliper: map['ShowCalliper'],
  13364. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13365. creator: map['Creator'],
  13366. guid: map['Guid'],
  13367. showChildFeatures: map['ShowChildFeatures'],
  13368. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  13369. isAutoCalculated: map['IsAutoCalculated'],
  13370. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13371. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13372. );
  13373. }
  13374. Map<String, dynamic> toJson() {
  13375. final map = super.toJson();
  13376. map['Angle'] = angle;
  13377. return map;
  13378. }
  13379. }
  13380. class AutoMeasureGeometryDTO {
  13381. int index;
  13382. List<PointDTO >? points;
  13383. AutoMeasureGeometryDTO({
  13384. this.index = 0,
  13385. this.points,
  13386. });
  13387. factory AutoMeasureGeometryDTO.fromJson(Map<String, dynamic> map) {
  13388. return AutoMeasureGeometryDTO(
  13389. index: map['Index'],
  13390. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13391. );
  13392. }
  13393. Map<String, dynamic> toJson() {
  13394. final map = Map<String, dynamic>();
  13395. map['Index'] = index;
  13396. if(points != null)
  13397. map['Points'] = points;
  13398. return map;
  13399. }
  13400. }
  13401. class FollicleShapeFeatureDTO extends GeometryFeatureDTO{
  13402. List<AutoMeasureGeometryDTO >? geometries;
  13403. FollicleShapeFeatureDTO({
  13404. String? typeName,
  13405. this.geometries,
  13406. bool isVisible = false,
  13407. String? annotation,
  13408. String? briefAnnotation,
  13409. Unit xUnit = Unit.None,
  13410. Unit yUnit = Unit.None,
  13411. bool showAnnotation = false,
  13412. bool showCalliper = false,
  13413. List<PointDTO >? points,
  13414. String? creator,
  13415. String? guid,
  13416. bool showChildFeatures = false,
  13417. DateTime? timeStamp,
  13418. bool isAutoCalculated = false,
  13419. List<MeasuredValueDTO >? values,
  13420. List<MeasuredFeatureDTO >? childFeatures,
  13421. }) : super(
  13422. isVisible: isVisible,
  13423. annotation: annotation,
  13424. briefAnnotation: briefAnnotation,
  13425. xUnit: xUnit,
  13426. yUnit: yUnit,
  13427. showAnnotation: showAnnotation,
  13428. showCalliper: showCalliper,
  13429. points: points,
  13430. typeName: typeName,
  13431. creator: creator,
  13432. guid: guid,
  13433. showChildFeatures: showChildFeatures,
  13434. timeStamp: timeStamp,
  13435. isAutoCalculated: isAutoCalculated,
  13436. values: values,
  13437. childFeatures: childFeatures,
  13438. );
  13439. factory FollicleShapeFeatureDTO.fromJson(Map<String, dynamic> map) {
  13440. return FollicleShapeFeatureDTO(
  13441. typeName: map['TypeName'],
  13442. geometries: map['Geometries'] != null ? (map['Geometries'] as List).map((e)=>AutoMeasureGeometryDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13443. isVisible: map['IsVisible'],
  13444. annotation: map['Annotation'],
  13445. briefAnnotation: map['BriefAnnotation'],
  13446. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  13447. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  13448. showAnnotation: map['ShowAnnotation'],
  13449. showCalliper: map['ShowCalliper'],
  13450. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13451. creator: map['Creator'],
  13452. guid: map['Guid'],
  13453. showChildFeatures: map['ShowChildFeatures'],
  13454. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  13455. isAutoCalculated: map['IsAutoCalculated'],
  13456. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13457. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13458. );
  13459. }
  13460. Map<String, dynamic> toJson() {
  13461. final map = super.toJson();
  13462. if(geometries != null)
  13463. map['Geometries'] = geometries;
  13464. return map;
  13465. }
  13466. }
  13467. class LocationFeatureDTO extends GeometryFeatureDTO{
  13468. LocationFeatureDTO({
  13469. String? typeName,
  13470. bool isVisible = false,
  13471. String? annotation,
  13472. String? briefAnnotation,
  13473. Unit xUnit = Unit.None,
  13474. Unit yUnit = Unit.None,
  13475. bool showAnnotation = false,
  13476. bool showCalliper = false,
  13477. List<PointDTO >? points,
  13478. String? creator,
  13479. String? guid,
  13480. bool showChildFeatures = false,
  13481. DateTime? timeStamp,
  13482. bool isAutoCalculated = false,
  13483. List<MeasuredValueDTO >? values,
  13484. List<MeasuredFeatureDTO >? childFeatures,
  13485. }) : super(
  13486. isVisible: isVisible,
  13487. annotation: annotation,
  13488. briefAnnotation: briefAnnotation,
  13489. xUnit: xUnit,
  13490. yUnit: yUnit,
  13491. showAnnotation: showAnnotation,
  13492. showCalliper: showCalliper,
  13493. points: points,
  13494. typeName: typeName,
  13495. creator: creator,
  13496. guid: guid,
  13497. showChildFeatures: showChildFeatures,
  13498. timeStamp: timeStamp,
  13499. isAutoCalculated: isAutoCalculated,
  13500. values: values,
  13501. childFeatures: childFeatures,
  13502. );
  13503. factory LocationFeatureDTO.fromJson(Map<String, dynamic> map) {
  13504. return LocationFeatureDTO(
  13505. typeName: map['TypeName'],
  13506. isVisible: map['IsVisible'],
  13507. annotation: map['Annotation'],
  13508. briefAnnotation: map['BriefAnnotation'],
  13509. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  13510. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  13511. showAnnotation: map['ShowAnnotation'],
  13512. showCalliper: map['ShowCalliper'],
  13513. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13514. creator: map['Creator'],
  13515. guid: map['Guid'],
  13516. showChildFeatures: map['ShowChildFeatures'],
  13517. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  13518. isAutoCalculated: map['IsAutoCalculated'],
  13519. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13520. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13521. );
  13522. }
  13523. Map<String, dynamic> toJson() {
  13524. final map = super.toJson();
  13525. return map;
  13526. }
  13527. }
  13528. class RayFeatureDTO extends LocationFeatureDTO{
  13529. bool isReverse;
  13530. double angle;
  13531. RayFeatureDTO({
  13532. String? typeName,
  13533. this.isReverse = false,
  13534. this.angle = 0,
  13535. bool isVisible = false,
  13536. String? annotation,
  13537. String? briefAnnotation,
  13538. Unit xUnit = Unit.None,
  13539. Unit yUnit = Unit.None,
  13540. bool showAnnotation = false,
  13541. bool showCalliper = false,
  13542. List<PointDTO >? points,
  13543. String? creator,
  13544. String? guid,
  13545. bool showChildFeatures = false,
  13546. DateTime? timeStamp,
  13547. bool isAutoCalculated = false,
  13548. List<MeasuredValueDTO >? values,
  13549. List<MeasuredFeatureDTO >? childFeatures,
  13550. }) : super(
  13551. typeName: typeName,
  13552. isVisible: isVisible,
  13553. annotation: annotation,
  13554. briefAnnotation: briefAnnotation,
  13555. xUnit: xUnit,
  13556. yUnit: yUnit,
  13557. showAnnotation: showAnnotation,
  13558. showCalliper: showCalliper,
  13559. points: points,
  13560. creator: creator,
  13561. guid: guid,
  13562. showChildFeatures: showChildFeatures,
  13563. timeStamp: timeStamp,
  13564. isAutoCalculated: isAutoCalculated,
  13565. values: values,
  13566. childFeatures: childFeatures,
  13567. );
  13568. factory RayFeatureDTO.fromJson(Map<String, dynamic> map) {
  13569. return RayFeatureDTO(
  13570. typeName: map['TypeName'],
  13571. isReverse: map['IsReverse'],
  13572. angle: double.parse(map['Angle'].toString()),
  13573. isVisible: map['IsVisible'],
  13574. annotation: map['Annotation'],
  13575. briefAnnotation: map['BriefAnnotation'],
  13576. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  13577. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  13578. showAnnotation: map['ShowAnnotation'],
  13579. showCalliper: map['ShowCalliper'],
  13580. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13581. creator: map['Creator'],
  13582. guid: map['Guid'],
  13583. showChildFeatures: map['ShowChildFeatures'],
  13584. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  13585. isAutoCalculated: map['IsAutoCalculated'],
  13586. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13587. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13588. );
  13589. }
  13590. Map<String, dynamic> toJson() {
  13591. final map = super.toJson();
  13592. map['IsReverse'] = isReverse;
  13593. map['Angle'] = angle;
  13594. return map;
  13595. }
  13596. }
  13597. class ManualTraceFeatureDTO extends GeometryFeatureDTO{
  13598. ManualTraceFeatureDTO({
  13599. String? typeName,
  13600. bool isVisible = false,
  13601. String? annotation,
  13602. String? briefAnnotation,
  13603. Unit xUnit = Unit.None,
  13604. Unit yUnit = Unit.None,
  13605. bool showAnnotation = false,
  13606. bool showCalliper = false,
  13607. List<PointDTO >? points,
  13608. String? creator,
  13609. String? guid,
  13610. bool showChildFeatures = false,
  13611. DateTime? timeStamp,
  13612. bool isAutoCalculated = false,
  13613. List<MeasuredValueDTO >? values,
  13614. List<MeasuredFeatureDTO >? childFeatures,
  13615. }) : super(
  13616. isVisible: isVisible,
  13617. annotation: annotation,
  13618. briefAnnotation: briefAnnotation,
  13619. xUnit: xUnit,
  13620. yUnit: yUnit,
  13621. showAnnotation: showAnnotation,
  13622. showCalliper: showCalliper,
  13623. points: points,
  13624. typeName: typeName,
  13625. creator: creator,
  13626. guid: guid,
  13627. showChildFeatures: showChildFeatures,
  13628. timeStamp: timeStamp,
  13629. isAutoCalculated: isAutoCalculated,
  13630. values: values,
  13631. childFeatures: childFeatures,
  13632. );
  13633. factory ManualTraceFeatureDTO.fromJson(Map<String, dynamic> map) {
  13634. return ManualTraceFeatureDTO(
  13635. typeName: map['TypeName'],
  13636. isVisible: map['IsVisible'],
  13637. annotation: map['Annotation'],
  13638. briefAnnotation: map['BriefAnnotation'],
  13639. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  13640. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  13641. showAnnotation: map['ShowAnnotation'],
  13642. showCalliper: map['ShowCalliper'],
  13643. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13644. creator: map['Creator'],
  13645. guid: map['Guid'],
  13646. showChildFeatures: map['ShowChildFeatures'],
  13647. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  13648. isAutoCalculated: map['IsAutoCalculated'],
  13649. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13650. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13651. );
  13652. }
  13653. Map<String, dynamic> toJson() {
  13654. final map = super.toJson();
  13655. return map;
  13656. }
  13657. }
  13658. class PolyLineFeatureDTO extends MeasuredFeatureDTO{
  13659. bool isClosed;
  13660. double splineTension;
  13661. PolyLineFeatureDTO({
  13662. String? typeName,
  13663. this.isClosed = false,
  13664. this.splineTension = 0,
  13665. String? creator,
  13666. String? guid,
  13667. bool showChildFeatures = false,
  13668. DateTime? timeStamp,
  13669. bool isAutoCalculated = false,
  13670. List<MeasuredValueDTO >? values,
  13671. List<MeasuredFeatureDTO >? childFeatures,
  13672. }) : super(
  13673. typeName: typeName,
  13674. creator: creator,
  13675. guid: guid,
  13676. showChildFeatures: showChildFeatures,
  13677. timeStamp: timeStamp,
  13678. isAutoCalculated: isAutoCalculated,
  13679. values: values,
  13680. childFeatures: childFeatures,
  13681. );
  13682. factory PolyLineFeatureDTO.fromJson(Map<String, dynamic> map) {
  13683. return PolyLineFeatureDTO(
  13684. typeName: map['TypeName'],
  13685. isClosed: map['IsClosed'],
  13686. splineTension: double.parse(map['SplineTension'].toString()),
  13687. creator: map['Creator'],
  13688. guid: map['Guid'],
  13689. showChildFeatures: map['ShowChildFeatures'],
  13690. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  13691. isAutoCalculated: map['IsAutoCalculated'],
  13692. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13693. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13694. );
  13695. }
  13696. Map<String, dynamic> toJson() {
  13697. final map = super.toJson();
  13698. map['IsClosed'] = isClosed;
  13699. map['SplineTension'] = splineTension;
  13700. return map;
  13701. }
  13702. }
  13703. class TraceLineFeatureDTO extends PolyLineFeatureDTO{
  13704. TraceLineFeatureDTO({
  13705. String? typeName,
  13706. bool isClosed = false,
  13707. double splineTension = 0,
  13708. String? creator,
  13709. String? guid,
  13710. bool showChildFeatures = false,
  13711. DateTime? timeStamp,
  13712. bool isAutoCalculated = false,
  13713. List<MeasuredValueDTO >? values,
  13714. List<MeasuredFeatureDTO >? childFeatures,
  13715. }) : super(
  13716. typeName: typeName,
  13717. isClosed: isClosed,
  13718. splineTension: splineTension,
  13719. creator: creator,
  13720. guid: guid,
  13721. showChildFeatures: showChildFeatures,
  13722. timeStamp: timeStamp,
  13723. isAutoCalculated: isAutoCalculated,
  13724. values: values,
  13725. childFeatures: childFeatures,
  13726. );
  13727. factory TraceLineFeatureDTO.fromJson(Map<String, dynamic> map) {
  13728. return TraceLineFeatureDTO(
  13729. typeName: map['TypeName'],
  13730. isClosed: map['IsClosed'],
  13731. splineTension: double.parse(map['SplineTension'].toString()),
  13732. creator: map['Creator'],
  13733. guid: map['Guid'],
  13734. showChildFeatures: map['ShowChildFeatures'],
  13735. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  13736. isAutoCalculated: map['IsAutoCalculated'],
  13737. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13738. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13739. );
  13740. }
  13741. Map<String, dynamic> toJson() {
  13742. final map = super.toJson();
  13743. return map;
  13744. }
  13745. }
  13746. class SimpsonPathFeatureDTO extends TraceLineFeatureDTO{
  13747. PointDTO? centerLineMovablePoint;
  13748. SimpsonPathFeatureDTO({
  13749. String? typeName,
  13750. this.centerLineMovablePoint,
  13751. bool isClosed = false,
  13752. double splineTension = 0,
  13753. String? creator,
  13754. String? guid,
  13755. bool showChildFeatures = false,
  13756. DateTime? timeStamp,
  13757. bool isAutoCalculated = false,
  13758. List<MeasuredValueDTO >? values,
  13759. List<MeasuredFeatureDTO >? childFeatures,
  13760. }) : super(
  13761. typeName: typeName,
  13762. isClosed: isClosed,
  13763. splineTension: splineTension,
  13764. creator: creator,
  13765. guid: guid,
  13766. showChildFeatures: showChildFeatures,
  13767. timeStamp: timeStamp,
  13768. isAutoCalculated: isAutoCalculated,
  13769. values: values,
  13770. childFeatures: childFeatures,
  13771. );
  13772. factory SimpsonPathFeatureDTO.fromJson(Map<String, dynamic> map) {
  13773. return SimpsonPathFeatureDTO(
  13774. typeName: map['TypeName'],
  13775. centerLineMovablePoint: map['CenterLineMovablePoint'] != null ? PointDTO.fromJson(map['CenterLineMovablePoint']) : null,
  13776. isClosed: map['IsClosed'],
  13777. splineTension: double.parse(map['SplineTension'].toString()),
  13778. creator: map['Creator'],
  13779. guid: map['Guid'],
  13780. showChildFeatures: map['ShowChildFeatures'],
  13781. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  13782. isAutoCalculated: map['IsAutoCalculated'],
  13783. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13784. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13785. );
  13786. }
  13787. Map<String, dynamic> toJson() {
  13788. final map = super.toJson();
  13789. if(centerLineMovablePoint != null)
  13790. map['CenterLineMovablePoint'] = centerLineMovablePoint;
  13791. return map;
  13792. }
  13793. }
  13794. class RectFeatureDTO extends GeometryFeatureDTO{
  13795. bool showRootFeature;
  13796. List<MeasuredFeatureDTO >? autoLines;
  13797. RectFeatureDTO({
  13798. String? typeName,
  13799. this.showRootFeature = false,
  13800. this.autoLines,
  13801. bool isVisible = false,
  13802. String? annotation,
  13803. String? briefAnnotation,
  13804. Unit xUnit = Unit.None,
  13805. Unit yUnit = Unit.None,
  13806. bool showAnnotation = false,
  13807. bool showCalliper = false,
  13808. List<PointDTO >? points,
  13809. String? creator,
  13810. String? guid,
  13811. bool showChildFeatures = false,
  13812. DateTime? timeStamp,
  13813. bool isAutoCalculated = false,
  13814. List<MeasuredValueDTO >? values,
  13815. List<MeasuredFeatureDTO >? childFeatures,
  13816. }) : super(
  13817. isVisible: isVisible,
  13818. annotation: annotation,
  13819. briefAnnotation: briefAnnotation,
  13820. xUnit: xUnit,
  13821. yUnit: yUnit,
  13822. showAnnotation: showAnnotation,
  13823. showCalliper: showCalliper,
  13824. points: points,
  13825. typeName: typeName,
  13826. creator: creator,
  13827. guid: guid,
  13828. showChildFeatures: showChildFeatures,
  13829. timeStamp: timeStamp,
  13830. isAutoCalculated: isAutoCalculated,
  13831. values: values,
  13832. childFeatures: childFeatures,
  13833. );
  13834. factory RectFeatureDTO.fromJson(Map<String, dynamic> map) {
  13835. return RectFeatureDTO(
  13836. typeName: map['TypeName'],
  13837. showRootFeature: map['ShowRootFeature'],
  13838. autoLines: map['AutoLines'] != null ? (map['AutoLines'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13839. isVisible: map['IsVisible'],
  13840. annotation: map['Annotation'],
  13841. briefAnnotation: map['BriefAnnotation'],
  13842. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  13843. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  13844. showAnnotation: map['ShowAnnotation'],
  13845. showCalliper: map['ShowCalliper'],
  13846. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13847. creator: map['Creator'],
  13848. guid: map['Guid'],
  13849. showChildFeatures: map['ShowChildFeatures'],
  13850. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  13851. isAutoCalculated: map['IsAutoCalculated'],
  13852. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13853. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13854. );
  13855. }
  13856. Map<String, dynamic> toJson() {
  13857. final map = super.toJson();
  13858. map['ShowRootFeature'] = showRootFeature;
  13859. if(autoLines != null)
  13860. map['AutoLines'] = autoLines;
  13861. return map;
  13862. }
  13863. }
  13864. class FollicleRectFeatureDTO extends RectFeatureDTO{
  13865. FollicleRectFeatureDTO({
  13866. String? typeName,
  13867. bool showRootFeature = false,
  13868. List<MeasuredFeatureDTO >? autoLines,
  13869. bool isVisible = false,
  13870. String? annotation,
  13871. String? briefAnnotation,
  13872. Unit xUnit = Unit.None,
  13873. Unit yUnit = Unit.None,
  13874. bool showAnnotation = false,
  13875. bool showCalliper = false,
  13876. List<PointDTO >? points,
  13877. String? creator,
  13878. String? guid,
  13879. bool showChildFeatures = false,
  13880. DateTime? timeStamp,
  13881. bool isAutoCalculated = false,
  13882. List<MeasuredValueDTO >? values,
  13883. List<MeasuredFeatureDTO >? childFeatures,
  13884. }) : super(
  13885. typeName: typeName,
  13886. showRootFeature: showRootFeature,
  13887. autoLines: autoLines,
  13888. isVisible: isVisible,
  13889. annotation: annotation,
  13890. briefAnnotation: briefAnnotation,
  13891. xUnit: xUnit,
  13892. yUnit: yUnit,
  13893. showAnnotation: showAnnotation,
  13894. showCalliper: showCalliper,
  13895. points: points,
  13896. creator: creator,
  13897. guid: guid,
  13898. showChildFeatures: showChildFeatures,
  13899. timeStamp: timeStamp,
  13900. isAutoCalculated: isAutoCalculated,
  13901. values: values,
  13902. childFeatures: childFeatures,
  13903. );
  13904. factory FollicleRectFeatureDTO.fromJson(Map<String, dynamic> map) {
  13905. return FollicleRectFeatureDTO(
  13906. typeName: map['TypeName'],
  13907. showRootFeature: map['ShowRootFeature'],
  13908. autoLines: map['AutoLines'] != null ? (map['AutoLines'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13909. isVisible: map['IsVisible'],
  13910. annotation: map['Annotation'],
  13911. briefAnnotation: map['BriefAnnotation'],
  13912. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  13913. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  13914. showAnnotation: map['ShowAnnotation'],
  13915. showCalliper: map['ShowCalliper'],
  13916. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13917. creator: map['Creator'],
  13918. guid: map['Guid'],
  13919. showChildFeatures: map['ShowChildFeatures'],
  13920. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  13921. isAutoCalculated: map['IsAutoCalculated'],
  13922. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13923. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13924. );
  13925. }
  13926. Map<String, dynamic> toJson() {
  13927. final map = super.toJson();
  13928. return map;
  13929. }
  13930. }
  13931. class StraightLineFeatureDTO extends GeometryFeatureDTO{
  13932. StraightLineShapeEnum shapeType;
  13933. bool useDashLine;
  13934. StraightLineFeatureDTO({
  13935. String? typeName,
  13936. this.shapeType = StraightLineShapeEnum.StraightLine,
  13937. this.useDashLine = false,
  13938. bool isVisible = false,
  13939. String? annotation,
  13940. String? briefAnnotation,
  13941. Unit xUnit = Unit.None,
  13942. Unit yUnit = Unit.None,
  13943. bool showAnnotation = false,
  13944. bool showCalliper = false,
  13945. List<PointDTO >? points,
  13946. String? creator,
  13947. String? guid,
  13948. bool showChildFeatures = false,
  13949. DateTime? timeStamp,
  13950. bool isAutoCalculated = false,
  13951. List<MeasuredValueDTO >? values,
  13952. List<MeasuredFeatureDTO >? childFeatures,
  13953. }) : super(
  13954. isVisible: isVisible,
  13955. annotation: annotation,
  13956. briefAnnotation: briefAnnotation,
  13957. xUnit: xUnit,
  13958. yUnit: yUnit,
  13959. showAnnotation: showAnnotation,
  13960. showCalliper: showCalliper,
  13961. points: points,
  13962. typeName: typeName,
  13963. creator: creator,
  13964. guid: guid,
  13965. showChildFeatures: showChildFeatures,
  13966. timeStamp: timeStamp,
  13967. isAutoCalculated: isAutoCalculated,
  13968. values: values,
  13969. childFeatures: childFeatures,
  13970. );
  13971. factory StraightLineFeatureDTO.fromJson(Map<String, dynamic> map) {
  13972. return StraightLineFeatureDTO(
  13973. typeName: map['TypeName'],
  13974. shapeType: StraightLineShapeEnum.values.firstWhere((e) => e.index == map['ShapeType']),
  13975. useDashLine: map['UseDashLine'],
  13976. isVisible: map['IsVisible'],
  13977. annotation: map['Annotation'],
  13978. briefAnnotation: map['BriefAnnotation'],
  13979. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  13980. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  13981. showAnnotation: map['ShowAnnotation'],
  13982. showCalliper: map['ShowCalliper'],
  13983. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13984. creator: map['Creator'],
  13985. guid: map['Guid'],
  13986. showChildFeatures: map['ShowChildFeatures'],
  13987. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  13988. isAutoCalculated: map['IsAutoCalculated'],
  13989. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13990. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13991. );
  13992. }
  13993. Map<String, dynamic> toJson() {
  13994. final map = super.toJson();
  13995. map['ShapeType'] = shapeType.index;
  13996. map['UseDashLine'] = useDashLine;
  13997. return map;
  13998. }
  13999. }
  14000. class VasPlaqueSplitterFeatureDTO extends GeometryFeatureDTO{
  14001. int maxZoneCount;
  14002. int currentZoneCount;
  14003. int angle;
  14004. List<PointDTO >? splitterLinesPoints;
  14005. VasPlaqueSplitterFeatureDTO({
  14006. String? typeName,
  14007. this.maxZoneCount = 0,
  14008. this.currentZoneCount = 0,
  14009. this.angle = 0,
  14010. bool isVisible = false,
  14011. this.splitterLinesPoints,
  14012. String? annotation,
  14013. String? briefAnnotation,
  14014. Unit xUnit = Unit.None,
  14015. Unit yUnit = Unit.None,
  14016. bool showAnnotation = false,
  14017. bool showCalliper = false,
  14018. List<PointDTO >? points,
  14019. String? creator,
  14020. String? guid,
  14021. bool showChildFeatures = false,
  14022. DateTime? timeStamp,
  14023. bool isAutoCalculated = false,
  14024. List<MeasuredValueDTO >? values,
  14025. List<MeasuredFeatureDTO >? childFeatures,
  14026. }) : super(
  14027. isVisible: isVisible,
  14028. annotation: annotation,
  14029. briefAnnotation: briefAnnotation,
  14030. xUnit: xUnit,
  14031. yUnit: yUnit,
  14032. showAnnotation: showAnnotation,
  14033. showCalliper: showCalliper,
  14034. points: points,
  14035. typeName: typeName,
  14036. creator: creator,
  14037. guid: guid,
  14038. showChildFeatures: showChildFeatures,
  14039. timeStamp: timeStamp,
  14040. isAutoCalculated: isAutoCalculated,
  14041. values: values,
  14042. childFeatures: childFeatures,
  14043. );
  14044. factory VasPlaqueSplitterFeatureDTO.fromJson(Map<String, dynamic> map) {
  14045. return VasPlaqueSplitterFeatureDTO(
  14046. typeName: map['TypeName'],
  14047. maxZoneCount: map['MaxZoneCount'],
  14048. currentZoneCount: map['CurrentZoneCount'],
  14049. angle: map['Angle'],
  14050. isVisible: map['IsVisible'],
  14051. splitterLinesPoints: map['SplitterLinesPoints'] != null ? (map['SplitterLinesPoints'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14052. annotation: map['Annotation'],
  14053. briefAnnotation: map['BriefAnnotation'],
  14054. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  14055. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  14056. showAnnotation: map['ShowAnnotation'],
  14057. showCalliper: map['ShowCalliper'],
  14058. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14059. creator: map['Creator'],
  14060. guid: map['Guid'],
  14061. showChildFeatures: map['ShowChildFeatures'],
  14062. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14063. isAutoCalculated: map['IsAutoCalculated'],
  14064. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14065. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14066. );
  14067. }
  14068. Map<String, dynamic> toJson() {
  14069. final map = super.toJson();
  14070. map['MaxZoneCount'] = maxZoneCount;
  14071. map['CurrentZoneCount'] = currentZoneCount;
  14072. map['Angle'] = angle;
  14073. if(splitterLinesPoints != null)
  14074. map['SplitterLinesPoints'] = splitterLinesPoints;
  14075. return map;
  14076. }
  14077. }
  14078. class GrowthNormalRangeDTO {
  14079. String? typeName;
  14080. String? tableAuthor;
  14081. String? measureItem;
  14082. int gAinDays;
  14083. int status;
  14084. double value;
  14085. double minValue;
  14086. double maxValue;
  14087. Unit valueUnit;
  14088. Unit targetUnit;
  14089. GrowthNormalRangeDTO({
  14090. this.typeName,
  14091. this.tableAuthor,
  14092. this.measureItem,
  14093. this.gAinDays = 0,
  14094. this.status = 0,
  14095. this.value = 0,
  14096. this.minValue = 0,
  14097. this.maxValue = 0,
  14098. this.valueUnit = Unit.None,
  14099. this.targetUnit = Unit.None,
  14100. });
  14101. factory GrowthNormalRangeDTO.fromJson(Map<String, dynamic> map) {
  14102. return GrowthNormalRangeDTO(
  14103. typeName: map['TypeName'],
  14104. tableAuthor: map['TableAuthor'],
  14105. measureItem: map['MeasureItem'],
  14106. gAinDays: map['GAinDays'],
  14107. status: map['Status'],
  14108. value: double.parse(map['Value'].toString()),
  14109. minValue: double.parse(map['MinValue'].toString()),
  14110. maxValue: double.parse(map['MaxValue'].toString()),
  14111. valueUnit: Unit.values.firstWhere((e) => e.index == map['ValueUnit']),
  14112. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  14113. );
  14114. }
  14115. Map<String, dynamic> toJson() {
  14116. final map = Map<String, dynamic>();
  14117. if(typeName != null)
  14118. map['TypeName'] = typeName;
  14119. if(tableAuthor != null)
  14120. map['TableAuthor'] = tableAuthor;
  14121. if(measureItem != null)
  14122. map['MeasureItem'] = measureItem;
  14123. map['GAinDays'] = gAinDays;
  14124. map['Status'] = status;
  14125. map['Value'] = value;
  14126. map['MinValue'] = minValue;
  14127. map['MaxValue'] = maxValue;
  14128. map['ValueUnit'] = valueUnit.index;
  14129. map['TargetUnit'] = targetUnit.index;
  14130. return map;
  14131. }
  14132. }
  14133. class EFWRepresentationDTO extends FloatValueDTO{
  14134. EFWRepresentationDTO({
  14135. FetalGrowthIndexDTO? fetalGrowthIndex,
  14136. String? typeName,
  14137. String? name,
  14138. String? description,
  14139. bool worksheetAffinity = false,
  14140. String? briefDescription,
  14141. String? value,
  14142. Unit unit = Unit.None,
  14143. Unit targetUnit = Unit.None,
  14144. }) : super(
  14145. fetalGrowthIndex: fetalGrowthIndex,
  14146. typeName: typeName,
  14147. name: name,
  14148. description: description,
  14149. worksheetAffinity: worksheetAffinity,
  14150. briefDescription: briefDescription,
  14151. value: value,
  14152. unit: unit,
  14153. targetUnit: targetUnit,
  14154. );
  14155. factory EFWRepresentationDTO.fromJson(Map<String, dynamic> map) {
  14156. return EFWRepresentationDTO(
  14157. fetalGrowthIndex: map['FetalGrowthIndex'] != null ? FetalGrowthIndexDTO.fromJson(map['FetalGrowthIndex']) : null,
  14158. typeName: map['TypeName'],
  14159. name: map['Name'],
  14160. description: map['Description'],
  14161. worksheetAffinity: map['WorksheetAffinity'],
  14162. briefDescription: map['BriefDescription'],
  14163. value: map['Value'],
  14164. unit: Unit.values.firstWhere((e) => e.index == map['Unit']),
  14165. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  14166. );
  14167. }
  14168. Map<String, dynamic> toJson() {
  14169. final map = super.toJson();
  14170. return map;
  14171. }
  14172. }
  14173. class AdminExtendInfoDTO extends AdminInfoDTO{
  14174. List<String >? roleNames;
  14175. String? defaultRoleCode;
  14176. String? defaultRoleName;
  14177. bool isLocked;
  14178. AdminExtendInfoDTO({
  14179. this.roleNames,
  14180. this.defaultRoleCode,
  14181. this.defaultRoleName,
  14182. this.isLocked = false,
  14183. String? adminCode,
  14184. String? fatherCode,
  14185. String? adminName,
  14186. String? fullName,
  14187. String? secretPassword,
  14188. String? headImageToken,
  14189. String? licenseKey,
  14190. String? lastIP,
  14191. String? phone,
  14192. String? email,
  14193. List<String >? roleCodes,
  14194. LoginLockInfoDTO? loginLockInfo,
  14195. DateTime? passwordUpdateTime,
  14196. List<String >? passwordRecords,
  14197. List<ClearLogOperateDTO >? clearLogOperateList,
  14198. DateTime? createTime,
  14199. DateTime? updateTime,
  14200. }) : super(
  14201. adminCode: adminCode,
  14202. fatherCode: fatherCode,
  14203. adminName: adminName,
  14204. fullName: fullName,
  14205. secretPassword: secretPassword,
  14206. headImageToken: headImageToken,
  14207. licenseKey: licenseKey,
  14208. lastIP: lastIP,
  14209. phone: phone,
  14210. email: email,
  14211. roleCodes: roleCodes,
  14212. loginLockInfo: loginLockInfo,
  14213. passwordUpdateTime: passwordUpdateTime,
  14214. passwordRecords: passwordRecords,
  14215. clearLogOperateList: clearLogOperateList,
  14216. createTime: createTime,
  14217. updateTime: updateTime,
  14218. );
  14219. factory AdminExtendInfoDTO.fromJson(Map<String, dynamic> map) {
  14220. return AdminExtendInfoDTO(
  14221. roleNames: map['RoleNames'] != null ? map['RoleNames'].cast<String>().toList() : null,
  14222. defaultRoleCode: map['DefaultRoleCode'],
  14223. defaultRoleName: map['DefaultRoleName'],
  14224. isLocked: map['IsLocked'],
  14225. adminCode: map['AdminCode'],
  14226. fatherCode: map['FatherCode'],
  14227. adminName: map['AdminName'],
  14228. fullName: map['FullName'],
  14229. secretPassword: map['SecretPassword'],
  14230. headImageToken: map['HeadImageToken'],
  14231. licenseKey: map['LicenseKey'],
  14232. lastIP: map['LastIP'],
  14233. phone: map['Phone'],
  14234. email: map['Email'],
  14235. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  14236. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  14237. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  14238. passwordRecords: map['PasswordRecords'] != null ? map['PasswordRecords'].cast<String>().toList() : null,
  14239. clearLogOperateList: map['ClearLogOperateList'] != null ? (map['ClearLogOperateList'] as List).map((e)=>ClearLogOperateDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14240. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  14241. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  14242. );
  14243. }
  14244. Map<String, dynamic> toJson() {
  14245. final map = super.toJson();
  14246. if(roleNames != null)
  14247. map['RoleNames'] = roleNames;
  14248. if(defaultRoleCode != null)
  14249. map['DefaultRoleCode'] = defaultRoleCode;
  14250. if(defaultRoleName != null)
  14251. map['DefaultRoleName'] = defaultRoleName;
  14252. map['IsLocked'] = isLocked;
  14253. return map;
  14254. }
  14255. }
  14256. class AdminLoginResult {
  14257. LoginStateEnum loginState;
  14258. String? token;
  14259. int? lockRemainingTimes;
  14260. bool isDistributedServer;
  14261. bool passwordExpired;
  14262. String? adminName;
  14263. AdminLoginResult({
  14264. this.loginState = LoginStateEnum.Succeed,
  14265. this.token,
  14266. this.lockRemainingTimes,
  14267. this.isDistributedServer = false,
  14268. this.passwordExpired = false,
  14269. this.adminName,
  14270. });
  14271. factory AdminLoginResult.fromJson(Map<String, dynamic> map) {
  14272. return AdminLoginResult(
  14273. loginState: LoginStateEnum.values.firstWhere((e) => e.index == map['LoginState']),
  14274. token: map['Token'],
  14275. lockRemainingTimes: map['LockRemainingTimes'],
  14276. isDistributedServer: map['IsDistributedServer'],
  14277. passwordExpired: map['PasswordExpired'],
  14278. adminName: map['AdminName'],
  14279. );
  14280. }
  14281. Map<String, dynamic> toJson() {
  14282. final map = Map<String, dynamic>();
  14283. map['LoginState'] = loginState.index;
  14284. if(token != null)
  14285. map['Token'] = token;
  14286. if(lockRemainingTimes != null)
  14287. map['LockRemainingTimes'] = lockRemainingTimes;
  14288. map['IsDistributedServer'] = isDistributedServer;
  14289. map['PasswordExpired'] = passwordExpired;
  14290. if(adminName != null)
  14291. map['AdminName'] = adminName;
  14292. return map;
  14293. }
  14294. }
  14295. class WaitDeleteLogBaseDTO {
  14296. int daysAgoList;
  14297. int waitDeleteLogCount;
  14298. WaitDeleteLogBaseDTO({
  14299. this.daysAgoList = 0,
  14300. this.waitDeleteLogCount = 0,
  14301. });
  14302. factory WaitDeleteLogBaseDTO.fromJson(Map<String, dynamic> map) {
  14303. return WaitDeleteLogBaseDTO(
  14304. daysAgoList: map['DaysAgoList'],
  14305. waitDeleteLogCount: map['WaitDeleteLogCount'],
  14306. );
  14307. }
  14308. Map<String, dynamic> toJson() {
  14309. final map = Map<String, dynamic>();
  14310. map['DaysAgoList'] = daysAgoList;
  14311. map['WaitDeleteLogCount'] = waitDeleteLogCount;
  14312. return map;
  14313. }
  14314. }
  14315. class WaitDeleteLogsDTO {
  14316. List<WaitDeleteLogBaseDTO >? waitDeleteLogs;
  14317. int daysAgo;
  14318. String? requestServerHost;
  14319. DateTime? lastClearTime;
  14320. DateTime? lastClearOperateTime;
  14321. WaitDeleteLogsDTO({
  14322. this.waitDeleteLogs,
  14323. this.daysAgo = 0,
  14324. this.requestServerHost,
  14325. this.lastClearTime,
  14326. this.lastClearOperateTime,
  14327. });
  14328. factory WaitDeleteLogsDTO.fromJson(Map<String, dynamic> map) {
  14329. return WaitDeleteLogsDTO(
  14330. waitDeleteLogs: map['WaitDeleteLogs'] != null ? (map['WaitDeleteLogs'] as List).map((e)=>WaitDeleteLogBaseDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14331. daysAgo: map['DaysAgo'],
  14332. requestServerHost: map['RequestServerHost'],
  14333. lastClearTime: map['LastClearTime'] != null ? DateTime.parse(map['LastClearTime']) : null,
  14334. lastClearOperateTime: map['LastClearOperateTime'] != null ? DateTime.parse(map['LastClearOperateTime']) : null,
  14335. );
  14336. }
  14337. Map<String, dynamic> toJson() {
  14338. final map = Map<String, dynamic>();
  14339. if(waitDeleteLogs != null)
  14340. map['WaitDeleteLogs'] = waitDeleteLogs;
  14341. map['DaysAgo'] = daysAgo;
  14342. if(requestServerHost != null)
  14343. map['RequestServerHost'] = requestServerHost;
  14344. if(lastClearTime != null)
  14345. map['LastClearTime'] = JsonRpcUtils.dateFormat(lastClearTime!);
  14346. if(lastClearOperateTime != null)
  14347. map['LastClearOperateTime'] = JsonRpcUtils.dateFormat(lastClearOperateTime!);
  14348. return map;
  14349. }
  14350. }
  14351. class ManageAdminFeatureInfoDTO {
  14352. List<String >? featureCodeList;
  14353. ManageAdminFeatureInfoDTO({
  14354. this.featureCodeList,
  14355. });
  14356. factory ManageAdminFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  14357. return ManageAdminFeatureInfoDTO(
  14358. featureCodeList: map['FeatureCodeList'] != null ? map['FeatureCodeList'].cast<String>().toList() : null,
  14359. );
  14360. }
  14361. Map<String, dynamic> toJson() {
  14362. final map = Map<String, dynamic>();
  14363. if(featureCodeList != null)
  14364. map['FeatureCodeList'] = featureCodeList;
  14365. return map;
  14366. }
  14367. }
  14368. class FeatureDetail {
  14369. String? id;
  14370. FeatureDetail({
  14371. this.id,
  14372. });
  14373. factory FeatureDetail.fromJson(Map<String, dynamic> map) {
  14374. return FeatureDetail(
  14375. id: map['Id'],
  14376. );
  14377. }
  14378. Map<String, dynamic> toJson() {
  14379. final map = Map<String, dynamic>();
  14380. if(id != null)
  14381. map['Id'] = id;
  14382. return map;
  14383. }
  14384. }
  14385. class ManageAdminRoleInfoDTO extends AdminRoleDTO{
  14386. List<FeatureDetail >? featureList;
  14387. ManageAdminRoleInfoDTO({
  14388. this.featureList,
  14389. String? adminGroupCode,
  14390. int adminNum = 0,
  14391. String? roleCode,
  14392. String? roleName,
  14393. String? description,
  14394. List<UserRoleLanguageConfigDTO >? languageConfigs,
  14395. DateTime? createTime,
  14396. DateTime? updateTime,
  14397. }) : super(
  14398. adminGroupCode: adminGroupCode,
  14399. adminNum: adminNum,
  14400. roleCode: roleCode,
  14401. roleName: roleName,
  14402. description: description,
  14403. languageConfigs: languageConfigs,
  14404. createTime: createTime,
  14405. updateTime: updateTime,
  14406. );
  14407. factory ManageAdminRoleInfoDTO.fromJson(Map<String, dynamic> map) {
  14408. return ManageAdminRoleInfoDTO(
  14409. featureList: map['FeatureList'] != null ? (map['FeatureList'] as List).map((e)=>FeatureDetail.fromJson(e as Map<String,dynamic>)).toList() : null,
  14410. adminGroupCode: map['AdminGroupCode'],
  14411. adminNum: map['AdminNum'],
  14412. roleCode: map['RoleCode'],
  14413. roleName: map['RoleName'],
  14414. description: map['Description'],
  14415. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14416. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  14417. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  14418. );
  14419. }
  14420. Map<String, dynamic> toJson() {
  14421. final map = super.toJson();
  14422. if(featureList != null)
  14423. map['FeatureList'] = featureList;
  14424. return map;
  14425. }
  14426. }
  14427. class ManageCreateProductDTO extends CreateProductDTO{
  14428. ManageCreateProductDTO({
  14429. String? productCode,
  14430. DateTime? createTime,
  14431. DateTime? updateTime,
  14432. }) : super(
  14433. productCode: productCode,
  14434. createTime: createTime,
  14435. updateTime: updateTime,
  14436. );
  14437. factory ManageCreateProductDTO.fromJson(Map<String, dynamic> map) {
  14438. return ManageCreateProductDTO(
  14439. productCode: map['ProductCode'],
  14440. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  14441. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  14442. );
  14443. }
  14444. Map<String, dynamic> toJson() {
  14445. final map = super.toJson();
  14446. return map;
  14447. }
  14448. }
  14449. class ManageDeviceInfoDTO extends DeviceInfoDTO{
  14450. String? hospitalName;
  14451. String? departmentName;
  14452. String? directorName;
  14453. String? adminName;
  14454. String? shareUserNum;
  14455. String? deviceModelName;
  14456. List<DictionaryLanguageConfigDTO >? languageConfigs;
  14457. ManageDeviceInfoDTO({
  14458. this.hospitalName,
  14459. this.departmentName,
  14460. this.directorName,
  14461. this.adminName,
  14462. this.shareUserNum,
  14463. this.deviceModelName,
  14464. this.languageConfigs,
  14465. String? deviceCode,
  14466. String? serialNumber,
  14467. String? password,
  14468. String? name,
  14469. String? description,
  14470. String? deviceModel,
  14471. String? deviceType,
  14472. String? headPicUrl,
  14473. String? deviceSoftwareVersion,
  14474. String? sDKSoftwareVersion,
  14475. String? organizationCode,
  14476. String? departmentCode,
  14477. String? shortCode,
  14478. bool isAutoShared = false,
  14479. bool isEncryptedShow = false,
  14480. DateTime? lastLoginTime,
  14481. String? systemVersion,
  14482. String? cPUModel,
  14483. String? systemLanguage,
  14484. List<String >? diagnosisModules,
  14485. List<String >? reportPosterCodes,
  14486. bool mergedChannel = false,
  14487. int mergedVideoOutputWidth = 0,
  14488. int mergedVideoOutputHeight = 0,
  14489. List<VideoDeviceDTO >? videoDeviceInfos,
  14490. DownloadModeSettingEnum downloadModeSetting = DownloadModeSettingEnum.Auto,
  14491. bool liveOpened = false,
  14492. String? displayName,
  14493. DateTime? createTime,
  14494. DateTime? updateTime,
  14495. }) : super(
  14496. deviceCode: deviceCode,
  14497. serialNumber: serialNumber,
  14498. password: password,
  14499. name: name,
  14500. description: description,
  14501. deviceModel: deviceModel,
  14502. deviceType: deviceType,
  14503. headPicUrl: headPicUrl,
  14504. deviceSoftwareVersion: deviceSoftwareVersion,
  14505. sDKSoftwareVersion: sDKSoftwareVersion,
  14506. organizationCode: organizationCode,
  14507. departmentCode: departmentCode,
  14508. shortCode: shortCode,
  14509. isAutoShared: isAutoShared,
  14510. isEncryptedShow: isEncryptedShow,
  14511. lastLoginTime: lastLoginTime,
  14512. systemVersion: systemVersion,
  14513. cPUModel: cPUModel,
  14514. systemLanguage: systemLanguage,
  14515. diagnosisModules: diagnosisModules,
  14516. reportPosterCodes: reportPosterCodes,
  14517. mergedChannel: mergedChannel,
  14518. mergedVideoOutputWidth: mergedVideoOutputWidth,
  14519. mergedVideoOutputHeight: mergedVideoOutputHeight,
  14520. videoDeviceInfos: videoDeviceInfos,
  14521. downloadModeSetting: downloadModeSetting,
  14522. liveOpened: liveOpened,
  14523. displayName: displayName,
  14524. createTime: createTime,
  14525. updateTime: updateTime,
  14526. );
  14527. factory ManageDeviceInfoDTO.fromJson(Map<String, dynamic> map) {
  14528. return ManageDeviceInfoDTO(
  14529. hospitalName: map['HospitalName'],
  14530. departmentName: map['DepartmentName'],
  14531. directorName: map['DirectorName'],
  14532. adminName: map['AdminName'],
  14533. shareUserNum: map['ShareUserNum'],
  14534. deviceModelName: map['DeviceModelName'],
  14535. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>DictionaryLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14536. deviceCode: map['DeviceCode'],
  14537. serialNumber: map['SerialNumber'],
  14538. password: map['Password'],
  14539. name: map['Name'],
  14540. description: map['Description'],
  14541. deviceModel: map['DeviceModel'],
  14542. deviceType: map['DeviceType'],
  14543. headPicUrl: map['HeadPicUrl'],
  14544. deviceSoftwareVersion: map['DeviceSoftwareVersion'],
  14545. sDKSoftwareVersion: map['SDKSoftwareVersion'],
  14546. organizationCode: map['OrganizationCode'],
  14547. departmentCode: map['DepartmentCode'],
  14548. shortCode: map['ShortCode'],
  14549. isAutoShared: map['IsAutoShared'],
  14550. isEncryptedShow: map['IsEncryptedShow'],
  14551. lastLoginTime: map['LastLoginTime'] != null ? DateTime.parse(map['LastLoginTime']) : null,
  14552. systemVersion: map['SystemVersion'],
  14553. cPUModel: map['CPUModel'],
  14554. systemLanguage: map['SystemLanguage'],
  14555. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  14556. reportPosterCodes: map['ReportPosterCodes'] != null ? map['ReportPosterCodes'].cast<String>().toList() : null,
  14557. mergedChannel: map['MergedChannel'],
  14558. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  14559. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  14560. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14561. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  14562. liveOpened: map['LiveOpened'],
  14563. displayName: map['DisplayName'],
  14564. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  14565. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  14566. );
  14567. }
  14568. Map<String, dynamic> toJson() {
  14569. final map = super.toJson();
  14570. if(hospitalName != null)
  14571. map['HospitalName'] = hospitalName;
  14572. if(departmentName != null)
  14573. map['DepartmentName'] = departmentName;
  14574. if(directorName != null)
  14575. map['DirectorName'] = directorName;
  14576. if(adminName != null)
  14577. map['AdminName'] = adminName;
  14578. if(shareUserNum != null)
  14579. map['ShareUserNum'] = shareUserNum;
  14580. if(deviceModelName != null)
  14581. map['DeviceModelName'] = deviceModelName;
  14582. if(languageConfigs != null)
  14583. map['LanguageConfigs'] = languageConfigs;
  14584. return map;
  14585. }
  14586. }
  14587. class ManageDeviceTypeDTO {
  14588. String? dictionaryCode;
  14589. String? value;
  14590. List<DictionaryLanguageConfigDTO >? languageConfigs;
  14591. List<DictionaryDTO >? dictionaryList;
  14592. ManageDeviceTypeDTO({
  14593. this.dictionaryCode,
  14594. this.value,
  14595. this.languageConfigs,
  14596. this.dictionaryList,
  14597. });
  14598. factory ManageDeviceTypeDTO.fromJson(Map<String, dynamic> map) {
  14599. return ManageDeviceTypeDTO(
  14600. dictionaryCode: map['DictionaryCode'],
  14601. value: map['Value'],
  14602. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>DictionaryLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14603. dictionaryList: map['DictionaryList'] != null ? (map['DictionaryList'] as List).map((e)=>DictionaryDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14604. );
  14605. }
  14606. Map<String, dynamic> toJson() {
  14607. final map = Map<String, dynamic>();
  14608. if(dictionaryCode != null)
  14609. map['DictionaryCode'] = dictionaryCode;
  14610. if(value != null)
  14611. map['Value'] = value;
  14612. if(languageConfigs != null)
  14613. map['LanguageConfigs'] = languageConfigs;
  14614. if(dictionaryList != null)
  14615. map['DictionaryList'] = dictionaryList;
  14616. return map;
  14617. }
  14618. }
  14619. class ManageDeviceUserDTO {
  14620. String? userCode;
  14621. String? userName;
  14622. String? phone;
  14623. String? email;
  14624. String? nickName;
  14625. String? fullName;
  14626. String? hospitalName;
  14627. ManageDeviceUserDTO({
  14628. this.userCode,
  14629. this.userName,
  14630. this.phone,
  14631. this.email,
  14632. this.nickName,
  14633. this.fullName,
  14634. this.hospitalName,
  14635. });
  14636. factory ManageDeviceUserDTO.fromJson(Map<String, dynamic> map) {
  14637. return ManageDeviceUserDTO(
  14638. userCode: map['UserCode'],
  14639. userName: map['UserName'],
  14640. phone: map['Phone'],
  14641. email: map['Email'],
  14642. nickName: map['NickName'],
  14643. fullName: map['FullName'],
  14644. hospitalName: map['HospitalName'],
  14645. );
  14646. }
  14647. Map<String, dynamic> toJson() {
  14648. final map = Map<String, dynamic>();
  14649. if(userCode != null)
  14650. map['UserCode'] = userCode;
  14651. if(userName != null)
  14652. map['UserName'] = userName;
  14653. if(phone != null)
  14654. map['Phone'] = phone;
  14655. if(email != null)
  14656. map['Email'] = email;
  14657. if(nickName != null)
  14658. map['NickName'] = nickName;
  14659. if(fullName != null)
  14660. map['FullName'] = fullName;
  14661. if(hospitalName != null)
  14662. map['HospitalName'] = hospitalName;
  14663. return map;
  14664. }
  14665. }
  14666. class ManageOrderDetailDTO extends OrderDetailDTO{
  14667. ManageOrderDetailDTO({
  14668. String? code,
  14669. String? orderUserName,
  14670. String? orderUserCode,
  14671. String? productCode,
  14672. String? tPORderCode,
  14673. String? orderTitle,
  14674. OrderTypeEnum orderType = OrderTypeEnum.General,
  14675. double orderAmount = 0,
  14676. DateTime? payTime,
  14677. PayStatusEnum payStatus = PayStatusEnum.NoPay,
  14678. DateTime? createTime,
  14679. DateTime? updateTime,
  14680. }) : super(
  14681. code: code,
  14682. orderUserName: orderUserName,
  14683. orderUserCode: orderUserCode,
  14684. productCode: productCode,
  14685. tPORderCode: tPORderCode,
  14686. orderTitle: orderTitle,
  14687. orderType: orderType,
  14688. orderAmount: orderAmount,
  14689. payTime: payTime,
  14690. payStatus: payStatus,
  14691. createTime: createTime,
  14692. updateTime: updateTime,
  14693. );
  14694. factory ManageOrderDetailDTO.fromJson(Map<String, dynamic> map) {
  14695. return ManageOrderDetailDTO(
  14696. code: map['Code'],
  14697. orderUserName: map['OrderUserName'],
  14698. orderUserCode: map['OrderUserCode'],
  14699. productCode: map['ProductCode'],
  14700. tPORderCode: map['TPORderCode'],
  14701. orderTitle: map['OrderTitle'],
  14702. orderType: OrderTypeEnum.values.firstWhere((e) => e.index == map['OrderType']),
  14703. orderAmount: double.parse(map['OrderAmount'].toString()),
  14704. payTime: map['PayTime'] != null ? DateTime.parse(map['PayTime']) : null,
  14705. payStatus: PayStatusEnum.values.firstWhere((e) => e.index == map['PayStatus']),
  14706. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  14707. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  14708. );
  14709. }
  14710. Map<String, dynamic> toJson() {
  14711. final map = super.toJson();
  14712. return map;
  14713. }
  14714. }
  14715. class ManageOrganizationDTO extends OrganizationDTO{
  14716. String? countryName;
  14717. String? provinceName;
  14718. String? cityName;
  14719. String? countryCode;
  14720. String? provinceCode;
  14721. String? cityCode;
  14722. String? directorName;
  14723. String? adminFullName;
  14724. ManageOrganizationDTO({
  14725. this.countryName,
  14726. this.provinceName,
  14727. this.cityName,
  14728. this.countryCode,
  14729. this.provinceCode,
  14730. this.cityCode,
  14731. this.directorName,
  14732. this.adminFullName,
  14733. String? description,
  14734. String? rootCode,
  14735. OrganizationTypeEnum organizationType = OrganizationTypeEnum.Corporation,
  14736. List<String >? authorityGroups,
  14737. String? nautica,
  14738. OrganizationStateEnum state = OrganizationStateEnum.WaitAudit,
  14739. List<String >? directors,
  14740. List<String >? assignedAdmins,
  14741. String? patientSettingJson,
  14742. String? examSettingJson,
  14743. String? consultationSettingJson,
  14744. String? patientSettingVersion,
  14745. String? examSettingVersion,
  14746. String? consultationSettingVersion,
  14747. String? parentOrganizationName,
  14748. String? regionCode,
  14749. String? parentCode,
  14750. String? logoUrl,
  14751. OrganizationPatientTypeEnum patientType = OrganizationPatientTypeEnum.Person,
  14752. bool isinvented = false,
  14753. List<SettingDTOClass >? settings,
  14754. List<String >? diagnosisModules,
  14755. bool isEncryptedShow = false,
  14756. double referralLimitHours = 0,
  14757. List<String >? referralOrganizationCodes,
  14758. List<ReferralOrganizationDTO >? referralOrganizations,
  14759. String? organizationCode,
  14760. String? organizationName,
  14761. DateTime? createTime,
  14762. DateTime? updateTime,
  14763. }) : super(
  14764. description: description,
  14765. rootCode: rootCode,
  14766. organizationType: organizationType,
  14767. authorityGroups: authorityGroups,
  14768. nautica: nautica,
  14769. state: state,
  14770. directors: directors,
  14771. assignedAdmins: assignedAdmins,
  14772. patientSettingJson: patientSettingJson,
  14773. examSettingJson: examSettingJson,
  14774. consultationSettingJson: consultationSettingJson,
  14775. patientSettingVersion: patientSettingVersion,
  14776. examSettingVersion: examSettingVersion,
  14777. consultationSettingVersion: consultationSettingVersion,
  14778. parentOrganizationName: parentOrganizationName,
  14779. regionCode: regionCode,
  14780. parentCode: parentCode,
  14781. logoUrl: logoUrl,
  14782. patientType: patientType,
  14783. isinvented: isinvented,
  14784. settings: settings,
  14785. diagnosisModules: diagnosisModules,
  14786. isEncryptedShow: isEncryptedShow,
  14787. referralLimitHours: referralLimitHours,
  14788. referralOrganizationCodes: referralOrganizationCodes,
  14789. referralOrganizations: referralOrganizations,
  14790. organizationCode: organizationCode,
  14791. organizationName: organizationName,
  14792. createTime: createTime,
  14793. updateTime: updateTime,
  14794. );
  14795. factory ManageOrganizationDTO.fromJson(Map<String, dynamic> map) {
  14796. return ManageOrganizationDTO(
  14797. countryName: map['CountryName'],
  14798. provinceName: map['ProvinceName'],
  14799. cityName: map['CityName'],
  14800. countryCode: map['CountryCode'],
  14801. provinceCode: map['ProvinceCode'],
  14802. cityCode: map['CityCode'],
  14803. directorName: map['DirectorName'],
  14804. adminFullName: map['AdminFullName'],
  14805. description: map['Description'],
  14806. rootCode: map['RootCode'],
  14807. organizationType: OrganizationTypeEnum.values.firstWhere((e) => e.index == map['OrganizationType']),
  14808. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  14809. nautica: map['Nautica'],
  14810. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  14811. directors: map['Directors'] != null ? map['Directors'].cast<String>().toList() : null,
  14812. assignedAdmins: map['AssignedAdmins'] != null ? map['AssignedAdmins'].cast<String>().toList() : null,
  14813. patientSettingJson: map['PatientSettingJson'],
  14814. examSettingJson: map['ExamSettingJson'],
  14815. consultationSettingJson: map['ConsultationSettingJson'],
  14816. patientSettingVersion: map['PatientSettingVersion'],
  14817. examSettingVersion: map['ExamSettingVersion'],
  14818. consultationSettingVersion: map['ConsultationSettingVersion'],
  14819. parentOrganizationName: map['ParentOrganizationName'],
  14820. regionCode: map['RegionCode'],
  14821. parentCode: map['ParentCode'],
  14822. logoUrl: map['LogoUrl'],
  14823. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  14824. isinvented: map['Isinvented'],
  14825. settings: map['Settings'] != null ? (map['Settings'] as List).map((e)=>SettingDTOClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  14826. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  14827. isEncryptedShow: map['IsEncryptedShow'],
  14828. referralLimitHours: double.parse(map['ReferralLimitHours'].toString()),
  14829. referralOrganizationCodes: map['ReferralOrganizationCodes'] != null ? map['ReferralOrganizationCodes'].cast<String>().toList() : null,
  14830. referralOrganizations: map['ReferralOrganizations'] != null ? (map['ReferralOrganizations'] as List).map((e)=>ReferralOrganizationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14831. organizationCode: map['OrganizationCode'],
  14832. organizationName: map['OrganizationName'],
  14833. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  14834. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  14835. );
  14836. }
  14837. Map<String, dynamic> toJson() {
  14838. final map = super.toJson();
  14839. if(countryName != null)
  14840. map['CountryName'] = countryName;
  14841. if(provinceName != null)
  14842. map['ProvinceName'] = provinceName;
  14843. if(cityName != null)
  14844. map['CityName'] = cityName;
  14845. if(countryCode != null)
  14846. map['CountryCode'] = countryCode;
  14847. if(provinceCode != null)
  14848. map['ProvinceCode'] = provinceCode;
  14849. if(cityCode != null)
  14850. map['CityCode'] = cityCode;
  14851. if(directorName != null)
  14852. map['DirectorName'] = directorName;
  14853. if(adminFullName != null)
  14854. map['AdminFullName'] = adminFullName;
  14855. return map;
  14856. }
  14857. }
  14858. class ManageOrganizationUserDTO {
  14859. String? userCode;
  14860. String? userName;
  14861. String? phone;
  14862. String? email;
  14863. String? nickName;
  14864. String? fullName;
  14865. String? hospitalName;
  14866. ManageOrganizationUserDTO({
  14867. this.userCode,
  14868. this.userName,
  14869. this.phone,
  14870. this.email,
  14871. this.nickName,
  14872. this.fullName,
  14873. this.hospitalName,
  14874. });
  14875. factory ManageOrganizationUserDTO.fromJson(Map<String, dynamic> map) {
  14876. return ManageOrganizationUserDTO(
  14877. userCode: map['UserCode'],
  14878. userName: map['UserName'],
  14879. phone: map['Phone'],
  14880. email: map['Email'],
  14881. nickName: map['NickName'],
  14882. fullName: map['FullName'],
  14883. hospitalName: map['HospitalName'],
  14884. );
  14885. }
  14886. Map<String, dynamic> toJson() {
  14887. final map = Map<String, dynamic>();
  14888. if(userCode != null)
  14889. map['UserCode'] = userCode;
  14890. if(userName != null)
  14891. map['UserName'] = userName;
  14892. if(phone != null)
  14893. map['Phone'] = phone;
  14894. if(email != null)
  14895. map['Email'] = email;
  14896. if(nickName != null)
  14897. map['NickName'] = nickName;
  14898. if(fullName != null)
  14899. map['FullName'] = fullName;
  14900. if(hospitalName != null)
  14901. map['HospitalName'] = hospitalName;
  14902. return map;
  14903. }
  14904. }
  14905. class ManagePaymentRecordDTO extends PaymentRecordDTO{
  14906. ManagePaymentRecordDTO({
  14907. String? orderCode,
  14908. double payAmount = 0,
  14909. DateTime? payTime,
  14910. PayStatusEnum payStatus = PayStatusEnum.NoPay,
  14911. PayTypeEnum payType = PayTypeEnum.Alipay_PAGE,
  14912. String? payReqContent,
  14913. String? payResContent,
  14914. DateTime? createTime,
  14915. DateTime? updateTime,
  14916. }) : super(
  14917. orderCode: orderCode,
  14918. payAmount: payAmount,
  14919. payTime: payTime,
  14920. payStatus: payStatus,
  14921. payType: payType,
  14922. payReqContent: payReqContent,
  14923. payResContent: payResContent,
  14924. createTime: createTime,
  14925. updateTime: updateTime,
  14926. );
  14927. factory ManagePaymentRecordDTO.fromJson(Map<String, dynamic> map) {
  14928. return ManagePaymentRecordDTO(
  14929. orderCode: map['OrderCode'],
  14930. payAmount: double.parse(map['PayAmount'].toString()),
  14931. payTime: map['PayTime'] != null ? DateTime.parse(map['PayTime']) : null,
  14932. payStatus: PayStatusEnum.values.firstWhere((e) => e.index == map['PayStatus']),
  14933. payType: PayTypeEnum.values.firstWhere((e) => e.index == map['PayType']),
  14934. payReqContent: map['PayReqContent'],
  14935. payResContent: map['PayResContent'],
  14936. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  14937. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  14938. );
  14939. }
  14940. Map<String, dynamic> toJson() {
  14941. final map = super.toJson();
  14942. return map;
  14943. }
  14944. }
  14945. class ManageRoleInfoDTO extends RoleDTO{
  14946. List<FeatureDetail >? featureList;
  14947. ManageRoleInfoDTO({
  14948. this.featureList,
  14949. RoleShowTypeEnum roleShowType = RoleShowTypeEnum.NotShow,
  14950. String? iConUrl,
  14951. String? colorStart,
  14952. String? colorEnd,
  14953. RoleQualificationEnum roleQualification = RoleQualificationEnum.NoNeed,
  14954. String? userGroupCode,
  14955. RoleShowTypeEnum fieldShowType = RoleShowTypeEnum.NotShow,
  14956. List<String >? fieldList,
  14957. String? roleCode,
  14958. String? roleName,
  14959. String? description,
  14960. List<UserRoleLanguageConfigDTO >? languageConfigs,
  14961. DateTime? createTime,
  14962. DateTime? updateTime,
  14963. }) : super(
  14964. roleShowType: roleShowType,
  14965. iConUrl: iConUrl,
  14966. colorStart: colorStart,
  14967. colorEnd: colorEnd,
  14968. roleQualification: roleQualification,
  14969. userGroupCode: userGroupCode,
  14970. fieldShowType: fieldShowType,
  14971. fieldList: fieldList,
  14972. roleCode: roleCode,
  14973. roleName: roleName,
  14974. description: description,
  14975. languageConfigs: languageConfigs,
  14976. createTime: createTime,
  14977. updateTime: updateTime,
  14978. );
  14979. factory ManageRoleInfoDTO.fromJson(Map<String, dynamic> map) {
  14980. return ManageRoleInfoDTO(
  14981. featureList: map['FeatureList'] != null ? (map['FeatureList'] as List).map((e)=>FeatureDetail.fromJson(e as Map<String,dynamic>)).toList() : null,
  14982. roleShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['RoleShowType']),
  14983. iConUrl: map['IConUrl'],
  14984. colorStart: map['ColorStart'],
  14985. colorEnd: map['ColorEnd'],
  14986. roleQualification: RoleQualificationEnum.values.firstWhere((e) => e.index == map['RoleQualification']),
  14987. userGroupCode: map['UserGroupCode'],
  14988. fieldShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['FieldShowType']),
  14989. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  14990. roleCode: map['RoleCode'],
  14991. roleName: map['RoleName'],
  14992. description: map['Description'],
  14993. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14994. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  14995. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  14996. );
  14997. }
  14998. Map<String, dynamic> toJson() {
  14999. final map = super.toJson();
  15000. if(featureList != null)
  15001. map['FeatureList'] = featureList;
  15002. return map;
  15003. }
  15004. }
  15005. class BaseThesaurusItemBaseDTO<T> {
  15006. String? id;
  15007. String? label;
  15008. String? fatherCode;
  15009. String? thesaurusItemDescription;
  15010. String? thesaurusItemConclusion;
  15011. ThesaurusItemTypeEnum type;
  15012. List<T>? children;
  15013. bool isExistThesaurusItem;
  15014. BaseThesaurusItemBaseDTO({
  15015. this.id,
  15016. this.label,
  15017. this.fatherCode,
  15018. this.thesaurusItemDescription,
  15019. this.thesaurusItemConclusion,
  15020. this.type = ThesaurusItemTypeEnum.Classification,
  15021. this.children,
  15022. this.isExistThesaurusItem = false,
  15023. });
  15024. factory BaseThesaurusItemBaseDTO.fromJson(Map<String, dynamic> map) {
  15025. List<T> childrenList = [];
  15026. if (map['Children'] != null) {
  15027. childrenList.addAll(
  15028. (map['Children'] as List).map((e) => FJsonConvert.fromJson<T>(e)!));
  15029. }
  15030. return BaseThesaurusItemBaseDTO(
  15031. id: map['Id'],
  15032. label: map['Label'],
  15033. fatherCode: map['FatherCode'],
  15034. thesaurusItemDescription: map['ThesaurusItemDescription'],
  15035. thesaurusItemConclusion: map['ThesaurusItemConclusion'],
  15036. type: ThesaurusItemTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  15037. children: childrenList,
  15038. isExistThesaurusItem: map['IsExistThesaurusItem'],
  15039. );
  15040. }
  15041. Map<String, dynamic> toJson() {
  15042. final map = Map<String, dynamic>();
  15043. if(id != null)
  15044. map['Id'] = id;
  15045. if(label != null)
  15046. map['Label'] = label;
  15047. if(fatherCode != null)
  15048. map['FatherCode'] = fatherCode;
  15049. if(thesaurusItemDescription != null)
  15050. map['ThesaurusItemDescription'] = thesaurusItemDescription;
  15051. if(thesaurusItemConclusion != null)
  15052. map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
  15053. map['Type'] = type.index;
  15054. if(children != null)
  15055. map['Children'] = children;
  15056. map['IsExistThesaurusItem'] = isExistThesaurusItem;
  15057. return map;
  15058. }
  15059. }
  15060. class ManageThesaurusItemDTO extends BaseThesaurusItemBaseDTO<ManageThesaurusItemDTO>{
  15061. ManageThesaurusItemDTO(
  15062. );
  15063. factory ManageThesaurusItemDTO.fromJson(Map<String, dynamic> map) {
  15064. return ManageThesaurusItemDTO(
  15065. );
  15066. }
  15067. Map<String, dynamic> toJson() {
  15068. final map = super.toJson();
  15069. return map;
  15070. }
  15071. }
  15072. class ManageUpdateProductDTO extends UpdateProductDTO{
  15073. ManageUpdateProductDTO({
  15074. bool isSuccess = false,
  15075. }) : super(
  15076. isSuccess: isSuccess,
  15077. );
  15078. factory ManageUpdateProductDTO.fromJson(Map<String, dynamic> map) {
  15079. return ManageUpdateProductDTO(
  15080. isSuccess: map['IsSuccess'],
  15081. );
  15082. }
  15083. Map<String, dynamic> toJson() {
  15084. final map = super.toJson();
  15085. return map;
  15086. }
  15087. }
  15088. class OnlineTokenDTO extends TokenDTO{
  15089. String? ipAddress;
  15090. OnlineTokenDTO({
  15091. this.ipAddress,
  15092. int version = 0,
  15093. String? code,
  15094. AccountType accountType = AccountType.Admin,
  15095. String? accountName,
  15096. Platform platform = Platform.Windows,
  15097. LoginSource loginSource = LoginSource.PC,
  15098. String? clientId,
  15099. String? loginServer,
  15100. DateTime? createTime,
  15101. DateTime? expiration,
  15102. int ipValue = 0,
  15103. bool isOnline = false,
  15104. String? installVersion,
  15105. bool isOldPlatform = false,
  15106. }) : super(
  15107. version: version,
  15108. code: code,
  15109. accountType: accountType,
  15110. accountName: accountName,
  15111. platform: platform,
  15112. loginSource: loginSource,
  15113. clientId: clientId,
  15114. loginServer: loginServer,
  15115. createTime: createTime,
  15116. expiration: expiration,
  15117. ipValue: ipValue,
  15118. isOnline: isOnline,
  15119. installVersion: installVersion,
  15120. isOldPlatform: isOldPlatform,
  15121. );
  15122. factory OnlineTokenDTO.fromJson(Map<String, dynamic> map) {
  15123. return OnlineTokenDTO(
  15124. ipAddress: map['IpAddress'],
  15125. version: map['Version'],
  15126. code: map['Code'],
  15127. accountType: AccountType.values.firstWhere((e) => e.index == map['AccountType']),
  15128. accountName: map['AccountName'],
  15129. platform: Platform.values.firstWhere((e) => e.index == map['Platform']),
  15130. loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
  15131. clientId: map['ClientId'],
  15132. loginServer: map['LoginServer'],
  15133. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  15134. expiration: map['Expiration'] != null ? DateTime.parse(map['Expiration']) : null,
  15135. ipValue: map['IpValue'],
  15136. isOnline: map['IsOnline'],
  15137. installVersion: map['InstallVersion'],
  15138. isOldPlatform: map['IsOldPlatform'],
  15139. );
  15140. }
  15141. Map<String, dynamic> toJson() {
  15142. final map = super.toJson();
  15143. if(ipAddress != null)
  15144. map['IpAddress'] = ipAddress;
  15145. return map;
  15146. }
  15147. }
  15148. class SelectParentItemDTO extends SelectItemDTO{
  15149. String? parentCode;
  15150. SelectParentItemDTO({
  15151. this.parentCode,
  15152. String? key,
  15153. String? value,
  15154. }) : super(
  15155. key: key,
  15156. value: value,
  15157. );
  15158. factory SelectParentItemDTO.fromJson(Map<String, dynamic> map) {
  15159. return SelectParentItemDTO(
  15160. parentCode: map['ParentCode'],
  15161. key: map['Key'],
  15162. value: map['Value'],
  15163. );
  15164. }
  15165. Map<String, dynamic> toJson() {
  15166. final map = super.toJson();
  15167. if(parentCode != null)
  15168. map['ParentCode'] = parentCode;
  15169. return map;
  15170. }
  15171. }
  15172. class SystemConfigDTO extends BaseDTO{
  15173. String? code;
  15174. String? configKey;
  15175. String? configContent;
  15176. String? configPageControls;
  15177. SystemConfigDTO({
  15178. this.code,
  15179. this.configKey,
  15180. this.configContent,
  15181. this.configPageControls,
  15182. DateTime? createTime,
  15183. DateTime? updateTime,
  15184. }) : super(
  15185. createTime: createTime,
  15186. updateTime: updateTime,
  15187. );
  15188. factory SystemConfigDTO.fromJson(Map<String, dynamic> map) {
  15189. return SystemConfigDTO(
  15190. code: map['Code'],
  15191. configKey: map['ConfigKey'],
  15192. configContent: map['ConfigContent'],
  15193. configPageControls: map['ConfigPageControls'],
  15194. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  15195. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  15196. );
  15197. }
  15198. Map<String, dynamic> toJson() {
  15199. final map = super.toJson();
  15200. if(code != null)
  15201. map['Code'] = code;
  15202. if(configKey != null)
  15203. map['ConfigKey'] = configKey;
  15204. if(configContent != null)
  15205. map['ConfigContent'] = configContent;
  15206. if(configPageControls != null)
  15207. map['ConfigPageControls'] = configPageControls;
  15208. return map;
  15209. }
  15210. }
  15211. class LiveBoardDataDTO {
  15212. String? userCode;
  15213. String? boardData;
  15214. DateTime? interactiveTime;
  15215. LiveBoardDataDTO({
  15216. this.userCode,
  15217. this.boardData,
  15218. this.interactiveTime,
  15219. });
  15220. factory LiveBoardDataDTO.fromJson(Map<String, dynamic> map) {
  15221. return LiveBoardDataDTO(
  15222. userCode: map['UserCode'],
  15223. boardData: map['BoardData'],
  15224. interactiveTime: map['InteractiveTime'] != null ? DateTime.parse(map['InteractiveTime']) : null,
  15225. );
  15226. }
  15227. Map<String, dynamic> toJson() {
  15228. final map = Map<String, dynamic>();
  15229. if(userCode != null)
  15230. map['UserCode'] = userCode;
  15231. if(boardData != null)
  15232. map['BoardData'] = boardData;
  15233. if(interactiveTime != null)
  15234. map['InteractiveTime'] = JsonRpcUtils.dateFormat(interactiveTime!);
  15235. return map;
  15236. }
  15237. }
  15238. class LiveMemberStatusDTO {
  15239. String? code;
  15240. String? liveRoomCode;
  15241. LiveMemberStatus status;
  15242. UserStatusEnum userStatusType;
  15243. String? loginServerUrl;
  15244. LoginSource loginSource;
  15245. LiveMemberStatusDTO({
  15246. this.code,
  15247. this.liveRoomCode,
  15248. this.status = LiveMemberStatus.Default,
  15249. this.userStatusType = UserStatusEnum.NotOnline,
  15250. this.loginServerUrl,
  15251. this.loginSource = LoginSource.PC,
  15252. });
  15253. factory LiveMemberStatusDTO.fromJson(Map<String, dynamic> map) {
  15254. return LiveMemberStatusDTO(
  15255. code: map['Code'],
  15256. liveRoomCode: map['LiveRoomCode'],
  15257. status: LiveMemberStatus.values.firstWhere((e) => e.index == map['Status']),
  15258. userStatusType: UserStatusEnum.values.firstWhere((e) => e.index == map['UserStatusType']),
  15259. loginServerUrl: map['LoginServerUrl'],
  15260. loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
  15261. );
  15262. }
  15263. Map<String, dynamic> toJson() {
  15264. final map = Map<String, dynamic>();
  15265. if(code != null)
  15266. map['Code'] = code;
  15267. if(liveRoomCode != null)
  15268. map['LiveRoomCode'] = liveRoomCode;
  15269. map['Status'] = status.index;
  15270. map['UserStatusType'] = userStatusType.index;
  15271. if(loginServerUrl != null)
  15272. map['LoginServerUrl'] = loginServerUrl;
  15273. map['LoginSource'] = loginSource.index;
  15274. return map;
  15275. }
  15276. }
  15277. class LiveRoomDTO {
  15278. String? liveRoomCode;
  15279. String? name;
  15280. String? relatedCode;
  15281. String? initiatorCode;
  15282. int rtcRoomId;
  15283. int sdkAppId;
  15284. BusinessModuleEnum businessModule;
  15285. LiveRoomStatus status;
  15286. List<LiveMemberDTO >? deviceInfos;
  15287. List<LiveMemberDTO >? userInfos;
  15288. List<LiveViewerDTO >? viewerInfos;
  15289. ShareInfoDTO? shareInfo;
  15290. LiveRoomDTO({
  15291. this.liveRoomCode,
  15292. this.name,
  15293. this.relatedCode,
  15294. this.initiatorCode,
  15295. this.rtcRoomId = 0,
  15296. this.sdkAppId = 0,
  15297. this.businessModule = BusinessModuleEnum.RemoteDiagnosis,
  15298. this.status = LiveRoomStatus.Default,
  15299. this.deviceInfos,
  15300. this.userInfos,
  15301. this.viewerInfos,
  15302. this.shareInfo,
  15303. });
  15304. factory LiveRoomDTO.fromJson(Map<String, dynamic> map) {
  15305. return LiveRoomDTO(
  15306. liveRoomCode: map['LiveRoomCode'],
  15307. name: map['Name'],
  15308. relatedCode: map['RelatedCode'],
  15309. initiatorCode: map['InitiatorCode'],
  15310. rtcRoomId: map['RtcRoomId'],
  15311. sdkAppId: map['SdkAppId'],
  15312. businessModule: BusinessModuleEnum.values.firstWhere((e) => e.index == map['BusinessModule']),
  15313. status: LiveRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  15314. deviceInfos: map['DeviceInfos'] != null ? (map['DeviceInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15315. userInfos: map['UserInfos'] != null ? (map['UserInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15316. viewerInfos: map['ViewerInfos'] != null ? (map['ViewerInfos'] as List).map((e)=>LiveViewerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15317. shareInfo: map['ShareInfo'] != null ? ShareInfoDTO.fromJson(map['ShareInfo']) : null,
  15318. );
  15319. }
  15320. Map<String, dynamic> toJson() {
  15321. final map = Map<String, dynamic>();
  15322. if(liveRoomCode != null)
  15323. map['LiveRoomCode'] = liveRoomCode;
  15324. if(name != null)
  15325. map['Name'] = name;
  15326. if(relatedCode != null)
  15327. map['RelatedCode'] = relatedCode;
  15328. if(initiatorCode != null)
  15329. map['InitiatorCode'] = initiatorCode;
  15330. map['RtcRoomId'] = rtcRoomId;
  15331. map['SdkAppId'] = sdkAppId;
  15332. map['BusinessModule'] = businessModule.index;
  15333. map['Status'] = status.index;
  15334. if(deviceInfos != null)
  15335. map['DeviceInfos'] = deviceInfos;
  15336. if(userInfos != null)
  15337. map['UserInfos'] = userInfos;
  15338. if(viewerInfos != null)
  15339. map['ViewerInfos'] = viewerInfos;
  15340. if(shareInfo != null)
  15341. map['ShareInfo'] = shareInfo;
  15342. return map;
  15343. }
  15344. }
  15345. class DownloadFileInfoDTO {
  15346. List<FileUploadInfoDTO >? fileUploadInfos;
  15347. String? folderCode;
  15348. String? fileName;
  15349. DownloadFileInfoDTO({
  15350. this.fileUploadInfos,
  15351. this.folderCode,
  15352. this.fileName,
  15353. });
  15354. factory DownloadFileInfoDTO.fromJson(Map<String, dynamic> map) {
  15355. return DownloadFileInfoDTO(
  15356. fileUploadInfos: map['FileUploadInfos'] != null ? (map['FileUploadInfos'] as List).map((e)=>FileUploadInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15357. folderCode: map['FolderCode'],
  15358. fileName: map['FileName'],
  15359. );
  15360. }
  15361. Map<String, dynamic> toJson() {
  15362. final map = Map<String, dynamic>();
  15363. if(fileUploadInfos != null)
  15364. map['FileUploadInfos'] = fileUploadInfos;
  15365. if(folderCode != null)
  15366. map['FolderCode'] = folderCode;
  15367. if(fileName != null)
  15368. map['FileName'] = fileName;
  15369. return map;
  15370. }
  15371. }
  15372. class ConvertFileInfoDTO {
  15373. String? recordCode;
  15374. String? filePath;
  15375. String? folderCode;
  15376. UploadFileTypeEnum fileType;
  15377. ConvertFileInfoDTO({
  15378. this.recordCode,
  15379. this.filePath,
  15380. this.folderCode,
  15381. this.fileType = UploadFileTypeEnum.Unknown,
  15382. });
  15383. factory ConvertFileInfoDTO.fromJson(Map<String, dynamic> map) {
  15384. return ConvertFileInfoDTO(
  15385. recordCode: map['RecordCode'],
  15386. filePath: map['FilePath'],
  15387. folderCode: map['FolderCode'],
  15388. fileType: UploadFileTypeEnum.values.firstWhere((e) => e.index == map['FileType']),
  15389. );
  15390. }
  15391. Map<String, dynamic> toJson() {
  15392. final map = Map<String, dynamic>();
  15393. if(recordCode != null)
  15394. map['RecordCode'] = recordCode;
  15395. if(filePath != null)
  15396. map['FilePath'] = filePath;
  15397. if(folderCode != null)
  15398. map['FolderCode'] = folderCode;
  15399. map['FileType'] = fileType.index;
  15400. return map;
  15401. }
  15402. }
  15403. class LabConvertStateDTO {
  15404. String? code;
  15405. String? creatorCode;
  15406. String? recordCode;
  15407. bool isTemplate;
  15408. DateTime? lastExecuteTime;
  15409. int errorCount;
  15410. List<DownloadFileInfoDTO >? downloadErrorFiles;
  15411. List<ConvertFileInfoDTO >? convertErrorFiles;
  15412. LabConvertStateDTO({
  15413. this.code,
  15414. this.creatorCode,
  15415. this.recordCode,
  15416. this.isTemplate = false,
  15417. this.lastExecuteTime,
  15418. this.errorCount = 0,
  15419. this.downloadErrorFiles,
  15420. this.convertErrorFiles,
  15421. });
  15422. factory LabConvertStateDTO.fromJson(Map<String, dynamic> map) {
  15423. return LabConvertStateDTO(
  15424. code: map['Code'],
  15425. creatorCode: map['CreatorCode'],
  15426. recordCode: map['RecordCode'],
  15427. isTemplate: map['IsTemplate'],
  15428. lastExecuteTime: map['LastExecuteTime'] != null ? DateTime.parse(map['LastExecuteTime']) : null,
  15429. errorCount: map['ErrorCount'],
  15430. downloadErrorFiles: map['DownloadErrorFiles'] != null ? (map['DownloadErrorFiles'] as List).map((e)=>DownloadFileInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15431. convertErrorFiles: map['ConvertErrorFiles'] != null ? (map['ConvertErrorFiles'] as List).map((e)=>ConvertFileInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15432. );
  15433. }
  15434. Map<String, dynamic> toJson() {
  15435. final map = Map<String, dynamic>();
  15436. if(code != null)
  15437. map['Code'] = code;
  15438. if(creatorCode != null)
  15439. map['CreatorCode'] = creatorCode;
  15440. if(recordCode != null)
  15441. map['RecordCode'] = recordCode;
  15442. map['IsTemplate'] = isTemplate;
  15443. if(lastExecuteTime != null)
  15444. map['LastExecuteTime'] = JsonRpcUtils.dateFormat(lastExecuteTime!);
  15445. map['ErrorCount'] = errorCount;
  15446. if(downloadErrorFiles != null)
  15447. map['DownloadErrorFiles'] = downloadErrorFiles;
  15448. if(convertErrorFiles != null)
  15449. map['ConvertErrorFiles'] = convertErrorFiles;
  15450. return map;
  15451. }
  15452. }
  15453. class GradingProtectionConfigDTO {
  15454. String? code;
  15455. String? name;
  15456. int configType;
  15457. String? value;
  15458. GradingProtectionConfigDTO({
  15459. this.code,
  15460. this.name,
  15461. this.configType = 0,
  15462. this.value,
  15463. });
  15464. factory GradingProtectionConfigDTO.fromJson(Map<String, dynamic> map) {
  15465. return GradingProtectionConfigDTO(
  15466. code: map['Code'],
  15467. name: map['Name'],
  15468. configType: map['ConfigType'],
  15469. value: map['Value'],
  15470. );
  15471. }
  15472. Map<String, dynamic> toJson() {
  15473. final map = Map<String, dynamic>();
  15474. if(code != null)
  15475. map['Code'] = code;
  15476. if(name != null)
  15477. map['Name'] = name;
  15478. map['ConfigType'] = configType;
  15479. if(value != null)
  15480. map['Value'] = value;
  15481. return map;
  15482. }
  15483. }
  15484. class DistributedServerInfoDTO extends BaseDTO{
  15485. String? serverCode;
  15486. bool isMaster;
  15487. String? name;
  15488. String? description;
  15489. bool enable;
  15490. DistributedServerTypeEnum serverType;
  15491. String? serverUrl;
  15492. String? lat;
  15493. String? lng;
  15494. List<IPAddressInfoDTO >? assignClientIPList;
  15495. int rTCStartingRoomId;
  15496. String? shareCodePrefix;
  15497. DistributedServerInfoDTO({
  15498. this.serverCode,
  15499. this.isMaster = false,
  15500. this.name,
  15501. this.description,
  15502. this.enable = false,
  15503. this.serverType = DistributedServerTypeEnum.Official,
  15504. this.serverUrl,
  15505. this.lat,
  15506. this.lng,
  15507. this.assignClientIPList,
  15508. this.rTCStartingRoomId = 0,
  15509. this.shareCodePrefix,
  15510. DateTime? createTime,
  15511. DateTime? updateTime,
  15512. }) : super(
  15513. createTime: createTime,
  15514. updateTime: updateTime,
  15515. );
  15516. factory DistributedServerInfoDTO.fromJson(Map<String, dynamic> map) {
  15517. return DistributedServerInfoDTO(
  15518. serverCode: map['ServerCode'],
  15519. isMaster: map['IsMaster'],
  15520. name: map['Name'],
  15521. description: map['Description'],
  15522. enable: map['Enable'],
  15523. serverType: DistributedServerTypeEnum.values.firstWhere((e) => e.index == map['ServerType']),
  15524. serverUrl: map['ServerUrl'],
  15525. lat: map['Lat'],
  15526. lng: map['Lng'],
  15527. assignClientIPList: map['AssignClientIPList'] != null ? (map['AssignClientIPList'] as List).map((e)=>IPAddressInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15528. rTCStartingRoomId: map['RTCStartingRoomId'],
  15529. shareCodePrefix: map['ShareCodePrefix'],
  15530. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  15531. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  15532. );
  15533. }
  15534. Map<String, dynamic> toJson() {
  15535. final map = super.toJson();
  15536. if(serverCode != null)
  15537. map['ServerCode'] = serverCode;
  15538. map['IsMaster'] = isMaster;
  15539. if(name != null)
  15540. map['Name'] = name;
  15541. if(description != null)
  15542. map['Description'] = description;
  15543. map['Enable'] = enable;
  15544. map['ServerType'] = serverType.index;
  15545. if(serverUrl != null)
  15546. map['ServerUrl'] = serverUrl;
  15547. if(lat != null)
  15548. map['Lat'] = lat;
  15549. if(lng != null)
  15550. map['Lng'] = lng;
  15551. if(assignClientIPList != null)
  15552. map['AssignClientIPList'] = assignClientIPList;
  15553. map['RTCStartingRoomId'] = rTCStartingRoomId;
  15554. if(shareCodePrefix != null)
  15555. map['ShareCodePrefix'] = shareCodePrefix;
  15556. return map;
  15557. }
  15558. }
  15559. class DiagnosisResultDTO {
  15560. int index;
  15561. String? diagnosisResult;
  15562. DiagnosisResultDTO({
  15563. this.index = 0,
  15564. this.diagnosisResult,
  15565. });
  15566. factory DiagnosisResultDTO.fromJson(Map<String, dynamic> map) {
  15567. return DiagnosisResultDTO(
  15568. index: map['Index'],
  15569. diagnosisResult: map['DiagnosisResult'],
  15570. );
  15571. }
  15572. Map<String, dynamic> toJson() {
  15573. final map = Map<String, dynamic>();
  15574. map['Index'] = index;
  15575. if(diagnosisResult != null)
  15576. map['DiagnosisResult'] = diagnosisResult;
  15577. return map;
  15578. }
  15579. }
  15580. class DeviceOutputConfigDTO {
  15581. String? code;
  15582. String? name;
  15583. DeviceVideoOutputTypeEnum deviceVideoOutputType;
  15584. int videoWidth;
  15585. int videoHeight;
  15586. DeviceOutputConfigDTO({
  15587. this.code,
  15588. this.name,
  15589. this.deviceVideoOutputType = DeviceVideoOutputTypeEnum.MergedVideo,
  15590. this.videoWidth = 0,
  15591. this.videoHeight = 0,
  15592. });
  15593. factory DeviceOutputConfigDTO.fromJson(Map<String, dynamic> map) {
  15594. return DeviceOutputConfigDTO(
  15595. code: map['Code'],
  15596. name: map['Name'],
  15597. deviceVideoOutputType: DeviceVideoOutputTypeEnum.values.firstWhere((e) => e.index == map['DeviceVideoOutputType']),
  15598. videoWidth: map['VideoWidth'],
  15599. videoHeight: map['VideoHeight'],
  15600. );
  15601. }
  15602. Map<String, dynamic> toJson() {
  15603. final map = Map<String, dynamic>();
  15604. if(code != null)
  15605. map['Code'] = code;
  15606. if(name != null)
  15607. map['Name'] = name;
  15608. map['DeviceVideoOutputType'] = deviceVideoOutputType.index;
  15609. map['VideoWidth'] = videoWidth;
  15610. map['VideoHeight'] = videoHeight;
  15611. return map;
  15612. }
  15613. }
  15614. class ResolutionDTO {
  15615. String? shortCode;
  15616. int videoWidth;
  15617. int videoHeight;
  15618. ResolutionDTO({
  15619. this.shortCode,
  15620. this.videoWidth = 0,
  15621. this.videoHeight = 0,
  15622. });
  15623. factory ResolutionDTO.fromJson(Map<String, dynamic> map) {
  15624. return ResolutionDTO(
  15625. shortCode: map['ShortCode'],
  15626. videoWidth: map['VideoWidth'],
  15627. videoHeight: map['VideoHeight'],
  15628. );
  15629. }
  15630. Map<String, dynamic> toJson() {
  15631. final map = Map<String, dynamic>();
  15632. if(shortCode != null)
  15633. map['ShortCode'] = shortCode;
  15634. map['VideoWidth'] = videoWidth;
  15635. map['VideoHeight'] = videoHeight;
  15636. return map;
  15637. }
  15638. }
  15639. class BrandModelDetailDTO {
  15640. String? code;
  15641. String? brand;
  15642. String? model;
  15643. List<ResolutionDTO >? resolutions;
  15644. BrandModelDetailDTO({
  15645. this.code,
  15646. this.brand,
  15647. this.model,
  15648. this.resolutions,
  15649. });
  15650. factory BrandModelDetailDTO.fromJson(Map<String, dynamic> map) {
  15651. return BrandModelDetailDTO(
  15652. code: map['Code'],
  15653. brand: map['Brand'],
  15654. model: map['Model'],
  15655. resolutions: map['Resolutions'] != null ? (map['Resolutions'] as List).map((e)=>ResolutionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15656. );
  15657. }
  15658. Map<String, dynamic> toJson() {
  15659. final map = Map<String, dynamic>();
  15660. if(code != null)
  15661. map['Code'] = code;
  15662. if(brand != null)
  15663. map['Brand'] = brand;
  15664. if(model != null)
  15665. map['Model'] = model;
  15666. if(resolutions != null)
  15667. map['Resolutions'] = resolutions;
  15668. return map;
  15669. }
  15670. }
  15671. class DeviceLiveShareInfoDTO {
  15672. String? deviceCode;
  15673. String? shareUserCode;
  15674. String? shareUserName;
  15675. DateTime? shareTime;
  15676. DeviceLiveShareInfoDTO({
  15677. this.deviceCode,
  15678. this.shareUserCode,
  15679. this.shareUserName,
  15680. this.shareTime,
  15681. });
  15682. factory DeviceLiveShareInfoDTO.fromJson(Map<String, dynamic> map) {
  15683. return DeviceLiveShareInfoDTO(
  15684. deviceCode: map['DeviceCode'],
  15685. shareUserCode: map['ShareUserCode'],
  15686. shareUserName: map['ShareUserName'],
  15687. shareTime: map['ShareTime'] != null ? DateTime.parse(map['ShareTime']) : null,
  15688. );
  15689. }
  15690. Map<String, dynamic> toJson() {
  15691. final map = Map<String, dynamic>();
  15692. if(deviceCode != null)
  15693. map['DeviceCode'] = deviceCode;
  15694. if(shareUserCode != null)
  15695. map['ShareUserCode'] = shareUserCode;
  15696. if(shareUserName != null)
  15697. map['ShareUserName'] = shareUserName;
  15698. if(shareTime != null)
  15699. map['ShareTime'] = JsonRpcUtils.dateFormat(shareTime!);
  15700. return map;
  15701. }
  15702. }
  15703. class NameItemSettingInfoDTO {
  15704. String? name;
  15705. String? key;
  15706. NameItemSettingInfoDTO({
  15707. this.name,
  15708. this.key,
  15709. });
  15710. factory NameItemSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  15711. return NameItemSettingInfoDTO(
  15712. name: map['Name'],
  15713. key: map['Key'],
  15714. );
  15715. }
  15716. Map<String, dynamic> toJson() {
  15717. final map = Map<String, dynamic>();
  15718. if(name != null)
  15719. map['Name'] = name;
  15720. if(key != null)
  15721. map['Key'] = key;
  15722. return map;
  15723. }
  15724. }
  15725. class GroupSettingInfoDTO extends NameItemSettingInfoDTO{
  15726. List<NameItemSettingInfoDTO >? items;
  15727. GroupSettingInfoDTO({
  15728. this.items,
  15729. String? name,
  15730. String? key,
  15731. }) : super(
  15732. name: name,
  15733. key: key,
  15734. );
  15735. factory GroupSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  15736. return GroupSettingInfoDTO(
  15737. items: map['Items'] != null ? (map['Items'] as List).map((e)=>NameItemSettingInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15738. name: map['Name'],
  15739. key: map['Key'],
  15740. );
  15741. }
  15742. Map<String, dynamic> toJson() {
  15743. final map = super.toJson();
  15744. if(items != null)
  15745. map['Items'] = items;
  15746. return map;
  15747. }
  15748. }
  15749. class ListPageSettingInfoDTO extends NameItemSettingInfoDTO{
  15750. List<GroupSettingInfoDTO >? groups;
  15751. ListPageSettingInfoDTO({
  15752. this.groups,
  15753. String? name,
  15754. String? key,
  15755. }) : super(
  15756. name: name,
  15757. key: key,
  15758. );
  15759. factory ListPageSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  15760. return ListPageSettingInfoDTO(
  15761. groups: map['Groups'] != null ? (map['Groups'] as List).map((e)=>GroupSettingInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15762. name: map['Name'],
  15763. key: map['Key'],
  15764. );
  15765. }
  15766. Map<String, dynamic> toJson() {
  15767. final map = super.toJson();
  15768. if(groups != null)
  15769. map['Groups'] = groups;
  15770. return map;
  15771. }
  15772. }
  15773. class SystemSettingInfoDTO {
  15774. String? selectedListPageKey;
  15775. String? selectedGroupKey;
  15776. List<ListPageSettingInfoDTO >? listPages;
  15777. String? applyLicenseResult;
  15778. SystemSettingInfoDTO({
  15779. this.selectedListPageKey,
  15780. this.selectedGroupKey,
  15781. this.listPages,
  15782. this.applyLicenseResult,
  15783. });
  15784. factory SystemSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  15785. return SystemSettingInfoDTO(
  15786. selectedListPageKey: map['SelectedListPageKey'],
  15787. selectedGroupKey: map['SelectedGroupKey'],
  15788. listPages: map['ListPages'] != null ? (map['ListPages'] as List).map((e)=>ListPageSettingInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15789. applyLicenseResult: map['ApplyLicenseResult'],
  15790. );
  15791. }
  15792. Map<String, dynamic> toJson() {
  15793. final map = Map<String, dynamic>();
  15794. if(selectedListPageKey != null)
  15795. map['SelectedListPageKey'] = selectedListPageKey;
  15796. if(selectedGroupKey != null)
  15797. map['SelectedGroupKey'] = selectedGroupKey;
  15798. if(listPages != null)
  15799. map['ListPages'] = listPages;
  15800. if(applyLicenseResult != null)
  15801. map['ApplyLicenseResult'] = applyLicenseResult;
  15802. return map;
  15803. }
  15804. }
  15805. class CommandSettingInfoDTO extends NameItemSettingInfoDTO{
  15806. String? commandDescription;
  15807. CommandSettingInfoDTO({
  15808. this.commandDescription,
  15809. String? name,
  15810. String? key,
  15811. }) : super(
  15812. name: name,
  15813. key: key,
  15814. );
  15815. factory CommandSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  15816. return CommandSettingInfoDTO(
  15817. commandDescription: map['CommandDescription'],
  15818. name: map['Name'],
  15819. key: map['Key'],
  15820. );
  15821. }
  15822. Map<String, dynamic> toJson() {
  15823. final map = super.toJson();
  15824. if(commandDescription != null)
  15825. map['CommandDescription'] = commandDescription;
  15826. return map;
  15827. }
  15828. }
  15829. class ExtendCommandSettingInfoDTO extends CommandSettingInfoDTO{
  15830. String? additionalDescription;
  15831. String? value;
  15832. ExtendCommandSettingInfoDTO({
  15833. this.additionalDescription,
  15834. this.value,
  15835. String? commandDescription,
  15836. String? name,
  15837. String? key,
  15838. }) : super(
  15839. commandDescription: commandDescription,
  15840. name: name,
  15841. key: key,
  15842. );
  15843. factory ExtendCommandSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  15844. return ExtendCommandSettingInfoDTO(
  15845. additionalDescription: map['AdditionalDescription'],
  15846. value: map['Value'],
  15847. commandDescription: map['CommandDescription'],
  15848. name: map['Name'],
  15849. key: map['Key'],
  15850. );
  15851. }
  15852. Map<String, dynamic> toJson() {
  15853. final map = super.toJson();
  15854. if(additionalDescription != null)
  15855. map['AdditionalDescription'] = additionalDescription;
  15856. if(value != null)
  15857. map['Value'] = value;
  15858. return map;
  15859. }
  15860. }
  15861. class CommandResultInfoDTO extends NameItemSettingInfoDTO{
  15862. String? result;
  15863. CommandResultInfoDTO({
  15864. this.result,
  15865. String? name,
  15866. String? key,
  15867. }) : super(
  15868. name: name,
  15869. key: key,
  15870. );
  15871. factory CommandResultInfoDTO.fromJson(Map<String, dynamic> map) {
  15872. return CommandResultInfoDTO(
  15873. result: map['Result'],
  15874. name: map['Name'],
  15875. key: map['Key'],
  15876. );
  15877. }
  15878. Map<String, dynamic> toJson() {
  15879. final map = super.toJson();
  15880. if(result != null)
  15881. map['Result'] = result;
  15882. return map;
  15883. }
  15884. }
  15885. class FeatureItemInfoDTO extends NameItemSettingInfoDTO{
  15886. String? details;
  15887. String? status;
  15888. FeatureItemInfoDTO({
  15889. this.details,
  15890. this.status,
  15891. String? name,
  15892. String? key,
  15893. }) : super(
  15894. name: name,
  15895. key: key,
  15896. );
  15897. factory FeatureItemInfoDTO.fromJson(Map<String, dynamic> map) {
  15898. return FeatureItemInfoDTO(
  15899. details: map['Details'],
  15900. status: map['Status'],
  15901. name: map['Name'],
  15902. key: map['Key'],
  15903. );
  15904. }
  15905. Map<String, dynamic> toJson() {
  15906. final map = super.toJson();
  15907. if(details != null)
  15908. map['Details'] = details;
  15909. if(status != null)
  15910. map['Status'] = status;
  15911. return map;
  15912. }
  15913. }
  15914. class ApplyLicenseInfoDTO extends NameItemSettingInfoDTO{
  15915. String? applyLicenseDescription;
  15916. ApplyLicenseInfoDTO({
  15917. this.applyLicenseDescription,
  15918. String? name,
  15919. String? key,
  15920. }) : super(
  15921. name: name,
  15922. key: key,
  15923. );
  15924. factory ApplyLicenseInfoDTO.fromJson(Map<String, dynamic> map) {
  15925. return ApplyLicenseInfoDTO(
  15926. applyLicenseDescription: map['ApplyLicenseDescription'],
  15927. name: map['Name'],
  15928. key: map['Key'],
  15929. );
  15930. }
  15931. Map<String, dynamic> toJson() {
  15932. final map = super.toJson();
  15933. if(applyLicenseDescription != null)
  15934. map['ApplyLicenseDescription'] = applyLicenseDescription;
  15935. return map;
  15936. }
  15937. }
  15938. class BoolParameterInfoDTO extends NameItemSettingInfoDTO{
  15939. bool value;
  15940. BoolParameterInfoDTO({
  15941. this.value = false,
  15942. String? name,
  15943. String? key,
  15944. }) : super(
  15945. name: name,
  15946. key: key,
  15947. );
  15948. factory BoolParameterInfoDTO.fromJson(Map<String, dynamic> map) {
  15949. return BoolParameterInfoDTO(
  15950. value: map['Value'],
  15951. name: map['Name'],
  15952. key: map['Key'],
  15953. );
  15954. }
  15955. Map<String, dynamic> toJson() {
  15956. final map = super.toJson();
  15957. map['Value'] = value;
  15958. return map;
  15959. }
  15960. }
  15961. class StringParameterInfoDTO extends NameItemSettingInfoDTO{
  15962. String? value;
  15963. StringParameterInfoDTO({
  15964. this.value,
  15965. String? name,
  15966. String? key,
  15967. }) : super(
  15968. name: name,
  15969. key: key,
  15970. );
  15971. factory StringParameterInfoDTO.fromJson(Map<String, dynamic> map) {
  15972. return StringParameterInfoDTO(
  15973. value: map['Value'],
  15974. name: map['Name'],
  15975. key: map['Key'],
  15976. );
  15977. }
  15978. Map<String, dynamic> toJson() {
  15979. final map = super.toJson();
  15980. if(value != null)
  15981. map['Value'] = value;
  15982. return map;
  15983. }
  15984. }
  15985. class ChoiceParameterInfoDTO extends NameItemSettingInfoDTO{
  15986. String? value;
  15987. List<String >? items;
  15988. ChoiceParameterInfoDTO({
  15989. this.value,
  15990. this.items,
  15991. String? name,
  15992. String? key,
  15993. }) : super(
  15994. name: name,
  15995. key: key,
  15996. );
  15997. factory ChoiceParameterInfoDTO.fromJson(Map<String, dynamic> map) {
  15998. return ChoiceParameterInfoDTO(
  15999. value: map['Value'],
  16000. items: map['Items'] != null ? map['Items'].cast<String>().toList() : null,
  16001. name: map['Name'],
  16002. key: map['Key'],
  16003. );
  16004. }
  16005. Map<String, dynamic> toJson() {
  16006. final map = super.toJson();
  16007. if(value != null)
  16008. map['Value'] = value;
  16009. if(items != null)
  16010. map['Items'] = items;
  16011. return map;
  16012. }
  16013. }
  16014. class CommandResultPageSettingInfoDTO extends ListPageSettingInfoDTO{
  16015. String? result;
  16016. CommandResultPageSettingInfoDTO({
  16017. this.result,
  16018. List<GroupSettingInfoDTO >? groups,
  16019. String? name,
  16020. String? key,
  16021. }) : super(
  16022. groups: groups,
  16023. name: name,
  16024. key: key,
  16025. );
  16026. factory CommandResultPageSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  16027. return CommandResultPageSettingInfoDTO(
  16028. result: map['Result'],
  16029. groups: map['Groups'] != null ? (map['Groups'] as List).map((e)=>GroupSettingInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16030. name: map['Name'],
  16031. key: map['Key'],
  16032. );
  16033. }
  16034. Map<String, dynamic> toJson() {
  16035. final map = super.toJson();
  16036. if(result != null)
  16037. map['Result'] = result;
  16038. return map;
  16039. }
  16040. }
  16041. class AdminView {
  16042. String? code;
  16043. String? name;
  16044. AdminView({
  16045. this.code,
  16046. this.name,
  16047. });
  16048. factory AdminView.fromJson(Map<String, dynamic> map) {
  16049. return AdminView(
  16050. code: map['Code'],
  16051. name: map['Name'],
  16052. );
  16053. }
  16054. Map<String, dynamic> toJson() {
  16055. final map = Map<String, dynamic>();
  16056. if(code != null)
  16057. map['Code'] = code;
  16058. if(name != null)
  16059. map['Name'] = name;
  16060. return map;
  16061. }
  16062. }
  16063. class BaseInfoView {
  16064. String? code;
  16065. String? name;
  16066. BaseInfoView({
  16067. this.code,
  16068. this.name,
  16069. });
  16070. factory BaseInfoView.fromJson(Map<String, dynamic> map) {
  16071. return BaseInfoView(
  16072. code: map['Code'],
  16073. name: map['Name'],
  16074. );
  16075. }
  16076. Map<String, dynamic> toJson() {
  16077. final map = Map<String, dynamic>();
  16078. if(code != null)
  16079. map['Code'] = code;
  16080. if(name != null)
  16081. map['Name'] = name;
  16082. return map;
  16083. }
  16084. }
  16085. class CaseLabelView {
  16086. String? code;
  16087. String? name;
  16088. CaseLabelView({
  16089. this.code,
  16090. this.name,
  16091. });
  16092. factory CaseLabelView.fromJson(Map<String, dynamic> map) {
  16093. return CaseLabelView(
  16094. code: map['Code'],
  16095. name: map['Name'],
  16096. );
  16097. }
  16098. Map<String, dynamic> toJson() {
  16099. final map = Map<String, dynamic>();
  16100. if(code != null)
  16101. map['Code'] = code;
  16102. if(name != null)
  16103. map['Name'] = name;
  16104. return map;
  16105. }
  16106. }
  16107. class ChannelDataView {
  16108. String? channelId;
  16109. String? downLoadUrl;
  16110. String? upLoadUrl;
  16111. ChannelDescriptionEnum description;
  16112. String? httpUrl;
  16113. String? hlsUrl;
  16114. ChannelDataView({
  16115. this.channelId,
  16116. this.downLoadUrl,
  16117. this.upLoadUrl,
  16118. this.description = ChannelDescriptionEnum.DeskChannel,
  16119. this.httpUrl,
  16120. this.hlsUrl,
  16121. });
  16122. factory ChannelDataView.fromJson(Map<String, dynamic> map) {
  16123. return ChannelDataView(
  16124. channelId: map['ChannelId'],
  16125. downLoadUrl: map['DownLoadUrl'],
  16126. upLoadUrl: map['UpLoadUrl'],
  16127. description: ChannelDescriptionEnum.values.firstWhere((e) => e.index == map['Description']),
  16128. httpUrl: map['HttpUrl'],
  16129. hlsUrl: map['HlsUrl'],
  16130. );
  16131. }
  16132. Map<String, dynamic> toJson() {
  16133. final map = Map<String, dynamic>();
  16134. if(channelId != null)
  16135. map['ChannelId'] = channelId;
  16136. if(downLoadUrl != null)
  16137. map['DownLoadUrl'] = downLoadUrl;
  16138. if(upLoadUrl != null)
  16139. map['UpLoadUrl'] = upLoadUrl;
  16140. map['Description'] = description.index;
  16141. if(httpUrl != null)
  16142. map['HttpUrl'] = httpUrl;
  16143. if(hlsUrl != null)
  16144. map['HlsUrl'] = hlsUrl;
  16145. return map;
  16146. }
  16147. }
  16148. class ClassView {
  16149. String? code;
  16150. String? name;
  16151. ClassView({
  16152. this.code,
  16153. this.name,
  16154. });
  16155. factory ClassView.fromJson(Map<String, dynamic> map) {
  16156. return ClassView(
  16157. code: map['Code'],
  16158. name: map['Name'],
  16159. );
  16160. }
  16161. Map<String, dynamic> toJson() {
  16162. final map = Map<String, dynamic>();
  16163. if(code != null)
  16164. map['Code'] = code;
  16165. if(name != null)
  16166. map['Name'] = name;
  16167. return map;
  16168. }
  16169. }
  16170. class CommentView {
  16171. String? userCode;
  16172. String? userName;
  16173. double score;
  16174. String? description;
  16175. CommentView({
  16176. this.userCode,
  16177. this.userName,
  16178. this.score = 0,
  16179. this.description,
  16180. });
  16181. factory CommentView.fromJson(Map<String, dynamic> map) {
  16182. return CommentView(
  16183. userCode: map['UserCode'],
  16184. userName: map['UserName'],
  16185. score: double.parse(map['Score'].toString()),
  16186. description: map['Description'],
  16187. );
  16188. }
  16189. Map<String, dynamic> toJson() {
  16190. final map = Map<String, dynamic>();
  16191. if(userCode != null)
  16192. map['UserCode'] = userCode;
  16193. if(userName != null)
  16194. map['UserName'] = userName;
  16195. map['Score'] = score;
  16196. if(description != null)
  16197. map['Description'] = description;
  16198. return map;
  16199. }
  16200. }
  16201. class UserView {
  16202. String? code;
  16203. String? name;
  16204. String? organizationCode;
  16205. String? organizationName;
  16206. UserView({
  16207. this.code,
  16208. this.name,
  16209. this.organizationCode,
  16210. this.organizationName,
  16211. });
  16212. factory UserView.fromJson(Map<String, dynamic> map) {
  16213. return UserView(
  16214. code: map['Code'],
  16215. name: map['Name'],
  16216. organizationCode: map['OrganizationCode'],
  16217. organizationName: map['OrganizationName'],
  16218. );
  16219. }
  16220. Map<String, dynamic> toJson() {
  16221. final map = Map<String, dynamic>();
  16222. if(code != null)
  16223. map['Code'] = code;
  16224. if(name != null)
  16225. map['Name'] = name;
  16226. if(organizationCode != null)
  16227. map['OrganizationCode'] = organizationCode;
  16228. if(organizationName != null)
  16229. map['OrganizationName'] = organizationName;
  16230. return map;
  16231. }
  16232. }
  16233. class StudentView extends UserView{
  16234. bool isNoSpeaking;
  16235. bool isAssistant;
  16236. List<int>? smallHeadImage;
  16237. bool isPay;
  16238. StudentCourseStatusEnum signCourseStatus;
  16239. StudentView({
  16240. this.isNoSpeaking = false,
  16241. this.isAssistant = false,
  16242. this.smallHeadImage,
  16243. this.isPay = false,
  16244. this.signCourseStatus = StudentCourseStatusEnum.All,
  16245. String? code,
  16246. String? name,
  16247. String? organizationCode,
  16248. String? organizationName,
  16249. }) : super(
  16250. code: code,
  16251. name: name,
  16252. organizationCode: organizationCode,
  16253. organizationName: organizationName,
  16254. );
  16255. factory StudentView.fromJson(Map<String, dynamic> map) {
  16256. final smallHeadImageData = map['SmallHeadImage'];
  16257. return StudentView(
  16258. isNoSpeaking: map['IsNoSpeaking'],
  16259. isAssistant: map['IsAssistant'],
  16260. smallHeadImage: smallHeadImageData != null ? (smallHeadImageData as List).map((e) => e as int).toList(): null,
  16261. isPay: map['IsPay'],
  16262. signCourseStatus: StudentCourseStatusEnum.values.firstWhere((e) => e.index == map['SignCourseStatus']),
  16263. code: map['Code'],
  16264. name: map['Name'],
  16265. organizationCode: map['OrganizationCode'],
  16266. organizationName: map['OrganizationName'],
  16267. );
  16268. }
  16269. Map<String, dynamic> toJson() {
  16270. final map = super.toJson();
  16271. map['IsNoSpeaking'] = isNoSpeaking;
  16272. map['IsAssistant'] = isAssistant;
  16273. if(smallHeadImage != null)
  16274. map['SmallHeadImage'] = smallHeadImage;
  16275. map['IsPay'] = isPay;
  16276. map['SignCourseStatus'] = signCourseStatus.index;
  16277. return map;
  16278. }
  16279. }
  16280. class CourseAlbumView extends BaseDTO{
  16281. String? code;
  16282. String? name;
  16283. String? teacherCode;
  16284. String? teacherName;
  16285. List<BaseInfoView >? courseInfos;
  16286. String? cover;
  16287. String? introduction;
  16288. List<CourseLabelDTO >? courseLabels;
  16289. CourseViewRangeEnum viewRange;
  16290. Decimal? price;
  16291. List<StudentView >? students;
  16292. int sort;
  16293. bool isStick;
  16294. CourseAlbumView({
  16295. this.code,
  16296. this.name,
  16297. this.teacherCode,
  16298. this.teacherName,
  16299. this.courseInfos,
  16300. this.cover,
  16301. this.introduction,
  16302. this.courseLabels,
  16303. this.viewRange = CourseViewRangeEnum.All,
  16304. this.price,
  16305. this.students,
  16306. this.sort = 0,
  16307. this.isStick = false,
  16308. DateTime? createTime,
  16309. DateTime? updateTime,
  16310. }) : super(
  16311. createTime: createTime,
  16312. updateTime: updateTime,
  16313. );
  16314. factory CourseAlbumView.fromJson(Map<String, dynamic> map) {
  16315. return CourseAlbumView(
  16316. code: map['Code'],
  16317. name: map['Name'],
  16318. teacherCode: map['TeacherCode'],
  16319. teacherName: map['TeacherName'],
  16320. courseInfos: map['CourseInfos'] != null ? (map['CourseInfos'] as List).map((e)=>BaseInfoView.fromJson(e as Map<String,dynamic>)).toList() : null,
  16321. cover: map['Cover'],
  16322. introduction: map['Introduction'],
  16323. courseLabels: map['CourseLabels'] != null ? (map['CourseLabels'] as List).map((e)=>CourseLabelDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16324. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  16325. price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
  16326. students: map['Students'] != null ? (map['Students'] as List).map((e)=>StudentView.fromJson(e as Map<String,dynamic>)).toList() : null,
  16327. sort: map['Sort'],
  16328. isStick: map['IsStick'],
  16329. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  16330. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  16331. );
  16332. }
  16333. Map<String, dynamic> toJson() {
  16334. final map = super.toJson();
  16335. if(code != null)
  16336. map['Code'] = code;
  16337. if(name != null)
  16338. map['Name'] = name;
  16339. if(teacherCode != null)
  16340. map['TeacherCode'] = teacherCode;
  16341. if(teacherName != null)
  16342. map['TeacherName'] = teacherName;
  16343. if(courseInfos != null)
  16344. map['CourseInfos'] = courseInfos;
  16345. if(cover != null)
  16346. map['Cover'] = cover;
  16347. if(introduction != null)
  16348. map['Introduction'] = introduction;
  16349. if(courseLabels != null)
  16350. map['CourseLabels'] = courseLabels;
  16351. map['ViewRange'] = viewRange.index;
  16352. if(price != null)
  16353. map['Price'] = price;
  16354. if(students != null)
  16355. map['Students'] = students;
  16356. map['Sort'] = sort;
  16357. map['IsStick'] = isStick;
  16358. return map;
  16359. }
  16360. }
  16361. class LabelLanguageConfigView {
  16362. String? name;
  16363. String? languageCode;
  16364. LabelLanguageConfigView({
  16365. this.name,
  16366. this.languageCode,
  16367. });
  16368. factory LabelLanguageConfigView.fromJson(Map<String, dynamic> map) {
  16369. return LabelLanguageConfigView(
  16370. name: map['Name'],
  16371. languageCode: map['LanguageCode'],
  16372. );
  16373. }
  16374. Map<String, dynamic> toJson() {
  16375. final map = Map<String, dynamic>();
  16376. if(name != null)
  16377. map['Name'] = name;
  16378. if(languageCode != null)
  16379. map['LanguageCode'] = languageCode;
  16380. return map;
  16381. }
  16382. }
  16383. class CourseLabelView {
  16384. OrganizationPatientTypeEnum useObjectType;
  16385. List<LabelLanguageConfigView >? labelLanguageConfigs;
  16386. LabelTypeEnum type;
  16387. List<CourseLabelView >? childLabels;
  16388. CourseLabelView({
  16389. this.useObjectType = OrganizationPatientTypeEnum.Person,
  16390. this.labelLanguageConfigs,
  16391. this.type = LabelTypeEnum.Unknown,
  16392. this.childLabels,
  16393. });
  16394. factory CourseLabelView.fromJson(Map<String, dynamic> map) {
  16395. return CourseLabelView(
  16396. useObjectType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['UseObjectType']),
  16397. labelLanguageConfigs: map['LabelLanguageConfigs'] != null ? (map['LabelLanguageConfigs'] as List).map((e)=>LabelLanguageConfigView.fromJson(e as Map<String,dynamic>)).toList() : null,
  16398. type: LabelTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  16399. childLabels: map['ChildLabels'] != null ? (map['ChildLabels'] as List).map((e)=>CourseLabelView.fromJson(e as Map<String,dynamic>)).toList() : null,
  16400. );
  16401. }
  16402. Map<String, dynamic> toJson() {
  16403. final map = Map<String, dynamic>();
  16404. map['UseObjectType'] = useObjectType.index;
  16405. if(labelLanguageConfigs != null)
  16406. map['LabelLanguageConfigs'] = labelLanguageConfigs;
  16407. map['Type'] = type.index;
  16408. if(childLabels != null)
  16409. map['ChildLabels'] = childLabels;
  16410. return map;
  16411. }
  16412. }
  16413. class CustomerLabelView {
  16414. String? code;
  16415. String? name;
  16416. CustomerLabelView({
  16417. this.code,
  16418. this.name,
  16419. });
  16420. factory CustomerLabelView.fromJson(Map<String, dynamic> map) {
  16421. return CustomerLabelView(
  16422. code: map['Code'],
  16423. name: map['Name'],
  16424. );
  16425. }
  16426. Map<String, dynamic> toJson() {
  16427. final map = Map<String, dynamic>();
  16428. if(code != null)
  16429. map['Code'] = code;
  16430. if(name != null)
  16431. map['Name'] = name;
  16432. return map;
  16433. }
  16434. }
  16435. class DeviceView {
  16436. String? code;
  16437. String? name;
  16438. String? description;
  16439. String? uniqueCode;
  16440. String? organizationCode;
  16441. String? organizationName;
  16442. String? deviceType;
  16443. String? deviceModel;
  16444. DeviceView({
  16445. this.code,
  16446. this.name,
  16447. this.description,
  16448. this.uniqueCode,
  16449. this.organizationCode,
  16450. this.organizationName,
  16451. this.deviceType,
  16452. this.deviceModel,
  16453. });
  16454. factory DeviceView.fromJson(Map<String, dynamic> map) {
  16455. return DeviceView(
  16456. code: map['Code'],
  16457. name: map['Name'],
  16458. description: map['Description'],
  16459. uniqueCode: map['UniqueCode'],
  16460. organizationCode: map['OrganizationCode'],
  16461. organizationName: map['OrganizationName'],
  16462. deviceType: map['DeviceType'],
  16463. deviceModel: map['DeviceModel'],
  16464. );
  16465. }
  16466. Map<String, dynamic> toJson() {
  16467. final map = Map<String, dynamic>();
  16468. if(code != null)
  16469. map['Code'] = code;
  16470. if(name != null)
  16471. map['Name'] = name;
  16472. if(description != null)
  16473. map['Description'] = description;
  16474. if(uniqueCode != null)
  16475. map['UniqueCode'] = uniqueCode;
  16476. if(organizationCode != null)
  16477. map['OrganizationCode'] = organizationCode;
  16478. if(organizationName != null)
  16479. map['OrganizationName'] = organizationName;
  16480. if(deviceType != null)
  16481. map['DeviceType'] = deviceType;
  16482. if(deviceModel != null)
  16483. map['DeviceModel'] = deviceModel;
  16484. return map;
  16485. }
  16486. }
  16487. class DiagnosisView {
  16488. DiagnosisOrganEnum organ;
  16489. DiagnosisConclusionEnum diagnosisStatus;
  16490. DiagnosisView({
  16491. this.organ = DiagnosisOrganEnum.Null,
  16492. this.diagnosisStatus = DiagnosisConclusionEnum.NotRequired,
  16493. });
  16494. factory DiagnosisView.fromJson(Map<String, dynamic> map) {
  16495. return DiagnosisView(
  16496. organ: DiagnosisOrganEnum.values.firstWhere((e) => e.index == map['Organ']),
  16497. diagnosisStatus: DiagnosisConclusionEnum.values.firstWhere((e) => e.index == map['DiagnosisStatus']),
  16498. );
  16499. }
  16500. Map<String, dynamic> toJson() {
  16501. final map = Map<String, dynamic>();
  16502. map['Organ'] = organ.index;
  16503. map['DiagnosisStatus'] = diagnosisStatus.index;
  16504. return map;
  16505. }
  16506. }
  16507. class ExamQuestionView {
  16508. String? code;
  16509. String? stem;
  16510. QuestionTypeEnum questionType;
  16511. List<QuestionOptionDTO >? questionOptionList;
  16512. List<QuestionFileDTO >? fileList;
  16513. List<String >? caseLabelCodes;
  16514. List<String >? courseLabelCodes;
  16515. bool trueOrFalse;
  16516. double score;
  16517. ExamQuestionView({
  16518. this.code,
  16519. this.stem,
  16520. this.questionType = QuestionTypeEnum.Judge,
  16521. this.questionOptionList,
  16522. this.fileList,
  16523. this.caseLabelCodes,
  16524. this.courseLabelCodes,
  16525. this.trueOrFalse = false,
  16526. this.score = 0,
  16527. });
  16528. factory ExamQuestionView.fromJson(Map<String, dynamic> map) {
  16529. return ExamQuestionView(
  16530. code: map['Code'],
  16531. stem: map['Stem'],
  16532. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  16533. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16534. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16535. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  16536. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  16537. trueOrFalse: map['TrueOrFalse'],
  16538. score: double.parse(map['Score'].toString()),
  16539. );
  16540. }
  16541. Map<String, dynamic> toJson() {
  16542. final map = Map<String, dynamic>();
  16543. if(code != null)
  16544. map['Code'] = code;
  16545. if(stem != null)
  16546. map['Stem'] = stem;
  16547. map['QuestionType'] = questionType.index;
  16548. if(questionOptionList != null)
  16549. map['QuestionOptionList'] = questionOptionList;
  16550. if(fileList != null)
  16551. map['FileList'] = fileList;
  16552. if(caseLabelCodes != null)
  16553. map['CaseLabelCodes'] = caseLabelCodes;
  16554. if(courseLabelCodes != null)
  16555. map['CourseLabelCodes'] = courseLabelCodes;
  16556. map['TrueOrFalse'] = trueOrFalse;
  16557. map['Score'] = score;
  16558. return map;
  16559. }
  16560. }
  16561. class ICollection<T> {
  16562. int count;
  16563. bool isReadOnly;
  16564. ICollection({
  16565. this.count = 0,
  16566. this.isReadOnly = false,
  16567. });
  16568. factory ICollection.fromJson(Map<String, dynamic> map) {
  16569. return ICollection(
  16570. count: map['Count'],
  16571. isReadOnly: map['IsReadOnly'],
  16572. );
  16573. }
  16574. Map<String, dynamic> toJson() {
  16575. final map = Map<String, dynamic>();
  16576. map['Count'] = count;
  16577. map['IsReadOnly'] = isReadOnly;
  16578. return map;
  16579. }
  16580. }
  16581. class LearnerView {
  16582. String? code;
  16583. LearnerStatusEnum learnerStatus;
  16584. LearnerView({
  16585. this.code,
  16586. this.learnerStatus = LearnerStatusEnum.Unknown,
  16587. });
  16588. factory LearnerView.fromJson(Map<String, dynamic> map) {
  16589. return LearnerView(
  16590. code: map['Code'],
  16591. learnerStatus: LearnerStatusEnum.values.firstWhere((e) => e.index == map['LearnerStatus']),
  16592. );
  16593. }
  16594. Map<String, dynamic> toJson() {
  16595. final map = Map<String, dynamic>();
  16596. if(code != null)
  16597. map['Code'] = code;
  16598. map['LearnerStatus'] = learnerStatus.index;
  16599. return map;
  16600. }
  16601. }
  16602. class GroupView {
  16603. String? code;
  16604. String? name;
  16605. String? shortCode;
  16606. int maxPeople;
  16607. List<LearnerView >? students;
  16608. GroupView({
  16609. this.code,
  16610. this.name,
  16611. this.shortCode,
  16612. this.maxPeople = 0,
  16613. this.students,
  16614. });
  16615. factory GroupView.fromJson(Map<String, dynamic> map) {
  16616. return GroupView(
  16617. code: map['Code'],
  16618. name: map['Name'],
  16619. shortCode: map['ShortCode'],
  16620. maxPeople: map['MaxPeople'],
  16621. students: map['Students'] != null ? (map['Students'] as List).map((e)=>LearnerView.fromJson(e as Map<String,dynamic>)).toList() : null,
  16622. );
  16623. }
  16624. Map<String, dynamic> toJson() {
  16625. final map = Map<String, dynamic>();
  16626. if(code != null)
  16627. map['Code'] = code;
  16628. if(name != null)
  16629. map['Name'] = name;
  16630. if(shortCode != null)
  16631. map['ShortCode'] = shortCode;
  16632. map['MaxPeople'] = maxPeople;
  16633. if(students != null)
  16634. map['Students'] = students;
  16635. return map;
  16636. }
  16637. }
  16638. class ExamVideoView {
  16639. String? id;
  16640. String? videoName;
  16641. DateTime? createTime;
  16642. String? posterToken;
  16643. int duration;
  16644. int size;
  16645. String? description;
  16646. String? url;
  16647. ExamVideoView({
  16648. this.id,
  16649. this.videoName,
  16650. this.createTime,
  16651. this.posterToken,
  16652. this.duration = 0,
  16653. this.size = 0,
  16654. this.description,
  16655. this.url,
  16656. });
  16657. factory ExamVideoView.fromJson(Map<String, dynamic> map) {
  16658. return ExamVideoView(
  16659. id: map['Id'],
  16660. videoName: map['VideoName'],
  16661. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  16662. posterToken: map['PosterToken'],
  16663. duration: map['Duration'],
  16664. size: map['Size'],
  16665. description: map['Description'],
  16666. url: map['Url'],
  16667. );
  16668. }
  16669. Map<String, dynamic> toJson() {
  16670. final map = Map<String, dynamic>();
  16671. if(id != null)
  16672. map['Id'] = id;
  16673. if(videoName != null)
  16674. map['VideoName'] = videoName;
  16675. if(createTime != null)
  16676. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  16677. if(posterToken != null)
  16678. map['PosterToken'] = posterToken;
  16679. map['Duration'] = duration;
  16680. map['Size'] = size;
  16681. if(description != null)
  16682. map['Description'] = description;
  16683. if(url != null)
  16684. map['Url'] = url;
  16685. return map;
  16686. }
  16687. }
  16688. class MyExamAnswerView {
  16689. String? subjectId;
  16690. List<String >? answers;
  16691. MyExamAnswerView({
  16692. this.subjectId,
  16693. this.answers,
  16694. });
  16695. factory MyExamAnswerView.fromJson(Map<String, dynamic> map) {
  16696. return MyExamAnswerView(
  16697. subjectId: map['SubjectId'],
  16698. answers: map['Answers'] != null ? map['Answers'].cast<String>().toList() : null,
  16699. );
  16700. }
  16701. Map<String, dynamic> toJson() {
  16702. final map = Map<String, dynamic>();
  16703. if(subjectId != null)
  16704. map['SubjectId'] = subjectId;
  16705. if(answers != null)
  16706. map['Answers'] = answers;
  16707. return map;
  16708. }
  16709. }
  16710. class ExamScoreView {
  16711. double totalScore;
  16712. int correctCount;
  16713. int submitCount;
  16714. int maxScore;
  16715. List<MyExamAnswerView >? myExamAnswers;
  16716. ExamScoreView({
  16717. this.totalScore = 0,
  16718. this.correctCount = 0,
  16719. this.submitCount = 0,
  16720. this.maxScore = 0,
  16721. this.myExamAnswers,
  16722. });
  16723. factory ExamScoreView.fromJson(Map<String, dynamic> map) {
  16724. return ExamScoreView(
  16725. totalScore: double.parse(map['TotalScore'].toString()),
  16726. correctCount: map['CorrectCount'],
  16727. submitCount: map['SubmitCount'],
  16728. maxScore: map['MaxScore'],
  16729. myExamAnswers: map['MyExamAnswers'] != null ? (map['MyExamAnswers'] as List).map((e)=>MyExamAnswerView.fromJson(e as Map<String,dynamic>)).toList() : null,
  16730. );
  16731. }
  16732. Map<String, dynamic> toJson() {
  16733. final map = Map<String, dynamic>();
  16734. map['TotalScore'] = totalScore;
  16735. map['CorrectCount'] = correctCount;
  16736. map['SubmitCount'] = submitCount;
  16737. map['MaxScore'] = maxScore;
  16738. if(myExamAnswers != null)
  16739. map['MyExamAnswers'] = myExamAnswers;
  16740. return map;
  16741. }
  16742. }
  16743. class VideoInfoView {
  16744. String? videoToken;
  16745. String? videoImageToken;
  16746. VideoInfoView({
  16747. this.videoToken,
  16748. this.videoImageToken,
  16749. });
  16750. factory VideoInfoView.fromJson(Map<String, dynamic> map) {
  16751. return VideoInfoView(
  16752. videoToken: map['VideoToken'],
  16753. videoImageToken: map['VideoImageToken'],
  16754. );
  16755. }
  16756. Map<String, dynamic> toJson() {
  16757. final map = Map<String, dynamic>();
  16758. if(videoToken != null)
  16759. map['VideoToken'] = videoToken;
  16760. if(videoImageToken != null)
  16761. map['VideoImageToken'] = videoImageToken;
  16762. return map;
  16763. }
  16764. }
  16765. class SubjectItemView {
  16766. String? content;
  16767. int index;
  16768. bool isAnswer;
  16769. SubjectItemView({
  16770. this.content,
  16771. this.index = 0,
  16772. this.isAnswer = false,
  16773. });
  16774. factory SubjectItemView.fromJson(Map<String, dynamic> map) {
  16775. return SubjectItemView(
  16776. content: map['Content'],
  16777. index: map['Index'],
  16778. isAnswer: map['IsAnswer'],
  16779. );
  16780. }
  16781. Map<String, dynamic> toJson() {
  16782. final map = Map<String, dynamic>();
  16783. if(content != null)
  16784. map['Content'] = content;
  16785. map['Index'] = index;
  16786. map['IsAnswer'] = isAnswer;
  16787. return map;
  16788. }
  16789. }
  16790. class SubjectInfoView {
  16791. String? id;
  16792. String? subject;
  16793. List<String >? images;
  16794. List<VideoInfoView >? videos;
  16795. double score;
  16796. int index;
  16797. QuestionTypeEnum subjectType;
  16798. List<SubjectItemView >? items;
  16799. SubjectInfoView({
  16800. this.id,
  16801. this.subject,
  16802. this.images,
  16803. this.videos,
  16804. this.score = 0,
  16805. this.index = 0,
  16806. this.subjectType = QuestionTypeEnum.Judge,
  16807. this.items,
  16808. });
  16809. factory SubjectInfoView.fromJson(Map<String, dynamic> map) {
  16810. return SubjectInfoView(
  16811. id: map['Id'],
  16812. subject: map['Subject'],
  16813. images: map['Images'] != null ? map['Images'].cast<String>().toList() : null,
  16814. videos: map['Videos'] != null ? (map['Videos'] as List).map((e)=>VideoInfoView.fromJson(e as Map<String,dynamic>)).toList() : null,
  16815. score: double.parse(map['Score'].toString()),
  16816. index: map['Index'],
  16817. subjectType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['SubjectType']),
  16818. items: map['Items'] != null ? (map['Items'] as List).map((e)=>SubjectItemView.fromJson(e as Map<String,dynamic>)).toList() : null,
  16819. );
  16820. }
  16821. Map<String, dynamic> toJson() {
  16822. final map = Map<String, dynamic>();
  16823. if(id != null)
  16824. map['Id'] = id;
  16825. if(subject != null)
  16826. map['Subject'] = subject;
  16827. if(images != null)
  16828. map['Images'] = images;
  16829. if(videos != null)
  16830. map['Videos'] = videos;
  16831. map['Score'] = score;
  16832. map['Index'] = index;
  16833. map['SubjectType'] = subjectType.index;
  16834. if(items != null)
  16835. map['Items'] = items;
  16836. return map;
  16837. }
  16838. }
  16839. class ExamTemplateView {
  16840. String? code;
  16841. List<SubjectInfoView >? subjects;
  16842. bool isDeleted;
  16843. String? name;
  16844. ExamTemplateView({
  16845. this.code,
  16846. this.subjects,
  16847. this.isDeleted = false,
  16848. this.name,
  16849. });
  16850. factory ExamTemplateView.fromJson(Map<String, dynamic> map) {
  16851. return ExamTemplateView(
  16852. code: map['Code'],
  16853. subjects: map['Subjects'] != null ? (map['Subjects'] as List).map((e)=>SubjectInfoView.fromJson(e as Map<String,dynamic>)).toList() : null,
  16854. isDeleted: map['IsDeleted'],
  16855. name: map['Name'],
  16856. );
  16857. }
  16858. Map<String, dynamic> toJson() {
  16859. final map = Map<String, dynamic>();
  16860. if(code != null)
  16861. map['Code'] = code;
  16862. if(subjects != null)
  16863. map['Subjects'] = subjects;
  16864. map['IsDeleted'] = isDeleted;
  16865. if(name != null)
  16866. map['Name'] = name;
  16867. return map;
  16868. }
  16869. }
  16870. class ExamPaperDTO extends BaseDTO{
  16871. String? code;
  16872. String? name;
  16873. double totalScore;
  16874. List<ExamQuestionView >? questionList;
  16875. List<CourseLabelDTO >? caseLabels;
  16876. List<CourseLabelDTO >? courseLabels;
  16877. List<StudentExaminationDTO >? studentExaminationInfos;
  16878. String? description;
  16879. DateTime? starTime;
  16880. DateTime? endTime;
  16881. int limitCount;
  16882. String? result;
  16883. ICollection<UserView>? examiners;
  16884. ICollection<GroupView>? examinerUserGroups;
  16885. ExaminationAvailabilityEnum examinationAvailability;
  16886. ICollection<ClassView>? classes;
  16887. String? creatorId;
  16888. String? creatorName;
  16889. ExamTypeEnum examType;
  16890. bool hasPassScore;
  16891. double passScore;
  16892. List<ExamVideoView >? examVideoInfos;
  16893. List<ExamScoreView >? examScoreInfos;
  16894. ExamTemplateView? examTemplate;
  16895. bool isDisplayAnswer;
  16896. ExamPaperDTO({
  16897. this.code,
  16898. this.name,
  16899. this.totalScore = 0,
  16900. this.questionList,
  16901. this.caseLabels,
  16902. this.courseLabels,
  16903. this.studentExaminationInfos,
  16904. this.description,
  16905. this.starTime,
  16906. this.endTime,
  16907. this.limitCount = 0,
  16908. this.result,
  16909. this.examiners,
  16910. this.examinerUserGroups,
  16911. this.examinationAvailability = ExaminationAvailabilityEnum.Public,
  16912. this.classes,
  16913. this.creatorId,
  16914. this.creatorName,
  16915. this.examType = ExamTypeEnum.GeneralExam,
  16916. this.hasPassScore = false,
  16917. this.passScore = 0,
  16918. this.examVideoInfos,
  16919. this.examScoreInfos,
  16920. this.examTemplate,
  16921. this.isDisplayAnswer = false,
  16922. DateTime? createTime,
  16923. DateTime? updateTime,
  16924. }) : super(
  16925. createTime: createTime,
  16926. updateTime: updateTime,
  16927. );
  16928. factory ExamPaperDTO.fromJson(Map<String, dynamic> map) {
  16929. return ExamPaperDTO(
  16930. code: map['Code'],
  16931. name: map['Name'],
  16932. totalScore: double.parse(map['TotalScore'].toString()),
  16933. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>ExamQuestionView.fromJson(e as Map<String,dynamic>)).toList() : null,
  16934. caseLabels: map['CaseLabels'] != null ? (map['CaseLabels'] as List).map((e)=>CourseLabelDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16935. courseLabels: map['CourseLabels'] != null ? (map['CourseLabels'] as List).map((e)=>CourseLabelDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16936. studentExaminationInfos: map['StudentExaminationInfos'] != null ? (map['StudentExaminationInfos'] as List).map((e)=>StudentExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16937. description: map['Description'],
  16938. starTime: map['StarTime'] != null ? DateTime.parse(map['StarTime']) : null,
  16939. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  16940. limitCount: map['LimitCount'],
  16941. result: map['Result'],
  16942. examinationAvailability: ExaminationAvailabilityEnum.values.firstWhere((e) => e.index == map['ExaminationAvailability']),
  16943. creatorId: map['CreatorId'],
  16944. creatorName: map['CreatorName'],
  16945. examType: ExamTypeEnum.values.firstWhere((e) => e.index == map['ExamType']),
  16946. hasPassScore: map['HasPassScore'],
  16947. passScore: double.parse(map['PassScore'].toString()),
  16948. examVideoInfos: map['ExamVideoInfos'] != null ? (map['ExamVideoInfos'] as List).map((e)=>ExamVideoView.fromJson(e as Map<String,dynamic>)).toList() : null,
  16949. examScoreInfos: map['ExamScoreInfos'] != null ? (map['ExamScoreInfos'] as List).map((e)=>ExamScoreView.fromJson(e as Map<String,dynamic>)).toList() : null,
  16950. examTemplate: map['ExamTemplate'] != null ? ExamTemplateView.fromJson(map['ExamTemplate']) : null,
  16951. isDisplayAnswer: map['IsDisplayAnswer'],
  16952. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  16953. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  16954. );
  16955. }
  16956. Map<String, dynamic> toJson() {
  16957. final map = super.toJson();
  16958. if(code != null)
  16959. map['Code'] = code;
  16960. if(name != null)
  16961. map['Name'] = name;
  16962. map['TotalScore'] = totalScore;
  16963. if(questionList != null)
  16964. map['QuestionList'] = questionList;
  16965. if(caseLabels != null)
  16966. map['CaseLabels'] = caseLabels;
  16967. if(courseLabels != null)
  16968. map['CourseLabels'] = courseLabels;
  16969. if(studentExaminationInfos != null)
  16970. map['StudentExaminationInfos'] = studentExaminationInfos;
  16971. if(description != null)
  16972. map['Description'] = description;
  16973. if(starTime != null)
  16974. map['StarTime'] = JsonRpcUtils.dateFormat(starTime!);
  16975. if(endTime != null)
  16976. map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
  16977. map['LimitCount'] = limitCount;
  16978. if(result != null)
  16979. map['Result'] = result;
  16980. if(examiners != null)
  16981. map['Examiners'] = examiners;
  16982. if(examinerUserGroups != null)
  16983. map['ExaminerUserGroups'] = examinerUserGroups;
  16984. map['ExaminationAvailability'] = examinationAvailability.index;
  16985. if(classes != null)
  16986. map['Classes'] = classes;
  16987. if(creatorId != null)
  16988. map['CreatorId'] = creatorId;
  16989. if(creatorName != null)
  16990. map['CreatorName'] = creatorName;
  16991. map['ExamType'] = examType.index;
  16992. map['HasPassScore'] = hasPassScore;
  16993. map['PassScore'] = passScore;
  16994. if(examVideoInfos != null)
  16995. map['ExamVideoInfos'] = examVideoInfos;
  16996. if(examScoreInfos != null)
  16997. map['ExamScoreInfos'] = examScoreInfos;
  16998. if(examTemplate != null)
  16999. map['ExamTemplate'] = examTemplate;
  17000. map['IsDisplayAnswer'] = isDisplayAnswer;
  17001. return map;
  17002. }
  17003. }
  17004. class FileDiagnosisResultDTO extends BaseDTO{
  17005. String? code;
  17006. String? remedicalCode;
  17007. DiagnosisConclusionEnum diagnosisConclusion;
  17008. String? diagnosisResult;
  17009. List<DiagnosisOrganEnum >? diagnosisOrgans;
  17010. MeasuredResultsDTO? measuredResult;
  17011. ScanImageDTO? commentResult;
  17012. CarotidResultDTO? carotidResult;
  17013. BusinessTypeEnum businessType;
  17014. FileDiagnosisResultDTO({
  17015. this.code,
  17016. this.remedicalCode,
  17017. this.diagnosisConclusion = DiagnosisConclusionEnum.NotRequired,
  17018. this.diagnosisResult,
  17019. this.diagnosisOrgans,
  17020. this.measuredResult,
  17021. this.commentResult,
  17022. this.carotidResult,
  17023. this.businessType = BusinessTypeEnum.RemoteDiagnosis,
  17024. DateTime? createTime,
  17025. DateTime? updateTime,
  17026. }) : super(
  17027. createTime: createTime,
  17028. updateTime: updateTime,
  17029. );
  17030. factory FileDiagnosisResultDTO.fromJson(Map<String, dynamic> map) {
  17031. return FileDiagnosisResultDTO(
  17032. code: map['Code'],
  17033. remedicalCode: map['RemedicalCode'],
  17034. diagnosisConclusion: DiagnosisConclusionEnum.values.firstWhere((e) => e.index == map['DiagnosisConclusion']),
  17035. diagnosisResult: map['DiagnosisResult'],
  17036. diagnosisOrgans: map['DiagnosisOrgans'] != null ? (map['DiagnosisOrgans'] as List).map((e)=>DiagnosisOrganEnum.values.firstWhere((i) => i.index == e)).toList() : null,
  17037. measuredResult: map['MeasuredResult'] != null ? MeasuredResultsDTO.fromJson(map['MeasuredResult']) : null,
  17038. commentResult: map['CommentResult'] != null ? ScanImageDTO.fromJson(map['CommentResult']) : null,
  17039. carotidResult: map['CarotidResult'] != null ? CarotidResultDTO.fromJson(map['CarotidResult']) : null,
  17040. businessType: BusinessTypeEnum.values.firstWhere((e) => e.index == map['BusinessType']),
  17041. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  17042. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  17043. );
  17044. }
  17045. Map<String, dynamic> toJson() {
  17046. final map = super.toJson();
  17047. if(code != null)
  17048. map['Code'] = code;
  17049. if(remedicalCode != null)
  17050. map['RemedicalCode'] = remedicalCode;
  17051. map['DiagnosisConclusion'] = diagnosisConclusion.index;
  17052. if(diagnosisResult != null)
  17053. map['DiagnosisResult'] = diagnosisResult;
  17054. if(diagnosisOrgans != null)
  17055. map['DiagnosisOrgans'] = diagnosisOrgans;
  17056. if(measuredResult != null)
  17057. map['MeasuredResult'] = measuredResult;
  17058. if(commentResult != null)
  17059. map['CommentResult'] = commentResult;
  17060. if(carotidResult != null)
  17061. map['CarotidResult'] = carotidResult;
  17062. map['BusinessType'] = businessType.index;
  17063. return map;
  17064. }
  17065. }
  17066. class FileView {
  17067. RemedicalFileDataTypeEnum dataType;
  17068. String? originalUrl;
  17069. String? cdnUrl;
  17070. int fileSize;
  17071. String? fileName;
  17072. String? previewUrl;
  17073. String? converUrl;
  17074. FileView({
  17075. this.dataType = RemedicalFileDataTypeEnum.VinnoVidSingle,
  17076. this.originalUrl,
  17077. this.cdnUrl,
  17078. this.fileSize = 0,
  17079. this.fileName,
  17080. this.previewUrl,
  17081. this.converUrl,
  17082. });
  17083. factory FileView.fromJson(Map<String, dynamic> map) {
  17084. return FileView(
  17085. dataType: RemedicalFileDataTypeEnum.values.firstWhere((e) => e.index == map['DataType']),
  17086. originalUrl: map['OriginalUrl'],
  17087. cdnUrl: map['CdnUrl'],
  17088. fileSize: map['FileSize'],
  17089. fileName: map['FileName'],
  17090. previewUrl: map['PreviewUrl'],
  17091. converUrl: map['ConverUrl'],
  17092. );
  17093. }
  17094. Map<String, dynamic> toJson() {
  17095. final map = Map<String, dynamic>();
  17096. map['DataType'] = dataType.index;
  17097. if(originalUrl != null)
  17098. map['OriginalUrl'] = originalUrl;
  17099. if(cdnUrl != null)
  17100. map['CdnUrl'] = cdnUrl;
  17101. map['FileSize'] = fileSize;
  17102. if(fileName != null)
  17103. map['FileName'] = fileName;
  17104. if(previewUrl != null)
  17105. map['PreviewUrl'] = previewUrl;
  17106. if(converUrl != null)
  17107. map['ConverUrl'] = converUrl;
  17108. return map;
  17109. }
  17110. }
  17111. class ImageLocationView {
  17112. String? group;
  17113. String? position;
  17114. String? quadrant;
  17115. ImageLocationView({
  17116. this.group,
  17117. this.position,
  17118. this.quadrant,
  17119. });
  17120. factory ImageLocationView.fromJson(Map<String, dynamic> map) {
  17121. return ImageLocationView(
  17122. group: map['Group'],
  17123. position: map['Position'],
  17124. quadrant: map['Quadrant'],
  17125. );
  17126. }
  17127. Map<String, dynamic> toJson() {
  17128. final map = Map<String, dynamic>();
  17129. if(group != null)
  17130. map['Group'] = group;
  17131. if(position != null)
  17132. map['Position'] = position;
  17133. if(quadrant != null)
  17134. map['Quadrant'] = quadrant;
  17135. return map;
  17136. }
  17137. }
  17138. class RemoteDiagnosisFileView extends FileView{
  17139. String? code;
  17140. String? application;
  17141. ImageLocationView? imageLocationInfo;
  17142. List<CommentView >? commentInfos;
  17143. RemoteDiagnosisFileView({
  17144. this.code,
  17145. this.application,
  17146. this.imageLocationInfo,
  17147. this.commentInfos,
  17148. RemedicalFileDataTypeEnum dataType = RemedicalFileDataTypeEnum.VinnoVidSingle,
  17149. String? originalUrl,
  17150. String? cdnUrl,
  17151. int fileSize = 0,
  17152. String? fileName,
  17153. String? previewUrl,
  17154. String? converUrl,
  17155. }) : super(
  17156. dataType: dataType,
  17157. originalUrl: originalUrl,
  17158. cdnUrl: cdnUrl,
  17159. fileSize: fileSize,
  17160. fileName: fileName,
  17161. previewUrl: previewUrl,
  17162. converUrl: converUrl,
  17163. );
  17164. factory RemoteDiagnosisFileView.fromJson(Map<String, dynamic> map) {
  17165. return RemoteDiagnosisFileView(
  17166. code: map['Code'],
  17167. application: map['Application'],
  17168. imageLocationInfo: map['ImageLocationInfo'] != null ? ImageLocationView.fromJson(map['ImageLocationInfo']) : null,
  17169. commentInfos: map['CommentInfos'] != null ? (map['CommentInfos'] as List).map((e)=>CommentView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17170. dataType: RemedicalFileDataTypeEnum.values.firstWhere((e) => e.index == map['DataType']),
  17171. originalUrl: map['OriginalUrl'],
  17172. cdnUrl: map['CdnUrl'],
  17173. fileSize: map['FileSize'],
  17174. fileName: map['FileName'],
  17175. previewUrl: map['PreviewUrl'],
  17176. converUrl: map['ConverUrl'],
  17177. );
  17178. }
  17179. Map<String, dynamic> toJson() {
  17180. final map = super.toJson();
  17181. if(code != null)
  17182. map['Code'] = code;
  17183. if(application != null)
  17184. map['Application'] = application;
  17185. if(imageLocationInfo != null)
  17186. map['ImageLocationInfo'] = imageLocationInfo;
  17187. if(commentInfos != null)
  17188. map['CommentInfos'] = commentInfos;
  17189. return map;
  17190. }
  17191. }
  17192. class LiveConsultationFileView extends FileView{
  17193. String? userCode;
  17194. String? userName;
  17195. String? type;
  17196. ConsultationFileTypeEnum consultationFileType;
  17197. String? remedicalCode;
  17198. String? remedicalMeasureCode;
  17199. LiveConsultationFileView({
  17200. this.userCode,
  17201. this.userName,
  17202. this.type,
  17203. this.consultationFileType = ConsultationFileTypeEnum.Screenshot,
  17204. this.remedicalCode,
  17205. this.remedicalMeasureCode,
  17206. RemedicalFileDataTypeEnum dataType = RemedicalFileDataTypeEnum.VinnoVidSingle,
  17207. String? originalUrl,
  17208. String? cdnUrl,
  17209. int fileSize = 0,
  17210. String? fileName,
  17211. String? previewUrl,
  17212. String? converUrl,
  17213. }) : super(
  17214. dataType: dataType,
  17215. originalUrl: originalUrl,
  17216. cdnUrl: cdnUrl,
  17217. fileSize: fileSize,
  17218. fileName: fileName,
  17219. previewUrl: previewUrl,
  17220. converUrl: converUrl,
  17221. );
  17222. factory LiveConsultationFileView.fromJson(Map<String, dynamic> map) {
  17223. return LiveConsultationFileView(
  17224. userCode: map['UserCode'],
  17225. userName: map['UserName'],
  17226. type: map['Type'],
  17227. consultationFileType: ConsultationFileTypeEnum.values.firstWhere((e) => e.index == map['ConsultationFileType']),
  17228. remedicalCode: map['RemedicalCode'],
  17229. remedicalMeasureCode: map['RemedicalMeasureCode'],
  17230. dataType: RemedicalFileDataTypeEnum.values.firstWhere((e) => e.index == map['DataType']),
  17231. originalUrl: map['OriginalUrl'],
  17232. cdnUrl: map['CdnUrl'],
  17233. fileSize: map['FileSize'],
  17234. fileName: map['FileName'],
  17235. previewUrl: map['PreviewUrl'],
  17236. converUrl: map['ConverUrl'],
  17237. );
  17238. }
  17239. Map<String, dynamic> toJson() {
  17240. final map = super.toJson();
  17241. if(userCode != null)
  17242. map['UserCode'] = userCode;
  17243. if(userName != null)
  17244. map['UserName'] = userName;
  17245. if(type != null)
  17246. map['Type'] = type;
  17247. map['ConsultationFileType'] = consultationFileType.index;
  17248. if(remedicalCode != null)
  17249. map['RemedicalCode'] = remedicalCode;
  17250. if(remedicalMeasureCode != null)
  17251. map['RemedicalMeasureCode'] = remedicalMeasureCode;
  17252. return map;
  17253. }
  17254. }
  17255. class PatientView {
  17256. String? code;
  17257. String? name;
  17258. String? identityCardId;
  17259. String? mobile;
  17260. String? gender;
  17261. String? age;
  17262. String? pastHistory;
  17263. String? diagnosis;
  17264. PatientView({
  17265. this.code,
  17266. this.name,
  17267. this.identityCardId,
  17268. this.mobile,
  17269. this.gender,
  17270. this.age,
  17271. this.pastHistory,
  17272. this.diagnosis,
  17273. });
  17274. factory PatientView.fromJson(Map<String, dynamic> map) {
  17275. return PatientView(
  17276. code: map['Code'],
  17277. name: map['Name'],
  17278. identityCardId: map['IdentityCardId'],
  17279. mobile: map['Mobile'],
  17280. gender: map['Gender'],
  17281. age: map['Age'],
  17282. pastHistory: map['PastHistory'],
  17283. diagnosis: map['Diagnosis'],
  17284. );
  17285. }
  17286. Map<String, dynamic> toJson() {
  17287. final map = Map<String, dynamic>();
  17288. if(code != null)
  17289. map['Code'] = code;
  17290. if(name != null)
  17291. map['Name'] = name;
  17292. if(identityCardId != null)
  17293. map['IdentityCardId'] = identityCardId;
  17294. if(mobile != null)
  17295. map['Mobile'] = mobile;
  17296. if(gender != null)
  17297. map['Gender'] = gender;
  17298. if(age != null)
  17299. map['Age'] = age;
  17300. if(pastHistory != null)
  17301. map['PastHistory'] = pastHistory;
  17302. if(diagnosis != null)
  17303. map['Diagnosis'] = diagnosis;
  17304. return map;
  17305. }
  17306. }
  17307. class OrganizationView {
  17308. String? code;
  17309. String? name;
  17310. String? departmentCode;
  17311. String? departmentName;
  17312. String? description;
  17313. String? logoUrl;
  17314. String? countryCode;
  17315. String? countryName;
  17316. String? provinceCode;
  17317. String? provinceName;
  17318. String? cityCode;
  17319. String? cityName;
  17320. OrganizationView({
  17321. this.code,
  17322. this.name,
  17323. this.departmentCode,
  17324. this.departmentName,
  17325. this.description,
  17326. this.logoUrl,
  17327. this.countryCode,
  17328. this.countryName,
  17329. this.provinceCode,
  17330. this.provinceName,
  17331. this.cityCode,
  17332. this.cityName,
  17333. });
  17334. factory OrganizationView.fromJson(Map<String, dynamic> map) {
  17335. return OrganizationView(
  17336. code: map['Code'],
  17337. name: map['Name'],
  17338. departmentCode: map['DepartmentCode'],
  17339. departmentName: map['DepartmentName'],
  17340. description: map['Description'],
  17341. logoUrl: map['LogoUrl'],
  17342. countryCode: map['CountryCode'],
  17343. countryName: map['CountryName'],
  17344. provinceCode: map['ProvinceCode'],
  17345. provinceName: map['ProvinceName'],
  17346. cityCode: map['CityCode'],
  17347. cityName: map['CityName'],
  17348. );
  17349. }
  17350. Map<String, dynamic> toJson() {
  17351. final map = Map<String, dynamic>();
  17352. if(code != null)
  17353. map['Code'] = code;
  17354. if(name != null)
  17355. map['Name'] = name;
  17356. if(departmentCode != null)
  17357. map['DepartmentCode'] = departmentCode;
  17358. if(departmentName != null)
  17359. map['DepartmentName'] = departmentName;
  17360. if(description != null)
  17361. map['Description'] = description;
  17362. if(logoUrl != null)
  17363. map['LogoUrl'] = logoUrl;
  17364. if(countryCode != null)
  17365. map['CountryCode'] = countryCode;
  17366. if(countryName != null)
  17367. map['CountryName'] = countryName;
  17368. if(provinceCode != null)
  17369. map['ProvinceCode'] = provinceCode;
  17370. if(provinceName != null)
  17371. map['ProvinceName'] = provinceName;
  17372. if(cityCode != null)
  17373. map['CityCode'] = cityCode;
  17374. if(cityName != null)
  17375. map['CityName'] = cityName;
  17376. return map;
  17377. }
  17378. }
  17379. class ReportConclusionView {
  17380. String? reportId;
  17381. String? diseaseName;
  17382. DiseaseConclusion diseaseConclusion;
  17383. ReportConclusionView({
  17384. this.reportId,
  17385. this.diseaseName,
  17386. this.diseaseConclusion = DiseaseConclusion.NoConclusion,
  17387. });
  17388. factory ReportConclusionView.fromJson(Map<String, dynamic> map) {
  17389. return ReportConclusionView(
  17390. reportId: map['ReportId'],
  17391. diseaseName: map['DiseaseName'],
  17392. diseaseConclusion: DiseaseConclusion.values.firstWhere((e) => e.index == map['DiseaseConclusion']),
  17393. );
  17394. }
  17395. Map<String, dynamic> toJson() {
  17396. final map = Map<String, dynamic>();
  17397. if(reportId != null)
  17398. map['ReportId'] = reportId;
  17399. if(diseaseName != null)
  17400. map['DiseaseName'] = diseaseName;
  17401. map['DiseaseConclusion'] = diseaseConclusion.index;
  17402. return map;
  17403. }
  17404. }
  17405. class LiveConsultationDTO extends BaseDTO{
  17406. String? code;
  17407. UserView? doctorInfo;
  17408. UserView? expertInfo;
  17409. PatientView? patientInfo;
  17410. OrganizationView? primaryHosptial;
  17411. OrganizationView? centralHospital;
  17412. DeviceView? deviceInfo;
  17413. String? checkPoint;
  17414. ConsultationState state;
  17415. String? consultationNumber;
  17416. String? queuingNumber;
  17417. QualityType qualityType;
  17418. FollowUpVisitStatusEnum followUpVisitStatus;
  17419. bool isNeedFollowUpVisit;
  17420. EvaluateGradeEnum evaluateGrade;
  17421. ICollection<LiveConsultationFileView>? fileInfos;
  17422. ICollection<ReportConclusionView>? reportConclusionInfos;
  17423. List<DataItemDTO >? patientDatas;
  17424. OrganizationPatientTypeEnum patientType;
  17425. List<String >? scanPositions;
  17426. String? scanUserCode;
  17427. String? scanUserName;
  17428. String? operateUserCode;
  17429. String? operateUserName;
  17430. DateTime? consultationTime;
  17431. DateTime? consultationTimeEnd;
  17432. TransactionStatusEnum consultationStatus;
  17433. String? rejectReason;
  17434. String? location;
  17435. List<ConsultationMemberDTO >? consultationMembers;
  17436. String? description;
  17437. List<ConsultationReminderDTO >? consultationReminders;
  17438. String? approverCode;
  17439. ConsultationReportMode reportMode;
  17440. String? diseases;
  17441. String? primaryDiagnosis;
  17442. String? initiatorCode;
  17443. bool isEmergency;
  17444. String? emergencyCode;
  17445. SyncEvaluatesRequest? evaluates;
  17446. List<SyncFollowUpVisitRequest >? syncFollowUpVisitList;
  17447. LiveConsultationDTO({
  17448. this.code,
  17449. this.doctorInfo,
  17450. this.expertInfo,
  17451. this.patientInfo,
  17452. this.primaryHosptial,
  17453. this.centralHospital,
  17454. this.deviceInfo,
  17455. this.checkPoint,
  17456. this.state = ConsultationState.Unhandled,
  17457. this.consultationNumber,
  17458. this.queuingNumber,
  17459. this.qualityType = QualityType.None,
  17460. this.followUpVisitStatus = FollowUpVisitStatusEnum.Unknown,
  17461. this.isNeedFollowUpVisit = false,
  17462. this.evaluateGrade = EvaluateGradeEnum.UnSet,
  17463. this.fileInfos,
  17464. this.reportConclusionInfos,
  17465. this.patientDatas,
  17466. this.patientType = OrganizationPatientTypeEnum.Person,
  17467. this.scanPositions,
  17468. this.scanUserCode,
  17469. this.scanUserName,
  17470. this.operateUserCode,
  17471. this.operateUserName,
  17472. this.consultationTime,
  17473. this.consultationTimeEnd,
  17474. this.consultationStatus = TransactionStatusEnum.Applied,
  17475. this.rejectReason,
  17476. this.location,
  17477. this.consultationMembers,
  17478. this.description,
  17479. this.consultationReminders,
  17480. this.approverCode,
  17481. this.reportMode = ConsultationReportMode.ExpertReport,
  17482. this.diseases,
  17483. this.primaryDiagnosis,
  17484. this.initiatorCode,
  17485. this.isEmergency = false,
  17486. this.emergencyCode,
  17487. this.evaluates,
  17488. this.syncFollowUpVisitList,
  17489. DateTime? createTime,
  17490. DateTime? updateTime,
  17491. }) : super(
  17492. createTime: createTime,
  17493. updateTime: updateTime,
  17494. );
  17495. factory LiveConsultationDTO.fromJson(Map<String, dynamic> map) {
  17496. return LiveConsultationDTO(
  17497. code: map['Code'],
  17498. doctorInfo: map['DoctorInfo'] != null ? UserView.fromJson(map['DoctorInfo']) : null,
  17499. expertInfo: map['ExpertInfo'] != null ? UserView.fromJson(map['ExpertInfo']) : null,
  17500. patientInfo: map['PatientInfo'] != null ? PatientView.fromJson(map['PatientInfo']) : null,
  17501. primaryHosptial: map['PrimaryHosptial'] != null ? OrganizationView.fromJson(map['PrimaryHosptial']) : null,
  17502. centralHospital: map['CentralHospital'] != null ? OrganizationView.fromJson(map['CentralHospital']) : null,
  17503. deviceInfo: map['DeviceInfo'] != null ? DeviceView.fromJson(map['DeviceInfo']) : null,
  17504. checkPoint: map['CheckPoint'],
  17505. state: ConsultationState.values.firstWhere((e) => e.index == map['State']),
  17506. consultationNumber: map['ConsultationNumber'],
  17507. queuingNumber: map['QueuingNumber'],
  17508. qualityType: QualityType.values.firstWhere((e) => e.index == map['QualityType']),
  17509. followUpVisitStatus: FollowUpVisitStatusEnum.values.firstWhere((e) => e.index == map['FollowUpVisitStatus']),
  17510. isNeedFollowUpVisit: map['IsNeedFollowUpVisit'],
  17511. evaluateGrade: EvaluateGradeEnum.values.firstWhere((e) => e.index == map['EvaluateGrade']),
  17512. patientDatas: map['PatientDatas'] != null ? (map['PatientDatas'] as List).map((e)=>DataItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  17513. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  17514. scanPositions: map['ScanPositions'] != null ? map['ScanPositions'].cast<String>().toList() : null,
  17515. scanUserCode: map['ScanUserCode'],
  17516. scanUserName: map['ScanUserName'],
  17517. operateUserCode: map['OperateUserCode'],
  17518. operateUserName: map['OperateUserName'],
  17519. consultationTime: map['ConsultationTime'] != null ? DateTime.parse(map['ConsultationTime']) : null,
  17520. consultationTimeEnd: map['ConsultationTimeEnd'] != null ? DateTime.parse(map['ConsultationTimeEnd']) : null,
  17521. consultationStatus: TransactionStatusEnum.values.firstWhere((e) => e.index == map['ConsultationStatus']),
  17522. rejectReason: map['RejectReason'],
  17523. location: map['Location'],
  17524. consultationMembers: map['ConsultationMembers'] != null ? (map['ConsultationMembers'] as List).map((e)=>ConsultationMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  17525. description: map['Description'],
  17526. consultationReminders: map['ConsultationReminders'] != null ? (map['ConsultationReminders'] as List).map((e)=>ConsultationReminderDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  17527. approverCode: map['ApproverCode'],
  17528. reportMode: ConsultationReportMode.values.firstWhere((e) => e.index == map['ReportMode']),
  17529. diseases: map['Diseases'],
  17530. primaryDiagnosis: map['PrimaryDiagnosis'],
  17531. initiatorCode: map['InitiatorCode'],
  17532. isEmergency: map['IsEmergency'],
  17533. emergencyCode: map['EmergencyCode'],
  17534. evaluates: map['Evaluates'] != null ? SyncEvaluatesRequest.fromJson(map['Evaluates']) : null,
  17535. syncFollowUpVisitList: map['SyncFollowUpVisitList'] != null ? (map['SyncFollowUpVisitList'] as List).map((e)=>SyncFollowUpVisitRequest.fromJson(e as Map<String,dynamic>)).toList() : null,
  17536. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  17537. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  17538. );
  17539. }
  17540. Map<String, dynamic> toJson() {
  17541. final map = super.toJson();
  17542. if(code != null)
  17543. map['Code'] = code;
  17544. if(doctorInfo != null)
  17545. map['DoctorInfo'] = doctorInfo;
  17546. if(expertInfo != null)
  17547. map['ExpertInfo'] = expertInfo;
  17548. if(patientInfo != null)
  17549. map['PatientInfo'] = patientInfo;
  17550. if(primaryHosptial != null)
  17551. map['PrimaryHosptial'] = primaryHosptial;
  17552. if(centralHospital != null)
  17553. map['CentralHospital'] = centralHospital;
  17554. if(deviceInfo != null)
  17555. map['DeviceInfo'] = deviceInfo;
  17556. if(checkPoint != null)
  17557. map['CheckPoint'] = checkPoint;
  17558. map['State'] = state.index;
  17559. if(consultationNumber != null)
  17560. map['ConsultationNumber'] = consultationNumber;
  17561. if(queuingNumber != null)
  17562. map['QueuingNumber'] = queuingNumber;
  17563. map['QualityType'] = qualityType.index;
  17564. map['FollowUpVisitStatus'] = followUpVisitStatus.index;
  17565. map['IsNeedFollowUpVisit'] = isNeedFollowUpVisit;
  17566. map['EvaluateGrade'] = evaluateGrade.index;
  17567. if(fileInfos != null)
  17568. map['FileInfos'] = fileInfos;
  17569. if(reportConclusionInfos != null)
  17570. map['ReportConclusionInfos'] = reportConclusionInfos;
  17571. if(patientDatas != null)
  17572. map['PatientDatas'] = patientDatas;
  17573. map['PatientType'] = patientType.index;
  17574. if(scanPositions != null)
  17575. map['ScanPositions'] = scanPositions;
  17576. if(scanUserCode != null)
  17577. map['ScanUserCode'] = scanUserCode;
  17578. if(scanUserName != null)
  17579. map['ScanUserName'] = scanUserName;
  17580. if(operateUserCode != null)
  17581. map['OperateUserCode'] = operateUserCode;
  17582. if(operateUserName != null)
  17583. map['OperateUserName'] = operateUserName;
  17584. if(consultationTime != null)
  17585. map['ConsultationTime'] = JsonRpcUtils.dateFormat(consultationTime!);
  17586. if(consultationTimeEnd != null)
  17587. map['ConsultationTimeEnd'] = JsonRpcUtils.dateFormat(consultationTimeEnd!);
  17588. map['ConsultationStatus'] = consultationStatus.index;
  17589. if(rejectReason != null)
  17590. map['RejectReason'] = rejectReason;
  17591. if(location != null)
  17592. map['Location'] = location;
  17593. if(consultationMembers != null)
  17594. map['ConsultationMembers'] = consultationMembers;
  17595. if(description != null)
  17596. map['Description'] = description;
  17597. if(consultationReminders != null)
  17598. map['ConsultationReminders'] = consultationReminders;
  17599. if(approverCode != null)
  17600. map['ApproverCode'] = approverCode;
  17601. map['ReportMode'] = reportMode.index;
  17602. if(diseases != null)
  17603. map['Diseases'] = diseases;
  17604. if(primaryDiagnosis != null)
  17605. map['PrimaryDiagnosis'] = primaryDiagnosis;
  17606. if(initiatorCode != null)
  17607. map['InitiatorCode'] = initiatorCode;
  17608. map['IsEmergency'] = isEmergency;
  17609. if(emergencyCode != null)
  17610. map['EmergencyCode'] = emergencyCode;
  17611. if(evaluates != null)
  17612. map['Evaluates'] = evaluates;
  17613. if(syncFollowUpVisitList != null)
  17614. map['SyncFollowUpVisitList'] = syncFollowUpVisitList;
  17615. return map;
  17616. }
  17617. }
  17618. class SignStudentView {
  17619. String? studentCode;
  17620. String? studentName;
  17621. CourseAppearTypeEnum courseAppearType;
  17622. bool isPay;
  17623. StudentCourseStatusEnum signCourseStatus;
  17624. bool isNoSpeaking;
  17625. bool isAssistant;
  17626. List<int>? smallHeadImage;
  17627. SignStudentView({
  17628. this.studentCode,
  17629. this.studentName,
  17630. this.courseAppearType = CourseAppearTypeEnum.Unknown,
  17631. this.isPay = false,
  17632. this.signCourseStatus = StudentCourseStatusEnum.All,
  17633. this.isNoSpeaking = false,
  17634. this.isAssistant = false,
  17635. this.smallHeadImage,
  17636. });
  17637. factory SignStudentView.fromJson(Map<String, dynamic> map) {
  17638. final smallHeadImageData = map['SmallHeadImage'];
  17639. return SignStudentView(
  17640. studentCode: map['StudentCode'],
  17641. studentName: map['StudentName'],
  17642. courseAppearType: CourseAppearTypeEnum.values.firstWhere((e) => e.index == map['CourseAppearType']),
  17643. isPay: map['IsPay'],
  17644. signCourseStatus: StudentCourseStatusEnum.values.firstWhere((e) => e.index == map['SignCourseStatus']),
  17645. isNoSpeaking: map['IsNoSpeaking'],
  17646. isAssistant: map['IsAssistant'],
  17647. smallHeadImage: smallHeadImageData != null ? (smallHeadImageData as List).map((e) => e as int).toList(): null,
  17648. );
  17649. }
  17650. Map<String, dynamic> toJson() {
  17651. final map = Map<String, dynamic>();
  17652. if(studentCode != null)
  17653. map['StudentCode'] = studentCode;
  17654. if(studentName != null)
  17655. map['StudentName'] = studentName;
  17656. map['CourseAppearType'] = courseAppearType.index;
  17657. map['IsPay'] = isPay;
  17658. map['SignCourseStatus'] = signCourseStatus.index;
  17659. map['IsNoSpeaking'] = isNoSpeaking;
  17660. map['IsAssistant'] = isAssistant;
  17661. if(smallHeadImage != null)
  17662. map['SmallHeadImage'] = smallHeadImage;
  17663. return map;
  17664. }
  17665. }
  17666. class CourseExaminationQuestionView {
  17667. String? code;
  17668. String? stem;
  17669. QuestionTypeEnum questionType;
  17670. List<QuestionOptionDTO >? questionOptionList;
  17671. List<QuestionFileDTO >? fileList;
  17672. bool trueOrFalse;
  17673. double score;
  17674. CourseExaminationQuestionView({
  17675. this.code,
  17676. this.stem,
  17677. this.questionType = QuestionTypeEnum.Judge,
  17678. this.questionOptionList,
  17679. this.fileList,
  17680. this.trueOrFalse = false,
  17681. this.score = 0,
  17682. });
  17683. factory CourseExaminationQuestionView.fromJson(Map<String, dynamic> map) {
  17684. return CourseExaminationQuestionView(
  17685. code: map['Code'],
  17686. stem: map['Stem'],
  17687. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  17688. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  17689. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  17690. trueOrFalse: map['TrueOrFalse'],
  17691. score: double.parse(map['Score'].toString()),
  17692. );
  17693. }
  17694. Map<String, dynamic> toJson() {
  17695. final map = Map<String, dynamic>();
  17696. if(code != null)
  17697. map['Code'] = code;
  17698. if(stem != null)
  17699. map['Stem'] = stem;
  17700. map['QuestionType'] = questionType.index;
  17701. if(questionOptionList != null)
  17702. map['QuestionOptionList'] = questionOptionList;
  17703. if(fileList != null)
  17704. map['FileList'] = fileList;
  17705. map['TrueOrFalse'] = trueOrFalse;
  17706. map['Score'] = score;
  17707. return map;
  17708. }
  17709. }
  17710. class CourseExaminationView {
  17711. String? code;
  17712. String? name;
  17713. double totalScore;
  17714. List<CourseExaminationQuestionView >? questionList;
  17715. int submitLimitCount;
  17716. bool isRelease;
  17717. CourseExaminationTypeEnum examinationType;
  17718. DateTime? startTime;
  17719. int examDuration;
  17720. double passingScore;
  17721. CourseExaminationView({
  17722. this.code,
  17723. this.name,
  17724. this.totalScore = 0,
  17725. this.questionList,
  17726. this.submitLimitCount = 0,
  17727. this.isRelease = false,
  17728. this.examinationType = CourseExaminationTypeEnum.Practice,
  17729. this.startTime,
  17730. this.examDuration = 0,
  17731. this.passingScore = 0,
  17732. });
  17733. factory CourseExaminationView.fromJson(Map<String, dynamic> map) {
  17734. return CourseExaminationView(
  17735. code: map['Code'],
  17736. name: map['Name'],
  17737. totalScore: double.parse(map['TotalScore'].toString()),
  17738. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>CourseExaminationQuestionView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17739. submitLimitCount: map['SubmitLimitCount'],
  17740. isRelease: map['IsRelease'],
  17741. examinationType: CourseExaminationTypeEnum.values.firstWhere((e) => e.index == map['ExaminationType']),
  17742. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  17743. examDuration: map['ExamDuration'],
  17744. passingScore: double.parse(map['PassingScore'].toString()),
  17745. );
  17746. }
  17747. Map<String, dynamic> toJson() {
  17748. final map = Map<String, dynamic>();
  17749. if(code != null)
  17750. map['Code'] = code;
  17751. if(name != null)
  17752. map['Name'] = name;
  17753. map['TotalScore'] = totalScore;
  17754. if(questionList != null)
  17755. map['QuestionList'] = questionList;
  17756. map['SubmitLimitCount'] = submitLimitCount;
  17757. map['IsRelease'] = isRelease;
  17758. map['ExaminationType'] = examinationType.index;
  17759. if(startTime != null)
  17760. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  17761. map['ExamDuration'] = examDuration;
  17762. map['PassingScore'] = passingScore;
  17763. return map;
  17764. }
  17765. }
  17766. class OnlineTrainingDTO extends BaseDTO{
  17767. String? code;
  17768. String? name;
  17769. String? teacherCode;
  17770. String? teacherName;
  17771. int duration;
  17772. CourseStatusEnum status;
  17773. CourseViewRangeEnum viewRange;
  17774. Decimal? price;
  17775. String? courseIntro;
  17776. CourseAudienceTypeEnum audienceType;
  17777. String? poster;
  17778. String? creatorCode;
  17779. String? organizationCode;
  17780. DateTime? startTime;
  17781. DateTime? deadline;
  17782. DateTime? actualStartTime;
  17783. DateTime? actualEndTime;
  17784. List<CourseLabelView >? caseLabelInfos;
  17785. String? courseToken;
  17786. String? coursewareToken;
  17787. List<GroupView >? userGroupInfos;
  17788. CourseTypeEnum courseType;
  17789. List<SignStudentView >? students;
  17790. List<SignStudentView >? assistants;
  17791. List<SignStudentView >? experts;
  17792. List<CourseLabelView >? courseLabelInfos;
  17793. bool isAgentCourse;
  17794. bool isStick;
  17795. int sort;
  17796. List<CourseExaminationView >? bindExams;
  17797. List<String >? courseVideoCodes;
  17798. CourseAppearTypeEnum courseAppearType;
  17799. List<String >? courseAlbumCodes;
  17800. int playCount;
  17801. List<String >? courseMaterialCodes;
  17802. ApplyStateEnum applyState;
  17803. String? conversationId;
  17804. ICollection<ChannelDataView>? channelDatas;
  17805. AdminView? createAdmin;
  17806. ICollection<AdminView>? owners;
  17807. bool teacherOnlineState;
  17808. bool startCourseInAdvance;
  17809. List<UserView >? assistantInfos;
  17810. List<UserView >? guestInfos;
  17811. String? credentialCode;
  17812. String? courseNotice;
  17813. List<UserView >? meetingMemberInfos;
  17814. OnlineTrainingDTO({
  17815. this.code,
  17816. this.name,
  17817. this.teacherCode,
  17818. this.teacherName,
  17819. this.duration = 0,
  17820. this.status = CourseStatusEnum.Unknown,
  17821. this.viewRange = CourseViewRangeEnum.All,
  17822. this.price,
  17823. this.courseIntro,
  17824. this.audienceType = CourseAudienceTypeEnum.Unknown,
  17825. this.poster,
  17826. this.creatorCode,
  17827. this.organizationCode,
  17828. this.startTime,
  17829. this.deadline,
  17830. this.actualStartTime,
  17831. this.actualEndTime,
  17832. this.caseLabelInfos,
  17833. this.courseToken,
  17834. this.coursewareToken,
  17835. this.userGroupInfos,
  17836. this.courseType = CourseTypeEnum.Unknown,
  17837. this.students,
  17838. this.assistants,
  17839. this.experts,
  17840. this.courseLabelInfos,
  17841. this.isAgentCourse = false,
  17842. this.isStick = false,
  17843. this.sort = 0,
  17844. this.bindExams,
  17845. this.courseVideoCodes,
  17846. this.courseAppearType = CourseAppearTypeEnum.Unknown,
  17847. this.courseAlbumCodes,
  17848. this.playCount = 0,
  17849. this.courseMaterialCodes,
  17850. this.applyState = ApplyStateEnum.NotApply,
  17851. this.conversationId,
  17852. this.channelDatas,
  17853. this.createAdmin,
  17854. this.owners,
  17855. this.teacherOnlineState = false,
  17856. this.startCourseInAdvance = false,
  17857. this.assistantInfos,
  17858. this.guestInfos,
  17859. this.credentialCode,
  17860. this.courseNotice,
  17861. this.meetingMemberInfos,
  17862. DateTime? createTime,
  17863. DateTime? updateTime,
  17864. }) : super(
  17865. createTime: createTime,
  17866. updateTime: updateTime,
  17867. );
  17868. factory OnlineTrainingDTO.fromJson(Map<String, dynamic> map) {
  17869. return OnlineTrainingDTO(
  17870. code: map['Code'],
  17871. name: map['Name'],
  17872. teacherCode: map['TeacherCode'],
  17873. teacherName: map['TeacherName'],
  17874. duration: map['Duration'],
  17875. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  17876. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  17877. price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
  17878. courseIntro: map['CourseIntro'],
  17879. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  17880. poster: map['Poster'],
  17881. creatorCode: map['CreatorCode'],
  17882. organizationCode: map['OrganizationCode'],
  17883. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  17884. deadline: map['Deadline'] != null ? DateTime.parse(map['Deadline']) : null,
  17885. actualStartTime: map['ActualStartTime'] != null ? DateTime.parse(map['ActualStartTime']) : null,
  17886. actualEndTime: map['ActualEndTime'] != null ? DateTime.parse(map['ActualEndTime']) : null,
  17887. caseLabelInfos: map['CaseLabelInfos'] != null ? (map['CaseLabelInfos'] as List).map((e)=>CourseLabelView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17888. courseToken: map['CourseToken'],
  17889. coursewareToken: map['CoursewareToken'],
  17890. userGroupInfos: map['UserGroupInfos'] != null ? (map['UserGroupInfos'] as List).map((e)=>GroupView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17891. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  17892. students: map['Students'] != null ? (map['Students'] as List).map((e)=>SignStudentView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17893. assistants: map['Assistants'] != null ? (map['Assistants'] as List).map((e)=>SignStudentView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17894. experts: map['Experts'] != null ? (map['Experts'] as List).map((e)=>SignStudentView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17895. courseLabelInfos: map['CourseLabelInfos'] != null ? (map['CourseLabelInfos'] as List).map((e)=>CourseLabelView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17896. isAgentCourse: map['IsAgentCourse'],
  17897. isStick: map['IsStick'],
  17898. sort: map['Sort'],
  17899. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17900. courseVideoCodes: map['CourseVideoCodes'] != null ? map['CourseVideoCodes'].cast<String>().toList() : null,
  17901. courseAppearType: CourseAppearTypeEnum.values.firstWhere((e) => e.index == map['CourseAppearType']),
  17902. courseAlbumCodes: map['CourseAlbumCodes'] != null ? map['CourseAlbumCodes'].cast<String>().toList() : null,
  17903. playCount: map['PlayCount'],
  17904. courseMaterialCodes: map['CourseMaterialCodes'] != null ? map['CourseMaterialCodes'].cast<String>().toList() : null,
  17905. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  17906. conversationId: map['ConversationId'],
  17907. createAdmin: map['CreateAdmin'] != null ? AdminView.fromJson(map['CreateAdmin']) : null,
  17908. teacherOnlineState: map['TeacherOnlineState'],
  17909. startCourseInAdvance: map['StartCourseInAdvance'],
  17910. assistantInfos: map['AssistantInfos'] != null ? (map['AssistantInfos'] as List).map((e)=>UserView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17911. guestInfos: map['GuestInfos'] != null ? (map['GuestInfos'] as List).map((e)=>UserView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17912. credentialCode: map['CredentialCode'],
  17913. courseNotice: map['CourseNotice'],
  17914. meetingMemberInfos: map['MeetingMemberInfos'] != null ? (map['MeetingMemberInfos'] as List).map((e)=>UserView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17915. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  17916. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  17917. );
  17918. }
  17919. Map<String, dynamic> toJson() {
  17920. final map = super.toJson();
  17921. if(code != null)
  17922. map['Code'] = code;
  17923. if(name != null)
  17924. map['Name'] = name;
  17925. if(teacherCode != null)
  17926. map['TeacherCode'] = teacherCode;
  17927. if(teacherName != null)
  17928. map['TeacherName'] = teacherName;
  17929. map['Duration'] = duration;
  17930. map['Status'] = status.index;
  17931. map['ViewRange'] = viewRange.index;
  17932. if(price != null)
  17933. map['Price'] = price;
  17934. if(courseIntro != null)
  17935. map['CourseIntro'] = courseIntro;
  17936. map['AudienceType'] = audienceType.index;
  17937. if(poster != null)
  17938. map['Poster'] = poster;
  17939. if(creatorCode != null)
  17940. map['CreatorCode'] = creatorCode;
  17941. if(organizationCode != null)
  17942. map['OrganizationCode'] = organizationCode;
  17943. if(startTime != null)
  17944. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  17945. if(deadline != null)
  17946. map['Deadline'] = JsonRpcUtils.dateFormat(deadline!);
  17947. if(actualStartTime != null)
  17948. map['ActualStartTime'] = JsonRpcUtils.dateFormat(actualStartTime!);
  17949. if(actualEndTime != null)
  17950. map['ActualEndTime'] = JsonRpcUtils.dateFormat(actualEndTime!);
  17951. if(caseLabelInfos != null)
  17952. map['CaseLabelInfos'] = caseLabelInfos;
  17953. if(courseToken != null)
  17954. map['CourseToken'] = courseToken;
  17955. if(coursewareToken != null)
  17956. map['CoursewareToken'] = coursewareToken;
  17957. if(userGroupInfos != null)
  17958. map['UserGroupInfos'] = userGroupInfos;
  17959. map['CourseType'] = courseType.index;
  17960. if(students != null)
  17961. map['Students'] = students;
  17962. if(assistants != null)
  17963. map['Assistants'] = assistants;
  17964. if(experts != null)
  17965. map['Experts'] = experts;
  17966. if(courseLabelInfos != null)
  17967. map['CourseLabelInfos'] = courseLabelInfos;
  17968. map['IsAgentCourse'] = isAgentCourse;
  17969. map['IsStick'] = isStick;
  17970. map['Sort'] = sort;
  17971. if(bindExams != null)
  17972. map['BindExams'] = bindExams;
  17973. if(courseVideoCodes != null)
  17974. map['CourseVideoCodes'] = courseVideoCodes;
  17975. map['CourseAppearType'] = courseAppearType.index;
  17976. if(courseAlbumCodes != null)
  17977. map['CourseAlbumCodes'] = courseAlbumCodes;
  17978. map['PlayCount'] = playCount;
  17979. if(courseMaterialCodes != null)
  17980. map['CourseMaterialCodes'] = courseMaterialCodes;
  17981. map['ApplyState'] = applyState.index;
  17982. if(conversationId != null)
  17983. map['ConversationId'] = conversationId;
  17984. if(channelDatas != null)
  17985. map['ChannelDatas'] = channelDatas;
  17986. if(createAdmin != null)
  17987. map['CreateAdmin'] = createAdmin;
  17988. if(owners != null)
  17989. map['Owners'] = owners;
  17990. map['TeacherOnlineState'] = teacherOnlineState;
  17991. map['StartCourseInAdvance'] = startCourseInAdvance;
  17992. if(assistantInfos != null)
  17993. map['AssistantInfos'] = assistantInfos;
  17994. if(guestInfos != null)
  17995. map['GuestInfos'] = guestInfos;
  17996. if(credentialCode != null)
  17997. map['CredentialCode'] = credentialCode;
  17998. if(courseNotice != null)
  17999. map['CourseNotice'] = courseNotice;
  18000. if(meetingMemberInfos != null)
  18001. map['MeetingMemberInfos'] = meetingMemberInfos;
  18002. return map;
  18003. }
  18004. }
  18005. class OnlineVideoDTO extends BaseDTO{
  18006. String? code;
  18007. String? name;
  18008. String? creatorCode;
  18009. String? creatorName;
  18010. UploadFileTypeEnum fodderType;
  18011. bool isPublic;
  18012. CourseViewRangeEnum viewRange;
  18013. String? videoToken;
  18014. String? vodFileId;
  18015. String? poster;
  18016. int duration;
  18017. double videoSize;
  18018. int playCount;
  18019. String? srcFileToken;
  18020. String? description;
  18021. VideoImportanceEnum importance;
  18022. VideoPermissionsEnum permissions;
  18023. List<UserView >? users;
  18024. List<GroupView >? userGroups;
  18025. List<ClassView >? classInfos;
  18026. List<OnlineTrainingDTO >? courses;
  18027. List<VideoLabelEnum >? labels;
  18028. String? teachingDocumentName;
  18029. String? teachingDocument;
  18030. int realBrowsedCount;
  18031. int baseBrowsedCount;
  18032. List<UserView >? finishedUsers;
  18033. OnlineVideoDTO({
  18034. this.code,
  18035. this.name,
  18036. this.creatorCode,
  18037. this.creatorName,
  18038. this.fodderType = UploadFileTypeEnum.Unknown,
  18039. this.isPublic = false,
  18040. this.viewRange = CourseViewRangeEnum.All,
  18041. this.videoToken,
  18042. this.vodFileId,
  18043. this.poster,
  18044. this.duration = 0,
  18045. this.videoSize = 0,
  18046. this.playCount = 0,
  18047. this.srcFileToken,
  18048. this.description,
  18049. this.importance = VideoImportanceEnum.Normal,
  18050. this.permissions = VideoPermissionsEnum.Public,
  18051. this.users,
  18052. this.userGroups,
  18053. this.classInfos,
  18054. this.courses,
  18055. this.labels,
  18056. this.teachingDocumentName,
  18057. this.teachingDocument,
  18058. this.realBrowsedCount = 0,
  18059. this.baseBrowsedCount = 0,
  18060. this.finishedUsers,
  18061. DateTime? createTime,
  18062. DateTime? updateTime,
  18063. }) : super(
  18064. createTime: createTime,
  18065. updateTime: updateTime,
  18066. );
  18067. factory OnlineVideoDTO.fromJson(Map<String, dynamic> map) {
  18068. return OnlineVideoDTO(
  18069. code: map['Code'],
  18070. name: map['Name'],
  18071. creatorCode: map['CreatorCode'],
  18072. creatorName: map['CreatorName'],
  18073. fodderType: UploadFileTypeEnum.values.firstWhere((e) => e.index == map['FodderType']),
  18074. isPublic: map['IsPublic'],
  18075. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  18076. videoToken: map['VideoToken'],
  18077. vodFileId: map['VodFileId'],
  18078. poster: map['Poster'],
  18079. duration: map['Duration'],
  18080. videoSize: double.parse(map['VideoSize'].toString()),
  18081. playCount: map['PlayCount'],
  18082. srcFileToken: map['SrcFileToken'],
  18083. description: map['Description'],
  18084. importance: VideoImportanceEnum.values.firstWhere((e) => e.index == map['Importance']),
  18085. permissions: VideoPermissionsEnum.values.firstWhere((e) => e.index == map['Permissions']),
  18086. users: map['Users'] != null ? (map['Users'] as List).map((e)=>UserView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18087. userGroups: map['UserGroups'] != null ? (map['UserGroups'] as List).map((e)=>GroupView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18088. classInfos: map['ClassInfos'] != null ? (map['ClassInfos'] as List).map((e)=>ClassView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18089. courses: map['Courses'] != null ? (map['Courses'] as List).map((e)=>OnlineTrainingDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  18090. labels: map['Labels'] != null ? (map['Labels'] as List).map((e)=>VideoLabelEnum.values.firstWhere((i) => i.index == e)).toList() : null,
  18091. teachingDocumentName: map['TeachingDocumentName'],
  18092. teachingDocument: map['TeachingDocument'],
  18093. realBrowsedCount: map['RealBrowsedCount'],
  18094. baseBrowsedCount: map['BaseBrowsedCount'],
  18095. finishedUsers: map['FinishedUsers'] != null ? (map['FinishedUsers'] as List).map((e)=>UserView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18096. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  18097. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  18098. );
  18099. }
  18100. Map<String, dynamic> toJson() {
  18101. final map = super.toJson();
  18102. if(code != null)
  18103. map['Code'] = code;
  18104. if(name != null)
  18105. map['Name'] = name;
  18106. if(creatorCode != null)
  18107. map['CreatorCode'] = creatorCode;
  18108. if(creatorName != null)
  18109. map['CreatorName'] = creatorName;
  18110. map['FodderType'] = fodderType.index;
  18111. map['IsPublic'] = isPublic;
  18112. map['ViewRange'] = viewRange.index;
  18113. if(videoToken != null)
  18114. map['VideoToken'] = videoToken;
  18115. if(vodFileId != null)
  18116. map['VodFileId'] = vodFileId;
  18117. if(poster != null)
  18118. map['Poster'] = poster;
  18119. map['Duration'] = duration;
  18120. map['VideoSize'] = videoSize;
  18121. map['PlayCount'] = playCount;
  18122. if(srcFileToken != null)
  18123. map['SrcFileToken'] = srcFileToken;
  18124. if(description != null)
  18125. map['Description'] = description;
  18126. map['Importance'] = importance.index;
  18127. map['Permissions'] = permissions.index;
  18128. if(users != null)
  18129. map['Users'] = users;
  18130. if(userGroups != null)
  18131. map['UserGroups'] = userGroups;
  18132. if(classInfos != null)
  18133. map['ClassInfos'] = classInfos;
  18134. if(courses != null)
  18135. map['Courses'] = courses;
  18136. if(labels != null)
  18137. map['Labels'] = labels;
  18138. if(teachingDocumentName != null)
  18139. map['TeachingDocumentName'] = teachingDocumentName;
  18140. if(teachingDocument != null)
  18141. map['TeachingDocument'] = teachingDocument;
  18142. map['RealBrowsedCount'] = realBrowsedCount;
  18143. map['BaseBrowsedCount'] = baseBrowsedCount;
  18144. if(finishedUsers != null)
  18145. map['FinishedUsers'] = finishedUsers;
  18146. return map;
  18147. }
  18148. }
  18149. class QualifiedView {
  18150. QualifiedState qualifiedState;
  18151. QualityType qualityType;
  18152. QualifiedView({
  18153. this.qualifiedState = QualifiedState.UnSet,
  18154. this.qualityType = QualityType.None,
  18155. });
  18156. factory QualifiedView.fromJson(Map<String, dynamic> map) {
  18157. return QualifiedView(
  18158. qualifiedState: QualifiedState.values.firstWhere((e) => e.index == map['QualifiedState']),
  18159. qualityType: QualityType.values.firstWhere((e) => e.index == map['QualityType']),
  18160. );
  18161. }
  18162. Map<String, dynamic> toJson() {
  18163. final map = Map<String, dynamic>();
  18164. map['QualifiedState'] = qualifiedState.index;
  18165. map['QualityType'] = qualityType.index;
  18166. return map;
  18167. }
  18168. }
  18169. class ScreenshotView {
  18170. String? createUserCode;
  18171. String? createUserName;
  18172. String? prelDiagnosis;
  18173. String? examDoctor;
  18174. ScreenshotView({
  18175. this.createUserCode,
  18176. this.createUserName,
  18177. this.prelDiagnosis,
  18178. this.examDoctor,
  18179. });
  18180. factory ScreenshotView.fromJson(Map<String, dynamic> map) {
  18181. return ScreenshotView(
  18182. createUserCode: map['CreateUserCode'],
  18183. createUserName: map['CreateUserName'],
  18184. prelDiagnosis: map['PrelDiagnosis'],
  18185. examDoctor: map['ExamDoctor'],
  18186. );
  18187. }
  18188. Map<String, dynamic> toJson() {
  18189. final map = Map<String, dynamic>();
  18190. if(createUserCode != null)
  18191. map['CreateUserCode'] = createUserCode;
  18192. if(createUserName != null)
  18193. map['CreateUserName'] = createUserName;
  18194. if(prelDiagnosis != null)
  18195. map['PrelDiagnosis'] = prelDiagnosis;
  18196. if(examDoctor != null)
  18197. map['ExamDoctor'] = examDoctor;
  18198. return map;
  18199. }
  18200. }
  18201. class RemoteDiagnosisDTO extends BaseDTO{
  18202. String? code;
  18203. String? examId;
  18204. OrganizationView? organizationInfo;
  18205. DeviceView? deviceInfo;
  18206. PatientView? patientInfo;
  18207. ScreenshotView? screenshotInfo;
  18208. QualifiedView? qualifiedInfo;
  18209. List<DiagnosisView >? diagnosisInfos;
  18210. List<String >? shareUserCodes;
  18211. String? customDoctor;
  18212. String? customOrganzation;
  18213. String? equipmentSN;
  18214. List<RemoteDiagnosisFileView >? fileInfos;
  18215. List<String >? completedUsers;
  18216. RecordStatusEnum recordStatus;
  18217. String? creatorCode;
  18218. String? tags;
  18219. RecordCreateTypeEnum createType;
  18220. List<DataItemDTO >? patientDataInfo;
  18221. List<PatientInfoExt >? patientInfoExtList;
  18222. String? patientType;
  18223. List<String >? readUsers;
  18224. List<String >? associatedExamCodes;
  18225. RemoteDiagnosisDTO({
  18226. this.code,
  18227. this.examId,
  18228. this.organizationInfo,
  18229. this.deviceInfo,
  18230. this.patientInfo,
  18231. this.screenshotInfo,
  18232. this.qualifiedInfo,
  18233. this.diagnosisInfos,
  18234. this.shareUserCodes,
  18235. this.customDoctor,
  18236. this.customOrganzation,
  18237. this.equipmentSN,
  18238. this.fileInfos,
  18239. this.completedUsers,
  18240. this.recordStatus = RecordStatusEnum.NotScanned,
  18241. this.creatorCode,
  18242. this.tags,
  18243. this.createType = RecordCreateTypeEnum.Reservation,
  18244. this.patientDataInfo,
  18245. this.patientInfoExtList,
  18246. this.patientType,
  18247. this.readUsers,
  18248. this.associatedExamCodes,
  18249. DateTime? createTime,
  18250. DateTime? updateTime,
  18251. }) : super(
  18252. createTime: createTime,
  18253. updateTime: updateTime,
  18254. );
  18255. factory RemoteDiagnosisDTO.fromJson(Map<String, dynamic> map) {
  18256. return RemoteDiagnosisDTO(
  18257. code: map['Code'],
  18258. examId: map['ExamId'],
  18259. organizationInfo: map['OrganizationInfo'] != null ? OrganizationView.fromJson(map['OrganizationInfo']) : null,
  18260. deviceInfo: map['DeviceInfo'] != null ? DeviceView.fromJson(map['DeviceInfo']) : null,
  18261. patientInfo: map['PatientInfo'] != null ? PatientView.fromJson(map['PatientInfo']) : null,
  18262. screenshotInfo: map['ScreenshotInfo'] != null ? ScreenshotView.fromJson(map['ScreenshotInfo']) : null,
  18263. qualifiedInfo: map['QualifiedInfo'] != null ? QualifiedView.fromJson(map['QualifiedInfo']) : null,
  18264. diagnosisInfos: map['DiagnosisInfos'] != null ? (map['DiagnosisInfos'] as List).map((e)=>DiagnosisView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18265. shareUserCodes: map['ShareUserCodes'] != null ? map['ShareUserCodes'].cast<String>().toList() : null,
  18266. customDoctor: map['CustomDoctor'],
  18267. customOrganzation: map['CustomOrganzation'],
  18268. equipmentSN: map['EquipmentSN'],
  18269. fileInfos: map['FileInfos'] != null ? (map['FileInfos'] as List).map((e)=>RemoteDiagnosisFileView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18270. completedUsers: map['CompletedUsers'] != null ? map['CompletedUsers'].cast<String>().toList() : null,
  18271. recordStatus: RecordStatusEnum.values.firstWhere((e) => e.index == map['RecordStatus']),
  18272. creatorCode: map['CreatorCode'],
  18273. tags: map['Tags'],
  18274. createType: RecordCreateTypeEnum.values.firstWhere((e) => e.index == map['CreateType']),
  18275. patientDataInfo: map['PatientDataInfo'] != null ? (map['PatientDataInfo'] as List).map((e)=>DataItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  18276. patientInfoExtList: map['PatientInfoExtList'] != null ? (map['PatientInfoExtList'] as List).map((e)=>PatientInfoExt.fromJson(e as Map<String,dynamic>)).toList() : null,
  18277. patientType: map['PatientType'],
  18278. readUsers: map['ReadUsers'] != null ? map['ReadUsers'].cast<String>().toList() : null,
  18279. associatedExamCodes: map['AssociatedExamCodes'] != null ? map['AssociatedExamCodes'].cast<String>().toList() : null,
  18280. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  18281. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  18282. );
  18283. }
  18284. Map<String, dynamic> toJson() {
  18285. final map = super.toJson();
  18286. if(code != null)
  18287. map['Code'] = code;
  18288. if(examId != null)
  18289. map['ExamId'] = examId;
  18290. if(organizationInfo != null)
  18291. map['OrganizationInfo'] = organizationInfo;
  18292. if(deviceInfo != null)
  18293. map['DeviceInfo'] = deviceInfo;
  18294. if(patientInfo != null)
  18295. map['PatientInfo'] = patientInfo;
  18296. if(screenshotInfo != null)
  18297. map['ScreenshotInfo'] = screenshotInfo;
  18298. if(qualifiedInfo != null)
  18299. map['QualifiedInfo'] = qualifiedInfo;
  18300. if(diagnosisInfos != null)
  18301. map['DiagnosisInfos'] = diagnosisInfos;
  18302. if(shareUserCodes != null)
  18303. map['ShareUserCodes'] = shareUserCodes;
  18304. if(customDoctor != null)
  18305. map['CustomDoctor'] = customDoctor;
  18306. if(customOrganzation != null)
  18307. map['CustomOrganzation'] = customOrganzation;
  18308. if(equipmentSN != null)
  18309. map['EquipmentSN'] = equipmentSN;
  18310. if(fileInfos != null)
  18311. map['FileInfos'] = fileInfos;
  18312. if(completedUsers != null)
  18313. map['CompletedUsers'] = completedUsers;
  18314. map['RecordStatus'] = recordStatus.index;
  18315. if(creatorCode != null)
  18316. map['CreatorCode'] = creatorCode;
  18317. if(tags != null)
  18318. map['Tags'] = tags;
  18319. map['CreateType'] = createType.index;
  18320. if(patientDataInfo != null)
  18321. map['PatientDataInfo'] = patientDataInfo;
  18322. if(patientInfoExtList != null)
  18323. map['PatientInfoExtList'] = patientInfoExtList;
  18324. if(patientType != null)
  18325. map['PatientType'] = patientType;
  18326. if(readUsers != null)
  18327. map['ReadUsers'] = readUsers;
  18328. if(associatedExamCodes != null)
  18329. map['AssociatedExamCodes'] = associatedExamCodes;
  18330. return map;
  18331. }
  18332. }
  18333. class ReportImageInfo2 {
  18334. String? name;
  18335. ImageTypeEnum type;
  18336. String? examDataId;
  18337. ReportImageInfo2({
  18338. this.name,
  18339. this.type = ImageTypeEnum.Local,
  18340. this.examDataId,
  18341. });
  18342. factory ReportImageInfo2.fromJson(Map<String, dynamic> map) {
  18343. return ReportImageInfo2(
  18344. name: map['Name'],
  18345. type: ImageTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  18346. examDataId: map['ExamDataId'],
  18347. );
  18348. }
  18349. Map<String, dynamic> toJson() {
  18350. final map = Map<String, dynamic>();
  18351. if(name != null)
  18352. map['Name'] = name;
  18353. map['Type'] = type.index;
  18354. if(examDataId != null)
  18355. map['ExamDataId'] = examDataId;
  18356. return map;
  18357. }
  18358. }
  18359. class CustomLabelView {
  18360. String? name;
  18361. String? code;
  18362. String? description;
  18363. String? fatherCode;
  18364. CustomLabelTypeEnum labelType;
  18365. bool isShow;
  18366. List<String >? userIds;
  18367. CustomLabelView({
  18368. this.name,
  18369. this.code,
  18370. this.description,
  18371. this.fatherCode,
  18372. this.labelType = CustomLabelTypeEnum.Group,
  18373. this.isShow = false,
  18374. this.userIds,
  18375. });
  18376. factory CustomLabelView.fromJson(Map<String, dynamic> map) {
  18377. return CustomLabelView(
  18378. name: map['Name'],
  18379. code: map['Code'],
  18380. description: map['Description'],
  18381. fatherCode: map['FatherCode'],
  18382. labelType: CustomLabelTypeEnum.values.firstWhere((e) => e.index == map['LabelType']),
  18383. isShow: map['IsShow'],
  18384. userIds: map['UserIds'] != null ? map['UserIds'].cast<String>().toList() : null,
  18385. );
  18386. }
  18387. Map<String, dynamic> toJson() {
  18388. final map = Map<String, dynamic>();
  18389. if(name != null)
  18390. map['Name'] = name;
  18391. if(code != null)
  18392. map['Code'] = code;
  18393. if(description != null)
  18394. map['Description'] = description;
  18395. if(fatherCode != null)
  18396. map['FatherCode'] = fatherCode;
  18397. map['LabelType'] = labelType.index;
  18398. map['IsShow'] = isShow;
  18399. if(userIds != null)
  18400. map['UserIds'] = userIds;
  18401. return map;
  18402. }
  18403. }
  18404. class QualityControlScoreItemView {
  18405. int sort;
  18406. double score;
  18407. QualityControlScoreItemView({
  18408. this.sort = 0,
  18409. this.score = 0,
  18410. });
  18411. factory QualityControlScoreItemView.fromJson(Map<String, dynamic> map) {
  18412. return QualityControlScoreItemView(
  18413. sort: map['Sort'],
  18414. score: double.parse(map['Score'].toString()),
  18415. );
  18416. }
  18417. Map<String, dynamic> toJson() {
  18418. final map = Map<String, dynamic>();
  18419. map['Sort'] = sort;
  18420. map['Score'] = score;
  18421. return map;
  18422. }
  18423. }
  18424. class QualityControlDataView {
  18425. String? controlPersonId;
  18426. String? controlPersonName;
  18427. String? opinion;
  18428. double score;
  18429. List<QualityControlScoreItemView >? scoreItems;
  18430. DateTime? controlTime;
  18431. QualityControlDataView({
  18432. this.controlPersonId,
  18433. this.controlPersonName,
  18434. this.opinion,
  18435. this.score = 0,
  18436. this.scoreItems,
  18437. this.controlTime,
  18438. });
  18439. factory QualityControlDataView.fromJson(Map<String, dynamic> map) {
  18440. return QualityControlDataView(
  18441. controlPersonId: map['ControlPersonId'],
  18442. controlPersonName: map['ControlPersonName'],
  18443. opinion: map['Opinion'],
  18444. score: double.parse(map['Score'].toString()),
  18445. scoreItems: map['ScoreItems'] != null ? (map['ScoreItems'] as List).map((e)=>QualityControlScoreItemView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18446. controlTime: map['ControlTime'] != null ? DateTime.parse(map['ControlTime']) : null,
  18447. );
  18448. }
  18449. Map<String, dynamic> toJson() {
  18450. final map = Map<String, dynamic>();
  18451. if(controlPersonId != null)
  18452. map['ControlPersonId'] = controlPersonId;
  18453. if(controlPersonName != null)
  18454. map['ControlPersonName'] = controlPersonName;
  18455. if(opinion != null)
  18456. map['Opinion'] = opinion;
  18457. map['Score'] = score;
  18458. if(scoreItems != null)
  18459. map['ScoreItems'] = scoreItems;
  18460. if(controlTime != null)
  18461. map['ControlTime'] = JsonRpcUtils.dateFormat(controlTime!);
  18462. return map;
  18463. }
  18464. }
  18465. class ReportInfoResultDTO extends BaseDTO{
  18466. String? code;
  18467. String? organizationCode;
  18468. String? organizationName;
  18469. String? recordCode;
  18470. String? reportUserCode;
  18471. String? reportUserName;
  18472. DeviceView? deviceInfo;
  18473. String? patientCode;
  18474. String? patientId;
  18475. String? reportTemplateJson;
  18476. String? reportDatasJson;
  18477. String? patientName;
  18478. List<String >? reportLabels;
  18479. List<String >? platformLabels;
  18480. List<String >? diagnosisLabels;
  18481. DiagnosisOrganEnum reportOrgan;
  18482. List<ReportPreviewDTO >? reportPreviewList;
  18483. String? referralRecordCode;
  18484. ReportTypeEnum reportType;
  18485. String? elementCollectionJson;
  18486. String? measureElementCollectionJson;
  18487. String? patientPerfPhysician;
  18488. String? patientRefPhysician;
  18489. ICollection<ReportImageInfo2>? previewImages;
  18490. ICollection<CustomLabelView>? customLabels;
  18491. QualifiedState qualifiedState;
  18492. QualityType qualityType;
  18493. String? reportPreviewPdf;
  18494. ICollection<QualityControlDataView>? qualityControlDatas;
  18495. ReportInfoResultDTO({
  18496. this.code,
  18497. this.organizationCode,
  18498. this.organizationName,
  18499. this.recordCode,
  18500. this.reportUserCode,
  18501. this.reportUserName,
  18502. this.deviceInfo,
  18503. this.patientCode,
  18504. this.patientId,
  18505. this.reportTemplateJson,
  18506. this.reportDatasJson,
  18507. this.patientName,
  18508. this.reportLabels,
  18509. this.platformLabels,
  18510. this.diagnosisLabels,
  18511. this.reportOrgan = DiagnosisOrganEnum.Null,
  18512. this.reportPreviewList,
  18513. this.referralRecordCode,
  18514. this.reportType = ReportTypeEnum.RemoteDiagnosis,
  18515. this.elementCollectionJson,
  18516. this.measureElementCollectionJson,
  18517. this.patientPerfPhysician,
  18518. this.patientRefPhysician,
  18519. this.previewImages,
  18520. this.customLabels,
  18521. this.qualifiedState = QualifiedState.UnSet,
  18522. this.qualityType = QualityType.None,
  18523. this.reportPreviewPdf,
  18524. this.qualityControlDatas,
  18525. DateTime? createTime,
  18526. DateTime? updateTime,
  18527. }) : super(
  18528. createTime: createTime,
  18529. updateTime: updateTime,
  18530. );
  18531. factory ReportInfoResultDTO.fromJson(Map<String, dynamic> map) {
  18532. return ReportInfoResultDTO(
  18533. code: map['Code'],
  18534. organizationCode: map['OrganizationCode'],
  18535. organizationName: map['OrganizationName'],
  18536. recordCode: map['RecordCode'],
  18537. reportUserCode: map['ReportUserCode'],
  18538. reportUserName: map['ReportUserName'],
  18539. deviceInfo: map['DeviceInfo'] != null ? DeviceView.fromJson(map['DeviceInfo']) : null,
  18540. patientCode: map['PatientCode'],
  18541. patientId: map['PatientId'],
  18542. reportTemplateJson: map['ReportTemplateJson'],
  18543. reportDatasJson: map['ReportDatasJson'],
  18544. patientName: map['PatientName'],
  18545. reportLabels: map['ReportLabels'] != null ? map['ReportLabels'].cast<String>().toList() : null,
  18546. platformLabels: map['PlatformLabels'] != null ? map['PlatformLabels'].cast<String>().toList() : null,
  18547. diagnosisLabels: map['DiagnosisLabels'] != null ? map['DiagnosisLabels'].cast<String>().toList() : null,
  18548. reportOrgan: DiagnosisOrganEnum.values.firstWhere((e) => e.index == map['ReportOrgan']),
  18549. reportPreviewList: map['ReportPreviewList'] != null ? (map['ReportPreviewList'] as List).map((e)=>ReportPreviewDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  18550. referralRecordCode: map['ReferralRecordCode'],
  18551. reportType: ReportTypeEnum.values.firstWhere((e) => e.index == map['ReportType']),
  18552. elementCollectionJson: map['ElementCollectionJson'],
  18553. measureElementCollectionJson: map['MeasureElementCollectionJson'],
  18554. patientPerfPhysician: map['PatientPerfPhysician'],
  18555. patientRefPhysician: map['PatientRefPhysician'],
  18556. qualifiedState: QualifiedState.values.firstWhere((e) => e.index == map['QualifiedState']),
  18557. qualityType: QualityType.values.firstWhere((e) => e.index == map['QualityType']),
  18558. reportPreviewPdf: map['ReportPreviewPdf'],
  18559. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  18560. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  18561. );
  18562. }
  18563. Map<String, dynamic> toJson() {
  18564. final map = super.toJson();
  18565. if(code != null)
  18566. map['Code'] = code;
  18567. if(organizationCode != null)
  18568. map['OrganizationCode'] = organizationCode;
  18569. if(organizationName != null)
  18570. map['OrganizationName'] = organizationName;
  18571. if(recordCode != null)
  18572. map['RecordCode'] = recordCode;
  18573. if(reportUserCode != null)
  18574. map['ReportUserCode'] = reportUserCode;
  18575. if(reportUserName != null)
  18576. map['ReportUserName'] = reportUserName;
  18577. if(deviceInfo != null)
  18578. map['DeviceInfo'] = deviceInfo;
  18579. if(patientCode != null)
  18580. map['PatientCode'] = patientCode;
  18581. if(patientId != null)
  18582. map['PatientId'] = patientId;
  18583. if(reportTemplateJson != null)
  18584. map['ReportTemplateJson'] = reportTemplateJson;
  18585. if(reportDatasJson != null)
  18586. map['ReportDatasJson'] = reportDatasJson;
  18587. if(patientName != null)
  18588. map['PatientName'] = patientName;
  18589. if(reportLabels != null)
  18590. map['ReportLabels'] = reportLabels;
  18591. if(platformLabels != null)
  18592. map['PlatformLabels'] = platformLabels;
  18593. if(diagnosisLabels != null)
  18594. map['DiagnosisLabels'] = diagnosisLabels;
  18595. map['ReportOrgan'] = reportOrgan.index;
  18596. if(reportPreviewList != null)
  18597. map['ReportPreviewList'] = reportPreviewList;
  18598. if(referralRecordCode != null)
  18599. map['ReferralRecordCode'] = referralRecordCode;
  18600. map['ReportType'] = reportType.index;
  18601. if(elementCollectionJson != null)
  18602. map['ElementCollectionJson'] = elementCollectionJson;
  18603. if(measureElementCollectionJson != null)
  18604. map['MeasureElementCollectionJson'] = measureElementCollectionJson;
  18605. if(patientPerfPhysician != null)
  18606. map['PatientPerfPhysician'] = patientPerfPhysician;
  18607. if(patientRefPhysician != null)
  18608. map['PatientRefPhysician'] = patientRefPhysician;
  18609. if(previewImages != null)
  18610. map['PreviewImages'] = previewImages;
  18611. if(customLabels != null)
  18612. map['CustomLabels'] = customLabels;
  18613. map['QualifiedState'] = qualifiedState.index;
  18614. map['QualityType'] = qualityType.index;
  18615. if(reportPreviewPdf != null)
  18616. map['ReportPreviewPdf'] = reportPreviewPdf;
  18617. if(qualityControlDatas != null)
  18618. map['QualityControlDatas'] = qualityControlDatas;
  18619. return map;
  18620. }
  18621. }
  18622. class TeacherView extends UserView{
  18623. String? introduction;
  18624. List<int>? smallAvatar;
  18625. TeacherView({
  18626. this.introduction,
  18627. this.smallAvatar,
  18628. String? code,
  18629. String? name,
  18630. String? organizationCode,
  18631. String? organizationName,
  18632. }) : super(
  18633. code: code,
  18634. name: name,
  18635. organizationCode: organizationCode,
  18636. organizationName: organizationName,
  18637. );
  18638. factory TeacherView.fromJson(Map<String, dynamic> map) {
  18639. final smallAvatarData = map['SmallAvatar'];
  18640. return TeacherView(
  18641. introduction: map['Introduction'],
  18642. smallAvatar: smallAvatarData != null ? (smallAvatarData as List).map((e) => e as int).toList(): null,
  18643. code: map['Code'],
  18644. name: map['Name'],
  18645. organizationCode: map['OrganizationCode'],
  18646. organizationName: map['OrganizationName'],
  18647. );
  18648. }
  18649. Map<String, dynamic> toJson() {
  18650. final map = super.toJson();
  18651. if(introduction != null)
  18652. map['Introduction'] = introduction;
  18653. if(smallAvatar != null)
  18654. map['SmallAvatar'] = smallAvatar;
  18655. return map;
  18656. }
  18657. }
  18658. class AudienceView extends UserView{
  18659. int totalMinutes;
  18660. List<GroupView >? groupInfos;
  18661. AudienceView({
  18662. this.totalMinutes = 0,
  18663. this.groupInfos,
  18664. String? code,
  18665. String? name,
  18666. String? organizationCode,
  18667. String? organizationName,
  18668. }) : super(
  18669. code: code,
  18670. name: name,
  18671. organizationCode: organizationCode,
  18672. organizationName: organizationName,
  18673. );
  18674. factory AudienceView.fromJson(Map<String, dynamic> map) {
  18675. return AudienceView(
  18676. totalMinutes: map['TotalMinutes'],
  18677. groupInfos: map['GroupInfos'] != null ? (map['GroupInfos'] as List).map((e)=>GroupView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18678. code: map['Code'],
  18679. name: map['Name'],
  18680. organizationCode: map['OrganizationCode'],
  18681. organizationName: map['OrganizationName'],
  18682. );
  18683. }
  18684. Map<String, dynamic> toJson() {
  18685. final map = super.toJson();
  18686. map['TotalMinutes'] = totalMinutes;
  18687. if(groupInfos != null)
  18688. map['GroupInfos'] = groupInfos;
  18689. return map;
  18690. }
  18691. }
  18692. class CourseAlbumDetailDTO extends CourseAlbumDTO{
  18693. List<CourseInfoDetailDTO >? courseInfos;
  18694. int studentCount;
  18695. CourseAlbumDetailDTO({
  18696. this.courseInfos,
  18697. this.studentCount = 0,
  18698. String? cover,
  18699. List<String >? courseCodes,
  18700. String? introduction,
  18701. List<String >? courseLabelCodes,
  18702. String? teacherCode,
  18703. String? teacherName,
  18704. CourseViewRangeEnum viewRange = CourseViewRangeEnum.All,
  18705. Decimal? price,
  18706. DateTime? createTime,
  18707. int sort = 0,
  18708. bool isStick = false,
  18709. String? code,
  18710. String? name,
  18711. }) : super(
  18712. cover: cover,
  18713. courseCodes: courseCodes,
  18714. introduction: introduction,
  18715. courseLabelCodes: courseLabelCodes,
  18716. teacherCode: teacherCode,
  18717. teacherName: teacherName,
  18718. viewRange: viewRange,
  18719. price: price,
  18720. createTime: createTime,
  18721. sort: sort,
  18722. isStick: isStick,
  18723. code: code,
  18724. name: name,
  18725. );
  18726. factory CourseAlbumDetailDTO.fromJson(Map<String, dynamic> map) {
  18727. return CourseAlbumDetailDTO(
  18728. courseInfos: map['CourseInfos'] != null ? (map['CourseInfos'] as List).map((e)=>CourseInfoDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  18729. studentCount: map['StudentCount'],
  18730. cover: map['Cover'],
  18731. courseCodes: map['CourseCodes'] != null ? map['CourseCodes'].cast<String>().toList() : null,
  18732. introduction: map['Introduction'],
  18733. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  18734. teacherCode: map['TeacherCode'],
  18735. teacherName: map['TeacherName'],
  18736. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  18737. price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
  18738. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  18739. sort: map['Sort'],
  18740. isStick: map['IsStick'],
  18741. code: map['Code'],
  18742. name: map['Name'],
  18743. );
  18744. }
  18745. Map<String, dynamic> toJson() {
  18746. final map = super.toJson();
  18747. if(courseInfos != null)
  18748. map['CourseInfos'] = courseInfos;
  18749. map['StudentCount'] = studentCount;
  18750. return map;
  18751. }
  18752. }
  18753. class BaseCoursePageDTO {
  18754. String? code;
  18755. String? name;
  18756. String? cover;
  18757. DateTime? startTime;
  18758. DateTime? createTime;
  18759. int playCount;
  18760. CourseStatusEnum status;
  18761. String? teacherName;
  18762. CourseTypeEnum courseType;
  18763. CourseAudienceTypeEnum audienceType;
  18764. int duration;
  18765. Decimal? price;
  18766. List<BaseUserGroupDTO >? userGroupList;
  18767. List<BaseCourseAlbumDTO >? courseAlbumList;
  18768. BaseCoursePageDTO({
  18769. this.code,
  18770. this.name,
  18771. this.cover,
  18772. this.startTime,
  18773. this.createTime,
  18774. this.playCount = 0,
  18775. this.status = CourseStatusEnum.Unknown,
  18776. this.teacherName,
  18777. this.courseType = CourseTypeEnum.Unknown,
  18778. this.audienceType = CourseAudienceTypeEnum.Unknown,
  18779. this.duration = 0,
  18780. this.price,
  18781. this.userGroupList,
  18782. this.courseAlbumList,
  18783. });
  18784. factory BaseCoursePageDTO.fromJson(Map<String, dynamic> map) {
  18785. return BaseCoursePageDTO(
  18786. code: map['Code'],
  18787. name: map['Name'],
  18788. cover: map['Cover'],
  18789. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  18790. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  18791. playCount: map['PlayCount'],
  18792. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  18793. teacherName: map['TeacherName'],
  18794. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  18795. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  18796. duration: map['Duration'],
  18797. price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
  18798. userGroupList: map['UserGroupList'] != null ? (map['UserGroupList'] as List).map((e)=>BaseUserGroupDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  18799. courseAlbumList: map['CourseAlbumList'] != null ? (map['CourseAlbumList'] as List).map((e)=>BaseCourseAlbumDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  18800. );
  18801. }
  18802. Map<String, dynamic> toJson() {
  18803. final map = Map<String, dynamic>();
  18804. if(code != null)
  18805. map['Code'] = code;
  18806. if(name != null)
  18807. map['Name'] = name;
  18808. if(cover != null)
  18809. map['Cover'] = cover;
  18810. if(startTime != null)
  18811. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  18812. if(createTime != null)
  18813. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  18814. map['PlayCount'] = playCount;
  18815. map['Status'] = status.index;
  18816. if(teacherName != null)
  18817. map['TeacherName'] = teacherName;
  18818. map['CourseType'] = courseType.index;
  18819. map['AudienceType'] = audienceType.index;
  18820. map['Duration'] = duration;
  18821. if(price != null)
  18822. map['Price'] = price;
  18823. if(userGroupList != null)
  18824. map['UserGroupList'] = userGroupList;
  18825. if(courseAlbumList != null)
  18826. map['CourseAlbumList'] = courseAlbumList;
  18827. return map;
  18828. }
  18829. }
  18830. class CoursePageDTO extends BaseCoursePageDTO{
  18831. CoursePageDTO({
  18832. String? code,
  18833. String? name,
  18834. String? cover,
  18835. DateTime? startTime,
  18836. DateTime? createTime,
  18837. int playCount = 0,
  18838. CourseStatusEnum status = CourseStatusEnum.Unknown,
  18839. String? teacherName,
  18840. CourseTypeEnum courseType = CourseTypeEnum.Unknown,
  18841. CourseAudienceTypeEnum audienceType = CourseAudienceTypeEnum.Unknown,
  18842. int duration = 0,
  18843. Decimal? price,
  18844. List<BaseUserGroupDTO >? userGroupList,
  18845. List<BaseCourseAlbumDTO >? courseAlbumList,
  18846. }) : super(
  18847. code: code,
  18848. name: name,
  18849. cover: cover,
  18850. startTime: startTime,
  18851. createTime: createTime,
  18852. playCount: playCount,
  18853. status: status,
  18854. teacherName: teacherName,
  18855. courseType: courseType,
  18856. audienceType: audienceType,
  18857. duration: duration,
  18858. price: price,
  18859. userGroupList: userGroupList,
  18860. courseAlbumList: courseAlbumList,
  18861. );
  18862. factory CoursePageDTO.fromJson(Map<String, dynamic> map) {
  18863. return CoursePageDTO(
  18864. code: map['Code'],
  18865. name: map['Name'],
  18866. cover: map['Cover'],
  18867. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  18868. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  18869. playCount: map['PlayCount'],
  18870. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  18871. teacherName: map['TeacherName'],
  18872. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  18873. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  18874. duration: map['Duration'],
  18875. price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
  18876. userGroupList: map['UserGroupList'] != null ? (map['UserGroupList'] as List).map((e)=>BaseUserGroupDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  18877. courseAlbumList: map['CourseAlbumList'] != null ? (map['CourseAlbumList'] as List).map((e)=>BaseCourseAlbumDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  18878. );
  18879. }
  18880. Map<String, dynamic> toJson() {
  18881. final map = super.toJson();
  18882. return map;
  18883. }
  18884. }
  18885. class MyCoursePageDTO {
  18886. String? code;
  18887. String? courseOrAlbumCode;
  18888. CourseAppearTypeEnum courseAppearType;
  18889. CourseTypeEnum courseType;
  18890. String? name;
  18891. String? teacherName;
  18892. List<String >? courseLabelNames;
  18893. bool isPay;
  18894. DateTime? createTime;
  18895. CourseStatusEnum status;
  18896. CourseViewRangeEnum viewRange;
  18897. DateTime? startTime;
  18898. int playCount;
  18899. MyCoursePageDTO({
  18900. this.code,
  18901. this.courseOrAlbumCode,
  18902. this.courseAppearType = CourseAppearTypeEnum.Unknown,
  18903. this.courseType = CourseTypeEnum.Unknown,
  18904. this.name,
  18905. this.teacherName,
  18906. this.courseLabelNames,
  18907. this.isPay = false,
  18908. this.createTime,
  18909. this.status = CourseStatusEnum.Unknown,
  18910. this.viewRange = CourseViewRangeEnum.All,
  18911. this.startTime,
  18912. this.playCount = 0,
  18913. });
  18914. factory MyCoursePageDTO.fromJson(Map<String, dynamic> map) {
  18915. return MyCoursePageDTO(
  18916. code: map['Code'],
  18917. courseOrAlbumCode: map['CourseOrAlbumCode'],
  18918. courseAppearType: CourseAppearTypeEnum.values.firstWhere((e) => e.index == map['CourseAppearType']),
  18919. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  18920. name: map['Name'],
  18921. teacherName: map['TeacherName'],
  18922. courseLabelNames: map['CourseLabelNames'] != null ? map['CourseLabelNames'].cast<String>().toList() : null,
  18923. isPay: map['IsPay'],
  18924. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  18925. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  18926. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  18927. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  18928. playCount: map['PlayCount'],
  18929. );
  18930. }
  18931. Map<String, dynamic> toJson() {
  18932. final map = Map<String, dynamic>();
  18933. if(code != null)
  18934. map['Code'] = code;
  18935. if(courseOrAlbumCode != null)
  18936. map['CourseOrAlbumCode'] = courseOrAlbumCode;
  18937. map['CourseAppearType'] = courseAppearType.index;
  18938. map['CourseType'] = courseType.index;
  18939. if(name != null)
  18940. map['Name'] = name;
  18941. if(teacherName != null)
  18942. map['TeacherName'] = teacherName;
  18943. if(courseLabelNames != null)
  18944. map['CourseLabelNames'] = courseLabelNames;
  18945. map['IsPay'] = isPay;
  18946. if(createTime != null)
  18947. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  18948. map['Status'] = status.index;
  18949. map['ViewRange'] = viewRange.index;
  18950. if(startTime != null)
  18951. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  18952. map['PlayCount'] = playCount;
  18953. return map;
  18954. }
  18955. }
  18956. class StudentInCoursePageDTO extends BaseCoursePageDTO{
  18957. StudentCourseStatusEnum signCourseStatus;
  18958. bool isPay;
  18959. StudentInCoursePageDTO({
  18960. this.signCourseStatus = StudentCourseStatusEnum.All,
  18961. this.isPay = false,
  18962. String? code,
  18963. String? name,
  18964. String? cover,
  18965. DateTime? startTime,
  18966. DateTime? createTime,
  18967. int playCount = 0,
  18968. CourseStatusEnum status = CourseStatusEnum.Unknown,
  18969. String? teacherName,
  18970. CourseTypeEnum courseType = CourseTypeEnum.Unknown,
  18971. CourseAudienceTypeEnum audienceType = CourseAudienceTypeEnum.Unknown,
  18972. int duration = 0,
  18973. Decimal? price,
  18974. List<BaseUserGroupDTO >? userGroupList,
  18975. List<BaseCourseAlbumDTO >? courseAlbumList,
  18976. }) : super(
  18977. code: code,
  18978. name: name,
  18979. cover: cover,
  18980. startTime: startTime,
  18981. createTime: createTime,
  18982. playCount: playCount,
  18983. status: status,
  18984. teacherName: teacherName,
  18985. courseType: courseType,
  18986. audienceType: audienceType,
  18987. duration: duration,
  18988. price: price,
  18989. userGroupList: userGroupList,
  18990. courseAlbumList: courseAlbumList,
  18991. );
  18992. factory StudentInCoursePageDTO.fromJson(Map<String, dynamic> map) {
  18993. return StudentInCoursePageDTO(
  18994. signCourseStatus: StudentCourseStatusEnum.values.firstWhere((e) => e.index == map['SignCourseStatus']),
  18995. isPay: map['IsPay'],
  18996. code: map['Code'],
  18997. name: map['Name'],
  18998. cover: map['Cover'],
  18999. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  19000. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  19001. playCount: map['PlayCount'],
  19002. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  19003. teacherName: map['TeacherName'],
  19004. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  19005. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  19006. duration: map['Duration'],
  19007. price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
  19008. userGroupList: map['UserGroupList'] != null ? (map['UserGroupList'] as List).map((e)=>BaseUserGroupDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  19009. courseAlbumList: map['CourseAlbumList'] != null ? (map['CourseAlbumList'] as List).map((e)=>BaseCourseAlbumDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  19010. );
  19011. }
  19012. Map<String, dynamic> toJson() {
  19013. final map = super.toJson();
  19014. map['SignCourseStatus'] = signCourseStatus.index;
  19015. map['IsPay'] = isPay;
  19016. return map;
  19017. }
  19018. }
  19019. class SignStudentDTO {
  19020. String? studentCode;
  19021. String? courseOrAlbumCode;
  19022. CourseAppearTypeEnum courseAppearType;
  19023. bool isPay;
  19024. StudentCourseStatusEnum signCourseStatus;
  19025. SignStudentDTO({
  19026. this.studentCode,
  19027. this.courseOrAlbumCode,
  19028. this.courseAppearType = CourseAppearTypeEnum.Unknown,
  19029. this.isPay = false,
  19030. this.signCourseStatus = StudentCourseStatusEnum.All,
  19031. });
  19032. factory SignStudentDTO.fromJson(Map<String, dynamic> map) {
  19033. return SignStudentDTO(
  19034. studentCode: map['StudentCode'],
  19035. courseOrAlbumCode: map['CourseOrAlbumCode'],
  19036. courseAppearType: CourseAppearTypeEnum.values.firstWhere((e) => e.index == map['CourseAppearType']),
  19037. isPay: map['IsPay'],
  19038. signCourseStatus: StudentCourseStatusEnum.values.firstWhere((e) => e.index == map['SignCourseStatus']),
  19039. );
  19040. }
  19041. Map<String, dynamic> toJson() {
  19042. final map = Map<String, dynamic>();
  19043. if(studentCode != null)
  19044. map['StudentCode'] = studentCode;
  19045. if(courseOrAlbumCode != null)
  19046. map['CourseOrAlbumCode'] = courseOrAlbumCode;
  19047. map['CourseAppearType'] = courseAppearType.index;
  19048. map['IsPay'] = isPay;
  19049. map['SignCourseStatus'] = signCourseStatus.index;
  19050. return map;
  19051. }
  19052. }
  19053. class BoardPointDTO {
  19054. double x;
  19055. double y;
  19056. BoardPointDTO({
  19057. this.x = 0,
  19058. this.y = 0,
  19059. });
  19060. factory BoardPointDTO.fromJson(Map<String, dynamic> map) {
  19061. return BoardPointDTO(
  19062. x: double.parse(map['X'].toString()),
  19063. y: double.parse(map['Y'].toString()),
  19064. );
  19065. }
  19066. Map<String, dynamic> toJson() {
  19067. final map = Map<String, dynamic>();
  19068. map['X'] = x;
  19069. map['Y'] = y;
  19070. return map;
  19071. }
  19072. }
  19073. class ConsultationExpertDTO extends UserBaseDTO{
  19074. ConsultationExpertDTO({
  19075. String? phone,
  19076. String? email,
  19077. String? userCode,
  19078. String? userName,
  19079. String? fullName,
  19080. String? headImageUrl,
  19081. String? displayName,
  19082. DateTime? createTime,
  19083. DateTime? updateTime,
  19084. }) : super(
  19085. phone: phone,
  19086. email: email,
  19087. userCode: userCode,
  19088. userName: userName,
  19089. fullName: fullName,
  19090. headImageUrl: headImageUrl,
  19091. displayName: displayName,
  19092. createTime: createTime,
  19093. updateTime: updateTime,
  19094. );
  19095. factory ConsultationExpertDTO.fromJson(Map<String, dynamic> map) {
  19096. return ConsultationExpertDTO(
  19097. phone: map['Phone'],
  19098. email: map['Email'],
  19099. userCode: map['UserCode'],
  19100. userName: map['UserName'],
  19101. fullName: map['FullName'],
  19102. headImageUrl: map['HeadImageUrl'],
  19103. displayName: map['DisplayName'],
  19104. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  19105. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  19106. );
  19107. }
  19108. Map<String, dynamic> toJson() {
  19109. final map = super.toJson();
  19110. return map;
  19111. }
  19112. }
  19113. class AdminStatisticRecordDTO extends BaseDTO{
  19114. String? adminStatisticRecordCode;
  19115. String? adminStatisticCode;
  19116. String? adminStatisticName;
  19117. String? adminCode;
  19118. String? serverHost;
  19119. DateTime? lastestUpdateTime;
  19120. DateTime? nextHandleTime;
  19121. List<String >? xAxisDatas;
  19122. List<List<double> >? yAxisDatas;
  19123. List<StatisticInfoDTO >? children;
  19124. String? statisticJsonData;
  19125. StatisticsPlatformEnum statisticsPlatform;
  19126. AdminStatisticRecordDTO({
  19127. this.adminStatisticRecordCode,
  19128. this.adminStatisticCode,
  19129. this.adminStatisticName,
  19130. this.adminCode,
  19131. this.serverHost,
  19132. this.lastestUpdateTime,
  19133. this.nextHandleTime,
  19134. this.xAxisDatas,
  19135. this.yAxisDatas,
  19136. this.children,
  19137. this.statisticJsonData,
  19138. this.statisticsPlatform = StatisticsPlatformEnum.Management,
  19139. DateTime? createTime,
  19140. DateTime? updateTime,
  19141. }) : super(
  19142. createTime: createTime,
  19143. updateTime: updateTime,
  19144. );
  19145. factory AdminStatisticRecordDTO.fromJson(Map<String, dynamic> map) {
  19146. return AdminStatisticRecordDTO(
  19147. adminStatisticRecordCode: map['AdminStatisticRecordCode'],
  19148. adminStatisticCode: map['AdminStatisticCode'],
  19149. adminStatisticName: map['AdminStatisticName'],
  19150. adminCode: map['AdminCode'],
  19151. serverHost: map['ServerHost'],
  19152. lastestUpdateTime: map['LastestUpdateTime'] != null ? DateTime.parse(map['LastestUpdateTime']) : null,
  19153. nextHandleTime: map['NextHandleTime'] != null ? DateTime.parse(map['NextHandleTime']) : null,
  19154. xAxisDatas: map['XAxisDatas'] != null ? map['XAxisDatas'].cast<String>().toList() : null,
  19155. yAxisDatas: map['YAxisDatas'] != null ? map['YAxisDatas'].cast<List<double>>().toList() : null,
  19156. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  19157. statisticJsonData: map['StatisticJsonData'],
  19158. statisticsPlatform: StatisticsPlatformEnum.values.firstWhere((e) => e.index == map['StatisticsPlatform']),
  19159. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  19160. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  19161. );
  19162. }
  19163. Map<String, dynamic> toJson() {
  19164. final map = super.toJson();
  19165. if(adminStatisticRecordCode != null)
  19166. map['AdminStatisticRecordCode'] = adminStatisticRecordCode;
  19167. if(adminStatisticCode != null)
  19168. map['AdminStatisticCode'] = adminStatisticCode;
  19169. if(adminStatisticName != null)
  19170. map['AdminStatisticName'] = adminStatisticName;
  19171. if(adminCode != null)
  19172. map['AdminCode'] = adminCode;
  19173. if(serverHost != null)
  19174. map['ServerHost'] = serverHost;
  19175. if(lastestUpdateTime != null)
  19176. map['LastestUpdateTime'] = JsonRpcUtils.dateFormat(lastestUpdateTime!);
  19177. if(nextHandleTime != null)
  19178. map['NextHandleTime'] = JsonRpcUtils.dateFormat(nextHandleTime!);
  19179. if(xAxisDatas != null)
  19180. map['XAxisDatas'] = xAxisDatas;
  19181. if(yAxisDatas != null)
  19182. map['YAxisDatas'] = yAxisDatas;
  19183. if(children != null)
  19184. map['Children'] = children;
  19185. if(statisticJsonData != null)
  19186. map['StatisticJsonData'] = statisticJsonData;
  19187. map['StatisticsPlatform'] = statisticsPlatform.index;
  19188. return map;
  19189. }
  19190. }
  19191. class CMSStatisticRecordDTO extends AdminStatisticRecordDTO{
  19192. CMSStatisticRecordDTO({
  19193. String? statisticJsonData,
  19194. String? adminStatisticRecordCode,
  19195. String? adminStatisticCode,
  19196. String? adminStatisticName,
  19197. String? adminCode,
  19198. String? serverHost,
  19199. DateTime? lastestUpdateTime,
  19200. DateTime? nextHandleTime,
  19201. List<String >? xAxisDatas,
  19202. List<List<double> >? yAxisDatas,
  19203. List<StatisticInfoDTO >? children,
  19204. StatisticsPlatformEnum statisticsPlatform = StatisticsPlatformEnum.Management,
  19205. DateTime? createTime,
  19206. DateTime? updateTime,
  19207. }) : super(
  19208. adminStatisticRecordCode: adminStatisticRecordCode,
  19209. adminStatisticCode: adminStatisticCode,
  19210. adminStatisticName: adminStatisticName,
  19211. adminCode: adminCode,
  19212. serverHost: serverHost,
  19213. lastestUpdateTime: lastestUpdateTime,
  19214. nextHandleTime: nextHandleTime,
  19215. xAxisDatas: xAxisDatas,
  19216. yAxisDatas: yAxisDatas,
  19217. children: children,
  19218. statisticJsonData: statisticJsonData,
  19219. statisticsPlatform: statisticsPlatform,
  19220. createTime: createTime,
  19221. updateTime: updateTime,
  19222. );
  19223. factory CMSStatisticRecordDTO.fromJson(Map<String, dynamic> map) {
  19224. return CMSStatisticRecordDTO(
  19225. statisticJsonData: map['StatisticJsonData'],
  19226. adminStatisticRecordCode: map['AdminStatisticRecordCode'],
  19227. adminStatisticCode: map['AdminStatisticCode'],
  19228. adminStatisticName: map['AdminStatisticName'],
  19229. adminCode: map['AdminCode'],
  19230. serverHost: map['ServerHost'],
  19231. lastestUpdateTime: map['LastestUpdateTime'] != null ? DateTime.parse(map['LastestUpdateTime']) : null,
  19232. nextHandleTime: map['NextHandleTime'] != null ? DateTime.parse(map['NextHandleTime']) : null,
  19233. xAxisDatas: map['XAxisDatas'] != null ? map['XAxisDatas'].cast<String>().toList() : null,
  19234. yAxisDatas: map['YAxisDatas'] != null ? map['YAxisDatas'].cast<List<double>>().toList() : null,
  19235. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  19236. statisticsPlatform: StatisticsPlatformEnum.values.firstWhere((e) => e.index == map['StatisticsPlatform']),
  19237. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  19238. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  19239. );
  19240. }
  19241. Map<String, dynamic> toJson() {
  19242. final map = super.toJson();
  19243. return map;
  19244. }
  19245. }
  19246. class CMSTemplateDTO extends BaseDTO{
  19247. String? cMSTemplateCode;
  19248. String? cMSTemplateName;
  19249. CMSTemplateStatusTypeEnum cMSTemplateStateType;
  19250. String? cMSTemplateJson;
  19251. bool isDefault;
  19252. List<String >? organizationCodes;
  19253. String? cMSBgColor;
  19254. String? cMSBgImg;
  19255. bool isShowTop;
  19256. String? cMSBorderColor;
  19257. int cMSBorderShadow;
  19258. CMSTemplateDTO({
  19259. this.cMSTemplateCode,
  19260. this.cMSTemplateName,
  19261. this.cMSTemplateStateType = CMSTemplateStatusTypeEnum.UnPublished,
  19262. this.cMSTemplateJson,
  19263. this.isDefault = false,
  19264. this.organizationCodes,
  19265. this.cMSBgColor,
  19266. this.cMSBgImg,
  19267. this.isShowTop = false,
  19268. this.cMSBorderColor,
  19269. this.cMSBorderShadow = 0,
  19270. DateTime? createTime,
  19271. DateTime? updateTime,
  19272. }) : super(
  19273. createTime: createTime,
  19274. updateTime: updateTime,
  19275. );
  19276. factory CMSTemplateDTO.fromJson(Map<String, dynamic> map) {
  19277. return CMSTemplateDTO(
  19278. cMSTemplateCode: map['CMSTemplateCode'],
  19279. cMSTemplateName: map['CMSTemplateName'],
  19280. cMSTemplateStateType: CMSTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['CMSTemplateStateType']),
  19281. cMSTemplateJson: map['CMSTemplateJson'],
  19282. isDefault: map['IsDefault'],
  19283. organizationCodes: map['OrganizationCodes'] != null ? map['OrganizationCodes'].cast<String>().toList() : null,
  19284. cMSBgColor: map['CMSBgColor'],
  19285. cMSBgImg: map['CMSBgImg'],
  19286. isShowTop: map['IsShowTop'],
  19287. cMSBorderColor: map['CMSBorderColor'],
  19288. cMSBorderShadow: map['CMSBorderShadow'],
  19289. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  19290. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  19291. );
  19292. }
  19293. Map<String, dynamic> toJson() {
  19294. final map = super.toJson();
  19295. if(cMSTemplateCode != null)
  19296. map['CMSTemplateCode'] = cMSTemplateCode;
  19297. if(cMSTemplateName != null)
  19298. map['CMSTemplateName'] = cMSTemplateName;
  19299. map['CMSTemplateStateType'] = cMSTemplateStateType.index;
  19300. if(cMSTemplateJson != null)
  19301. map['CMSTemplateJson'] = cMSTemplateJson;
  19302. map['IsDefault'] = isDefault;
  19303. if(organizationCodes != null)
  19304. map['OrganizationCodes'] = organizationCodes;
  19305. if(cMSBgColor != null)
  19306. map['CMSBgColor'] = cMSBgColor;
  19307. if(cMSBgImg != null)
  19308. map['CMSBgImg'] = cMSBgImg;
  19309. map['IsShowTop'] = isShowTop;
  19310. if(cMSBorderColor != null)
  19311. map['CMSBorderColor'] = cMSBorderColor;
  19312. map['CMSBorderShadow'] = cMSBorderShadow;
  19313. return map;
  19314. }
  19315. }
  19316. class StatisticAnnouncesDTO {
  19317. AnnouncementTypeEnum announcementType;
  19318. DateTime? contentTime;
  19319. String? content;
  19320. CMSMessageStatusEnum status;
  19321. StatisticAnnouncesDTO({
  19322. this.announcementType = AnnouncementTypeEnum.Broadcast,
  19323. this.contentTime,
  19324. this.content,
  19325. this.status = CMSMessageStatusEnum.UnRead,
  19326. });
  19327. factory StatisticAnnouncesDTO.fromJson(Map<String, dynamic> map) {
  19328. return StatisticAnnouncesDTO(
  19329. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  19330. contentTime: map['ContentTime'] != null ? DateTime.parse(map['ContentTime']) : null,
  19331. content: map['Content'],
  19332. status: CMSMessageStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  19333. );
  19334. }
  19335. Map<String, dynamic> toJson() {
  19336. final map = Map<String, dynamic>();
  19337. map['AnnouncementType'] = announcementType.index;
  19338. if(contentTime != null)
  19339. map['ContentTime'] = JsonRpcUtils.dateFormat(contentTime!);
  19340. if(content != null)
  19341. map['Content'] = content;
  19342. map['Status'] = status.index;
  19343. return map;
  19344. }
  19345. }
  19346. class StatisticDevicesDTO {
  19347. String? imgUrl;
  19348. String? name;
  19349. String? transferUrl;
  19350. StatisticDevicesDTO({
  19351. this.imgUrl,
  19352. this.name,
  19353. this.transferUrl,
  19354. });
  19355. factory StatisticDevicesDTO.fromJson(Map<String, dynamic> map) {
  19356. return StatisticDevicesDTO(
  19357. imgUrl: map['ImgUrl'],
  19358. name: map['Name'],
  19359. transferUrl: map['TransferUrl'],
  19360. );
  19361. }
  19362. Map<String, dynamic> toJson() {
  19363. final map = Map<String, dynamic>();
  19364. if(imgUrl != null)
  19365. map['ImgUrl'] = imgUrl;
  19366. if(name != null)
  19367. map['Name'] = name;
  19368. if(transferUrl != null)
  19369. map['TransferUrl'] = transferUrl;
  19370. return map;
  19371. }
  19372. }
  19373. class StatisticDiagnosisDataDTO {
  19374. String? organizationCode;
  19375. DateTime? createTime;
  19376. int totalCount;
  19377. BusinessModuleEnum businessType;
  19378. StatisticDiagnosisDataDTO({
  19379. this.organizationCode,
  19380. this.createTime,
  19381. this.totalCount = 0,
  19382. this.businessType = BusinessModuleEnum.RemoteDiagnosis,
  19383. });
  19384. factory StatisticDiagnosisDataDTO.fromJson(Map<String, dynamic> map) {
  19385. return StatisticDiagnosisDataDTO(
  19386. organizationCode: map['OrganizationCode'],
  19387. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  19388. totalCount: map['TotalCount'],
  19389. businessType: BusinessModuleEnum.values.firstWhere((e) => e.index == map['BusinessType']),
  19390. );
  19391. }
  19392. Map<String, dynamic> toJson() {
  19393. final map = Map<String, dynamic>();
  19394. if(organizationCode != null)
  19395. map['OrganizationCode'] = organizationCode;
  19396. if(createTime != null)
  19397. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  19398. map['TotalCount'] = totalCount;
  19399. map['BusinessType'] = businessType.index;
  19400. return map;
  19401. }
  19402. }
  19403. class StatisticDownloadDTO {
  19404. String? imgUrl;
  19405. String? transferUrl;
  19406. StatisticDownloadDTO({
  19407. this.imgUrl,
  19408. this.transferUrl,
  19409. });
  19410. factory StatisticDownloadDTO.fromJson(Map<String, dynamic> map) {
  19411. return StatisticDownloadDTO(
  19412. imgUrl: map['ImgUrl'],
  19413. transferUrl: map['TransferUrl'],
  19414. );
  19415. }
  19416. Map<String, dynamic> toJson() {
  19417. final map = Map<String, dynamic>();
  19418. if(imgUrl != null)
  19419. map['ImgUrl'] = imgUrl;
  19420. if(transferUrl != null)
  19421. map['TransferUrl'] = transferUrl;
  19422. return map;
  19423. }
  19424. }
  19425. class StatisticMessagesDTO {
  19426. String? content;
  19427. DateTime? time;
  19428. String? transferUrl;
  19429. CMSMessageStatusEnum status;
  19430. StatisticMessagesDTO({
  19431. this.content,
  19432. this.time,
  19433. this.transferUrl,
  19434. this.status = CMSMessageStatusEnum.UnRead,
  19435. });
  19436. factory StatisticMessagesDTO.fromJson(Map<String, dynamic> map) {
  19437. return StatisticMessagesDTO(
  19438. content: map['Content'],
  19439. time: map['Time'] != null ? DateTime.parse(map['Time']) : null,
  19440. transferUrl: map['TransferUrl'],
  19441. status: CMSMessageStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  19442. );
  19443. }
  19444. Map<String, dynamic> toJson() {
  19445. final map = Map<String, dynamic>();
  19446. if(content != null)
  19447. map['Content'] = content;
  19448. if(time != null)
  19449. map['Time'] = JsonRpcUtils.dateFormat(time!);
  19450. if(transferUrl != null)
  19451. map['TransferUrl'] = transferUrl;
  19452. map['Status'] = status.index;
  19453. return map;
  19454. }
  19455. }
  19456. class StatisticMessageInfoDTO extends StatisticMessagesDTO{
  19457. String? userCode;
  19458. String? messageCode;
  19459. StatisticMessageInfoDTO({
  19460. this.userCode,
  19461. this.messageCode,
  19462. String? content,
  19463. DateTime? time,
  19464. String? transferUrl,
  19465. CMSMessageStatusEnum status = CMSMessageStatusEnum.UnRead,
  19466. }) : super(
  19467. content: content,
  19468. time: time,
  19469. transferUrl: transferUrl,
  19470. status: status,
  19471. );
  19472. factory StatisticMessageInfoDTO.fromJson(Map<String, dynamic> map) {
  19473. return StatisticMessageInfoDTO(
  19474. userCode: map['UserCode'],
  19475. messageCode: map['MessageCode'],
  19476. content: map['Content'],
  19477. time: map['Time'] != null ? DateTime.parse(map['Time']) : null,
  19478. transferUrl: map['TransferUrl'],
  19479. status: CMSMessageStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  19480. );
  19481. }
  19482. Map<String, dynamic> toJson() {
  19483. final map = super.toJson();
  19484. if(userCode != null)
  19485. map['UserCode'] = userCode;
  19486. if(messageCode != null)
  19487. map['MessageCode'] = messageCode;
  19488. return map;
  19489. }
  19490. }
  19491. class StatisticMyPendingDTO {
  19492. String? title;
  19493. double rate;
  19494. StatisticMyPendingDTO({
  19495. this.title,
  19496. this.rate = 0,
  19497. });
  19498. factory StatisticMyPendingDTO.fromJson(Map<String, dynamic> map) {
  19499. return StatisticMyPendingDTO(
  19500. title: map['Title'],
  19501. rate: double.parse(map['Rate'].toString()),
  19502. );
  19503. }
  19504. Map<String, dynamic> toJson() {
  19505. final map = Map<String, dynamic>();
  19506. if(title != null)
  19507. map['Title'] = title;
  19508. map['Rate'] = rate;
  19509. return map;
  19510. }
  19511. }
  19512. class StatisticMyStandingDTO {
  19513. String? title;
  19514. int data;
  19515. String? unit;
  19516. String? transferUrl;
  19517. StatisticMyStandingDTO({
  19518. this.title,
  19519. this.data = 0,
  19520. this.unit,
  19521. this.transferUrl,
  19522. });
  19523. factory StatisticMyStandingDTO.fromJson(Map<String, dynamic> map) {
  19524. return StatisticMyStandingDTO(
  19525. title: map['Title'],
  19526. data: map['Data'],
  19527. unit: map['Unit'],
  19528. transferUrl: map['TransferUrl'],
  19529. );
  19530. }
  19531. Map<String, dynamic> toJson() {
  19532. final map = Map<String, dynamic>();
  19533. if(title != null)
  19534. map['Title'] = title;
  19535. map['Data'] = data;
  19536. if(unit != null)
  19537. map['Unit'] = unit;
  19538. if(transferUrl != null)
  19539. map['TransferUrl'] = transferUrl;
  19540. return map;
  19541. }
  19542. }
  19543. class StatisticPlatActivityDTO {
  19544. String? imgUrl;
  19545. String? transferUrl;
  19546. StatisticPlatActivityDTO({
  19547. this.imgUrl,
  19548. this.transferUrl,
  19549. });
  19550. factory StatisticPlatActivityDTO.fromJson(Map<String, dynamic> map) {
  19551. return StatisticPlatActivityDTO(
  19552. imgUrl: map['ImgUrl'],
  19553. transferUrl: map['TransferUrl'],
  19554. );
  19555. }
  19556. Map<String, dynamic> toJson() {
  19557. final map = Map<String, dynamic>();
  19558. if(imgUrl != null)
  19559. map['ImgUrl'] = imgUrl;
  19560. if(transferUrl != null)
  19561. map['TransferUrl'] = transferUrl;
  19562. return map;
  19563. }
  19564. }
  19565. class StatisticRealtimeDataDTO {
  19566. DateTime? createTime;
  19567. String? organizationCode;
  19568. String? organizationName;
  19569. String? doctorCode;
  19570. String? doctorName;
  19571. RecordStatusEnum status;
  19572. StatisticRealtimeDataDTO({
  19573. this.createTime,
  19574. this.organizationCode,
  19575. this.organizationName,
  19576. this.doctorCode,
  19577. this.doctorName,
  19578. this.status = RecordStatusEnum.NotScanned,
  19579. });
  19580. factory StatisticRealtimeDataDTO.fromJson(Map<String, dynamic> map) {
  19581. return StatisticRealtimeDataDTO(
  19582. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  19583. organizationCode: map['OrganizationCode'],
  19584. organizationName: map['OrganizationName'],
  19585. doctorCode: map['DoctorCode'],
  19586. doctorName: map['DoctorName'],
  19587. status: RecordStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  19588. );
  19589. }
  19590. Map<String, dynamic> toJson() {
  19591. final map = Map<String, dynamic>();
  19592. if(createTime != null)
  19593. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  19594. if(organizationCode != null)
  19595. map['OrganizationCode'] = organizationCode;
  19596. if(organizationName != null)
  19597. map['OrganizationName'] = organizationName;
  19598. if(doctorCode != null)
  19599. map['DoctorCode'] = doctorCode;
  19600. if(doctorName != null)
  19601. map['DoctorName'] = doctorName;
  19602. map['Status'] = status.index;
  19603. return map;
  19604. }
  19605. }
  19606. class StatisticSubmittedReportsDTO {
  19607. String? organizationCode;
  19608. String? organizationName;
  19609. int totalCount;
  19610. StatisticSubmittedReportsDTO({
  19611. this.organizationCode,
  19612. this.organizationName,
  19613. this.totalCount = 0,
  19614. });
  19615. factory StatisticSubmittedReportsDTO.fromJson(Map<String, dynamic> map) {
  19616. return StatisticSubmittedReportsDTO(
  19617. organizationCode: map['OrganizationCode'],
  19618. organizationName: map['OrganizationName'],
  19619. totalCount: map['TotalCount'],
  19620. );
  19621. }
  19622. Map<String, dynamic> toJson() {
  19623. final map = Map<String, dynamic>();
  19624. if(organizationCode != null)
  19625. map['OrganizationCode'] = organizationCode;
  19626. if(organizationName != null)
  19627. map['OrganizationName'] = organizationName;
  19628. map['TotalCount'] = totalCount;
  19629. return map;
  19630. }
  19631. }
  19632. class StatisticUpdateCourseDTO {
  19633. String? title;
  19634. String? teacher;
  19635. String? thumbnail;
  19636. String? transferUrl;
  19637. StatisticUpdateCourseDTO({
  19638. this.title,
  19639. this.teacher,
  19640. this.thumbnail,
  19641. this.transferUrl,
  19642. });
  19643. factory StatisticUpdateCourseDTO.fromJson(Map<String, dynamic> map) {
  19644. return StatisticUpdateCourseDTO(
  19645. title: map['Title'],
  19646. teacher: map['Teacher'],
  19647. thumbnail: map['Thumbnail'],
  19648. transferUrl: map['TransferUrl'],
  19649. );
  19650. }
  19651. Map<String, dynamic> toJson() {
  19652. final map = Map<String, dynamic>();
  19653. if(title != null)
  19654. map['Title'] = title;
  19655. if(teacher != null)
  19656. map['Teacher'] = teacher;
  19657. if(thumbnail != null)
  19658. map['Thumbnail'] = thumbnail;
  19659. if(transferUrl != null)
  19660. map['TransferUrl'] = transferUrl;
  19661. return map;
  19662. }
  19663. }
  19664. class BaseFeatureItemDTO extends BaseFeatureItemBaseDTO<BaseFeatureItemDTO>{
  19665. BaseFeatureItemDTO(
  19666. );
  19667. factory BaseFeatureItemDTO.fromJson(Map<String, dynamic> map) {
  19668. return BaseFeatureItemDTO(
  19669. );
  19670. }
  19671. Map<String, dynamic> toJson() {
  19672. final map = super.toJson();
  19673. return map;
  19674. }
  19675. }
  19676. class ArrowCommentItemDTO {
  19677. ArrowOrientation arrowOrientation;
  19678. String? text;
  19679. ArrowCommentItemDTO({
  19680. this.arrowOrientation = ArrowOrientation.Down,
  19681. this.text,
  19682. });
  19683. factory ArrowCommentItemDTO.fromJson(Map<String, dynamic> map) {
  19684. return ArrowCommentItemDTO(
  19685. arrowOrientation: ArrowOrientation.values.firstWhere((e) => e.index == map['ArrowOrientation']),
  19686. text: map['Text'],
  19687. );
  19688. }
  19689. Map<String, dynamic> toJson() {
  19690. final map = Map<String, dynamic>();
  19691. map['ArrowOrientation'] = arrowOrientation.index;
  19692. if(text != null)
  19693. map['Text'] = text;
  19694. return map;
  19695. }
  19696. }
  19697. class UserDefinedCommentsDTO {
  19698. String? userId;
  19699. List<UserDefinedCommentDataDTO >? commentItems;
  19700. UserDefinedCommentsDTO({
  19701. this.userId,
  19702. this.commentItems,
  19703. });
  19704. factory UserDefinedCommentsDTO.fromJson(Map<String, dynamic> map) {
  19705. return UserDefinedCommentsDTO(
  19706. userId: map['UserId'],
  19707. commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>UserDefinedCommentDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  19708. );
  19709. }
  19710. Map<String, dynamic> toJson() {
  19711. final map = Map<String, dynamic>();
  19712. if(userId != null)
  19713. map['UserId'] = userId;
  19714. if(commentItems != null)
  19715. map['CommentItems'] = commentItems;
  19716. return map;
  19717. }
  19718. }
  19719. class FunctionalityInfo {
  19720. String? functionalityName;
  19721. FunctionalityStatusEnum functionalityStatus;
  19722. FunctionalityInfo({
  19723. this.functionalityName,
  19724. this.functionalityStatus = FunctionalityStatusEnum.DemoMode,
  19725. });
  19726. factory FunctionalityInfo.fromJson(Map<String, dynamic> map) {
  19727. return FunctionalityInfo(
  19728. functionalityName: map['FunctionalityName'],
  19729. functionalityStatus: FunctionalityStatusEnum.values.firstWhere((e) => e.index == map['FunctionalityStatus']),
  19730. );
  19731. }
  19732. Map<String, dynamic> toJson() {
  19733. final map = Map<String, dynamic>();
  19734. if(functionalityName != null)
  19735. map['FunctionalityName'] = functionalityName;
  19736. map['FunctionalityStatus'] = functionalityStatus.index;
  19737. return map;
  19738. }
  19739. }
  19740. class AdminStatisticDTO extends BaseDTO{
  19741. String? adminStatisticCode;
  19742. String? name;
  19743. String? description;
  19744. String? intervalSetting;
  19745. bool enabled;
  19746. String? handleClass;
  19747. String? serverHost;
  19748. AdminStatisticDTO({
  19749. this.adminStatisticCode,
  19750. this.name,
  19751. this.description,
  19752. this.intervalSetting,
  19753. this.enabled = false,
  19754. this.handleClass,
  19755. this.serverHost,
  19756. DateTime? createTime,
  19757. DateTime? updateTime,
  19758. }) : super(
  19759. createTime: createTime,
  19760. updateTime: updateTime,
  19761. );
  19762. factory AdminStatisticDTO.fromJson(Map<String, dynamic> map) {
  19763. return AdminStatisticDTO(
  19764. adminStatisticCode: map['AdminStatisticCode'],
  19765. name: map['Name'],
  19766. description: map['Description'],
  19767. intervalSetting: map['IntervalSetting'],
  19768. enabled: map['Enabled'],
  19769. handleClass: map['HandleClass'],
  19770. serverHost: map['ServerHost'],
  19771. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  19772. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  19773. );
  19774. }
  19775. Map<String, dynamic> toJson() {
  19776. final map = super.toJson();
  19777. if(adminStatisticCode != null)
  19778. map['AdminStatisticCode'] = adminStatisticCode;
  19779. if(name != null)
  19780. map['Name'] = name;
  19781. if(description != null)
  19782. map['Description'] = description;
  19783. if(intervalSetting != null)
  19784. map['IntervalSetting'] = intervalSetting;
  19785. map['Enabled'] = enabled;
  19786. if(handleClass != null)
  19787. map['HandleClass'] = handleClass;
  19788. if(serverHost != null)
  19789. map['ServerHost'] = serverHost;
  19790. return map;
  19791. }
  19792. }
  19793. class AdminFeatureItemDTO extends BaseFeatureItemBaseDTO<AdminFeatureItemDTO>{
  19794. AdminFeatureItemDTO(
  19795. );
  19796. factory AdminFeatureItemDTO.fromJson(Map<String, dynamic> map) {
  19797. return AdminFeatureItemDTO(
  19798. );
  19799. }
  19800. Map<String, dynamic> toJson() {
  19801. final map = super.toJson();
  19802. return map;
  19803. }
  19804. }
  19805. class AdminAuthorityGroupDTO extends BaseDTO{
  19806. String? adminGroupCode;
  19807. String? description;
  19808. List<String >? adminCodes;
  19809. List<String >? features;
  19810. String? createAdmin;
  19811. AdminAuthorityGroupDTO({
  19812. this.adminGroupCode,
  19813. this.description,
  19814. this.adminCodes,
  19815. this.features,
  19816. this.createAdmin,
  19817. DateTime? createTime,
  19818. DateTime? updateTime,
  19819. }) : super(
  19820. createTime: createTime,
  19821. updateTime: updateTime,
  19822. );
  19823. factory AdminAuthorityGroupDTO.fromJson(Map<String, dynamic> map) {
  19824. return AdminAuthorityGroupDTO(
  19825. adminGroupCode: map['AdminGroupCode'],
  19826. description: map['Description'],
  19827. adminCodes: map['AdminCodes'] != null ? map['AdminCodes'].cast<String>().toList() : null,
  19828. features: map['Features'] != null ? map['Features'].cast<String>().toList() : null,
  19829. createAdmin: map['CreateAdmin'],
  19830. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  19831. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  19832. );
  19833. }
  19834. Map<String, dynamic> toJson() {
  19835. final map = super.toJson();
  19836. if(adminGroupCode != null)
  19837. map['AdminGroupCode'] = adminGroupCode;
  19838. if(description != null)
  19839. map['Description'] = description;
  19840. if(adminCodes != null)
  19841. map['AdminCodes'] = adminCodes;
  19842. if(features != null)
  19843. map['Features'] = features;
  19844. if(createAdmin != null)
  19845. map['CreateAdmin'] = createAdmin;
  19846. return map;
  19847. }
  19848. }