other.m.dart 592 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189
  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 'report.m.dart';
  13. import 'education.m.dart';
  14. import 'connect.m.dart';
  15. import 'appletAPI.m.dart';
  16. import 'aIDiagnosis.m.dart';
  17. import 'chatMessage.m.dart';
  18. import 'storage.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. }
  50. return map;
  51. }
  52. }
  53. class GenerateRoomUrlResult {
  54. String? rtmpUrl;
  55. String? rtmpPushUrl;
  56. String? hlsUrl;
  57. String? flvUrl;
  58. GenerateRoomUrlResult({
  59. this.rtmpUrl,
  60. this.rtmpPushUrl,
  61. this.hlsUrl,
  62. this.flvUrl,
  63. });
  64. factory GenerateRoomUrlResult.fromJson(Map<String, dynamic> map) {
  65. return GenerateRoomUrlResult(
  66. rtmpUrl: map['RtmpUrl'],
  67. rtmpPushUrl: map['RtmpPushUrl'],
  68. hlsUrl: map['HlsUrl'],
  69. flvUrl: map['FlvUrl'],
  70. );
  71. }
  72. Map<String, dynamic> toJson() {
  73. final map = Map<String, dynamic>();
  74. if(rtmpUrl != null) {
  75. map['RtmpUrl'] = rtmpUrl;
  76. }
  77. if(rtmpPushUrl != null) {
  78. map['RtmpPushUrl'] = rtmpPushUrl;
  79. }
  80. if(hlsUrl != null) {
  81. map['HlsUrl'] = hlsUrl;
  82. }
  83. if(flvUrl != null) {
  84. map['FlvUrl'] = flvUrl;
  85. }
  86. return map;
  87. }
  88. }
  89. class GetRoomIdRequest {
  90. String? uniqueId;
  91. GetRoomIdRequest({
  92. this.uniqueId,
  93. });
  94. factory GetRoomIdRequest.fromJson(Map<String, dynamic> map) {
  95. return GetRoomIdRequest(
  96. uniqueId: map['UniqueId'],
  97. );
  98. }
  99. Map<String, dynamic> toJson() {
  100. final map = Map<String, dynamic>();
  101. if(uniqueId != null) {
  102. map['UniqueId'] = uniqueId;
  103. }
  104. return map;
  105. }
  106. }
  107. class GetRoomIdResult {
  108. int roomId;
  109. GetRoomIdResult({
  110. this.roomId = 0,
  111. });
  112. factory GetRoomIdResult.fromJson(Map<String, dynamic> map) {
  113. return GetRoomIdResult(
  114. roomId: map['RoomId'],
  115. );
  116. }
  117. Map<String, dynamic> toJson() {
  118. final map = Map<String, dynamic>();
  119. map['RoomId'] = roomId;
  120. return map;
  121. }
  122. }
  123. class GetRtcSettingRequest {
  124. GetRtcSettingRequest();
  125. factory GetRtcSettingRequest.fromJson(Map<String, dynamic> map) {
  126. return GetRtcSettingRequest(
  127. );
  128. }
  129. Map<String, dynamic> toJson() {
  130. final map = Map<String, dynamic>();
  131. return map;
  132. }
  133. }
  134. class GetRtcSettingResult {
  135. int appId;
  136. GetRtcSettingResult({
  137. this.appId = 0,
  138. });
  139. factory GetRtcSettingResult.fromJson(Map<String, dynamic> map) {
  140. return GetRtcSettingResult(
  141. appId: map['AppId'],
  142. );
  143. }
  144. Map<String, dynamic> toJson() {
  145. final map = Map<String, dynamic>();
  146. map['AppId'] = appId;
  147. return map;
  148. }
  149. }
  150. class GetUserSignRequest {
  151. String? userId;
  152. GetUserSignRequest({
  153. this.userId,
  154. });
  155. factory GetUserSignRequest.fromJson(Map<String, dynamic> map) {
  156. return GetUserSignRequest(
  157. userId: map['UserId'],
  158. );
  159. }
  160. Map<String, dynamic> toJson() {
  161. final map = Map<String, dynamic>();
  162. if(userId != null) {
  163. map['UserId'] = userId;
  164. }
  165. return map;
  166. }
  167. }
  168. class GetUserSignResult {
  169. String? userSign;
  170. GetUserSignResult({
  171. this.userSign,
  172. });
  173. factory GetUserSignResult.fromJson(Map<String, dynamic> map) {
  174. return GetUserSignResult(
  175. userSign: map['UserSign'],
  176. );
  177. }
  178. Map<String, dynamic> toJson() {
  179. final map = Map<String, dynamic>();
  180. if(userSign != null) {
  181. map['UserSign'] = userSign;
  182. }
  183. return map;
  184. }
  185. }
  186. class StorageInfoResult {
  187. int code;
  188. bool isSuccess;
  189. String? message;
  190. StorageInfoResult({
  191. this.code = 0,
  192. this.isSuccess = false,
  193. this.message,
  194. });
  195. factory StorageInfoResult.fromJson(Map<String, dynamic> map) {
  196. return StorageInfoResult(
  197. code: map['Code'],
  198. isSuccess: map['IsSuccess'],
  199. message: map['Message'],
  200. );
  201. }
  202. Map<String, dynamic> toJson() {
  203. final map = Map<String, dynamic>();
  204. map['Code'] = code;
  205. map['IsSuccess'] = isSuccess;
  206. if(message != null) {
  207. map['Message'] = message;
  208. }
  209. return map;
  210. }
  211. }
  212. class MeasureItemsResult {
  213. MeasureItemsResult();
  214. factory MeasureItemsResult.fromJson(Map<String, dynamic> map) {
  215. return MeasureItemsResult(
  216. );
  217. }
  218. Map<String, dynamic> toJson() {
  219. final map = Map<String, dynamic>();
  220. return map;
  221. }
  222. }
  223. class BindOrganizationTemplateResult {
  224. List<SelectItemDTO>? thesaurusDataList;
  225. List<SelectItemDTO>? reportTemplateDataList;
  226. String? defaultThesaurusCode;
  227. String? defaultReportTemplateCode;
  228. BindOrganizationTemplateResult({
  229. this.thesaurusDataList,
  230. this.reportTemplateDataList,
  231. this.defaultThesaurusCode,
  232. this.defaultReportTemplateCode,
  233. });
  234. factory BindOrganizationTemplateResult.fromJson(Map<String, dynamic> map) {
  235. return BindOrganizationTemplateResult(
  236. thesaurusDataList: map['ThesaurusDataList'] != null ? (map['ThesaurusDataList'] as List).map((e)=>SelectItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  237. reportTemplateDataList: map['ReportTemplateDataList'] != null ? (map['ReportTemplateDataList'] as List).map((e)=>SelectItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  238. defaultThesaurusCode: map['DefaultThesaurusCode'],
  239. defaultReportTemplateCode: map['DefaultReportTemplateCode'],
  240. );
  241. }
  242. Map<String, dynamic> toJson() {
  243. final map = Map<String, dynamic>();
  244. if(thesaurusDataList != null) {
  245. map['ThesaurusDataList'] = thesaurusDataList;
  246. }
  247. if(reportTemplateDataList != null) {
  248. map['ReportTemplateDataList'] = reportTemplateDataList;
  249. }
  250. if(defaultThesaurusCode != null) {
  251. map['DefaultThesaurusCode'] = defaultThesaurusCode;
  252. }
  253. if(defaultReportTemplateCode != null) {
  254. map['DefaultReportTemplateCode'] = defaultReportTemplateCode;
  255. }
  256. return map;
  257. }
  258. }
  259. class WaitClearLogResult {
  260. int daysAgo;
  261. int waitDelCount;
  262. WaitClearLogResult({
  263. this.daysAgo = 0,
  264. this.waitDelCount = 0,
  265. });
  266. factory WaitClearLogResult.fromJson(Map<String, dynamic> map) {
  267. return WaitClearLogResult(
  268. daysAgo: map['DaysAgo'],
  269. waitDelCount: map['WaitDelCount'],
  270. );
  271. }
  272. Map<String, dynamic> toJson() {
  273. final map = Map<String, dynamic>();
  274. map['DaysAgo'] = daysAgo;
  275. map['WaitDelCount'] = waitDelCount;
  276. return map;
  277. }
  278. }
  279. class ClearSystemLogRecordResult {
  280. int daysAgo;
  281. String? requestServerHost;
  282. String? clearTime;
  283. List<WaitClearLogResult>? waitClearLogs;
  284. ClearSystemLogRecordResult({
  285. this.daysAgo = 0,
  286. this.requestServerHost,
  287. this.clearTime,
  288. this.waitClearLogs,
  289. });
  290. factory ClearSystemLogRecordResult.fromJson(Map<String, dynamic> map) {
  291. return ClearSystemLogRecordResult(
  292. daysAgo: map['DaysAgo'],
  293. requestServerHost: map['RequestServerHost'],
  294. clearTime: map['ClearTime'],
  295. waitClearLogs: map['WaitClearLogs'] != null ? (map['WaitClearLogs'] as List).map((e)=>WaitClearLogResult.fromJson(e as Map<String,dynamic>)).toList() : null,
  296. );
  297. }
  298. Map<String, dynamic> toJson() {
  299. final map = Map<String, dynamic>();
  300. map['DaysAgo'] = daysAgo;
  301. if(requestServerHost != null) {
  302. map['RequestServerHost'] = requestServerHost;
  303. }
  304. if(clearTime != null) {
  305. map['ClearTime'] = clearTime;
  306. }
  307. if(waitClearLogs != null) {
  308. map['WaitClearLogs'] = waitClearLogs;
  309. }
  310. return map;
  311. }
  312. }
  313. enum CMSTemplateStatusTypeEnum {
  314. UnPublished,
  315. Published,
  316. }
  317. class CMSTemplateResult {
  318. String? cMSTemplateCode;
  319. String? cMSTemplateName;
  320. CMSTemplateStatusTypeEnum cMSTemplateStateType;
  321. String? cMSTemplateJson;
  322. bool isDefault;
  323. DateTime? createTime;
  324. String? cMSBgColor;
  325. String? cMSBgImg;
  326. bool isShowTop;
  327. String? cMSBorderColor;
  328. int cMSBorderShadow;
  329. CMSTemplateResult({
  330. this.cMSTemplateCode,
  331. this.cMSTemplateName,
  332. this.cMSTemplateStateType = CMSTemplateStatusTypeEnum.UnPublished,
  333. this.cMSTemplateJson,
  334. this.isDefault = false,
  335. this.createTime,
  336. this.cMSBgColor,
  337. this.cMSBgImg,
  338. this.isShowTop = false,
  339. this.cMSBorderColor,
  340. this.cMSBorderShadow = 0,
  341. });
  342. factory CMSTemplateResult.fromJson(Map<String, dynamic> map) {
  343. return CMSTemplateResult(
  344. cMSTemplateCode: map['CMSTemplateCode'],
  345. cMSTemplateName: map['CMSTemplateName'],
  346. cMSTemplateStateType: CMSTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['CMSTemplateStateType']),
  347. cMSTemplateJson: map['CMSTemplateJson'],
  348. isDefault: map['IsDefault'],
  349. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  350. cMSBgColor: map['CMSBgColor'],
  351. cMSBgImg: map['CMSBgImg'],
  352. isShowTop: map['IsShowTop'],
  353. cMSBorderColor: map['CMSBorderColor'],
  354. cMSBorderShadow: map['CMSBorderShadow'],
  355. );
  356. }
  357. Map<String, dynamic> toJson() {
  358. final map = Map<String, dynamic>();
  359. if(cMSTemplateCode != null) {
  360. map['CMSTemplateCode'] = cMSTemplateCode;
  361. }
  362. if(cMSTemplateName != null) {
  363. map['CMSTemplateName'] = cMSTemplateName;
  364. }
  365. map['CMSTemplateStateType'] = cMSTemplateStateType.index;
  366. if(cMSTemplateJson != null) {
  367. map['CMSTemplateJson'] = cMSTemplateJson;
  368. }
  369. map['IsDefault'] = isDefault;
  370. if(createTime != null) {
  371. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  372. }
  373. if(cMSBgColor != null) {
  374. map['CMSBgColor'] = cMSBgColor;
  375. }
  376. if(cMSBgImg != null) {
  377. map['CMSBgImg'] = cMSBgImg;
  378. }
  379. map['IsShowTop'] = isShowTop;
  380. if(cMSBorderColor != null) {
  381. map['CMSBorderColor'] = cMSBorderColor;
  382. }
  383. map['CMSBorderShadow'] = cMSBorderShadow;
  384. return map;
  385. }
  386. }
  387. class ConfigRecordResult {
  388. bool isOpenASR;
  389. bool isDistributed;
  390. ConfigRecordResult({
  391. this.isOpenASR = false,
  392. this.isDistributed = false,
  393. });
  394. factory ConfigRecordResult.fromJson(Map<String, dynamic> map) {
  395. return ConfigRecordResult(
  396. isOpenASR: map['IsOpenASR'],
  397. isDistributed: map['IsDistributed'],
  398. );
  399. }
  400. Map<String, dynamic> toJson() {
  401. final map = Map<String, dynamic>();
  402. map['IsOpenASR'] = isOpenASR;
  403. map['IsDistributed'] = isDistributed;
  404. return map;
  405. }
  406. }
  407. class ExportThesaurusResult {
  408. String? thesaurusName;
  409. String? json;
  410. ExportThesaurusResult({
  411. this.thesaurusName,
  412. this.json,
  413. });
  414. factory ExportThesaurusResult.fromJson(Map<String, dynamic> map) {
  415. return ExportThesaurusResult(
  416. thesaurusName: map['ThesaurusName'],
  417. json: map['Json'],
  418. );
  419. }
  420. Map<String, dynamic> toJson() {
  421. final map = Map<String, dynamic>();
  422. if(thesaurusName != null) {
  423. map['ThesaurusName'] = thesaurusName;
  424. }
  425. if(json != null) {
  426. map['Json'] = json;
  427. }
  428. return map;
  429. }
  430. }
  431. class OrganizationBindQueryResult {
  432. int bindDeviceNum;
  433. int bindUserNum;
  434. OrganizationBindQueryResult({
  435. this.bindDeviceNum = 0,
  436. this.bindUserNum = 0,
  437. });
  438. factory OrganizationBindQueryResult.fromJson(Map<String, dynamic> map) {
  439. return OrganizationBindQueryResult(
  440. bindDeviceNum: map['BindDeviceNum'],
  441. bindUserNum: map['BindUserNum'],
  442. );
  443. }
  444. Map<String, dynamic> toJson() {
  445. final map = Map<String, dynamic>();
  446. map['BindDeviceNum'] = bindDeviceNum;
  447. map['BindUserNum'] = bindUserNum;
  448. return map;
  449. }
  450. }
  451. class ShareExamUrlResult {
  452. String? posterUrl;
  453. String? videoUrl;
  454. ShareExamUrlResult({
  455. this.posterUrl,
  456. this.videoUrl,
  457. });
  458. factory ShareExamUrlResult.fromJson(Map<String, dynamic> map) {
  459. return ShareExamUrlResult(
  460. posterUrl: map['PosterUrl'],
  461. videoUrl: map['VideoUrl'],
  462. );
  463. }
  464. Map<String, dynamic> toJson() {
  465. final map = Map<String, dynamic>();
  466. if(posterUrl != null) {
  467. map['PosterUrl'] = posterUrl;
  468. }
  469. if(videoUrl != null) {
  470. map['VideoUrl'] = videoUrl;
  471. }
  472. return map;
  473. }
  474. }
  475. class ApplyLockResult {
  476. bool isSuccess;
  477. String? lockUniqueCode;
  478. ApplyLockResult({
  479. this.isSuccess = false,
  480. this.lockUniqueCode,
  481. });
  482. factory ApplyLockResult.fromJson(Map<String, dynamic> map) {
  483. return ApplyLockResult(
  484. isSuccess: map['IsSuccess'],
  485. lockUniqueCode: map['LockUniqueCode'],
  486. );
  487. }
  488. Map<String, dynamic> toJson() {
  489. final map = Map<String, dynamic>();
  490. map['IsSuccess'] = isSuccess;
  491. if(lockUniqueCode != null) {
  492. map['LockUniqueCode'] = lockUniqueCode;
  493. }
  494. return map;
  495. }
  496. }
  497. class ReleaseLockResult {
  498. bool isSuccess;
  499. ReleaseLockResult({
  500. this.isSuccess = false,
  501. });
  502. factory ReleaseLockResult.fromJson(Map<String, dynamic> map) {
  503. return ReleaseLockResult(
  504. isSuccess: map['IsSuccess'],
  505. );
  506. }
  507. Map<String, dynamic> toJson() {
  508. final map = Map<String, dynamic>();
  509. map['IsSuccess'] = isSuccess;
  510. return map;
  511. }
  512. }
  513. class MarshalByRefObject {
  514. MarshalByRefObject();
  515. factory MarshalByRefObject.fromJson(Map<String, dynamic> map) {
  516. return MarshalByRefObject(
  517. );
  518. }
  519. Map<String, dynamic> toJson() {
  520. final map = Map<String, dynamic>();
  521. return map;
  522. }
  523. }
  524. class Stream extends MarshalByRefObject{
  525. bool canRead;
  526. bool canWrite;
  527. bool canSeek;
  528. bool canTimeout;
  529. int length;
  530. int position;
  531. int readTimeout;
  532. int writeTimeout;
  533. Stream({
  534. this.canRead = false,
  535. this.canWrite = false,
  536. this.canSeek = false,
  537. this.canTimeout = false,
  538. this.length = 0,
  539. this.position = 0,
  540. this.readTimeout = 0,
  541. this.writeTimeout = 0,
  542. }) : super(
  543. );
  544. factory Stream.fromJson(Map<String, dynamic> map) {
  545. return Stream(
  546. canRead: map['CanRead'],
  547. canWrite: map['CanWrite'],
  548. canSeek: map['CanSeek'],
  549. canTimeout: map['CanTimeout'],
  550. length: map['Length'],
  551. position: map['Position'],
  552. readTimeout: map['ReadTimeout'],
  553. writeTimeout: map['WriteTimeout'],
  554. );
  555. }
  556. Map<String, dynamic> toJson() {
  557. final map = super.toJson();
  558. map['CanRead'] = canRead;
  559. map['CanWrite'] = canWrite;
  560. map['CanSeek'] = canSeek;
  561. map['CanTimeout'] = canTimeout;
  562. map['Length'] = length;
  563. map['Position'] = position;
  564. map['ReadTimeout'] = readTimeout;
  565. map['WriteTimeout'] = writeTimeout;
  566. return map;
  567. }
  568. }
  569. class DownloadFileResult {
  570. Stream? merageFileStream;
  571. int fileSize;
  572. DownloadFileResult({
  573. this.merageFileStream,
  574. this.fileSize = 0,
  575. });
  576. factory DownloadFileResult.fromJson(Map<String, dynamic> map) {
  577. return DownloadFileResult(
  578. merageFileStream: map['MerageFileStream'] != null ? Stream.fromJson(map['MerageFileStream']) : null,
  579. fileSize: map['FileSize'],
  580. );
  581. }
  582. Map<String, dynamic> toJson() {
  583. final map = Map<String, dynamic>();
  584. if(merageFileStream != null) {
  585. map['MerageFileStream'] = merageFileStream;
  586. }
  587. map['FileSize'] = fileSize;
  588. return map;
  589. }
  590. }
  591. class QueryExamListItemResult {
  592. String? examCode;
  593. String? patientName;
  594. String? age;
  595. List<DataItemDTO>? ageInfo;
  596. String? sex;
  597. List<String>? associatedExamCodes;
  598. DateTime? createTime;
  599. QueryExamListItemResult({
  600. this.examCode,
  601. this.patientName,
  602. this.age,
  603. this.ageInfo,
  604. this.sex,
  605. this.associatedExamCodes,
  606. this.createTime,
  607. });
  608. factory QueryExamListItemResult.fromJson(Map<String, dynamic> map) {
  609. return QueryExamListItemResult(
  610. examCode: map['ExamCode'],
  611. patientName: map['PatientName'],
  612. age: map['Age'],
  613. ageInfo: map['AgeInfo'] != null ? (map['AgeInfo'] as List).map((e)=>DataItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  614. sex: map['Sex'],
  615. associatedExamCodes: map['AssociatedExamCodes']?.cast<String>().toList(),
  616. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  617. );
  618. }
  619. Map<String, dynamic> toJson() {
  620. final map = Map<String, dynamic>();
  621. if(examCode != null) {
  622. map['ExamCode'] = examCode;
  623. }
  624. if(patientName != null) {
  625. map['PatientName'] = patientName;
  626. }
  627. if(age != null) {
  628. map['Age'] = age;
  629. }
  630. if(ageInfo != null) {
  631. map['AgeInfo'] = ageInfo;
  632. }
  633. if(sex != null) {
  634. map['Sex'] = sex;
  635. }
  636. if(associatedExamCodes != null) {
  637. map['AssociatedExamCodes'] = associatedExamCodes;
  638. }
  639. if(createTime != null) {
  640. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  641. }
  642. return map;
  643. }
  644. }
  645. class BaseLiveResult {
  646. String? roomCode;
  647. int integerRoomId;
  648. String? rtcMessageJson;
  649. BaseLiveResult({
  650. this.roomCode,
  651. this.integerRoomId = 0,
  652. this.rtcMessageJson,
  653. });
  654. factory BaseLiveResult.fromJson(Map<String, dynamic> map) {
  655. return BaseLiveResult(
  656. roomCode: map['RoomCode'],
  657. integerRoomId: map['IntegerRoomId'],
  658. rtcMessageJson: map['RtcMessageJson'],
  659. );
  660. }
  661. Map<String, dynamic> toJson() {
  662. final map = Map<String, dynamic>();
  663. if(roomCode != null) {
  664. map['RoomCode'] = roomCode;
  665. }
  666. map['IntegerRoomId'] = integerRoomId;
  667. if(rtcMessageJson != null) {
  668. map['RtcMessageJson'] = rtcMessageJson;
  669. }
  670. return map;
  671. }
  672. }
  673. class MuteLiveResult extends BaseLiveResult{
  674. bool mute;
  675. MuteLiveResult({
  676. this.mute = false,
  677. String? roomCode,
  678. int integerRoomId = 0,
  679. String? rtcMessageJson,
  680. }) : super(
  681. roomCode: roomCode,
  682. integerRoomId: integerRoomId,
  683. rtcMessageJson: rtcMessageJson,
  684. );
  685. factory MuteLiveResult.fromJson(Map<String, dynamic> map) {
  686. return MuteLiveResult(
  687. mute: map['Mute'],
  688. roomCode: map['RoomCode'],
  689. integerRoomId: map['IntegerRoomId'],
  690. rtcMessageJson: map['RtcMessageJson'],
  691. );
  692. }
  693. Map<String, dynamic> toJson() {
  694. final map = super.toJson();
  695. map['Mute'] = mute;
  696. return map;
  697. }
  698. }
  699. class OpenedVideoLiveResult extends BaseLiveResult{
  700. bool videoOpend;
  701. OpenedVideoLiveResult({
  702. this.videoOpend = false,
  703. String? roomCode,
  704. int integerRoomId = 0,
  705. String? rtcMessageJson,
  706. }) : super(
  707. roomCode: roomCode,
  708. integerRoomId: integerRoomId,
  709. rtcMessageJson: rtcMessageJson,
  710. );
  711. factory OpenedVideoLiveResult.fromJson(Map<String, dynamic> map) {
  712. return OpenedVideoLiveResult(
  713. videoOpend: map['VideoOpend'],
  714. roomCode: map['RoomCode'],
  715. integerRoomId: map['IntegerRoomId'],
  716. rtcMessageJson: map['RtcMessageJson'],
  717. );
  718. }
  719. Map<String, dynamic> toJson() {
  720. final map = super.toJson();
  721. map['VideoOpend'] = videoOpend;
  722. return map;
  723. }
  724. }
  725. class ControllingParameterLiveResult extends BaseLiveResult{
  726. bool isControllingParameter;
  727. ControllingParameterLiveResult({
  728. this.isControllingParameter = false,
  729. String? roomCode,
  730. int integerRoomId = 0,
  731. String? rtcMessageJson,
  732. }) : super(
  733. roomCode: roomCode,
  734. integerRoomId: integerRoomId,
  735. rtcMessageJson: rtcMessageJson,
  736. );
  737. factory ControllingParameterLiveResult.fromJson(Map<String, dynamic> map) {
  738. return ControllingParameterLiveResult(
  739. isControllingParameter: map['IsControllingParameter'],
  740. roomCode: map['RoomCode'],
  741. integerRoomId: map['IntegerRoomId'],
  742. rtcMessageJson: map['RtcMessageJson'],
  743. );
  744. }
  745. Map<String, dynamic> toJson() {
  746. final map = super.toJson();
  747. map['IsControllingParameter'] = isControllingParameter;
  748. return map;
  749. }
  750. }
  751. class ChangeCourseStatusResult extends BaseLiveResult{
  752. CourseStatusEnum status;
  753. ChangeCourseStatusResult({
  754. this.status = CourseStatusEnum.Unknown,
  755. String? roomCode,
  756. int integerRoomId = 0,
  757. String? rtcMessageJson,
  758. }) : super(
  759. roomCode: roomCode,
  760. integerRoomId: integerRoomId,
  761. rtcMessageJson: rtcMessageJson,
  762. );
  763. factory ChangeCourseStatusResult.fromJson(Map<String, dynamic> map) {
  764. return ChangeCourseStatusResult(
  765. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  766. roomCode: map['RoomCode'],
  767. integerRoomId: map['IntegerRoomId'],
  768. rtcMessageJson: map['RtcMessageJson'],
  769. );
  770. }
  771. Map<String, dynamic> toJson() {
  772. final map = super.toJson();
  773. map['Status'] = status.index;
  774. return map;
  775. }
  776. }
  777. class FindConsultationSettingResult {
  778. String? version;
  779. String? settingData;
  780. FindConsultationSettingResult({
  781. this.version,
  782. this.settingData,
  783. });
  784. factory FindConsultationSettingResult.fromJson(Map<String, dynamic> map) {
  785. return FindConsultationSettingResult(
  786. version: map['Version'],
  787. settingData: map['SettingData'],
  788. );
  789. }
  790. Map<String, dynamic> toJson() {
  791. final map = Map<String, dynamic>();
  792. if(version != null) {
  793. map['Version'] = version;
  794. }
  795. if(settingData != null) {
  796. map['SettingData'] = settingData;
  797. }
  798. return map;
  799. }
  800. }
  801. class AddCacheReportPosterRequest extends TokenRequest{
  802. String? reportPosterCode;
  803. AddCacheReportPosterRequest({
  804. this.reportPosterCode,
  805. String? token,
  806. }) : super(
  807. token: token,
  808. );
  809. factory AddCacheReportPosterRequest.fromJson(Map<String, dynamic> map) {
  810. return AddCacheReportPosterRequest(
  811. reportPosterCode: map['ReportPosterCode'],
  812. token: map['Token'],
  813. );
  814. }
  815. Map<String, dynamic> toJson() {
  816. final map = super.toJson();
  817. if(reportPosterCode != null)
  818. map['ReportPosterCode'] = reportPosterCode;
  819. return map;
  820. }
  821. }
  822. class DeleteThesaurusUserCodeRequest extends TokenRequest{
  823. String? thesaurusCode;
  824. DeleteThesaurusUserCodeRequest({
  825. this.thesaurusCode,
  826. String? token,
  827. }) : super(
  828. token: token,
  829. );
  830. factory DeleteThesaurusUserCodeRequest.fromJson(Map<String, dynamic> map) {
  831. return DeleteThesaurusUserCodeRequest(
  832. thesaurusCode: map['ThesaurusCode'],
  833. token: map['Token'],
  834. );
  835. }
  836. Map<String, dynamic> toJson() {
  837. final map = super.toJson();
  838. if(thesaurusCode != null)
  839. map['ThesaurusCode'] = thesaurusCode;
  840. return map;
  841. }
  842. }
  843. class RemoveCacheReportPosterRequest extends TokenRequest{
  844. String? reportPosterCode;
  845. RemoveCacheReportPosterRequest({
  846. this.reportPosterCode,
  847. String? token,
  848. }) : super(
  849. token: token,
  850. );
  851. factory RemoveCacheReportPosterRequest.fromJson(Map<String, dynamic> map) {
  852. return RemoveCacheReportPosterRequest(
  853. reportPosterCode: map['ReportPosterCode'],
  854. token: map['Token'],
  855. );
  856. }
  857. Map<String, dynamic> toJson() {
  858. final map = super.toJson();
  859. if(reportPosterCode != null)
  860. map['ReportPosterCode'] = reportPosterCode;
  861. return map;
  862. }
  863. }
  864. class UpdateThesaurusUserCodeRequest extends TokenRequest{
  865. String? thesaurusCode;
  866. UpdateThesaurusUserCodeRequest({
  867. this.thesaurusCode,
  868. String? token,
  869. }) : super(
  870. token: token,
  871. );
  872. factory UpdateThesaurusUserCodeRequest.fromJson(Map<String, dynamic> map) {
  873. return UpdateThesaurusUserCodeRequest(
  874. thesaurusCode: map['ThesaurusCode'],
  875. token: map['Token'],
  876. );
  877. }
  878. Map<String, dynamic> toJson() {
  879. final map = super.toJson();
  880. if(thesaurusCode != null)
  881. map['ThesaurusCode'] = thesaurusCode;
  882. return map;
  883. }
  884. }
  885. class PushRecordCodesToDeviceRequest extends TokenRequest{
  886. List<String>? recordCodes;
  887. String? deviceCode;
  888. PushRecordCodesToDeviceRequest({
  889. this.recordCodes,
  890. this.deviceCode,
  891. String? token,
  892. }) : super(
  893. token: token,
  894. );
  895. factory PushRecordCodesToDeviceRequest.fromJson(Map<String, dynamic> map) {
  896. return PushRecordCodesToDeviceRequest(
  897. recordCodes: map['RecordCodes']?.cast<String>().toList(),
  898. deviceCode: map['DeviceCode'],
  899. token: map['Token'],
  900. );
  901. }
  902. Map<String, dynamic> toJson() {
  903. final map = super.toJson();
  904. if(recordCodes != null)
  905. map['RecordCodes'] = recordCodes;
  906. if(deviceCode != null)
  907. map['DeviceCode'] = deviceCode;
  908. return map;
  909. }
  910. }
  911. class PayCallbackRequest {
  912. String? keyWord;
  913. PayCallbackRequest({
  914. this.keyWord,
  915. });
  916. factory PayCallbackRequest.fromJson(Map<String, dynamic> map) {
  917. return PayCallbackRequest(
  918. keyWord: map['KeyWord'],
  919. );
  920. }
  921. Map<String, dynamic> toJson() {
  922. final map = Map<String, dynamic>();
  923. if(keyWord != null) {
  924. map['KeyWord'] = keyWord;
  925. }
  926. return map;
  927. }
  928. }
  929. class CloseNotifyQueueRequest {
  930. String? msgQueueId;
  931. CloseNotifyQueueRequest({
  932. this.msgQueueId,
  933. });
  934. factory CloseNotifyQueueRequest.fromJson(Map<String, dynamic> map) {
  935. return CloseNotifyQueueRequest(
  936. msgQueueId: map['MsgQueueId'],
  937. );
  938. }
  939. Map<String, dynamic> toJson() {
  940. final map = Map<String, dynamic>();
  941. if(msgQueueId != null) {
  942. map['MsgQueueId'] = msgQueueId;
  943. }
  944. return map;
  945. }
  946. }
  947. class OpenNotifyQueueRequest {
  948. String? module;
  949. OpenNotifyQueueRequest({
  950. this.module,
  951. });
  952. factory OpenNotifyQueueRequest.fromJson(Map<String, dynamic> map) {
  953. return OpenNotifyQueueRequest(
  954. module: map['Module'],
  955. );
  956. }
  957. Map<String, dynamic> toJson() {
  958. final map = Map<String, dynamic>();
  959. if(module != null) {
  960. map['Module'] = module;
  961. }
  962. return map;
  963. }
  964. }
  965. class ApplyLockRequest {
  966. String? lockKey;
  967. ApplyLockRequest({
  968. this.lockKey,
  969. });
  970. factory ApplyLockRequest.fromJson(Map<String, dynamic> map) {
  971. return ApplyLockRequest(
  972. lockKey: map['LockKey'],
  973. );
  974. }
  975. Map<String, dynamic> toJson() {
  976. final map = Map<String, dynamic>();
  977. if(lockKey != null) {
  978. map['LockKey'] = lockKey;
  979. }
  980. return map;
  981. }
  982. }
  983. class ReleaseLockRequest {
  984. String? lockUniqueCode;
  985. ReleaseLockRequest({
  986. this.lockUniqueCode,
  987. });
  988. factory ReleaseLockRequest.fromJson(Map<String, dynamic> map) {
  989. return ReleaseLockRequest(
  990. lockUniqueCode: map['LockUniqueCode'],
  991. );
  992. }
  993. Map<String, dynamic> toJson() {
  994. final map = Map<String, dynamic>();
  995. if(lockUniqueCode != null) {
  996. map['LockUniqueCode'] = lockUniqueCode;
  997. }
  998. return map;
  999. }
  1000. }
  1001. class AssignPatientToUsersRequest extends TokenRequest{
  1002. String? patientCode;
  1003. List<String>? userCodes;
  1004. AssignPatientToUsersRequest({
  1005. this.patientCode,
  1006. this.userCodes,
  1007. String? token,
  1008. }) : super(
  1009. token: token,
  1010. );
  1011. factory AssignPatientToUsersRequest.fromJson(Map<String, dynamic> map) {
  1012. return AssignPatientToUsersRequest(
  1013. patientCode: map['PatientCode'],
  1014. userCodes: map['UserCodes']?.cast<String>().toList(),
  1015. token: map['Token'],
  1016. );
  1017. }
  1018. Map<String, dynamic> toJson() {
  1019. final map = super.toJson();
  1020. if(patientCode != null)
  1021. map['PatientCode'] = patientCode;
  1022. if(userCodes != null)
  1023. map['UserCodes'] = userCodes;
  1024. return map;
  1025. }
  1026. }
  1027. class QuestionDetailDTO extends BaseDTO{
  1028. String? code;
  1029. double score;
  1030. QuestionDetailDTO({
  1031. this.code,
  1032. this.score = 0,
  1033. DateTime? createTime,
  1034. DateTime? updateTime,
  1035. }) : super(
  1036. createTime: createTime,
  1037. updateTime: updateTime,
  1038. );
  1039. factory QuestionDetailDTO.fromJson(Map<String, dynamic> map) {
  1040. return QuestionDetailDTO(
  1041. code: map['Code'],
  1042. score: double.parse(map['Score'].toString()),
  1043. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  1044. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  1045. );
  1046. }
  1047. Map<String, dynamic> toJson() {
  1048. final map = super.toJson();
  1049. if(code != null)
  1050. map['Code'] = code;
  1051. map['Score'] = score;
  1052. return map;
  1053. }
  1054. }
  1055. class AddExaminationPaperRequest extends TokenRequest{
  1056. String? name;
  1057. double totalScore;
  1058. List<QuestionDetailDTO>? questionList;
  1059. List<String>? caseLabelCodes;
  1060. List<String>? courseLabelCodes;
  1061. AddExaminationPaperRequest({
  1062. this.name,
  1063. this.totalScore = 0,
  1064. this.questionList,
  1065. this.caseLabelCodes,
  1066. this.courseLabelCodes,
  1067. String? token,
  1068. }) : super(
  1069. token: token,
  1070. );
  1071. factory AddExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  1072. return AddExaminationPaperRequest(
  1073. name: map['Name'],
  1074. totalScore: double.parse(map['TotalScore'].toString()),
  1075. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>QuestionDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1076. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  1077. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  1078. token: map['Token'],
  1079. );
  1080. }
  1081. Map<String, dynamic> toJson() {
  1082. final map = super.toJson();
  1083. if(name != null)
  1084. map['Name'] = name;
  1085. map['TotalScore'] = totalScore;
  1086. if(questionList != null)
  1087. map['QuestionList'] = questionList;
  1088. if(caseLabelCodes != null)
  1089. map['CaseLabelCodes'] = caseLabelCodes;
  1090. if(courseLabelCodes != null)
  1091. map['CourseLabelCodes'] = courseLabelCodes;
  1092. return map;
  1093. }
  1094. }
  1095. class FindUserGroupByStudentRequest extends TokenRequest{
  1096. FindUserGroupByStudentRequest({
  1097. String? token,
  1098. }) : super(
  1099. token: token,
  1100. );
  1101. factory FindUserGroupByStudentRequest.fromJson(Map<String, dynamic> map) {
  1102. return FindUserGroupByStudentRequest(
  1103. token: map['Token'],
  1104. );
  1105. }
  1106. Map<String, dynamic> toJson() {
  1107. final map = super.toJson();
  1108. return map;
  1109. }
  1110. }
  1111. class CourseLabelRequest extends TokenRequest{
  1112. String? code;
  1113. List<LabelLanguageConfigDTO>? labelLanguageConfigs;
  1114. OrganizationPatientTypeEnum useObjectType;
  1115. LabelTypeEnum type;
  1116. String? parentCode;
  1117. CourseLabelRequest({
  1118. this.code,
  1119. this.labelLanguageConfigs,
  1120. this.useObjectType = OrganizationPatientTypeEnum.Person,
  1121. this.type = LabelTypeEnum.Unknown,
  1122. this.parentCode,
  1123. String? token,
  1124. }) : super(
  1125. token: token,
  1126. );
  1127. factory CourseLabelRequest.fromJson(Map<String, dynamic> map) {
  1128. return CourseLabelRequest(
  1129. code: map['Code'],
  1130. labelLanguageConfigs: map['LabelLanguageConfigs'] != null ? (map['LabelLanguageConfigs'] as List).map((e)=>LabelLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1131. useObjectType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['UseObjectType']),
  1132. type: LabelTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  1133. parentCode: map['ParentCode'],
  1134. token: map['Token'],
  1135. );
  1136. }
  1137. Map<String, dynamic> toJson() {
  1138. final map = super.toJson();
  1139. if(code != null)
  1140. map['Code'] = code;
  1141. if(labelLanguageConfigs != null)
  1142. map['LabelLanguageConfigs'] = labelLanguageConfigs;
  1143. map['UseObjectType'] = useObjectType.index;
  1144. map['Type'] = type.index;
  1145. if(parentCode != null)
  1146. map['ParentCode'] = parentCode;
  1147. return map;
  1148. }
  1149. }
  1150. class DeleteExaminationPaperRequest extends TokenRequest{
  1151. String? examinationPaperCode;
  1152. DeleteExaminationPaperRequest({
  1153. this.examinationPaperCode,
  1154. String? token,
  1155. }) : super(
  1156. token: token,
  1157. );
  1158. factory DeleteExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  1159. return DeleteExaminationPaperRequest(
  1160. examinationPaperCode: map['ExaminationPaperCode'],
  1161. token: map['Token'],
  1162. );
  1163. }
  1164. Map<String, dynamic> toJson() {
  1165. final map = super.toJson();
  1166. if(examinationPaperCode != null)
  1167. map['ExaminationPaperCode'] = examinationPaperCode;
  1168. return map;
  1169. }
  1170. }
  1171. class FindExaminationQuestionPagesRequest extends PageRequest{
  1172. String? searchKey;
  1173. List<String>? caseLabelCodes;
  1174. List<String>? courseLabelCodes;
  1175. List<String>? codes;
  1176. List<String>? notInCodes;
  1177. FindExaminationQuestionPagesRequest({
  1178. this.searchKey,
  1179. this.caseLabelCodes,
  1180. this.courseLabelCodes,
  1181. this.codes,
  1182. this.notInCodes,
  1183. int pageIndex = 0,
  1184. int pageSize = 0,
  1185. String? token,
  1186. }) : super(
  1187. pageIndex: pageIndex,
  1188. pageSize: pageSize,
  1189. token: token,
  1190. );
  1191. factory FindExaminationQuestionPagesRequest.fromJson(Map<String, dynamic> map) {
  1192. return FindExaminationQuestionPagesRequest(
  1193. searchKey: map['SearchKey'],
  1194. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  1195. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  1196. codes: map['Codes']?.cast<String>().toList(),
  1197. notInCodes: map['NotInCodes']?.cast<String>().toList(),
  1198. pageIndex: map['PageIndex'],
  1199. pageSize: map['PageSize'],
  1200. token: map['Token'],
  1201. );
  1202. }
  1203. Map<String, dynamic> toJson() {
  1204. final map = super.toJson();
  1205. if(searchKey != null)
  1206. map['SearchKey'] = searchKey;
  1207. if(caseLabelCodes != null)
  1208. map['CaseLabelCodes'] = caseLabelCodes;
  1209. if(courseLabelCodes != null)
  1210. map['CourseLabelCodes'] = courseLabelCodes;
  1211. if(codes != null)
  1212. map['Codes'] = codes;
  1213. if(notInCodes != null)
  1214. map['NotInCodes'] = notInCodes;
  1215. return map;
  1216. }
  1217. }
  1218. class FindExaminationQuestionsByCodesRequest extends TokenRequest{
  1219. List<String>? codes;
  1220. FindExaminationQuestionsByCodesRequest({
  1221. this.codes,
  1222. String? token,
  1223. }) : super(
  1224. token: token,
  1225. );
  1226. factory FindExaminationQuestionsByCodesRequest.fromJson(Map<String, dynamic> map) {
  1227. return FindExaminationQuestionsByCodesRequest(
  1228. codes: map['Codes']?.cast<String>().toList(),
  1229. token: map['Token'],
  1230. );
  1231. }
  1232. Map<String, dynamic> toJson() {
  1233. final map = super.toJson();
  1234. if(codes != null)
  1235. map['Codes'] = codes;
  1236. return map;
  1237. }
  1238. }
  1239. class CreateExaminationQuestionRequest extends TokenRequest{
  1240. String? stem;
  1241. QuestionTypeEnum questionType;
  1242. List<QuestionOptionDTO>? questionOptionList;
  1243. List<QuestionFileDTO>? fileList;
  1244. List<String>? caseLabelCodes;
  1245. List<String>? courseLabelCodes;
  1246. bool trueOrFalse;
  1247. CreateExaminationQuestionRequest({
  1248. this.stem,
  1249. this.questionType = QuestionTypeEnum.Judge,
  1250. this.questionOptionList,
  1251. this.fileList,
  1252. this.caseLabelCodes,
  1253. this.courseLabelCodes,
  1254. this.trueOrFalse = false,
  1255. String? token,
  1256. }) : super(
  1257. token: token,
  1258. );
  1259. factory CreateExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1260. return CreateExaminationQuestionRequest(
  1261. stem: map['Stem'],
  1262. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  1263. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1264. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1265. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  1266. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  1267. trueOrFalse: map['TrueOrFalse'],
  1268. token: map['Token'],
  1269. );
  1270. }
  1271. Map<String, dynamic> toJson() {
  1272. final map = super.toJson();
  1273. if(stem != null)
  1274. map['Stem'] = stem;
  1275. map['QuestionType'] = questionType.index;
  1276. if(questionOptionList != null)
  1277. map['QuestionOptionList'] = questionOptionList;
  1278. if(fileList != null)
  1279. map['FileList'] = fileList;
  1280. if(caseLabelCodes != null)
  1281. map['CaseLabelCodes'] = caseLabelCodes;
  1282. if(courseLabelCodes != null)
  1283. map['CourseLabelCodes'] = courseLabelCodes;
  1284. map['TrueOrFalse'] = trueOrFalse;
  1285. return map;
  1286. }
  1287. }
  1288. class GetExaminationQuestionRequest extends TokenRequest{
  1289. String? code;
  1290. GetExaminationQuestionRequest({
  1291. this.code,
  1292. String? token,
  1293. }) : super(
  1294. token: token,
  1295. );
  1296. factory GetExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1297. return GetExaminationQuestionRequest(
  1298. code: map['Code'],
  1299. token: map['Token'],
  1300. );
  1301. }
  1302. Map<String, dynamic> toJson() {
  1303. final map = super.toJson();
  1304. if(code != null)
  1305. map['Code'] = code;
  1306. return map;
  1307. }
  1308. }
  1309. class UpdateExaminationQuestionRequest extends TokenRequest{
  1310. String? code;
  1311. String? stem;
  1312. QuestionTypeEnum questionType;
  1313. List<QuestionOptionDTO>? questionOptionList;
  1314. List<QuestionFileDTO>? fileList;
  1315. List<String>? caseLabelCodes;
  1316. List<String>? courseLabelCodes;
  1317. bool trueOrFalse;
  1318. UpdateExaminationQuestionRequest({
  1319. this.code,
  1320. this.stem,
  1321. this.questionType = QuestionTypeEnum.Judge,
  1322. this.questionOptionList,
  1323. this.fileList,
  1324. this.caseLabelCodes,
  1325. this.courseLabelCodes,
  1326. this.trueOrFalse = false,
  1327. String? token,
  1328. }) : super(
  1329. token: token,
  1330. );
  1331. factory UpdateExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1332. return UpdateExaminationQuestionRequest(
  1333. code: map['Code'],
  1334. stem: map['Stem'],
  1335. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  1336. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1337. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1338. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  1339. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  1340. trueOrFalse: map['TrueOrFalse'],
  1341. token: map['Token'],
  1342. );
  1343. }
  1344. Map<String, dynamic> toJson() {
  1345. final map = super.toJson();
  1346. if(code != null)
  1347. map['Code'] = code;
  1348. if(stem != null)
  1349. map['Stem'] = stem;
  1350. map['QuestionType'] = questionType.index;
  1351. if(questionOptionList != null)
  1352. map['QuestionOptionList'] = questionOptionList;
  1353. if(fileList != null)
  1354. map['FileList'] = fileList;
  1355. if(caseLabelCodes != null)
  1356. map['CaseLabelCodes'] = caseLabelCodes;
  1357. if(courseLabelCodes != null)
  1358. map['CourseLabelCodes'] = courseLabelCodes;
  1359. map['TrueOrFalse'] = trueOrFalse;
  1360. return map;
  1361. }
  1362. }
  1363. class DeleteExaminationQuestionRequest extends TokenRequest{
  1364. String? code;
  1365. DeleteExaminationQuestionRequest({
  1366. this.code,
  1367. String? token,
  1368. }) : super(
  1369. token: token,
  1370. );
  1371. factory DeleteExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1372. return DeleteExaminationQuestionRequest(
  1373. code: map['Code'],
  1374. token: map['Token'],
  1375. );
  1376. }
  1377. Map<String, dynamic> toJson() {
  1378. final map = super.toJson();
  1379. if(code != null)
  1380. map['Code'] = code;
  1381. return map;
  1382. }
  1383. }
  1384. class GetExaminationPaperPagesRequest extends PageRequest{
  1385. String? keyword;
  1386. List<String>? caseLabelCodes;
  1387. List<String>? courseLabelCodes;
  1388. GetExaminationPaperPagesRequest({
  1389. this.keyword,
  1390. this.caseLabelCodes,
  1391. this.courseLabelCodes,
  1392. int pageIndex = 0,
  1393. int pageSize = 0,
  1394. String? token,
  1395. }) : super(
  1396. pageIndex: pageIndex,
  1397. pageSize: pageSize,
  1398. token: token,
  1399. );
  1400. factory GetExaminationPaperPagesRequest.fromJson(Map<String, dynamic> map) {
  1401. return GetExaminationPaperPagesRequest(
  1402. keyword: map['Keyword'],
  1403. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  1404. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  1405. pageIndex: map['PageIndex'],
  1406. pageSize: map['PageSize'],
  1407. token: map['Token'],
  1408. );
  1409. }
  1410. Map<String, dynamic> toJson() {
  1411. final map = super.toJson();
  1412. if(keyword != null)
  1413. map['Keyword'] = keyword;
  1414. if(caseLabelCodes != null)
  1415. map['CaseLabelCodes'] = caseLabelCodes;
  1416. if(courseLabelCodes != null)
  1417. map['CourseLabelCodes'] = courseLabelCodes;
  1418. return map;
  1419. }
  1420. }
  1421. class GetExaminationPaperRequest extends TokenRequest{
  1422. String? examinationPaperCode;
  1423. GetExaminationPaperRequest({
  1424. this.examinationPaperCode,
  1425. String? token,
  1426. }) : super(
  1427. token: token,
  1428. );
  1429. factory GetExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  1430. return GetExaminationPaperRequest(
  1431. examinationPaperCode: map['ExaminationPaperCode'],
  1432. token: map['Token'],
  1433. );
  1434. }
  1435. Map<String, dynamic> toJson() {
  1436. final map = super.toJson();
  1437. if(examinationPaperCode != null)
  1438. map['ExaminationPaperCode'] = examinationPaperCode;
  1439. return map;
  1440. }
  1441. }
  1442. class CancelLiveCourseRequest extends InitiateLiveCourseRequest{
  1443. CancelLiveCourseRequest({
  1444. String? courseCode,
  1445. String? token,
  1446. }) : super(
  1447. courseCode: courseCode,
  1448. token: token,
  1449. );
  1450. factory CancelLiveCourseRequest.fromJson(Map<String, dynamic> map) {
  1451. return CancelLiveCourseRequest(
  1452. courseCode: map['CourseCode'],
  1453. token: map['Token'],
  1454. );
  1455. }
  1456. Map<String, dynamic> toJson() {
  1457. final map = super.toJson();
  1458. return map;
  1459. }
  1460. }
  1461. class QueryStudentByGroupCodePageRequest extends PageRequest{
  1462. String? keyword;
  1463. String? userGroupCode;
  1464. QueryStudentByGroupCodePageRequest({
  1465. this.keyword,
  1466. this.userGroupCode,
  1467. int pageIndex = 0,
  1468. int pageSize = 0,
  1469. String? token,
  1470. }) : super(
  1471. pageIndex: pageIndex,
  1472. pageSize: pageSize,
  1473. token: token,
  1474. );
  1475. factory QueryStudentByGroupCodePageRequest.fromJson(Map<String, dynamic> map) {
  1476. return QueryStudentByGroupCodePageRequest(
  1477. keyword: map['Keyword'],
  1478. userGroupCode: map['UserGroupCode'],
  1479. pageIndex: map['PageIndex'],
  1480. pageSize: map['PageSize'],
  1481. token: map['Token'],
  1482. );
  1483. }
  1484. Map<String, dynamic> toJson() {
  1485. final map = super.toJson();
  1486. if(keyword != null)
  1487. map['Keyword'] = keyword;
  1488. if(userGroupCode != null)
  1489. map['UserGroupCode'] = userGroupCode;
  1490. return map;
  1491. }
  1492. }
  1493. class UpdateExaminationPaperRequest extends TokenRequest{
  1494. String? examinationPaperCode;
  1495. String? name;
  1496. double totalScore;
  1497. List<QuestionDetailDTO>? questionList;
  1498. List<String>? caseLabelCodes;
  1499. List<String>? courseLabelCodes;
  1500. UpdateExaminationPaperRequest({
  1501. this.examinationPaperCode,
  1502. this.name,
  1503. this.totalScore = 0,
  1504. this.questionList,
  1505. this.caseLabelCodes,
  1506. this.courseLabelCodes,
  1507. String? token,
  1508. }) : super(
  1509. token: token,
  1510. );
  1511. factory UpdateExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  1512. return UpdateExaminationPaperRequest(
  1513. examinationPaperCode: map['ExaminationPaperCode'],
  1514. name: map['Name'],
  1515. totalScore: double.parse(map['TotalScore'].toString()),
  1516. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>QuestionDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1517. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  1518. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  1519. token: map['Token'],
  1520. );
  1521. }
  1522. Map<String, dynamic> toJson() {
  1523. final map = super.toJson();
  1524. if(examinationPaperCode != null)
  1525. map['ExaminationPaperCode'] = examinationPaperCode;
  1526. if(name != null)
  1527. map['Name'] = name;
  1528. map['TotalScore'] = totalScore;
  1529. if(questionList != null)
  1530. map['QuestionList'] = questionList;
  1531. if(caseLabelCodes != null)
  1532. map['CaseLabelCodes'] = caseLabelCodes;
  1533. if(courseLabelCodes != null)
  1534. map['CourseLabelCodes'] = courseLabelCodes;
  1535. return map;
  1536. }
  1537. }
  1538. class QueryCourseLabelPageRequest extends PageRequest{
  1539. String? name;
  1540. String? languageCode;
  1541. LabelTypeEnum type;
  1542. String? parentCode;
  1543. QueryCourseLabelPageRequest({
  1544. this.name,
  1545. this.languageCode,
  1546. this.type = LabelTypeEnum.Unknown,
  1547. this.parentCode,
  1548. int pageIndex = 0,
  1549. int pageSize = 0,
  1550. String? token,
  1551. }) : super(
  1552. pageIndex: pageIndex,
  1553. pageSize: pageSize,
  1554. token: token,
  1555. );
  1556. factory QueryCourseLabelPageRequest.fromJson(Map<String, dynamic> map) {
  1557. return QueryCourseLabelPageRequest(
  1558. name: map['Name'],
  1559. languageCode: map['LanguageCode'],
  1560. type: LabelTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  1561. parentCode: map['ParentCode'],
  1562. pageIndex: map['PageIndex'],
  1563. pageSize: map['PageSize'],
  1564. token: map['Token'],
  1565. );
  1566. }
  1567. Map<String, dynamic> toJson() {
  1568. final map = super.toJson();
  1569. if(name != null)
  1570. map['Name'] = name;
  1571. if(languageCode != null)
  1572. map['LanguageCode'] = languageCode;
  1573. map['Type'] = type.index;
  1574. if(parentCode != null)
  1575. map['ParentCode'] = parentCode;
  1576. return map;
  1577. }
  1578. }
  1579. class AlterDeviceRequest extends TokenRequest{
  1580. String? deviceCode;
  1581. String? serialNumber;
  1582. String? name;
  1583. String? description;
  1584. String? headPicUrl;
  1585. String? organizationCode;
  1586. String? departmentCode;
  1587. bool isAutoShared;
  1588. AlterDeviceRequest({
  1589. this.deviceCode,
  1590. this.serialNumber,
  1591. this.name,
  1592. this.description,
  1593. this.headPicUrl,
  1594. this.organizationCode,
  1595. this.departmentCode,
  1596. this.isAutoShared = false,
  1597. String? token,
  1598. }) : super(
  1599. token: token,
  1600. );
  1601. factory AlterDeviceRequest.fromJson(Map<String, dynamic> map) {
  1602. return AlterDeviceRequest(
  1603. deviceCode: map['DeviceCode'],
  1604. serialNumber: map['SerialNumber'],
  1605. name: map['Name'],
  1606. description: map['Description'],
  1607. headPicUrl: map['HeadPicUrl'],
  1608. organizationCode: map['OrganizationCode'],
  1609. departmentCode: map['DepartmentCode'],
  1610. isAutoShared: map['IsAutoShared'],
  1611. token: map['Token'],
  1612. );
  1613. }
  1614. Map<String, dynamic> toJson() {
  1615. final map = super.toJson();
  1616. if(deviceCode != null)
  1617. map['DeviceCode'] = deviceCode;
  1618. if(serialNumber != null)
  1619. map['SerialNumber'] = serialNumber;
  1620. if(name != null)
  1621. map['Name'] = name;
  1622. if(description != null)
  1623. map['Description'] = description;
  1624. if(headPicUrl != null)
  1625. map['HeadPicUrl'] = headPicUrl;
  1626. if(organizationCode != null)
  1627. map['OrganizationCode'] = organizationCode;
  1628. if(departmentCode != null)
  1629. map['DepartmentCode'] = departmentCode;
  1630. map['IsAutoShared'] = isAutoShared;
  1631. return map;
  1632. }
  1633. }
  1634. class CleanDeviceCacheRequest {
  1635. String? deviceCode;
  1636. CleanDeviceCacheRequest({
  1637. this.deviceCode,
  1638. });
  1639. factory CleanDeviceCacheRequest.fromJson(Map<String, dynamic> map) {
  1640. return CleanDeviceCacheRequest(
  1641. deviceCode: map['DeviceCode'],
  1642. );
  1643. }
  1644. Map<String, dynamic> toJson() {
  1645. final map = Map<String, dynamic>();
  1646. if(deviceCode != null) {
  1647. map['DeviceCode'] = deviceCode;
  1648. }
  1649. return map;
  1650. }
  1651. }
  1652. class CreateShareCodeRequest {
  1653. String? reportCode;
  1654. String? languageCode;
  1655. CreateShareCodeRequest({
  1656. this.reportCode,
  1657. this.languageCode,
  1658. });
  1659. factory CreateShareCodeRequest.fromJson(Map<String, dynamic> map) {
  1660. return CreateShareCodeRequest(
  1661. reportCode: map['ReportCode'],
  1662. languageCode: map['LanguageCode'],
  1663. );
  1664. }
  1665. Map<String, dynamic> toJson() {
  1666. final map = Map<String, dynamic>();
  1667. if(reportCode != null) {
  1668. map['ReportCode'] = reportCode;
  1669. }
  1670. if(languageCode != null) {
  1671. map['LanguageCode'] = languageCode;
  1672. }
  1673. return map;
  1674. }
  1675. }
  1676. class DeleteDeviceRequest {
  1677. String? deviceCode;
  1678. DeleteDeviceRequest({
  1679. this.deviceCode,
  1680. });
  1681. factory DeleteDeviceRequest.fromJson(Map<String, dynamic> map) {
  1682. return DeleteDeviceRequest(
  1683. deviceCode: map['DeviceCode'],
  1684. );
  1685. }
  1686. Map<String, dynamic> toJson() {
  1687. final map = Map<String, dynamic>();
  1688. if(deviceCode != null) {
  1689. map['DeviceCode'] = deviceCode;
  1690. }
  1691. return map;
  1692. }
  1693. }
  1694. class DeviceDiagnosisChangedNotification extends TokenRequest{
  1695. String? diagnosisModule;
  1696. String? organizationCode;
  1697. String? deviceCode;
  1698. DeviceDiagnosisChangedNotification({
  1699. this.diagnosisModule,
  1700. this.organizationCode,
  1701. this.deviceCode,
  1702. String? token,
  1703. }) : super(
  1704. token: token,
  1705. );
  1706. factory DeviceDiagnosisChangedNotification.fromJson(Map<String, dynamic> map) {
  1707. return DeviceDiagnosisChangedNotification(
  1708. diagnosisModule: map['DiagnosisModule'],
  1709. organizationCode: map['OrganizationCode'],
  1710. deviceCode: map['DeviceCode'],
  1711. token: map['Token'],
  1712. );
  1713. }
  1714. Map<String, dynamic> toJson() {
  1715. final map = super.toJson();
  1716. if(diagnosisModule != null)
  1717. map['DiagnosisModule'] = diagnosisModule;
  1718. if(organizationCode != null)
  1719. map['OrganizationCode'] = organizationCode;
  1720. if(deviceCode != null)
  1721. map['DeviceCode'] = deviceCode;
  1722. return map;
  1723. }
  1724. }
  1725. class DeviceLeaveLiveConsultationRequest extends TokenRequest{
  1726. String? consultationCode;
  1727. DeviceLeaveLiveConsultationRequest({
  1728. this.consultationCode,
  1729. String? token,
  1730. }) : super(
  1731. token: token,
  1732. );
  1733. factory DeviceLeaveLiveConsultationRequest.fromJson(Map<String, dynamic> map) {
  1734. return DeviceLeaveLiveConsultationRequest(
  1735. consultationCode: map['ConsultationCode'],
  1736. token: map['Token'],
  1737. );
  1738. }
  1739. Map<String, dynamic> toJson() {
  1740. final map = super.toJson();
  1741. if(consultationCode != null)
  1742. map['ConsultationCode'] = consultationCode;
  1743. return map;
  1744. }
  1745. }
  1746. class DeviceLeaveLiveConsultationResult {
  1747. bool success;
  1748. DeviceLeaveLiveConsultationResult({
  1749. this.success = false,
  1750. });
  1751. factory DeviceLeaveLiveConsultationResult.fromJson(Map<String, dynamic> map) {
  1752. return DeviceLeaveLiveConsultationResult(
  1753. success: map['Success'],
  1754. );
  1755. }
  1756. Map<String, dynamic> toJson() {
  1757. final map = Map<String, dynamic>();
  1758. map['Success'] = success;
  1759. return map;
  1760. }
  1761. }
  1762. class GetDevicePrinterRequest extends TokenRequest{
  1763. String? deviceCode;
  1764. DevicePrinterEnum getPrinterEnum;
  1765. GetDevicePrinterRequest({
  1766. this.deviceCode,
  1767. this.getPrinterEnum = DevicePrinterEnum.GetInstalledPrinters,
  1768. String? token,
  1769. }) : super(
  1770. token: token,
  1771. );
  1772. factory GetDevicePrinterRequest.fromJson(Map<String, dynamic> map) {
  1773. return GetDevicePrinterRequest(
  1774. deviceCode: map['DeviceCode'],
  1775. getPrinterEnum: DevicePrinterEnum.values.firstWhere((e) => e.index == map['GetPrinterEnum']),
  1776. token: map['Token'],
  1777. );
  1778. }
  1779. Map<String, dynamic> toJson() {
  1780. final map = super.toJson();
  1781. if(deviceCode != null)
  1782. map['DeviceCode'] = deviceCode;
  1783. map['GetPrinterEnum'] = getPrinterEnum.index;
  1784. return map;
  1785. }
  1786. }
  1787. class RemoteConnectDataRequest {
  1788. String? roomCode;
  1789. UserRemoteConnectRequest? userRemoteConnect;
  1790. bool isManangeDisConnnect;
  1791. RemoteConnectDataRequest({
  1792. this.roomCode,
  1793. this.userRemoteConnect,
  1794. this.isManangeDisConnnect = false,
  1795. });
  1796. factory RemoteConnectDataRequest.fromJson(Map<String, dynamic> map) {
  1797. return RemoteConnectDataRequest(
  1798. roomCode: map['RoomCode'],
  1799. userRemoteConnect: map['UserRemoteConnect'] != null ? UserRemoteConnectRequest.fromJson(map['UserRemoteConnect']) : null,
  1800. isManangeDisConnnect: map['IsManangeDisConnnect'],
  1801. );
  1802. }
  1803. Map<String, dynamic> toJson() {
  1804. final map = Map<String, dynamic>();
  1805. if(roomCode != null) {
  1806. map['RoomCode'] = roomCode;
  1807. }
  1808. if(userRemoteConnect != null) {
  1809. map['UserRemoteConnect'] = userRemoteConnect;
  1810. }
  1811. map['IsManangeDisConnnect'] = isManangeDisConnnect;
  1812. return map;
  1813. }
  1814. }
  1815. class ReportLiveStateResult {
  1816. ReportLiveStateResult();
  1817. factory ReportLiveStateResult.fromJson(Map<String, dynamic> map) {
  1818. return ReportLiveStateResult(
  1819. );
  1820. }
  1821. Map<String, dynamic> toJson() {
  1822. final map = Map<String, dynamic>();
  1823. return map;
  1824. }
  1825. }
  1826. class RemoteControlRequest extends TokenRequest{
  1827. String? controlUserCode;
  1828. RemoteControlRequest({
  1829. this.controlUserCode,
  1830. String? token,
  1831. }) : super(
  1832. token: token,
  1833. );
  1834. factory RemoteControlRequest.fromJson(Map<String, dynamic> map) {
  1835. return RemoteControlRequest(
  1836. controlUserCode: map['ControlUserCode'],
  1837. token: map['Token'],
  1838. );
  1839. }
  1840. Map<String, dynamic> toJson() {
  1841. final map = super.toJson();
  1842. if(controlUserCode != null)
  1843. map['ControlUserCode'] = controlUserCode;
  1844. return map;
  1845. }
  1846. }
  1847. class TransportAfterSalesCommonRequest {
  1848. String? reqJson;
  1849. String? receiverId;
  1850. NotificationTypeEnum notificationType;
  1851. TransportAfterSalesCommonRequest({
  1852. this.reqJson,
  1853. this.receiverId,
  1854. this.notificationType = NotificationTypeEnum.Unknown,
  1855. });
  1856. factory TransportAfterSalesCommonRequest.fromJson(Map<String, dynamic> map) {
  1857. return TransportAfterSalesCommonRequest(
  1858. reqJson: map['ReqJson'],
  1859. receiverId: map['ReceiverId'],
  1860. notificationType: NotificationTypeEnum.values.firstWhere((e) => e.index == map['NotificationType']),
  1861. );
  1862. }
  1863. Map<String, dynamic> toJson() {
  1864. final map = Map<String, dynamic>();
  1865. if(reqJson != null) {
  1866. map['ReqJson'] = reqJson;
  1867. }
  1868. if(receiverId != null) {
  1869. map['ReceiverId'] = receiverId;
  1870. }
  1871. map['NotificationType'] = notificationType.index;
  1872. return map;
  1873. }
  1874. }
  1875. class CheckUserAuthRequest extends TokenRequest{
  1876. String? signature;
  1877. OrganizationPatientTypeEnum patientType;
  1878. String? userName;
  1879. String? organizationCode;
  1880. CheckUserAuthRequest({
  1881. this.signature,
  1882. this.patientType = OrganizationPatientTypeEnum.Person,
  1883. this.userName,
  1884. this.organizationCode,
  1885. String? token,
  1886. }) : super(
  1887. token: token,
  1888. );
  1889. factory CheckUserAuthRequest.fromJson(Map<String, dynamic> map) {
  1890. return CheckUserAuthRequest(
  1891. signature: map['Signature'],
  1892. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  1893. userName: map['UserName'],
  1894. organizationCode: map['OrganizationCode'],
  1895. token: map['Token'],
  1896. );
  1897. }
  1898. Map<String, dynamic> toJson() {
  1899. final map = super.toJson();
  1900. if(signature != null)
  1901. map['Signature'] = signature;
  1902. map['PatientType'] = patientType.index;
  1903. if(userName != null)
  1904. map['UserName'] = userName;
  1905. if(organizationCode != null)
  1906. map['OrganizationCode'] = organizationCode;
  1907. return map;
  1908. }
  1909. }
  1910. class ConfirmAssociatedWithAccountRequest extends TokenRequest{
  1911. String? emailAddress;
  1912. String? verifyCode;
  1913. ConfirmAssociatedWithAccountRequest({
  1914. this.emailAddress,
  1915. this.verifyCode,
  1916. String? token,
  1917. }) : super(
  1918. token: token,
  1919. );
  1920. factory ConfirmAssociatedWithAccountRequest.fromJson(Map<String, dynamic> map) {
  1921. return ConfirmAssociatedWithAccountRequest(
  1922. emailAddress: map['EmailAddress'],
  1923. verifyCode: map['VerifyCode'],
  1924. token: map['Token'],
  1925. );
  1926. }
  1927. Map<String, dynamic> toJson() {
  1928. final map = super.toJson();
  1929. if(emailAddress != null)
  1930. map['EmailAddress'] = emailAddress;
  1931. if(verifyCode != null)
  1932. map['VerifyCode'] = verifyCode;
  1933. return map;
  1934. }
  1935. }
  1936. class DeleteThesaurusCodeRequest extends TokenRequest{
  1937. String? thesaurusCode;
  1938. DeleteThesaurusCodeRequest({
  1939. this.thesaurusCode,
  1940. String? token,
  1941. }) : super(
  1942. token: token,
  1943. );
  1944. factory DeleteThesaurusCodeRequest.fromJson(Map<String, dynamic> map) {
  1945. return DeleteThesaurusCodeRequest(
  1946. thesaurusCode: map['ThesaurusCode'],
  1947. token: map['Token'],
  1948. );
  1949. }
  1950. Map<String, dynamic> toJson() {
  1951. final map = super.toJson();
  1952. if(thesaurusCode != null)
  1953. map['ThesaurusCode'] = thesaurusCode;
  1954. return map;
  1955. }
  1956. }
  1957. class SignUpRequest extends UserDTO{
  1958. SignUpRequest({
  1959. String? nickName,
  1960. String? organizationCode,
  1961. String? organizationName,
  1962. String? departmentCode,
  1963. String? departmentName,
  1964. String? departmentShortCode,
  1965. String? rootOrganizationCode,
  1966. String? rootOrganizationName,
  1967. List<String>? authorityGroups,
  1968. List<String>? bindDevices,
  1969. List<String>? bindDeviceOrganizations,
  1970. String? lastIP,
  1971. int logintimes = 0,
  1972. UserInfoStateEnum userState = UserInfoStateEnum.Nonactivated,
  1973. List<String>? roleCodes,
  1974. List<String>? rankCodes,
  1975. List<String>? positionCodes,
  1976. ApplyStateEnum applyState = ApplyStateEnum.NotApply,
  1977. String? rankName,
  1978. String? positionName,
  1979. bool isDirector = false,
  1980. List<String>? fieldList,
  1981. List<String>? deletePatientCodes,
  1982. bool isBatchExportDiagnoseData = false,
  1983. String? bindAssistantUserCode,
  1984. String? bindAssistantDoctorUserCode,
  1985. LoginLockInfoDTO? loginLockInfo,
  1986. String? signature,
  1987. String? language,
  1988. bool enableReportLabel = false,
  1989. List<AssociatedInfoDTO>? associatedInfos,
  1990. String? commonPlatformUserId,
  1991. String? bindEmergencyDeviceCode,
  1992. String? bindEmergencyExpertCode,
  1993. List<String>? dashboardOrgCodes,
  1994. String? organizationShortCode,
  1995. String? rootOrganizationShortCode,
  1996. bool isOldAgent = false,
  1997. String? phone,
  1998. String? email,
  1999. String? userCode,
  2000. String? userName,
  2001. String? fullName,
  2002. String? headImageUrl,
  2003. String? displayName,
  2004. DateTime? createTime,
  2005. DateTime? updateTime,
  2006. }) : super(
  2007. nickName: nickName,
  2008. organizationCode: organizationCode,
  2009. organizationName: organizationName,
  2010. departmentCode: departmentCode,
  2011. departmentName: departmentName,
  2012. departmentShortCode: departmentShortCode,
  2013. rootOrganizationCode: rootOrganizationCode,
  2014. rootOrganizationName: rootOrganizationName,
  2015. authorityGroups: authorityGroups,
  2016. bindDevices: bindDevices,
  2017. bindDeviceOrganizations: bindDeviceOrganizations,
  2018. lastIP: lastIP,
  2019. logintimes: logintimes,
  2020. userState: userState,
  2021. roleCodes: roleCodes,
  2022. rankCodes: rankCodes,
  2023. positionCodes: positionCodes,
  2024. applyState: applyState,
  2025. rankName: rankName,
  2026. positionName: positionName,
  2027. isDirector: isDirector,
  2028. fieldList: fieldList,
  2029. deletePatientCodes: deletePatientCodes,
  2030. isBatchExportDiagnoseData: isBatchExportDiagnoseData,
  2031. bindAssistantUserCode: bindAssistantUserCode,
  2032. bindAssistantDoctorUserCode: bindAssistantDoctorUserCode,
  2033. loginLockInfo: loginLockInfo,
  2034. signature: signature,
  2035. language: language,
  2036. enableReportLabel: enableReportLabel,
  2037. associatedInfos: associatedInfos,
  2038. commonPlatformUserId: commonPlatformUserId,
  2039. bindEmergencyDeviceCode: bindEmergencyDeviceCode,
  2040. bindEmergencyExpertCode: bindEmergencyExpertCode,
  2041. dashboardOrgCodes: dashboardOrgCodes,
  2042. organizationShortCode: organizationShortCode,
  2043. rootOrganizationShortCode: rootOrganizationShortCode,
  2044. isOldAgent: isOldAgent,
  2045. phone: phone,
  2046. email: email,
  2047. userCode: userCode,
  2048. userName: userName,
  2049. fullName: fullName,
  2050. headImageUrl: headImageUrl,
  2051. displayName: displayName,
  2052. createTime: createTime,
  2053. updateTime: updateTime,
  2054. );
  2055. factory SignUpRequest.fromJson(Map<String, dynamic> map) {
  2056. return SignUpRequest(
  2057. nickName: map['NickName'],
  2058. organizationCode: map['OrganizationCode'],
  2059. organizationName: map['OrganizationName'],
  2060. departmentCode: map['DepartmentCode'],
  2061. departmentName: map['DepartmentName'],
  2062. departmentShortCode: map['DepartmentShortCode'],
  2063. rootOrganizationCode: map['RootOrganizationCode'],
  2064. rootOrganizationName: map['RootOrganizationName'],
  2065. authorityGroups: map['AuthorityGroups']?.cast<String>().toList(),
  2066. bindDevices: map['BindDevices']?.cast<String>().toList(),
  2067. bindDeviceOrganizations: map['BindDeviceOrganizations']?.cast<String>().toList(),
  2068. lastIP: map['LastIP'],
  2069. logintimes: map['Logintimes'],
  2070. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  2071. roleCodes: map['RoleCodes']?.cast<String>().toList(),
  2072. rankCodes: map['RankCodes']?.cast<String>().toList(),
  2073. positionCodes: map['PositionCodes']?.cast<String>().toList(),
  2074. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  2075. rankName: map['RankName'],
  2076. positionName: map['PositionName'],
  2077. isDirector: map['IsDirector'],
  2078. fieldList: map['FieldList']?.cast<String>().toList(),
  2079. deletePatientCodes: map['DeletePatientCodes']?.cast<String>().toList(),
  2080. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  2081. bindAssistantUserCode: map['BindAssistantUserCode'],
  2082. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  2083. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  2084. signature: map['Signature'],
  2085. language: map['Language'],
  2086. enableReportLabel: map['EnableReportLabel'],
  2087. associatedInfos: map['AssociatedInfos'] != null ? (map['AssociatedInfos'] as List).map((e)=>AssociatedInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2088. commonPlatformUserId: map['CommonPlatformUserId'],
  2089. bindEmergencyDeviceCode: map['BindEmergencyDeviceCode'],
  2090. bindEmergencyExpertCode: map['BindEmergencyExpertCode'],
  2091. dashboardOrgCodes: map['DashboardOrgCodes']?.cast<String>().toList(),
  2092. organizationShortCode: map['OrganizationShortCode'],
  2093. rootOrganizationShortCode: map['RootOrganizationShortCode'],
  2094. isOldAgent: map['IsOldAgent'],
  2095. phone: map['Phone'],
  2096. email: map['Email'],
  2097. userCode: map['UserCode'],
  2098. userName: map['UserName'],
  2099. fullName: map['FullName'],
  2100. headImageUrl: map['HeadImageUrl'],
  2101. displayName: map['DisplayName'],
  2102. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  2103. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  2104. );
  2105. }
  2106. Map<String, dynamic> toJson() {
  2107. final map = super.toJson();
  2108. return map;
  2109. }
  2110. }
  2111. class UpdateThesaurusCodeRequest extends TokenRequest{
  2112. String? thesaurusCode;
  2113. UpdateThesaurusCodeRequest({
  2114. this.thesaurusCode,
  2115. String? token,
  2116. }) : super(
  2117. token: token,
  2118. );
  2119. factory UpdateThesaurusCodeRequest.fromJson(Map<String, dynamic> map) {
  2120. return UpdateThesaurusCodeRequest(
  2121. thesaurusCode: map['ThesaurusCode'],
  2122. token: map['Token'],
  2123. );
  2124. }
  2125. Map<String, dynamic> toJson() {
  2126. final map = super.toJson();
  2127. if(thesaurusCode != null)
  2128. map['ThesaurusCode'] = thesaurusCode;
  2129. return map;
  2130. }
  2131. }
  2132. enum AnnouncementStatusEnum {
  2133. placeHolder_0,
  2134. Released,
  2135. Pending,
  2136. }
  2137. class AnnouncementInfoDTO extends BaseDTO{
  2138. String? code;
  2139. AnnouncementTypeEnum announcementType;
  2140. AnnouncementStatusEnum announcementStatus;
  2141. List<AnnouncementLanguageConfigDTO>? languageConfigs;
  2142. AnnouncementInfoDTO({
  2143. this.code,
  2144. this.announcementType = AnnouncementTypeEnum.Broadcast,
  2145. this.announcementStatus = AnnouncementStatusEnum.Released,
  2146. this.languageConfigs,
  2147. DateTime? createTime,
  2148. DateTime? updateTime,
  2149. }) : super(
  2150. createTime: createTime,
  2151. updateTime: updateTime,
  2152. );
  2153. factory AnnouncementInfoDTO.fromJson(Map<String, dynamic> map) {
  2154. return AnnouncementInfoDTO(
  2155. code: map['Code'],
  2156. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  2157. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  2158. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>AnnouncementLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2159. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  2160. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  2161. );
  2162. }
  2163. Map<String, dynamic> toJson() {
  2164. final map = super.toJson();
  2165. if(code != null)
  2166. map['Code'] = code;
  2167. map['AnnouncementType'] = announcementType.index;
  2168. map['AnnouncementStatus'] = announcementStatus.index;
  2169. if(languageConfigs != null)
  2170. map['LanguageConfigs'] = languageConfigs;
  2171. return map;
  2172. }
  2173. }
  2174. class AddAnnouncementRequest extends AnnouncementInfoDTO{
  2175. AddAnnouncementRequest({
  2176. String? code,
  2177. AnnouncementTypeEnum announcementType = AnnouncementTypeEnum.Broadcast,
  2178. AnnouncementStatusEnum announcementStatus = AnnouncementStatusEnum.Released,
  2179. List<AnnouncementLanguageConfigDTO>? languageConfigs,
  2180. DateTime? createTime,
  2181. DateTime? updateTime,
  2182. }) : super(
  2183. code: code,
  2184. announcementType: announcementType,
  2185. announcementStatus: announcementStatus,
  2186. languageConfigs: languageConfigs,
  2187. createTime: createTime,
  2188. updateTime: updateTime,
  2189. );
  2190. factory AddAnnouncementRequest.fromJson(Map<String, dynamic> map) {
  2191. return AddAnnouncementRequest(
  2192. code: map['Code'],
  2193. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  2194. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  2195. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>AnnouncementLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2196. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  2197. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  2198. );
  2199. }
  2200. Map<String, dynamic> toJson() {
  2201. final map = super.toJson();
  2202. return map;
  2203. }
  2204. }
  2205. class UpdateAnnouncementRequest extends AnnouncementInfoDTO{
  2206. UpdateAnnouncementRequest({
  2207. String? code,
  2208. AnnouncementTypeEnum announcementType = AnnouncementTypeEnum.Broadcast,
  2209. AnnouncementStatusEnum announcementStatus = AnnouncementStatusEnum.Released,
  2210. List<AnnouncementLanguageConfigDTO>? languageConfigs,
  2211. DateTime? createTime,
  2212. DateTime? updateTime,
  2213. }) : super(
  2214. code: code,
  2215. announcementType: announcementType,
  2216. announcementStatus: announcementStatus,
  2217. languageConfigs: languageConfigs,
  2218. createTime: createTime,
  2219. updateTime: updateTime,
  2220. );
  2221. factory UpdateAnnouncementRequest.fromJson(Map<String, dynamic> map) {
  2222. return UpdateAnnouncementRequest(
  2223. code: map['Code'],
  2224. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  2225. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  2226. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>AnnouncementLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2227. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  2228. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  2229. );
  2230. }
  2231. Map<String, dynamic> toJson() {
  2232. final map = super.toJson();
  2233. return map;
  2234. }
  2235. }
  2236. class AddContentConfigRequest extends TokenRequest{
  2237. String? bindTypeKey;
  2238. String? bindTypeValue;
  2239. String? bindContentKey;
  2240. String? bindContentValue;
  2241. AddContentConfigRequest({
  2242. this.bindTypeKey,
  2243. this.bindTypeValue,
  2244. this.bindContentKey,
  2245. this.bindContentValue,
  2246. String? token,
  2247. }) : super(
  2248. token: token,
  2249. );
  2250. factory AddContentConfigRequest.fromJson(Map<String, dynamic> map) {
  2251. return AddContentConfigRequest(
  2252. bindTypeKey: map['BindTypeKey'],
  2253. bindTypeValue: map['BindTypeValue'],
  2254. bindContentKey: map['BindContentKey'],
  2255. bindContentValue: map['BindContentValue'],
  2256. token: map['Token'],
  2257. );
  2258. }
  2259. Map<String, dynamic> toJson() {
  2260. final map = super.toJson();
  2261. if(bindTypeKey != null)
  2262. map['BindTypeKey'] = bindTypeKey;
  2263. if(bindTypeValue != null)
  2264. map['BindTypeValue'] = bindTypeValue;
  2265. if(bindContentKey != null)
  2266. map['BindContentKey'] = bindContentKey;
  2267. if(bindContentValue != null)
  2268. map['BindContentValue'] = bindContentValue;
  2269. return map;
  2270. }
  2271. }
  2272. enum DeviceVideoOutputTypeEnum {
  2273. MergedVideo,
  2274. Desktop,
  2275. Camera,
  2276. }
  2277. class AddDeviceOutputConfigRequest extends TokenRequest{
  2278. DeviceVideoOutputTypeEnum deviceVideoOutputType;
  2279. int videoWidth;
  2280. int videoHeight;
  2281. AddDeviceOutputConfigRequest({
  2282. this.deviceVideoOutputType = DeviceVideoOutputTypeEnum.MergedVideo,
  2283. this.videoWidth = 0,
  2284. this.videoHeight = 0,
  2285. String? token,
  2286. }) : super(
  2287. token: token,
  2288. );
  2289. factory AddDeviceOutputConfigRequest.fromJson(Map<String, dynamic> map) {
  2290. return AddDeviceOutputConfigRequest(
  2291. deviceVideoOutputType: DeviceVideoOutputTypeEnum.values.firstWhere((e) => e.index == map['DeviceVideoOutputType']),
  2292. videoWidth: map['VideoWidth'],
  2293. videoHeight: map['VideoHeight'],
  2294. token: map['Token'],
  2295. );
  2296. }
  2297. Map<String, dynamic> toJson() {
  2298. final map = super.toJson();
  2299. map['DeviceVideoOutputType'] = deviceVideoOutputType.index;
  2300. map['VideoWidth'] = videoWidth;
  2301. map['VideoHeight'] = videoHeight;
  2302. return map;
  2303. }
  2304. }
  2305. class AdminApplyCourseRequest extends TokenRequest{
  2306. String? name;
  2307. String? courseIntro;
  2308. String? teacherCode;
  2309. String? cover;
  2310. DateTime? startTime;
  2311. int duration;
  2312. CourseTypeEnum courseType;
  2313. CourseAudienceTypeEnum audienceType;
  2314. String? coursewareToken;
  2315. String? teacherName;
  2316. CourseViewRangeEnum viewRange;
  2317. List<String>? caseLabelCodes;
  2318. List<String>? courseLabelCodes;
  2319. List<String>? userGroupCodes;
  2320. double price;
  2321. List<String>? courseVideoCodes;
  2322. List<CourseExaminationDTO>? bindExams;
  2323. bool isSmallClass;
  2324. List<String>? assistants;
  2325. List<String>? experts;
  2326. bool isAgentCourse;
  2327. List<String>? courseAlbumCodes;
  2328. bool isStick;
  2329. int sort;
  2330. AdminApplyCourseRequest({
  2331. this.name,
  2332. this.courseIntro,
  2333. this.teacherCode,
  2334. this.cover,
  2335. this.startTime,
  2336. this.duration = 0,
  2337. this.courseType = CourseTypeEnum.Unknown,
  2338. this.audienceType = CourseAudienceTypeEnum.Unknown,
  2339. this.coursewareToken,
  2340. this.teacherName,
  2341. this.viewRange = CourseViewRangeEnum.All,
  2342. this.caseLabelCodes,
  2343. this.courseLabelCodes,
  2344. this.userGroupCodes,
  2345. this.price = 0,
  2346. this.courseVideoCodes,
  2347. this.bindExams,
  2348. this.isSmallClass = false,
  2349. this.assistants,
  2350. this.experts,
  2351. this.isAgentCourse = false,
  2352. this.courseAlbumCodes,
  2353. this.isStick = false,
  2354. this.sort = 0,
  2355. String? token,
  2356. }) : super(
  2357. token: token,
  2358. );
  2359. factory AdminApplyCourseRequest.fromJson(Map<String, dynamic> map) {
  2360. return AdminApplyCourseRequest(
  2361. name: map['Name'],
  2362. courseIntro: map['CourseIntro'],
  2363. teacherCode: map['TeacherCode'],
  2364. cover: map['Cover'],
  2365. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  2366. duration: map['Duration'],
  2367. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  2368. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  2369. coursewareToken: map['CoursewareToken'],
  2370. teacherName: map['TeacherName'],
  2371. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  2372. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  2373. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  2374. userGroupCodes: map['UserGroupCodes']?.cast<String>().toList(),
  2375. price: double.parse(map['Price'].toString()),
  2376. courseVideoCodes: map['CourseVideoCodes']?.cast<String>().toList(),
  2377. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2378. isSmallClass: map['IsSmallClass'],
  2379. assistants: map['Assistants']?.cast<String>().toList(),
  2380. experts: map['Experts']?.cast<String>().toList(),
  2381. isAgentCourse: map['IsAgentCourse'],
  2382. courseAlbumCodes: map['CourseAlbumCodes']?.cast<String>().toList(),
  2383. isStick: map['IsStick'],
  2384. sort: map['Sort'],
  2385. token: map['Token'],
  2386. );
  2387. }
  2388. Map<String, dynamic> toJson() {
  2389. final map = super.toJson();
  2390. if(name != null)
  2391. map['Name'] = name;
  2392. if(courseIntro != null)
  2393. map['CourseIntro'] = courseIntro;
  2394. if(teacherCode != null)
  2395. map['TeacherCode'] = teacherCode;
  2396. if(cover != null)
  2397. map['Cover'] = cover;
  2398. if(startTime != null)
  2399. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  2400. map['Duration'] = duration;
  2401. map['CourseType'] = courseType.index;
  2402. map['AudienceType'] = audienceType.index;
  2403. if(coursewareToken != null)
  2404. map['CoursewareToken'] = coursewareToken;
  2405. if(teacherName != null)
  2406. map['TeacherName'] = teacherName;
  2407. map['ViewRange'] = viewRange.index;
  2408. if(caseLabelCodes != null)
  2409. map['CaseLabelCodes'] = caseLabelCodes;
  2410. if(courseLabelCodes != null)
  2411. map['CourseLabelCodes'] = courseLabelCodes;
  2412. if(userGroupCodes != null)
  2413. map['UserGroupCodes'] = userGroupCodes;
  2414. map['Price'] = price;
  2415. if(courseVideoCodes != null)
  2416. map['CourseVideoCodes'] = courseVideoCodes;
  2417. if(bindExams != null)
  2418. map['BindExams'] = bindExams;
  2419. map['IsSmallClass'] = isSmallClass;
  2420. if(assistants != null)
  2421. map['Assistants'] = assistants;
  2422. if(experts != null)
  2423. map['Experts'] = experts;
  2424. map['IsAgentCourse'] = isAgentCourse;
  2425. if(courseAlbumCodes != null)
  2426. map['CourseAlbumCodes'] = courseAlbumCodes;
  2427. map['IsStick'] = isStick;
  2428. map['Sort'] = sort;
  2429. return map;
  2430. }
  2431. }
  2432. class AdminApprovalCourseRequest extends TokenRequest{
  2433. String? code;
  2434. CourseStatusEnum status;
  2435. AdminApprovalCourseRequest({
  2436. this.code,
  2437. this.status = CourseStatusEnum.Unknown,
  2438. String? token,
  2439. }) : super(
  2440. token: token,
  2441. );
  2442. factory AdminApprovalCourseRequest.fromJson(Map<String, dynamic> map) {
  2443. return AdminApprovalCourseRequest(
  2444. code: map['Code'],
  2445. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  2446. token: map['Token'],
  2447. );
  2448. }
  2449. Map<String, dynamic> toJson() {
  2450. final map = super.toJson();
  2451. if(code != null)
  2452. map['Code'] = code;
  2453. map['Status'] = status.index;
  2454. return map;
  2455. }
  2456. }
  2457. class AdminDeleteCourseByCodeRequest extends TokenRequest{
  2458. String? code;
  2459. AdminDeleteCourseByCodeRequest({
  2460. this.code,
  2461. String? token,
  2462. }) : super(
  2463. token: token,
  2464. );
  2465. factory AdminDeleteCourseByCodeRequest.fromJson(Map<String, dynamic> map) {
  2466. return AdminDeleteCourseByCodeRequest(
  2467. code: map['Code'],
  2468. token: map['Token'],
  2469. );
  2470. }
  2471. Map<String, dynamic> toJson() {
  2472. final map = super.toJson();
  2473. if(code != null)
  2474. map['Code'] = code;
  2475. return map;
  2476. }
  2477. }
  2478. class AdminFindCoursePagesRequest extends PageRequest{
  2479. String? keyword;
  2480. CourseStatusEnum status;
  2481. String? languageCode;
  2482. CourseTypeEnum courseType;
  2483. CourseAudienceTypeEnum audienceType;
  2484. AdminFindCoursePagesRequest({
  2485. this.keyword,
  2486. this.status = CourseStatusEnum.Unknown,
  2487. this.languageCode,
  2488. this.courseType = CourseTypeEnum.Unknown,
  2489. this.audienceType = CourseAudienceTypeEnum.Unknown,
  2490. int pageIndex = 0,
  2491. int pageSize = 0,
  2492. String? token,
  2493. }) : super(
  2494. pageIndex: pageIndex,
  2495. pageSize: pageSize,
  2496. token: token,
  2497. );
  2498. factory AdminFindCoursePagesRequest.fromJson(Map<String, dynamic> map) {
  2499. return AdminFindCoursePagesRequest(
  2500. keyword: map['Keyword'],
  2501. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  2502. languageCode: map['LanguageCode'],
  2503. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  2504. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  2505. pageIndex: map['PageIndex'],
  2506. pageSize: map['PageSize'],
  2507. token: map['Token'],
  2508. );
  2509. }
  2510. Map<String, dynamic> toJson() {
  2511. final map = super.toJson();
  2512. if(keyword != null)
  2513. map['Keyword'] = keyword;
  2514. map['Status'] = status.index;
  2515. if(languageCode != null)
  2516. map['LanguageCode'] = languageCode;
  2517. map['CourseType'] = courseType.index;
  2518. map['AudienceType'] = audienceType.index;
  2519. return map;
  2520. }
  2521. }
  2522. class AdminUpdateCourseRequest extends TokenRequest{
  2523. String? code;
  2524. String? name;
  2525. String? courseIntro;
  2526. String? teacherCode;
  2527. String? cover;
  2528. DateTime? startTime;
  2529. int duration;
  2530. CourseTypeEnum courseType;
  2531. CourseAudienceTypeEnum audienceType;
  2532. String? coursewareToken;
  2533. String? teacherName;
  2534. CourseViewRangeEnum viewRange;
  2535. List<String>? caseLabelCodes;
  2536. List<String>? courseLabelCodes;
  2537. List<String>? userGroupCodes;
  2538. double price;
  2539. List<String>? courseVideoCodes;
  2540. List<CourseExaminationDTO>? bindExams;
  2541. bool isSmallClass;
  2542. List<String>? assistants;
  2543. List<String>? experts;
  2544. bool isAgentCourse;
  2545. List<String>? courseAlbumCodes;
  2546. bool isStick;
  2547. int sort;
  2548. AdminUpdateCourseRequest({
  2549. this.code,
  2550. this.name,
  2551. this.courseIntro,
  2552. this.teacherCode,
  2553. this.cover,
  2554. this.startTime,
  2555. this.duration = 0,
  2556. this.courseType = CourseTypeEnum.Unknown,
  2557. this.audienceType = CourseAudienceTypeEnum.Unknown,
  2558. this.coursewareToken,
  2559. this.teacherName,
  2560. this.viewRange = CourseViewRangeEnum.All,
  2561. this.caseLabelCodes,
  2562. this.courseLabelCodes,
  2563. this.userGroupCodes,
  2564. this.price = 0,
  2565. this.courseVideoCodes,
  2566. this.bindExams,
  2567. this.isSmallClass = false,
  2568. this.assistants,
  2569. this.experts,
  2570. this.isAgentCourse = false,
  2571. this.courseAlbumCodes,
  2572. this.isStick = false,
  2573. this.sort = 0,
  2574. String? token,
  2575. }) : super(
  2576. token: token,
  2577. );
  2578. factory AdminUpdateCourseRequest.fromJson(Map<String, dynamic> map) {
  2579. return AdminUpdateCourseRequest(
  2580. code: map['Code'],
  2581. name: map['Name'],
  2582. courseIntro: map['CourseIntro'],
  2583. teacherCode: map['TeacherCode'],
  2584. cover: map['Cover'],
  2585. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  2586. duration: map['Duration'],
  2587. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  2588. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  2589. coursewareToken: map['CoursewareToken'],
  2590. teacherName: map['TeacherName'],
  2591. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  2592. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  2593. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  2594. userGroupCodes: map['UserGroupCodes']?.cast<String>().toList(),
  2595. price: double.parse(map['Price'].toString()),
  2596. courseVideoCodes: map['CourseVideoCodes']?.cast<String>().toList(),
  2597. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2598. isSmallClass: map['IsSmallClass'],
  2599. assistants: map['Assistants']?.cast<String>().toList(),
  2600. experts: map['Experts']?.cast<String>().toList(),
  2601. isAgentCourse: map['IsAgentCourse'],
  2602. courseAlbumCodes: map['CourseAlbumCodes']?.cast<String>().toList(),
  2603. isStick: map['IsStick'],
  2604. sort: map['Sort'],
  2605. token: map['Token'],
  2606. );
  2607. }
  2608. Map<String, dynamic> toJson() {
  2609. final map = super.toJson();
  2610. if(code != null)
  2611. map['Code'] = code;
  2612. if(name != null)
  2613. map['Name'] = name;
  2614. if(courseIntro != null)
  2615. map['CourseIntro'] = courseIntro;
  2616. if(teacherCode != null)
  2617. map['TeacherCode'] = teacherCode;
  2618. if(cover != null)
  2619. map['Cover'] = cover;
  2620. if(startTime != null)
  2621. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  2622. map['Duration'] = duration;
  2623. map['CourseType'] = courseType.index;
  2624. map['AudienceType'] = audienceType.index;
  2625. if(coursewareToken != null)
  2626. map['CoursewareToken'] = coursewareToken;
  2627. if(teacherName != null)
  2628. map['TeacherName'] = teacherName;
  2629. map['ViewRange'] = viewRange.index;
  2630. if(caseLabelCodes != null)
  2631. map['CaseLabelCodes'] = caseLabelCodes;
  2632. if(courseLabelCodes != null)
  2633. map['CourseLabelCodes'] = courseLabelCodes;
  2634. if(userGroupCodes != null)
  2635. map['UserGroupCodes'] = userGroupCodes;
  2636. map['Price'] = price;
  2637. if(courseVideoCodes != null)
  2638. map['CourseVideoCodes'] = courseVideoCodes;
  2639. if(bindExams != null)
  2640. map['BindExams'] = bindExams;
  2641. map['IsSmallClass'] = isSmallClass;
  2642. if(assistants != null)
  2643. map['Assistants'] = assistants;
  2644. if(experts != null)
  2645. map['Experts'] = experts;
  2646. map['IsAgentCourse'] = isAgentCourse;
  2647. if(courseAlbumCodes != null)
  2648. map['CourseAlbumCodes'] = courseAlbumCodes;
  2649. map['IsStick'] = isStick;
  2650. map['Sort'] = sort;
  2651. return map;
  2652. }
  2653. }
  2654. class AdminUpdateCourseBindExamsRequest extends TokenRequest{
  2655. String? code;
  2656. List<CourseExaminationDTO>? bindExams;
  2657. AdminUpdateCourseBindExamsRequest({
  2658. this.code,
  2659. this.bindExams,
  2660. String? token,
  2661. }) : super(
  2662. token: token,
  2663. );
  2664. factory AdminUpdateCourseBindExamsRequest.fromJson(Map<String, dynamic> map) {
  2665. return AdminUpdateCourseBindExamsRequest(
  2666. code: map['Code'],
  2667. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2668. token: map['Token'],
  2669. );
  2670. }
  2671. Map<String, dynamic> toJson() {
  2672. final map = super.toJson();
  2673. if(code != null)
  2674. map['Code'] = code;
  2675. if(bindExams != null)
  2676. map['BindExams'] = bindExams;
  2677. return map;
  2678. }
  2679. }
  2680. class AssignedAdminsToOrganizationsRequest extends TokenRequest{
  2681. List<String>? assignedAdmins;
  2682. List<String>? organizationCodes;
  2683. AssignedAdminsToOrganizationsRequest({
  2684. this.assignedAdmins,
  2685. this.organizationCodes,
  2686. String? token,
  2687. }) : super(
  2688. token: token,
  2689. );
  2690. factory AssignedAdminsToOrganizationsRequest.fromJson(Map<String, dynamic> map) {
  2691. return AssignedAdminsToOrganizationsRequest(
  2692. assignedAdmins: map['AssignedAdmins']?.cast<String>().toList(),
  2693. organizationCodes: map['OrganizationCodes']?.cast<String>().toList(),
  2694. token: map['Token'],
  2695. );
  2696. }
  2697. Map<String, dynamic> toJson() {
  2698. final map = super.toJson();
  2699. if(assignedAdmins != null)
  2700. map['AssignedAdmins'] = assignedAdmins;
  2701. if(organizationCodes != null)
  2702. map['OrganizationCodes'] = organizationCodes;
  2703. return map;
  2704. }
  2705. }
  2706. class ClearLogOperateDTO {
  2707. String? serverHost;
  2708. DateTime? lastClearTime;
  2709. DateTime? lastClearOperateTime;
  2710. ClearLogOperateDTO({
  2711. this.serverHost,
  2712. this.lastClearTime,
  2713. this.lastClearOperateTime,
  2714. });
  2715. factory ClearLogOperateDTO.fromJson(Map<String, dynamic> map) {
  2716. return ClearLogOperateDTO(
  2717. serverHost: map['ServerHost'],
  2718. lastClearTime: map['LastClearTime'] != null ? DateTime.parse(map['LastClearTime']) : null,
  2719. lastClearOperateTime: map['LastClearOperateTime'] != null ? DateTime.parse(map['LastClearOperateTime']) : null,
  2720. );
  2721. }
  2722. Map<String, dynamic> toJson() {
  2723. final map = Map<String, dynamic>();
  2724. if(serverHost != null) {
  2725. map['ServerHost'] = serverHost;
  2726. }
  2727. if(lastClearTime != null) {
  2728. map['LastClearTime'] = JsonRpcUtils.dateFormat(lastClearTime!);
  2729. }
  2730. if(lastClearOperateTime != null) {
  2731. map['LastClearOperateTime'] = JsonRpcUtils.dateFormat(lastClearOperateTime!);
  2732. }
  2733. return map;
  2734. }
  2735. }
  2736. class AdminInfoDTO extends BaseDTO{
  2737. String? adminCode;
  2738. String? fatherCode;
  2739. String? adminName;
  2740. String? fullName;
  2741. String? secretPassword;
  2742. String? headImageToken;
  2743. String? licenseKey;
  2744. String? lastIP;
  2745. String? phone;
  2746. String? email;
  2747. List<String>? roleCodes;
  2748. LoginLockInfoDTO? loginLockInfo;
  2749. DateTime? passwordUpdateTime;
  2750. List<String>? passwordRecords;
  2751. List<ClearLogOperateDTO>? clearLogOperateList;
  2752. AdminInfoDTO({
  2753. this.adminCode,
  2754. this.fatherCode,
  2755. this.adminName,
  2756. this.fullName,
  2757. this.secretPassword,
  2758. this.headImageToken,
  2759. this.licenseKey,
  2760. this.lastIP,
  2761. this.phone,
  2762. this.email,
  2763. this.roleCodes,
  2764. this.loginLockInfo,
  2765. this.passwordUpdateTime,
  2766. this.passwordRecords,
  2767. this.clearLogOperateList,
  2768. DateTime? createTime,
  2769. DateTime? updateTime,
  2770. }) : super(
  2771. createTime: createTime,
  2772. updateTime: updateTime,
  2773. );
  2774. factory AdminInfoDTO.fromJson(Map<String, dynamic> map) {
  2775. return AdminInfoDTO(
  2776. adminCode: map['AdminCode'],
  2777. fatherCode: map['FatherCode'],
  2778. adminName: map['AdminName'],
  2779. fullName: map['FullName'],
  2780. secretPassword: map['SecretPassword'],
  2781. headImageToken: map['HeadImageToken'],
  2782. licenseKey: map['LicenseKey'],
  2783. lastIP: map['LastIP'],
  2784. phone: map['Phone'],
  2785. email: map['Email'],
  2786. roleCodes: map['RoleCodes']?.cast<String>().toList(),
  2787. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  2788. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  2789. passwordRecords: map['PasswordRecords']?.cast<String>().toList(),
  2790. clearLogOperateList: map['ClearLogOperateList'] != null ? (map['ClearLogOperateList'] as List).map((e)=>ClearLogOperateDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2791. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  2792. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  2793. );
  2794. }
  2795. Map<String, dynamic> toJson() {
  2796. final map = super.toJson();
  2797. if(adminCode != null)
  2798. map['AdminCode'] = adminCode;
  2799. if(fatherCode != null)
  2800. map['FatherCode'] = fatherCode;
  2801. if(adminName != null)
  2802. map['AdminName'] = adminName;
  2803. if(fullName != null)
  2804. map['FullName'] = fullName;
  2805. if(secretPassword != null)
  2806. map['SecretPassword'] = secretPassword;
  2807. if(headImageToken != null)
  2808. map['HeadImageToken'] = headImageToken;
  2809. if(licenseKey != null)
  2810. map['LicenseKey'] = licenseKey;
  2811. if(lastIP != null)
  2812. map['LastIP'] = lastIP;
  2813. if(phone != null)
  2814. map['Phone'] = phone;
  2815. if(email != null)
  2816. map['Email'] = email;
  2817. if(roleCodes != null)
  2818. map['RoleCodes'] = roleCodes;
  2819. if(loginLockInfo != null)
  2820. map['LoginLockInfo'] = loginLockInfo;
  2821. if(passwordUpdateTime != null)
  2822. map['PasswordUpdateTime'] = JsonRpcUtils.dateFormat(passwordUpdateTime!);
  2823. if(passwordRecords != null)
  2824. map['PasswordRecords'] = passwordRecords;
  2825. if(clearLogOperateList != null)
  2826. map['ClearLogOperateList'] = clearLogOperateList;
  2827. return map;
  2828. }
  2829. }
  2830. enum AdminMigratoryRoleEnum {
  2831. PrimaryAdmin01,
  2832. GeneralAdmin,
  2833. }
  2834. class AdminMigratoryInfo extends AdminInfoDTO{
  2835. AdminMigratoryRoleEnum adminRole;
  2836. bool isDelete;
  2837. AdminMigratoryInfo({
  2838. this.adminRole = AdminMigratoryRoleEnum.PrimaryAdmin01,
  2839. this.isDelete = false,
  2840. String? adminCode,
  2841. String? fatherCode,
  2842. String? adminName,
  2843. String? fullName,
  2844. String? secretPassword,
  2845. String? headImageToken,
  2846. String? licenseKey,
  2847. String? lastIP,
  2848. String? phone,
  2849. String? email,
  2850. List<String>? roleCodes,
  2851. LoginLockInfoDTO? loginLockInfo,
  2852. DateTime? passwordUpdateTime,
  2853. List<String>? passwordRecords,
  2854. List<ClearLogOperateDTO>? clearLogOperateList,
  2855. DateTime? createTime,
  2856. DateTime? updateTime,
  2857. }) : super(
  2858. adminCode: adminCode,
  2859. fatherCode: fatherCode,
  2860. adminName: adminName,
  2861. fullName: fullName,
  2862. secretPassword: secretPassword,
  2863. headImageToken: headImageToken,
  2864. licenseKey: licenseKey,
  2865. lastIP: lastIP,
  2866. phone: phone,
  2867. email: email,
  2868. roleCodes: roleCodes,
  2869. loginLockInfo: loginLockInfo,
  2870. passwordUpdateTime: passwordUpdateTime,
  2871. passwordRecords: passwordRecords,
  2872. clearLogOperateList: clearLogOperateList,
  2873. createTime: createTime,
  2874. updateTime: updateTime,
  2875. );
  2876. factory AdminMigratoryInfo.fromJson(Map<String, dynamic> map) {
  2877. return AdminMigratoryInfo(
  2878. adminRole: AdminMigratoryRoleEnum.values.firstWhere((e) => e.index == map['AdminRole']),
  2879. isDelete: map['IsDelete'],
  2880. adminCode: map['AdminCode'],
  2881. fatherCode: map['FatherCode'],
  2882. adminName: map['AdminName'],
  2883. fullName: map['FullName'],
  2884. secretPassword: map['SecretPassword'],
  2885. headImageToken: map['HeadImageToken'],
  2886. licenseKey: map['LicenseKey'],
  2887. lastIP: map['LastIP'],
  2888. phone: map['Phone'],
  2889. email: map['Email'],
  2890. roleCodes: map['RoleCodes']?.cast<String>().toList(),
  2891. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  2892. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  2893. passwordRecords: map['PasswordRecords']?.cast<String>().toList(),
  2894. clearLogOperateList: map['ClearLogOperateList'] != null ? (map['ClearLogOperateList'] as List).map((e)=>ClearLogOperateDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2895. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  2896. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  2897. );
  2898. }
  2899. Map<String, dynamic> toJson() {
  2900. final map = super.toJson();
  2901. map['AdminRole'] = adminRole.index;
  2902. map['IsDelete'] = isDelete;
  2903. return map;
  2904. }
  2905. }
  2906. class BatchInsertAdminRequest extends TokenRequest{
  2907. SyncDBEnum syncType;
  2908. List<AdminMigratoryInfo>? adminMigratorys;
  2909. BatchInsertAdminRequest({
  2910. this.syncType = SyncDBEnum.Migrate,
  2911. this.adminMigratorys,
  2912. String? token,
  2913. }) : super(
  2914. token: token,
  2915. );
  2916. factory BatchInsertAdminRequest.fromJson(Map<String, dynamic> map) {
  2917. return BatchInsertAdminRequest(
  2918. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  2919. adminMigratorys: map['AdminMigratorys'] != null ? (map['AdminMigratorys'] as List).map((e)=>AdminMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  2920. token: map['Token'],
  2921. );
  2922. }
  2923. Map<String, dynamic> toJson() {
  2924. final map = super.toJson();
  2925. map['SyncType'] = syncType.index;
  2926. if(adminMigratorys != null)
  2927. map['AdminMigratorys'] = adminMigratorys;
  2928. return map;
  2929. }
  2930. }
  2931. class CourseLabelMigratoryInfo extends BaseDTO{
  2932. bool isDelete;
  2933. String? code;
  2934. List<LabelLanguageConfigDTO>? labelLanguageConfigs;
  2935. OrganizationPatientTypeEnum useObjectType;
  2936. LabelTypeEnum type;
  2937. CourseLabelMigratoryInfo({
  2938. this.isDelete = false,
  2939. this.code,
  2940. this.labelLanguageConfigs,
  2941. this.useObjectType = OrganizationPatientTypeEnum.Person,
  2942. this.type = LabelTypeEnum.Unknown,
  2943. DateTime? createTime,
  2944. DateTime? updateTime,
  2945. }) : super(
  2946. createTime: createTime,
  2947. updateTime: updateTime,
  2948. );
  2949. factory CourseLabelMigratoryInfo.fromJson(Map<String, dynamic> map) {
  2950. return CourseLabelMigratoryInfo(
  2951. isDelete: map['IsDelete'],
  2952. code: map['Code'],
  2953. labelLanguageConfigs: map['LabelLanguageConfigs'] != null ? (map['LabelLanguageConfigs'] as List).map((e)=>LabelLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2954. useObjectType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['UseObjectType']),
  2955. type: LabelTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  2956. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  2957. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  2958. );
  2959. }
  2960. Map<String, dynamic> toJson() {
  2961. final map = super.toJson();
  2962. map['IsDelete'] = isDelete;
  2963. if(code != null)
  2964. map['Code'] = code;
  2965. if(labelLanguageConfigs != null)
  2966. map['LabelLanguageConfigs'] = labelLanguageConfigs;
  2967. map['UseObjectType'] = useObjectType.index;
  2968. map['Type'] = type.index;
  2969. return map;
  2970. }
  2971. }
  2972. class BatchInsertCourseLabelRequest extends TokenRequest{
  2973. SyncDBEnum syncType;
  2974. List<CourseLabelMigratoryInfo>? courseLabelMigratorys;
  2975. BatchInsertCourseLabelRequest({
  2976. this.syncType = SyncDBEnum.Migrate,
  2977. this.courseLabelMigratorys,
  2978. String? token,
  2979. }) : super(
  2980. token: token,
  2981. );
  2982. factory BatchInsertCourseLabelRequest.fromJson(Map<String, dynamic> map) {
  2983. return BatchInsertCourseLabelRequest(
  2984. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  2985. courseLabelMigratorys: map['CourseLabelMigratorys'] != null ? (map['CourseLabelMigratorys'] as List).map((e)=>CourseLabelMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  2986. token: map['Token'],
  2987. );
  2988. }
  2989. Map<String, dynamic> toJson() {
  2990. final map = super.toJson();
  2991. map['SyncType'] = syncType.index;
  2992. if(courseLabelMigratorys != null)
  2993. map['CourseLabelMigratorys'] = courseLabelMigratorys;
  2994. return map;
  2995. }
  2996. }
  2997. class CourseMigratoryInfo extends BaseDTO{
  2998. bool isDelete;
  2999. String? code;
  3000. String? name;
  3001. String? courseIntro;
  3002. String? teacherCode;
  3003. String? poster;
  3004. CourseStatusEnum status;
  3005. DateTime? startTime;
  3006. int duration;
  3007. DateTime? deadline;
  3008. DateTime? actualStartTime;
  3009. DateTime? actualEndTime;
  3010. String? courseToken;
  3011. String? creatorCode;
  3012. String? organizationCode;
  3013. CourseTypeEnum courseType;
  3014. CourseAudienceTypeEnum audienceType;
  3015. String? coursewareToken;
  3016. String? teacherName;
  3017. CourseViewRangeEnum viewRange;
  3018. List<String>? caseLabelCodes;
  3019. List<String>? courseLabelCodes;
  3020. List<String>? userGroupCodes;
  3021. double price;
  3022. List<String>? courseVideoCodes;
  3023. List<StudentInfoDTO>? assistants;
  3024. List<StudentInfoDTO>? experts;
  3025. bool isAgentCourse;
  3026. List<String>? courseAlbumCodes;
  3027. bool isStick;
  3028. int sort;
  3029. List<String>? courseMaterialCodes;
  3030. List<CourseExaminationDTO>? bindExams;
  3031. CourseAppearTypeEnum courseAppearType;
  3032. List<StudentInfoDTO>? students;
  3033. int playCount;
  3034. CourseMigratoryInfo({
  3035. this.isDelete = false,
  3036. this.code,
  3037. this.name,
  3038. this.courseIntro,
  3039. this.teacherCode,
  3040. this.poster,
  3041. this.status = CourseStatusEnum.Unknown,
  3042. this.startTime,
  3043. this.duration = 0,
  3044. this.deadline,
  3045. this.actualStartTime,
  3046. this.actualEndTime,
  3047. this.courseToken,
  3048. this.creatorCode,
  3049. this.organizationCode,
  3050. this.courseType = CourseTypeEnum.Unknown,
  3051. this.audienceType = CourseAudienceTypeEnum.Unknown,
  3052. this.coursewareToken,
  3053. this.teacherName,
  3054. this.viewRange = CourseViewRangeEnum.All,
  3055. this.caseLabelCodes,
  3056. this.courseLabelCodes,
  3057. this.userGroupCodes,
  3058. this.price = 0,
  3059. this.courseVideoCodes,
  3060. this.assistants,
  3061. this.experts,
  3062. this.isAgentCourse = false,
  3063. this.courseAlbumCodes,
  3064. this.isStick = false,
  3065. this.sort = 0,
  3066. this.courseMaterialCodes,
  3067. this.bindExams,
  3068. this.courseAppearType = CourseAppearTypeEnum.Unknown,
  3069. this.students,
  3070. this.playCount = 0,
  3071. DateTime? createTime,
  3072. DateTime? updateTime,
  3073. }) : super(
  3074. createTime: createTime,
  3075. updateTime: updateTime,
  3076. );
  3077. factory CourseMigratoryInfo.fromJson(Map<String, dynamic> map) {
  3078. return CourseMigratoryInfo(
  3079. isDelete: map['IsDelete'],
  3080. code: map['Code'],
  3081. name: map['Name'],
  3082. courseIntro: map['CourseIntro'],
  3083. teacherCode: map['TeacherCode'],
  3084. poster: map['Poster'],
  3085. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  3086. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  3087. duration: map['Duration'],
  3088. deadline: map['Deadline'] != null ? DateTime.parse(map['Deadline']) : null,
  3089. actualStartTime: map['ActualStartTime'] != null ? DateTime.parse(map['ActualStartTime']) : null,
  3090. actualEndTime: map['ActualEndTime'] != null ? DateTime.parse(map['ActualEndTime']) : null,
  3091. courseToken: map['CourseToken'],
  3092. creatorCode: map['CreatorCode'],
  3093. organizationCode: map['OrganizationCode'],
  3094. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  3095. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  3096. coursewareToken: map['CoursewareToken'],
  3097. teacherName: map['TeacherName'],
  3098. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  3099. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  3100. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  3101. userGroupCodes: map['UserGroupCodes']?.cast<String>().toList(),
  3102. price: double.parse(map['Price'].toString()),
  3103. courseVideoCodes: map['CourseVideoCodes']?.cast<String>().toList(),
  3104. assistants: map['Assistants'] != null ? (map['Assistants'] as List).map((e)=>StudentInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3105. experts: map['Experts'] != null ? (map['Experts'] as List).map((e)=>StudentInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3106. isAgentCourse: map['IsAgentCourse'],
  3107. courseAlbumCodes: map['CourseAlbumCodes']?.cast<String>().toList(),
  3108. isStick: map['IsStick'],
  3109. sort: map['Sort'],
  3110. courseMaterialCodes: map['CourseMaterialCodes']?.cast<String>().toList(),
  3111. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3112. courseAppearType: CourseAppearTypeEnum.values.firstWhere((e) => e.index == map['CourseAppearType']),
  3113. students: map['Students'] != null ? (map['Students'] as List).map((e)=>StudentInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3114. playCount: map['PlayCount'],
  3115. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3116. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3117. );
  3118. }
  3119. Map<String, dynamic> toJson() {
  3120. final map = super.toJson();
  3121. map['IsDelete'] = isDelete;
  3122. if(code != null)
  3123. map['Code'] = code;
  3124. if(name != null)
  3125. map['Name'] = name;
  3126. if(courseIntro != null)
  3127. map['CourseIntro'] = courseIntro;
  3128. if(teacherCode != null)
  3129. map['TeacherCode'] = teacherCode;
  3130. if(poster != null)
  3131. map['Poster'] = poster;
  3132. map['Status'] = status.index;
  3133. if(startTime != null)
  3134. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  3135. map['Duration'] = duration;
  3136. if(deadline != null)
  3137. map['Deadline'] = JsonRpcUtils.dateFormat(deadline!);
  3138. if(actualStartTime != null)
  3139. map['ActualStartTime'] = JsonRpcUtils.dateFormat(actualStartTime!);
  3140. if(actualEndTime != null)
  3141. map['ActualEndTime'] = JsonRpcUtils.dateFormat(actualEndTime!);
  3142. if(courseToken != null)
  3143. map['CourseToken'] = courseToken;
  3144. if(creatorCode != null)
  3145. map['CreatorCode'] = creatorCode;
  3146. if(organizationCode != null)
  3147. map['OrganizationCode'] = organizationCode;
  3148. map['CourseType'] = courseType.index;
  3149. map['AudienceType'] = audienceType.index;
  3150. if(coursewareToken != null)
  3151. map['CoursewareToken'] = coursewareToken;
  3152. if(teacherName != null)
  3153. map['TeacherName'] = teacherName;
  3154. map['ViewRange'] = viewRange.index;
  3155. if(caseLabelCodes != null)
  3156. map['CaseLabelCodes'] = caseLabelCodes;
  3157. if(courseLabelCodes != null)
  3158. map['CourseLabelCodes'] = courseLabelCodes;
  3159. if(userGroupCodes != null)
  3160. map['UserGroupCodes'] = userGroupCodes;
  3161. map['Price'] = price;
  3162. if(courseVideoCodes != null)
  3163. map['CourseVideoCodes'] = courseVideoCodes;
  3164. if(assistants != null)
  3165. map['Assistants'] = assistants;
  3166. if(experts != null)
  3167. map['Experts'] = experts;
  3168. map['IsAgentCourse'] = isAgentCourse;
  3169. if(courseAlbumCodes != null)
  3170. map['CourseAlbumCodes'] = courseAlbumCodes;
  3171. map['IsStick'] = isStick;
  3172. map['Sort'] = sort;
  3173. if(courseMaterialCodes != null)
  3174. map['CourseMaterialCodes'] = courseMaterialCodes;
  3175. if(bindExams != null)
  3176. map['BindExams'] = bindExams;
  3177. map['CourseAppearType'] = courseAppearType.index;
  3178. if(students != null)
  3179. map['Students'] = students;
  3180. map['PlayCount'] = playCount;
  3181. return map;
  3182. }
  3183. }
  3184. class VideoMigratoryInfo extends BaseDTO{
  3185. bool isDelete;
  3186. String? code;
  3187. String? name;
  3188. String? videoToken;
  3189. String? vodFileId;
  3190. String? poster;
  3191. int duration;
  3192. double videoSize;
  3193. String? creatorCode;
  3194. String? creatorName;
  3195. UploadFileTypeEnum fodderType;
  3196. bool isPublic;
  3197. CourseViewRangeEnum viewRange;
  3198. int playCount;
  3199. String? srcFileToken;
  3200. VideoMigratoryInfo({
  3201. this.isDelete = false,
  3202. this.code,
  3203. this.name,
  3204. this.videoToken,
  3205. this.vodFileId,
  3206. this.poster,
  3207. this.duration = 0,
  3208. this.videoSize = 0,
  3209. this.creatorCode,
  3210. this.creatorName,
  3211. this.fodderType = UploadFileTypeEnum.Unknown,
  3212. this.isPublic = false,
  3213. this.viewRange = CourseViewRangeEnum.All,
  3214. this.playCount = 0,
  3215. this.srcFileToken,
  3216. DateTime? createTime,
  3217. DateTime? updateTime,
  3218. }) : super(
  3219. createTime: createTime,
  3220. updateTime: updateTime,
  3221. );
  3222. factory VideoMigratoryInfo.fromJson(Map<String, dynamic> map) {
  3223. return VideoMigratoryInfo(
  3224. isDelete: map['IsDelete'],
  3225. code: map['Code'],
  3226. name: map['Name'],
  3227. videoToken: map['VideoToken'],
  3228. vodFileId: map['VodFileId'],
  3229. poster: map['Poster'],
  3230. duration: map['Duration'],
  3231. videoSize: double.parse(map['VideoSize'].toString()),
  3232. creatorCode: map['CreatorCode'],
  3233. creatorName: map['CreatorName'],
  3234. fodderType: UploadFileTypeEnum.values.firstWhere((e) => e.index == map['FodderType']),
  3235. isPublic: map['IsPublic'],
  3236. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  3237. playCount: map['PlayCount'],
  3238. srcFileToken: map['SrcFileToken'],
  3239. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3240. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3241. );
  3242. }
  3243. Map<String, dynamic> toJson() {
  3244. final map = super.toJson();
  3245. map['IsDelete'] = isDelete;
  3246. if(code != null)
  3247. map['Code'] = code;
  3248. if(name != null)
  3249. map['Name'] = name;
  3250. if(videoToken != null)
  3251. map['VideoToken'] = videoToken;
  3252. if(vodFileId != null)
  3253. map['VodFileId'] = vodFileId;
  3254. if(poster != null)
  3255. map['Poster'] = poster;
  3256. map['Duration'] = duration;
  3257. map['VideoSize'] = videoSize;
  3258. if(creatorCode != null)
  3259. map['CreatorCode'] = creatorCode;
  3260. if(creatorName != null)
  3261. map['CreatorName'] = creatorName;
  3262. map['FodderType'] = fodderType.index;
  3263. map['IsPublic'] = isPublic;
  3264. map['ViewRange'] = viewRange.index;
  3265. map['PlayCount'] = playCount;
  3266. if(srcFileToken != null)
  3267. map['SrcFileToken'] = srcFileToken;
  3268. return map;
  3269. }
  3270. }
  3271. class ExaminationPaperDTO {
  3272. String? code;
  3273. String? name;
  3274. double totalScore;
  3275. List<QuestionDetailDTO>? questionList;
  3276. List<String>? caseLabelCodes;
  3277. List<String>? courseLabelCodes;
  3278. DateTime? createTime;
  3279. DateTime? updateTime;
  3280. ExaminationPaperDTO({
  3281. this.code,
  3282. this.name,
  3283. this.totalScore = 0,
  3284. this.questionList,
  3285. this.caseLabelCodes,
  3286. this.courseLabelCodes,
  3287. this.createTime,
  3288. this.updateTime,
  3289. });
  3290. factory ExaminationPaperDTO.fromJson(Map<String, dynamic> map) {
  3291. return ExaminationPaperDTO(
  3292. code: map['Code'],
  3293. name: map['Name'],
  3294. totalScore: double.parse(map['TotalScore'].toString()),
  3295. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>QuestionDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3296. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  3297. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  3298. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3299. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3300. );
  3301. }
  3302. Map<String, dynamic> toJson() {
  3303. final map = Map<String, dynamic>();
  3304. if(code != null) {
  3305. map['Code'] = code;
  3306. }
  3307. if(name != null) {
  3308. map['Name'] = name;
  3309. }
  3310. map['TotalScore'] = totalScore;
  3311. if(questionList != null) {
  3312. map['QuestionList'] = questionList;
  3313. }
  3314. if(caseLabelCodes != null) {
  3315. map['CaseLabelCodes'] = caseLabelCodes;
  3316. }
  3317. if(courseLabelCodes != null) {
  3318. map['CourseLabelCodes'] = courseLabelCodes;
  3319. }
  3320. if(createTime != null) {
  3321. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  3322. }
  3323. if(updateTime != null) {
  3324. map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
  3325. }
  3326. return map;
  3327. }
  3328. }
  3329. class ExaminationQuestionDTO extends BaseDTO{
  3330. bool isDelete;
  3331. String? code;
  3332. String? stem;
  3333. QuestionTypeEnum questionType;
  3334. List<QuestionOptionDTO>? questionOptionList;
  3335. List<QuestionFileDTO>? fileList;
  3336. List<String>? caseLabelCodes;
  3337. List<String>? courseLabelCodes;
  3338. bool trueOrFalse;
  3339. ExaminationQuestionDTO({
  3340. this.isDelete = false,
  3341. this.code,
  3342. this.stem,
  3343. this.questionType = QuestionTypeEnum.Judge,
  3344. this.questionOptionList,
  3345. this.fileList,
  3346. this.caseLabelCodes,
  3347. this.courseLabelCodes,
  3348. this.trueOrFalse = false,
  3349. DateTime? createTime,
  3350. DateTime? updateTime,
  3351. }) : super(
  3352. createTime: createTime,
  3353. updateTime: updateTime,
  3354. );
  3355. factory ExaminationQuestionDTO.fromJson(Map<String, dynamic> map) {
  3356. return ExaminationQuestionDTO(
  3357. isDelete: map['IsDelete'],
  3358. code: map['Code'],
  3359. stem: map['Stem'],
  3360. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  3361. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3362. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3363. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  3364. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  3365. trueOrFalse: map['TrueOrFalse'],
  3366. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3367. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3368. );
  3369. }
  3370. Map<String, dynamic> toJson() {
  3371. final map = super.toJson();
  3372. map['IsDelete'] = isDelete;
  3373. if(code != null)
  3374. map['Code'] = code;
  3375. if(stem != null)
  3376. map['Stem'] = stem;
  3377. map['QuestionType'] = questionType.index;
  3378. if(questionOptionList != null)
  3379. map['QuestionOptionList'] = questionOptionList;
  3380. if(fileList != null)
  3381. map['FileList'] = fileList;
  3382. if(caseLabelCodes != null)
  3383. map['CaseLabelCodes'] = caseLabelCodes;
  3384. if(courseLabelCodes != null)
  3385. map['CourseLabelCodes'] = courseLabelCodes;
  3386. map['TrueOrFalse'] = trueOrFalse;
  3387. return map;
  3388. }
  3389. }
  3390. enum RelevanceTypeEnum {
  3391. Course,
  3392. }
  3393. class StudentExaminationDTO extends BaseStudentExaminationDTO{
  3394. bool isDelete;
  3395. RelevanceTypeEnum relevanceType;
  3396. String? relevanceCode;
  3397. List<ExaminationAnswerDTO>? studentAnswers;
  3398. int submitCount;
  3399. StudentExaminationDTO({
  3400. this.isDelete = false,
  3401. this.relevanceType = RelevanceTypeEnum.Course,
  3402. this.relevanceCode,
  3403. this.studentAnswers,
  3404. this.submitCount = 0,
  3405. String? code,
  3406. String? examinationCode,
  3407. String? studentCode,
  3408. String? studentName,
  3409. double totalScore = 0,
  3410. }) : super(
  3411. code: code,
  3412. examinationCode: examinationCode,
  3413. studentCode: studentCode,
  3414. studentName: studentName,
  3415. totalScore: totalScore,
  3416. );
  3417. factory StudentExaminationDTO.fromJson(Map<String, dynamic> map) {
  3418. return StudentExaminationDTO(
  3419. isDelete: map['IsDelete'],
  3420. relevanceType: RelevanceTypeEnum.values.firstWhere((e) => e.index == map['RelevanceType']),
  3421. relevanceCode: map['RelevanceCode'],
  3422. studentAnswers: map['StudentAnswers'] != null ? (map['StudentAnswers'] as List).map((e)=>ExaminationAnswerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3423. submitCount: map['SubmitCount'],
  3424. code: map['Code'],
  3425. examinationCode: map['ExaminationCode'],
  3426. studentCode: map['StudentCode'],
  3427. studentName: map['StudentName'],
  3428. totalScore: double.parse(map['TotalScore'].toString()),
  3429. );
  3430. }
  3431. Map<String, dynamic> toJson() {
  3432. final map = super.toJson();
  3433. map['IsDelete'] = isDelete;
  3434. map['RelevanceType'] = relevanceType.index;
  3435. if(relevanceCode != null)
  3436. map['RelevanceCode'] = relevanceCode;
  3437. if(studentAnswers != null)
  3438. map['StudentAnswers'] = studentAnswers;
  3439. map['SubmitCount'] = submitCount;
  3440. return map;
  3441. }
  3442. }
  3443. class ExamMigratoryInfo extends ExaminationPaperDTO{
  3444. bool isDelete;
  3445. List<ExaminationQuestionDTO>? examinationQuestions;
  3446. List<StudentExaminationDTO>? studentExamination;
  3447. ExamMigratoryInfo({
  3448. this.isDelete = false,
  3449. this.examinationQuestions,
  3450. this.studentExamination,
  3451. String? code,
  3452. String? name,
  3453. double totalScore = 0,
  3454. List<QuestionDetailDTO>? questionList,
  3455. List<String>? caseLabelCodes,
  3456. List<String>? courseLabelCodes,
  3457. DateTime? createTime,
  3458. DateTime? updateTime,
  3459. }) : super(
  3460. code: code,
  3461. name: name,
  3462. totalScore: totalScore,
  3463. questionList: questionList,
  3464. caseLabelCodes: caseLabelCodes,
  3465. courseLabelCodes: courseLabelCodes,
  3466. createTime: createTime,
  3467. updateTime: updateTime,
  3468. );
  3469. factory ExamMigratoryInfo.fromJson(Map<String, dynamic> map) {
  3470. return ExamMigratoryInfo(
  3471. isDelete: map['IsDelete'],
  3472. examinationQuestions: map['ExaminationQuestions'] != null ? (map['ExaminationQuestions'] as List).map((e)=>ExaminationQuestionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3473. studentExamination: map['StudentExamination'] != null ? (map['StudentExamination'] as List).map((e)=>StudentExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3474. code: map['Code'],
  3475. name: map['Name'],
  3476. totalScore: double.parse(map['TotalScore'].toString()),
  3477. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>QuestionDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3478. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  3479. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  3480. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3481. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3482. );
  3483. }
  3484. Map<String, dynamic> toJson() {
  3485. final map = super.toJson();
  3486. map['IsDelete'] = isDelete;
  3487. if(examinationQuestions != null)
  3488. map['ExaminationQuestions'] = examinationQuestions;
  3489. if(studentExamination != null)
  3490. map['StudentExamination'] = studentExamination;
  3491. return map;
  3492. }
  3493. }
  3494. class BatchInsertCourseRequest extends TokenRequest{
  3495. SyncDBEnum syncType;
  3496. List<CourseMigratoryInfo>? courseMigratorys;
  3497. List<VideoMigratoryInfo>? videoMigratorys;
  3498. List<ExamMigratoryInfo>? examMigratorys;
  3499. List<RemoteExaminationDTO>? remoteExaminationMigratorys;
  3500. BatchInsertCourseRequest({
  3501. this.syncType = SyncDBEnum.Migrate,
  3502. this.courseMigratorys,
  3503. this.videoMigratorys,
  3504. this.examMigratorys,
  3505. this.remoteExaminationMigratorys,
  3506. String? token,
  3507. }) : super(
  3508. token: token,
  3509. );
  3510. factory BatchInsertCourseRequest.fromJson(Map<String, dynamic> map) {
  3511. return BatchInsertCourseRequest(
  3512. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  3513. courseMigratorys: map['CourseMigratorys'] != null ? (map['CourseMigratorys'] as List).map((e)=>CourseMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  3514. videoMigratorys: map['VideoMigratorys'] != null ? (map['VideoMigratorys'] as List).map((e)=>VideoMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  3515. examMigratorys: map['ExamMigratorys'] != null ? (map['ExamMigratorys'] as List).map((e)=>ExamMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  3516. remoteExaminationMigratorys: map['RemoteExaminationMigratorys'] != null ? (map['RemoteExaminationMigratorys'] as List).map((e)=>RemoteExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3517. token: map['Token'],
  3518. );
  3519. }
  3520. Map<String, dynamic> toJson() {
  3521. final map = super.toJson();
  3522. map['SyncType'] = syncType.index;
  3523. if(courseMigratorys != null)
  3524. map['CourseMigratorys'] = courseMigratorys;
  3525. if(videoMigratorys != null)
  3526. map['VideoMigratorys'] = videoMigratorys;
  3527. if(examMigratorys != null)
  3528. map['ExamMigratorys'] = examMigratorys;
  3529. if(remoteExaminationMigratorys != null)
  3530. map['RemoteExaminationMigratorys'] = remoteExaminationMigratorys;
  3531. return map;
  3532. }
  3533. }
  3534. enum DiagnosisModuleEnum {
  3535. LiverLesionDetect,
  3536. ThyroidLesionDetect,
  3537. CarotidPlaqueDetect,
  3538. BreastLesionDetectBIRADS,
  3539. }
  3540. class DeviceMigratoryInfo extends DeviceInfoDTO{
  3541. bool isDelete;
  3542. List<DiagnosisModuleEnum>? diagnosisModule;
  3543. DeviceMigratoryInfo({
  3544. this.isDelete = false,
  3545. this.diagnosisModule,
  3546. String? deviceCode,
  3547. String? serialNumber,
  3548. String? password,
  3549. String? name,
  3550. String? description,
  3551. String? deviceModel,
  3552. String? deviceType,
  3553. String? headPicUrl,
  3554. String? deviceSoftwareVersion,
  3555. String? sDKSoftwareVersion,
  3556. String? organizationCode,
  3557. String? departmentCode,
  3558. String? shortCode,
  3559. bool isAutoShared = false,
  3560. bool isEncryptedShow = false,
  3561. DateTime? lastLoginTime,
  3562. String? systemVersion,
  3563. String? cPUModel,
  3564. String? systemLanguage,
  3565. List<String>? diagnosisModules,
  3566. List<String>? reportPosterCodes,
  3567. bool mergedChannel = false,
  3568. int mergedVideoOutputWidth = 0,
  3569. int mergedVideoOutputHeight = 0,
  3570. List<VideoDeviceDTO>? videoDeviceInfos,
  3571. DownloadModeSettingEnum downloadModeSetting = DownloadModeSettingEnum.Auto,
  3572. bool liveOpened = false,
  3573. bool supportRtc = false,
  3574. String? displayName,
  3575. SonopostVersionEnum sonopostVersion = SonopostVersionEnum.Sonopost,
  3576. DateTime? createTime,
  3577. DateTime? updateTime,
  3578. }) : super(
  3579. deviceCode: deviceCode,
  3580. serialNumber: serialNumber,
  3581. password: password,
  3582. name: name,
  3583. description: description,
  3584. deviceModel: deviceModel,
  3585. deviceType: deviceType,
  3586. headPicUrl: headPicUrl,
  3587. deviceSoftwareVersion: deviceSoftwareVersion,
  3588. sDKSoftwareVersion: sDKSoftwareVersion,
  3589. organizationCode: organizationCode,
  3590. departmentCode: departmentCode,
  3591. shortCode: shortCode,
  3592. isAutoShared: isAutoShared,
  3593. isEncryptedShow: isEncryptedShow,
  3594. lastLoginTime: lastLoginTime,
  3595. systemVersion: systemVersion,
  3596. cPUModel: cPUModel,
  3597. systemLanguage: systemLanguage,
  3598. diagnosisModules: diagnosisModules,
  3599. reportPosterCodes: reportPosterCodes,
  3600. mergedChannel: mergedChannel,
  3601. mergedVideoOutputWidth: mergedVideoOutputWidth,
  3602. mergedVideoOutputHeight: mergedVideoOutputHeight,
  3603. videoDeviceInfos: videoDeviceInfos,
  3604. downloadModeSetting: downloadModeSetting,
  3605. liveOpened: liveOpened,
  3606. supportRtc: supportRtc,
  3607. displayName: displayName,
  3608. sonopostVersion: sonopostVersion,
  3609. createTime: createTime,
  3610. updateTime: updateTime,
  3611. );
  3612. factory DeviceMigratoryInfo.fromJson(Map<String, dynamic> map) {
  3613. return DeviceMigratoryInfo(
  3614. isDelete: map['IsDelete'],
  3615. diagnosisModule: map['DiagnosisModule'] != null ? (map['DiagnosisModule'] as List).map((e)=>DiagnosisModuleEnum.values.firstWhere((i) => i.index == e)).toList() : null,
  3616. deviceCode: map['DeviceCode'],
  3617. serialNumber: map['SerialNumber'],
  3618. password: map['Password'],
  3619. name: map['Name'],
  3620. description: map['Description'],
  3621. deviceModel: map['DeviceModel'],
  3622. deviceType: map['DeviceType'],
  3623. headPicUrl: map['HeadPicUrl'],
  3624. deviceSoftwareVersion: map['DeviceSoftwareVersion'],
  3625. sDKSoftwareVersion: map['SDKSoftwareVersion'],
  3626. organizationCode: map['OrganizationCode'],
  3627. departmentCode: map['DepartmentCode'],
  3628. shortCode: map['ShortCode'],
  3629. isAutoShared: map['IsAutoShared'],
  3630. isEncryptedShow: map['IsEncryptedShow'],
  3631. lastLoginTime: map['LastLoginTime'] != null ? DateTime.parse(map['LastLoginTime']) : null,
  3632. systemVersion: map['SystemVersion'],
  3633. cPUModel: map['CPUModel'],
  3634. systemLanguage: map['SystemLanguage'],
  3635. diagnosisModules: map['DiagnosisModules']?.cast<String>().toList(),
  3636. reportPosterCodes: map['ReportPosterCodes']?.cast<String>().toList(),
  3637. mergedChannel: map['MergedChannel'],
  3638. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  3639. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  3640. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3641. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  3642. liveOpened: map['LiveOpened'],
  3643. supportRtc: map['SupportRtc'],
  3644. displayName: map['DisplayName'],
  3645. sonopostVersion: SonopostVersionEnum.values.firstWhere((e) => e.index == map['SonopostVersion']),
  3646. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3647. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3648. );
  3649. }
  3650. Map<String, dynamic> toJson() {
  3651. final map = super.toJson();
  3652. map['IsDelete'] = isDelete;
  3653. if(diagnosisModule != null)
  3654. map['DiagnosisModule'] = diagnosisModule;
  3655. return map;
  3656. }
  3657. }
  3658. class BatchInsertDeviceRequest extends TokenRequest{
  3659. SyncDBEnum syncType;
  3660. List<DeviceMigratoryInfo>? deviceMigratorys;
  3661. BatchInsertDeviceRequest({
  3662. this.syncType = SyncDBEnum.Migrate,
  3663. this.deviceMigratorys,
  3664. String? token,
  3665. }) : super(
  3666. token: token,
  3667. );
  3668. factory BatchInsertDeviceRequest.fromJson(Map<String, dynamic> map) {
  3669. return BatchInsertDeviceRequest(
  3670. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  3671. deviceMigratorys: map['DeviceMigratorys'] != null ? (map['DeviceMigratorys'] as List).map((e)=>DeviceMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  3672. token: map['Token'],
  3673. );
  3674. }
  3675. Map<String, dynamic> toJson() {
  3676. final map = super.toJson();
  3677. map['SyncType'] = syncType.index;
  3678. if(deviceMigratorys != null)
  3679. map['DeviceMigratorys'] = deviceMigratorys;
  3680. return map;
  3681. }
  3682. }
  3683. class OrganizationMigratoryInfo extends OrganizationDTO{
  3684. bool isDelete;
  3685. List<DiagnosisModuleEnum>? diagnosisModule;
  3686. String? regionName;
  3687. String? defaultTemplateId;
  3688. List<String>? reportTemplateIds;
  3689. OrganizationMigratoryInfo({
  3690. this.isDelete = false,
  3691. this.diagnosisModule,
  3692. this.regionName,
  3693. this.defaultTemplateId,
  3694. this.reportTemplateIds,
  3695. String? description,
  3696. String? rootCode,
  3697. OrganizationTypeEnum organizationType = OrganizationTypeEnum.Corporation,
  3698. List<String>? authorityGroups,
  3699. String? nautica,
  3700. OrganizationStateEnum state = OrganizationStateEnum.WaitAudit,
  3701. List<String>? directors,
  3702. List<String>? assignedAdmins,
  3703. String? patientSettingJson,
  3704. String? examSettingJson,
  3705. String? consultationSettingJson,
  3706. String? patientSettingVersion,
  3707. String? examSettingVersion,
  3708. String? consultationSettingVersion,
  3709. String? parentOrganizationName,
  3710. String? regionCode,
  3711. String? parentCode,
  3712. String? logoUrl,
  3713. OrganizationPatientTypeEnum patientType = OrganizationPatientTypeEnum.Person,
  3714. bool isinvented = false,
  3715. List<SettingDTOClass>? settings,
  3716. List<String>? diagnosisModules,
  3717. bool isEncryptedShow = false,
  3718. double referralLimitHours = 0,
  3719. List<String>? referralOrganizationCodes,
  3720. List<ReferralOrganizationDTO>? referralOrganizations,
  3721. String? defaultThesaurusCode,
  3722. String? defaultReportTemplateCode,
  3723. String? organizationCode,
  3724. String? organizationName,
  3725. String? shortCode,
  3726. DateTime? createTime,
  3727. DateTime? updateTime,
  3728. }) : super(
  3729. description: description,
  3730. rootCode: rootCode,
  3731. organizationType: organizationType,
  3732. authorityGroups: authorityGroups,
  3733. nautica: nautica,
  3734. state: state,
  3735. directors: directors,
  3736. assignedAdmins: assignedAdmins,
  3737. patientSettingJson: patientSettingJson,
  3738. examSettingJson: examSettingJson,
  3739. consultationSettingJson: consultationSettingJson,
  3740. patientSettingVersion: patientSettingVersion,
  3741. examSettingVersion: examSettingVersion,
  3742. consultationSettingVersion: consultationSettingVersion,
  3743. parentOrganizationName: parentOrganizationName,
  3744. regionCode: regionCode,
  3745. parentCode: parentCode,
  3746. logoUrl: logoUrl,
  3747. patientType: patientType,
  3748. isinvented: isinvented,
  3749. settings: settings,
  3750. diagnosisModules: diagnosisModules,
  3751. isEncryptedShow: isEncryptedShow,
  3752. referralLimitHours: referralLimitHours,
  3753. referralOrganizationCodes: referralOrganizationCodes,
  3754. referralOrganizations: referralOrganizations,
  3755. defaultThesaurusCode: defaultThesaurusCode,
  3756. defaultReportTemplateCode: defaultReportTemplateCode,
  3757. organizationCode: organizationCode,
  3758. organizationName: organizationName,
  3759. shortCode: shortCode,
  3760. createTime: createTime,
  3761. updateTime: updateTime,
  3762. );
  3763. factory OrganizationMigratoryInfo.fromJson(Map<String, dynamic> map) {
  3764. return OrganizationMigratoryInfo(
  3765. isDelete: map['IsDelete'],
  3766. diagnosisModule: map['DiagnosisModule'] != null ? (map['DiagnosisModule'] as List).map((e)=>DiagnosisModuleEnum.values.firstWhere((i) => i.index == e)).toList() : null,
  3767. regionName: map['RegionName'],
  3768. defaultTemplateId: map['DefaultTemplateId'],
  3769. reportTemplateIds: map['ReportTemplateIds']?.cast<String>().toList(),
  3770. description: map['Description'],
  3771. rootCode: map['RootCode'],
  3772. organizationType: OrganizationTypeEnum.values.firstWhere((e) => e.index == map['OrganizationType']),
  3773. authorityGroups: map['AuthorityGroups']?.cast<String>().toList(),
  3774. nautica: map['Nautica'],
  3775. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  3776. directors: map['Directors']?.cast<String>().toList(),
  3777. assignedAdmins: map['AssignedAdmins']?.cast<String>().toList(),
  3778. patientSettingJson: map['PatientSettingJson'],
  3779. examSettingJson: map['ExamSettingJson'],
  3780. consultationSettingJson: map['ConsultationSettingJson'],
  3781. patientSettingVersion: map['PatientSettingVersion'],
  3782. examSettingVersion: map['ExamSettingVersion'],
  3783. consultationSettingVersion: map['ConsultationSettingVersion'],
  3784. parentOrganizationName: map['ParentOrganizationName'],
  3785. regionCode: map['RegionCode'],
  3786. parentCode: map['ParentCode'],
  3787. logoUrl: map['LogoUrl'],
  3788. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  3789. isinvented: map['Isinvented'],
  3790. settings: map['Settings'] != null ? (map['Settings'] as List).map((e)=>SettingDTOClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  3791. diagnosisModules: map['DiagnosisModules']?.cast<String>().toList(),
  3792. isEncryptedShow: map['IsEncryptedShow'],
  3793. referralLimitHours: double.parse(map['ReferralLimitHours'].toString()),
  3794. referralOrganizationCodes: map['ReferralOrganizationCodes']?.cast<String>().toList(),
  3795. referralOrganizations: map['ReferralOrganizations'] != null ? (map['ReferralOrganizations'] as List).map((e)=>ReferralOrganizationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3796. defaultThesaurusCode: map['DefaultThesaurusCode'],
  3797. defaultReportTemplateCode: map['DefaultReportTemplateCode'],
  3798. organizationCode: map['OrganizationCode'],
  3799. organizationName: map['OrganizationName'],
  3800. shortCode: map['ShortCode'],
  3801. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3802. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3803. );
  3804. }
  3805. Map<String, dynamic> toJson() {
  3806. final map = super.toJson();
  3807. map['IsDelete'] = isDelete;
  3808. if(diagnosisModule != null)
  3809. map['DiagnosisModule'] = diagnosisModule;
  3810. if(regionName != null)
  3811. map['RegionName'] = regionName;
  3812. if(defaultTemplateId != null)
  3813. map['DefaultTemplateId'] = defaultTemplateId;
  3814. if(reportTemplateIds != null)
  3815. map['ReportTemplateIds'] = reportTemplateIds;
  3816. return map;
  3817. }
  3818. }
  3819. class BatchInsertOrganizationRequest extends TokenRequest{
  3820. SyncDBEnum syncType;
  3821. List<OrganizationMigratoryInfo>? organizationMigratorys;
  3822. BatchInsertOrganizationRequest({
  3823. this.syncType = SyncDBEnum.Migrate,
  3824. this.organizationMigratorys,
  3825. String? token,
  3826. }) : super(
  3827. token: token,
  3828. );
  3829. factory BatchInsertOrganizationRequest.fromJson(Map<String, dynamic> map) {
  3830. return BatchInsertOrganizationRequest(
  3831. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  3832. organizationMigratorys: map['OrganizationMigratorys'] != null ? (map['OrganizationMigratorys'] as List).map((e)=>OrganizationMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  3833. token: map['Token'],
  3834. );
  3835. }
  3836. Map<String, dynamic> toJson() {
  3837. final map = super.toJson();
  3838. map['SyncType'] = syncType.index;
  3839. if(organizationMigratorys != null)
  3840. map['OrganizationMigratorys'] = organizationMigratorys;
  3841. return map;
  3842. }
  3843. }
  3844. class MedicalConsortiumDetail {
  3845. String? name;
  3846. String? code;
  3847. OrganizationPatientTypeEnum patientType;
  3848. MedicalConsortiumDetail({
  3849. this.name,
  3850. this.code,
  3851. this.patientType = OrganizationPatientTypeEnum.Person,
  3852. });
  3853. factory MedicalConsortiumDetail.fromJson(Map<String, dynamic> map) {
  3854. return MedicalConsortiumDetail(
  3855. name: map['Name'],
  3856. code: map['Code'],
  3857. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  3858. );
  3859. }
  3860. Map<String, dynamic> toJson() {
  3861. final map = Map<String, dynamic>();
  3862. if(name != null) {
  3863. map['Name'] = name;
  3864. }
  3865. if(code != null) {
  3866. map['Code'] = code;
  3867. }
  3868. map['PatientType'] = patientType.index;
  3869. return map;
  3870. }
  3871. }
  3872. class BatchInsertMedicalConsortiumRequest {
  3873. List<MedicalConsortiumDetail>? medicalConsortiumDetails;
  3874. BatchInsertMedicalConsortiumRequest({
  3875. this.medicalConsortiumDetails,
  3876. });
  3877. factory BatchInsertMedicalConsortiumRequest.fromJson(Map<String, dynamic> map) {
  3878. return BatchInsertMedicalConsortiumRequest(
  3879. medicalConsortiumDetails: map['MedicalConsortiumDetails'] != null ? (map['MedicalConsortiumDetails'] as List).map((e)=>MedicalConsortiumDetail.fromJson(e as Map<String,dynamic>)).toList() : null,
  3880. );
  3881. }
  3882. Map<String, dynamic> toJson() {
  3883. final map = Map<String, dynamic>();
  3884. if(medicalConsortiumDetails != null) {
  3885. map['MedicalConsortiumDetails'] = medicalConsortiumDetails;
  3886. }
  3887. return map;
  3888. }
  3889. }
  3890. enum ReportPosterTypeEnum {
  3891. Default,
  3892. BJAid,
  3893. }
  3894. enum ReportFormatEnum {
  3895. Json,
  3896. Xml,
  3897. Text,
  3898. }
  3899. class PosterConfigMigratoryInfo {
  3900. String? code;
  3901. DateTime? createTime;
  3902. DateTime? updateTime;
  3903. bool isDelete;
  3904. String? receiverName;
  3905. String? contact;
  3906. String? phone;
  3907. String? targetUrl;
  3908. String? template;
  3909. ReportPosterTypeEnum posterType;
  3910. ReportFormatEnum reportFormat;
  3911. int postTimeout;
  3912. PosterConfigMigratoryInfo({
  3913. this.code,
  3914. this.createTime,
  3915. this.updateTime,
  3916. this.isDelete = false,
  3917. this.receiverName,
  3918. this.contact,
  3919. this.phone,
  3920. this.targetUrl,
  3921. this.template,
  3922. this.posterType = ReportPosterTypeEnum.Default,
  3923. this.reportFormat = ReportFormatEnum.Json,
  3924. this.postTimeout = 0,
  3925. });
  3926. factory PosterConfigMigratoryInfo.fromJson(Map<String, dynamic> map) {
  3927. return PosterConfigMigratoryInfo(
  3928. code: map['Code'],
  3929. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3930. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3931. isDelete: map['IsDelete'],
  3932. receiverName: map['ReceiverName'],
  3933. contact: map['Contact'],
  3934. phone: map['Phone'],
  3935. targetUrl: map['TargetUrl'],
  3936. template: map['Template'],
  3937. posterType: ReportPosterTypeEnum.values.firstWhere((e) => e.index == map['PosterType']),
  3938. reportFormat: ReportFormatEnum.values.firstWhere((e) => e.index == map['ReportFormat']),
  3939. postTimeout: map['PostTimeout'],
  3940. );
  3941. }
  3942. Map<String, dynamic> toJson() {
  3943. final map = Map<String, dynamic>();
  3944. if(code != null) {
  3945. map['Code'] = code;
  3946. }
  3947. if(createTime != null) {
  3948. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  3949. }
  3950. if(updateTime != null) {
  3951. map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
  3952. }
  3953. map['IsDelete'] = isDelete;
  3954. if(receiverName != null) {
  3955. map['ReceiverName'] = receiverName;
  3956. }
  3957. if(contact != null) {
  3958. map['Contact'] = contact;
  3959. }
  3960. if(phone != null) {
  3961. map['Phone'] = phone;
  3962. }
  3963. if(targetUrl != null) {
  3964. map['TargetUrl'] = targetUrl;
  3965. }
  3966. if(template != null) {
  3967. map['Template'] = template;
  3968. }
  3969. map['PosterType'] = posterType.index;
  3970. map['ReportFormat'] = reportFormat.index;
  3971. map['PostTimeout'] = postTimeout;
  3972. return map;
  3973. }
  3974. }
  3975. class BatchInsertPosterConfigRequest extends TokenRequest{
  3976. SyncDBEnum syncType;
  3977. List<PosterConfigMigratoryInfo>? posterConfigMigratorys;
  3978. BatchInsertPosterConfigRequest({
  3979. this.syncType = SyncDBEnum.Migrate,
  3980. this.posterConfigMigratorys,
  3981. String? token,
  3982. }) : super(
  3983. token: token,
  3984. );
  3985. factory BatchInsertPosterConfigRequest.fromJson(Map<String, dynamic> map) {
  3986. return BatchInsertPosterConfigRequest(
  3987. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  3988. posterConfigMigratorys: map['PosterConfigMigratorys'] != null ? (map['PosterConfigMigratorys'] as List).map((e)=>PosterConfigMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  3989. token: map['Token'],
  3990. );
  3991. }
  3992. Map<String, dynamic> toJson() {
  3993. final map = super.toJson();
  3994. map['SyncType'] = syncType.index;
  3995. if(posterConfigMigratorys != null)
  3996. map['PosterConfigMigratorys'] = posterConfigMigratorys;
  3997. return map;
  3998. }
  3999. }
  4000. class ReportTemplateMigratoryInfo extends ReportTemplateDTO{
  4001. bool isDelete;
  4002. DateTime? createTime;
  4003. DateTime? updateTime;
  4004. ReportTemplateMigratoryInfo({
  4005. this.isDelete = false,
  4006. this.createTime,
  4007. this.updateTime,
  4008. String? reportTemplateCode,
  4009. String? reportTemplateName,
  4010. ReportTemplateStatusTypeEnum reportTemplateStateType = ReportTemplateStatusTypeEnum.Unpublished,
  4011. ReportTemplateTypeEnum reportTemplateType = ReportTemplateTypeEnum.Default,
  4012. ReportTemplateUsageTypeEnum reportTemplateUsageType = ReportTemplateUsageTypeEnum.People,
  4013. String? organizationCode,
  4014. String? personalCode,
  4015. String? organizationName,
  4016. String? personalName,
  4017. String? reportTemplateJson,
  4018. String? referenceReportTemplateCode,
  4019. bool isDefault = false,
  4020. bool isUserDefault = false,
  4021. String? reportDatasJson,
  4022. List<ReportPreviewDTO>? templatePreviewList,
  4023. List<String>? templatePreviewUrlList,
  4024. String? languageCode,
  4025. }) : super(
  4026. reportTemplateCode: reportTemplateCode,
  4027. reportTemplateName: reportTemplateName,
  4028. reportTemplateStateType: reportTemplateStateType,
  4029. reportTemplateType: reportTemplateType,
  4030. reportTemplateUsageType: reportTemplateUsageType,
  4031. organizationCode: organizationCode,
  4032. personalCode: personalCode,
  4033. organizationName: organizationName,
  4034. personalName: personalName,
  4035. reportTemplateJson: reportTemplateJson,
  4036. referenceReportTemplateCode: referenceReportTemplateCode,
  4037. isDefault: isDefault,
  4038. isUserDefault: isUserDefault,
  4039. reportDatasJson: reportDatasJson,
  4040. templatePreviewList: templatePreviewList,
  4041. templatePreviewUrlList: templatePreviewUrlList,
  4042. languageCode: languageCode,
  4043. );
  4044. factory ReportTemplateMigratoryInfo.fromJson(Map<String, dynamic> map) {
  4045. return ReportTemplateMigratoryInfo(
  4046. isDelete: map['IsDelete'],
  4047. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4048. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4049. reportTemplateCode: map['ReportTemplateCode'],
  4050. reportTemplateName: map['ReportTemplateName'],
  4051. reportTemplateStateType: ReportTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['ReportTemplateStateType']),
  4052. reportTemplateType: ReportTemplateTypeEnum.values.firstWhere((e) => e.index == map['ReportTemplateType']),
  4053. reportTemplateUsageType: ReportTemplateUsageTypeEnum.values.firstWhere((e) => e.index == map['ReportTemplateUsageType']),
  4054. organizationCode: map['OrganizationCode'],
  4055. personalCode: map['PersonalCode'],
  4056. organizationName: map['OrganizationName'],
  4057. personalName: map['PersonalName'],
  4058. reportTemplateJson: map['ReportTemplateJson'],
  4059. referenceReportTemplateCode: map['ReferenceReportTemplateCode'],
  4060. isDefault: map['IsDefault'],
  4061. isUserDefault: map['IsUserDefault'],
  4062. reportDatasJson: map['ReportDatasJson'],
  4063. templatePreviewList: map['TemplatePreviewList'] != null ? (map['TemplatePreviewList'] as List).map((e)=>ReportPreviewDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4064. templatePreviewUrlList: map['TemplatePreviewUrlList']?.cast<String>().toList(),
  4065. languageCode: map['LanguageCode'],
  4066. );
  4067. }
  4068. Map<String, dynamic> toJson() {
  4069. final map = super.toJson();
  4070. map['IsDelete'] = isDelete;
  4071. if(createTime != null)
  4072. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  4073. if(updateTime != null)
  4074. map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
  4075. return map;
  4076. }
  4077. }
  4078. class BatchInsertReportTemplateRequest extends TokenRequest{
  4079. SyncDBEnum syncType;
  4080. List<ReportTemplateMigratoryInfo>? reportTemplateMigratorys;
  4081. BatchInsertReportTemplateRequest({
  4082. this.syncType = SyncDBEnum.Migrate,
  4083. this.reportTemplateMigratorys,
  4084. String? token,
  4085. }) : super(
  4086. token: token,
  4087. );
  4088. factory BatchInsertReportTemplateRequest.fromJson(Map<String, dynamic> map) {
  4089. return BatchInsertReportTemplateRequest(
  4090. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  4091. reportTemplateMigratorys: map['ReportTemplateMigratorys'] != null ? (map['ReportTemplateMigratorys'] as List).map((e)=>ReportTemplateMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  4092. token: map['Token'],
  4093. );
  4094. }
  4095. Map<String, dynamic> toJson() {
  4096. final map = super.toJson();
  4097. map['SyncType'] = syncType.index;
  4098. if(reportTemplateMigratorys != null)
  4099. map['ReportTemplateMigratorys'] = reportTemplateMigratorys;
  4100. return map;
  4101. }
  4102. }
  4103. class ReportLabelMigratoryInfo extends ReportLabelDTO{
  4104. bool isDelete;
  4105. ReportLabelMigratoryInfo({
  4106. this.isDelete = false,
  4107. String? reportLabelCode,
  4108. String? labelName,
  4109. String? languageCode,
  4110. ReportLabelUsageTypeEnum usageType = ReportLabelUsageTypeEnum.People,
  4111. List<String>? labelItems,
  4112. DateTime? createTime,
  4113. DateTime? updateTime,
  4114. }) : super(
  4115. reportLabelCode: reportLabelCode,
  4116. labelName: labelName,
  4117. languageCode: languageCode,
  4118. usageType: usageType,
  4119. labelItems: labelItems,
  4120. createTime: createTime,
  4121. updateTime: updateTime,
  4122. );
  4123. factory ReportLabelMigratoryInfo.fromJson(Map<String, dynamic> map) {
  4124. return ReportLabelMigratoryInfo(
  4125. isDelete: map['IsDelete'],
  4126. reportLabelCode: map['ReportLabelCode'],
  4127. labelName: map['LabelName'],
  4128. languageCode: map['LanguageCode'],
  4129. usageType: ReportLabelUsageTypeEnum.values.firstWhere((e) => e.index == map['UsageType']),
  4130. labelItems: map['LabelItems']?.cast<String>().toList(),
  4131. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4132. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4133. );
  4134. }
  4135. Map<String, dynamic> toJson() {
  4136. final map = super.toJson();
  4137. map['IsDelete'] = isDelete;
  4138. return map;
  4139. }
  4140. }
  4141. class BatchInsertReportLabelRequest extends TokenRequest{
  4142. SyncDBEnum syncType;
  4143. List<ReportLabelMigratoryInfo>? reportLabelData;
  4144. BatchInsertReportLabelRequest({
  4145. this.syncType = SyncDBEnum.Migrate,
  4146. this.reportLabelData,
  4147. String? token,
  4148. }) : super(
  4149. token: token,
  4150. );
  4151. factory BatchInsertReportLabelRequest.fromJson(Map<String, dynamic> map) {
  4152. return BatchInsertReportLabelRequest(
  4153. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  4154. reportLabelData: map['ReportLabelData'] != null ? (map['ReportLabelData'] as List).map((e)=>ReportLabelMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  4155. token: map['Token'],
  4156. );
  4157. }
  4158. Map<String, dynamic> toJson() {
  4159. final map = super.toJson();
  4160. map['SyncType'] = syncType.index;
  4161. if(reportLabelData != null)
  4162. map['ReportLabelData'] = reportLabelData;
  4163. return map;
  4164. }
  4165. }
  4166. class OrganizationDefaultTemplate {
  4167. String? organizationCode;
  4168. String? defaultTemplateId;
  4169. List<String>? reportTemplateIds;
  4170. List<String>? userCodes;
  4171. OrganizationDefaultTemplate({
  4172. this.organizationCode,
  4173. this.defaultTemplateId,
  4174. this.reportTemplateIds,
  4175. this.userCodes,
  4176. });
  4177. factory OrganizationDefaultTemplate.fromJson(Map<String, dynamic> map) {
  4178. return OrganizationDefaultTemplate(
  4179. organizationCode: map['OrganizationCode'],
  4180. defaultTemplateId: map['DefaultTemplateId'],
  4181. reportTemplateIds: map['ReportTemplateIds']?.cast<String>().toList(),
  4182. userCodes: map['UserCodes']?.cast<String>().toList(),
  4183. );
  4184. }
  4185. Map<String, dynamic> toJson() {
  4186. final map = Map<String, dynamic>();
  4187. if(organizationCode != null) {
  4188. map['OrganizationCode'] = organizationCode;
  4189. }
  4190. if(defaultTemplateId != null) {
  4191. map['DefaultTemplateId'] = defaultTemplateId;
  4192. }
  4193. if(reportTemplateIds != null) {
  4194. map['ReportTemplateIds'] = reportTemplateIds;
  4195. }
  4196. if(userCodes != null) {
  4197. map['UserCodes'] = userCodes;
  4198. }
  4199. return map;
  4200. }
  4201. }
  4202. class BatchModifyReportTemplateRequest extends TokenRequest{
  4203. List<ReportTemplateMigratoryInfo>? reportTemplateMigratorys;
  4204. List<OrganizationDefaultTemplate>? organizationDefaultTemplates;
  4205. BatchModifyReportTemplateRequest({
  4206. this.reportTemplateMigratorys,
  4207. this.organizationDefaultTemplates,
  4208. String? token,
  4209. }) : super(
  4210. token: token,
  4211. );
  4212. factory BatchModifyReportTemplateRequest.fromJson(Map<String, dynamic> map) {
  4213. return BatchModifyReportTemplateRequest(
  4214. reportTemplateMigratorys: map['ReportTemplateMigratorys'] != null ? (map['ReportTemplateMigratorys'] as List).map((e)=>ReportTemplateMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  4215. organizationDefaultTemplates: map['OrganizationDefaultTemplates'] != null ? (map['OrganizationDefaultTemplates'] as List).map((e)=>OrganizationDefaultTemplate.fromJson(e as Map<String,dynamic>)).toList() : null,
  4216. token: map['Token'],
  4217. );
  4218. }
  4219. Map<String, dynamic> toJson() {
  4220. final map = super.toJson();
  4221. if(reportTemplateMigratorys != null)
  4222. map['ReportTemplateMigratorys'] = reportTemplateMigratorys;
  4223. if(organizationDefaultTemplates != null)
  4224. map['OrganizationDefaultTemplates'] = organizationDefaultTemplates;
  4225. return map;
  4226. }
  4227. }
  4228. class UserGroupMigratoryInfo extends BaseDTO{
  4229. bool isDelete;
  4230. String? code;
  4231. String? name;
  4232. int maxPeople;
  4233. String? creatorCode;
  4234. List<StudentInfoDTO>? students;
  4235. String? shortCode;
  4236. bool isAgent;
  4237. bool isOldPlatformData;
  4238. UserGroupMigratoryInfo({
  4239. this.isDelete = false,
  4240. this.code,
  4241. this.name,
  4242. this.maxPeople = 0,
  4243. this.creatorCode,
  4244. this.students,
  4245. this.shortCode,
  4246. this.isAgent = false,
  4247. this.isOldPlatformData = false,
  4248. DateTime? createTime,
  4249. DateTime? updateTime,
  4250. }) : super(
  4251. createTime: createTime,
  4252. updateTime: updateTime,
  4253. );
  4254. factory UserGroupMigratoryInfo.fromJson(Map<String, dynamic> map) {
  4255. return UserGroupMigratoryInfo(
  4256. isDelete: map['IsDelete'],
  4257. code: map['Code'],
  4258. name: map['Name'],
  4259. maxPeople: map['MaxPeople'],
  4260. creatorCode: map['CreatorCode'],
  4261. students: map['Students'] != null ? (map['Students'] as List).map((e)=>StudentInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4262. shortCode: map['ShortCode'],
  4263. isAgent: map['IsAgent'],
  4264. isOldPlatformData: map['IsOldPlatformData'],
  4265. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4266. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4267. );
  4268. }
  4269. Map<String, dynamic> toJson() {
  4270. final map = super.toJson();
  4271. map['IsDelete'] = isDelete;
  4272. if(code != null)
  4273. map['Code'] = code;
  4274. if(name != null)
  4275. map['Name'] = name;
  4276. map['MaxPeople'] = maxPeople;
  4277. if(creatorCode != null)
  4278. map['CreatorCode'] = creatorCode;
  4279. if(students != null)
  4280. map['Students'] = students;
  4281. if(shortCode != null)
  4282. map['ShortCode'] = shortCode;
  4283. map['IsAgent'] = isAgent;
  4284. map['IsOldPlatformData'] = isOldPlatformData;
  4285. return map;
  4286. }
  4287. }
  4288. class BatchInsertUserGroupRequest extends TokenRequest{
  4289. SyncDBEnum syncType;
  4290. List<UserGroupMigratoryInfo>? userGroupMigratorys;
  4291. BatchInsertUserGroupRequest({
  4292. this.syncType = SyncDBEnum.Migrate,
  4293. this.userGroupMigratorys,
  4294. String? token,
  4295. }) : super(
  4296. token: token,
  4297. );
  4298. factory BatchInsertUserGroupRequest.fromJson(Map<String, dynamic> map) {
  4299. return BatchInsertUserGroupRequest(
  4300. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  4301. userGroupMigratorys: map['UserGroupMigratorys'] != null ? (map['UserGroupMigratorys'] as List).map((e)=>UserGroupMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  4302. token: map['Token'],
  4303. );
  4304. }
  4305. Map<String, dynamic> toJson() {
  4306. final map = super.toJson();
  4307. map['SyncType'] = syncType.index;
  4308. if(userGroupMigratorys != null)
  4309. map['UserGroupMigratorys'] = userGroupMigratorys;
  4310. return map;
  4311. }
  4312. }
  4313. class BatchModifyRecordReportDataRequest extends TokenRequest{
  4314. List<String>? recordCodes;
  4315. bool isExistPropertyIsUserReport;
  4316. int isUserReport;
  4317. BatchModifyRecordReportDataRequest({
  4318. this.recordCodes,
  4319. this.isExistPropertyIsUserReport = false,
  4320. this.isUserReport = 0,
  4321. String? token,
  4322. }) : super(
  4323. token: token,
  4324. );
  4325. factory BatchModifyRecordReportDataRequest.fromJson(Map<String, dynamic> map) {
  4326. return BatchModifyRecordReportDataRequest(
  4327. recordCodes: map['RecordCodes']?.cast<String>().toList(),
  4328. isExistPropertyIsUserReport: map['IsExistPropertyIsUserReport'],
  4329. isUserReport: map['IsUserReport'],
  4330. token: map['Token'],
  4331. );
  4332. }
  4333. Map<String, dynamic> toJson() {
  4334. final map = super.toJson();
  4335. if(recordCodes != null)
  4336. map['RecordCodes'] = recordCodes;
  4337. map['IsExistPropertyIsUserReport'] = isExistPropertyIsUserReport;
  4338. map['IsUserReport'] = isUserReport;
  4339. return map;
  4340. }
  4341. }
  4342. class BindUserDevicesRequest extends TokenRequest{
  4343. String? userCode;
  4344. List<String>? bindDeviceCodes;
  4345. List<String>? removeDeviceCodes;
  4346. BindUserDevicesRequest({
  4347. this.userCode,
  4348. this.bindDeviceCodes,
  4349. this.removeDeviceCodes,
  4350. String? token,
  4351. }) : super(
  4352. token: token,
  4353. );
  4354. factory BindUserDevicesRequest.fromJson(Map<String, dynamic> map) {
  4355. return BindUserDevicesRequest(
  4356. userCode: map['UserCode'],
  4357. bindDeviceCodes: map['BindDeviceCodes']?.cast<String>().toList(),
  4358. removeDeviceCodes: map['RemoveDeviceCodes']?.cast<String>().toList(),
  4359. token: map['Token'],
  4360. );
  4361. }
  4362. Map<String, dynamic> toJson() {
  4363. final map = super.toJson();
  4364. if(userCode != null)
  4365. map['UserCode'] = userCode;
  4366. if(bindDeviceCodes != null)
  4367. map['BindDeviceCodes'] = bindDeviceCodes;
  4368. if(removeDeviceCodes != null)
  4369. map['RemoveDeviceCodes'] = removeDeviceCodes;
  4370. return map;
  4371. }
  4372. }
  4373. class ConfirmIdentityApplyRequest extends TokenRequest{
  4374. String? identityApplyCode;
  4375. ConfirmIdentityApplyRequest({
  4376. this.identityApplyCode,
  4377. String? token,
  4378. }) : super(
  4379. token: token,
  4380. );
  4381. factory ConfirmIdentityApplyRequest.fromJson(Map<String, dynamic> map) {
  4382. return ConfirmIdentityApplyRequest(
  4383. identityApplyCode: map['IdentityApplyCode'],
  4384. token: map['Token'],
  4385. );
  4386. }
  4387. Map<String, dynamic> toJson() {
  4388. final map = super.toJson();
  4389. if(identityApplyCode != null)
  4390. map['IdentityApplyCode'] = identityApplyCode;
  4391. return map;
  4392. }
  4393. }
  4394. class CreateThirdPartyTokenRequest extends TokenRequest{
  4395. String? code;
  4396. CreateThirdPartyTokenRequest({
  4397. this.code,
  4398. String? token,
  4399. }) : super(
  4400. token: token,
  4401. );
  4402. factory CreateThirdPartyTokenRequest.fromJson(Map<String, dynamic> map) {
  4403. return CreateThirdPartyTokenRequest(
  4404. code: map['Code'],
  4405. token: map['Token'],
  4406. );
  4407. }
  4408. Map<String, dynamic> toJson() {
  4409. final map = super.toJson();
  4410. if(code != null)
  4411. map['Code'] = code;
  4412. return map;
  4413. }
  4414. }
  4415. class DeleteAdminFeatureRequest extends TokenRequest{
  4416. String? adminFeatureCode;
  4417. DeleteAdminFeatureRequest({
  4418. this.adminFeatureCode,
  4419. String? token,
  4420. }) : super(
  4421. token: token,
  4422. );
  4423. factory DeleteAdminFeatureRequest.fromJson(Map<String, dynamic> map) {
  4424. return DeleteAdminFeatureRequest(
  4425. adminFeatureCode: map['AdminFeatureCode'],
  4426. token: map['Token'],
  4427. );
  4428. }
  4429. Map<String, dynamic> toJson() {
  4430. final map = super.toJson();
  4431. if(adminFeatureCode != null)
  4432. map['AdminFeatureCode'] = adminFeatureCode;
  4433. return map;
  4434. }
  4435. }
  4436. class DeleteAdminRoleRequest extends TokenRequest{
  4437. String? adminRoleCode;
  4438. DeleteAdminRoleRequest({
  4439. this.adminRoleCode,
  4440. String? token,
  4441. }) : super(
  4442. token: token,
  4443. );
  4444. factory DeleteAdminRoleRequest.fromJson(Map<String, dynamic> map) {
  4445. return DeleteAdminRoleRequest(
  4446. adminRoleCode: map['AdminRoleCode'],
  4447. token: map['Token'],
  4448. );
  4449. }
  4450. Map<String, dynamic> toJson() {
  4451. final map = super.toJson();
  4452. if(adminRoleCode != null)
  4453. map['AdminRoleCode'] = adminRoleCode;
  4454. return map;
  4455. }
  4456. }
  4457. class DeleteDeviceRequest2 extends TokenRequest{
  4458. String? deviceCode;
  4459. DeleteDeviceRequest2({
  4460. this.deviceCode,
  4461. String? token,
  4462. }) : super(
  4463. token: token,
  4464. );
  4465. factory DeleteDeviceRequest2.fromJson(Map<String, dynamic> map) {
  4466. return DeleteDeviceRequest2(
  4467. deviceCode: map['DeviceCode'],
  4468. token: map['Token'],
  4469. );
  4470. }
  4471. Map<String, dynamic> toJson() {
  4472. final map = super.toJson();
  4473. if(deviceCode != null)
  4474. map['DeviceCode'] = deviceCode;
  4475. return map;
  4476. }
  4477. }
  4478. class DeleteLogsRequest extends TokenRequest{
  4479. int daysAgo;
  4480. String? requestServerHost;
  4481. DeleteLogsRequest({
  4482. this.daysAgo = 0,
  4483. this.requestServerHost,
  4484. String? token,
  4485. }) : super(
  4486. token: token,
  4487. );
  4488. factory DeleteLogsRequest.fromJson(Map<String, dynamic> map) {
  4489. return DeleteLogsRequest(
  4490. daysAgo: map['DaysAgo'],
  4491. requestServerHost: map['RequestServerHost'],
  4492. token: map['Token'],
  4493. );
  4494. }
  4495. Map<String, dynamic> toJson() {
  4496. final map = super.toJson();
  4497. map['DaysAgo'] = daysAgo;
  4498. if(requestServerHost != null)
  4499. map['RequestServerHost'] = requestServerHost;
  4500. return map;
  4501. }
  4502. }
  4503. class QueryClearLogsRequest extends DeleteLogsRequest{
  4504. List<int>? dayAgoList;
  4505. QueryClearLogsRequest({
  4506. this.dayAgoList,
  4507. int daysAgo = 0,
  4508. String? requestServerHost,
  4509. String? token,
  4510. }) : super(
  4511. daysAgo: daysAgo,
  4512. requestServerHost: requestServerHost,
  4513. token: token,
  4514. );
  4515. factory QueryClearLogsRequest.fromJson(Map<String, dynamic> map) {
  4516. return QueryClearLogsRequest(
  4517. dayAgoList: map['DayAgoList']?.cast<int>().toList(),
  4518. daysAgo: map['DaysAgo'],
  4519. requestServerHost: map['RequestServerHost'],
  4520. token: map['Token'],
  4521. );
  4522. }
  4523. Map<String, dynamic> toJson() {
  4524. final map = super.toJson();
  4525. if(dayAgoList != null)
  4526. map['DayAgoList'] = dayAgoList;
  4527. return map;
  4528. }
  4529. }
  4530. class DeleteRoleRequest extends TokenRequest{
  4531. String? roleCode;
  4532. DeleteRoleRequest({
  4533. this.roleCode,
  4534. String? token,
  4535. }) : super(
  4536. token: token,
  4537. );
  4538. factory DeleteRoleRequest.fromJson(Map<String, dynamic> map) {
  4539. return DeleteRoleRequest(
  4540. roleCode: map['RoleCode'],
  4541. token: map['Token'],
  4542. );
  4543. }
  4544. Map<String, dynamic> toJson() {
  4545. final map = super.toJson();
  4546. if(roleCode != null)
  4547. map['RoleCode'] = roleCode;
  4548. return map;
  4549. }
  4550. }
  4551. class DeleteThesaurusRequest extends TokenRequest{
  4552. String? thesaurusCode;
  4553. String? userCode;
  4554. String? organizationCode;
  4555. DeleteThesaurusRequest({
  4556. this.thesaurusCode,
  4557. this.userCode,
  4558. this.organizationCode,
  4559. String? token,
  4560. }) : super(
  4561. token: token,
  4562. );
  4563. factory DeleteThesaurusRequest.fromJson(Map<String, dynamic> map) {
  4564. return DeleteThesaurusRequest(
  4565. thesaurusCode: map['ThesaurusCode'],
  4566. userCode: map['UserCode'],
  4567. organizationCode: map['OrganizationCode'],
  4568. token: map['Token'],
  4569. );
  4570. }
  4571. Map<String, dynamic> toJson() {
  4572. final map = super.toJson();
  4573. if(thesaurusCode != null)
  4574. map['ThesaurusCode'] = thesaurusCode;
  4575. if(userCode != null)
  4576. map['UserCode'] = userCode;
  4577. if(organizationCode != null)
  4578. map['OrganizationCode'] = organizationCode;
  4579. return map;
  4580. }
  4581. }
  4582. class DeleteThirdPartyInfoRequest extends TokenRequest{
  4583. String? code;
  4584. DeleteThirdPartyInfoRequest({
  4585. this.code,
  4586. String? token,
  4587. }) : super(
  4588. token: token,
  4589. );
  4590. factory DeleteThirdPartyInfoRequest.fromJson(Map<String, dynamic> map) {
  4591. return DeleteThirdPartyInfoRequest(
  4592. code: map['Code'],
  4593. token: map['Token'],
  4594. );
  4595. }
  4596. Map<String, dynamic> toJson() {
  4597. final map = super.toJson();
  4598. if(code != null)
  4599. map['Code'] = code;
  4600. return map;
  4601. }
  4602. }
  4603. class DeleteUserFeatureRequest extends TokenRequest{
  4604. String? userFeatureCode;
  4605. DeleteUserFeatureRequest({
  4606. this.userFeatureCode,
  4607. String? token,
  4608. }) : super(
  4609. token: token,
  4610. );
  4611. factory DeleteUserFeatureRequest.fromJson(Map<String, dynamic> map) {
  4612. return DeleteUserFeatureRequest(
  4613. userFeatureCode: map['UserFeatureCode'],
  4614. token: map['Token'],
  4615. );
  4616. }
  4617. Map<String, dynamic> toJson() {
  4618. final map = super.toJson();
  4619. if(userFeatureCode != null)
  4620. map['UserFeatureCode'] = userFeatureCode;
  4621. return map;
  4622. }
  4623. }
  4624. enum DistributedServerTypeEnum {
  4625. Official,
  4626. Private,
  4627. }
  4628. class IPAddressInfoDTO {
  4629. String? startIp;
  4630. String? endIp;
  4631. int longStartIP;
  4632. int longEndIP;
  4633. IPAddressInfoDTO({
  4634. this.startIp,
  4635. this.endIp,
  4636. this.longStartIP = 0,
  4637. this.longEndIP = 0,
  4638. });
  4639. factory IPAddressInfoDTO.fromJson(Map<String, dynamic> map) {
  4640. return IPAddressInfoDTO(
  4641. startIp: map['StartIp'],
  4642. endIp: map['EndIp'],
  4643. longStartIP: map['LongStartIP'],
  4644. longEndIP: map['LongEndIP'],
  4645. );
  4646. }
  4647. Map<String, dynamic> toJson() {
  4648. final map = Map<String, dynamic>();
  4649. if(startIp != null) {
  4650. map['StartIp'] = startIp;
  4651. }
  4652. if(endIp != null) {
  4653. map['EndIp'] = endIp;
  4654. }
  4655. map['LongStartIP'] = longStartIP;
  4656. map['LongEndIP'] = longEndIP;
  4657. return map;
  4658. }
  4659. }
  4660. class DistributedServerInfoRequest extends TokenRequest{
  4661. String? code;
  4662. List<String>? codes;
  4663. bool isMaster;
  4664. String? name;
  4665. String? description;
  4666. bool enable;
  4667. DistributedServerTypeEnum serverType;
  4668. String? serverUrl;
  4669. String? lat;
  4670. String? lng;
  4671. List<IPAddressInfoDTO>? assignClientIPList;
  4672. int rTCStartingRoomId;
  4673. String? shareCodePrefix;
  4674. DistributedServerInfoRequest({
  4675. this.code,
  4676. this.codes,
  4677. this.isMaster = false,
  4678. this.name,
  4679. this.description,
  4680. this.enable = false,
  4681. this.serverType = DistributedServerTypeEnum.Official,
  4682. this.serverUrl,
  4683. this.lat,
  4684. this.lng,
  4685. this.assignClientIPList,
  4686. this.rTCStartingRoomId = 0,
  4687. this.shareCodePrefix,
  4688. String? token,
  4689. }) : super(
  4690. token: token,
  4691. );
  4692. factory DistributedServerInfoRequest.fromJson(Map<String, dynamic> map) {
  4693. return DistributedServerInfoRequest(
  4694. code: map['Code'],
  4695. codes: map['Codes']?.cast<String>().toList(),
  4696. isMaster: map['IsMaster'],
  4697. name: map['Name'],
  4698. description: map['Description'],
  4699. enable: map['Enable'],
  4700. serverType: DistributedServerTypeEnum.values.firstWhere((e) => e.index == map['ServerType']),
  4701. serverUrl: map['ServerUrl'],
  4702. lat: map['Lat'],
  4703. lng: map['Lng'],
  4704. assignClientIPList: map['AssignClientIPList'] != null ? (map['AssignClientIPList'] as List).map((e)=>IPAddressInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4705. rTCStartingRoomId: map['RTCStartingRoomId'],
  4706. shareCodePrefix: map['ShareCodePrefix'],
  4707. token: map['Token'],
  4708. );
  4709. }
  4710. Map<String, dynamic> toJson() {
  4711. final map = super.toJson();
  4712. if(code != null)
  4713. map['Code'] = code;
  4714. if(codes != null)
  4715. map['Codes'] = codes;
  4716. map['IsMaster'] = isMaster;
  4717. if(name != null)
  4718. map['Name'] = name;
  4719. if(description != null)
  4720. map['Description'] = description;
  4721. map['Enable'] = enable;
  4722. map['ServerType'] = serverType.index;
  4723. if(serverUrl != null)
  4724. map['ServerUrl'] = serverUrl;
  4725. if(lat != null)
  4726. map['Lat'] = lat;
  4727. if(lng != null)
  4728. map['Lng'] = lng;
  4729. if(assignClientIPList != null)
  4730. map['AssignClientIPList'] = assignClientIPList;
  4731. map['RTCStartingRoomId'] = rTCStartingRoomId;
  4732. if(shareCodePrefix != null)
  4733. map['ShareCodePrefix'] = shareCodePrefix;
  4734. return map;
  4735. }
  4736. }
  4737. class SaveDistributedServerIpRequest extends TokenRequest{
  4738. String? startIp;
  4739. String? endIp;
  4740. String? code;
  4741. SaveDistributedServerIpRequest({
  4742. this.startIp,
  4743. this.endIp,
  4744. this.code,
  4745. String? token,
  4746. }) : super(
  4747. token: token,
  4748. );
  4749. factory SaveDistributedServerIpRequest.fromJson(Map<String, dynamic> map) {
  4750. return SaveDistributedServerIpRequest(
  4751. startIp: map['StartIp'],
  4752. endIp: map['EndIp'],
  4753. code: map['Code'],
  4754. token: map['Token'],
  4755. );
  4756. }
  4757. Map<String, dynamic> toJson() {
  4758. final map = super.toJson();
  4759. if(startIp != null)
  4760. map['StartIp'] = startIp;
  4761. if(endIp != null)
  4762. map['EndIp'] = endIp;
  4763. if(code != null)
  4764. map['Code'] = code;
  4765. return map;
  4766. }
  4767. }
  4768. class GetDistributedServerIpListRequest extends PageRequest{
  4769. String? code;
  4770. String? keyword;
  4771. GetDistributedServerIpListRequest({
  4772. this.code,
  4773. this.keyword,
  4774. int pageIndex = 0,
  4775. int pageSize = 0,
  4776. String? token,
  4777. }) : super(
  4778. pageIndex: pageIndex,
  4779. pageSize: pageSize,
  4780. token: token,
  4781. );
  4782. factory GetDistributedServerIpListRequest.fromJson(Map<String, dynamic> map) {
  4783. return GetDistributedServerIpListRequest(
  4784. code: map['Code'],
  4785. keyword: map['Keyword'],
  4786. pageIndex: map['PageIndex'],
  4787. pageSize: map['PageSize'],
  4788. token: map['Token'],
  4789. );
  4790. }
  4791. Map<String, dynamic> toJson() {
  4792. final map = super.toJson();
  4793. if(code != null)
  4794. map['Code'] = code;
  4795. if(keyword != null)
  4796. map['Keyword'] = keyword;
  4797. return map;
  4798. }
  4799. }
  4800. class FindAdminByCodeRequest extends TokenRequest{
  4801. String? adminCode;
  4802. FindAdminByCodeRequest({
  4803. this.adminCode,
  4804. String? token,
  4805. }) : super(
  4806. token: token,
  4807. );
  4808. factory FindAdminByCodeRequest.fromJson(Map<String, dynamic> map) {
  4809. return FindAdminByCodeRequest(
  4810. adminCode: map['AdminCode'],
  4811. token: map['Token'],
  4812. );
  4813. }
  4814. Map<String, dynamic> toJson() {
  4815. final map = super.toJson();
  4816. if(adminCode != null)
  4817. map['AdminCode'] = adminCode;
  4818. return map;
  4819. }
  4820. }
  4821. class FindAdminRoleByCodeRequest extends TokenRequest{
  4822. String? adminRoleCode;
  4823. FindAdminRoleByCodeRequest({
  4824. this.adminRoleCode,
  4825. String? token,
  4826. }) : super(
  4827. token: token,
  4828. );
  4829. factory FindAdminRoleByCodeRequest.fromJson(Map<String, dynamic> map) {
  4830. return FindAdminRoleByCodeRequest(
  4831. adminRoleCode: map['AdminRoleCode'],
  4832. token: map['Token'],
  4833. );
  4834. }
  4835. Map<String, dynamic> toJson() {
  4836. final map = super.toJson();
  4837. if(adminRoleCode != null)
  4838. map['AdminRoleCode'] = adminRoleCode;
  4839. return map;
  4840. }
  4841. }
  4842. class FindAdminStatisticRecordsRequest extends TokenRequest{
  4843. String? languageCode;
  4844. FindAdminStatisticRecordsRequest({
  4845. this.languageCode,
  4846. String? token,
  4847. }) : super(
  4848. token: token,
  4849. );
  4850. factory FindAdminStatisticRecordsRequest.fromJson(Map<String, dynamic> map) {
  4851. return FindAdminStatisticRecordsRequest(
  4852. languageCode: map['LanguageCode'],
  4853. token: map['Token'],
  4854. );
  4855. }
  4856. Map<String, dynamic> toJson() {
  4857. final map = super.toJson();
  4858. if(languageCode != null)
  4859. map['LanguageCode'] = languageCode;
  4860. return map;
  4861. }
  4862. }
  4863. class FindCMSStatisticRequest extends TokenRequest{
  4864. String? clientId;
  4865. FindCMSStatisticRequest({
  4866. this.clientId,
  4867. String? token,
  4868. }) : super(
  4869. token: token,
  4870. );
  4871. factory FindCMSStatisticRequest.fromJson(Map<String, dynamic> map) {
  4872. return FindCMSStatisticRequest(
  4873. clientId: map['ClientId'],
  4874. token: map['Token'],
  4875. );
  4876. }
  4877. Map<String, dynamic> toJson() {
  4878. final map = super.toJson();
  4879. if(clientId != null)
  4880. map['ClientId'] = clientId;
  4881. return map;
  4882. }
  4883. }
  4884. class FindCMSTemplateByUserRequest extends TokenRequest{
  4885. String? clientId;
  4886. FindCMSTemplateByUserRequest({
  4887. this.clientId,
  4888. String? token,
  4889. }) : super(
  4890. token: token,
  4891. );
  4892. factory FindCMSTemplateByUserRequest.fromJson(Map<String, dynamic> map) {
  4893. return FindCMSTemplateByUserRequest(
  4894. clientId: map['ClientId'],
  4895. token: map['Token'],
  4896. );
  4897. }
  4898. Map<String, dynamic> toJson() {
  4899. final map = super.toJson();
  4900. if(clientId != null)
  4901. map['ClientId'] = clientId;
  4902. return map;
  4903. }
  4904. }
  4905. class FindCMSTemplateDetailRequest extends TokenRequest{
  4906. String? cMSTemplateCode;
  4907. FindCMSTemplateDetailRequest({
  4908. this.cMSTemplateCode,
  4909. String? token,
  4910. }) : super(
  4911. token: token,
  4912. );
  4913. factory FindCMSTemplateDetailRequest.fromJson(Map<String, dynamic> map) {
  4914. return FindCMSTemplateDetailRequest(
  4915. cMSTemplateCode: map['CMSTemplateCode'],
  4916. token: map['Token'],
  4917. );
  4918. }
  4919. Map<String, dynamic> toJson() {
  4920. final map = super.toJson();
  4921. if(cMSTemplateCode != null)
  4922. map['CMSTemplateCode'] = cMSTemplateCode;
  4923. return map;
  4924. }
  4925. }
  4926. class FindCMSTemplatePageRequest extends PageRequest{
  4927. String? searchKey;
  4928. FindCMSTemplatePageRequest({
  4929. this.searchKey,
  4930. int pageIndex = 0,
  4931. int pageSize = 0,
  4932. String? token,
  4933. }) : super(
  4934. pageIndex: pageIndex,
  4935. pageSize: pageSize,
  4936. token: token,
  4937. );
  4938. factory FindCMSTemplatePageRequest.fromJson(Map<String, dynamic> map) {
  4939. return FindCMSTemplatePageRequest(
  4940. searchKey: map['SearchKey'],
  4941. pageIndex: map['PageIndex'],
  4942. pageSize: map['PageSize'],
  4943. token: map['Token'],
  4944. );
  4945. }
  4946. Map<String, dynamic> toJson() {
  4947. final map = super.toJson();
  4948. if(searchKey != null)
  4949. map['SearchKey'] = searchKey;
  4950. return map;
  4951. }
  4952. }
  4953. class FindContentConfigRequest extends TokenRequest{
  4954. int type;
  4955. String? parentCode;
  4956. FindContentConfigRequest({
  4957. this.type = 0,
  4958. this.parentCode,
  4959. String? token,
  4960. }) : super(
  4961. token: token,
  4962. );
  4963. factory FindContentConfigRequest.fromJson(Map<String, dynamic> map) {
  4964. return FindContentConfigRequest(
  4965. type: map['Type'],
  4966. parentCode: map['ParentCode'],
  4967. token: map['Token'],
  4968. );
  4969. }
  4970. Map<String, dynamic> toJson() {
  4971. final map = super.toJson();
  4972. map['Type'] = type;
  4973. if(parentCode != null)
  4974. map['ParentCode'] = parentCode;
  4975. return map;
  4976. }
  4977. }
  4978. class FindDeviceDiagnosisModulesRequest2 extends TokenRequest{
  4979. String? deviceCode;
  4980. FindDeviceDiagnosisModulesRequest2({
  4981. this.deviceCode,
  4982. String? token,
  4983. }) : super(
  4984. token: token,
  4985. );
  4986. factory FindDeviceDiagnosisModulesRequest2.fromJson(Map<String, dynamic> map) {
  4987. return FindDeviceDiagnosisModulesRequest2(
  4988. deviceCode: map['DeviceCode'],
  4989. token: map['Token'],
  4990. );
  4991. }
  4992. Map<String, dynamic> toJson() {
  4993. final map = super.toJson();
  4994. if(deviceCode != null)
  4995. map['DeviceCode'] = deviceCode;
  4996. return map;
  4997. }
  4998. }
  4999. class FindDiagnosisModuleByPageRequest extends PageRequest{
  5000. FindDiagnosisModuleByPageRequest({
  5001. int pageIndex = 0,
  5002. int pageSize = 0,
  5003. String? token,
  5004. }) : super(
  5005. pageIndex: pageIndex,
  5006. pageSize: pageSize,
  5007. token: token,
  5008. );
  5009. factory FindDiagnosisModuleByPageRequest.fromJson(Map<String, dynamic> map) {
  5010. return FindDiagnosisModuleByPageRequest(
  5011. pageIndex: map['PageIndex'],
  5012. pageSize: map['PageSize'],
  5013. token: map['Token'],
  5014. );
  5015. }
  5016. Map<String, dynamic> toJson() {
  5017. final map = super.toJson();
  5018. return map;
  5019. }
  5020. }
  5021. class FindGradingProtectionConfigByPageRequest extends PageRequest{
  5022. String? keyword;
  5023. FindGradingProtectionConfigByPageRequest({
  5024. this.keyword,
  5025. int pageIndex = 0,
  5026. int pageSize = 0,
  5027. String? token,
  5028. }) : super(
  5029. pageIndex: pageIndex,
  5030. pageSize: pageSize,
  5031. token: token,
  5032. );
  5033. factory FindGradingProtectionConfigByPageRequest.fromJson(Map<String, dynamic> map) {
  5034. return FindGradingProtectionConfigByPageRequest(
  5035. keyword: map['Keyword'],
  5036. pageIndex: map['PageIndex'],
  5037. pageSize: map['PageSize'],
  5038. token: map['Token'],
  5039. );
  5040. }
  5041. Map<String, dynamic> toJson() {
  5042. final map = super.toJson();
  5043. if(keyword != null)
  5044. map['Keyword'] = keyword;
  5045. return map;
  5046. }
  5047. }
  5048. class FindOrganizationDiagnosisModulesRequest extends TokenRequest{
  5049. String? organizationCode;
  5050. FindOrganizationDiagnosisModulesRequest({
  5051. this.organizationCode,
  5052. String? token,
  5053. }) : super(
  5054. token: token,
  5055. );
  5056. factory FindOrganizationDiagnosisModulesRequest.fromJson(Map<String, dynamic> map) {
  5057. return FindOrganizationDiagnosisModulesRequest(
  5058. organizationCode: map['OrganizationCode'],
  5059. token: map['Token'],
  5060. );
  5061. }
  5062. Map<String, dynamic> toJson() {
  5063. final map = super.toJson();
  5064. if(organizationCode != null)
  5065. map['OrganizationCode'] = organizationCode;
  5066. return map;
  5067. }
  5068. }
  5069. class FindReferralRecordSettingRequest extends TokenRequest{
  5070. FindReferralRecordSettingRequest({
  5071. String? token,
  5072. }) : super(
  5073. token: token,
  5074. );
  5075. factory FindReferralRecordSettingRequest.fromJson(Map<String, dynamic> map) {
  5076. return FindReferralRecordSettingRequest(
  5077. token: map['Token'],
  5078. );
  5079. }
  5080. Map<String, dynamic> toJson() {
  5081. final map = super.toJson();
  5082. return map;
  5083. }
  5084. }
  5085. class FindRelatedDeviceCodesRequest extends TokenRequest{
  5086. String? reportPosterCode;
  5087. FindRelatedDeviceCodesRequest({
  5088. this.reportPosterCode,
  5089. String? token,
  5090. }) : super(
  5091. token: token,
  5092. );
  5093. factory FindRelatedDeviceCodesRequest.fromJson(Map<String, dynamic> map) {
  5094. return FindRelatedDeviceCodesRequest(
  5095. reportPosterCode: map['ReportPosterCode'],
  5096. token: map['Token'],
  5097. );
  5098. }
  5099. Map<String, dynamic> toJson() {
  5100. final map = super.toJson();
  5101. if(reportPosterCode != null)
  5102. map['ReportPosterCode'] = reportPosterCode;
  5103. return map;
  5104. }
  5105. }
  5106. class FindReportLabelByCodeRequest extends TokenRequest{
  5107. String? reportLabelCode;
  5108. FindReportLabelByCodeRequest({
  5109. this.reportLabelCode,
  5110. String? token,
  5111. }) : super(
  5112. token: token,
  5113. );
  5114. factory FindReportLabelByCodeRequest.fromJson(Map<String, dynamic> map) {
  5115. return FindReportLabelByCodeRequest(
  5116. reportLabelCode: map['ReportLabelCode'],
  5117. token: map['Token'],
  5118. );
  5119. }
  5120. Map<String, dynamic> toJson() {
  5121. final map = super.toJson();
  5122. if(reportLabelCode != null)
  5123. map['ReportLabelCode'] = reportLabelCode;
  5124. return map;
  5125. }
  5126. }
  5127. class FindReportLabelByPageRequest extends PageRequest{
  5128. String? keyword;
  5129. FindReportLabelByPageRequest({
  5130. this.keyword,
  5131. int pageIndex = 0,
  5132. int pageSize = 0,
  5133. String? token,
  5134. }) : super(
  5135. pageIndex: pageIndex,
  5136. pageSize: pageSize,
  5137. token: token,
  5138. );
  5139. factory FindReportLabelByPageRequest.fromJson(Map<String, dynamic> map) {
  5140. return FindReportLabelByPageRequest(
  5141. keyword: map['Keyword'],
  5142. pageIndex: map['PageIndex'],
  5143. pageSize: map['PageSize'],
  5144. token: map['Token'],
  5145. );
  5146. }
  5147. Map<String, dynamic> toJson() {
  5148. final map = super.toJson();
  5149. if(keyword != null)
  5150. map['Keyword'] = keyword;
  5151. return map;
  5152. }
  5153. }
  5154. class FindReportPosterByCodeRequest extends TokenRequest{
  5155. String? reportPosterCode;
  5156. FindReportPosterByCodeRequest({
  5157. this.reportPosterCode,
  5158. String? token,
  5159. }) : super(
  5160. token: token,
  5161. );
  5162. factory FindReportPosterByCodeRequest.fromJson(Map<String, dynamic> map) {
  5163. return FindReportPosterByCodeRequest(
  5164. reportPosterCode: map['ReportPosterCode'],
  5165. token: map['Token'],
  5166. );
  5167. }
  5168. Map<String, dynamic> toJson() {
  5169. final map = super.toJson();
  5170. if(reportPosterCode != null)
  5171. map['ReportPosterCode'] = reportPosterCode;
  5172. return map;
  5173. }
  5174. }
  5175. class FindReportPosterByPageRequest extends PageRequest{
  5176. String? keyword;
  5177. FindReportPosterByPageRequest({
  5178. this.keyword,
  5179. int pageIndex = 0,
  5180. int pageSize = 0,
  5181. String? token,
  5182. }) : super(
  5183. pageIndex: pageIndex,
  5184. pageSize: pageSize,
  5185. token: token,
  5186. );
  5187. factory FindReportPosterByPageRequest.fromJson(Map<String, dynamic> map) {
  5188. return FindReportPosterByPageRequest(
  5189. keyword: map['Keyword'],
  5190. pageIndex: map['PageIndex'],
  5191. pageSize: map['PageSize'],
  5192. token: map['Token'],
  5193. );
  5194. }
  5195. Map<String, dynamic> toJson() {
  5196. final map = super.toJson();
  5197. if(keyword != null)
  5198. map['Keyword'] = keyword;
  5199. return map;
  5200. }
  5201. }
  5202. class FindReportPreviewUrlRequest extends TokenRequest{
  5203. String? reportCode;
  5204. String? languageCode;
  5205. FindReportPreviewUrlRequest({
  5206. this.reportCode,
  5207. this.languageCode,
  5208. String? token,
  5209. }) : super(
  5210. token: token,
  5211. );
  5212. factory FindReportPreviewUrlRequest.fromJson(Map<String, dynamic> map) {
  5213. return FindReportPreviewUrlRequest(
  5214. reportCode: map['ReportCode'],
  5215. languageCode: map['LanguageCode'],
  5216. token: map['Token'],
  5217. );
  5218. }
  5219. Map<String, dynamic> toJson() {
  5220. final map = super.toJson();
  5221. if(reportCode != null)
  5222. map['ReportCode'] = reportCode;
  5223. if(languageCode != null)
  5224. map['LanguageCode'] = languageCode;
  5225. return map;
  5226. }
  5227. }
  5228. enum PushDataStateEnum {
  5229. UnDo,
  5230. Successful,
  5231. Failed,
  5232. All,
  5233. }
  5234. class FindReportPushRecordsByPageRequest extends PageRequest{
  5235. String? keyword;
  5236. PushDataStateEnum queryState;
  5237. FindReportPushRecordsByPageRequest({
  5238. this.keyword,
  5239. this.queryState = PushDataStateEnum.UnDo,
  5240. int pageIndex = 0,
  5241. int pageSize = 0,
  5242. String? token,
  5243. }) : super(
  5244. pageIndex: pageIndex,
  5245. pageSize: pageSize,
  5246. token: token,
  5247. );
  5248. factory FindReportPushRecordsByPageRequest.fromJson(Map<String, dynamic> map) {
  5249. return FindReportPushRecordsByPageRequest(
  5250. keyword: map['Keyword'],
  5251. queryState: PushDataStateEnum.values.firstWhere((e) => e.index == map['QueryState']),
  5252. pageIndex: map['PageIndex'],
  5253. pageSize: map['PageSize'],
  5254. token: map['Token'],
  5255. );
  5256. }
  5257. Map<String, dynamic> toJson() {
  5258. final map = super.toJson();
  5259. if(keyword != null)
  5260. map['Keyword'] = keyword;
  5261. map['QueryState'] = queryState.index;
  5262. return map;
  5263. }
  5264. }
  5265. class FindReportShareConentRequest extends TokenRequest{
  5266. String? shortCode;
  5267. FindReportShareConentRequest({
  5268. this.shortCode,
  5269. String? token,
  5270. }) : super(
  5271. token: token,
  5272. );
  5273. factory FindReportShareConentRequest.fromJson(Map<String, dynamic> map) {
  5274. return FindReportShareConentRequest(
  5275. shortCode: map['ShortCode'],
  5276. token: map['Token'],
  5277. );
  5278. }
  5279. Map<String, dynamic> toJson() {
  5280. final map = super.toJson();
  5281. if(shortCode != null)
  5282. map['ShortCode'] = shortCode;
  5283. return map;
  5284. }
  5285. }
  5286. class FindReportTemplateUserPagesRequest extends PageRequest{
  5287. String? reportTemplateCode;
  5288. String? keyword;
  5289. FindReportTemplateUserPagesRequest({
  5290. this.reportTemplateCode,
  5291. this.keyword,
  5292. int pageIndex = 0,
  5293. int pageSize = 0,
  5294. String? token,
  5295. }) : super(
  5296. pageIndex: pageIndex,
  5297. pageSize: pageSize,
  5298. token: token,
  5299. );
  5300. factory FindReportTemplateUserPagesRequest.fromJson(Map<String, dynamic> map) {
  5301. return FindReportTemplateUserPagesRequest(
  5302. reportTemplateCode: map['ReportTemplateCode'],
  5303. keyword: map['Keyword'],
  5304. pageIndex: map['PageIndex'],
  5305. pageSize: map['PageSize'],
  5306. token: map['Token'],
  5307. );
  5308. }
  5309. Map<String, dynamic> toJson() {
  5310. final map = super.toJson();
  5311. if(reportTemplateCode != null)
  5312. map['ReportTemplateCode'] = reportTemplateCode;
  5313. if(keyword != null)
  5314. map['Keyword'] = keyword;
  5315. return map;
  5316. }
  5317. }
  5318. class FindRoleByCodeRequest extends TokenRequest{
  5319. String? roleCode;
  5320. FindRoleByCodeRequest({
  5321. this.roleCode,
  5322. String? token,
  5323. }) : super(
  5324. token: token,
  5325. );
  5326. factory FindRoleByCodeRequest.fromJson(Map<String, dynamic> map) {
  5327. return FindRoleByCodeRequest(
  5328. roleCode: map['RoleCode'],
  5329. token: map['Token'],
  5330. );
  5331. }
  5332. Map<String, dynamic> toJson() {
  5333. final map = super.toJson();
  5334. if(roleCode != null)
  5335. map['RoleCode'] = roleCode;
  5336. return map;
  5337. }
  5338. }
  5339. class FindThesaurusPagesRequest extends PageRequest{
  5340. String? keyword;
  5341. ThesaurusTypeEnum? thesaurusType;
  5342. ThesaurusStatusTypeEnum? thesaurusStateType;
  5343. FindThesaurusPagesRequest({
  5344. this.keyword,
  5345. this.thesaurusType,
  5346. this.thesaurusStateType,
  5347. int pageIndex = 0,
  5348. int pageSize = 0,
  5349. String? token,
  5350. }) : super(
  5351. pageIndex: pageIndex,
  5352. pageSize: pageSize,
  5353. token: token,
  5354. );
  5355. factory FindThesaurusPagesRequest.fromJson(Map<String, dynamic> map) {
  5356. return FindThesaurusPagesRequest(
  5357. keyword: map['Keyword'],
  5358. thesaurusType: map['ThesaurusType'] != null ? ThesaurusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusType']) : null,
  5359. thesaurusStateType: map['ThesaurusStateType'] != null ? ThesaurusStatusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusStateType']) : null,
  5360. pageIndex: map['PageIndex'],
  5361. pageSize: map['PageSize'],
  5362. token: map['Token'],
  5363. );
  5364. }
  5365. Map<String, dynamic> toJson() {
  5366. final map = super.toJson();
  5367. if(keyword != null)
  5368. map['Keyword'] = keyword;
  5369. if(thesaurusType != null)
  5370. map['ThesaurusType'] = thesaurusType;
  5371. if(thesaurusStateType != null)
  5372. map['ThesaurusStateType'] = thesaurusStateType;
  5373. return map;
  5374. }
  5375. }
  5376. class FindThesaurusUserPagesRequest extends PageRequest{
  5377. String? thesaurusCode;
  5378. String? keyword;
  5379. FindThesaurusUserPagesRequest({
  5380. this.thesaurusCode,
  5381. this.keyword,
  5382. int pageIndex = 0,
  5383. int pageSize = 0,
  5384. String? token,
  5385. }) : super(
  5386. pageIndex: pageIndex,
  5387. pageSize: pageSize,
  5388. token: token,
  5389. );
  5390. factory FindThesaurusUserPagesRequest.fromJson(Map<String, dynamic> map) {
  5391. return FindThesaurusUserPagesRequest(
  5392. thesaurusCode: map['ThesaurusCode'],
  5393. keyword: map['Keyword'],
  5394. pageIndex: map['PageIndex'],
  5395. pageSize: map['PageSize'],
  5396. token: map['Token'],
  5397. );
  5398. }
  5399. Map<String, dynamic> toJson() {
  5400. final map = super.toJson();
  5401. if(thesaurusCode != null)
  5402. map['ThesaurusCode'] = thesaurusCode;
  5403. if(keyword != null)
  5404. map['Keyword'] = keyword;
  5405. return map;
  5406. }
  5407. }
  5408. class FindThirdPartyInfoByCodeRequest extends TokenRequest{
  5409. String? code;
  5410. FindThirdPartyInfoByCodeRequest({
  5411. this.code,
  5412. String? token,
  5413. }) : super(
  5414. token: token,
  5415. );
  5416. factory FindThirdPartyInfoByCodeRequest.fromJson(Map<String, dynamic> map) {
  5417. return FindThirdPartyInfoByCodeRequest(
  5418. code: map['Code'],
  5419. token: map['Token'],
  5420. );
  5421. }
  5422. Map<String, dynamic> toJson() {
  5423. final map = super.toJson();
  5424. if(code != null)
  5425. map['Code'] = code;
  5426. return map;
  5427. }
  5428. }
  5429. class FindUserByCodeRequest extends TokenRequest{
  5430. String? userCode;
  5431. FindUserByCodeRequest({
  5432. this.userCode,
  5433. String? token,
  5434. }) : super(
  5435. token: token,
  5436. );
  5437. factory FindUserByCodeRequest.fromJson(Map<String, dynamic> map) {
  5438. return FindUserByCodeRequest(
  5439. userCode: map['UserCode'],
  5440. token: map['Token'],
  5441. );
  5442. }
  5443. Map<String, dynamic> toJson() {
  5444. final map = super.toJson();
  5445. if(userCode != null)
  5446. map['UserCode'] = userCode;
  5447. return map;
  5448. }
  5449. }
  5450. class GetAdminPagesRequest extends PageRequest{
  5451. String? queryType;
  5452. String? keyWord;
  5453. String? roleCode;
  5454. bool isShowSuperRoleCode;
  5455. String? fatherCode;
  5456. String? languageCode;
  5457. GetAdminPagesRequest({
  5458. this.queryType,
  5459. this.keyWord,
  5460. this.roleCode,
  5461. this.isShowSuperRoleCode = false,
  5462. this.fatherCode,
  5463. this.languageCode,
  5464. int pageIndex = 0,
  5465. int pageSize = 0,
  5466. String? token,
  5467. }) : super(
  5468. pageIndex: pageIndex,
  5469. pageSize: pageSize,
  5470. token: token,
  5471. );
  5472. factory GetAdminPagesRequest.fromJson(Map<String, dynamic> map) {
  5473. return GetAdminPagesRequest(
  5474. queryType: map['QueryType'],
  5475. keyWord: map['KeyWord'],
  5476. roleCode: map['RoleCode'],
  5477. isShowSuperRoleCode: map['IsShowSuperRoleCode'],
  5478. fatherCode: map['FatherCode'],
  5479. languageCode: map['LanguageCode'],
  5480. pageIndex: map['PageIndex'],
  5481. pageSize: map['PageSize'],
  5482. token: map['Token'],
  5483. );
  5484. }
  5485. Map<String, dynamic> toJson() {
  5486. final map = super.toJson();
  5487. if(queryType != null)
  5488. map['QueryType'] = queryType;
  5489. if(keyWord != null)
  5490. map['KeyWord'] = keyWord;
  5491. if(roleCode != null)
  5492. map['RoleCode'] = roleCode;
  5493. map['IsShowSuperRoleCode'] = isShowSuperRoleCode;
  5494. if(fatherCode != null)
  5495. map['FatherCode'] = fatherCode;
  5496. if(languageCode != null)
  5497. map['LanguageCode'] = languageCode;
  5498. return map;
  5499. }
  5500. }
  5501. class GetAdminRolePagesRequest extends PageRequest{
  5502. String? roleName;
  5503. GetAdminRolePagesRequest({
  5504. this.roleName,
  5505. int pageIndex = 0,
  5506. int pageSize = 0,
  5507. String? token,
  5508. }) : super(
  5509. pageIndex: pageIndex,
  5510. pageSize: pageSize,
  5511. token: token,
  5512. );
  5513. factory GetAdminRolePagesRequest.fromJson(Map<String, dynamic> map) {
  5514. return GetAdminRolePagesRequest(
  5515. roleName: map['RoleName'],
  5516. pageIndex: map['PageIndex'],
  5517. pageSize: map['PageSize'],
  5518. token: map['Token'],
  5519. );
  5520. }
  5521. Map<String, dynamic> toJson() {
  5522. final map = super.toJson();
  5523. if(roleName != null)
  5524. map['RoleName'] = roleName;
  5525. return map;
  5526. }
  5527. }
  5528. class GetDeviceModelSelectRequest extends TokenRequest{
  5529. String? parentCode;
  5530. GetDeviceModelSelectRequest({
  5531. this.parentCode,
  5532. String? token,
  5533. }) : super(
  5534. token: token,
  5535. );
  5536. factory GetDeviceModelSelectRequest.fromJson(Map<String, dynamic> map) {
  5537. return GetDeviceModelSelectRequest(
  5538. parentCode: map['ParentCode'],
  5539. token: map['Token'],
  5540. );
  5541. }
  5542. Map<String, dynamic> toJson() {
  5543. final map = super.toJson();
  5544. if(parentCode != null)
  5545. map['ParentCode'] = parentCode;
  5546. return map;
  5547. }
  5548. }
  5549. class GetDeviceOutputConfigRequest extends TokenRequest{
  5550. DeviceVideoOutputTypeEnum deviceVideoOutputType;
  5551. GetDeviceOutputConfigRequest({
  5552. this.deviceVideoOutputType = DeviceVideoOutputTypeEnum.MergedVideo,
  5553. String? token,
  5554. }) : super(
  5555. token: token,
  5556. );
  5557. factory GetDeviceOutputConfigRequest.fromJson(Map<String, dynamic> map) {
  5558. return GetDeviceOutputConfigRequest(
  5559. deviceVideoOutputType: DeviceVideoOutputTypeEnum.values.firstWhere((e) => e.index == map['DeviceVideoOutputType']),
  5560. token: map['Token'],
  5561. );
  5562. }
  5563. Map<String, dynamic> toJson() {
  5564. final map = super.toJson();
  5565. map['DeviceVideoOutputType'] = deviceVideoOutputType.index;
  5566. return map;
  5567. }
  5568. }
  5569. class GetDeviceBrandModelPageRequest extends PageRequest{
  5570. String? keyword;
  5571. GetDeviceBrandModelPageRequest({
  5572. this.keyword,
  5573. int pageIndex = 0,
  5574. int pageSize = 0,
  5575. String? token,
  5576. }) : super(
  5577. pageIndex: pageIndex,
  5578. pageSize: pageSize,
  5579. token: token,
  5580. );
  5581. factory GetDeviceBrandModelPageRequest.fromJson(Map<String, dynamic> map) {
  5582. return GetDeviceBrandModelPageRequest(
  5583. keyword: map['Keyword'],
  5584. pageIndex: map['PageIndex'],
  5585. pageSize: map['PageSize'],
  5586. token: map['Token'],
  5587. );
  5588. }
  5589. Map<String, dynamic> toJson() {
  5590. final map = super.toJson();
  5591. if(keyword != null)
  5592. map['Keyword'] = keyword;
  5593. return map;
  5594. }
  5595. }
  5596. class DeleteBrandModelOutputConfigRequest {
  5597. List<String>? brandModelCodes;
  5598. DeleteBrandModelOutputConfigRequest({
  5599. this.brandModelCodes,
  5600. });
  5601. factory DeleteBrandModelOutputConfigRequest.fromJson(Map<String, dynamic> map) {
  5602. return DeleteBrandModelOutputConfigRequest(
  5603. brandModelCodes: map['BrandModelCodes']?.cast<String>().toList(),
  5604. );
  5605. }
  5606. Map<String, dynamic> toJson() {
  5607. final map = Map<String, dynamic>();
  5608. if(brandModelCodes != null) {
  5609. map['BrandModelCodes'] = brandModelCodes;
  5610. }
  5611. return map;
  5612. }
  5613. }
  5614. class GetDevicePagesRequest extends PageRequest{
  5615. String? queryType;
  5616. String? keyword;
  5617. List<String>? hospitals;
  5618. String? adminName;
  5619. String? userName;
  5620. GetDevicePagesRequest({
  5621. this.queryType,
  5622. this.keyword,
  5623. this.hospitals,
  5624. this.adminName,
  5625. this.userName,
  5626. int pageIndex = 0,
  5627. int pageSize = 0,
  5628. String? token,
  5629. }) : super(
  5630. pageIndex: pageIndex,
  5631. pageSize: pageSize,
  5632. token: token,
  5633. );
  5634. factory GetDevicePagesRequest.fromJson(Map<String, dynamic> map) {
  5635. return GetDevicePagesRequest(
  5636. queryType: map['QueryType'],
  5637. keyword: map['Keyword'],
  5638. hospitals: map['Hospitals']?.cast<String>().toList(),
  5639. adminName: map['AdminName'],
  5640. userName: map['UserName'],
  5641. pageIndex: map['PageIndex'],
  5642. pageSize: map['PageSize'],
  5643. token: map['Token'],
  5644. );
  5645. }
  5646. Map<String, dynamic> toJson() {
  5647. final map = super.toJson();
  5648. if(queryType != null)
  5649. map['QueryType'] = queryType;
  5650. if(keyword != null)
  5651. map['Keyword'] = keyword;
  5652. if(hospitals != null)
  5653. map['Hospitals'] = hospitals;
  5654. if(adminName != null)
  5655. map['AdminName'] = adminName;
  5656. if(userName != null)
  5657. map['UserName'] = userName;
  5658. return map;
  5659. }
  5660. }
  5661. class FindDeviceInfoByDeviceTypeRequest {
  5662. String? deviceTypeCode;
  5663. FindDeviceInfoByDeviceTypeRequest({
  5664. this.deviceTypeCode,
  5665. });
  5666. factory FindDeviceInfoByDeviceTypeRequest.fromJson(Map<String, dynamic> map) {
  5667. return FindDeviceInfoByDeviceTypeRequest(
  5668. deviceTypeCode: map['DeviceTypeCode'],
  5669. );
  5670. }
  5671. Map<String, dynamic> toJson() {
  5672. final map = Map<String, dynamic>();
  5673. if(deviceTypeCode != null) {
  5674. map['DeviceTypeCode'] = deviceTypeCode;
  5675. }
  5676. return map;
  5677. }
  5678. }
  5679. class GetDeviceTypePagesRequest extends PageRequest{
  5680. String? deviceType;
  5681. String? deviceModel;
  5682. GetDeviceTypePagesRequest({
  5683. this.deviceType,
  5684. this.deviceModel,
  5685. int pageIndex = 0,
  5686. int pageSize = 0,
  5687. String? token,
  5688. }) : super(
  5689. pageIndex: pageIndex,
  5690. pageSize: pageSize,
  5691. token: token,
  5692. );
  5693. factory GetDeviceTypePagesRequest.fromJson(Map<String, dynamic> map) {
  5694. return GetDeviceTypePagesRequest(
  5695. deviceType: map['DeviceType'],
  5696. deviceModel: map['DeviceModel'],
  5697. pageIndex: map['PageIndex'],
  5698. pageSize: map['PageSize'],
  5699. token: map['Token'],
  5700. );
  5701. }
  5702. Map<String, dynamic> toJson() {
  5703. final map = super.toJson();
  5704. if(deviceType != null)
  5705. map['DeviceType'] = deviceType;
  5706. if(deviceModel != null)
  5707. map['DeviceModel'] = deviceModel;
  5708. return map;
  5709. }
  5710. }
  5711. class GetDeviceUserPagesRequest extends PageRequest{
  5712. List<String>? deviceCodes;
  5713. String? queryType;
  5714. String? keyword;
  5715. int type;
  5716. GetDeviceUserPagesRequest({
  5717. this.deviceCodes,
  5718. this.queryType,
  5719. this.keyword,
  5720. this.type = 0,
  5721. int pageIndex = 0,
  5722. int pageSize = 0,
  5723. String? token,
  5724. }) : super(
  5725. pageIndex: pageIndex,
  5726. pageSize: pageSize,
  5727. token: token,
  5728. );
  5729. factory GetDeviceUserPagesRequest.fromJson(Map<String, dynamic> map) {
  5730. return GetDeviceUserPagesRequest(
  5731. deviceCodes: map['DeviceCodes']?.cast<String>().toList(),
  5732. queryType: map['QueryType'],
  5733. keyword: map['Keyword'],
  5734. type: map['Type'],
  5735. pageIndex: map['PageIndex'],
  5736. pageSize: map['PageSize'],
  5737. token: map['Token'],
  5738. );
  5739. }
  5740. Map<String, dynamic> toJson() {
  5741. final map = super.toJson();
  5742. if(deviceCodes != null)
  5743. map['DeviceCodes'] = deviceCodes;
  5744. if(queryType != null)
  5745. map['QueryType'] = queryType;
  5746. if(keyword != null)
  5747. map['Keyword'] = keyword;
  5748. map['Type'] = type;
  5749. return map;
  5750. }
  5751. }
  5752. class GetDistributedServerRequest extends PageRequest{
  5753. String? keyword;
  5754. GetDistributedServerRequest({
  5755. this.keyword,
  5756. int pageIndex = 0,
  5757. int pageSize = 0,
  5758. String? token,
  5759. }) : super(
  5760. pageIndex: pageIndex,
  5761. pageSize: pageSize,
  5762. token: token,
  5763. );
  5764. factory GetDistributedServerRequest.fromJson(Map<String, dynamic> map) {
  5765. return GetDistributedServerRequest(
  5766. keyword: map['Keyword'],
  5767. pageIndex: map['PageIndex'],
  5768. pageSize: map['PageSize'],
  5769. token: map['Token'],
  5770. );
  5771. }
  5772. Map<String, dynamic> toJson() {
  5773. final map = super.toJson();
  5774. if(keyword != null)
  5775. map['Keyword'] = keyword;
  5776. return map;
  5777. }
  5778. }
  5779. class GetLogPagesRequest extends PageRequest{
  5780. String? level;
  5781. String? keyWord;
  5782. String? exclude;
  5783. DateTime? startTime;
  5784. DateTime? endTime;
  5785. String? requestServerHost;
  5786. GetLogPagesRequest({
  5787. this.level,
  5788. this.keyWord,
  5789. this.exclude,
  5790. this.startTime,
  5791. this.endTime,
  5792. this.requestServerHost,
  5793. int pageIndex = 0,
  5794. int pageSize = 0,
  5795. String? token,
  5796. }) : super(
  5797. pageIndex: pageIndex,
  5798. pageSize: pageSize,
  5799. token: token,
  5800. );
  5801. factory GetLogPagesRequest.fromJson(Map<String, dynamic> map) {
  5802. return GetLogPagesRequest(
  5803. level: map['Level'],
  5804. keyWord: map['KeyWord'],
  5805. exclude: map['Exclude'],
  5806. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  5807. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  5808. requestServerHost: map['RequestServerHost'],
  5809. pageIndex: map['PageIndex'],
  5810. pageSize: map['PageSize'],
  5811. token: map['Token'],
  5812. );
  5813. }
  5814. Map<String, dynamic> toJson() {
  5815. final map = super.toJson();
  5816. if(level != null)
  5817. map['Level'] = level;
  5818. if(keyWord != null)
  5819. map['KeyWord'] = keyWord;
  5820. if(exclude != null)
  5821. map['Exclude'] = exclude;
  5822. if(startTime != null)
  5823. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  5824. if(endTime != null)
  5825. map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
  5826. if(requestServerHost != null)
  5827. map['RequestServerHost'] = requestServerHost;
  5828. return map;
  5829. }
  5830. }
  5831. class GetOrganizationCustomSettingRequest extends TokenRequest{
  5832. String? langugeKey;
  5833. String? settingModule;
  5834. String? organizationCode;
  5835. GetOrganizationCustomSettingRequest({
  5836. this.langugeKey,
  5837. this.settingModule,
  5838. this.organizationCode,
  5839. String? token,
  5840. }) : super(
  5841. token: token,
  5842. );
  5843. factory GetOrganizationCustomSettingRequest.fromJson(Map<String, dynamic> map) {
  5844. return GetOrganizationCustomSettingRequest(
  5845. langugeKey: map['LangugeKey'],
  5846. settingModule: map['SettingModule'],
  5847. organizationCode: map['OrganizationCode'],
  5848. token: map['Token'],
  5849. );
  5850. }
  5851. Map<String, dynamic> toJson() {
  5852. final map = super.toJson();
  5853. if(langugeKey != null)
  5854. map['LangugeKey'] = langugeKey;
  5855. if(settingModule != null)
  5856. map['SettingModule'] = settingModule;
  5857. if(organizationCode != null)
  5858. map['OrganizationCode'] = organizationCode;
  5859. return map;
  5860. }
  5861. }
  5862. class GetOrganizationPagesRequest extends PageRequest{
  5863. String? queryType;
  5864. String? keyword;
  5865. String? state;
  5866. String? isinvented;
  5867. GetOrganizationPagesRequest({
  5868. this.queryType,
  5869. this.keyword,
  5870. this.state,
  5871. this.isinvented,
  5872. int pageIndex = 0,
  5873. int pageSize = 0,
  5874. String? token,
  5875. }) : super(
  5876. pageIndex: pageIndex,
  5877. pageSize: pageSize,
  5878. token: token,
  5879. );
  5880. factory GetOrganizationPagesRequest.fromJson(Map<String, dynamic> map) {
  5881. return GetOrganizationPagesRequest(
  5882. queryType: map['QueryType'],
  5883. keyword: map['Keyword'],
  5884. state: map['State'],
  5885. isinvented: map['Isinvented'],
  5886. pageIndex: map['PageIndex'],
  5887. pageSize: map['PageSize'],
  5888. token: map['Token'],
  5889. );
  5890. }
  5891. Map<String, dynamic> toJson() {
  5892. final map = super.toJson();
  5893. if(queryType != null)
  5894. map['QueryType'] = queryType;
  5895. if(keyword != null)
  5896. map['Keyword'] = keyword;
  5897. if(state != null)
  5898. map['State'] = state;
  5899. if(isinvented != null)
  5900. map['Isinvented'] = isinvented;
  5901. return map;
  5902. }
  5903. }
  5904. class GetOrganizationRequest extends TokenRequest{
  5905. String? organizationCode;
  5906. GetOrganizationRequest({
  5907. this.organizationCode,
  5908. String? token,
  5909. }) : super(
  5910. token: token,
  5911. );
  5912. factory GetOrganizationRequest.fromJson(Map<String, dynamic> map) {
  5913. return GetOrganizationRequest(
  5914. organizationCode: map['OrganizationCode'],
  5915. token: map['Token'],
  5916. );
  5917. }
  5918. Map<String, dynamic> toJson() {
  5919. final map = super.toJson();
  5920. if(organizationCode != null)
  5921. map['OrganizationCode'] = organizationCode;
  5922. return map;
  5923. }
  5924. }
  5925. class GetOrganizationSettingRequest extends TokenRequest{
  5926. OrganizationSettingTypeEnum settingType;
  5927. String? organizationCode;
  5928. GetOrganizationSettingRequest({
  5929. this.settingType = OrganizationSettingTypeEnum.Patient,
  5930. this.organizationCode,
  5931. String? token,
  5932. }) : super(
  5933. token: token,
  5934. );
  5935. factory GetOrganizationSettingRequest.fromJson(Map<String, dynamic> map) {
  5936. return GetOrganizationSettingRequest(
  5937. settingType: OrganizationSettingTypeEnum.values.firstWhere((e) => e.index == map['SettingType']),
  5938. organizationCode: map['OrganizationCode'],
  5939. token: map['Token'],
  5940. );
  5941. }
  5942. Map<String, dynamic> toJson() {
  5943. final map = super.toJson();
  5944. map['SettingType'] = settingType.index;
  5945. if(organizationCode != null)
  5946. map['OrganizationCode'] = organizationCode;
  5947. return map;
  5948. }
  5949. }
  5950. class GetOrganizationUserPagesRequest extends PageRequest{
  5951. String? organizationCode;
  5952. String? queryType;
  5953. String? keyword;
  5954. GetOrganizationUserPagesRequest({
  5955. this.organizationCode,
  5956. this.queryType,
  5957. this.keyword,
  5958. int pageIndex = 0,
  5959. int pageSize = 0,
  5960. String? token,
  5961. }) : super(
  5962. pageIndex: pageIndex,
  5963. pageSize: pageSize,
  5964. token: token,
  5965. );
  5966. factory GetOrganizationUserPagesRequest.fromJson(Map<String, dynamic> map) {
  5967. return GetOrganizationUserPagesRequest(
  5968. organizationCode: map['OrganizationCode'],
  5969. queryType: map['QueryType'],
  5970. keyword: map['Keyword'],
  5971. pageIndex: map['PageIndex'],
  5972. pageSize: map['PageSize'],
  5973. token: map['Token'],
  5974. );
  5975. }
  5976. Map<String, dynamic> toJson() {
  5977. final map = super.toJson();
  5978. if(organizationCode != null)
  5979. map['OrganizationCode'] = organizationCode;
  5980. if(queryType != null)
  5981. map['QueryType'] = queryType;
  5982. if(keyword != null)
  5983. map['Keyword'] = keyword;
  5984. return map;
  5985. }
  5986. }
  5987. class GetPayUrlRequest extends PageRequest{
  5988. String? shortCode;
  5989. GetPayUrlRequest({
  5990. this.shortCode,
  5991. int pageIndex = 0,
  5992. int pageSize = 0,
  5993. String? token,
  5994. }) : super(
  5995. pageIndex: pageIndex,
  5996. pageSize: pageSize,
  5997. token: token,
  5998. );
  5999. factory GetPayUrlRequest.fromJson(Map<String, dynamic> map) {
  6000. return GetPayUrlRequest(
  6001. shortCode: map['ShortCode'],
  6002. pageIndex: map['PageIndex'],
  6003. pageSize: map['PageSize'],
  6004. token: map['Token'],
  6005. );
  6006. }
  6007. Map<String, dynamic> toJson() {
  6008. final map = super.toJson();
  6009. if(shortCode != null)
  6010. map['ShortCode'] = shortCode;
  6011. return map;
  6012. }
  6013. }
  6014. class GetPayUrlResult {
  6015. String? payUrl;
  6016. GetPayUrlResult({
  6017. this.payUrl,
  6018. });
  6019. factory GetPayUrlResult.fromJson(Map<String, dynamic> map) {
  6020. return GetPayUrlResult(
  6021. payUrl: map['PayUrl'],
  6022. );
  6023. }
  6024. Map<String, dynamic> toJson() {
  6025. final map = Map<String, dynamic>();
  6026. if(payUrl != null) {
  6027. map['PayUrl'] = payUrl;
  6028. }
  6029. return map;
  6030. }
  6031. }
  6032. class GetRolePagesRequest extends PageRequest{
  6033. String? roleName;
  6034. GetRolePagesRequest({
  6035. this.roleName,
  6036. int pageIndex = 0,
  6037. int pageSize = 0,
  6038. String? token,
  6039. }) : super(
  6040. pageIndex: pageIndex,
  6041. pageSize: pageSize,
  6042. token: token,
  6043. );
  6044. factory GetRolePagesRequest.fromJson(Map<String, dynamic> map) {
  6045. return GetRolePagesRequest(
  6046. roleName: map['RoleName'],
  6047. pageIndex: map['PageIndex'],
  6048. pageSize: map['PageSize'],
  6049. token: map['Token'],
  6050. );
  6051. }
  6052. Map<String, dynamic> toJson() {
  6053. final map = super.toJson();
  6054. if(roleName != null)
  6055. map['RoleName'] = roleName;
  6056. return map;
  6057. }
  6058. }
  6059. class GetRoleSelectListRequest extends TokenRequest{
  6060. String? languageCode;
  6061. GetRoleSelectListRequest({
  6062. this.languageCode,
  6063. String? token,
  6064. }) : super(
  6065. token: token,
  6066. );
  6067. factory GetRoleSelectListRequest.fromJson(Map<String, dynamic> map) {
  6068. return GetRoleSelectListRequest(
  6069. languageCode: map['LanguageCode'],
  6070. token: map['Token'],
  6071. );
  6072. }
  6073. Map<String, dynamic> toJson() {
  6074. final map = super.toJson();
  6075. if(languageCode != null)
  6076. map['LanguageCode'] = languageCode;
  6077. return map;
  6078. }
  6079. }
  6080. class GetSelectOrganizationPageRequest extends PageRequest{
  6081. String? keyword;
  6082. GetSelectOrganizationPageRequest({
  6083. this.keyword,
  6084. int pageIndex = 0,
  6085. int pageSize = 0,
  6086. String? token,
  6087. }) : super(
  6088. pageIndex: pageIndex,
  6089. pageSize: pageSize,
  6090. token: token,
  6091. );
  6092. factory GetSelectOrganizationPageRequest.fromJson(Map<String, dynamic> map) {
  6093. return GetSelectOrganizationPageRequest(
  6094. keyword: map['Keyword'],
  6095. pageIndex: map['PageIndex'],
  6096. pageSize: map['PageSize'],
  6097. token: map['Token'],
  6098. );
  6099. }
  6100. Map<String, dynamic> toJson() {
  6101. final map = super.toJson();
  6102. if(keyword != null)
  6103. map['Keyword'] = keyword;
  6104. return map;
  6105. }
  6106. }
  6107. class GetShareExamUrlRequest {
  6108. String? requestUrl;
  6109. String? languageCode;
  6110. GetShareExamUrlRequest({
  6111. this.requestUrl,
  6112. this.languageCode,
  6113. });
  6114. factory GetShareExamUrlRequest.fromJson(Map<String, dynamic> map) {
  6115. return GetShareExamUrlRequest(
  6116. requestUrl: map['RequestUrl'],
  6117. languageCode: map['LanguageCode'],
  6118. );
  6119. }
  6120. Map<String, dynamic> toJson() {
  6121. final map = Map<String, dynamic>();
  6122. if(requestUrl != null) {
  6123. map['RequestUrl'] = requestUrl;
  6124. }
  6125. if(languageCode != null) {
  6126. map['LanguageCode'] = languageCode;
  6127. }
  6128. return map;
  6129. }
  6130. }
  6131. class GetThesaurusItemRequest extends TokenRequest{
  6132. String? thesaurusCode;
  6133. String? thesaurusItemCode;
  6134. GetThesaurusItemRequest({
  6135. this.thesaurusCode,
  6136. this.thesaurusItemCode,
  6137. String? token,
  6138. }) : super(
  6139. token: token,
  6140. );
  6141. factory GetThesaurusItemRequest.fromJson(Map<String, dynamic> map) {
  6142. return GetThesaurusItemRequest(
  6143. thesaurusCode: map['ThesaurusCode'],
  6144. thesaurusItemCode: map['ThesaurusItemCode'],
  6145. token: map['Token'],
  6146. );
  6147. }
  6148. Map<String, dynamic> toJson() {
  6149. final map = super.toJson();
  6150. if(thesaurusCode != null)
  6151. map['ThesaurusCode'] = thesaurusCode;
  6152. if(thesaurusItemCode != null)
  6153. map['ThesaurusItemCode'] = thesaurusItemCode;
  6154. return map;
  6155. }
  6156. }
  6157. class GetThirdPartyInfoPagesRequest extends PageRequest{
  6158. String? name;
  6159. String? isValid;
  6160. GetThirdPartyInfoPagesRequest({
  6161. this.name,
  6162. this.isValid,
  6163. int pageIndex = 0,
  6164. int pageSize = 0,
  6165. String? token,
  6166. }) : super(
  6167. pageIndex: pageIndex,
  6168. pageSize: pageSize,
  6169. token: token,
  6170. );
  6171. factory GetThirdPartyInfoPagesRequest.fromJson(Map<String, dynamic> map) {
  6172. return GetThirdPartyInfoPagesRequest(
  6173. name: map['Name'],
  6174. isValid: map['IsValid'],
  6175. pageIndex: map['PageIndex'],
  6176. pageSize: map['PageSize'],
  6177. token: map['Token'],
  6178. );
  6179. }
  6180. Map<String, dynamic> toJson() {
  6181. final map = super.toJson();
  6182. if(name != null)
  6183. map['Name'] = name;
  6184. if(isValid != null)
  6185. map['IsValid'] = isValid;
  6186. return map;
  6187. }
  6188. }
  6189. class GetUpgradeBusinessDataRequest extends TokenRequest{
  6190. int category;
  6191. GetUpgradeBusinessDataRequest({
  6192. this.category = 0,
  6193. String? token,
  6194. }) : super(
  6195. token: token,
  6196. );
  6197. factory GetUpgradeBusinessDataRequest.fromJson(Map<String, dynamic> map) {
  6198. return GetUpgradeBusinessDataRequest(
  6199. category: map['Category'],
  6200. token: map['Token'],
  6201. );
  6202. }
  6203. Map<String, dynamic> toJson() {
  6204. final map = super.toJson();
  6205. map['Category'] = category;
  6206. return map;
  6207. }
  6208. }
  6209. class GetFeatureListRequest extends TokenRequest{
  6210. String? language;
  6211. GetFeatureListRequest({
  6212. this.language,
  6213. String? token,
  6214. }) : super(
  6215. token: token,
  6216. );
  6217. factory GetFeatureListRequest.fromJson(Map<String, dynamic> map) {
  6218. return GetFeatureListRequest(
  6219. language: map['Language'],
  6220. token: map['Token'],
  6221. );
  6222. }
  6223. Map<String, dynamic> toJson() {
  6224. final map = super.toJson();
  6225. if(language != null)
  6226. map['Language'] = language;
  6227. return map;
  6228. }
  6229. }
  6230. class GetUserDevicesPagesRequest extends PageRequest{
  6231. String? userCode;
  6232. String? keyword;
  6233. GetUserDevicesPagesRequest({
  6234. this.userCode,
  6235. this.keyword,
  6236. int pageIndex = 0,
  6237. int pageSize = 0,
  6238. String? token,
  6239. }) : super(
  6240. pageIndex: pageIndex,
  6241. pageSize: pageSize,
  6242. token: token,
  6243. );
  6244. factory GetUserDevicesPagesRequest.fromJson(Map<String, dynamic> map) {
  6245. return GetUserDevicesPagesRequest(
  6246. userCode: map['UserCode'],
  6247. keyword: map['Keyword'],
  6248. pageIndex: map['PageIndex'],
  6249. pageSize: map['PageSize'],
  6250. token: map['Token'],
  6251. );
  6252. }
  6253. Map<String, dynamic> toJson() {
  6254. final map = super.toJson();
  6255. if(userCode != null)
  6256. map['UserCode'] = userCode;
  6257. if(keyword != null)
  6258. map['Keyword'] = keyword;
  6259. return map;
  6260. }
  6261. }
  6262. class GetOrganizationDevicesPagesRequest extends PageRequest{
  6263. String? organizationCode;
  6264. String? keyword;
  6265. GetOrganizationDevicesPagesRequest({
  6266. this.organizationCode,
  6267. this.keyword,
  6268. int pageIndex = 0,
  6269. int pageSize = 0,
  6270. String? token,
  6271. }) : super(
  6272. pageIndex: pageIndex,
  6273. pageSize: pageSize,
  6274. token: token,
  6275. );
  6276. factory GetOrganizationDevicesPagesRequest.fromJson(Map<String, dynamic> map) {
  6277. return GetOrganizationDevicesPagesRequest(
  6278. organizationCode: map['OrganizationCode'],
  6279. keyword: map['Keyword'],
  6280. pageIndex: map['PageIndex'],
  6281. pageSize: map['PageSize'],
  6282. token: map['Token'],
  6283. );
  6284. }
  6285. Map<String, dynamic> toJson() {
  6286. final map = super.toJson();
  6287. if(organizationCode != null)
  6288. map['OrganizationCode'] = organizationCode;
  6289. if(keyword != null)
  6290. map['Keyword'] = keyword;
  6291. return map;
  6292. }
  6293. }
  6294. class ImitateLoginRequest {
  6295. String? account;
  6296. String? password;
  6297. AccountType accountType;
  6298. ImitateLoginRequest({
  6299. this.account,
  6300. this.password,
  6301. this.accountType = AccountType.Admin,
  6302. });
  6303. factory ImitateLoginRequest.fromJson(Map<String, dynamic> map) {
  6304. return ImitateLoginRequest(
  6305. account: map['Account'],
  6306. password: map['Password'],
  6307. accountType: AccountType.values.firstWhere((e) => e.index == map['AccountType']),
  6308. );
  6309. }
  6310. Map<String, dynamic> toJson() {
  6311. final map = Map<String, dynamic>();
  6312. if(account != null) {
  6313. map['Account'] = account;
  6314. }
  6315. if(password != null) {
  6316. map['Password'] = password;
  6317. }
  6318. map['AccountType'] = accountType.index;
  6319. return map;
  6320. }
  6321. }
  6322. class ImitateLoginResult {
  6323. String? clientId;
  6324. ImitateLoginResult({
  6325. this.clientId,
  6326. });
  6327. factory ImitateLoginResult.fromJson(Map<String, dynamic> map) {
  6328. return ImitateLoginResult(
  6329. clientId: map['ClientId'],
  6330. );
  6331. }
  6332. Map<String, dynamic> toJson() {
  6333. final map = Map<String, dynamic>();
  6334. if(clientId != null) {
  6335. map['ClientId'] = clientId;
  6336. }
  6337. return map;
  6338. }
  6339. }
  6340. class ImportThesaurusRequest {
  6341. String? thesaurusName;
  6342. String? json;
  6343. ThesaurusUsageTypeEnum thesaurusUsageType;
  6344. String? languageCode;
  6345. ImportThesaurusRequest({
  6346. this.thesaurusName,
  6347. this.json,
  6348. this.thesaurusUsageType = ThesaurusUsageTypeEnum.People,
  6349. this.languageCode,
  6350. });
  6351. factory ImportThesaurusRequest.fromJson(Map<String, dynamic> map) {
  6352. return ImportThesaurusRequest(
  6353. thesaurusName: map['ThesaurusName'],
  6354. json: map['Json'],
  6355. thesaurusUsageType: ThesaurusUsageTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusUsageType']),
  6356. languageCode: map['LanguageCode'],
  6357. );
  6358. }
  6359. Map<String, dynamic> toJson() {
  6360. final map = Map<String, dynamic>();
  6361. if(thesaurusName != null) {
  6362. map['ThesaurusName'] = thesaurusName;
  6363. }
  6364. if(json != null) {
  6365. map['Json'] = json;
  6366. }
  6367. map['ThesaurusUsageType'] = thesaurusUsageType.index;
  6368. if(languageCode != null) {
  6369. map['LanguageCode'] = languageCode;
  6370. }
  6371. return map;
  6372. }
  6373. }
  6374. class LoginRequest {
  6375. String? adminName;
  6376. String? password;
  6377. LoginRequest({
  6378. this.adminName,
  6379. this.password,
  6380. });
  6381. factory LoginRequest.fromJson(Map<String, dynamic> map) {
  6382. return LoginRequest(
  6383. adminName: map['AdminName'],
  6384. password: map['Password'],
  6385. );
  6386. }
  6387. Map<String, dynamic> toJson() {
  6388. final map = Map<String, dynamic>();
  6389. if(adminName != null) {
  6390. map['AdminName'] = adminName;
  6391. }
  6392. if(password != null) {
  6393. map['Password'] = password;
  6394. }
  6395. return map;
  6396. }
  6397. }
  6398. enum ProductStatusEnum {
  6399. SoldOut,
  6400. Putaway,
  6401. }
  6402. enum ProductTypeEnum {
  6403. Course,
  6404. Other,
  6405. }
  6406. class ManageCreateProductRequest extends TokenRequest{
  6407. String? name;
  6408. String? headImage;
  6409. double price;
  6410. ProductStatusEnum status;
  6411. ProductTypeEnum productType;
  6412. String? belongerCode;
  6413. String? relationInfo;
  6414. ManageCreateProductRequest({
  6415. this.name,
  6416. this.headImage,
  6417. this.price = 0,
  6418. this.status = ProductStatusEnum.SoldOut,
  6419. this.productType = ProductTypeEnum.Course,
  6420. this.belongerCode,
  6421. this.relationInfo,
  6422. String? token,
  6423. }) : super(
  6424. token: token,
  6425. );
  6426. factory ManageCreateProductRequest.fromJson(Map<String, dynamic> map) {
  6427. return ManageCreateProductRequest(
  6428. name: map['Name'],
  6429. headImage: map['HeadImage'],
  6430. price: double.parse(map['Price'].toString()),
  6431. status: ProductStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  6432. productType: ProductTypeEnum.values.firstWhere((e) => e.index == map['ProductType']),
  6433. belongerCode: map['BelongerCode'],
  6434. relationInfo: map['RelationInfo'],
  6435. token: map['Token'],
  6436. );
  6437. }
  6438. Map<String, dynamic> toJson() {
  6439. final map = super.toJson();
  6440. if(name != null)
  6441. map['Name'] = name;
  6442. if(headImage != null)
  6443. map['HeadImage'] = headImage;
  6444. map['Price'] = price;
  6445. map['Status'] = status.index;
  6446. map['ProductType'] = productType.index;
  6447. if(belongerCode != null)
  6448. map['BelongerCode'] = belongerCode;
  6449. if(relationInfo != null)
  6450. map['RelationInfo'] = relationInfo;
  6451. return map;
  6452. }
  6453. }
  6454. class ManageGetOrderDetailRequest extends TokenRequest{
  6455. String? orderCode;
  6456. ManageGetOrderDetailRequest({
  6457. this.orderCode,
  6458. String? token,
  6459. }) : super(
  6460. token: token,
  6461. );
  6462. factory ManageGetOrderDetailRequest.fromJson(Map<String, dynamic> map) {
  6463. return ManageGetOrderDetailRequest(
  6464. orderCode: map['OrderCode'],
  6465. token: map['Token'],
  6466. );
  6467. }
  6468. Map<String, dynamic> toJson() {
  6469. final map = super.toJson();
  6470. if(orderCode != null)
  6471. map['OrderCode'] = orderCode;
  6472. return map;
  6473. }
  6474. }
  6475. class ManageGetOrderPagesRequest extends PageRequest{
  6476. String? keyWord;
  6477. ManageGetOrderPagesRequest({
  6478. this.keyWord,
  6479. int pageIndex = 0,
  6480. int pageSize = 0,
  6481. String? token,
  6482. }) : super(
  6483. pageIndex: pageIndex,
  6484. pageSize: pageSize,
  6485. token: token,
  6486. );
  6487. factory ManageGetOrderPagesRequest.fromJson(Map<String, dynamic> map) {
  6488. return ManageGetOrderPagesRequest(
  6489. keyWord: map['KeyWord'],
  6490. pageIndex: map['PageIndex'],
  6491. pageSize: map['PageSize'],
  6492. token: map['Token'],
  6493. );
  6494. }
  6495. Map<String, dynamic> toJson() {
  6496. final map = super.toJson();
  6497. if(keyWord != null)
  6498. map['KeyWord'] = keyWord;
  6499. return map;
  6500. }
  6501. }
  6502. class ManageGetPaymentRecordsRequest extends PageRequest{
  6503. String? keyword;
  6504. ManageGetPaymentRecordsRequest({
  6505. this.keyword,
  6506. int pageIndex = 0,
  6507. int pageSize = 0,
  6508. String? token,
  6509. }) : super(
  6510. pageIndex: pageIndex,
  6511. pageSize: pageSize,
  6512. token: token,
  6513. );
  6514. factory ManageGetPaymentRecordsRequest.fromJson(Map<String, dynamic> map) {
  6515. return ManageGetPaymentRecordsRequest(
  6516. keyword: map['Keyword'],
  6517. pageIndex: map['PageIndex'],
  6518. pageSize: map['PageSize'],
  6519. token: map['Token'],
  6520. );
  6521. }
  6522. Map<String, dynamic> toJson() {
  6523. final map = super.toJson();
  6524. if(keyword != null)
  6525. map['Keyword'] = keyword;
  6526. return map;
  6527. }
  6528. }
  6529. class ManageUpdateProductRequest extends TokenRequest{
  6530. String? code;
  6531. String? name;
  6532. String? headImage;
  6533. double price;
  6534. ProductStatusEnum status;
  6535. ProductTypeEnum productType;
  6536. String? belongerCode;
  6537. String? relationInfo;
  6538. ManageUpdateProductRequest({
  6539. this.code,
  6540. this.name,
  6541. this.headImage,
  6542. this.price = 0,
  6543. this.status = ProductStatusEnum.SoldOut,
  6544. this.productType = ProductTypeEnum.Course,
  6545. this.belongerCode,
  6546. this.relationInfo,
  6547. String? token,
  6548. }) : super(
  6549. token: token,
  6550. );
  6551. factory ManageUpdateProductRequest.fromJson(Map<String, dynamic> map) {
  6552. return ManageUpdateProductRequest(
  6553. code: map['Code'],
  6554. name: map['Name'],
  6555. headImage: map['HeadImage'],
  6556. price: double.parse(map['Price'].toString()),
  6557. status: ProductStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  6558. productType: ProductTypeEnum.values.firstWhere((e) => e.index == map['ProductType']),
  6559. belongerCode: map['BelongerCode'],
  6560. relationInfo: map['RelationInfo'],
  6561. token: map['Token'],
  6562. );
  6563. }
  6564. Map<String, dynamic> toJson() {
  6565. final map = super.toJson();
  6566. if(code != null)
  6567. map['Code'] = code;
  6568. if(name != null)
  6569. map['Name'] = name;
  6570. if(headImage != null)
  6571. map['HeadImage'] = headImage;
  6572. map['Price'] = price;
  6573. map['Status'] = status.index;
  6574. map['ProductType'] = productType.index;
  6575. if(belongerCode != null)
  6576. map['BelongerCode'] = belongerCode;
  6577. if(relationInfo != null)
  6578. map['RelationInfo'] = relationInfo;
  6579. return map;
  6580. }
  6581. }
  6582. class BaseFeatureLanguageConfigDTO extends BaseDTO{
  6583. String? language;
  6584. String? featureName;
  6585. BaseFeatureLanguageConfigDTO({
  6586. this.language,
  6587. this.featureName,
  6588. DateTime? createTime,
  6589. DateTime? updateTime,
  6590. }) : super(
  6591. createTime: createTime,
  6592. updateTime: updateTime,
  6593. );
  6594. factory BaseFeatureLanguageConfigDTO.fromJson(Map<String, dynamic> map) {
  6595. return BaseFeatureLanguageConfigDTO(
  6596. language: map['Language'],
  6597. featureName: map['FeatureName'],
  6598. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6599. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  6600. );
  6601. }
  6602. Map<String, dynamic> toJson() {
  6603. final map = super.toJson();
  6604. if(language != null)
  6605. map['Language'] = language;
  6606. if(featureName != null)
  6607. map['FeatureName'] = featureName;
  6608. return map;
  6609. }
  6610. }
  6611. class BaseFeatureInfoDTO extends BaseDTO{
  6612. String? featureCode;
  6613. String? featureName;
  6614. String? fatherCode;
  6615. String? uniqueCode;
  6616. List<BaseFeatureLanguageConfigDTO>? languageConfigs;
  6617. BaseFeatureInfoDTO({
  6618. this.featureCode,
  6619. this.featureName,
  6620. this.fatherCode,
  6621. this.uniqueCode,
  6622. this.languageConfigs,
  6623. DateTime? createTime,
  6624. DateTime? updateTime,
  6625. }) : super(
  6626. createTime: createTime,
  6627. updateTime: updateTime,
  6628. );
  6629. factory BaseFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  6630. return BaseFeatureInfoDTO(
  6631. featureCode: map['FeatureCode'],
  6632. featureName: map['FeatureName'],
  6633. fatherCode: map['FatherCode'],
  6634. uniqueCode: map['UniqueCode'],
  6635. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>BaseFeatureLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6636. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6637. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  6638. );
  6639. }
  6640. Map<String, dynamic> toJson() {
  6641. final map = super.toJson();
  6642. if(featureCode != null)
  6643. map['FeatureCode'] = featureCode;
  6644. if(featureName != null)
  6645. map['FeatureName'] = featureName;
  6646. if(fatherCode != null)
  6647. map['FatherCode'] = fatherCode;
  6648. if(uniqueCode != null)
  6649. map['UniqueCode'] = uniqueCode;
  6650. if(languageConfigs != null)
  6651. map['LanguageConfigs'] = languageConfigs;
  6652. return map;
  6653. }
  6654. }
  6655. class AdminFeatureInfoDTO extends BaseFeatureInfoDTO{
  6656. AdminFeatureInfoDTO({
  6657. String? featureCode,
  6658. String? featureName,
  6659. String? fatherCode,
  6660. String? uniqueCode,
  6661. List<BaseFeatureLanguageConfigDTO>? languageConfigs,
  6662. DateTime? createTime,
  6663. DateTime? updateTime,
  6664. }) : super(
  6665. featureCode: featureCode,
  6666. featureName: featureName,
  6667. fatherCode: fatherCode,
  6668. uniqueCode: uniqueCode,
  6669. languageConfigs: languageConfigs,
  6670. createTime: createTime,
  6671. updateTime: updateTime,
  6672. );
  6673. factory AdminFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  6674. return AdminFeatureInfoDTO(
  6675. featureCode: map['FeatureCode'],
  6676. featureName: map['FeatureName'],
  6677. fatherCode: map['FatherCode'],
  6678. uniqueCode: map['UniqueCode'],
  6679. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>BaseFeatureLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6680. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6681. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  6682. );
  6683. }
  6684. Map<String, dynamic> toJson() {
  6685. final map = super.toJson();
  6686. return map;
  6687. }
  6688. }
  6689. class ModifyAdminFeatureRequest extends AdminFeatureInfoDTO{
  6690. String? token;
  6691. ModifyAdminFeatureRequest({
  6692. this.token,
  6693. String? featureCode,
  6694. String? featureName,
  6695. String? fatherCode,
  6696. String? uniqueCode,
  6697. List<BaseFeatureLanguageConfigDTO>? languageConfigs,
  6698. DateTime? createTime,
  6699. DateTime? updateTime,
  6700. }) : super(
  6701. featureCode: featureCode,
  6702. featureName: featureName,
  6703. fatherCode: fatherCode,
  6704. uniqueCode: uniqueCode,
  6705. languageConfigs: languageConfigs,
  6706. createTime: createTime,
  6707. updateTime: updateTime,
  6708. );
  6709. factory ModifyAdminFeatureRequest.fromJson(Map<String, dynamic> map) {
  6710. return ModifyAdminFeatureRequest(
  6711. token: map['Token'],
  6712. featureCode: map['FeatureCode'],
  6713. featureName: map['FeatureName'],
  6714. fatherCode: map['FatherCode'],
  6715. uniqueCode: map['UniqueCode'],
  6716. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>BaseFeatureLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6717. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6718. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  6719. );
  6720. }
  6721. Map<String, dynamic> toJson() {
  6722. final map = super.toJson();
  6723. if(token != null)
  6724. map['Token'] = token;
  6725. return map;
  6726. }
  6727. }
  6728. class ModifyAdminPasswordRequest extends TokenRequest{
  6729. String? adminCode;
  6730. String? oldPassword;
  6731. String? newPassword;
  6732. ModifyAdminPasswordRequest({
  6733. this.adminCode,
  6734. this.oldPassword,
  6735. this.newPassword,
  6736. String? token,
  6737. }) : super(
  6738. token: token,
  6739. );
  6740. factory ModifyAdminPasswordRequest.fromJson(Map<String, dynamic> map) {
  6741. return ModifyAdminPasswordRequest(
  6742. adminCode: map['AdminCode'],
  6743. oldPassword: map['OldPassword'],
  6744. newPassword: map['NewPassword'],
  6745. token: map['Token'],
  6746. );
  6747. }
  6748. Map<String, dynamic> toJson() {
  6749. final map = super.toJson();
  6750. if(adminCode != null)
  6751. map['AdminCode'] = adminCode;
  6752. if(oldPassword != null)
  6753. map['OldPassword'] = oldPassword;
  6754. if(newPassword != null)
  6755. map['NewPassword'] = newPassword;
  6756. return map;
  6757. }
  6758. }
  6759. class ModifyAdminRequest extends AdminInfoDTO{
  6760. String? token;
  6761. ModifyAdminRequest({
  6762. this.token,
  6763. String? adminCode,
  6764. String? fatherCode,
  6765. String? adminName,
  6766. String? fullName,
  6767. String? secretPassword,
  6768. String? headImageToken,
  6769. String? licenseKey,
  6770. String? lastIP,
  6771. String? phone,
  6772. String? email,
  6773. List<String>? roleCodes,
  6774. LoginLockInfoDTO? loginLockInfo,
  6775. DateTime? passwordUpdateTime,
  6776. List<String>? passwordRecords,
  6777. List<ClearLogOperateDTO>? clearLogOperateList,
  6778. DateTime? createTime,
  6779. DateTime? updateTime,
  6780. }) : super(
  6781. adminCode: adminCode,
  6782. fatherCode: fatherCode,
  6783. adminName: adminName,
  6784. fullName: fullName,
  6785. secretPassword: secretPassword,
  6786. headImageToken: headImageToken,
  6787. licenseKey: licenseKey,
  6788. lastIP: lastIP,
  6789. phone: phone,
  6790. email: email,
  6791. roleCodes: roleCodes,
  6792. loginLockInfo: loginLockInfo,
  6793. passwordUpdateTime: passwordUpdateTime,
  6794. passwordRecords: passwordRecords,
  6795. clearLogOperateList: clearLogOperateList,
  6796. createTime: createTime,
  6797. updateTime: updateTime,
  6798. );
  6799. factory ModifyAdminRequest.fromJson(Map<String, dynamic> map) {
  6800. return ModifyAdminRequest(
  6801. token: map['Token'],
  6802. adminCode: map['AdminCode'],
  6803. fatherCode: map['FatherCode'],
  6804. adminName: map['AdminName'],
  6805. fullName: map['FullName'],
  6806. secretPassword: map['SecretPassword'],
  6807. headImageToken: map['HeadImageToken'],
  6808. licenseKey: map['LicenseKey'],
  6809. lastIP: map['LastIP'],
  6810. phone: map['Phone'],
  6811. email: map['Email'],
  6812. roleCodes: map['RoleCodes']?.cast<String>().toList(),
  6813. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  6814. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  6815. passwordRecords: map['PasswordRecords']?.cast<String>().toList(),
  6816. clearLogOperateList: map['ClearLogOperateList'] != null ? (map['ClearLogOperateList'] as List).map((e)=>ClearLogOperateDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6817. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6818. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  6819. );
  6820. }
  6821. Map<String, dynamic> toJson() {
  6822. final map = super.toJson();
  6823. if(token != null)
  6824. map['Token'] = token;
  6825. return map;
  6826. }
  6827. }
  6828. class AdminRoleDTO extends BaseRoleDTO{
  6829. String? adminGroupCode;
  6830. int adminNum;
  6831. AdminRoleDTO({
  6832. this.adminGroupCode,
  6833. this.adminNum = 0,
  6834. String? roleCode,
  6835. String? roleName,
  6836. String? description,
  6837. List<UserRoleLanguageConfigDTO>? languageConfigs,
  6838. DateTime? createTime,
  6839. DateTime? updateTime,
  6840. }) : super(
  6841. roleCode: roleCode,
  6842. roleName: roleName,
  6843. description: description,
  6844. languageConfigs: languageConfigs,
  6845. createTime: createTime,
  6846. updateTime: updateTime,
  6847. );
  6848. factory AdminRoleDTO.fromJson(Map<String, dynamic> map) {
  6849. return AdminRoleDTO(
  6850. adminGroupCode: map['AdminGroupCode'],
  6851. adminNum: map['AdminNum'],
  6852. roleCode: map['RoleCode'],
  6853. roleName: map['RoleName'],
  6854. description: map['Description'],
  6855. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6856. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6857. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  6858. );
  6859. }
  6860. Map<String, dynamic> toJson() {
  6861. final map = super.toJson();
  6862. if(adminGroupCode != null)
  6863. map['AdminGroupCode'] = adminGroupCode;
  6864. map['AdminNum'] = adminNum;
  6865. return map;
  6866. }
  6867. }
  6868. class ModifyAdminRoleInfoRequest extends AdminRoleDTO{
  6869. String? token;
  6870. List<String>? featuresCodeList;
  6871. ModifyAdminRoleInfoRequest({
  6872. this.token,
  6873. this.featuresCodeList,
  6874. String? adminGroupCode,
  6875. int adminNum = 0,
  6876. String? roleCode,
  6877. String? roleName,
  6878. String? description,
  6879. List<UserRoleLanguageConfigDTO>? languageConfigs,
  6880. DateTime? createTime,
  6881. DateTime? updateTime,
  6882. }) : super(
  6883. adminGroupCode: adminGroupCode,
  6884. adminNum: adminNum,
  6885. roleCode: roleCode,
  6886. roleName: roleName,
  6887. description: description,
  6888. languageConfigs: languageConfigs,
  6889. createTime: createTime,
  6890. updateTime: updateTime,
  6891. );
  6892. factory ModifyAdminRoleInfoRequest.fromJson(Map<String, dynamic> map) {
  6893. return ModifyAdminRoleInfoRequest(
  6894. token: map['Token'],
  6895. featuresCodeList: map['FeaturesCodeList']?.cast<String>().toList(),
  6896. adminGroupCode: map['AdminGroupCode'],
  6897. adminNum: map['AdminNum'],
  6898. roleCode: map['RoleCode'],
  6899. roleName: map['RoleName'],
  6900. description: map['Description'],
  6901. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6902. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6903. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  6904. );
  6905. }
  6906. Map<String, dynamic> toJson() {
  6907. final map = super.toJson();
  6908. if(token != null)
  6909. map['Token'] = token;
  6910. if(featuresCodeList != null)
  6911. map['FeaturesCodeList'] = featuresCodeList;
  6912. return map;
  6913. }
  6914. }
  6915. class ModifyAdminsRolesRequest {
  6916. String? token;
  6917. List<String>? adminCodes;
  6918. List<String>? adminRoleCodes;
  6919. ModifyAdminsRolesRequest({
  6920. this.token,
  6921. this.adminCodes,
  6922. this.adminRoleCodes,
  6923. });
  6924. factory ModifyAdminsRolesRequest.fromJson(Map<String, dynamic> map) {
  6925. return ModifyAdminsRolesRequest(
  6926. token: map['Token'],
  6927. adminCodes: map['AdminCodes']?.cast<String>().toList(),
  6928. adminRoleCodes: map['AdminRoleCodes']?.cast<String>().toList(),
  6929. );
  6930. }
  6931. Map<String, dynamic> toJson() {
  6932. final map = Map<String, dynamic>();
  6933. if(token != null) {
  6934. map['Token'] = token;
  6935. }
  6936. if(adminCodes != null) {
  6937. map['AdminCodes'] = adminCodes;
  6938. }
  6939. if(adminRoleCodes != null) {
  6940. map['AdminRoleCodes'] = adminRoleCodes;
  6941. }
  6942. return map;
  6943. }
  6944. }
  6945. class ModifyDeviceRequest2 extends DeviceInfoDTO{
  6946. String? token;
  6947. ModifyDeviceRequest2({
  6948. this.token,
  6949. String? deviceCode,
  6950. String? serialNumber,
  6951. String? password,
  6952. String? name,
  6953. String? description,
  6954. String? deviceModel,
  6955. String? deviceType,
  6956. String? headPicUrl,
  6957. String? deviceSoftwareVersion,
  6958. String? sDKSoftwareVersion,
  6959. String? organizationCode,
  6960. String? departmentCode,
  6961. String? shortCode,
  6962. bool isAutoShared = false,
  6963. bool isEncryptedShow = false,
  6964. DateTime? lastLoginTime,
  6965. String? systemVersion,
  6966. String? cPUModel,
  6967. String? systemLanguage,
  6968. List<String>? diagnosisModules,
  6969. List<String>? reportPosterCodes,
  6970. bool mergedChannel = false,
  6971. int mergedVideoOutputWidth = 0,
  6972. int mergedVideoOutputHeight = 0,
  6973. List<VideoDeviceDTO>? videoDeviceInfos,
  6974. DownloadModeSettingEnum downloadModeSetting = DownloadModeSettingEnum.Auto,
  6975. bool liveOpened = false,
  6976. bool supportRtc = false,
  6977. String? displayName,
  6978. SonopostVersionEnum sonopostVersion = SonopostVersionEnum.Sonopost,
  6979. DateTime? createTime,
  6980. DateTime? updateTime,
  6981. }) : super(
  6982. deviceCode: deviceCode,
  6983. serialNumber: serialNumber,
  6984. password: password,
  6985. name: name,
  6986. description: description,
  6987. deviceModel: deviceModel,
  6988. deviceType: deviceType,
  6989. headPicUrl: headPicUrl,
  6990. deviceSoftwareVersion: deviceSoftwareVersion,
  6991. sDKSoftwareVersion: sDKSoftwareVersion,
  6992. organizationCode: organizationCode,
  6993. departmentCode: departmentCode,
  6994. shortCode: shortCode,
  6995. isAutoShared: isAutoShared,
  6996. isEncryptedShow: isEncryptedShow,
  6997. lastLoginTime: lastLoginTime,
  6998. systemVersion: systemVersion,
  6999. cPUModel: cPUModel,
  7000. systemLanguage: systemLanguage,
  7001. diagnosisModules: diagnosisModules,
  7002. reportPosterCodes: reportPosterCodes,
  7003. mergedChannel: mergedChannel,
  7004. mergedVideoOutputWidth: mergedVideoOutputWidth,
  7005. mergedVideoOutputHeight: mergedVideoOutputHeight,
  7006. videoDeviceInfos: videoDeviceInfos,
  7007. downloadModeSetting: downloadModeSetting,
  7008. liveOpened: liveOpened,
  7009. supportRtc: supportRtc,
  7010. displayName: displayName,
  7011. sonopostVersion: sonopostVersion,
  7012. createTime: createTime,
  7013. updateTime: updateTime,
  7014. );
  7015. factory ModifyDeviceRequest2.fromJson(Map<String, dynamic> map) {
  7016. return ModifyDeviceRequest2(
  7017. token: map['Token'],
  7018. deviceCode: map['DeviceCode'],
  7019. serialNumber: map['SerialNumber'],
  7020. password: map['Password'],
  7021. name: map['Name'],
  7022. description: map['Description'],
  7023. deviceModel: map['DeviceModel'],
  7024. deviceType: map['DeviceType'],
  7025. headPicUrl: map['HeadPicUrl'],
  7026. deviceSoftwareVersion: map['DeviceSoftwareVersion'],
  7027. sDKSoftwareVersion: map['SDKSoftwareVersion'],
  7028. organizationCode: map['OrganizationCode'],
  7029. departmentCode: map['DepartmentCode'],
  7030. shortCode: map['ShortCode'],
  7031. isAutoShared: map['IsAutoShared'],
  7032. isEncryptedShow: map['IsEncryptedShow'],
  7033. lastLoginTime: map['LastLoginTime'] != null ? DateTime.parse(map['LastLoginTime']) : null,
  7034. systemVersion: map['SystemVersion'],
  7035. cPUModel: map['CPUModel'],
  7036. systemLanguage: map['SystemLanguage'],
  7037. diagnosisModules: map['DiagnosisModules']?.cast<String>().toList(),
  7038. reportPosterCodes: map['ReportPosterCodes']?.cast<String>().toList(),
  7039. mergedChannel: map['MergedChannel'],
  7040. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  7041. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  7042. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  7043. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  7044. liveOpened: map['LiveOpened'],
  7045. supportRtc: map['SupportRtc'],
  7046. displayName: map['DisplayName'],
  7047. sonopostVersion: SonopostVersionEnum.values.firstWhere((e) => e.index == map['SonopostVersion']),
  7048. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7049. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7050. );
  7051. }
  7052. Map<String, dynamic> toJson() {
  7053. final map = super.toJson();
  7054. if(token != null)
  7055. map['Token'] = token;
  7056. return map;
  7057. }
  7058. }
  7059. class ModifyDeviceDownloadModeRequest extends TokenRequest{
  7060. String? deviceCode;
  7061. DownloadModeSettingEnum downloadModeSetting;
  7062. ModifyDeviceDownloadModeRequest({
  7063. this.deviceCode,
  7064. this.downloadModeSetting = DownloadModeSettingEnum.Auto,
  7065. String? token,
  7066. }) : super(
  7067. token: token,
  7068. );
  7069. factory ModifyDeviceDownloadModeRequest.fromJson(Map<String, dynamic> map) {
  7070. return ModifyDeviceDownloadModeRequest(
  7071. deviceCode: map['DeviceCode'],
  7072. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  7073. token: map['Token'],
  7074. );
  7075. }
  7076. Map<String, dynamic> toJson() {
  7077. final map = super.toJson();
  7078. if(deviceCode != null)
  7079. map['DeviceCode'] = deviceCode;
  7080. map['DownloadModeSetting'] = downloadModeSetting.index;
  7081. return map;
  7082. }
  7083. }
  7084. class ModifyDeviceMergedVideoSizeRequest extends TokenRequest{
  7085. String? deviceCode;
  7086. bool mergedChannel;
  7087. int mergedVideoOutputWidth;
  7088. int mergedVideoOutputHeight;
  7089. List<VideoDeviceDTO>? videoDeviceInfos;
  7090. ModifyDeviceMergedVideoSizeRequest({
  7091. this.deviceCode,
  7092. this.mergedChannel = false,
  7093. this.mergedVideoOutputWidth = 0,
  7094. this.mergedVideoOutputHeight = 0,
  7095. this.videoDeviceInfos,
  7096. String? token,
  7097. }) : super(
  7098. token: token,
  7099. );
  7100. factory ModifyDeviceMergedVideoSizeRequest.fromJson(Map<String, dynamic> map) {
  7101. return ModifyDeviceMergedVideoSizeRequest(
  7102. deviceCode: map['DeviceCode'],
  7103. mergedChannel: map['MergedChannel'],
  7104. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  7105. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  7106. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  7107. token: map['Token'],
  7108. );
  7109. }
  7110. Map<String, dynamic> toJson() {
  7111. final map = super.toJson();
  7112. if(deviceCode != null)
  7113. map['DeviceCode'] = deviceCode;
  7114. map['MergedChannel'] = mergedChannel;
  7115. map['MergedVideoOutputWidth'] = mergedVideoOutputWidth;
  7116. map['MergedVideoOutputHeight'] = mergedVideoOutputHeight;
  7117. if(videoDeviceInfos != null)
  7118. map['VideoDeviceInfos'] = videoDeviceInfos;
  7119. return map;
  7120. }
  7121. }
  7122. class DeviceModelClass {
  7123. String? deviceModelCode;
  7124. String? deviceModelName;
  7125. DeviceModelClass({
  7126. this.deviceModelCode,
  7127. this.deviceModelName,
  7128. });
  7129. factory DeviceModelClass.fromJson(Map<String, dynamic> map) {
  7130. return DeviceModelClass(
  7131. deviceModelCode: map['DeviceModelCode'],
  7132. deviceModelName: map['DeviceModelName'],
  7133. );
  7134. }
  7135. Map<String, dynamic> toJson() {
  7136. final map = Map<String, dynamic>();
  7137. if(deviceModelCode != null) {
  7138. map['DeviceModelCode'] = deviceModelCode;
  7139. }
  7140. if(deviceModelName != null) {
  7141. map['DeviceModelName'] = deviceModelName;
  7142. }
  7143. return map;
  7144. }
  7145. }
  7146. class ModifyDeviceTypeRequest extends TokenRequest{
  7147. String? deviceTypeCode;
  7148. List<DictionaryLanguageConfigDTO>? languageConfigs;
  7149. List<DeviceModelClass>? deviceModelList;
  7150. ModifyDeviceTypeRequest({
  7151. this.deviceTypeCode,
  7152. this.languageConfigs,
  7153. this.deviceModelList,
  7154. String? token,
  7155. }) : super(
  7156. token: token,
  7157. );
  7158. factory ModifyDeviceTypeRequest.fromJson(Map<String, dynamic> map) {
  7159. return ModifyDeviceTypeRequest(
  7160. deviceTypeCode: map['DeviceTypeCode'],
  7161. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>DictionaryLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  7162. deviceModelList: map['DeviceModelList'] != null ? (map['DeviceModelList'] as List).map((e)=>DeviceModelClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  7163. token: map['Token'],
  7164. );
  7165. }
  7166. Map<String, dynamic> toJson() {
  7167. final map = super.toJson();
  7168. if(deviceTypeCode != null)
  7169. map['DeviceTypeCode'] = deviceTypeCode;
  7170. if(languageConfigs != null)
  7171. map['LanguageConfigs'] = languageConfigs;
  7172. if(deviceModelList != null)
  7173. map['DeviceModelList'] = deviceModelList;
  7174. return map;
  7175. }
  7176. }
  7177. class DeleteDeviceTypeRequest {
  7178. String? deviceTypeCode;
  7179. DeleteDeviceTypeRequest({
  7180. this.deviceTypeCode,
  7181. });
  7182. factory DeleteDeviceTypeRequest.fromJson(Map<String, dynamic> map) {
  7183. return DeleteDeviceTypeRequest(
  7184. deviceTypeCode: map['DeviceTypeCode'],
  7185. );
  7186. }
  7187. Map<String, dynamic> toJson() {
  7188. final map = Map<String, dynamic>();
  7189. if(deviceTypeCode != null) {
  7190. map['DeviceTypeCode'] = deviceTypeCode;
  7191. }
  7192. return map;
  7193. }
  7194. }
  7195. class ModifyDiagnosisModuleEnableStateRequest extends TokenRequest{
  7196. List<String>? diagnosisModules;
  7197. bool enabled;
  7198. ModifyDiagnosisModuleEnableStateRequest({
  7199. this.diagnosisModules,
  7200. this.enabled = false,
  7201. String? token,
  7202. }) : super(
  7203. token: token,
  7204. );
  7205. factory ModifyDiagnosisModuleEnableStateRequest.fromJson(Map<String, dynamic> map) {
  7206. return ModifyDiagnosisModuleEnableStateRequest(
  7207. diagnosisModules: map['DiagnosisModules']?.cast<String>().toList(),
  7208. enabled: map['Enabled'],
  7209. token: map['Token'],
  7210. );
  7211. }
  7212. Map<String, dynamic> toJson() {
  7213. final map = super.toJson();
  7214. if(diagnosisModules != null)
  7215. map['DiagnosisModules'] = diagnosisModules;
  7216. map['Enabled'] = enabled;
  7217. return map;
  7218. }
  7219. }
  7220. class ModifyDiagnosisModulesRequest extends TokenRequest{
  7221. List<String>? diagnosisModules;
  7222. ModifyDiagnosisModulesRequest({
  7223. this.diagnosisModules,
  7224. String? token,
  7225. }) : super(
  7226. token: token,
  7227. );
  7228. factory ModifyDiagnosisModulesRequest.fromJson(Map<String, dynamic> map) {
  7229. return ModifyDiagnosisModulesRequest(
  7230. diagnosisModules: map['DiagnosisModules']?.cast<String>().toList(),
  7231. token: map['Token'],
  7232. );
  7233. }
  7234. Map<String, dynamic> toJson() {
  7235. final map = super.toJson();
  7236. if(diagnosisModules != null)
  7237. map['DiagnosisModules'] = diagnosisModules;
  7238. return map;
  7239. }
  7240. }
  7241. class ModifyOrganizationCustomSettingRequest extends TokenRequest{
  7242. String? langugeKey;
  7243. String? settingModule;
  7244. String? settingJson;
  7245. String? organizationCode;
  7246. ModifyOrganizationCustomSettingRequest({
  7247. this.langugeKey,
  7248. this.settingModule,
  7249. this.settingJson,
  7250. this.organizationCode,
  7251. String? token,
  7252. }) : super(
  7253. token: token,
  7254. );
  7255. factory ModifyOrganizationCustomSettingRequest.fromJson(Map<String, dynamic> map) {
  7256. return ModifyOrganizationCustomSettingRequest(
  7257. langugeKey: map['LangugeKey'],
  7258. settingModule: map['SettingModule'],
  7259. settingJson: map['SettingJson'],
  7260. organizationCode: map['OrganizationCode'],
  7261. token: map['Token'],
  7262. );
  7263. }
  7264. Map<String, dynamic> toJson() {
  7265. final map = super.toJson();
  7266. if(langugeKey != null)
  7267. map['LangugeKey'] = langugeKey;
  7268. if(settingModule != null)
  7269. map['SettingModule'] = settingModule;
  7270. if(settingJson != null)
  7271. map['SettingJson'] = settingJson;
  7272. if(organizationCode != null)
  7273. map['OrganizationCode'] = organizationCode;
  7274. return map;
  7275. }
  7276. }
  7277. class ModifyOrganizationDiagnosisModulesRequest extends TokenRequest{
  7278. String? organizationCode;
  7279. List<String>? diagnosisModules;
  7280. ModifyOrganizationDiagnosisModulesRequest({
  7281. this.organizationCode,
  7282. this.diagnosisModules,
  7283. String? token,
  7284. }) : super(
  7285. token: token,
  7286. );
  7287. factory ModifyOrganizationDiagnosisModulesRequest.fromJson(Map<String, dynamic> map) {
  7288. return ModifyOrganizationDiagnosisModulesRequest(
  7289. organizationCode: map['OrganizationCode'],
  7290. diagnosisModules: map['DiagnosisModules']?.cast<String>().toList(),
  7291. token: map['Token'],
  7292. );
  7293. }
  7294. Map<String, dynamic> toJson() {
  7295. final map = super.toJson();
  7296. if(organizationCode != null)
  7297. map['OrganizationCode'] = organizationCode;
  7298. if(diagnosisModules != null)
  7299. map['DiagnosisModules'] = diagnosisModules;
  7300. return map;
  7301. }
  7302. }
  7303. class ModifyOrganizationDirectorsRequest extends TokenRequest{
  7304. String? organizationCode;
  7305. List<String>? directors;
  7306. ModifyOrganizationDirectorsRequest({
  7307. this.organizationCode,
  7308. this.directors,
  7309. String? token,
  7310. }) : super(
  7311. token: token,
  7312. );
  7313. factory ModifyOrganizationDirectorsRequest.fromJson(Map<String, dynamic> map) {
  7314. return ModifyOrganizationDirectorsRequest(
  7315. organizationCode: map['OrganizationCode'],
  7316. directors: map['Directors']?.cast<String>().toList(),
  7317. token: map['Token'],
  7318. );
  7319. }
  7320. Map<String, dynamic> toJson() {
  7321. final map = super.toJson();
  7322. if(organizationCode != null)
  7323. map['OrganizationCode'] = organizationCode;
  7324. if(directors != null)
  7325. map['Directors'] = directors;
  7326. return map;
  7327. }
  7328. }
  7329. class ModifyOrganizationRequest extends OrganizationDTO{
  7330. String? token;
  7331. ModifyOrganizationRequest({
  7332. this.token,
  7333. String? description,
  7334. String? rootCode,
  7335. OrganizationTypeEnum organizationType = OrganizationTypeEnum.Corporation,
  7336. List<String>? authorityGroups,
  7337. String? nautica,
  7338. OrganizationStateEnum state = OrganizationStateEnum.WaitAudit,
  7339. List<String>? directors,
  7340. List<String>? assignedAdmins,
  7341. String? patientSettingJson,
  7342. String? examSettingJson,
  7343. String? consultationSettingJson,
  7344. String? patientSettingVersion,
  7345. String? examSettingVersion,
  7346. String? consultationSettingVersion,
  7347. String? parentOrganizationName,
  7348. String? regionCode,
  7349. String? parentCode,
  7350. String? logoUrl,
  7351. OrganizationPatientTypeEnum patientType = OrganizationPatientTypeEnum.Person,
  7352. bool isinvented = false,
  7353. List<SettingDTOClass>? settings,
  7354. List<String>? diagnosisModules,
  7355. bool isEncryptedShow = false,
  7356. double referralLimitHours = 0,
  7357. List<String>? referralOrganizationCodes,
  7358. List<ReferralOrganizationDTO>? referralOrganizations,
  7359. String? defaultThesaurusCode,
  7360. String? defaultReportTemplateCode,
  7361. String? organizationCode,
  7362. String? organizationName,
  7363. String? shortCode,
  7364. DateTime? createTime,
  7365. DateTime? updateTime,
  7366. }) : super(
  7367. description: description,
  7368. rootCode: rootCode,
  7369. organizationType: organizationType,
  7370. authorityGroups: authorityGroups,
  7371. nautica: nautica,
  7372. state: state,
  7373. directors: directors,
  7374. assignedAdmins: assignedAdmins,
  7375. patientSettingJson: patientSettingJson,
  7376. examSettingJson: examSettingJson,
  7377. consultationSettingJson: consultationSettingJson,
  7378. patientSettingVersion: patientSettingVersion,
  7379. examSettingVersion: examSettingVersion,
  7380. consultationSettingVersion: consultationSettingVersion,
  7381. parentOrganizationName: parentOrganizationName,
  7382. regionCode: regionCode,
  7383. parentCode: parentCode,
  7384. logoUrl: logoUrl,
  7385. patientType: patientType,
  7386. isinvented: isinvented,
  7387. settings: settings,
  7388. diagnosisModules: diagnosisModules,
  7389. isEncryptedShow: isEncryptedShow,
  7390. referralLimitHours: referralLimitHours,
  7391. referralOrganizationCodes: referralOrganizationCodes,
  7392. referralOrganizations: referralOrganizations,
  7393. defaultThesaurusCode: defaultThesaurusCode,
  7394. defaultReportTemplateCode: defaultReportTemplateCode,
  7395. organizationCode: organizationCode,
  7396. organizationName: organizationName,
  7397. shortCode: shortCode,
  7398. createTime: createTime,
  7399. updateTime: updateTime,
  7400. );
  7401. factory ModifyOrganizationRequest.fromJson(Map<String, dynamic> map) {
  7402. return ModifyOrganizationRequest(
  7403. token: map['Token'],
  7404. description: map['Description'],
  7405. rootCode: map['RootCode'],
  7406. organizationType: OrganizationTypeEnum.values.firstWhere((e) => e.index == map['OrganizationType']),
  7407. authorityGroups: map['AuthorityGroups']?.cast<String>().toList(),
  7408. nautica: map['Nautica'],
  7409. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  7410. directors: map['Directors']?.cast<String>().toList(),
  7411. assignedAdmins: map['AssignedAdmins']?.cast<String>().toList(),
  7412. patientSettingJson: map['PatientSettingJson'],
  7413. examSettingJson: map['ExamSettingJson'],
  7414. consultationSettingJson: map['ConsultationSettingJson'],
  7415. patientSettingVersion: map['PatientSettingVersion'],
  7416. examSettingVersion: map['ExamSettingVersion'],
  7417. consultationSettingVersion: map['ConsultationSettingVersion'],
  7418. parentOrganizationName: map['ParentOrganizationName'],
  7419. regionCode: map['RegionCode'],
  7420. parentCode: map['ParentCode'],
  7421. logoUrl: map['LogoUrl'],
  7422. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  7423. isinvented: map['Isinvented'],
  7424. settings: map['Settings'] != null ? (map['Settings'] as List).map((e)=>SettingDTOClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  7425. diagnosisModules: map['DiagnosisModules']?.cast<String>().toList(),
  7426. isEncryptedShow: map['IsEncryptedShow'],
  7427. referralLimitHours: double.parse(map['ReferralLimitHours'].toString()),
  7428. referralOrganizationCodes: map['ReferralOrganizationCodes']?.cast<String>().toList(),
  7429. referralOrganizations: map['ReferralOrganizations'] != null ? (map['ReferralOrganizations'] as List).map((e)=>ReferralOrganizationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  7430. defaultThesaurusCode: map['DefaultThesaurusCode'],
  7431. defaultReportTemplateCode: map['DefaultReportTemplateCode'],
  7432. organizationCode: map['OrganizationCode'],
  7433. organizationName: map['OrganizationName'],
  7434. shortCode: map['ShortCode'],
  7435. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7436. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7437. );
  7438. }
  7439. Map<String, dynamic> toJson() {
  7440. final map = super.toJson();
  7441. if(token != null)
  7442. map['Token'] = token;
  7443. return map;
  7444. }
  7445. }
  7446. class ModifyOrganizationSettingRequest extends TokenRequest{
  7447. OrganizationSettingTypeEnum settingType;
  7448. String? settingJson;
  7449. String? organizationCode;
  7450. String? cMSTemplateCode;
  7451. ModifyOrganizationSettingRequest({
  7452. this.settingType = OrganizationSettingTypeEnum.Patient,
  7453. this.settingJson,
  7454. this.organizationCode,
  7455. this.cMSTemplateCode,
  7456. String? token,
  7457. }) : super(
  7458. token: token,
  7459. );
  7460. factory ModifyOrganizationSettingRequest.fromJson(Map<String, dynamic> map) {
  7461. return ModifyOrganizationSettingRequest(
  7462. settingType: OrganizationSettingTypeEnum.values.firstWhere((e) => e.index == map['SettingType']),
  7463. settingJson: map['SettingJson'],
  7464. organizationCode: map['OrganizationCode'],
  7465. cMSTemplateCode: map['CMSTemplateCode'],
  7466. token: map['Token'],
  7467. );
  7468. }
  7469. Map<String, dynamic> toJson() {
  7470. final map = super.toJson();
  7471. map['SettingType'] = settingType.index;
  7472. if(settingJson != null)
  7473. map['SettingJson'] = settingJson;
  7474. if(organizationCode != null)
  7475. map['OrganizationCode'] = organizationCode;
  7476. if(cMSTemplateCode != null)
  7477. map['CMSTemplateCode'] = cMSTemplateCode;
  7478. return map;
  7479. }
  7480. }
  7481. class ConsultationBaseInfoItem {
  7482. String? name;
  7483. bool isDefult;
  7484. bool isShow;
  7485. bool required;
  7486. ConsultationBaseInfoItem({
  7487. this.name,
  7488. this.isDefult = false,
  7489. this.isShow = false,
  7490. this.required = false,
  7491. });
  7492. factory ConsultationBaseInfoItem.fromJson(Map<String, dynamic> map) {
  7493. return ConsultationBaseInfoItem(
  7494. name: map['Name'],
  7495. isDefult: map['IsDefult'],
  7496. isShow: map['IsShow'],
  7497. required: map['Required'],
  7498. );
  7499. }
  7500. Map<String, dynamic> toJson() {
  7501. final map = Map<String, dynamic>();
  7502. if(name != null) {
  7503. map['Name'] = name;
  7504. }
  7505. map['IsDefult'] = isDefult;
  7506. map['IsShow'] = isShow;
  7507. map['Required'] = required;
  7508. return map;
  7509. }
  7510. }
  7511. class ModifycConsultationBaseInfoSettingRequest extends TokenRequest{
  7512. List<ConsultationBaseInfoItem>? consultationBaseInfoList;
  7513. String? organizationCode;
  7514. ModifycConsultationBaseInfoSettingRequest({
  7515. this.consultationBaseInfoList,
  7516. this.organizationCode,
  7517. String? token,
  7518. }) : super(
  7519. token: token,
  7520. );
  7521. factory ModifycConsultationBaseInfoSettingRequest.fromJson(Map<String, dynamic> map) {
  7522. return ModifycConsultationBaseInfoSettingRequest(
  7523. consultationBaseInfoList: map['ConsultationBaseInfoList'] != null ? (map['ConsultationBaseInfoList'] as List).map((e)=>ConsultationBaseInfoItem.fromJson(e as Map<String,dynamic>)).toList() : null,
  7524. organizationCode: map['OrganizationCode'],
  7525. token: map['Token'],
  7526. );
  7527. }
  7528. Map<String, dynamic> toJson() {
  7529. final map = super.toJson();
  7530. if(consultationBaseInfoList != null)
  7531. map['ConsultationBaseInfoList'] = consultationBaseInfoList;
  7532. if(organizationCode != null)
  7533. map['OrganizationCode'] = organizationCode;
  7534. return map;
  7535. }
  7536. }
  7537. class ModifyOrganizationStateRequest extends TokenRequest{
  7538. String? organizationCode;
  7539. OrganizationStateEnum state;
  7540. ModifyOrganizationStateRequest({
  7541. this.organizationCode,
  7542. this.state = OrganizationStateEnum.WaitAudit,
  7543. String? token,
  7544. }) : super(
  7545. token: token,
  7546. );
  7547. factory ModifyOrganizationStateRequest.fromJson(Map<String, dynamic> map) {
  7548. return ModifyOrganizationStateRequest(
  7549. organizationCode: map['OrganizationCode'],
  7550. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  7551. token: map['Token'],
  7552. );
  7553. }
  7554. Map<String, dynamic> toJson() {
  7555. final map = super.toJson();
  7556. if(organizationCode != null)
  7557. map['OrganizationCode'] = organizationCode;
  7558. map['State'] = state.index;
  7559. return map;
  7560. }
  7561. }
  7562. class ModifyReferralRecordSettingRequest extends TokenRequest{
  7563. double limitHours;
  7564. ModifyReferralRecordSettingRequest({
  7565. this.limitHours = 0,
  7566. String? token,
  7567. }) : super(
  7568. token: token,
  7569. );
  7570. factory ModifyReferralRecordSettingRequest.fromJson(Map<String, dynamic> map) {
  7571. return ModifyReferralRecordSettingRequest(
  7572. limitHours: double.parse(map['LimitHours'].toString()),
  7573. token: map['Token'],
  7574. );
  7575. }
  7576. Map<String, dynamic> toJson() {
  7577. final map = super.toJson();
  7578. map['LimitHours'] = limitHours;
  7579. return map;
  7580. }
  7581. }
  7582. class ModifyReportPosterDevicesRequest extends TokenRequest{
  7583. String? reportPosterCode;
  7584. List<String>? deviceIds;
  7585. ModifyReportPosterDevicesRequest({
  7586. this.reportPosterCode,
  7587. this.deviceIds,
  7588. String? token,
  7589. }) : super(
  7590. token: token,
  7591. );
  7592. factory ModifyReportPosterDevicesRequest.fromJson(Map<String, dynamic> map) {
  7593. return ModifyReportPosterDevicesRequest(
  7594. reportPosterCode: map['ReportPosterCode'],
  7595. deviceIds: map['DeviceIds']?.cast<String>().toList(),
  7596. token: map['Token'],
  7597. );
  7598. }
  7599. Map<String, dynamic> toJson() {
  7600. final map = super.toJson();
  7601. if(reportPosterCode != null)
  7602. map['ReportPosterCode'] = reportPosterCode;
  7603. if(deviceIds != null)
  7604. map['DeviceIds'] = deviceIds;
  7605. return map;
  7606. }
  7607. }
  7608. class ModifyRoleInfoRequest extends RoleDTO{
  7609. String? token;
  7610. List<String>? featuresCodeList;
  7611. ModifyRoleInfoRequest({
  7612. this.token,
  7613. this.featuresCodeList,
  7614. RoleShowTypeEnum roleShowType = RoleShowTypeEnum.NotShow,
  7615. String? iConUrl,
  7616. String? colorStart,
  7617. String? colorEnd,
  7618. RoleQualificationEnum roleQualification = RoleQualificationEnum.NoNeed,
  7619. String? userGroupCode,
  7620. RoleShowTypeEnum fieldShowType = RoleShowTypeEnum.NotShow,
  7621. List<String>? fieldList,
  7622. String? roleCode,
  7623. String? roleName,
  7624. String? description,
  7625. List<UserRoleLanguageConfigDTO>? languageConfigs,
  7626. DateTime? createTime,
  7627. DateTime? updateTime,
  7628. }) : super(
  7629. roleShowType: roleShowType,
  7630. iConUrl: iConUrl,
  7631. colorStart: colorStart,
  7632. colorEnd: colorEnd,
  7633. roleQualification: roleQualification,
  7634. userGroupCode: userGroupCode,
  7635. fieldShowType: fieldShowType,
  7636. fieldList: fieldList,
  7637. roleCode: roleCode,
  7638. roleName: roleName,
  7639. description: description,
  7640. languageConfigs: languageConfigs,
  7641. createTime: createTime,
  7642. updateTime: updateTime,
  7643. );
  7644. factory ModifyRoleInfoRequest.fromJson(Map<String, dynamic> map) {
  7645. return ModifyRoleInfoRequest(
  7646. token: map['Token'],
  7647. featuresCodeList: map['FeaturesCodeList']?.cast<String>().toList(),
  7648. roleShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['RoleShowType']),
  7649. iConUrl: map['IConUrl'],
  7650. colorStart: map['ColorStart'],
  7651. colorEnd: map['ColorEnd'],
  7652. roleQualification: RoleQualificationEnum.values.firstWhere((e) => e.index == map['RoleQualification']),
  7653. userGroupCode: map['UserGroupCode'],
  7654. fieldShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['FieldShowType']),
  7655. fieldList: map['FieldList']?.cast<String>().toList(),
  7656. roleCode: map['RoleCode'],
  7657. roleName: map['RoleName'],
  7658. description: map['Description'],
  7659. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  7660. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7661. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7662. );
  7663. }
  7664. Map<String, dynamic> toJson() {
  7665. final map = super.toJson();
  7666. if(token != null)
  7667. map['Token'] = token;
  7668. if(featuresCodeList != null)
  7669. map['FeaturesCodeList'] = featuresCodeList;
  7670. return map;
  7671. }
  7672. }
  7673. class ThirdPartyInfoDTO extends BaseDTO{
  7674. String? code;
  7675. String? name;
  7676. String? contactPersonName;
  7677. String? contactPhone;
  7678. List<String>? allowedInterfaces;
  7679. bool isValid;
  7680. String? token;
  7681. ThirdPartyInfoDTO({
  7682. this.code,
  7683. this.name,
  7684. this.contactPersonName,
  7685. this.contactPhone,
  7686. this.allowedInterfaces,
  7687. this.isValid = false,
  7688. this.token,
  7689. DateTime? createTime,
  7690. DateTime? updateTime,
  7691. }) : super(
  7692. createTime: createTime,
  7693. updateTime: updateTime,
  7694. );
  7695. factory ThirdPartyInfoDTO.fromJson(Map<String, dynamic> map) {
  7696. return ThirdPartyInfoDTO(
  7697. code: map['Code'],
  7698. name: map['Name'],
  7699. contactPersonName: map['ContactPersonName'],
  7700. contactPhone: map['ContactPhone'],
  7701. allowedInterfaces: map['AllowedInterfaces']?.cast<String>().toList(),
  7702. isValid: map['IsValid'],
  7703. token: map['Token'],
  7704. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7705. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7706. );
  7707. }
  7708. Map<String, dynamic> toJson() {
  7709. final map = super.toJson();
  7710. if(code != null)
  7711. map['Code'] = code;
  7712. if(name != null)
  7713. map['Name'] = name;
  7714. if(contactPersonName != null)
  7715. map['ContactPersonName'] = contactPersonName;
  7716. if(contactPhone != null)
  7717. map['ContactPhone'] = contactPhone;
  7718. if(allowedInterfaces != null)
  7719. map['AllowedInterfaces'] = allowedInterfaces;
  7720. map['IsValid'] = isValid;
  7721. if(token != null)
  7722. map['Token'] = token;
  7723. return map;
  7724. }
  7725. }
  7726. class ModifyThirdPartyInfoRequest extends ThirdPartyInfoDTO{
  7727. ModifyThirdPartyInfoRequest({
  7728. String? token,
  7729. String? code,
  7730. String? name,
  7731. String? contactPersonName,
  7732. String? contactPhone,
  7733. List<String>? allowedInterfaces,
  7734. bool isValid = false,
  7735. DateTime? createTime,
  7736. DateTime? updateTime,
  7737. }) : super(
  7738. code: code,
  7739. name: name,
  7740. contactPersonName: contactPersonName,
  7741. contactPhone: contactPhone,
  7742. allowedInterfaces: allowedInterfaces,
  7743. isValid: isValid,
  7744. token: token,
  7745. createTime: createTime,
  7746. updateTime: updateTime,
  7747. );
  7748. factory ModifyThirdPartyInfoRequest.fromJson(Map<String, dynamic> map) {
  7749. return ModifyThirdPartyInfoRequest(
  7750. token: map['Token'],
  7751. code: map['Code'],
  7752. name: map['Name'],
  7753. contactPersonName: map['ContactPersonName'],
  7754. contactPhone: map['ContactPhone'],
  7755. allowedInterfaces: map['AllowedInterfaces']?.cast<String>().toList(),
  7756. isValid: map['IsValid'],
  7757. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7758. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7759. );
  7760. }
  7761. Map<String, dynamic> toJson() {
  7762. final map = super.toJson();
  7763. return map;
  7764. }
  7765. }
  7766. class ModifyUserBindDeviceOrganizationRequest extends TokenRequest{
  7767. List<String>? userCodes;
  7768. List<String>? organizationCodes;
  7769. ModifyUserBindDeviceOrganizationRequest({
  7770. this.userCodes,
  7771. this.organizationCodes,
  7772. String? token,
  7773. }) : super(
  7774. token: token,
  7775. );
  7776. factory ModifyUserBindDeviceOrganizationRequest.fromJson(Map<String, dynamic> map) {
  7777. return ModifyUserBindDeviceOrganizationRequest(
  7778. userCodes: map['UserCodes']?.cast<String>().toList(),
  7779. organizationCodes: map['OrganizationCodes']?.cast<String>().toList(),
  7780. token: map['Token'],
  7781. );
  7782. }
  7783. Map<String, dynamic> toJson() {
  7784. final map = super.toJson();
  7785. if(userCodes != null)
  7786. map['UserCodes'] = userCodes;
  7787. if(organizationCodes != null)
  7788. map['OrganizationCodes'] = organizationCodes;
  7789. return map;
  7790. }
  7791. }
  7792. class ModifyUserSpecialOrganizationRequest extends TokenRequest{
  7793. List<String>? userCodes;
  7794. String? originOrganizationCode;
  7795. String? targetOrganizationCode;
  7796. ModifyUserSpecialOrganizationRequest({
  7797. this.userCodes,
  7798. this.originOrganizationCode,
  7799. this.targetOrganizationCode,
  7800. String? token,
  7801. }) : super(
  7802. token: token,
  7803. );
  7804. factory ModifyUserSpecialOrganizationRequest.fromJson(Map<String, dynamic> map) {
  7805. return ModifyUserSpecialOrganizationRequest(
  7806. userCodes: map['UserCodes']?.cast<String>().toList(),
  7807. originOrganizationCode: map['OriginOrganizationCode'],
  7808. targetOrganizationCode: map['TargetOrganizationCode'],
  7809. token: map['Token'],
  7810. );
  7811. }
  7812. Map<String, dynamic> toJson() {
  7813. final map = super.toJson();
  7814. if(userCodes != null)
  7815. map['UserCodes'] = userCodes;
  7816. if(originOrganizationCode != null)
  7817. map['OriginOrganizationCode'] = originOrganizationCode;
  7818. if(targetOrganizationCode != null)
  7819. map['TargetOrganizationCode'] = targetOrganizationCode;
  7820. return map;
  7821. }
  7822. }
  7823. class UserFeatureInfoDTO extends BaseFeatureInfoDTO{
  7824. UserFeatureInfoDTO({
  7825. String? featureCode,
  7826. String? featureName,
  7827. String? fatherCode,
  7828. String? uniqueCode,
  7829. List<BaseFeatureLanguageConfigDTO>? languageConfigs,
  7830. DateTime? createTime,
  7831. DateTime? updateTime,
  7832. }) : super(
  7833. featureCode: featureCode,
  7834. featureName: featureName,
  7835. fatherCode: fatherCode,
  7836. uniqueCode: uniqueCode,
  7837. languageConfigs: languageConfigs,
  7838. createTime: createTime,
  7839. updateTime: updateTime,
  7840. );
  7841. factory UserFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  7842. return UserFeatureInfoDTO(
  7843. featureCode: map['FeatureCode'],
  7844. featureName: map['FeatureName'],
  7845. fatherCode: map['FatherCode'],
  7846. uniqueCode: map['UniqueCode'],
  7847. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>BaseFeatureLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  7848. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7849. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7850. );
  7851. }
  7852. Map<String, dynamic> toJson() {
  7853. final map = super.toJson();
  7854. return map;
  7855. }
  7856. }
  7857. class ModifyUserFeatureRequest extends UserFeatureInfoDTO{
  7858. String? token;
  7859. ModifyUserFeatureRequest({
  7860. this.token,
  7861. String? featureCode,
  7862. String? featureName,
  7863. String? fatherCode,
  7864. String? uniqueCode,
  7865. List<BaseFeatureLanguageConfigDTO>? languageConfigs,
  7866. DateTime? createTime,
  7867. DateTime? updateTime,
  7868. }) : super(
  7869. featureCode: featureCode,
  7870. featureName: featureName,
  7871. fatherCode: fatherCode,
  7872. uniqueCode: uniqueCode,
  7873. languageConfigs: languageConfigs,
  7874. createTime: createTime,
  7875. updateTime: updateTime,
  7876. );
  7877. factory ModifyUserFeatureRequest.fromJson(Map<String, dynamic> map) {
  7878. return ModifyUserFeatureRequest(
  7879. token: map['Token'],
  7880. featureCode: map['FeatureCode'],
  7881. featureName: map['FeatureName'],
  7882. fatherCode: map['FatherCode'],
  7883. uniqueCode: map['UniqueCode'],
  7884. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>BaseFeatureLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  7885. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7886. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7887. );
  7888. }
  7889. Map<String, dynamic> toJson() {
  7890. final map = super.toJson();
  7891. if(token != null)
  7892. map['Token'] = token;
  7893. return map;
  7894. }
  7895. }
  7896. enum ManagementUserInfoStateEnum {
  7897. Nonactivated,
  7898. Activated,
  7899. Locked,
  7900. }
  7901. class ManageUserInfoDTO extends UserDTO{
  7902. String? roleName;
  7903. String? hospitalName;
  7904. String? identityApplyCode;
  7905. List<String>? identityCard;
  7906. List<String>? licenseCard;
  7907. String? identityApplyRoleCode;
  7908. String? identityApplyRoleName;
  7909. ManagementUserInfoStateEnum managementUserState;
  7910. ManageUserInfoDTO({
  7911. this.roleName,
  7912. String? departmentName,
  7913. this.hospitalName,
  7914. this.identityApplyCode,
  7915. this.identityCard,
  7916. this.licenseCard,
  7917. this.identityApplyRoleCode,
  7918. this.identityApplyRoleName,
  7919. bool isBatchExportDiagnoseData = false,
  7920. List<String>? fieldList,
  7921. this.managementUserState = ManagementUserInfoStateEnum.Nonactivated,
  7922. String? nickName,
  7923. String? organizationCode,
  7924. String? organizationName,
  7925. String? departmentCode,
  7926. String? departmentShortCode,
  7927. String? rootOrganizationCode,
  7928. String? rootOrganizationName,
  7929. List<String>? authorityGroups,
  7930. List<String>? bindDevices,
  7931. List<String>? bindDeviceOrganizations,
  7932. String? lastIP,
  7933. int logintimes = 0,
  7934. UserInfoStateEnum userState = UserInfoStateEnum.Nonactivated,
  7935. List<String>? roleCodes,
  7936. List<String>? rankCodes,
  7937. List<String>? positionCodes,
  7938. ApplyStateEnum applyState = ApplyStateEnum.NotApply,
  7939. String? rankName,
  7940. String? positionName,
  7941. bool isDirector = false,
  7942. List<String>? deletePatientCodes,
  7943. String? bindAssistantUserCode,
  7944. String? bindAssistantDoctorUserCode,
  7945. LoginLockInfoDTO? loginLockInfo,
  7946. String? signature,
  7947. String? language,
  7948. bool enableReportLabel = false,
  7949. List<AssociatedInfoDTO>? associatedInfos,
  7950. String? commonPlatformUserId,
  7951. String? bindEmergencyDeviceCode,
  7952. String? bindEmergencyExpertCode,
  7953. List<String>? dashboardOrgCodes,
  7954. String? organizationShortCode,
  7955. String? rootOrganizationShortCode,
  7956. bool isOldAgent = false,
  7957. String? phone,
  7958. String? email,
  7959. String? userCode,
  7960. String? userName,
  7961. String? fullName,
  7962. String? headImageUrl,
  7963. String? displayName,
  7964. DateTime? createTime,
  7965. DateTime? updateTime,
  7966. }) : super(
  7967. nickName: nickName,
  7968. organizationCode: organizationCode,
  7969. organizationName: organizationName,
  7970. departmentCode: departmentCode,
  7971. departmentName: departmentName,
  7972. departmentShortCode: departmentShortCode,
  7973. rootOrganizationCode: rootOrganizationCode,
  7974. rootOrganizationName: rootOrganizationName,
  7975. authorityGroups: authorityGroups,
  7976. bindDevices: bindDevices,
  7977. bindDeviceOrganizations: bindDeviceOrganizations,
  7978. lastIP: lastIP,
  7979. logintimes: logintimes,
  7980. userState: userState,
  7981. roleCodes: roleCodes,
  7982. rankCodes: rankCodes,
  7983. positionCodes: positionCodes,
  7984. applyState: applyState,
  7985. rankName: rankName,
  7986. positionName: positionName,
  7987. isDirector: isDirector,
  7988. fieldList: fieldList,
  7989. deletePatientCodes: deletePatientCodes,
  7990. isBatchExportDiagnoseData: isBatchExportDiagnoseData,
  7991. bindAssistantUserCode: bindAssistantUserCode,
  7992. bindAssistantDoctorUserCode: bindAssistantDoctorUserCode,
  7993. loginLockInfo: loginLockInfo,
  7994. signature: signature,
  7995. language: language,
  7996. enableReportLabel: enableReportLabel,
  7997. associatedInfos: associatedInfos,
  7998. commonPlatformUserId: commonPlatformUserId,
  7999. bindEmergencyDeviceCode: bindEmergencyDeviceCode,
  8000. bindEmergencyExpertCode: bindEmergencyExpertCode,
  8001. dashboardOrgCodes: dashboardOrgCodes,
  8002. organizationShortCode: organizationShortCode,
  8003. rootOrganizationShortCode: rootOrganizationShortCode,
  8004. isOldAgent: isOldAgent,
  8005. phone: phone,
  8006. email: email,
  8007. userCode: userCode,
  8008. userName: userName,
  8009. fullName: fullName,
  8010. headImageUrl: headImageUrl,
  8011. displayName: displayName,
  8012. createTime: createTime,
  8013. updateTime: updateTime,
  8014. );
  8015. factory ManageUserInfoDTO.fromJson(Map<String, dynamic> map) {
  8016. return ManageUserInfoDTO(
  8017. roleName: map['RoleName'],
  8018. departmentName: map['DepartmentName'],
  8019. hospitalName: map['HospitalName'],
  8020. identityApplyCode: map['IdentityApplyCode'],
  8021. identityCard: map['IdentityCard']?.cast<String>().toList(),
  8022. licenseCard: map['LicenseCard']?.cast<String>().toList(),
  8023. identityApplyRoleCode: map['IdentityApplyRoleCode'],
  8024. identityApplyRoleName: map['IdentityApplyRoleName'],
  8025. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  8026. fieldList: map['FieldList']?.cast<String>().toList(),
  8027. managementUserState: ManagementUserInfoStateEnum.values.firstWhere((e) => e.index == map['ManagementUserState']),
  8028. nickName: map['NickName'],
  8029. organizationCode: map['OrganizationCode'],
  8030. organizationName: map['OrganizationName'],
  8031. departmentCode: map['DepartmentCode'],
  8032. departmentShortCode: map['DepartmentShortCode'],
  8033. rootOrganizationCode: map['RootOrganizationCode'],
  8034. rootOrganizationName: map['RootOrganizationName'],
  8035. authorityGroups: map['AuthorityGroups']?.cast<String>().toList(),
  8036. bindDevices: map['BindDevices']?.cast<String>().toList(),
  8037. bindDeviceOrganizations: map['BindDeviceOrganizations']?.cast<String>().toList(),
  8038. lastIP: map['LastIP'],
  8039. logintimes: map['Logintimes'],
  8040. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  8041. roleCodes: map['RoleCodes']?.cast<String>().toList(),
  8042. rankCodes: map['RankCodes']?.cast<String>().toList(),
  8043. positionCodes: map['PositionCodes']?.cast<String>().toList(),
  8044. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  8045. rankName: map['RankName'],
  8046. positionName: map['PositionName'],
  8047. isDirector: map['IsDirector'],
  8048. deletePatientCodes: map['DeletePatientCodes']?.cast<String>().toList(),
  8049. bindAssistantUserCode: map['BindAssistantUserCode'],
  8050. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  8051. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  8052. signature: map['Signature'],
  8053. language: map['Language'],
  8054. enableReportLabel: map['EnableReportLabel'],
  8055. associatedInfos: map['AssociatedInfos'] != null ? (map['AssociatedInfos'] as List).map((e)=>AssociatedInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8056. commonPlatformUserId: map['CommonPlatformUserId'],
  8057. bindEmergencyDeviceCode: map['BindEmergencyDeviceCode'],
  8058. bindEmergencyExpertCode: map['BindEmergencyExpertCode'],
  8059. dashboardOrgCodes: map['DashboardOrgCodes']?.cast<String>().toList(),
  8060. organizationShortCode: map['OrganizationShortCode'],
  8061. rootOrganizationShortCode: map['RootOrganizationShortCode'],
  8062. isOldAgent: map['IsOldAgent'],
  8063. phone: map['Phone'],
  8064. email: map['Email'],
  8065. userCode: map['UserCode'],
  8066. userName: map['UserName'],
  8067. fullName: map['FullName'],
  8068. headImageUrl: map['HeadImageUrl'],
  8069. displayName: map['DisplayName'],
  8070. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  8071. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  8072. );
  8073. }
  8074. Map<String, dynamic> toJson() {
  8075. final map = super.toJson();
  8076. if(roleName != null)
  8077. map['RoleName'] = roleName;
  8078. if(hospitalName != null)
  8079. map['HospitalName'] = hospitalName;
  8080. if(identityApplyCode != null)
  8081. map['IdentityApplyCode'] = identityApplyCode;
  8082. if(identityCard != null)
  8083. map['IdentityCard'] = identityCard;
  8084. if(licenseCard != null)
  8085. map['LicenseCard'] = licenseCard;
  8086. if(identityApplyRoleCode != null)
  8087. map['IdentityApplyRoleCode'] = identityApplyRoleCode;
  8088. if(identityApplyRoleName != null)
  8089. map['IdentityApplyRoleName'] = identityApplyRoleName;
  8090. map['ManagementUserState'] = managementUserState.index;
  8091. return map;
  8092. }
  8093. }
  8094. class ModifyUserRequest extends ManageUserInfoDTO{
  8095. String? token;
  8096. ModifyUserRequest({
  8097. this.token,
  8098. String? roleName,
  8099. String? departmentName,
  8100. String? hospitalName,
  8101. String? identityApplyCode,
  8102. List<String>? identityCard,
  8103. List<String>? licenseCard,
  8104. String? identityApplyRoleCode,
  8105. String? identityApplyRoleName,
  8106. bool isBatchExportDiagnoseData = false,
  8107. List<String>? fieldList,
  8108. ManagementUserInfoStateEnum managementUserState = ManagementUserInfoStateEnum.Nonactivated,
  8109. String? nickName,
  8110. String? organizationCode,
  8111. String? organizationName,
  8112. String? departmentCode,
  8113. String? departmentShortCode,
  8114. String? rootOrganizationCode,
  8115. String? rootOrganizationName,
  8116. List<String>? authorityGroups,
  8117. List<String>? bindDevices,
  8118. List<String>? bindDeviceOrganizations,
  8119. String? lastIP,
  8120. int logintimes = 0,
  8121. UserInfoStateEnum userState = UserInfoStateEnum.Nonactivated,
  8122. List<String>? roleCodes,
  8123. List<String>? rankCodes,
  8124. List<String>? positionCodes,
  8125. ApplyStateEnum applyState = ApplyStateEnum.NotApply,
  8126. String? rankName,
  8127. String? positionName,
  8128. bool isDirector = false,
  8129. List<String>? deletePatientCodes,
  8130. String? bindAssistantUserCode,
  8131. String? bindAssistantDoctorUserCode,
  8132. LoginLockInfoDTO? loginLockInfo,
  8133. String? signature,
  8134. String? language,
  8135. bool enableReportLabel = false,
  8136. List<AssociatedInfoDTO>? associatedInfos,
  8137. String? commonPlatformUserId,
  8138. String? bindEmergencyDeviceCode,
  8139. String? bindEmergencyExpertCode,
  8140. List<String>? dashboardOrgCodes,
  8141. String? organizationShortCode,
  8142. String? rootOrganizationShortCode,
  8143. bool isOldAgent = false,
  8144. String? phone,
  8145. String? email,
  8146. String? userCode,
  8147. String? userName,
  8148. String? fullName,
  8149. String? headImageUrl,
  8150. String? displayName,
  8151. DateTime? createTime,
  8152. DateTime? updateTime,
  8153. }) : super(
  8154. roleName: roleName,
  8155. departmentName: departmentName,
  8156. hospitalName: hospitalName,
  8157. identityApplyCode: identityApplyCode,
  8158. identityCard: identityCard,
  8159. licenseCard: licenseCard,
  8160. identityApplyRoleCode: identityApplyRoleCode,
  8161. identityApplyRoleName: identityApplyRoleName,
  8162. isBatchExportDiagnoseData: isBatchExportDiagnoseData,
  8163. fieldList: fieldList,
  8164. managementUserState: managementUserState,
  8165. nickName: nickName,
  8166. organizationCode: organizationCode,
  8167. organizationName: organizationName,
  8168. departmentCode: departmentCode,
  8169. departmentShortCode: departmentShortCode,
  8170. rootOrganizationCode: rootOrganizationCode,
  8171. rootOrganizationName: rootOrganizationName,
  8172. authorityGroups: authorityGroups,
  8173. bindDevices: bindDevices,
  8174. bindDeviceOrganizations: bindDeviceOrganizations,
  8175. lastIP: lastIP,
  8176. logintimes: logintimes,
  8177. userState: userState,
  8178. roleCodes: roleCodes,
  8179. rankCodes: rankCodes,
  8180. positionCodes: positionCodes,
  8181. applyState: applyState,
  8182. rankName: rankName,
  8183. positionName: positionName,
  8184. isDirector: isDirector,
  8185. deletePatientCodes: deletePatientCodes,
  8186. bindAssistantUserCode: bindAssistantUserCode,
  8187. bindAssistantDoctorUserCode: bindAssistantDoctorUserCode,
  8188. loginLockInfo: loginLockInfo,
  8189. signature: signature,
  8190. language: language,
  8191. enableReportLabel: enableReportLabel,
  8192. associatedInfos: associatedInfos,
  8193. commonPlatformUserId: commonPlatformUserId,
  8194. bindEmergencyDeviceCode: bindEmergencyDeviceCode,
  8195. bindEmergencyExpertCode: bindEmergencyExpertCode,
  8196. dashboardOrgCodes: dashboardOrgCodes,
  8197. organizationShortCode: organizationShortCode,
  8198. rootOrganizationShortCode: rootOrganizationShortCode,
  8199. isOldAgent: isOldAgent,
  8200. phone: phone,
  8201. email: email,
  8202. userCode: userCode,
  8203. userName: userName,
  8204. fullName: fullName,
  8205. headImageUrl: headImageUrl,
  8206. displayName: displayName,
  8207. createTime: createTime,
  8208. updateTime: updateTime,
  8209. );
  8210. factory ModifyUserRequest.fromJson(Map<String, dynamic> map) {
  8211. return ModifyUserRequest(
  8212. token: map['Token'],
  8213. roleName: map['RoleName'],
  8214. departmentName: map['DepartmentName'],
  8215. hospitalName: map['HospitalName'],
  8216. identityApplyCode: map['IdentityApplyCode'],
  8217. identityCard: map['IdentityCard']?.cast<String>().toList(),
  8218. licenseCard: map['LicenseCard']?.cast<String>().toList(),
  8219. identityApplyRoleCode: map['IdentityApplyRoleCode'],
  8220. identityApplyRoleName: map['IdentityApplyRoleName'],
  8221. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  8222. fieldList: map['FieldList']?.cast<String>().toList(),
  8223. managementUserState: ManagementUserInfoStateEnum.values.firstWhere((e) => e.index == map['ManagementUserState']),
  8224. nickName: map['NickName'],
  8225. organizationCode: map['OrganizationCode'],
  8226. organizationName: map['OrganizationName'],
  8227. departmentCode: map['DepartmentCode'],
  8228. departmentShortCode: map['DepartmentShortCode'],
  8229. rootOrganizationCode: map['RootOrganizationCode'],
  8230. rootOrganizationName: map['RootOrganizationName'],
  8231. authorityGroups: map['AuthorityGroups']?.cast<String>().toList(),
  8232. bindDevices: map['BindDevices']?.cast<String>().toList(),
  8233. bindDeviceOrganizations: map['BindDeviceOrganizations']?.cast<String>().toList(),
  8234. lastIP: map['LastIP'],
  8235. logintimes: map['Logintimes'],
  8236. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  8237. roleCodes: map['RoleCodes']?.cast<String>().toList(),
  8238. rankCodes: map['RankCodes']?.cast<String>().toList(),
  8239. positionCodes: map['PositionCodes']?.cast<String>().toList(),
  8240. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  8241. rankName: map['RankName'],
  8242. positionName: map['PositionName'],
  8243. isDirector: map['IsDirector'],
  8244. deletePatientCodes: map['DeletePatientCodes']?.cast<String>().toList(),
  8245. bindAssistantUserCode: map['BindAssistantUserCode'],
  8246. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  8247. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  8248. signature: map['Signature'],
  8249. language: map['Language'],
  8250. enableReportLabel: map['EnableReportLabel'],
  8251. associatedInfos: map['AssociatedInfos'] != null ? (map['AssociatedInfos'] as List).map((e)=>AssociatedInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8252. commonPlatformUserId: map['CommonPlatformUserId'],
  8253. bindEmergencyDeviceCode: map['BindEmergencyDeviceCode'],
  8254. bindEmergencyExpertCode: map['BindEmergencyExpertCode'],
  8255. dashboardOrgCodes: map['DashboardOrgCodes']?.cast<String>().toList(),
  8256. organizationShortCode: map['OrganizationShortCode'],
  8257. rootOrganizationShortCode: map['RootOrganizationShortCode'],
  8258. isOldAgent: map['IsOldAgent'],
  8259. phone: map['Phone'],
  8260. email: map['Email'],
  8261. userCode: map['UserCode'],
  8262. userName: map['UserName'],
  8263. fullName: map['FullName'],
  8264. headImageUrl: map['HeadImageUrl'],
  8265. displayName: map['DisplayName'],
  8266. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  8267. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  8268. );
  8269. }
  8270. Map<String, dynamic> toJson() {
  8271. final map = super.toJson();
  8272. if(token != null)
  8273. map['Token'] = token;
  8274. return map;
  8275. }
  8276. }
  8277. class PublishReportTemplateRequest extends TokenRequest{
  8278. String? reportTemplateCode;
  8279. PublishReportTemplateRequest({
  8280. this.reportTemplateCode,
  8281. String? token,
  8282. }) : super(
  8283. token: token,
  8284. );
  8285. factory PublishReportTemplateRequest.fromJson(Map<String, dynamic> map) {
  8286. return PublishReportTemplateRequest(
  8287. reportTemplateCode: map['ReportTemplateCode'],
  8288. token: map['Token'],
  8289. );
  8290. }
  8291. Map<String, dynamic> toJson() {
  8292. final map = super.toJson();
  8293. if(reportTemplateCode != null)
  8294. map['ReportTemplateCode'] = reportTemplateCode;
  8295. return map;
  8296. }
  8297. }
  8298. class PublishThesaurusRequest extends TokenRequest{
  8299. String? thesaurusCode;
  8300. PublishThesaurusRequest({
  8301. this.thesaurusCode,
  8302. String? token,
  8303. }) : super(
  8304. token: token,
  8305. );
  8306. factory PublishThesaurusRequest.fromJson(Map<String, dynamic> map) {
  8307. return PublishThesaurusRequest(
  8308. thesaurusCode: map['ThesaurusCode'],
  8309. token: map['Token'],
  8310. );
  8311. }
  8312. Map<String, dynamic> toJson() {
  8313. final map = super.toJson();
  8314. if(thesaurusCode != null)
  8315. map['ThesaurusCode'] = thesaurusCode;
  8316. return map;
  8317. }
  8318. }
  8319. class QueryAnnouncementPageRequest extends PageRequest{
  8320. AnnouncementTypeEnum announcementType;
  8321. AnnouncementStatusEnum announcementStatus;
  8322. String? keyword;
  8323. DateTime? startTime;
  8324. DateTime? endTime;
  8325. QueryAnnouncementPageRequest({
  8326. this.announcementType = AnnouncementTypeEnum.Broadcast,
  8327. this.announcementStatus = AnnouncementStatusEnum.Released,
  8328. this.keyword,
  8329. this.startTime,
  8330. this.endTime,
  8331. int pageIndex = 0,
  8332. int pageSize = 0,
  8333. String? token,
  8334. }) : super(
  8335. pageIndex: pageIndex,
  8336. pageSize: pageSize,
  8337. token: token,
  8338. );
  8339. factory QueryAnnouncementPageRequest.fromJson(Map<String, dynamic> map) {
  8340. return QueryAnnouncementPageRequest(
  8341. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  8342. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  8343. keyword: map['Keyword'],
  8344. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  8345. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  8346. pageIndex: map['PageIndex'],
  8347. pageSize: map['PageSize'],
  8348. token: map['Token'],
  8349. );
  8350. }
  8351. Map<String, dynamic> toJson() {
  8352. final map = super.toJson();
  8353. map['AnnouncementType'] = announcementType.index;
  8354. map['AnnouncementStatus'] = announcementStatus.index;
  8355. if(keyword != null)
  8356. map['Keyword'] = keyword;
  8357. if(startTime != null)
  8358. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  8359. if(endTime != null)
  8360. map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
  8361. return map;
  8362. }
  8363. }
  8364. class QueryDeviceModelBindNumRequest extends TokenRequest{
  8365. String? deviceModelCode;
  8366. QueryDeviceModelBindNumRequest({
  8367. this.deviceModelCode,
  8368. String? token,
  8369. }) : super(
  8370. token: token,
  8371. );
  8372. factory QueryDeviceModelBindNumRequest.fromJson(Map<String, dynamic> map) {
  8373. return QueryDeviceModelBindNumRequest(
  8374. deviceModelCode: map['DeviceModelCode'],
  8375. token: map['Token'],
  8376. );
  8377. }
  8378. Map<String, dynamic> toJson() {
  8379. final map = super.toJson();
  8380. if(deviceModelCode != null)
  8381. map['DeviceModelCode'] = deviceModelCode;
  8382. return map;
  8383. }
  8384. }
  8385. class QueryRoleAdminNumRequest extends TokenRequest{
  8386. String? adminRoleCode;
  8387. QueryRoleAdminNumRequest({
  8388. this.adminRoleCode,
  8389. String? token,
  8390. }) : super(
  8391. token: token,
  8392. );
  8393. factory QueryRoleAdminNumRequest.fromJson(Map<String, dynamic> map) {
  8394. return QueryRoleAdminNumRequest(
  8395. adminRoleCode: map['AdminRoleCode'],
  8396. token: map['Token'],
  8397. );
  8398. }
  8399. Map<String, dynamic> toJson() {
  8400. final map = super.toJson();
  8401. if(adminRoleCode != null)
  8402. map['AdminRoleCode'] = adminRoleCode;
  8403. return map;
  8404. }
  8405. }
  8406. class QueryRoleUserNumRequest extends TokenRequest{
  8407. String? roleCode;
  8408. QueryRoleUserNumRequest({
  8409. this.roleCode,
  8410. String? token,
  8411. }) : super(
  8412. token: token,
  8413. );
  8414. factory QueryRoleUserNumRequest.fromJson(Map<String, dynamic> map) {
  8415. return QueryRoleUserNumRequest(
  8416. roleCode: map['RoleCode'],
  8417. token: map['Token'],
  8418. );
  8419. }
  8420. Map<String, dynamic> toJson() {
  8421. final map = super.toJson();
  8422. if(roleCode != null)
  8423. map['RoleCode'] = roleCode;
  8424. return map;
  8425. }
  8426. }
  8427. class QuerySystemConfigRequest extends TokenRequest{
  8428. String? code;
  8429. String? configKey;
  8430. QuerySystemConfigRequest({
  8431. this.code,
  8432. this.configKey,
  8433. String? token,
  8434. }) : super(
  8435. token: token,
  8436. );
  8437. factory QuerySystemConfigRequest.fromJson(Map<String, dynamic> map) {
  8438. return QuerySystemConfigRequest(
  8439. code: map['Code'],
  8440. configKey: map['ConfigKey'],
  8441. token: map['Token'],
  8442. );
  8443. }
  8444. Map<String, dynamic> toJson() {
  8445. final map = super.toJson();
  8446. if(code != null)
  8447. map['Code'] = code;
  8448. if(configKey != null)
  8449. map['ConfigKey'] = configKey;
  8450. return map;
  8451. }
  8452. }
  8453. class RejectIdentityApplyRequest extends TokenRequest{
  8454. String? identityApplyCode;
  8455. String? rejectReason;
  8456. RejectIdentityApplyRequest({
  8457. this.identityApplyCode,
  8458. this.rejectReason,
  8459. String? token,
  8460. }) : super(
  8461. token: token,
  8462. );
  8463. factory RejectIdentityApplyRequest.fromJson(Map<String, dynamic> map) {
  8464. return RejectIdentityApplyRequest(
  8465. identityApplyCode: map['IdentityApplyCode'],
  8466. rejectReason: map['RejectReason'],
  8467. token: map['Token'],
  8468. );
  8469. }
  8470. Map<String, dynamic> toJson() {
  8471. final map = super.toJson();
  8472. if(identityApplyCode != null)
  8473. map['IdentityApplyCode'] = identityApplyCode;
  8474. if(rejectReason != null)
  8475. map['RejectReason'] = rejectReason;
  8476. return map;
  8477. }
  8478. }
  8479. class RemoveAdminRequest extends TokenRequest{
  8480. String? adminCode;
  8481. RemoveAdminRequest({
  8482. this.adminCode,
  8483. String? token,
  8484. }) : super(
  8485. token: token,
  8486. );
  8487. factory RemoveAdminRequest.fromJson(Map<String, dynamic> map) {
  8488. return RemoveAdminRequest(
  8489. adminCode: map['AdminCode'],
  8490. token: map['Token'],
  8491. );
  8492. }
  8493. Map<String, dynamic> toJson() {
  8494. final map = super.toJson();
  8495. if(adminCode != null)
  8496. map['AdminCode'] = adminCode;
  8497. return map;
  8498. }
  8499. }
  8500. class RemoveOrganizationRequest extends TokenRequest{
  8501. String? organizationCode;
  8502. RemoveOrganizationRequest({
  8503. this.organizationCode,
  8504. String? token,
  8505. }) : super(
  8506. token: token,
  8507. );
  8508. factory RemoveOrganizationRequest.fromJson(Map<String, dynamic> map) {
  8509. return RemoveOrganizationRequest(
  8510. organizationCode: map['OrganizationCode'],
  8511. token: map['Token'],
  8512. );
  8513. }
  8514. Map<String, dynamic> toJson() {
  8515. final map = super.toJson();
  8516. if(organizationCode != null)
  8517. map['OrganizationCode'] = organizationCode;
  8518. return map;
  8519. }
  8520. }
  8521. class RemoveReportLabelRequest extends TokenRequest{
  8522. String? reportLabelCode;
  8523. RemoveReportLabelRequest({
  8524. this.reportLabelCode,
  8525. String? token,
  8526. }) : super(
  8527. token: token,
  8528. );
  8529. factory RemoveReportLabelRequest.fromJson(Map<String, dynamic> map) {
  8530. return RemoveReportLabelRequest(
  8531. reportLabelCode: map['ReportLabelCode'],
  8532. token: map['Token'],
  8533. );
  8534. }
  8535. Map<String, dynamic> toJson() {
  8536. final map = super.toJson();
  8537. if(reportLabelCode != null)
  8538. map['ReportLabelCode'] = reportLabelCode;
  8539. return map;
  8540. }
  8541. }
  8542. class RemoveReportPosterRequest extends TokenRequest{
  8543. String? reportPosterCode;
  8544. RemoveReportPosterRequest({
  8545. this.reportPosterCode,
  8546. String? token,
  8547. }) : super(
  8548. token: token,
  8549. );
  8550. factory RemoveReportPosterRequest.fromJson(Map<String, dynamic> map) {
  8551. return RemoveReportPosterRequest(
  8552. reportPosterCode: map['ReportPosterCode'],
  8553. token: map['Token'],
  8554. );
  8555. }
  8556. Map<String, dynamic> toJson() {
  8557. final map = super.toJson();
  8558. if(reportPosterCode != null)
  8559. map['ReportPosterCode'] = reportPosterCode;
  8560. return map;
  8561. }
  8562. }
  8563. class RemoveUserRequest extends TokenRequest{
  8564. String? userCode;
  8565. RemoveUserRequest({
  8566. this.userCode,
  8567. String? token,
  8568. }) : super(
  8569. token: token,
  8570. );
  8571. factory RemoveUserRequest.fromJson(Map<String, dynamic> map) {
  8572. return RemoveUserRequest(
  8573. userCode: map['UserCode'],
  8574. token: map['Token'],
  8575. );
  8576. }
  8577. Map<String, dynamic> toJson() {
  8578. final map = super.toJson();
  8579. if(userCode != null)
  8580. map['UserCode'] = userCode;
  8581. return map;
  8582. }
  8583. }
  8584. class UnlockAccountRequest extends TokenRequest{
  8585. String? userCode;
  8586. UnlockAccountRequest({
  8587. this.userCode,
  8588. String? token,
  8589. }) : super(
  8590. token: token,
  8591. );
  8592. factory UnlockAccountRequest.fromJson(Map<String, dynamic> map) {
  8593. return UnlockAccountRequest(
  8594. userCode: map['UserCode'],
  8595. token: map['Token'],
  8596. );
  8597. }
  8598. Map<String, dynamic> toJson() {
  8599. final map = super.toJson();
  8600. if(userCode != null)
  8601. map['UserCode'] = userCode;
  8602. return map;
  8603. }
  8604. }
  8605. class ResetAdminPasswordRequest extends TokenRequest{
  8606. String? adminCode;
  8607. String? passWord;
  8608. ResetAdminPasswordRequest({
  8609. this.adminCode,
  8610. this.passWord,
  8611. String? token,
  8612. }) : super(
  8613. token: token,
  8614. );
  8615. factory ResetAdminPasswordRequest.fromJson(Map<String, dynamic> map) {
  8616. return ResetAdminPasswordRequest(
  8617. adminCode: map['AdminCode'],
  8618. passWord: map['PassWord'],
  8619. token: map['Token'],
  8620. );
  8621. }
  8622. Map<String, dynamic> toJson() {
  8623. final map = super.toJson();
  8624. if(adminCode != null)
  8625. map['AdminCode'] = adminCode;
  8626. if(passWord != null)
  8627. map['PassWord'] = passWord;
  8628. return map;
  8629. }
  8630. }
  8631. class ResetUserPasswordRequest extends TokenRequest{
  8632. String? userCode;
  8633. String? passWord;
  8634. ResetUserPasswordRequest({
  8635. this.userCode,
  8636. this.passWord,
  8637. String? token,
  8638. }) : super(
  8639. token: token,
  8640. );
  8641. factory ResetUserPasswordRequest.fromJson(Map<String, dynamic> map) {
  8642. return ResetUserPasswordRequest(
  8643. userCode: map['UserCode'],
  8644. passWord: map['PassWord'],
  8645. token: map['Token'],
  8646. );
  8647. }
  8648. Map<String, dynamic> toJson() {
  8649. final map = super.toJson();
  8650. if(userCode != null)
  8651. map['UserCode'] = userCode;
  8652. if(passWord != null)
  8653. map['PassWord'] = passWord;
  8654. return map;
  8655. }
  8656. }
  8657. class RetryPushReportRecordsRequest extends TokenRequest{
  8658. List<String>? codes;
  8659. RetryPushReportRecordsRequest({
  8660. this.codes,
  8661. String? token,
  8662. }) : super(
  8663. token: token,
  8664. );
  8665. factory RetryPushReportRecordsRequest.fromJson(Map<String, dynamic> map) {
  8666. return RetryPushReportRecordsRequest(
  8667. codes: map['Codes']?.cast<String>().toList(),
  8668. token: map['Token'],
  8669. );
  8670. }
  8671. Map<String, dynamic> toJson() {
  8672. final map = super.toJson();
  8673. if(codes != null)
  8674. map['Codes'] = codes;
  8675. return map;
  8676. }
  8677. }
  8678. class SaveCMSTemplateDetailRequest extends TokenRequest{
  8679. String? cMSTemplateCode;
  8680. String? cMSTemplateName;
  8681. CMSTemplateStatusTypeEnum cMSTemplateStateType;
  8682. String? cMSTemplateJson;
  8683. bool isDefault;
  8684. String? cMSBgColor;
  8685. String? cMSBgImg;
  8686. bool isShowTop;
  8687. String? cMSBorderColor;
  8688. int cMSBorderShadow;
  8689. SaveCMSTemplateDetailRequest({
  8690. this.cMSTemplateCode,
  8691. this.cMSTemplateName,
  8692. this.cMSTemplateStateType = CMSTemplateStatusTypeEnum.UnPublished,
  8693. this.cMSTemplateJson,
  8694. this.isDefault = false,
  8695. this.cMSBgColor,
  8696. this.cMSBgImg,
  8697. this.isShowTop = false,
  8698. this.cMSBorderColor,
  8699. this.cMSBorderShadow = 0,
  8700. String? token,
  8701. }) : super(
  8702. token: token,
  8703. );
  8704. factory SaveCMSTemplateDetailRequest.fromJson(Map<String, dynamic> map) {
  8705. return SaveCMSTemplateDetailRequest(
  8706. cMSTemplateCode: map['CMSTemplateCode'],
  8707. cMSTemplateName: map['CMSTemplateName'],
  8708. cMSTemplateStateType: CMSTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['CMSTemplateStateType']),
  8709. cMSTemplateJson: map['CMSTemplateJson'],
  8710. isDefault: map['IsDefault'],
  8711. cMSBgColor: map['CMSBgColor'],
  8712. cMSBgImg: map['CMSBgImg'],
  8713. isShowTop: map['IsShowTop'],
  8714. cMSBorderColor: map['CMSBorderColor'],
  8715. cMSBorderShadow: map['CMSBorderShadow'],
  8716. token: map['Token'],
  8717. );
  8718. }
  8719. Map<String, dynamic> toJson() {
  8720. final map = super.toJson();
  8721. if(cMSTemplateCode != null)
  8722. map['CMSTemplateCode'] = cMSTemplateCode;
  8723. if(cMSTemplateName != null)
  8724. map['CMSTemplateName'] = cMSTemplateName;
  8725. map['CMSTemplateStateType'] = cMSTemplateStateType.index;
  8726. if(cMSTemplateJson != null)
  8727. map['CMSTemplateJson'] = cMSTemplateJson;
  8728. map['IsDefault'] = isDefault;
  8729. if(cMSBgColor != null)
  8730. map['CMSBgColor'] = cMSBgColor;
  8731. if(cMSBgImg != null)
  8732. map['CMSBgImg'] = cMSBgImg;
  8733. map['IsShowTop'] = isShowTop;
  8734. if(cMSBorderColor != null)
  8735. map['CMSBorderColor'] = cMSBorderColor;
  8736. map['CMSBorderShadow'] = cMSBorderShadow;
  8737. return map;
  8738. }
  8739. }
  8740. class SaveOrgTemplateDataRequest extends TokenRequest{
  8741. String? organizationCode;
  8742. String? defaultThesaurusCode;
  8743. String? defaultReportTemplateCode;
  8744. SaveOrgTemplateDataRequest({
  8745. this.organizationCode,
  8746. this.defaultThesaurusCode,
  8747. this.defaultReportTemplateCode,
  8748. String? token,
  8749. }) : super(
  8750. token: token,
  8751. );
  8752. factory SaveOrgTemplateDataRequest.fromJson(Map<String, dynamic> map) {
  8753. return SaveOrgTemplateDataRequest(
  8754. organizationCode: map['OrganizationCode'],
  8755. defaultThesaurusCode: map['DefaultThesaurusCode'],
  8756. defaultReportTemplateCode: map['DefaultReportTemplateCode'],
  8757. token: map['Token'],
  8758. );
  8759. }
  8760. Map<String, dynamic> toJson() {
  8761. final map = super.toJson();
  8762. if(organizationCode != null)
  8763. map['OrganizationCode'] = organizationCode;
  8764. if(defaultThesaurusCode != null)
  8765. map['DefaultThesaurusCode'] = defaultThesaurusCode;
  8766. if(defaultReportTemplateCode != null)
  8767. map['DefaultReportTemplateCode'] = defaultReportTemplateCode;
  8768. return map;
  8769. }
  8770. }
  8771. class SaveReportLabelRequest extends TokenRequest{
  8772. String? reportLabelCode;
  8773. String? labelName;
  8774. String? languageCode;
  8775. ReportLabelUsageTypeEnum usageType;
  8776. List<String>? labelItems;
  8777. SaveReportLabelRequest({
  8778. this.reportLabelCode,
  8779. this.labelName,
  8780. this.languageCode,
  8781. this.usageType = ReportLabelUsageTypeEnum.People,
  8782. this.labelItems,
  8783. String? token,
  8784. }) : super(
  8785. token: token,
  8786. );
  8787. factory SaveReportLabelRequest.fromJson(Map<String, dynamic> map) {
  8788. return SaveReportLabelRequest(
  8789. reportLabelCode: map['ReportLabelCode'],
  8790. labelName: map['LabelName'],
  8791. languageCode: map['LanguageCode'],
  8792. usageType: ReportLabelUsageTypeEnum.values.firstWhere((e) => e.index == map['UsageType']),
  8793. labelItems: map['LabelItems']?.cast<String>().toList(),
  8794. token: map['Token'],
  8795. );
  8796. }
  8797. Map<String, dynamic> toJson() {
  8798. final map = super.toJson();
  8799. if(reportLabelCode != null)
  8800. map['ReportLabelCode'] = reportLabelCode;
  8801. if(labelName != null)
  8802. map['LabelName'] = labelName;
  8803. if(languageCode != null)
  8804. map['LanguageCode'] = languageCode;
  8805. map['UsageType'] = usageType.index;
  8806. if(labelItems != null)
  8807. map['LabelItems'] = labelItems;
  8808. return map;
  8809. }
  8810. }
  8811. class SaveReportPosterRequest extends TokenRequest{
  8812. String? reportPosterCode;
  8813. String? receiverName;
  8814. String? contact;
  8815. String? phone;
  8816. String? targetUrl;
  8817. String? template;
  8818. ReportPosterTypeEnum posterType;
  8819. ReportFormatEnum reportFormat;
  8820. int postTimeout;
  8821. SaveReportPosterRequest({
  8822. this.reportPosterCode,
  8823. this.receiverName,
  8824. this.contact,
  8825. this.phone,
  8826. this.targetUrl,
  8827. this.template,
  8828. this.posterType = ReportPosterTypeEnum.Default,
  8829. this.reportFormat = ReportFormatEnum.Json,
  8830. this.postTimeout = 0,
  8831. String? token,
  8832. }) : super(
  8833. token: token,
  8834. );
  8835. factory SaveReportPosterRequest.fromJson(Map<String, dynamic> map) {
  8836. return SaveReportPosterRequest(
  8837. reportPosterCode: map['ReportPosterCode'],
  8838. receiverName: map['ReceiverName'],
  8839. contact: map['Contact'],
  8840. phone: map['Phone'],
  8841. targetUrl: map['TargetUrl'],
  8842. template: map['Template'],
  8843. posterType: ReportPosterTypeEnum.values.firstWhere((e) => e.index == map['PosterType']),
  8844. reportFormat: ReportFormatEnum.values.firstWhere((e) => e.index == map['ReportFormat']),
  8845. postTimeout: map['PostTimeout'],
  8846. token: map['Token'],
  8847. );
  8848. }
  8849. Map<String, dynamic> toJson() {
  8850. final map = super.toJson();
  8851. if(reportPosterCode != null)
  8852. map['ReportPosterCode'] = reportPosterCode;
  8853. if(receiverName != null)
  8854. map['ReceiverName'] = receiverName;
  8855. if(contact != null)
  8856. map['Contact'] = contact;
  8857. if(phone != null)
  8858. map['Phone'] = phone;
  8859. if(targetUrl != null)
  8860. map['TargetUrl'] = targetUrl;
  8861. if(template != null)
  8862. map['Template'] = template;
  8863. map['PosterType'] = posterType.index;
  8864. map['ReportFormat'] = reportFormat.index;
  8865. map['PostTimeout'] = postTimeout;
  8866. return map;
  8867. }
  8868. }
  8869. class SaveThesaurusRequest extends ThesaurusDTO{
  8870. String? token;
  8871. SaveThesaurusRequest({
  8872. this.token,
  8873. String? thesaurusCode,
  8874. String? thesaurusName,
  8875. ThesaurusStatusTypeEnum thesaurusStateType = ThesaurusStatusTypeEnum.Unpublished,
  8876. ThesaurusTypeEnum thesaurusType = ThesaurusTypeEnum.Default,
  8877. ThesaurusUsageTypeEnum thesaurusUsageType = ThesaurusUsageTypeEnum.People,
  8878. String? organizationCode,
  8879. String? personalCode,
  8880. String? organizationName,
  8881. String? personalName,
  8882. String? referenceThesaurusCode,
  8883. bool isDefault = false,
  8884. bool isUserDefault = false,
  8885. String? languageCode,
  8886. }) : super(
  8887. thesaurusCode: thesaurusCode,
  8888. thesaurusName: thesaurusName,
  8889. thesaurusStateType: thesaurusStateType,
  8890. thesaurusType: thesaurusType,
  8891. thesaurusUsageType: thesaurusUsageType,
  8892. organizationCode: organizationCode,
  8893. personalCode: personalCode,
  8894. organizationName: organizationName,
  8895. personalName: personalName,
  8896. referenceThesaurusCode: referenceThesaurusCode,
  8897. isDefault: isDefault,
  8898. isUserDefault: isUserDefault,
  8899. languageCode: languageCode,
  8900. );
  8901. factory SaveThesaurusRequest.fromJson(Map<String, dynamic> map) {
  8902. return SaveThesaurusRequest(
  8903. token: map['Token'],
  8904. thesaurusCode: map['ThesaurusCode'],
  8905. thesaurusName: map['ThesaurusName'],
  8906. thesaurusStateType: ThesaurusStatusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusStateType']),
  8907. thesaurusType: ThesaurusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusType']),
  8908. thesaurusUsageType: ThesaurusUsageTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusUsageType']),
  8909. organizationCode: map['OrganizationCode'],
  8910. personalCode: map['PersonalCode'],
  8911. organizationName: map['OrganizationName'],
  8912. personalName: map['PersonalName'],
  8913. referenceThesaurusCode: map['ReferenceThesaurusCode'],
  8914. isDefault: map['IsDefault'],
  8915. isUserDefault: map['IsUserDefault'],
  8916. languageCode: map['LanguageCode'],
  8917. );
  8918. }
  8919. Map<String, dynamic> toJson() {
  8920. final map = super.toJson();
  8921. if(token != null)
  8922. map['Token'] = token;
  8923. return map;
  8924. }
  8925. }
  8926. class SettingReloadRequest extends TokenRequest{
  8927. String? settingKey;
  8928. SettingReloadRequest({
  8929. this.settingKey,
  8930. String? token,
  8931. }) : super(
  8932. token: token,
  8933. );
  8934. factory SettingReloadRequest.fromJson(Map<String, dynamic> map) {
  8935. return SettingReloadRequest(
  8936. settingKey: map['SettingKey'],
  8937. token: map['Token'],
  8938. );
  8939. }
  8940. Map<String, dynamic> toJson() {
  8941. final map = super.toJson();
  8942. if(settingKey != null)
  8943. map['SettingKey'] = settingKey;
  8944. return map;
  8945. }
  8946. }
  8947. class ShareDeviceRequest extends TokenRequest{
  8948. List<String>? userCodeList;
  8949. List<String>? deviceCodes;
  8950. ShareDeviceRequest({
  8951. this.userCodeList,
  8952. this.deviceCodes,
  8953. String? token,
  8954. }) : super(
  8955. token: token,
  8956. );
  8957. factory ShareDeviceRequest.fromJson(Map<String, dynamic> map) {
  8958. return ShareDeviceRequest(
  8959. userCodeList: map['UserCodeList']?.cast<String>().toList(),
  8960. deviceCodes: map['DeviceCodes']?.cast<String>().toList(),
  8961. token: map['Token'],
  8962. );
  8963. }
  8964. Map<String, dynamic> toJson() {
  8965. final map = super.toJson();
  8966. if(userCodeList != null)
  8967. map['UserCodeList'] = userCodeList;
  8968. if(deviceCodes != null)
  8969. map['DeviceCodes'] = deviceCodes;
  8970. return map;
  8971. }
  8972. }
  8973. class ThesaurusItemRequest extends TokenRequest{
  8974. String? thesaurusItemCode;
  8975. ThesaurusItemTypeEnum thesaurusItemType;
  8976. String? thesaurusItemName;
  8977. String? parentItemCode;
  8978. String? thesaurusCode;
  8979. String? thesaurusItemDescription;
  8980. String? thesaurusItemConclusion;
  8981. ThesaurusItemRequest({
  8982. this.thesaurusItemCode,
  8983. this.thesaurusItemType = ThesaurusItemTypeEnum.Classification,
  8984. this.thesaurusItemName,
  8985. this.parentItemCode,
  8986. this.thesaurusCode,
  8987. this.thesaurusItemDescription,
  8988. this.thesaurusItemConclusion,
  8989. String? token,
  8990. }) : super(
  8991. token: token,
  8992. );
  8993. factory ThesaurusItemRequest.fromJson(Map<String, dynamic> map) {
  8994. return ThesaurusItemRequest(
  8995. thesaurusItemCode: map['ThesaurusItemCode'],
  8996. thesaurusItemType: ThesaurusItemTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusItemType']),
  8997. thesaurusItemName: map['ThesaurusItemName'],
  8998. parentItemCode: map['ParentItemCode'],
  8999. thesaurusCode: map['ThesaurusCode'],
  9000. thesaurusItemDescription: map['ThesaurusItemDescription'],
  9001. thesaurusItemConclusion: map['ThesaurusItemConclusion'],
  9002. token: map['Token'],
  9003. );
  9004. }
  9005. Map<String, dynamic> toJson() {
  9006. final map = super.toJson();
  9007. if(thesaurusItemCode != null)
  9008. map['ThesaurusItemCode'] = thesaurusItemCode;
  9009. map['ThesaurusItemType'] = thesaurusItemType.index;
  9010. if(thesaurusItemName != null)
  9011. map['ThesaurusItemName'] = thesaurusItemName;
  9012. if(parentItemCode != null)
  9013. map['ParentItemCode'] = parentItemCode;
  9014. if(thesaurusCode != null)
  9015. map['ThesaurusCode'] = thesaurusCode;
  9016. if(thesaurusItemDescription != null)
  9017. map['ThesaurusItemDescription'] = thesaurusItemDescription;
  9018. if(thesaurusItemConclusion != null)
  9019. map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
  9020. return map;
  9021. }
  9022. }
  9023. class UpdateDeviceDiagnosisModuleEnabledRequest extends TokenRequest{
  9024. String? deviceCode;
  9025. List<String>? diagnosisModules;
  9026. UpdateDeviceDiagnosisModuleEnabledRequest({
  9027. this.deviceCode,
  9028. this.diagnosisModules,
  9029. String? token,
  9030. }) : super(
  9031. token: token,
  9032. );
  9033. factory UpdateDeviceDiagnosisModuleEnabledRequest.fromJson(Map<String, dynamic> map) {
  9034. return UpdateDeviceDiagnosisModuleEnabledRequest(
  9035. deviceCode: map['DeviceCode'],
  9036. diagnosisModules: map['DiagnosisModules']?.cast<String>().toList(),
  9037. token: map['Token'],
  9038. );
  9039. }
  9040. Map<String, dynamic> toJson() {
  9041. final map = super.toJson();
  9042. if(deviceCode != null)
  9043. map['DeviceCode'] = deviceCode;
  9044. if(diagnosisModules != null)
  9045. map['DiagnosisModules'] = diagnosisModules;
  9046. return map;
  9047. }
  9048. }
  9049. enum GradingConfigTypeEnum {
  9050. Switch,
  9051. Text,
  9052. }
  9053. class UpdateGradingProtectionConfigEnableRequest extends TokenRequest{
  9054. List<String>? codes;
  9055. GradingConfigTypeEnum configType;
  9056. String? value;
  9057. UpdateGradingProtectionConfigEnableRequest({
  9058. this.codes,
  9059. this.configType = GradingConfigTypeEnum.Switch,
  9060. this.value,
  9061. String? token,
  9062. }) : super(
  9063. token: token,
  9064. );
  9065. factory UpdateGradingProtectionConfigEnableRequest.fromJson(Map<String, dynamic> map) {
  9066. return UpdateGradingProtectionConfigEnableRequest(
  9067. codes: map['Codes']?.cast<String>().toList(),
  9068. configType: GradingConfigTypeEnum.values.firstWhere((e) => e.index == map['ConfigType']),
  9069. value: map['Value'],
  9070. token: map['Token'],
  9071. );
  9072. }
  9073. Map<String, dynamic> toJson() {
  9074. final map = super.toJson();
  9075. if(codes != null)
  9076. map['Codes'] = codes;
  9077. map['ConfigType'] = configType.index;
  9078. if(value != null)
  9079. map['Value'] = value;
  9080. return map;
  9081. }
  9082. }
  9083. class FindCourseAlbumPageRequest extends PageRequest{
  9084. String? keyword;
  9085. StudentCourseStatusEnum queryStatus;
  9086. List<String>? courseLabelCodes;
  9087. String? teacherCode;
  9088. String? teacherName;
  9089. CourseViewRangeEnum viewRange;
  9090. double price;
  9091. FindCourseAlbumPageRequest({
  9092. this.keyword,
  9093. this.queryStatus = StudentCourseStatusEnum.All,
  9094. this.courseLabelCodes,
  9095. this.teacherCode,
  9096. this.teacherName,
  9097. this.viewRange = CourseViewRangeEnum.All,
  9098. this.price = 0,
  9099. int pageIndex = 0,
  9100. int pageSize = 0,
  9101. String? token,
  9102. }) : super(
  9103. pageIndex: pageIndex,
  9104. pageSize: pageSize,
  9105. token: token,
  9106. );
  9107. factory FindCourseAlbumPageRequest.fromJson(Map<String, dynamic> map) {
  9108. return FindCourseAlbumPageRequest(
  9109. keyword: map['Keyword'],
  9110. queryStatus: StudentCourseStatusEnum.values.firstWhere((e) => e.index == map['QueryStatus']),
  9111. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  9112. teacherCode: map['TeacherCode'],
  9113. teacherName: map['TeacherName'],
  9114. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  9115. price: double.parse(map['Price'].toString()),
  9116. pageIndex: map['PageIndex'],
  9117. pageSize: map['PageSize'],
  9118. token: map['Token'],
  9119. );
  9120. }
  9121. Map<String, dynamic> toJson() {
  9122. final map = super.toJson();
  9123. if(keyword != null)
  9124. map['Keyword'] = keyword;
  9125. map['QueryStatus'] = queryStatus.index;
  9126. if(courseLabelCodes != null)
  9127. map['CourseLabelCodes'] = courseLabelCodes;
  9128. if(teacherCode != null)
  9129. map['TeacherCode'] = teacherCode;
  9130. if(teacherName != null)
  9131. map['TeacherName'] = teacherName;
  9132. map['ViewRange'] = viewRange.index;
  9133. map['Price'] = price;
  9134. return map;
  9135. }
  9136. }
  9137. class CourseAlbumAddCourseCodesRequest extends TokenRequest{
  9138. List<String>? courseCodes;
  9139. CourseAlbumAddCourseCodesRequest({
  9140. this.courseCodes,
  9141. String? token,
  9142. }) : super(
  9143. token: token,
  9144. );
  9145. factory CourseAlbumAddCourseCodesRequest.fromJson(Map<String, dynamic> map) {
  9146. return CourseAlbumAddCourseCodesRequest(
  9147. courseCodes: map['CourseCodes']?.cast<String>().toList(),
  9148. token: map['Token'],
  9149. );
  9150. }
  9151. Map<String, dynamic> toJson() {
  9152. final map = super.toJson();
  9153. if(courseCodes != null)
  9154. map['CourseCodes'] = courseCodes;
  9155. return map;
  9156. }
  9157. }
  9158. class CourseAlbumAddCourseLabelCodesRequest extends TokenRequest{
  9159. List<String>? courseLabelCodes;
  9160. CourseAlbumAddCourseLabelCodesRequest({
  9161. this.courseLabelCodes,
  9162. String? token,
  9163. }) : super(
  9164. token: token,
  9165. );
  9166. factory CourseAlbumAddCourseLabelCodesRequest.fromJson(Map<String, dynamic> map) {
  9167. return CourseAlbumAddCourseLabelCodesRequest(
  9168. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  9169. token: map['Token'],
  9170. );
  9171. }
  9172. Map<String, dynamic> toJson() {
  9173. final map = super.toJson();
  9174. if(courseLabelCodes != null)
  9175. map['CourseLabelCodes'] = courseLabelCodes;
  9176. return map;
  9177. }
  9178. }
  9179. class SignUpCourseAlbumRequest extends TokenRequest{
  9180. String? courseAlbumCode;
  9181. SignUpCourseAlbumRequest({
  9182. this.courseAlbumCode,
  9183. String? token,
  9184. }) : super(
  9185. token: token,
  9186. );
  9187. factory SignUpCourseAlbumRequest.fromJson(Map<String, dynamic> map) {
  9188. return SignUpCourseAlbumRequest(
  9189. courseAlbumCode: map['CourseAlbumCode'],
  9190. token: map['Token'],
  9191. );
  9192. }
  9193. Map<String, dynamic> toJson() {
  9194. final map = super.toJson();
  9195. if(courseAlbumCode != null)
  9196. map['CourseAlbumCode'] = courseAlbumCode;
  9197. return map;
  9198. }
  9199. }
  9200. class FindVideosByCourseCodeRequest extends TokenRequest{
  9201. String? code;
  9202. String? courseCode;
  9203. FindVideosByCourseCodeRequest({
  9204. this.code,
  9205. this.courseCode,
  9206. String? token,
  9207. }) : super(
  9208. token: token,
  9209. );
  9210. factory FindVideosByCourseCodeRequest.fromJson(Map<String, dynamic> map) {
  9211. return FindVideosByCourseCodeRequest(
  9212. code: map['Code'],
  9213. courseCode: map['CourseCode'],
  9214. token: map['Token'],
  9215. );
  9216. }
  9217. Map<String, dynamic> toJson() {
  9218. final map = super.toJson();
  9219. if(code != null)
  9220. map['Code'] = code;
  9221. if(courseCode != null)
  9222. map['CourseCode'] = courseCode;
  9223. return map;
  9224. }
  9225. }
  9226. class GetReportDetailRequest extends AppletAPIBaseRequest{
  9227. String? reportId;
  9228. GetReportDetailRequest({
  9229. this.reportId,
  9230. String? openId,
  9231. }) : super(
  9232. openId: openId,
  9233. );
  9234. factory GetReportDetailRequest.fromJson(Map<String, dynamic> map) {
  9235. return GetReportDetailRequest(
  9236. reportId: map['ReportId'],
  9237. openId: map['OpenId'],
  9238. );
  9239. }
  9240. Map<String, dynamic> toJson() {
  9241. final map = super.toJson();
  9242. if(reportId != null)
  9243. map['ReportId'] = reportId;
  9244. return map;
  9245. }
  9246. }
  9247. class GetOpLogsByCodesFormMasterRequest {
  9248. List<String>? codes;
  9249. GetOpLogsByCodesFormMasterRequest({
  9250. this.codes,
  9251. });
  9252. factory GetOpLogsByCodesFormMasterRequest.fromJson(Map<String, dynamic> map) {
  9253. return GetOpLogsByCodesFormMasterRequest(
  9254. codes: map['Codes']?.cast<String>().toList(),
  9255. );
  9256. }
  9257. Map<String, dynamic> toJson() {
  9258. final map = Map<String, dynamic>();
  9259. if(codes != null) {
  9260. map['Codes'] = codes;
  9261. }
  9262. return map;
  9263. }
  9264. }
  9265. class GetOpLogsFormMasterRequest {
  9266. int cursor;
  9267. String? sourceUrl;
  9268. GetOpLogsFormMasterRequest({
  9269. this.cursor = 0,
  9270. this.sourceUrl,
  9271. });
  9272. factory GetOpLogsFormMasterRequest.fromJson(Map<String, dynamic> map) {
  9273. return GetOpLogsFormMasterRequest(
  9274. cursor: map['Cursor'],
  9275. sourceUrl: map['SourceUrl'],
  9276. );
  9277. }
  9278. Map<String, dynamic> toJson() {
  9279. final map = Map<String, dynamic>();
  9280. map['Cursor'] = cursor;
  9281. if(sourceUrl != null) {
  9282. map['SourceUrl'] = sourceUrl;
  9283. }
  9284. return map;
  9285. }
  9286. }
  9287. enum MongoDBActionTypeEnum {
  9288. InsertOne,
  9289. InsertOneAsync,
  9290. InsertMany,
  9291. InsertManyAsync,
  9292. DeleteOne,
  9293. DeleteOneAsync,
  9294. DeleteMany,
  9295. DeleteManyAsync,
  9296. FindOneAndDelete,
  9297. FindOneAndDeleteAsync,
  9298. ReplaceOne,
  9299. ReplaceOneAsync,
  9300. FindOneAndReplace,
  9301. FindOneAndReplaceAsync,
  9302. UpdateOne,
  9303. UpdateOneAsync,
  9304. UpdateMany,
  9305. UpdateManyAsync,
  9306. FindOneAndUpdate,
  9307. FindOneAndUpdateAsync,
  9308. }
  9309. class OperationLogDTO {
  9310. int id;
  9311. String? collectionName;
  9312. MongoDBActionTypeEnum actionType;
  9313. String? bsonContent;
  9314. String? filterContent;
  9315. DateTime? createTime;
  9316. String? code;
  9317. String? sourceUrl;
  9318. bool isSimple;
  9319. OperationLogDTO({
  9320. this.id = 0,
  9321. this.collectionName,
  9322. this.actionType = MongoDBActionTypeEnum.InsertOne,
  9323. this.bsonContent,
  9324. this.filterContent,
  9325. this.createTime,
  9326. this.code,
  9327. this.sourceUrl,
  9328. this.isSimple = false,
  9329. });
  9330. factory OperationLogDTO.fromJson(Map<String, dynamic> map) {
  9331. return OperationLogDTO(
  9332. id: map['Id'],
  9333. collectionName: map['CollectionName'],
  9334. actionType: MongoDBActionTypeEnum.values.firstWhere((e) => e.index == map['ActionType']),
  9335. bsonContent: map['BsonContent'],
  9336. filterContent: map['FilterContent'],
  9337. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9338. code: map['Code'],
  9339. sourceUrl: map['SourceUrl'],
  9340. isSimple: map['IsSimple'],
  9341. );
  9342. }
  9343. Map<String, dynamic> toJson() {
  9344. final map = Map<String, dynamic>();
  9345. map['Id'] = id;
  9346. if(collectionName != null) {
  9347. map['CollectionName'] = collectionName;
  9348. }
  9349. map['ActionType'] = actionType.index;
  9350. if(bsonContent != null) {
  9351. map['BsonContent'] = bsonContent;
  9352. }
  9353. if(filterContent != null) {
  9354. map['FilterContent'] = filterContent;
  9355. }
  9356. if(createTime != null) {
  9357. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  9358. }
  9359. if(code != null) {
  9360. map['Code'] = code;
  9361. }
  9362. if(sourceUrl != null) {
  9363. map['SourceUrl'] = sourceUrl;
  9364. }
  9365. map['IsSimple'] = isSimple;
  9366. return map;
  9367. }
  9368. }
  9369. class SyncDataCheckResult {
  9370. Map<String,String>? serverUrlMap;
  9371. int workerCount;
  9372. bool executingStatus;
  9373. bool isClosed;
  9374. SyncDataCheckResult({
  9375. this.serverUrlMap,
  9376. this.workerCount = 0,
  9377. this.executingStatus = false,
  9378. this.isClosed = false,
  9379. });
  9380. factory SyncDataCheckResult.fromJson(Map<String, dynamic> map) {
  9381. return SyncDataCheckResult(
  9382. serverUrlMap: map['ServerUrlMap']?.cast<String,String>(),
  9383. workerCount: map['WorkerCount'],
  9384. executingStatus: map['ExecutingStatus'],
  9385. isClosed: map['IsClosed'],
  9386. );
  9387. }
  9388. Map<String, dynamic> toJson() {
  9389. final map = Map<String, dynamic>();
  9390. if(serverUrlMap != null) {
  9391. map['ServerUrlMap'] = serverUrlMap;
  9392. }
  9393. map['WorkerCount'] = workerCount;
  9394. map['ExecutingStatus'] = executingStatus;
  9395. map['IsClosed'] = isClosed;
  9396. return map;
  9397. }
  9398. }
  9399. class SyncCompleteOpLogsRequest {
  9400. List<OperationLogDTO>? oplogs;
  9401. SyncCompleteOpLogsRequest({
  9402. this.oplogs,
  9403. });
  9404. factory SyncCompleteOpLogsRequest.fromJson(Map<String, dynamic> map) {
  9405. return SyncCompleteOpLogsRequest(
  9406. oplogs: map['Oplogs'] != null ? (map['Oplogs'] as List).map((e)=>OperationLogDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9407. );
  9408. }
  9409. Map<String, dynamic> toJson() {
  9410. final map = Map<String, dynamic>();
  9411. if(oplogs != null) {
  9412. map['Oplogs'] = oplogs;
  9413. }
  9414. return map;
  9415. }
  9416. }
  9417. class SyncOpLogToMasterRequest {
  9418. String? collectionName;
  9419. MongoDBActionTypeEnum actionType;
  9420. String? bsonContent;
  9421. String? filterContent;
  9422. DateTime? createTime;
  9423. String? sourceUrl;
  9424. String? code;
  9425. String? serverID;
  9426. bool isSimple;
  9427. SyncOpLogToMasterRequest({
  9428. this.collectionName,
  9429. this.actionType = MongoDBActionTypeEnum.InsertOne,
  9430. this.bsonContent,
  9431. this.filterContent,
  9432. this.createTime,
  9433. this.sourceUrl,
  9434. this.code,
  9435. this.serverID,
  9436. this.isSimple = false,
  9437. });
  9438. factory SyncOpLogToMasterRequest.fromJson(Map<String, dynamic> map) {
  9439. return SyncOpLogToMasterRequest(
  9440. collectionName: map['CollectionName'],
  9441. actionType: MongoDBActionTypeEnum.values.firstWhere((e) => e.index == map['ActionType']),
  9442. bsonContent: map['BsonContent'],
  9443. filterContent: map['FilterContent'],
  9444. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9445. sourceUrl: map['SourceUrl'],
  9446. code: map['Code'],
  9447. serverID: map['ServerID'],
  9448. isSimple: map['IsSimple'],
  9449. );
  9450. }
  9451. Map<String, dynamic> toJson() {
  9452. final map = Map<String, dynamic>();
  9453. if(collectionName != null) {
  9454. map['CollectionName'] = collectionName;
  9455. }
  9456. map['ActionType'] = actionType.index;
  9457. if(bsonContent != null) {
  9458. map['BsonContent'] = bsonContent;
  9459. }
  9460. if(filterContent != null) {
  9461. map['FilterContent'] = filterContent;
  9462. }
  9463. if(createTime != null) {
  9464. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  9465. }
  9466. if(sourceUrl != null) {
  9467. map['SourceUrl'] = sourceUrl;
  9468. }
  9469. if(code != null) {
  9470. map['Code'] = code;
  9471. }
  9472. if(serverID != null) {
  9473. map['ServerID'] = serverID;
  9474. }
  9475. map['IsSimple'] = isSimple;
  9476. return map;
  9477. }
  9478. }
  9479. class NotificationClientInfo {
  9480. String? clientId;
  9481. String? loginServerUrl;
  9482. List<TokenDTO>? tokens;
  9483. NotificationClientInfo({
  9484. this.clientId,
  9485. this.loginServerUrl,
  9486. this.tokens,
  9487. });
  9488. factory NotificationClientInfo.fromJson(Map<String, dynamic> map) {
  9489. return NotificationClientInfo(
  9490. clientId: map['ClientId'],
  9491. loginServerUrl: map['LoginServerUrl'],
  9492. tokens: map['Tokens'] != null ? (map['Tokens'] as List).map((e)=>TokenDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9493. );
  9494. }
  9495. Map<String, dynamic> toJson() {
  9496. final map = Map<String, dynamic>();
  9497. if(clientId != null) {
  9498. map['ClientId'] = clientId;
  9499. }
  9500. if(loginServerUrl != null) {
  9501. map['LoginServerUrl'] = loginServerUrl;
  9502. }
  9503. if(tokens != null) {
  9504. map['Tokens'] = tokens;
  9505. }
  9506. return map;
  9507. }
  9508. }
  9509. class ChangeConsultationControllingStateRequest extends TokenRequest{
  9510. String? deviceCode;
  9511. String? userCode;
  9512. bool isControllingParameter;
  9513. ChangeConsultationControllingStateRequest({
  9514. this.deviceCode,
  9515. this.userCode,
  9516. this.isControllingParameter = false,
  9517. String? token,
  9518. }) : super(
  9519. token: token,
  9520. );
  9521. factory ChangeConsultationControllingStateRequest.fromJson(Map<String, dynamic> map) {
  9522. return ChangeConsultationControllingStateRequest(
  9523. deviceCode: map['DeviceCode'],
  9524. userCode: map['UserCode'],
  9525. isControllingParameter: map['IsControllingParameter'],
  9526. token: map['Token'],
  9527. );
  9528. }
  9529. Map<String, dynamic> toJson() {
  9530. final map = super.toJson();
  9531. if(deviceCode != null)
  9532. map['DeviceCode'] = deviceCode;
  9533. if(userCode != null)
  9534. map['UserCode'] = userCode;
  9535. map['IsControllingParameter'] = isControllingParameter;
  9536. return map;
  9537. }
  9538. }
  9539. enum ConsultationMemeberAcceptStatus {
  9540. Default,
  9541. Accepted,
  9542. Rejected,
  9543. }
  9544. enum LiveConsultationRoleEnum {
  9545. Expert,
  9546. General,
  9547. OtherParticipant,
  9548. AssistantDoctor,
  9549. Assistant,
  9550. }
  9551. enum LiveConsultationRoomStatus {
  9552. Default,
  9553. Initiating,
  9554. Cancelled,
  9555. ConnectionTimeout,
  9556. Connected,
  9557. Closed,
  9558. }
  9559. enum VideoProtocol {
  9560. Rtmp,
  9561. Rtc,
  9562. }
  9563. class DeviceJoinLiveConsultationResult {
  9564. String? consultationCode;
  9565. String? deviceCode;
  9566. int roomNo;
  9567. int appId;
  9568. String? deviceSign;
  9569. List<LiveConsultationMember>? memberLiveDatas;
  9570. List<InteractiveBoardDataDTO>? interactiveBoardDatas;
  9571. DeviceJoinLiveConsultationResult({
  9572. this.consultationCode,
  9573. this.deviceCode,
  9574. this.roomNo = 0,
  9575. this.appId = 0,
  9576. this.deviceSign,
  9577. this.memberLiveDatas,
  9578. this.interactiveBoardDatas,
  9579. });
  9580. factory DeviceJoinLiveConsultationResult.fromJson(Map<String, dynamic> map) {
  9581. return DeviceJoinLiveConsultationResult(
  9582. consultationCode: map['ConsultationCode'],
  9583. deviceCode: map['DeviceCode'],
  9584. roomNo: map['RoomNo'],
  9585. appId: map['AppId'],
  9586. deviceSign: map['DeviceSign'],
  9587. memberLiveDatas: map['MemberLiveDatas'] != null ? (map['MemberLiveDatas'] as List).map((e)=>LiveConsultationMember.fromJson(e as Map<String,dynamic>)).toList() : null,
  9588. interactiveBoardDatas: map['InteractiveBoardDatas'] != null ? (map['InteractiveBoardDatas'] as List).map((e)=>InteractiveBoardDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9589. );
  9590. }
  9591. Map<String, dynamic> toJson() {
  9592. final map = Map<String, dynamic>();
  9593. if(consultationCode != null) {
  9594. map['ConsultationCode'] = consultationCode;
  9595. }
  9596. if(deviceCode != null) {
  9597. map['DeviceCode'] = deviceCode;
  9598. }
  9599. map['RoomNo'] = roomNo;
  9600. map['AppId'] = appId;
  9601. if(deviceSign != null) {
  9602. map['DeviceSign'] = deviceSign;
  9603. }
  9604. if(memberLiveDatas != null) {
  9605. map['MemberLiveDatas'] = memberLiveDatas;
  9606. }
  9607. if(interactiveBoardDatas != null) {
  9608. map['InteractiveBoardDatas'] = interactiveBoardDatas;
  9609. }
  9610. return map;
  9611. }
  9612. }
  9613. class LiveConsultationRoomDTO {
  9614. String? consultationCode;
  9615. LiveConsultationMember? initiator;
  9616. List<LiveConsultationMember>? members;
  9617. List<LiveConsultationMember>? devices;
  9618. LiveConsultationRoomStatus status;
  9619. int roomNo;
  9620. LiveConsultationRoomDTO({
  9621. this.consultationCode,
  9622. this.initiator,
  9623. this.members,
  9624. this.devices,
  9625. this.status = LiveConsultationRoomStatus.Default,
  9626. this.roomNo = 0,
  9627. });
  9628. factory LiveConsultationRoomDTO.fromJson(Map<String, dynamic> map) {
  9629. return LiveConsultationRoomDTO(
  9630. consultationCode: map['ConsultationCode'],
  9631. initiator: map['Initiator'] != null ? LiveConsultationMember.fromJson(map['Initiator']) : null,
  9632. members: map['Members'] != null ? (map['Members'] as List).map((e)=>LiveConsultationMember.fromJson(e as Map<String,dynamic>)).toList() : null,
  9633. devices: map['Devices'] != null ? (map['Devices'] as List).map((e)=>LiveConsultationMember.fromJson(e as Map<String,dynamic>)).toList() : null,
  9634. status: LiveConsultationRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  9635. roomNo: map['RoomNo'],
  9636. );
  9637. }
  9638. Map<String, dynamic> toJson() {
  9639. final map = Map<String, dynamic>();
  9640. if(consultationCode != null) {
  9641. map['ConsultationCode'] = consultationCode;
  9642. }
  9643. if(initiator != null) {
  9644. map['Initiator'] = initiator;
  9645. }
  9646. if(members != null) {
  9647. map['Members'] = members;
  9648. }
  9649. if(devices != null) {
  9650. map['Devices'] = devices;
  9651. }
  9652. map['Status'] = status.index;
  9653. map['RoomNo'] = roomNo;
  9654. return map;
  9655. }
  9656. }
  9657. enum BoardTypeEnum {
  9658. ReadOnly,
  9659. Ink,
  9660. Line,
  9661. Erase,
  9662. }
  9663. class FindConsultationSettingRequest extends TokenRequest{
  9664. String? version;
  9665. FindConsultationSettingRequest({
  9666. this.version,
  9667. String? token,
  9668. }) : super(
  9669. token: token,
  9670. );
  9671. factory FindConsultationSettingRequest.fromJson(Map<String, dynamic> map) {
  9672. return FindConsultationSettingRequest(
  9673. version: map['Version'],
  9674. token: map['Token'],
  9675. );
  9676. }
  9677. Map<String, dynamic> toJson() {
  9678. final map = super.toJson();
  9679. if(version != null)
  9680. map['Version'] = version;
  9681. return map;
  9682. }
  9683. }
  9684. class FindOrganizationBindExpertsRequest extends TokenRequest{
  9685. FindOrganizationBindExpertsRequest({
  9686. String? token,
  9687. }) : super(
  9688. token: token,
  9689. );
  9690. factory FindOrganizationBindExpertsRequest.fromJson(Map<String, dynamic> map) {
  9691. return FindOrganizationBindExpertsRequest(
  9692. token: map['Token'],
  9693. );
  9694. }
  9695. Map<String, dynamic> toJson() {
  9696. final map = super.toJson();
  9697. return map;
  9698. }
  9699. }
  9700. class GetEmergencyOrderRequest extends TokenRequest{
  9701. String? emergencySerialNumber;
  9702. GetEmergencyOrderRequest({
  9703. this.emergencySerialNumber,
  9704. String? token,
  9705. }) : super(
  9706. token: token,
  9707. );
  9708. factory GetEmergencyOrderRequest.fromJson(Map<String, dynamic> map) {
  9709. return GetEmergencyOrderRequest(
  9710. emergencySerialNumber: map['EmergencySerialNumber'],
  9711. token: map['Token'],
  9712. );
  9713. }
  9714. Map<String, dynamic> toJson() {
  9715. final map = super.toJson();
  9716. if(emergencySerialNumber != null)
  9717. map['EmergencySerialNumber'] = emergencySerialNumber;
  9718. return map;
  9719. }
  9720. }
  9721. enum AgeUnitsEnum {
  9722. Year,
  9723. YearAndMonth,
  9724. MonthAndWeek,
  9725. WeekAndDay,
  9726. }
  9727. enum AnnounceTypeEnum {
  9728. Broadcast,
  9729. Maintain,
  9730. }
  9731. enum MessageCategoryEnum {
  9732. Consultation,
  9733. Diagnosis,
  9734. Course,
  9735. }
  9736. enum UpgradeEnum {
  9737. Windows,
  9738. Android,
  9739. SonoPost,
  9740. Server,
  9741. FISSDK,
  9742. }
  9743. enum ChannelDescriptionEnum {
  9744. DeskChannel,
  9745. TerminalChannel,
  9746. CameraChannel,
  9747. TerminalTestChannel,
  9748. NoneChannel,
  9749. }
  9750. enum QueryCMSTemplateStatusTypeEnum {
  9751. UnPublished,
  9752. Published,
  9753. }
  9754. enum QueryCMSMessageStatusEnum {
  9755. UnRead,
  9756. Read,
  9757. }
  9758. enum CMSMessageStatusEnum {
  9759. UnRead,
  9760. Read,
  9761. }
  9762. enum StatisticsPlatformEnum {
  9763. Management,
  9764. CMS,
  9765. }
  9766. enum StatisticsBannerTypeEnum {
  9767. PlatActivity,
  9768. Devices,
  9769. Download,
  9770. }
  9771. enum QueryStatisticsBannerTypeEnum {
  9772. PlatActivity,
  9773. Devices,
  9774. Download,
  9775. }
  9776. enum CourseAvailabilityEnum {
  9777. Public,
  9778. Limited,
  9779. Fee,
  9780. Invitation,
  9781. Meeting,
  9782. }
  9783. enum CustomLabelTypeEnum {
  9784. Group,
  9785. Label,
  9786. }
  9787. enum LogEventLevel {
  9788. Verbose,
  9789. Debug,
  9790. Information,
  9791. Warning,
  9792. Error,
  9793. Fatal,
  9794. }
  9795. enum DevicePatchTypeEnum {
  9796. US,
  9797. sonopost,
  9798. FISSDK,
  9799. }
  9800. enum DiagnosisLabelEnum {
  9801. BIRads1,
  9802. Lipomyoma,
  9803. BIRads2,
  9804. BIRads3,
  9805. BIRads4A,
  9806. BIRads4B,
  9807. BIRads4C,
  9808. BIRads5,
  9809. IntrahepaticHyperechoic,
  9810. HHE,
  9811. CYST,
  9812. PossibleCancer,
  9813. FattyLiver,
  9814. DiffuseLesions,
  9815. Cirrhosis,
  9816. PCLD,
  9817. }
  9818. enum DiagnosisBreastLabelEnum {
  9819. BIRads1,
  9820. Lipomyoma,
  9821. BIRads2,
  9822. BIRads3,
  9823. BIRads4A,
  9824. BIRads4B,
  9825. BIRads4C,
  9826. BIRads5,
  9827. }
  9828. enum DiagnosisLiverLabelEnum {
  9829. BIRads1,
  9830. Hyperechoic,
  9831. HHE,
  9832. CYST,
  9833. PossibleCancer,
  9834. FattyLiver,
  9835. DiffuseLesions,
  9836. Cirrhosis,
  9837. PCLD,
  9838. }
  9839. enum AIThyroidLabelEnum {
  9840. TIRADS0,
  9841. TIRADS2,
  9842. TIRADS3,
  9843. TIRADS4a,
  9844. TIRADS4b,
  9845. TIRADS4c,
  9846. TIRADS5,
  9847. DiffuseDisease,
  9848. }
  9849. enum DiseaseConclusion {
  9850. NoConclusion,
  9851. Positive,
  9852. Negative,
  9853. }
  9854. enum ExaminationAvailabilityEnum {
  9855. Public,
  9856. Limited,
  9857. }
  9858. enum ExamTypeEnum {
  9859. GeneralExam,
  9860. AgentExam,
  9861. Standardized,
  9862. }
  9863. enum FunctionalityStatusEnum {
  9864. DemoMode,
  9865. Activity,
  9866. }
  9867. enum GestationalAgeOriginEnum {
  9868. GestationalAge,
  9869. IVF,
  9870. OospermForm,
  9871. BBT,
  9872. LMP,
  9873. }
  9874. enum GetUserListTypeEnum {
  9875. FullName,
  9876. Phone,
  9877. }
  9878. enum HeartbeatTypeEnum {
  9879. ClientToken,
  9880. TerminalToken,
  9881. ThirdpartyToken,
  9882. LiveState,
  9883. RTCState,
  9884. }
  9885. enum ImageTypeEnum {
  9886. placeHolder_0,
  9887. Local,
  9888. Ob,
  9889. WorkSheet,
  9890. Remote,
  9891. DigitalSignature,
  9892. AIDiagnosis,
  9893. }
  9894. enum LabConvertStateEnum {
  9895. NotStarted,
  9896. Running,
  9897. Finish,
  9898. }
  9899. enum LabFileTypeEnum {
  9900. Media,
  9901. ZipFile,
  9902. }
  9903. enum LiveMemberStatusEnum {
  9904. Default,
  9905. Accepted,
  9906. Rejected,
  9907. Joined,
  9908. Left,
  9909. }
  9910. enum LiveProtocolEnum {
  9911. placeHolder_0,
  9912. RTMP,
  9913. RTC,
  9914. }
  9915. enum LiveRoomStatus {
  9916. Default,
  9917. Initiating,
  9918. Cancelled,
  9919. ConnectionTimeout,
  9920. Connected,
  9921. Closed,
  9922. }
  9923. enum LoginProcessorTypeEnum {
  9924. Official,
  9925. Wechat,
  9926. Phone,
  9927. Email,
  9928. placeHolder_4,
  9929. placeHolder_5,
  9930. placeHolder_6,
  9931. placeHolder_7,
  9932. placeHolder_8,
  9933. placeHolder_9,
  9934. placeHolder_10,
  9935. placeHolder_11,
  9936. placeHolder_12,
  9937. placeHolder_13,
  9938. placeHolder_14,
  9939. placeHolder_15,
  9940. placeHolder_16,
  9941. placeHolder_17,
  9942. placeHolder_18,
  9943. placeHolder_19,
  9944. placeHolder_20,
  9945. placeHolder_21,
  9946. placeHolder_22,
  9947. placeHolder_23,
  9948. placeHolder_24,
  9949. placeHolder_25,
  9950. placeHolder_26,
  9951. placeHolder_27,
  9952. placeHolder_28,
  9953. placeHolder_29,
  9954. placeHolder_30,
  9955. placeHolder_31,
  9956. placeHolder_32,
  9957. placeHolder_33,
  9958. placeHolder_34,
  9959. placeHolder_35,
  9960. placeHolder_36,
  9961. placeHolder_37,
  9962. placeHolder_38,
  9963. placeHolder_39,
  9964. placeHolder_40,
  9965. placeHolder_41,
  9966. placeHolder_42,
  9967. placeHolder_43,
  9968. placeHolder_44,
  9969. placeHolder_45,
  9970. placeHolder_46,
  9971. placeHolder_47,
  9972. placeHolder_48,
  9973. placeHolder_49,
  9974. placeHolder_50,
  9975. placeHolder_51,
  9976. placeHolder_52,
  9977. placeHolder_53,
  9978. placeHolder_54,
  9979. placeHolder_55,
  9980. placeHolder_56,
  9981. placeHolder_57,
  9982. placeHolder_58,
  9983. placeHolder_59,
  9984. placeHolder_60,
  9985. placeHolder_61,
  9986. placeHolder_62,
  9987. placeHolder_63,
  9988. placeHolder_64,
  9989. placeHolder_65,
  9990. placeHolder_66,
  9991. placeHolder_67,
  9992. placeHolder_68,
  9993. placeHolder_69,
  9994. placeHolder_70,
  9995. placeHolder_71,
  9996. placeHolder_72,
  9997. placeHolder_73,
  9998. placeHolder_74,
  9999. placeHolder_75,
  10000. placeHolder_76,
  10001. placeHolder_77,
  10002. placeHolder_78,
  10003. placeHolder_79,
  10004. placeHolder_80,
  10005. placeHolder_81,
  10006. placeHolder_82,
  10007. placeHolder_83,
  10008. placeHolder_84,
  10009. placeHolder_85,
  10010. placeHolder_86,
  10011. placeHolder_87,
  10012. placeHolder_88,
  10013. placeHolder_89,
  10014. placeHolder_90,
  10015. placeHolder_91,
  10016. placeHolder_92,
  10017. placeHolder_93,
  10018. placeHolder_94,
  10019. placeHolder_95,
  10020. placeHolder_96,
  10021. placeHolder_97,
  10022. placeHolder_98,
  10023. placeHolder_99,
  10024. placeHolder_100,
  10025. placeHolder_101,
  10026. placeHolder_102,
  10027. placeHolder_103,
  10028. placeHolder_104,
  10029. placeHolder_105,
  10030. placeHolder_106,
  10031. placeHolder_107,
  10032. placeHolder_108,
  10033. placeHolder_109,
  10034. placeHolder_110,
  10035. placeHolder_111,
  10036. placeHolder_112,
  10037. placeHolder_113,
  10038. placeHolder_114,
  10039. placeHolder_115,
  10040. placeHolder_116,
  10041. placeHolder_117,
  10042. placeHolder_118,
  10043. placeHolder_119,
  10044. placeHolder_120,
  10045. placeHolder_121,
  10046. placeHolder_122,
  10047. placeHolder_123,
  10048. placeHolder_124,
  10049. placeHolder_125,
  10050. placeHolder_126,
  10051. placeHolder_127,
  10052. placeHolder_128,
  10053. placeHolder_129,
  10054. placeHolder_130,
  10055. placeHolder_131,
  10056. placeHolder_132,
  10057. placeHolder_133,
  10058. placeHolder_134,
  10059. placeHolder_135,
  10060. placeHolder_136,
  10061. placeHolder_137,
  10062. placeHolder_138,
  10063. placeHolder_139,
  10064. placeHolder_140,
  10065. placeHolder_141,
  10066. placeHolder_142,
  10067. placeHolder_143,
  10068. placeHolder_144,
  10069. placeHolder_145,
  10070. placeHolder_146,
  10071. placeHolder_147,
  10072. placeHolder_148,
  10073. placeHolder_149,
  10074. placeHolder_150,
  10075. placeHolder_151,
  10076. placeHolder_152,
  10077. placeHolder_153,
  10078. placeHolder_154,
  10079. placeHolder_155,
  10080. placeHolder_156,
  10081. placeHolder_157,
  10082. placeHolder_158,
  10083. placeHolder_159,
  10084. placeHolder_160,
  10085. placeHolder_161,
  10086. placeHolder_162,
  10087. placeHolder_163,
  10088. placeHolder_164,
  10089. placeHolder_165,
  10090. placeHolder_166,
  10091. placeHolder_167,
  10092. placeHolder_168,
  10093. placeHolder_169,
  10094. placeHolder_170,
  10095. placeHolder_171,
  10096. placeHolder_172,
  10097. placeHolder_173,
  10098. placeHolder_174,
  10099. placeHolder_175,
  10100. placeHolder_176,
  10101. placeHolder_177,
  10102. placeHolder_178,
  10103. placeHolder_179,
  10104. placeHolder_180,
  10105. placeHolder_181,
  10106. placeHolder_182,
  10107. placeHolder_183,
  10108. placeHolder_184,
  10109. placeHolder_185,
  10110. placeHolder_186,
  10111. placeHolder_187,
  10112. placeHolder_188,
  10113. placeHolder_189,
  10114. placeHolder_190,
  10115. placeHolder_191,
  10116. placeHolder_192,
  10117. placeHolder_193,
  10118. placeHolder_194,
  10119. placeHolder_195,
  10120. placeHolder_196,
  10121. placeHolder_197,
  10122. placeHolder_198,
  10123. placeHolder_199,
  10124. placeHolder_200,
  10125. placeHolder_201,
  10126. placeHolder_202,
  10127. placeHolder_203,
  10128. placeHolder_204,
  10129. placeHolder_205,
  10130. placeHolder_206,
  10131. placeHolder_207,
  10132. placeHolder_208,
  10133. placeHolder_209,
  10134. placeHolder_210,
  10135. placeHolder_211,
  10136. placeHolder_212,
  10137. placeHolder_213,
  10138. placeHolder_214,
  10139. placeHolder_215,
  10140. placeHolder_216,
  10141. placeHolder_217,
  10142. placeHolder_218,
  10143. placeHolder_219,
  10144. placeHolder_220,
  10145. placeHolder_221,
  10146. placeHolder_222,
  10147. placeHolder_223,
  10148. placeHolder_224,
  10149. placeHolder_225,
  10150. placeHolder_226,
  10151. placeHolder_227,
  10152. placeHolder_228,
  10153. placeHolder_229,
  10154. placeHolder_230,
  10155. placeHolder_231,
  10156. placeHolder_232,
  10157. placeHolder_233,
  10158. placeHolder_234,
  10159. placeHolder_235,
  10160. placeHolder_236,
  10161. placeHolder_237,
  10162. placeHolder_238,
  10163. placeHolder_239,
  10164. placeHolder_240,
  10165. placeHolder_241,
  10166. placeHolder_242,
  10167. placeHolder_243,
  10168. placeHolder_244,
  10169. placeHolder_245,
  10170. placeHolder_246,
  10171. placeHolder_247,
  10172. placeHolder_248,
  10173. placeHolder_249,
  10174. placeHolder_250,
  10175. placeHolder_251,
  10176. placeHolder_252,
  10177. placeHolder_253,
  10178. placeHolder_254,
  10179. placeHolder_255,
  10180. placeHolder_256,
  10181. placeHolder_257,
  10182. placeHolder_258,
  10183. placeHolder_259,
  10184. placeHolder_260,
  10185. placeHolder_261,
  10186. placeHolder_262,
  10187. placeHolder_263,
  10188. placeHolder_264,
  10189. placeHolder_265,
  10190. placeHolder_266,
  10191. placeHolder_267,
  10192. placeHolder_268,
  10193. placeHolder_269,
  10194. placeHolder_270,
  10195. placeHolder_271,
  10196. placeHolder_272,
  10197. placeHolder_273,
  10198. placeHolder_274,
  10199. placeHolder_275,
  10200. placeHolder_276,
  10201. placeHolder_277,
  10202. placeHolder_278,
  10203. placeHolder_279,
  10204. placeHolder_280,
  10205. placeHolder_281,
  10206. placeHolder_282,
  10207. placeHolder_283,
  10208. placeHolder_284,
  10209. placeHolder_285,
  10210. placeHolder_286,
  10211. placeHolder_287,
  10212. placeHolder_288,
  10213. placeHolder_289,
  10214. placeHolder_290,
  10215. placeHolder_291,
  10216. placeHolder_292,
  10217. placeHolder_293,
  10218. placeHolder_294,
  10219. placeHolder_295,
  10220. placeHolder_296,
  10221. placeHolder_297,
  10222. placeHolder_298,
  10223. placeHolder_299,
  10224. placeHolder_300,
  10225. placeHolder_301,
  10226. placeHolder_302,
  10227. placeHolder_303,
  10228. placeHolder_304,
  10229. placeHolder_305,
  10230. placeHolder_306,
  10231. placeHolder_307,
  10232. placeHolder_308,
  10233. placeHolder_309,
  10234. placeHolder_310,
  10235. placeHolder_311,
  10236. placeHolder_312,
  10237. placeHolder_313,
  10238. placeHolder_314,
  10239. placeHolder_315,
  10240. placeHolder_316,
  10241. placeHolder_317,
  10242. placeHolder_318,
  10243. placeHolder_319,
  10244. placeHolder_320,
  10245. placeHolder_321,
  10246. placeHolder_322,
  10247. placeHolder_323,
  10248. placeHolder_324,
  10249. placeHolder_325,
  10250. placeHolder_326,
  10251. placeHolder_327,
  10252. placeHolder_328,
  10253. placeHolder_329,
  10254. placeHolder_330,
  10255. placeHolder_331,
  10256. placeHolder_332,
  10257. placeHolder_333,
  10258. placeHolder_334,
  10259. placeHolder_335,
  10260. placeHolder_336,
  10261. placeHolder_337,
  10262. placeHolder_338,
  10263. placeHolder_339,
  10264. placeHolder_340,
  10265. placeHolder_341,
  10266. placeHolder_342,
  10267. placeHolder_343,
  10268. placeHolder_344,
  10269. placeHolder_345,
  10270. placeHolder_346,
  10271. placeHolder_347,
  10272. placeHolder_348,
  10273. placeHolder_349,
  10274. placeHolder_350,
  10275. placeHolder_351,
  10276. placeHolder_352,
  10277. placeHolder_353,
  10278. placeHolder_354,
  10279. placeHolder_355,
  10280. placeHolder_356,
  10281. placeHolder_357,
  10282. placeHolder_358,
  10283. placeHolder_359,
  10284. placeHolder_360,
  10285. placeHolder_361,
  10286. placeHolder_362,
  10287. placeHolder_363,
  10288. placeHolder_364,
  10289. placeHolder_365,
  10290. placeHolder_366,
  10291. placeHolder_367,
  10292. placeHolder_368,
  10293. placeHolder_369,
  10294. placeHolder_370,
  10295. placeHolder_371,
  10296. placeHolder_372,
  10297. placeHolder_373,
  10298. placeHolder_374,
  10299. placeHolder_375,
  10300. placeHolder_376,
  10301. placeHolder_377,
  10302. placeHolder_378,
  10303. placeHolder_379,
  10304. placeHolder_380,
  10305. placeHolder_381,
  10306. placeHolder_382,
  10307. placeHolder_383,
  10308. placeHolder_384,
  10309. placeHolder_385,
  10310. placeHolder_386,
  10311. placeHolder_387,
  10312. placeHolder_388,
  10313. placeHolder_389,
  10314. placeHolder_390,
  10315. placeHolder_391,
  10316. placeHolder_392,
  10317. placeHolder_393,
  10318. placeHolder_394,
  10319. placeHolder_395,
  10320. placeHolder_396,
  10321. placeHolder_397,
  10322. placeHolder_398,
  10323. placeHolder_399,
  10324. placeHolder_400,
  10325. placeHolder_401,
  10326. placeHolder_402,
  10327. placeHolder_403,
  10328. placeHolder_404,
  10329. placeHolder_405,
  10330. placeHolder_406,
  10331. placeHolder_407,
  10332. placeHolder_408,
  10333. placeHolder_409,
  10334. placeHolder_410,
  10335. placeHolder_411,
  10336. placeHolder_412,
  10337. placeHolder_413,
  10338. placeHolder_414,
  10339. placeHolder_415,
  10340. placeHolder_416,
  10341. placeHolder_417,
  10342. placeHolder_418,
  10343. placeHolder_419,
  10344. placeHolder_420,
  10345. placeHolder_421,
  10346. placeHolder_422,
  10347. placeHolder_423,
  10348. placeHolder_424,
  10349. placeHolder_425,
  10350. placeHolder_426,
  10351. placeHolder_427,
  10352. placeHolder_428,
  10353. placeHolder_429,
  10354. placeHolder_430,
  10355. placeHolder_431,
  10356. placeHolder_432,
  10357. placeHolder_433,
  10358. placeHolder_434,
  10359. placeHolder_435,
  10360. placeHolder_436,
  10361. placeHolder_437,
  10362. placeHolder_438,
  10363. placeHolder_439,
  10364. placeHolder_440,
  10365. placeHolder_441,
  10366. placeHolder_442,
  10367. placeHolder_443,
  10368. placeHolder_444,
  10369. placeHolder_445,
  10370. placeHolder_446,
  10371. placeHolder_447,
  10372. placeHolder_448,
  10373. placeHolder_449,
  10374. placeHolder_450,
  10375. placeHolder_451,
  10376. placeHolder_452,
  10377. placeHolder_453,
  10378. placeHolder_454,
  10379. placeHolder_455,
  10380. placeHolder_456,
  10381. placeHolder_457,
  10382. placeHolder_458,
  10383. placeHolder_459,
  10384. placeHolder_460,
  10385. placeHolder_461,
  10386. placeHolder_462,
  10387. placeHolder_463,
  10388. placeHolder_464,
  10389. placeHolder_465,
  10390. placeHolder_466,
  10391. placeHolder_467,
  10392. placeHolder_468,
  10393. placeHolder_469,
  10394. placeHolder_470,
  10395. placeHolder_471,
  10396. placeHolder_472,
  10397. placeHolder_473,
  10398. placeHolder_474,
  10399. placeHolder_475,
  10400. placeHolder_476,
  10401. placeHolder_477,
  10402. placeHolder_478,
  10403. placeHolder_479,
  10404. placeHolder_480,
  10405. placeHolder_481,
  10406. placeHolder_482,
  10407. placeHolder_483,
  10408. placeHolder_484,
  10409. placeHolder_485,
  10410. placeHolder_486,
  10411. placeHolder_487,
  10412. placeHolder_488,
  10413. placeHolder_489,
  10414. placeHolder_490,
  10415. placeHolder_491,
  10416. placeHolder_492,
  10417. placeHolder_493,
  10418. placeHolder_494,
  10419. placeHolder_495,
  10420. placeHolder_496,
  10421. placeHolder_497,
  10422. placeHolder_498,
  10423. placeHolder_499,
  10424. placeHolder_500,
  10425. placeHolder_501,
  10426. placeHolder_502,
  10427. placeHolder_503,
  10428. placeHolder_504,
  10429. placeHolder_505,
  10430. placeHolder_506,
  10431. placeHolder_507,
  10432. placeHolder_508,
  10433. placeHolder_509,
  10434. placeHolder_510,
  10435. placeHolder_511,
  10436. placeHolder_512,
  10437. placeHolder_513,
  10438. placeHolder_514,
  10439. placeHolder_515,
  10440. placeHolder_516,
  10441. placeHolder_517,
  10442. placeHolder_518,
  10443. placeHolder_519,
  10444. placeHolder_520,
  10445. placeHolder_521,
  10446. placeHolder_522,
  10447. placeHolder_523,
  10448. placeHolder_524,
  10449. placeHolder_525,
  10450. placeHolder_526,
  10451. placeHolder_527,
  10452. placeHolder_528,
  10453. placeHolder_529,
  10454. placeHolder_530,
  10455. placeHolder_531,
  10456. placeHolder_532,
  10457. placeHolder_533,
  10458. placeHolder_534,
  10459. placeHolder_535,
  10460. placeHolder_536,
  10461. placeHolder_537,
  10462. placeHolder_538,
  10463. placeHolder_539,
  10464. placeHolder_540,
  10465. placeHolder_541,
  10466. placeHolder_542,
  10467. placeHolder_543,
  10468. placeHolder_544,
  10469. placeHolder_545,
  10470. placeHolder_546,
  10471. placeHolder_547,
  10472. placeHolder_548,
  10473. placeHolder_549,
  10474. placeHolder_550,
  10475. placeHolder_551,
  10476. placeHolder_552,
  10477. placeHolder_553,
  10478. placeHolder_554,
  10479. placeHolder_555,
  10480. placeHolder_556,
  10481. placeHolder_557,
  10482. placeHolder_558,
  10483. placeHolder_559,
  10484. placeHolder_560,
  10485. placeHolder_561,
  10486. placeHolder_562,
  10487. placeHolder_563,
  10488. placeHolder_564,
  10489. placeHolder_565,
  10490. placeHolder_566,
  10491. placeHolder_567,
  10492. placeHolder_568,
  10493. placeHolder_569,
  10494. placeHolder_570,
  10495. placeHolder_571,
  10496. placeHolder_572,
  10497. placeHolder_573,
  10498. placeHolder_574,
  10499. placeHolder_575,
  10500. placeHolder_576,
  10501. placeHolder_577,
  10502. placeHolder_578,
  10503. placeHolder_579,
  10504. placeHolder_580,
  10505. placeHolder_581,
  10506. placeHolder_582,
  10507. placeHolder_583,
  10508. placeHolder_584,
  10509. placeHolder_585,
  10510. placeHolder_586,
  10511. placeHolder_587,
  10512. placeHolder_588,
  10513. placeHolder_589,
  10514. placeHolder_590,
  10515. placeHolder_591,
  10516. placeHolder_592,
  10517. placeHolder_593,
  10518. placeHolder_594,
  10519. placeHolder_595,
  10520. placeHolder_596,
  10521. placeHolder_597,
  10522. placeHolder_598,
  10523. placeHolder_599,
  10524. placeHolder_600,
  10525. placeHolder_601,
  10526. placeHolder_602,
  10527. placeHolder_603,
  10528. placeHolder_604,
  10529. placeHolder_605,
  10530. placeHolder_606,
  10531. placeHolder_607,
  10532. placeHolder_608,
  10533. placeHolder_609,
  10534. placeHolder_610,
  10535. placeHolder_611,
  10536. placeHolder_612,
  10537. placeHolder_613,
  10538. placeHolder_614,
  10539. placeHolder_615,
  10540. placeHolder_616,
  10541. placeHolder_617,
  10542. placeHolder_618,
  10543. placeHolder_619,
  10544. placeHolder_620,
  10545. placeHolder_621,
  10546. placeHolder_622,
  10547. placeHolder_623,
  10548. placeHolder_624,
  10549. placeHolder_625,
  10550. placeHolder_626,
  10551. placeHolder_627,
  10552. placeHolder_628,
  10553. placeHolder_629,
  10554. placeHolder_630,
  10555. placeHolder_631,
  10556. placeHolder_632,
  10557. placeHolder_633,
  10558. placeHolder_634,
  10559. placeHolder_635,
  10560. placeHolder_636,
  10561. placeHolder_637,
  10562. placeHolder_638,
  10563. placeHolder_639,
  10564. placeHolder_640,
  10565. placeHolder_641,
  10566. placeHolder_642,
  10567. placeHolder_643,
  10568. placeHolder_644,
  10569. placeHolder_645,
  10570. placeHolder_646,
  10571. placeHolder_647,
  10572. placeHolder_648,
  10573. placeHolder_649,
  10574. placeHolder_650,
  10575. placeHolder_651,
  10576. placeHolder_652,
  10577. placeHolder_653,
  10578. placeHolder_654,
  10579. placeHolder_655,
  10580. placeHolder_656,
  10581. placeHolder_657,
  10582. placeHolder_658,
  10583. placeHolder_659,
  10584. placeHolder_660,
  10585. placeHolder_661,
  10586. placeHolder_662,
  10587. placeHolder_663,
  10588. placeHolder_664,
  10589. placeHolder_665,
  10590. placeHolder_666,
  10591. placeHolder_667,
  10592. placeHolder_668,
  10593. placeHolder_669,
  10594. placeHolder_670,
  10595. placeHolder_671,
  10596. placeHolder_672,
  10597. placeHolder_673,
  10598. placeHolder_674,
  10599. placeHolder_675,
  10600. placeHolder_676,
  10601. placeHolder_677,
  10602. placeHolder_678,
  10603. placeHolder_679,
  10604. placeHolder_680,
  10605. placeHolder_681,
  10606. placeHolder_682,
  10607. placeHolder_683,
  10608. placeHolder_684,
  10609. placeHolder_685,
  10610. placeHolder_686,
  10611. placeHolder_687,
  10612. placeHolder_688,
  10613. placeHolder_689,
  10614. placeHolder_690,
  10615. placeHolder_691,
  10616. placeHolder_692,
  10617. placeHolder_693,
  10618. placeHolder_694,
  10619. placeHolder_695,
  10620. placeHolder_696,
  10621. placeHolder_697,
  10622. placeHolder_698,
  10623. placeHolder_699,
  10624. placeHolder_700,
  10625. placeHolder_701,
  10626. placeHolder_702,
  10627. placeHolder_703,
  10628. placeHolder_704,
  10629. placeHolder_705,
  10630. placeHolder_706,
  10631. placeHolder_707,
  10632. placeHolder_708,
  10633. placeHolder_709,
  10634. placeHolder_710,
  10635. placeHolder_711,
  10636. placeHolder_712,
  10637. placeHolder_713,
  10638. placeHolder_714,
  10639. placeHolder_715,
  10640. placeHolder_716,
  10641. placeHolder_717,
  10642. placeHolder_718,
  10643. placeHolder_719,
  10644. placeHolder_720,
  10645. placeHolder_721,
  10646. placeHolder_722,
  10647. placeHolder_723,
  10648. placeHolder_724,
  10649. placeHolder_725,
  10650. placeHolder_726,
  10651. placeHolder_727,
  10652. placeHolder_728,
  10653. placeHolder_729,
  10654. placeHolder_730,
  10655. placeHolder_731,
  10656. placeHolder_732,
  10657. placeHolder_733,
  10658. placeHolder_734,
  10659. placeHolder_735,
  10660. placeHolder_736,
  10661. placeHolder_737,
  10662. placeHolder_738,
  10663. placeHolder_739,
  10664. placeHolder_740,
  10665. placeHolder_741,
  10666. placeHolder_742,
  10667. placeHolder_743,
  10668. placeHolder_744,
  10669. placeHolder_745,
  10670. placeHolder_746,
  10671. placeHolder_747,
  10672. placeHolder_748,
  10673. placeHolder_749,
  10674. placeHolder_750,
  10675. placeHolder_751,
  10676. placeHolder_752,
  10677. placeHolder_753,
  10678. placeHolder_754,
  10679. placeHolder_755,
  10680. placeHolder_756,
  10681. placeHolder_757,
  10682. placeHolder_758,
  10683. placeHolder_759,
  10684. placeHolder_760,
  10685. placeHolder_761,
  10686. placeHolder_762,
  10687. placeHolder_763,
  10688. placeHolder_764,
  10689. placeHolder_765,
  10690. placeHolder_766,
  10691. placeHolder_767,
  10692. placeHolder_768,
  10693. placeHolder_769,
  10694. placeHolder_770,
  10695. placeHolder_771,
  10696. placeHolder_772,
  10697. placeHolder_773,
  10698. placeHolder_774,
  10699. placeHolder_775,
  10700. placeHolder_776,
  10701. placeHolder_777,
  10702. placeHolder_778,
  10703. placeHolder_779,
  10704. placeHolder_780,
  10705. placeHolder_781,
  10706. placeHolder_782,
  10707. placeHolder_783,
  10708. placeHolder_784,
  10709. placeHolder_785,
  10710. placeHolder_786,
  10711. placeHolder_787,
  10712. placeHolder_788,
  10713. placeHolder_789,
  10714. placeHolder_790,
  10715. placeHolder_791,
  10716. placeHolder_792,
  10717. placeHolder_793,
  10718. placeHolder_794,
  10719. placeHolder_795,
  10720. placeHolder_796,
  10721. placeHolder_797,
  10722. placeHolder_798,
  10723. placeHolder_799,
  10724. placeHolder_800,
  10725. placeHolder_801,
  10726. placeHolder_802,
  10727. placeHolder_803,
  10728. placeHolder_804,
  10729. placeHolder_805,
  10730. placeHolder_806,
  10731. placeHolder_807,
  10732. placeHolder_808,
  10733. placeHolder_809,
  10734. placeHolder_810,
  10735. placeHolder_811,
  10736. placeHolder_812,
  10737. placeHolder_813,
  10738. placeHolder_814,
  10739. placeHolder_815,
  10740. placeHolder_816,
  10741. placeHolder_817,
  10742. placeHolder_818,
  10743. placeHolder_819,
  10744. placeHolder_820,
  10745. placeHolder_821,
  10746. placeHolder_822,
  10747. placeHolder_823,
  10748. placeHolder_824,
  10749. placeHolder_825,
  10750. placeHolder_826,
  10751. placeHolder_827,
  10752. placeHolder_828,
  10753. placeHolder_829,
  10754. placeHolder_830,
  10755. placeHolder_831,
  10756. placeHolder_832,
  10757. placeHolder_833,
  10758. placeHolder_834,
  10759. placeHolder_835,
  10760. placeHolder_836,
  10761. placeHolder_837,
  10762. placeHolder_838,
  10763. placeHolder_839,
  10764. placeHolder_840,
  10765. placeHolder_841,
  10766. placeHolder_842,
  10767. placeHolder_843,
  10768. placeHolder_844,
  10769. placeHolder_845,
  10770. placeHolder_846,
  10771. placeHolder_847,
  10772. placeHolder_848,
  10773. placeHolder_849,
  10774. placeHolder_850,
  10775. placeHolder_851,
  10776. placeHolder_852,
  10777. placeHolder_853,
  10778. placeHolder_854,
  10779. placeHolder_855,
  10780. placeHolder_856,
  10781. placeHolder_857,
  10782. placeHolder_858,
  10783. placeHolder_859,
  10784. placeHolder_860,
  10785. placeHolder_861,
  10786. placeHolder_862,
  10787. placeHolder_863,
  10788. placeHolder_864,
  10789. placeHolder_865,
  10790. placeHolder_866,
  10791. placeHolder_867,
  10792. placeHolder_868,
  10793. placeHolder_869,
  10794. placeHolder_870,
  10795. placeHolder_871,
  10796. placeHolder_872,
  10797. placeHolder_873,
  10798. placeHolder_874,
  10799. placeHolder_875,
  10800. placeHolder_876,
  10801. placeHolder_877,
  10802. placeHolder_878,
  10803. placeHolder_879,
  10804. placeHolder_880,
  10805. placeHolder_881,
  10806. placeHolder_882,
  10807. placeHolder_883,
  10808. placeHolder_884,
  10809. placeHolder_885,
  10810. placeHolder_886,
  10811. placeHolder_887,
  10812. placeHolder_888,
  10813. placeHolder_889,
  10814. placeHolder_890,
  10815. placeHolder_891,
  10816. placeHolder_892,
  10817. placeHolder_893,
  10818. placeHolder_894,
  10819. placeHolder_895,
  10820. placeHolder_896,
  10821. placeHolder_897,
  10822. placeHolder_898,
  10823. placeHolder_899,
  10824. placeHolder_900,
  10825. placeHolder_901,
  10826. placeHolder_902,
  10827. placeHolder_903,
  10828. placeHolder_904,
  10829. placeHolder_905,
  10830. placeHolder_906,
  10831. placeHolder_907,
  10832. placeHolder_908,
  10833. placeHolder_909,
  10834. placeHolder_910,
  10835. placeHolder_911,
  10836. placeHolder_912,
  10837. placeHolder_913,
  10838. placeHolder_914,
  10839. placeHolder_915,
  10840. placeHolder_916,
  10841. placeHolder_917,
  10842. placeHolder_918,
  10843. placeHolder_919,
  10844. placeHolder_920,
  10845. placeHolder_921,
  10846. placeHolder_922,
  10847. placeHolder_923,
  10848. placeHolder_924,
  10849. placeHolder_925,
  10850. placeHolder_926,
  10851. placeHolder_927,
  10852. placeHolder_928,
  10853. placeHolder_929,
  10854. placeHolder_930,
  10855. placeHolder_931,
  10856. placeHolder_932,
  10857. placeHolder_933,
  10858. placeHolder_934,
  10859. placeHolder_935,
  10860. placeHolder_936,
  10861. placeHolder_937,
  10862. placeHolder_938,
  10863. placeHolder_939,
  10864. placeHolder_940,
  10865. placeHolder_941,
  10866. placeHolder_942,
  10867. placeHolder_943,
  10868. placeHolder_944,
  10869. placeHolder_945,
  10870. placeHolder_946,
  10871. placeHolder_947,
  10872. placeHolder_948,
  10873. placeHolder_949,
  10874. placeHolder_950,
  10875. placeHolder_951,
  10876. placeHolder_952,
  10877. placeHolder_953,
  10878. placeHolder_954,
  10879. placeHolder_955,
  10880. placeHolder_956,
  10881. placeHolder_957,
  10882. placeHolder_958,
  10883. placeHolder_959,
  10884. placeHolder_960,
  10885. placeHolder_961,
  10886. placeHolder_962,
  10887. placeHolder_963,
  10888. placeHolder_964,
  10889. placeHolder_965,
  10890. placeHolder_966,
  10891. placeHolder_967,
  10892. placeHolder_968,
  10893. placeHolder_969,
  10894. placeHolder_970,
  10895. placeHolder_971,
  10896. placeHolder_972,
  10897. placeHolder_973,
  10898. placeHolder_974,
  10899. placeHolder_975,
  10900. placeHolder_976,
  10901. placeHolder_977,
  10902. placeHolder_978,
  10903. placeHolder_979,
  10904. placeHolder_980,
  10905. placeHolder_981,
  10906. placeHolder_982,
  10907. placeHolder_983,
  10908. placeHolder_984,
  10909. placeHolder_985,
  10910. placeHolder_986,
  10911. placeHolder_987,
  10912. placeHolder_988,
  10913. placeHolder_989,
  10914. placeHolder_990,
  10915. placeHolder_991,
  10916. placeHolder_992,
  10917. placeHolder_993,
  10918. placeHolder_994,
  10919. placeHolder_995,
  10920. placeHolder_996,
  10921. placeHolder_997,
  10922. placeHolder_998,
  10923. Unregistered,
  10924. }
  10925. enum AnimalGenderEnum {
  10926. AnimalInfoNotFilled,
  10927. AnimalInfoMale,
  10928. AnimalInfoFemale,
  10929. }
  10930. enum RegionGradeEnum {
  10931. Country,
  10932. Province,
  10933. City,
  10934. Area,
  10935. }
  10936. enum RemedicalApparatusTypeEnum {
  10937. BreastOuterUpper,
  10938. BreastInnerUpper,
  10939. BreastOuterLower,
  10940. BreastInnerLower,
  10941. Lobe,
  10942. LobeOfUnder,
  10943. LobeOfInter,
  10944. Thyroid,
  10945. Abdomen,
  10946. }
  10947. enum RemedicalImageLocationTypeEnum {
  10948. BreastImageLocation,
  10949. LiverImageLocation,
  10950. ThyroidImageLocation,
  10951. PositionImageLocation,
  10952. }
  10953. enum RemedicalImagePositionTypeEnum {
  10954. None,
  10955. Left,
  10956. Right,
  10957. Middle,
  10958. }
  10959. enum ReportTemplateQueryTypeEnum {
  10960. All,
  10961. Personal,
  10962. Organization,
  10963. }
  10964. enum TemplateQueryTypeEnum {
  10965. ReportTemplate,
  10966. Thesaurus,
  10967. }
  10968. enum SyncTypeEnum {
  10969. Initiate,
  10970. Accept,
  10971. Reject,
  10972. CancelInitiate,
  10973. HeartRateJoin,
  10974. NetworkErr,
  10975. HeartRateLeave,
  10976. Leave,
  10977. Close,
  10978. ChangeMuteState,
  10979. ChangeVideoOpenState,
  10980. InviteIn,
  10981. CancelInviteIn,
  10982. AcceptIn,
  10983. RejectIn,
  10984. ChangeConsultationStatus,
  10985. Agree,
  10986. Notification,
  10987. EmergencyAccept,
  10988. ChangeControllingParameter,
  10989. SendInteractiveBoardData,
  10990. ChangeRoom,
  10991. SaveViewer,
  10992. DeleteViewer,
  10993. DeviceAcceptIn,
  10994. SyncControllingParameter,
  10995. ApplyRemoteConnect,
  10996. AcceptRemoteConnect,
  10997. RejectRemoteConnect,
  10998. ApplyDisConnect,
  10999. AcceptDisConnect,
  11000. DeviceDisconnect,
  11001. DeviceRemoteConnectHeartRate,
  11002. UserRemoteConnectHeartRate,
  11003. DeviceRemoteConnectOutline,
  11004. UserRemoteConnectOutline,
  11005. ConsultionRemoteConnect,
  11006. ConsultionDisConnect,
  11007. RestartDevice,
  11008. AcceptDevice,
  11009. SetShareInfo,
  11010. LeaveDevice,
  11011. RemoteMaintainData,
  11012. ProbeApplication,
  11013. DeviceReStartPusing,
  11014. CloseDeviceLive,
  11015. }
  11016. enum SyncServiceEnum {
  11017. Live,
  11018. LiveConsultation,
  11019. Notification,
  11020. ScanLogin,
  11021. Device,
  11022. RemoteConnect,
  11023. }
  11024. enum VideoPermissionsEnum {
  11025. Public,
  11026. Private,
  11027. LinkToCourse,
  11028. Fee,
  11029. AdminAvailable,
  11030. Standardized,
  11031. }
  11032. enum VideoImportanceEnum {
  11033. Normal,
  11034. Importance,
  11035. }
  11036. enum VideoLabelEnum {
  11037. NoRecording,
  11038. NoFastForward,
  11039. TeachingDocument,
  11040. }
  11041. enum WSConnectTypeEnum {
  11042. Default,
  11043. ConsultationSecondWindow,
  11044. EducationSecondWindow,
  11045. RemoteConnectSecondWindow,
  11046. AppletAPI,
  11047. }
  11048. enum ASETypeEnum {
  11049. Off,
  11050. Max,
  11051. Mean,
  11052. Both,
  11053. }
  11054. enum StraightLineShapeEnum {
  11055. StraightLine,
  11056. HalfCircle,
  11057. AutoPWVSlope,
  11058. }
  11059. enum DefinitionMeasureItemsEnum {
  11060. Default,
  11061. UserDefined,
  11062. }
  11063. enum DefinitionPriorityEnum {
  11064. Notset,
  11065. Root,
  11066. Global,
  11067. GlobalCategory,
  11068. GlobalApp,
  11069. FactoryDefault,
  11070. OemDefault,
  11071. UserDefined,
  11072. }
  11073. enum MeasureTypeUnitEnum {
  11074. None,
  11075. AreaUnit,
  11076. VelocityUnit,
  11077. TimeUnit,
  11078. }
  11079. enum UnExecuteAction {
  11080. None,
  11081. OneStep,
  11082. AllSteps,
  11083. GeometryOnly,
  11084. }
  11085. class PriorityPair {
  11086. DefinitionPriorityEnum target;
  11087. DefinitionPriorityEnum? base;
  11088. PriorityPair({
  11089. this.target = DefinitionPriorityEnum.Notset,
  11090. this.base,
  11091. });
  11092. factory PriorityPair.fromJson(Map<String, dynamic> map) {
  11093. return PriorityPair(
  11094. target: DefinitionPriorityEnum.values.firstWhere((e) => e.index == map['Target']),
  11095. base: map['Base'] != null ? DefinitionPriorityEnum.values.firstWhere((e) => e.index == map['Base']) : null,
  11096. );
  11097. }
  11098. Map<String, dynamic> toJson() {
  11099. final map = Map<String, dynamic>();
  11100. map['Target'] = target.index;
  11101. if(base != null) {
  11102. map['Base'] = base;
  11103. }
  11104. return map;
  11105. }
  11106. }
  11107. class DefinitionPriorityEnumExtension {
  11108. DefinitionPriorityEnumExtension();
  11109. factory DefinitionPriorityEnumExtension.fromJson(Map<String, dynamic> map) {
  11110. return DefinitionPriorityEnumExtension(
  11111. );
  11112. }
  11113. Map<String, dynamic> toJson() {
  11114. final map = Map<String, dynamic>();
  11115. return map;
  11116. }
  11117. }
  11118. enum TracePeakType {
  11119. Normal,
  11120. OnePeak,
  11121. TwoPeaks,
  11122. }
  11123. enum LineWeightType {
  11124. NormalWeight,
  11125. Thin,
  11126. }
  11127. enum IMTType {
  11128. placeHolder_0,
  11129. Post,
  11130. Ant,
  11131. Both,
  11132. }
  11133. enum MeasureSectionType {
  11134. None,
  11135. Root,
  11136. Application,
  11137. MeasureMode,
  11138. Group,
  11139. Folder,
  11140. Item,
  11141. Calculator,
  11142. OutPut,
  11143. Formular,
  11144. Processor,
  11145. TypeParams,
  11146. }
  11147. enum ModeTypeEnum {
  11148. Undefined,
  11149. Tissue,
  11150. Flow,
  11151. Doppler,
  11152. TissueTM,
  11153. }
  11154. enum ResourceDefPriorityEnum {
  11155. Root,
  11156. placeHolder_1,
  11157. placeHolder_2,
  11158. placeHolder_3,
  11159. placeHolder_4,
  11160. placeHolder_5,
  11161. placeHolder_6,
  11162. placeHolder_7,
  11163. placeHolder_8,
  11164. placeHolder_9,
  11165. placeHolder_10,
  11166. placeHolder_11,
  11167. placeHolder_12,
  11168. placeHolder_13,
  11169. placeHolder_14,
  11170. placeHolder_15,
  11171. placeHolder_16,
  11172. placeHolder_17,
  11173. placeHolder_18,
  11174. placeHolder_19,
  11175. placeHolder_20,
  11176. placeHolder_21,
  11177. placeHolder_22,
  11178. placeHolder_23,
  11179. placeHolder_24,
  11180. placeHolder_25,
  11181. placeHolder_26,
  11182. placeHolder_27,
  11183. placeHolder_28,
  11184. placeHolder_29,
  11185. placeHolder_30,
  11186. placeHolder_31,
  11187. placeHolder_32,
  11188. placeHolder_33,
  11189. placeHolder_34,
  11190. placeHolder_35,
  11191. placeHolder_36,
  11192. placeHolder_37,
  11193. placeHolder_38,
  11194. placeHolder_39,
  11195. FactoryDefault,
  11196. placeHolder_41,
  11197. placeHolder_42,
  11198. placeHolder_43,
  11199. placeHolder_44,
  11200. PackageDefault,
  11201. placeHolder_46,
  11202. placeHolder_47,
  11203. placeHolder_48,
  11204. placeHolder_49,
  11205. OemDefault,
  11206. placeHolder_51,
  11207. placeHolder_52,
  11208. placeHolder_53,
  11209. placeHolder_54,
  11210. placeHolder_55,
  11211. placeHolder_56,
  11212. placeHolder_57,
  11213. placeHolder_58,
  11214. placeHolder_59,
  11215. UserDefined,
  11216. }
  11217. enum Unit {
  11218. None,
  11219. percent,
  11220. fraction,
  11221. placeHolder_3,
  11222. placeHolder_4,
  11223. placeHolder_5,
  11224. placeHolder_6,
  11225. placeHolder_7,
  11226. placeHolder_8,
  11227. placeHolder_9,
  11228. cm,
  11229. mm,
  11230. inch,
  11231. ft,
  11232. placeHolder_14,
  11233. placeHolder_15,
  11234. placeHolder_16,
  11235. placeHolder_17,
  11236. placeHolder_18,
  11237. placeHolder_19,
  11238. s,
  11239. minute,
  11240. hour,
  11241. day,
  11242. week,
  11243. week_day,
  11244. Tick,
  11245. msec,
  11246. placeHolder_28,
  11247. placeHolder_29,
  11248. degree,
  11249. radian,
  11250. placeHolder_32,
  11251. placeHolder_33,
  11252. placeHolder_34,
  11253. placeHolder_35,
  11254. placeHolder_36,
  11255. placeHolder_37,
  11256. placeHolder_38,
  11257. placeHolder_39,
  11258. g,
  11259. mg,
  11260. ng,
  11261. kg,
  11262. oz,
  11263. lb,
  11264. lb_oz,
  11265. placeHolder_47,
  11266. placeHolder_48,
  11267. placeHolder_49,
  11268. cm2,
  11269. mm2,
  11270. m2,
  11271. placeHolder_53,
  11272. placeHolder_54,
  11273. placeHolder_55,
  11274. placeHolder_56,
  11275. placeHolder_57,
  11276. placeHolder_58,
  11277. placeHolder_59,
  11278. cm3,
  11279. mm3,
  11280. ml,
  11281. L,
  11282. placeHolder_64,
  11283. placeHolder_65,
  11284. placeHolder_66,
  11285. placeHolder_67,
  11286. placeHolder_68,
  11287. placeHolder_69,
  11288. cms,
  11289. mms,
  11290. ms,
  11291. placeHolder_73,
  11292. placeHolder_74,
  11293. placeHolder_75,
  11294. placeHolder_76,
  11295. placeHolder_77,
  11296. placeHolder_78,
  11297. placeHolder_79,
  11298. cms2,
  11299. mms2,
  11300. placeHolder_82,
  11301. placeHolder_83,
  11302. placeHolder_84,
  11303. placeHolder_85,
  11304. placeHolder_86,
  11305. placeHolder_87,
  11306. placeHolder_88,
  11307. placeHolder_89,
  11308. cm3s,
  11309. mls,
  11310. mlmin,
  11311. Lmin,
  11312. placeHolder_94,
  11313. placeHolder_95,
  11314. placeHolder_96,
  11315. placeHolder_97,
  11316. placeHolder_98,
  11317. placeHolder_99,
  11318. gcm3,
  11319. gml,
  11320. ngml,
  11321. placeHolder_103,
  11322. placeHolder_104,
  11323. placeHolder_105,
  11324. placeHolder_106,
  11325. placeHolder_107,
  11326. placeHolder_108,
  11327. placeHolder_109,
  11328. mmHg,
  11329. placeHolder_111,
  11330. placeHolder_112,
  11331. placeHolder_113,
  11332. placeHolder_114,
  11333. placeHolder_115,
  11334. placeHolder_116,
  11335. placeHolder_117,
  11336. placeHolder_118,
  11337. placeHolder_119,
  11338. mV,
  11339. placeHolder_121,
  11340. placeHolder_122,
  11341. placeHolder_123,
  11342. placeHolder_124,
  11343. placeHolder_125,
  11344. placeHolder_126,
  11345. placeHolder_127,
  11346. placeHolder_128,
  11347. placeHolder_129,
  11348. Hz,
  11349. KHz,
  11350. HR,
  11351. placeHolder_133,
  11352. placeHolder_134,
  11353. placeHolder_135,
  11354. placeHolder_136,
  11355. placeHolder_137,
  11356. placeHolder_138,
  11357. placeHolder_139,
  11358. cm3m2,
  11359. mlm2,
  11360. placeHolder_142,
  11361. placeHolder_143,
  11362. placeHolder_144,
  11363. placeHolder_145,
  11364. placeHolder_146,
  11365. placeHolder_147,
  11366. placeHolder_148,
  11367. placeHolder_149,
  11368. cm3sm2,
  11369. mlsm2,
  11370. placeHolder_152,
  11371. cm3minm2,
  11372. mlminm2,
  11373. Lminm2,
  11374. placeHolder_156,
  11375. placeHolder_157,
  11376. placeHolder_158,
  11377. placeHolder_159,
  11378. circs,
  11379. placeHolder_161,
  11380. placeHolder_162,
  11381. placeHolder_163,
  11382. placeHolder_164,
  11383. placeHolder_165,
  11384. placeHolder_166,
  11385. placeHolder_167,
  11386. placeHolder_168,
  11387. placeHolder_169,
  11388. mlbeat,
  11389. placeHolder_171,
  11390. placeHolder_172,
  11391. placeHolder_173,
  11392. placeHolder_174,
  11393. placeHolder_175,
  11394. placeHolder_176,
  11395. placeHolder_177,
  11396. placeHolder_178,
  11397. placeHolder_179,
  11398. mm2pa,
  11399. d1mpa,
  11400. kpa,
  11401. placeHolder_183,
  11402. placeHolder_184,
  11403. placeHolder_185,
  11404. placeHolder_186,
  11405. placeHolder_187,
  11406. placeHolder_188,
  11407. placeHolder_189,
  11408. mmHgs,
  11409. placeHolder_191,
  11410. placeHolder_192,
  11411. placeHolder_193,
  11412. placeHolder_194,
  11413. placeHolder_195,
  11414. placeHolder_196,
  11415. placeHolder_197,
  11416. placeHolder_198,
  11417. placeHolder_199,
  11418. gm2,
  11419. kgm2,
  11420. placeHolder_202,
  11421. placeHolder_203,
  11422. placeHolder_204,
  11423. placeHolder_205,
  11424. placeHolder_206,
  11425. placeHolder_207,
  11426. placeHolder_208,
  11427. placeHolder_209,
  11428. cm2m2,
  11429. placeHolder_211,
  11430. placeHolder_212,
  11431. placeHolder_213,
  11432. placeHolder_214,
  11433. placeHolder_215,
  11434. placeHolder_216,
  11435. placeHolder_217,
  11436. placeHolder_218,
  11437. placeHolder_219,
  11438. cmm2,
  11439. mmm2,
  11440. placeHolder_222,
  11441. placeHolder_223,
  11442. placeHolder_224,
  11443. placeHolder_225,
  11444. placeHolder_226,
  11445. placeHolder_227,
  11446. placeHolder_228,
  11447. placeHolder_229,
  11448. pers,
  11449. placeHolder_231,
  11450. placeHolder_232,
  11451. placeHolder_233,
  11452. placeHolder_234,
  11453. placeHolder_235,
  11454. placeHolder_236,
  11455. placeHolder_237,
  11456. placeHolder_238,
  11457. placeHolder_239,
  11458. placeHolder_240,
  11459. placeHolder_241,
  11460. placeHolder_242,
  11461. placeHolder_243,
  11462. placeHolder_244,
  11463. placeHolder_245,
  11464. placeHolder_246,
  11465. placeHolder_247,
  11466. placeHolder_248,
  11467. placeHolder_249,
  11468. Celsius,
  11469. Fahrenheit,
  11470. placeHolder_252,
  11471. placeHolder_253,
  11472. placeHolder_254,
  11473. placeHolder_255,
  11474. placeHolder_256,
  11475. placeHolder_257,
  11476. placeHolder_258,
  11477. placeHolder_259,
  11478. Ohm,
  11479. placeHolder_261,
  11480. placeHolder_262,
  11481. placeHolder_263,
  11482. placeHolder_264,
  11483. placeHolder_265,
  11484. placeHolder_266,
  11485. placeHolder_267,
  11486. placeHolder_268,
  11487. placeHolder_269,
  11488. mmHgml,
  11489. }
  11490. enum QueryCourseSortEnum {
  11491. StartTime,
  11492. Recommended,
  11493. }
  11494. enum QueryCourseTypeEnum {
  11495. All,
  11496. LiveCourse,
  11497. VideoCourse,
  11498. }
  11499. enum ArrowOrientation {
  11500. Down,
  11501. Left,
  11502. Up,
  11503. Right,
  11504. }
  11505. class UserScanInfo {
  11506. String? scanCode;
  11507. ScanLoginSource scanLoginSource;
  11508. Platform platform;
  11509. DateTime? createTime;
  11510. DateTime? expireTime;
  11511. String? installVersion;
  11512. LoginResult? loginResult;
  11513. UserScanInfo({
  11514. this.scanCode,
  11515. this.scanLoginSource = ScanLoginSource.PC,
  11516. this.platform = Platform.Windows,
  11517. this.createTime,
  11518. this.expireTime,
  11519. this.installVersion,
  11520. this.loginResult,
  11521. });
  11522. factory UserScanInfo.fromJson(Map<String, dynamic> map) {
  11523. return UserScanInfo(
  11524. scanCode: map['ScanCode'],
  11525. scanLoginSource: ScanLoginSource.values.firstWhere((e) => e.index == map['ScanLoginSource']),
  11526. platform: Platform.values.firstWhere((e) => e.index == map['Platform']),
  11527. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  11528. expireTime: map['ExpireTime'] != null ? DateTime.parse(map['ExpireTime']) : null,
  11529. installVersion: map['InstallVersion'],
  11530. loginResult: map['LoginResult'] != null ? LoginResult.fromJson(map['LoginResult']) : null,
  11531. );
  11532. }
  11533. Map<String, dynamic> toJson() {
  11534. final map = Map<String, dynamic>();
  11535. if(scanCode != null) {
  11536. map['ScanCode'] = scanCode;
  11537. }
  11538. map['ScanLoginSource'] = scanLoginSource.index;
  11539. map['Platform'] = platform.index;
  11540. if(createTime != null) {
  11541. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  11542. }
  11543. if(expireTime != null) {
  11544. map['ExpireTime'] = JsonRpcUtils.dateFormat(expireTime!);
  11545. }
  11546. if(installVersion != null) {
  11547. map['InstallVersion'] = installVersion;
  11548. }
  11549. if(loginResult != null) {
  11550. map['LoginResult'] = loginResult;
  11551. }
  11552. return map;
  11553. }
  11554. }
  11555. class UserCMSDTO {
  11556. String? cMSData;
  11557. UserCMSDTO({
  11558. this.cMSData,
  11559. });
  11560. factory UserCMSDTO.fromJson(Map<String, dynamic> map) {
  11561. return UserCMSDTO(
  11562. cMSData: map['CMSData'],
  11563. );
  11564. }
  11565. Map<String, dynamic> toJson() {
  11566. final map = Map<String, dynamic>();
  11567. if(cMSData != null) {
  11568. map['CMSData'] = cMSData;
  11569. }
  11570. return map;
  11571. }
  11572. }
  11573. class UserPasswordDTO extends BaseDTO{
  11574. String? userCode;
  11575. String? userName;
  11576. String? secretPassword;
  11577. String? phone;
  11578. String? email;
  11579. String? nickName;
  11580. String? fullName;
  11581. String? headImageUrl;
  11582. String? organizationCode;
  11583. String? rootOrganizationCode;
  11584. List<String>? authorityGroups;
  11585. List<String>? bindDevices;
  11586. List<String>? bindDeviceOrganizations;
  11587. String? lastIP;
  11588. int logintimes;
  11589. UserInfoStateEnum userState;
  11590. List<String>? roleCodes;
  11591. List<String>? rankCodes;
  11592. List<String>? positionCodes;
  11593. ApplyStateEnum applyState;
  11594. List<String>? fieldList;
  11595. List<String>? deletePatientCodes;
  11596. bool isBatchExportDiagnoseData;
  11597. String? bindAssistantUserCode;
  11598. String? bindAssistantDoctorUserCode;
  11599. DateTime? passwordUpdateTime;
  11600. List<String>? passwordRecords;
  11601. String? signature;
  11602. String? language;
  11603. bool enableReportLabel;
  11604. String? bindEmergencyDeviceCode;
  11605. String? bindEmergencyExpertCode;
  11606. bool isOldAgent;
  11607. UserPasswordDTO({
  11608. this.userCode,
  11609. this.userName,
  11610. this.secretPassword,
  11611. this.phone,
  11612. this.email,
  11613. this.nickName,
  11614. this.fullName,
  11615. this.headImageUrl,
  11616. this.organizationCode,
  11617. this.rootOrganizationCode,
  11618. this.authorityGroups,
  11619. this.bindDevices,
  11620. this.bindDeviceOrganizations,
  11621. this.lastIP,
  11622. this.logintimes = 0,
  11623. this.userState = UserInfoStateEnum.Nonactivated,
  11624. this.roleCodes,
  11625. this.rankCodes,
  11626. this.positionCodes,
  11627. this.applyState = ApplyStateEnum.NotApply,
  11628. this.fieldList,
  11629. this.deletePatientCodes,
  11630. this.isBatchExportDiagnoseData = false,
  11631. this.bindAssistantUserCode,
  11632. this.bindAssistantDoctorUserCode,
  11633. this.passwordUpdateTime,
  11634. this.passwordRecords,
  11635. this.signature,
  11636. this.language,
  11637. this.enableReportLabel = false,
  11638. this.bindEmergencyDeviceCode,
  11639. this.bindEmergencyExpertCode,
  11640. this.isOldAgent = false,
  11641. DateTime? createTime,
  11642. DateTime? updateTime,
  11643. }) : super(
  11644. createTime: createTime,
  11645. updateTime: updateTime,
  11646. );
  11647. factory UserPasswordDTO.fromJson(Map<String, dynamic> map) {
  11648. return UserPasswordDTO(
  11649. userCode: map['UserCode'],
  11650. userName: map['UserName'],
  11651. secretPassword: map['SecretPassword'],
  11652. phone: map['Phone'],
  11653. email: map['Email'],
  11654. nickName: map['NickName'],
  11655. fullName: map['FullName'],
  11656. headImageUrl: map['HeadImageUrl'],
  11657. organizationCode: map['OrganizationCode'],
  11658. rootOrganizationCode: map['RootOrganizationCode'],
  11659. authorityGroups: map['AuthorityGroups']?.cast<String>().toList(),
  11660. bindDevices: map['BindDevices']?.cast<String>().toList(),
  11661. bindDeviceOrganizations: map['BindDeviceOrganizations']?.cast<String>().toList(),
  11662. lastIP: map['LastIP'],
  11663. logintimes: map['Logintimes'],
  11664. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  11665. roleCodes: map['RoleCodes']?.cast<String>().toList(),
  11666. rankCodes: map['RankCodes']?.cast<String>().toList(),
  11667. positionCodes: map['PositionCodes']?.cast<String>().toList(),
  11668. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  11669. fieldList: map['FieldList']?.cast<String>().toList(),
  11670. deletePatientCodes: map['DeletePatientCodes']?.cast<String>().toList(),
  11671. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  11672. bindAssistantUserCode: map['BindAssistantUserCode'],
  11673. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  11674. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  11675. passwordRecords: map['PasswordRecords']?.cast<String>().toList(),
  11676. signature: map['Signature'],
  11677. language: map['Language'],
  11678. enableReportLabel: map['EnableReportLabel'],
  11679. bindEmergencyDeviceCode: map['BindEmergencyDeviceCode'],
  11680. bindEmergencyExpertCode: map['BindEmergencyExpertCode'],
  11681. isOldAgent: map['IsOldAgent'],
  11682. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  11683. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  11684. );
  11685. }
  11686. Map<String, dynamic> toJson() {
  11687. final map = super.toJson();
  11688. if(userCode != null)
  11689. map['UserCode'] = userCode;
  11690. if(userName != null)
  11691. map['UserName'] = userName;
  11692. if(secretPassword != null)
  11693. map['SecretPassword'] = secretPassword;
  11694. if(phone != null)
  11695. map['Phone'] = phone;
  11696. if(email != null)
  11697. map['Email'] = email;
  11698. if(nickName != null)
  11699. map['NickName'] = nickName;
  11700. if(fullName != null)
  11701. map['FullName'] = fullName;
  11702. if(headImageUrl != null)
  11703. map['HeadImageUrl'] = headImageUrl;
  11704. if(organizationCode != null)
  11705. map['OrganizationCode'] = organizationCode;
  11706. if(rootOrganizationCode != null)
  11707. map['RootOrganizationCode'] = rootOrganizationCode;
  11708. if(authorityGroups != null)
  11709. map['AuthorityGroups'] = authorityGroups;
  11710. if(bindDevices != null)
  11711. map['BindDevices'] = bindDevices;
  11712. if(bindDeviceOrganizations != null)
  11713. map['BindDeviceOrganizations'] = bindDeviceOrganizations;
  11714. if(lastIP != null)
  11715. map['LastIP'] = lastIP;
  11716. map['Logintimes'] = logintimes;
  11717. map['UserState'] = userState.index;
  11718. if(roleCodes != null)
  11719. map['RoleCodes'] = roleCodes;
  11720. if(rankCodes != null)
  11721. map['RankCodes'] = rankCodes;
  11722. if(positionCodes != null)
  11723. map['PositionCodes'] = positionCodes;
  11724. map['ApplyState'] = applyState.index;
  11725. if(fieldList != null)
  11726. map['FieldList'] = fieldList;
  11727. if(deletePatientCodes != null)
  11728. map['DeletePatientCodes'] = deletePatientCodes;
  11729. map['IsBatchExportDiagnoseData'] = isBatchExportDiagnoseData;
  11730. if(bindAssistantUserCode != null)
  11731. map['BindAssistantUserCode'] = bindAssistantUserCode;
  11732. if(bindAssistantDoctorUserCode != null)
  11733. map['BindAssistantDoctorUserCode'] = bindAssistantDoctorUserCode;
  11734. if(passwordUpdateTime != null)
  11735. map['PasswordUpdateTime'] = JsonRpcUtils.dateFormat(passwordUpdateTime!);
  11736. if(passwordRecords != null)
  11737. map['PasswordRecords'] = passwordRecords;
  11738. if(signature != null)
  11739. map['Signature'] = signature;
  11740. if(language != null)
  11741. map['Language'] = language;
  11742. map['EnableReportLabel'] = enableReportLabel;
  11743. if(bindEmergencyDeviceCode != null)
  11744. map['BindEmergencyDeviceCode'] = bindEmergencyDeviceCode;
  11745. if(bindEmergencyExpertCode != null)
  11746. map['BindEmergencyExpertCode'] = bindEmergencyExpertCode;
  11747. map['IsOldAgent'] = isOldAgent;
  11748. return map;
  11749. }
  11750. }
  11751. class UserTokenDTO {
  11752. String? token;
  11753. bool passwordExpired;
  11754. UserTokenDTO({
  11755. this.token,
  11756. this.passwordExpired = false,
  11757. });
  11758. factory UserTokenDTO.fromJson(Map<String, dynamic> map) {
  11759. return UserTokenDTO(
  11760. token: map['Token'],
  11761. passwordExpired: map['PasswordExpired'],
  11762. );
  11763. }
  11764. Map<String, dynamic> toJson() {
  11765. final map = Map<String, dynamic>();
  11766. if(token != null) {
  11767. map['Token'] = token;
  11768. }
  11769. map['PasswordExpired'] = passwordExpired;
  11770. return map;
  11771. }
  11772. }
  11773. class BaseFeatureItemBaseDTO<T> {
  11774. String? id;
  11775. String? label;
  11776. String? fatherCode;
  11777. String? uniqueCode;
  11778. List<BaseFeatureLanguageConfigDTO>? languageConfigs;
  11779. List<T>? children;
  11780. BaseFeatureItemBaseDTO({
  11781. this.id,
  11782. this.label,
  11783. this.fatherCode,
  11784. this.uniqueCode,
  11785. this.languageConfigs,
  11786. this.children,
  11787. });
  11788. factory BaseFeatureItemBaseDTO.fromJson(Map<String, dynamic> map) {
  11789. List<T> childrenList = [];
  11790. if (map['Children'] != null) {
  11791. childrenList.addAll(
  11792. (map['Children'] as List).map((e) => FJsonConvert.fromJson<T>(e)!));
  11793. }
  11794. return BaseFeatureItemBaseDTO(
  11795. id: map['Id'],
  11796. label: map['Label'],
  11797. fatherCode: map['FatherCode'],
  11798. uniqueCode: map['UniqueCode'],
  11799. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>BaseFeatureLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11800. children: childrenList,
  11801. );
  11802. }
  11803. Map<String, dynamic> toJson() {
  11804. final map = Map<String, dynamic>();
  11805. if(id != null) {
  11806. map['Id'] = id;
  11807. }
  11808. if(label != null) {
  11809. map['Label'] = label;
  11810. }
  11811. if(fatherCode != null) {
  11812. map['FatherCode'] = fatherCode;
  11813. }
  11814. if(uniqueCode != null) {
  11815. map['UniqueCode'] = uniqueCode;
  11816. }
  11817. if(languageConfigs != null) {
  11818. map['LanguageConfigs'] = languageConfigs;
  11819. }
  11820. if(children != null) {
  11821. map['Children'] = children;
  11822. }
  11823. return map;
  11824. }
  11825. }
  11826. class UserFeatureItemDTO extends BaseFeatureItemBaseDTO<UserFeatureItemDTO>{
  11827. UserFeatureItemDTO(
  11828. );
  11829. factory UserFeatureItemDTO.fromJson(Map<String, dynamic> map) {
  11830. return UserFeatureItemDTO(
  11831. );
  11832. }
  11833. Map<String, dynamic> toJson() {
  11834. final map = super.toJson();
  11835. return map;
  11836. }
  11837. }
  11838. class UserAuthorityGroupDTO extends BaseDTO{
  11839. String? userGroupCode;
  11840. String? description;
  11841. List<String>? adminCodes;
  11842. List<String>? features;
  11843. String? createAdmin;
  11844. UserAuthorityGroupDTO({
  11845. this.userGroupCode,
  11846. this.description,
  11847. this.adminCodes,
  11848. this.features,
  11849. this.createAdmin,
  11850. DateTime? createTime,
  11851. DateTime? updateTime,
  11852. }) : super(
  11853. createTime: createTime,
  11854. updateTime: updateTime,
  11855. );
  11856. factory UserAuthorityGroupDTO.fromJson(Map<String, dynamic> map) {
  11857. return UserAuthorityGroupDTO(
  11858. userGroupCode: map['UserGroupCode'],
  11859. description: map['Description'],
  11860. adminCodes: map['AdminCodes']?.cast<String>().toList(),
  11861. features: map['Features']?.cast<String>().toList(),
  11862. createAdmin: map['CreateAdmin'],
  11863. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  11864. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  11865. );
  11866. }
  11867. Map<String, dynamic> toJson() {
  11868. final map = super.toJson();
  11869. if(userGroupCode != null)
  11870. map['UserGroupCode'] = userGroupCode;
  11871. if(description != null)
  11872. map['Description'] = description;
  11873. if(adminCodes != null)
  11874. map['AdminCodes'] = adminCodes;
  11875. if(features != null)
  11876. map['Features'] = features;
  11877. if(createAdmin != null)
  11878. map['CreateAdmin'] = createAdmin;
  11879. return map;
  11880. }
  11881. }
  11882. class StorageInfoDTO extends BaseDTO{
  11883. String? token;
  11884. String? fileName;
  11885. String? storageRoute;
  11886. StorageInfoDTO({
  11887. this.token,
  11888. this.fileName,
  11889. this.storageRoute,
  11890. DateTime? createTime,
  11891. DateTime? updateTime,
  11892. }) : super(
  11893. createTime: createTime,
  11894. updateTime: updateTime,
  11895. );
  11896. factory StorageInfoDTO.fromJson(Map<String, dynamic> map) {
  11897. return StorageInfoDTO(
  11898. token: map['Token'],
  11899. fileName: map['FileName'],
  11900. storageRoute: map['StorageRoute'],
  11901. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  11902. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  11903. );
  11904. }
  11905. Map<String, dynamic> toJson() {
  11906. final map = super.toJson();
  11907. if(token != null)
  11908. map['Token'] = token;
  11909. if(fileName != null)
  11910. map['FileName'] = fileName;
  11911. if(storageRoute != null)
  11912. map['StorageRoute'] = storageRoute;
  11913. return map;
  11914. }
  11915. }
  11916. class StatisticDTO extends BaseDTO{
  11917. String? statisticCode;
  11918. String? name;
  11919. String? description;
  11920. String? intervalSetting;
  11921. bool enabled;
  11922. String? handleClass;
  11923. String? serverHost;
  11924. StatisticDTO({
  11925. this.statisticCode,
  11926. this.name,
  11927. this.description,
  11928. this.intervalSetting,
  11929. this.enabled = false,
  11930. this.handleClass,
  11931. this.serverHost,
  11932. DateTime? createTime,
  11933. DateTime? updateTime,
  11934. }) : super(
  11935. createTime: createTime,
  11936. updateTime: updateTime,
  11937. );
  11938. factory StatisticDTO.fromJson(Map<String, dynamic> map) {
  11939. return StatisticDTO(
  11940. statisticCode: map['StatisticCode'],
  11941. name: map['Name'],
  11942. description: map['Description'],
  11943. intervalSetting: map['IntervalSetting'],
  11944. enabled: map['Enabled'],
  11945. handleClass: map['HandleClass'],
  11946. serverHost: map['ServerHost'],
  11947. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  11948. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  11949. );
  11950. }
  11951. Map<String, dynamic> toJson() {
  11952. final map = super.toJson();
  11953. if(statisticCode != null)
  11954. map['StatisticCode'] = statisticCode;
  11955. if(name != null)
  11956. map['Name'] = name;
  11957. if(description != null)
  11958. map['Description'] = description;
  11959. if(intervalSetting != null)
  11960. map['IntervalSetting'] = intervalSetting;
  11961. map['Enabled'] = enabled;
  11962. if(handleClass != null)
  11963. map['HandleClass'] = handleClass;
  11964. if(serverHost != null)
  11965. map['ServerHost'] = serverHost;
  11966. return map;
  11967. }
  11968. }
  11969. class StatisticInfoDTO {
  11970. List<String>? xAxisDatas;
  11971. List<List<double>>? yAxisDatas;
  11972. List<StatisticInfoDTO>? children;
  11973. StatisticInfoDTO({
  11974. this.xAxisDatas,
  11975. this.yAxisDatas,
  11976. this.children,
  11977. });
  11978. factory StatisticInfoDTO.fromJson(Map<String, dynamic> map) {
  11979. return StatisticInfoDTO(
  11980. xAxisDatas: map['XAxisDatas']?.cast<String>().toList(),
  11981. yAxisDatas: map['YAxisDatas']?.cast<List<double>>().toList(),
  11982. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11983. );
  11984. }
  11985. Map<String, dynamic> toJson() {
  11986. final map = Map<String, dynamic>();
  11987. if(xAxisDatas != null) {
  11988. map['XAxisDatas'] = xAxisDatas;
  11989. }
  11990. if(yAxisDatas != null) {
  11991. map['YAxisDatas'] = yAxisDatas;
  11992. }
  11993. if(children != null) {
  11994. map['Children'] = children;
  11995. }
  11996. return map;
  11997. }
  11998. }
  11999. class StatisticRecordDTO extends BaseDTO{
  12000. String? statisticRecordCode;
  12001. String? statisticCode;
  12002. String? statisticName;
  12003. String? userCode;
  12004. DateTime? lastestUpdateTime;
  12005. DateTime? nextHandleTime;
  12006. List<String>? xAxisDatas;
  12007. List<List<double>>? yAxisDatas;
  12008. List<StatisticInfoDTO>? children;
  12009. StatisticRecordDTO({
  12010. this.statisticRecordCode,
  12011. this.statisticCode,
  12012. this.statisticName,
  12013. this.userCode,
  12014. this.lastestUpdateTime,
  12015. this.nextHandleTime,
  12016. this.xAxisDatas,
  12017. this.yAxisDatas,
  12018. this.children,
  12019. DateTime? createTime,
  12020. DateTime? updateTime,
  12021. }) : super(
  12022. createTime: createTime,
  12023. updateTime: updateTime,
  12024. );
  12025. factory StatisticRecordDTO.fromJson(Map<String, dynamic> map) {
  12026. return StatisticRecordDTO(
  12027. statisticRecordCode: map['StatisticRecordCode'],
  12028. statisticCode: map['StatisticCode'],
  12029. statisticName: map['StatisticName'],
  12030. userCode: map['UserCode'],
  12031. lastestUpdateTime: map['LastestUpdateTime'] != null ? DateTime.parse(map['LastestUpdateTime']) : null,
  12032. nextHandleTime: map['NextHandleTime'] != null ? DateTime.parse(map['NextHandleTime']) : null,
  12033. xAxisDatas: map['XAxisDatas']?.cast<String>().toList(),
  12034. yAxisDatas: map['YAxisDatas']?.cast<List<double>>().toList(),
  12035. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12036. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12037. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12038. );
  12039. }
  12040. Map<String, dynamic> toJson() {
  12041. final map = super.toJson();
  12042. if(statisticRecordCode != null)
  12043. map['StatisticRecordCode'] = statisticRecordCode;
  12044. if(statisticCode != null)
  12045. map['StatisticCode'] = statisticCode;
  12046. if(statisticName != null)
  12047. map['StatisticName'] = statisticName;
  12048. if(userCode != null)
  12049. map['UserCode'] = userCode;
  12050. if(lastestUpdateTime != null)
  12051. map['LastestUpdateTime'] = JsonRpcUtils.dateFormat(lastestUpdateTime!);
  12052. if(nextHandleTime != null)
  12053. map['NextHandleTime'] = JsonRpcUtils.dateFormat(nextHandleTime!);
  12054. if(xAxisDatas != null)
  12055. map['XAxisDatas'] = xAxisDatas;
  12056. if(yAxisDatas != null)
  12057. map['YAxisDatas'] = yAxisDatas;
  12058. if(children != null)
  12059. map['Children'] = children;
  12060. return map;
  12061. }
  12062. }
  12063. class ServerListResult extends BaseServerResult{
  12064. bool isDistributed;
  12065. List<ServerInfoDTO>? serverList;
  12066. ServerListResult({
  12067. this.isDistributed = false,
  12068. this.serverList,
  12069. int code = 0,
  12070. }) : super(
  12071. code: code,
  12072. );
  12073. factory ServerListResult.fromJson(Map<String, dynamic> map) {
  12074. return ServerListResult(
  12075. isDistributed: map['IsDistributed'],
  12076. serverList: map['ServerList'] != null ? (map['ServerList'] as List).map((e)=>ServerInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12077. code: map['Code'],
  12078. );
  12079. }
  12080. Map<String, dynamic> toJson() {
  12081. final map = super.toJson();
  12082. map['IsDistributed'] = isDistributed;
  12083. if(serverList != null)
  12084. map['ServerList'] = serverList;
  12085. return map;
  12086. }
  12087. }
  12088. class LoginSuccessResult extends BaseServerResult{
  12089. LoginSuccessResult({
  12090. int code = 0,
  12091. }) : super(
  12092. code: code,
  12093. );
  12094. factory LoginSuccessResult.fromJson(Map<String, dynamic> map) {
  12095. return LoginSuccessResult(
  12096. code: map['Code'],
  12097. );
  12098. }
  12099. Map<String, dynamic> toJson() {
  12100. final map = super.toJson();
  12101. return map;
  12102. }
  12103. }
  12104. class ScheduleDTO extends ClientScheduleDTO{
  12105. List<String>? userCodes;
  12106. String? code;
  12107. ScheduleDTO({
  12108. this.userCodes,
  12109. this.code,
  12110. String? title,
  12111. TransactionStatusEnum status = TransactionStatusEnum.Applied,
  12112. ScheduleTypeEnum scheduleType = ScheduleTypeEnum.Consultation,
  12113. DateTime? startTime,
  12114. DateTime? endTime,
  12115. String? relevanceCode,
  12116. }) : super(
  12117. title: title,
  12118. status: status,
  12119. scheduleType: scheduleType,
  12120. startTime: startTime,
  12121. endTime: endTime,
  12122. relevanceCode: relevanceCode,
  12123. );
  12124. factory ScheduleDTO.fromJson(Map<String, dynamic> map) {
  12125. return ScheduleDTO(
  12126. userCodes: map['UserCodes']?.cast<String>().toList(),
  12127. code: map['Code'],
  12128. title: map['Title'],
  12129. status: TransactionStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  12130. scheduleType: ScheduleTypeEnum.values.firstWhere((e) => e.index == map['ScheduleType']),
  12131. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  12132. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  12133. relevanceCode: map['RelevanceCode'],
  12134. );
  12135. }
  12136. Map<String, dynamic> toJson() {
  12137. final map = super.toJson();
  12138. if(userCodes != null)
  12139. map['UserCodes'] = userCodes;
  12140. if(code != null)
  12141. map['Code'] = code;
  12142. return map;
  12143. }
  12144. }
  12145. class LiveMemberDTO {
  12146. String? code;
  12147. LiveMemberEnum memberType;
  12148. String? name;
  12149. String? headImageToken;
  12150. LiveMemberStatus status;
  12151. bool muteOpened;
  12152. bool videoOpened;
  12153. LiveDataDTO? liveData;
  12154. bool isControllingParameter;
  12155. DateTime? firstJoinTime;
  12156. int sortLevel;
  12157. List<VideoDeviceInfoDTO>? videoDeviceInfos;
  12158. LoginSource loginSource;
  12159. String? inviterCode;
  12160. bool backgroundRole;
  12161. bool isOldPlatform;
  12162. bool supportRtc;
  12163. LiveMemberDTO({
  12164. this.code,
  12165. this.memberType = LiveMemberEnum.User,
  12166. this.name,
  12167. this.headImageToken,
  12168. this.status = LiveMemberStatus.Default,
  12169. this.muteOpened = false,
  12170. this.videoOpened = false,
  12171. this.liveData,
  12172. this.isControllingParameter = false,
  12173. this.firstJoinTime,
  12174. this.sortLevel = 0,
  12175. this.videoDeviceInfos,
  12176. this.loginSource = LoginSource.PC,
  12177. this.inviterCode,
  12178. this.backgroundRole = false,
  12179. this.isOldPlatform = false,
  12180. this.supportRtc = false,
  12181. });
  12182. factory LiveMemberDTO.fromJson(Map<String, dynamic> map) {
  12183. return LiveMemberDTO(
  12184. code: map['Code'],
  12185. memberType: LiveMemberEnum.values.firstWhere((e) => e.index == map['MemberType']),
  12186. name: map['Name'],
  12187. headImageToken: map['HeadImageToken'],
  12188. status: LiveMemberStatus.values.firstWhere((e) => e.index == map['Status']),
  12189. muteOpened: map['MuteOpened'],
  12190. videoOpened: map['VideoOpened'],
  12191. liveData: map['LiveData'] != null ? LiveDataDTO.fromJson(map['LiveData']) : null,
  12192. isControllingParameter: map['IsControllingParameter'],
  12193. firstJoinTime: map['FirstJoinTime'] != null ? DateTime.parse(map['FirstJoinTime']) : null,
  12194. sortLevel: map['SortLevel'],
  12195. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12196. loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
  12197. inviterCode: map['InviterCode'],
  12198. backgroundRole: map['BackgroundRole'],
  12199. isOldPlatform: map['IsOldPlatform'],
  12200. supportRtc: map['SupportRtc'],
  12201. );
  12202. }
  12203. Map<String, dynamic> toJson() {
  12204. final map = Map<String, dynamic>();
  12205. if(code != null) {
  12206. map['Code'] = code;
  12207. }
  12208. map['MemberType'] = memberType.index;
  12209. if(name != null) {
  12210. map['Name'] = name;
  12211. }
  12212. if(headImageToken != null) {
  12213. map['HeadImageToken'] = headImageToken;
  12214. }
  12215. map['Status'] = status.index;
  12216. map['MuteOpened'] = muteOpened;
  12217. map['VideoOpened'] = videoOpened;
  12218. if(liveData != null) {
  12219. map['LiveData'] = liveData;
  12220. }
  12221. map['IsControllingParameter'] = isControllingParameter;
  12222. if(firstJoinTime != null) {
  12223. map['FirstJoinTime'] = JsonRpcUtils.dateFormat(firstJoinTime!);
  12224. }
  12225. map['SortLevel'] = sortLevel;
  12226. if(videoDeviceInfos != null) {
  12227. map['VideoDeviceInfos'] = videoDeviceInfos;
  12228. }
  12229. map['LoginSource'] = loginSource.index;
  12230. if(inviterCode != null) {
  12231. map['InviterCode'] = inviterCode;
  12232. }
  12233. map['BackgroundRole'] = backgroundRole;
  12234. map['IsOldPlatform'] = isOldPlatform;
  12235. map['SupportRtc'] = supportRtc;
  12236. return map;
  12237. }
  12238. }
  12239. class LiveViewerDTO {
  12240. String? userCode;
  12241. String? name;
  12242. DateTime? lastReportTime;
  12243. LiveViewerDTO({
  12244. this.userCode,
  12245. this.name,
  12246. this.lastReportTime,
  12247. });
  12248. factory LiveViewerDTO.fromJson(Map<String, dynamic> map) {
  12249. return LiveViewerDTO(
  12250. userCode: map['UserCode'],
  12251. name: map['Name'],
  12252. lastReportTime: map['LastReportTime'] != null ? DateTime.parse(map['LastReportTime']) : null,
  12253. );
  12254. }
  12255. Map<String, dynamic> toJson() {
  12256. final map = Map<String, dynamic>();
  12257. if(userCode != null) {
  12258. map['UserCode'] = userCode;
  12259. }
  12260. if(name != null) {
  12261. map['Name'] = name;
  12262. }
  12263. if(lastReportTime != null) {
  12264. map['LastReportTime'] = JsonRpcUtils.dateFormat(lastReportTime!);
  12265. }
  12266. return map;
  12267. }
  12268. }
  12269. class LiveRoomInfoDTO {
  12270. String? roomId;
  12271. int roomNo;
  12272. String? msgQueueId;
  12273. List<LiveMemberDTO>? members;
  12274. List<LiveViewerDTO>? viewerInfos;
  12275. LiveMemberDTO? initiator;
  12276. List<LiveMemberDTO>? userInfos;
  12277. List<LiveMemberDTO>? deviceInfos;
  12278. List<LiveMemberDTO>? expertUserInfos;
  12279. List<LiveMemberDTO>? assistantsInfos;
  12280. LiveRoomStatus status;
  12281. String? name;
  12282. DateTime? liveTime;
  12283. int liveStatus;
  12284. List<InteractiveBoardDataDTO>? interactiveBoardDatas;
  12285. LiveRoomInfoDTO({
  12286. this.roomId,
  12287. this.roomNo = 0,
  12288. this.msgQueueId,
  12289. this.members,
  12290. this.viewerInfos,
  12291. this.initiator,
  12292. this.userInfos,
  12293. this.deviceInfos,
  12294. this.expertUserInfos,
  12295. this.assistantsInfos,
  12296. this.status = LiveRoomStatus.Default,
  12297. this.name,
  12298. this.liveTime,
  12299. this.liveStatus = 0,
  12300. this.interactiveBoardDatas,
  12301. });
  12302. factory LiveRoomInfoDTO.fromJson(Map<String, dynamic> map) {
  12303. return LiveRoomInfoDTO(
  12304. roomId: map['RoomId'],
  12305. roomNo: map['RoomNo'],
  12306. msgQueueId: map['MsgQueueId'],
  12307. members: map['Members'] != null ? (map['Members'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12308. viewerInfos: map['ViewerInfos'] != null ? (map['ViewerInfos'] as List).map((e)=>LiveViewerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12309. initiator: map['Initiator'] != null ? LiveMemberDTO.fromJson(map['Initiator']) : null,
  12310. userInfos: map['UserInfos'] != null ? (map['UserInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12311. deviceInfos: map['DeviceInfos'] != null ? (map['DeviceInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12312. expertUserInfos: map['ExpertUserInfos'] != null ? (map['ExpertUserInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12313. assistantsInfos: map['AssistantsInfos'] != null ? (map['AssistantsInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12314. status: LiveRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  12315. name: map['Name'],
  12316. liveTime: map['LiveTime'] != null ? DateTime.parse(map['LiveTime']) : null,
  12317. liveStatus: map['LiveStatus'],
  12318. interactiveBoardDatas: map['InteractiveBoardDatas'] != null ? (map['InteractiveBoardDatas'] as List).map((e)=>InteractiveBoardDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12319. );
  12320. }
  12321. Map<String, dynamic> toJson() {
  12322. final map = Map<String, dynamic>();
  12323. if(roomId != null) {
  12324. map['RoomId'] = roomId;
  12325. }
  12326. map['RoomNo'] = roomNo;
  12327. if(msgQueueId != null) {
  12328. map['MsgQueueId'] = msgQueueId;
  12329. }
  12330. if(members != null) {
  12331. map['Members'] = members;
  12332. }
  12333. if(viewerInfos != null) {
  12334. map['ViewerInfos'] = viewerInfos;
  12335. }
  12336. if(initiator != null) {
  12337. map['Initiator'] = initiator;
  12338. }
  12339. if(userInfos != null) {
  12340. map['UserInfos'] = userInfos;
  12341. }
  12342. if(deviceInfos != null) {
  12343. map['DeviceInfos'] = deviceInfos;
  12344. }
  12345. if(expertUserInfos != null) {
  12346. map['ExpertUserInfos'] = expertUserInfos;
  12347. }
  12348. if(assistantsInfos != null) {
  12349. map['AssistantsInfos'] = assistantsInfos;
  12350. }
  12351. map['Status'] = status.index;
  12352. if(name != null) {
  12353. map['Name'] = name;
  12354. }
  12355. if(liveTime != null) {
  12356. map['LiveTime'] = JsonRpcUtils.dateFormat(liveTime!);
  12357. }
  12358. map['LiveStatus'] = liveStatus;
  12359. if(interactiveBoardDatas != null) {
  12360. map['InteractiveBoardDatas'] = interactiveBoardDatas;
  12361. }
  12362. return map;
  12363. }
  12364. }
  12365. class RtcBoardDataDTO {
  12366. String? userCode;
  12367. String? boardData;
  12368. DateTime? interactiveTime;
  12369. RtcBoardDataDTO({
  12370. this.userCode,
  12371. this.boardData,
  12372. this.interactiveTime,
  12373. });
  12374. factory RtcBoardDataDTO.fromJson(Map<String, dynamic> map) {
  12375. return RtcBoardDataDTO(
  12376. userCode: map['UserCode'],
  12377. boardData: map['BoardData'],
  12378. interactiveTime: map['InteractiveTime'] != null ? DateTime.parse(map['InteractiveTime']) : null,
  12379. );
  12380. }
  12381. Map<String, dynamic> toJson() {
  12382. final map = Map<String, dynamic>();
  12383. if(userCode != null) {
  12384. map['UserCode'] = userCode;
  12385. }
  12386. if(boardData != null) {
  12387. map['BoardData'] = boardData;
  12388. }
  12389. if(interactiveTime != null) {
  12390. map['InteractiveTime'] = JsonRpcUtils.dateFormat(interactiveTime!);
  12391. }
  12392. return map;
  12393. }
  12394. }
  12395. class RtcLiveDataDTO {
  12396. String? pullUrl;
  12397. RtcLiveDataDTO({
  12398. this.pullUrl,
  12399. });
  12400. factory RtcLiveDataDTO.fromJson(Map<String, dynamic> map) {
  12401. return RtcLiveDataDTO(
  12402. pullUrl: map['PullUrl'],
  12403. );
  12404. }
  12405. Map<String, dynamic> toJson() {
  12406. final map = Map<String, dynamic>();
  12407. if(pullUrl != null) {
  12408. map['PullUrl'] = pullUrl;
  12409. }
  12410. return map;
  12411. }
  12412. }
  12413. class RtcMemberDTO {
  12414. String? id;
  12415. String? name;
  12416. String? avatarUrl;
  12417. LiveMemberEnum memberType;
  12418. LiveMemberStatus status;
  12419. bool muteOpened;
  12420. bool videoOpened;
  12421. bool isInitiator;
  12422. bool isControllingParameter;
  12423. RtcLiveDataDTO? rtcLiveData;
  12424. RtcMemberDTO({
  12425. this.id,
  12426. this.name,
  12427. this.avatarUrl,
  12428. this.memberType = LiveMemberEnum.User,
  12429. this.status = LiveMemberStatus.Default,
  12430. this.muteOpened = false,
  12431. this.videoOpened = false,
  12432. this.isInitiator = false,
  12433. this.isControllingParameter = false,
  12434. this.rtcLiveData,
  12435. });
  12436. factory RtcMemberDTO.fromJson(Map<String, dynamic> map) {
  12437. return RtcMemberDTO(
  12438. id: map['Id'],
  12439. name: map['Name'],
  12440. avatarUrl: map['AvatarUrl'],
  12441. memberType: LiveMemberEnum.values.firstWhere((e) => e.index == map['MemberType']),
  12442. status: LiveMemberStatus.values.firstWhere((e) => e.index == map['Status']),
  12443. muteOpened: map['MuteOpened'],
  12444. videoOpened: map['VideoOpened'],
  12445. isInitiator: map['IsInitiator'],
  12446. isControllingParameter: map['IsControllingParameter'],
  12447. rtcLiveData: map['RtcLiveData'] != null ? RtcLiveDataDTO.fromJson(map['RtcLiveData']) : null,
  12448. );
  12449. }
  12450. Map<String, dynamic> toJson() {
  12451. final map = Map<String, dynamic>();
  12452. if(id != null) {
  12453. map['Id'] = id;
  12454. }
  12455. if(name != null) {
  12456. map['Name'] = name;
  12457. }
  12458. if(avatarUrl != null) {
  12459. map['AvatarUrl'] = avatarUrl;
  12460. }
  12461. map['MemberType'] = memberType.index;
  12462. map['Status'] = status.index;
  12463. map['MuteOpened'] = muteOpened;
  12464. map['VideoOpened'] = videoOpened;
  12465. map['IsInitiator'] = isInitiator;
  12466. map['IsControllingParameter'] = isControllingParameter;
  12467. if(rtcLiveData != null) {
  12468. map['RtcLiveData'] = rtcLiveData;
  12469. }
  12470. return map;
  12471. }
  12472. }
  12473. class RtcViewerDTO {
  12474. String? userCode;
  12475. DateTime? lastReportTime;
  12476. RtcViewerDTO({
  12477. this.userCode,
  12478. this.lastReportTime,
  12479. });
  12480. factory RtcViewerDTO.fromJson(Map<String, dynamic> map) {
  12481. return RtcViewerDTO(
  12482. userCode: map['UserCode'],
  12483. lastReportTime: map['LastReportTime'] != null ? DateTime.parse(map['LastReportTime']) : null,
  12484. );
  12485. }
  12486. Map<String, dynamic> toJson() {
  12487. final map = Map<String, dynamic>();
  12488. if(userCode != null) {
  12489. map['UserCode'] = userCode;
  12490. }
  12491. if(lastReportTime != null) {
  12492. map['LastReportTime'] = JsonRpcUtils.dateFormat(lastReportTime!);
  12493. }
  12494. return map;
  12495. }
  12496. }
  12497. class RtcRoomDTO {
  12498. String? liveRoomCode;
  12499. String? name;
  12500. String? initiateCode;
  12501. int rtcRoomId;
  12502. int sdkAppId;
  12503. String? msgQueueId;
  12504. LiveRoomStatus status;
  12505. List<RtcMemberDTO>? members;
  12506. List<RtcViewerDTO>? viewers;
  12507. List<RtcBoardDataDTO>? interactiveBoardDatas;
  12508. RtcRoomDTO({
  12509. this.liveRoomCode,
  12510. this.name,
  12511. this.initiateCode,
  12512. this.rtcRoomId = 0,
  12513. this.sdkAppId = 0,
  12514. this.msgQueueId,
  12515. this.status = LiveRoomStatus.Default,
  12516. this.members,
  12517. this.viewers,
  12518. this.interactiveBoardDatas,
  12519. });
  12520. factory RtcRoomDTO.fromJson(Map<String, dynamic> map) {
  12521. return RtcRoomDTO(
  12522. liveRoomCode: map['LiveRoomCode'],
  12523. name: map['Name'],
  12524. initiateCode: map['InitiateCode'],
  12525. rtcRoomId: map['RtcRoomId'],
  12526. sdkAppId: map['SdkAppId'],
  12527. msgQueueId: map['MsgQueueId'],
  12528. status: LiveRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  12529. members: map['Members'] != null ? (map['Members'] as List).map((e)=>RtcMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12530. viewers: map['Viewers'] != null ? (map['Viewers'] as List).map((e)=>RtcViewerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12531. interactiveBoardDatas: map['InteractiveBoardDatas'] != null ? (map['InteractiveBoardDatas'] as List).map((e)=>RtcBoardDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12532. );
  12533. }
  12534. Map<String, dynamic> toJson() {
  12535. final map = Map<String, dynamic>();
  12536. if(liveRoomCode != null) {
  12537. map['LiveRoomCode'] = liveRoomCode;
  12538. }
  12539. if(name != null) {
  12540. map['Name'] = name;
  12541. }
  12542. if(initiateCode != null) {
  12543. map['InitiateCode'] = initiateCode;
  12544. }
  12545. map['RtcRoomId'] = rtcRoomId;
  12546. map['SdkAppId'] = sdkAppId;
  12547. if(msgQueueId != null) {
  12548. map['MsgQueueId'] = msgQueueId;
  12549. }
  12550. map['Status'] = status.index;
  12551. if(members != null) {
  12552. map['Members'] = members;
  12553. }
  12554. if(viewers != null) {
  12555. map['Viewers'] = viewers;
  12556. }
  12557. if(interactiveBoardDatas != null) {
  12558. map['InteractiveBoardDatas'] = interactiveBoardDatas;
  12559. }
  12560. return map;
  12561. }
  12562. }
  12563. class ReportElementDTO {
  12564. String? key;
  12565. String? tagId;
  12566. String? name;
  12567. String? aILanguage;
  12568. ReportElementDTO({
  12569. this.key,
  12570. this.tagId,
  12571. this.name,
  12572. this.aILanguage,
  12573. });
  12574. factory ReportElementDTO.fromJson(Map<String, dynamic> map) {
  12575. return ReportElementDTO(
  12576. key: map['Key'],
  12577. tagId: map['TagId'],
  12578. name: map['Name'],
  12579. aILanguage: map['AILanguage'],
  12580. );
  12581. }
  12582. Map<String, dynamic> toJson() {
  12583. final map = Map<String, dynamic>();
  12584. if(key != null) {
  12585. map['Key'] = key;
  12586. }
  12587. if(tagId != null) {
  12588. map['TagId'] = tagId;
  12589. }
  12590. if(name != null) {
  12591. map['Name'] = name;
  12592. }
  12593. if(aILanguage != null) {
  12594. map['AILanguage'] = aILanguage;
  12595. }
  12596. return map;
  12597. }
  12598. }
  12599. class ReportPosterDTO extends BaseDTO{
  12600. String? reportPosterCode;
  12601. String? receiverName;
  12602. String? contact;
  12603. String? phone;
  12604. String? targetUrl;
  12605. String? template;
  12606. ReportPosterTypeEnum posterType;
  12607. ReportFormatEnum reportFormat;
  12608. int postTimeout;
  12609. List<String>? deviceIds;
  12610. ReportPosterDTO({
  12611. this.reportPosterCode,
  12612. this.receiverName,
  12613. this.contact,
  12614. this.phone,
  12615. this.targetUrl,
  12616. this.template,
  12617. this.posterType = ReportPosterTypeEnum.Default,
  12618. this.reportFormat = ReportFormatEnum.Json,
  12619. this.postTimeout = 0,
  12620. this.deviceIds,
  12621. DateTime? createTime,
  12622. DateTime? updateTime,
  12623. }) : super(
  12624. createTime: createTime,
  12625. updateTime: updateTime,
  12626. );
  12627. factory ReportPosterDTO.fromJson(Map<String, dynamic> map) {
  12628. return ReportPosterDTO(
  12629. reportPosterCode: map['ReportPosterCode'],
  12630. receiverName: map['ReceiverName'],
  12631. contact: map['Contact'],
  12632. phone: map['Phone'],
  12633. targetUrl: map['TargetUrl'],
  12634. template: map['Template'],
  12635. posterType: ReportPosterTypeEnum.values.firstWhere((e) => e.index == map['PosterType']),
  12636. reportFormat: ReportFormatEnum.values.firstWhere((e) => e.index == map['ReportFormat']),
  12637. postTimeout: map['PostTimeout'],
  12638. deviceIds: map['DeviceIds']?.cast<String>().toList(),
  12639. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12640. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12641. );
  12642. }
  12643. Map<String, dynamic> toJson() {
  12644. final map = super.toJson();
  12645. if(reportPosterCode != null)
  12646. map['ReportPosterCode'] = reportPosterCode;
  12647. if(receiverName != null)
  12648. map['ReceiverName'] = receiverName;
  12649. if(contact != null)
  12650. map['Contact'] = contact;
  12651. if(phone != null)
  12652. map['Phone'] = phone;
  12653. if(targetUrl != null)
  12654. map['TargetUrl'] = targetUrl;
  12655. if(template != null)
  12656. map['Template'] = template;
  12657. map['PosterType'] = posterType.index;
  12658. map['ReportFormat'] = reportFormat.index;
  12659. map['PostTimeout'] = postTimeout;
  12660. if(deviceIds != null)
  12661. map['DeviceIds'] = deviceIds;
  12662. return map;
  12663. }
  12664. }
  12665. class ReportPushRecordDTO extends BaseDTO{
  12666. String? pushRecordCode;
  12667. String? patientId;
  12668. String? patientName;
  12669. String? poseterConfigId;
  12670. PushDataStateEnum state;
  12671. String? poseterConfigName;
  12672. String? reportId;
  12673. String? patientRecordId;
  12674. String? pushResultToken;
  12675. String? pushResponse;
  12676. ReportPushRecordDTO({
  12677. this.pushRecordCode,
  12678. this.patientId,
  12679. this.patientName,
  12680. this.poseterConfigId,
  12681. this.state = PushDataStateEnum.UnDo,
  12682. this.poseterConfigName,
  12683. this.reportId,
  12684. this.patientRecordId,
  12685. this.pushResultToken,
  12686. this.pushResponse,
  12687. DateTime? createTime,
  12688. DateTime? updateTime,
  12689. }) : super(
  12690. createTime: createTime,
  12691. updateTime: updateTime,
  12692. );
  12693. factory ReportPushRecordDTO.fromJson(Map<String, dynamic> map) {
  12694. return ReportPushRecordDTO(
  12695. pushRecordCode: map['PushRecordCode'],
  12696. patientId: map['PatientId'],
  12697. patientName: map['PatientName'],
  12698. poseterConfigId: map['PoseterConfigId'],
  12699. state: PushDataStateEnum.values.firstWhere((e) => e.index == map['State']),
  12700. poseterConfigName: map['PoseterConfigName'],
  12701. reportId: map['ReportId'],
  12702. patientRecordId: map['PatientRecordId'],
  12703. pushResultToken: map['PushResultToken'],
  12704. pushResponse: map['PushResponse'],
  12705. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12706. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12707. );
  12708. }
  12709. Map<String, dynamic> toJson() {
  12710. final map = super.toJson();
  12711. if(pushRecordCode != null)
  12712. map['PushRecordCode'] = pushRecordCode;
  12713. if(patientId != null)
  12714. map['PatientId'] = patientId;
  12715. if(patientName != null)
  12716. map['PatientName'] = patientName;
  12717. if(poseterConfigId != null)
  12718. map['PoseterConfigId'] = poseterConfigId;
  12719. map['State'] = state.index;
  12720. if(poseterConfigName != null)
  12721. map['PoseterConfigName'] = poseterConfigName;
  12722. if(reportId != null)
  12723. map['ReportId'] = reportId;
  12724. if(patientRecordId != null)
  12725. map['PatientRecordId'] = patientRecordId;
  12726. if(pushResultToken != null)
  12727. map['PushResultToken'] = pushResultToken;
  12728. if(pushResponse != null)
  12729. map['PushResponse'] = pushResponse;
  12730. return map;
  12731. }
  12732. }
  12733. class RegionItemDTO {
  12734. String? c;
  12735. String? g;
  12736. String? f;
  12737. String? n;
  12738. RegionItemDTO({
  12739. this.c,
  12740. this.g,
  12741. this.f,
  12742. this.n,
  12743. });
  12744. factory RegionItemDTO.fromJson(Map<String, dynamic> map) {
  12745. return RegionItemDTO(
  12746. c: map['c'],
  12747. g: map['g'],
  12748. f: map['f'],
  12749. n: map['n'],
  12750. );
  12751. }
  12752. Map<String, dynamic> toJson() {
  12753. final map = Map<String, dynamic>();
  12754. if(c != null) {
  12755. map['c'] = c;
  12756. }
  12757. if(g != null) {
  12758. map['g'] = g;
  12759. }
  12760. if(f != null) {
  12761. map['f'] = f;
  12762. }
  12763. if(n != null) {
  12764. map['n'] = n;
  12765. }
  12766. return map;
  12767. }
  12768. }
  12769. class RegionDataDTO {
  12770. String? lang;
  12771. List<RegionItemDTO>? datas;
  12772. RegionDataDTO({
  12773. this.lang,
  12774. this.datas,
  12775. });
  12776. factory RegionDataDTO.fromJson(Map<String, dynamic> map) {
  12777. return RegionDataDTO(
  12778. lang: map['lang'],
  12779. datas: map['datas'] != null ? (map['datas'] as List).map((e)=>RegionItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12780. );
  12781. }
  12782. Map<String, dynamic> toJson() {
  12783. final map = Map<String, dynamic>();
  12784. if(lang != null) {
  12785. map['lang'] = lang;
  12786. }
  12787. if(datas != null) {
  12788. map['datas'] = datas;
  12789. }
  12790. return map;
  12791. }
  12792. }
  12793. class ReferralRecordSettingDTO extends BaseDTO{
  12794. String? referralRecordSettingCode;
  12795. double limitHours;
  12796. ReferralRecordSettingDTO({
  12797. this.referralRecordSettingCode,
  12798. this.limitHours = 0,
  12799. DateTime? createTime,
  12800. DateTime? updateTime,
  12801. }) : super(
  12802. createTime: createTime,
  12803. updateTime: updateTime,
  12804. );
  12805. factory ReferralRecordSettingDTO.fromJson(Map<String, dynamic> map) {
  12806. return ReferralRecordSettingDTO(
  12807. referralRecordSettingCode: map['ReferralRecordSettingCode'],
  12808. limitHours: double.parse(map['LimitHours'].toString()),
  12809. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12810. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12811. );
  12812. }
  12813. Map<String, dynamic> toJson() {
  12814. final map = super.toJson();
  12815. if(referralRecordSettingCode != null)
  12816. map['ReferralRecordSettingCode'] = referralRecordSettingCode;
  12817. map['LimitHours'] = limitHours;
  12818. return map;
  12819. }
  12820. }
  12821. class CreatePaymentRecordResultDTO {
  12822. String? paymentRecordCode;
  12823. CreatePaymentRecordResultDTO({
  12824. this.paymentRecordCode,
  12825. });
  12826. factory CreatePaymentRecordResultDTO.fromJson(Map<String, dynamic> map) {
  12827. return CreatePaymentRecordResultDTO(
  12828. paymentRecordCode: map['PaymentRecordCode'],
  12829. );
  12830. }
  12831. Map<String, dynamic> toJson() {
  12832. final map = Map<String, dynamic>();
  12833. if(paymentRecordCode != null) {
  12834. map['PaymentRecordCode'] = paymentRecordCode;
  12835. }
  12836. return map;
  12837. }
  12838. }
  12839. class CreateProductDTO extends BaseDTO{
  12840. String? productCode;
  12841. CreateProductDTO({
  12842. this.productCode,
  12843. DateTime? createTime,
  12844. DateTime? updateTime,
  12845. }) : super(
  12846. createTime: createTime,
  12847. updateTime: updateTime,
  12848. );
  12849. factory CreateProductDTO.fromJson(Map<String, dynamic> map) {
  12850. return CreateProductDTO(
  12851. productCode: map['ProductCode'],
  12852. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12853. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12854. );
  12855. }
  12856. Map<String, dynamic> toJson() {
  12857. final map = super.toJson();
  12858. if(productCode != null)
  12859. map['ProductCode'] = productCode;
  12860. return map;
  12861. }
  12862. }
  12863. class PaymentRecordDTO extends BaseDTO{
  12864. String? orderCode;
  12865. double payAmount;
  12866. DateTime? payTime;
  12867. PayStatusEnum payStatus;
  12868. PayTypeEnum payType;
  12869. String? payReqContent;
  12870. String? payResContent;
  12871. PaymentRecordDTO({
  12872. this.orderCode,
  12873. this.payAmount = 0,
  12874. this.payTime,
  12875. this.payStatus = PayStatusEnum.NoPay,
  12876. this.payType = PayTypeEnum.Alipay_PAGE,
  12877. this.payReqContent,
  12878. this.payResContent,
  12879. DateTime? createTime,
  12880. DateTime? updateTime,
  12881. }) : super(
  12882. createTime: createTime,
  12883. updateTime: updateTime,
  12884. );
  12885. factory PaymentRecordDTO.fromJson(Map<String, dynamic> map) {
  12886. return PaymentRecordDTO(
  12887. orderCode: map['OrderCode'],
  12888. payAmount: double.parse(map['PayAmount'].toString()),
  12889. payTime: map['PayTime'] != null ? DateTime.parse(map['PayTime']) : null,
  12890. payStatus: PayStatusEnum.values.firstWhere((e) => e.index == map['PayStatus']),
  12891. payType: PayTypeEnum.values.firstWhere((e) => e.index == map['PayType']),
  12892. payReqContent: map['PayReqContent'],
  12893. payResContent: map['PayResContent'],
  12894. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12895. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12896. );
  12897. }
  12898. Map<String, dynamic> toJson() {
  12899. final map = super.toJson();
  12900. if(orderCode != null)
  12901. map['OrderCode'] = orderCode;
  12902. map['PayAmount'] = payAmount;
  12903. if(payTime != null)
  12904. map['PayTime'] = JsonRpcUtils.dateFormat(payTime!);
  12905. map['PayStatus'] = payStatus.index;
  12906. map['PayType'] = payType.index;
  12907. if(payReqContent != null)
  12908. map['PayReqContent'] = payReqContent;
  12909. if(payResContent != null)
  12910. map['PayResContent'] = payResContent;
  12911. return map;
  12912. }
  12913. }
  12914. class ProductDetailDTO extends BaseDTO{
  12915. String? code;
  12916. String? name;
  12917. String? headImage;
  12918. double price;
  12919. ProductStatusEnum status;
  12920. ProductTypeEnum productType;
  12921. String? belongerCode;
  12922. String? relationInfo;
  12923. ProductDetailDTO({
  12924. this.code,
  12925. this.name,
  12926. this.headImage,
  12927. this.price = 0,
  12928. this.status = ProductStatusEnum.SoldOut,
  12929. this.productType = ProductTypeEnum.Course,
  12930. this.belongerCode,
  12931. this.relationInfo,
  12932. DateTime? createTime,
  12933. DateTime? updateTime,
  12934. }) : super(
  12935. createTime: createTime,
  12936. updateTime: updateTime,
  12937. );
  12938. factory ProductDetailDTO.fromJson(Map<String, dynamic> map) {
  12939. return ProductDetailDTO(
  12940. code: map['Code'],
  12941. name: map['Name'],
  12942. headImage: map['HeadImage'],
  12943. price: double.parse(map['Price'].toString()),
  12944. status: ProductStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  12945. productType: ProductTypeEnum.values.firstWhere((e) => e.index == map['ProductType']),
  12946. belongerCode: map['BelongerCode'],
  12947. relationInfo: map['RelationInfo'],
  12948. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12949. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12950. );
  12951. }
  12952. Map<String, dynamic> toJson() {
  12953. final map = super.toJson();
  12954. if(code != null)
  12955. map['Code'] = code;
  12956. if(name != null)
  12957. map['Name'] = name;
  12958. if(headImage != null)
  12959. map['HeadImage'] = headImage;
  12960. map['Price'] = price;
  12961. map['Status'] = status.index;
  12962. map['ProductType'] = productType.index;
  12963. if(belongerCode != null)
  12964. map['BelongerCode'] = belongerCode;
  12965. if(relationInfo != null)
  12966. map['RelationInfo'] = relationInfo;
  12967. return map;
  12968. }
  12969. }
  12970. class UpdateOrderResultDTO {
  12971. bool isSuccess;
  12972. UpdateOrderResultDTO({
  12973. this.isSuccess = false,
  12974. });
  12975. factory UpdateOrderResultDTO.fromJson(Map<String, dynamic> map) {
  12976. return UpdateOrderResultDTO(
  12977. isSuccess: map['IsSuccess'],
  12978. );
  12979. }
  12980. Map<String, dynamic> toJson() {
  12981. final map = Map<String, dynamic>();
  12982. map['IsSuccess'] = isSuccess;
  12983. return map;
  12984. }
  12985. }
  12986. class UpdatePaymentRecordResultDTO {
  12987. bool isSuccess;
  12988. UpdatePaymentRecordResultDTO({
  12989. this.isSuccess = false,
  12990. });
  12991. factory UpdatePaymentRecordResultDTO.fromJson(Map<String, dynamic> map) {
  12992. return UpdatePaymentRecordResultDTO(
  12993. isSuccess: map['IsSuccess'],
  12994. );
  12995. }
  12996. Map<String, dynamic> toJson() {
  12997. final map = Map<String, dynamic>();
  12998. map['IsSuccess'] = isSuccess;
  12999. return map;
  13000. }
  13001. }
  13002. class UpdateProductDTO {
  13003. bool isSuccess;
  13004. UpdateProductDTO({
  13005. this.isSuccess = false,
  13006. });
  13007. factory UpdateProductDTO.fromJson(Map<String, dynamic> map) {
  13008. return UpdateProductDTO(
  13009. isSuccess: map['IsSuccess'],
  13010. );
  13011. }
  13012. Map<String, dynamic> toJson() {
  13013. final map = Map<String, dynamic>();
  13014. map['IsSuccess'] = isSuccess;
  13015. return map;
  13016. }
  13017. }
  13018. class StatisticDetailSettingDTO {
  13019. String? cMSTemplateCode;
  13020. StatisticDetailSettingDTO({
  13021. this.cMSTemplateCode,
  13022. });
  13023. factory StatisticDetailSettingDTO.fromJson(Map<String, dynamic> map) {
  13024. return StatisticDetailSettingDTO(
  13025. cMSTemplateCode: map['CMSTemplateCode'],
  13026. );
  13027. }
  13028. Map<String, dynamic> toJson() {
  13029. final map = Map<String, dynamic>();
  13030. if(cMSTemplateCode != null) {
  13031. map['CMSTemplateCode'] = cMSTemplateCode;
  13032. }
  13033. return map;
  13034. }
  13035. }
  13036. class ClientInfoDTO {
  13037. String? clientId;
  13038. String? name;
  13039. bool isReaded;
  13040. DateTime? deliveryTime;
  13041. DateTime? readTime;
  13042. ClientInfoDTO({
  13043. this.clientId,
  13044. this.name,
  13045. this.isReaded = false,
  13046. this.deliveryTime,
  13047. this.readTime,
  13048. });
  13049. factory ClientInfoDTO.fromJson(Map<String, dynamic> map) {
  13050. return ClientInfoDTO(
  13051. clientId: map['ClientId'],
  13052. name: map['Name'],
  13053. isReaded: map['IsReaded'],
  13054. deliveryTime: map['DeliveryTime'] != null ? DateTime.parse(map['DeliveryTime']) : null,
  13055. readTime: map['ReadTime'] != null ? DateTime.parse(map['ReadTime']) : null,
  13056. );
  13057. }
  13058. Map<String, dynamic> toJson() {
  13059. final map = Map<String, dynamic>();
  13060. if(clientId != null) {
  13061. map['ClientId'] = clientId;
  13062. }
  13063. if(name != null) {
  13064. map['Name'] = name;
  13065. }
  13066. map['IsReaded'] = isReaded;
  13067. if(deliveryTime != null) {
  13068. map['DeliveryTime'] = JsonRpcUtils.dateFormat(deliveryTime!);
  13069. }
  13070. if(readTime != null) {
  13071. map['ReadTime'] = JsonRpcUtils.dateFormat(readTime!);
  13072. }
  13073. return map;
  13074. }
  13075. }
  13076. class MessageInfoDTO extends BaseDTO{
  13077. String? code;
  13078. NotificationTypeEnum notificationType;
  13079. String? content;
  13080. String? serverHost;
  13081. DateTime? notifyTime;
  13082. ApplicantTypeEnum receiverType;
  13083. TransactionTypeEnum transactionType;
  13084. String? relevanceCode;
  13085. List<ClientInfoDTO>? clientInfos;
  13086. MessageInfoDTO({
  13087. this.code,
  13088. this.notificationType = NotificationTypeEnum.Unknown,
  13089. this.content,
  13090. this.serverHost,
  13091. this.notifyTime,
  13092. this.receiverType = ApplicantTypeEnum.Client,
  13093. this.transactionType = TransactionTypeEnum.Consultion,
  13094. this.relevanceCode,
  13095. this.clientInfos,
  13096. DateTime? createTime,
  13097. DateTime? updateTime,
  13098. }) : super(
  13099. createTime: createTime,
  13100. updateTime: updateTime,
  13101. );
  13102. factory MessageInfoDTO.fromJson(Map<String, dynamic> map) {
  13103. return MessageInfoDTO(
  13104. code: map['Code'],
  13105. notificationType: NotificationTypeEnum.values.firstWhere((e) => e.index == map['NotificationType']),
  13106. content: map['Content'],
  13107. serverHost: map['ServerHost'],
  13108. notifyTime: map['NotifyTime'] != null ? DateTime.parse(map['NotifyTime']) : null,
  13109. receiverType: ApplicantTypeEnum.values.firstWhere((e) => e.index == map['ReceiverType']),
  13110. transactionType: TransactionTypeEnum.values.firstWhere((e) => e.index == map['TransactionType']),
  13111. relevanceCode: map['RelevanceCode'],
  13112. clientInfos: map['ClientInfos'] != null ? (map['ClientInfos'] as List).map((e)=>ClientInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13113. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13114. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13115. );
  13116. }
  13117. Map<String, dynamic> toJson() {
  13118. final map = super.toJson();
  13119. if(code != null)
  13120. map['Code'] = code;
  13121. map['NotificationType'] = notificationType.index;
  13122. if(content != null)
  13123. map['Content'] = content;
  13124. if(serverHost != null)
  13125. map['ServerHost'] = serverHost;
  13126. if(notifyTime != null)
  13127. map['NotifyTime'] = JsonRpcUtils.dateFormat(notifyTime!);
  13128. map['ReceiverType'] = receiverType.index;
  13129. map['TransactionType'] = transactionType.index;
  13130. if(relevanceCode != null)
  13131. map['RelevanceCode'] = relevanceCode;
  13132. if(clientInfos != null)
  13133. map['ClientInfos'] = clientInfos;
  13134. return map;
  13135. }
  13136. }
  13137. class OutputUnitDTO {
  13138. int unit;
  13139. OutputUnitDTO({
  13140. this.unit = 0,
  13141. });
  13142. factory OutputUnitDTO.fromJson(Map<String, dynamic> map) {
  13143. return OutputUnitDTO(
  13144. unit: map['Unit'],
  13145. );
  13146. }
  13147. Map<String, dynamic> toJson() {
  13148. final map = Map<String, dynamic>();
  13149. map['Unit'] = unit;
  13150. return map;
  13151. }
  13152. }
  13153. class FormularMetaDTO {
  13154. String? name;
  13155. FormularMetaDTO({
  13156. this.name,
  13157. });
  13158. factory FormularMetaDTO.fromJson(Map<String, dynamic> map) {
  13159. return FormularMetaDTO(
  13160. name: map['Name'],
  13161. );
  13162. }
  13163. Map<String, dynamic> toJson() {
  13164. final map = Map<String, dynamic>();
  13165. if(name != null) {
  13166. map['Name'] = name;
  13167. }
  13168. return map;
  13169. }
  13170. }
  13171. class MeasuredValueDTO {
  13172. String? typeName;
  13173. String? name;
  13174. String? description;
  13175. bool worksheetAffinity;
  13176. String? briefDescription;
  13177. String? value;
  13178. Unit unit;
  13179. Unit targetUnit;
  13180. MeasuredValueDTO({
  13181. this.typeName,
  13182. this.name,
  13183. this.description,
  13184. this.worksheetAffinity = false,
  13185. this.briefDescription,
  13186. this.value,
  13187. this.unit = Unit.None,
  13188. this.targetUnit = Unit.None,
  13189. });
  13190. factory MeasuredValueDTO.fromJson(Map<String, dynamic> map) {
  13191. return MeasuredValueDTO(
  13192. typeName: map['TypeName'],
  13193. name: map['Name'],
  13194. description: map['Description'],
  13195. worksheetAffinity: map['WorksheetAffinity'],
  13196. briefDescription: map['BriefDescription'],
  13197. value: map['Value'],
  13198. unit: Unit.values.firstWhere((e) => e.index == map['Unit']),
  13199. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  13200. );
  13201. }
  13202. Map<String, dynamic> toJson() {
  13203. final map = Map<String, dynamic>();
  13204. if(typeName != null) {
  13205. map['TypeName'] = typeName;
  13206. }
  13207. if(name != null) {
  13208. map['Name'] = name;
  13209. }
  13210. if(description != null) {
  13211. map['Description'] = description;
  13212. }
  13213. map['WorksheetAffinity'] = worksheetAffinity;
  13214. if(briefDescription != null) {
  13215. map['BriefDescription'] = briefDescription;
  13216. }
  13217. if(value != null) {
  13218. map['Value'] = value;
  13219. }
  13220. map['Unit'] = unit.index;
  13221. map['TargetUnit'] = targetUnit.index;
  13222. return map;
  13223. }
  13224. }
  13225. class MeasuredFeatureDTO {
  13226. String? typeName;
  13227. String? creator;
  13228. String? guid;
  13229. bool showChildFeatures;
  13230. DateTime? timeStamp;
  13231. bool isAutoCalculated;
  13232. List<MeasuredValueDTO>? values;
  13233. List<MeasuredFeatureDTO>? childFeatures;
  13234. MeasuredFeatureDTO({
  13235. this.typeName,
  13236. this.creator,
  13237. this.guid,
  13238. this.showChildFeatures = false,
  13239. this.timeStamp,
  13240. this.isAutoCalculated = false,
  13241. this.values,
  13242. this.childFeatures,
  13243. });
  13244. factory MeasuredFeatureDTO.fromJson(Map<String, dynamic> map) {
  13245. return MeasuredFeatureDTO(
  13246. typeName: map['TypeName'],
  13247. creator: map['Creator'],
  13248. guid: map['Guid'],
  13249. showChildFeatures: map['ShowChildFeatures'],
  13250. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  13251. isAutoCalculated: map['IsAutoCalculated'],
  13252. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13253. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13254. );
  13255. }
  13256. Map<String, dynamic> toJson() {
  13257. final map = Map<String, dynamic>();
  13258. if(typeName != null) {
  13259. map['TypeName'] = typeName;
  13260. }
  13261. if(creator != null) {
  13262. map['Creator'] = creator;
  13263. }
  13264. if(guid != null) {
  13265. map['Guid'] = guid;
  13266. }
  13267. map['ShowChildFeatures'] = showChildFeatures;
  13268. if(timeStamp != null) {
  13269. map['TimeStamp'] = JsonRpcUtils.dateFormat(timeStamp!);
  13270. }
  13271. map['IsAutoCalculated'] = isAutoCalculated;
  13272. if(values != null) {
  13273. map['Values'] = values;
  13274. }
  13275. if(childFeatures != null) {
  13276. map['ChildFeatures'] = childFeatures;
  13277. }
  13278. return map;
  13279. }
  13280. }
  13281. class MeasureExportRecordDTO {
  13282. String? languageCode;
  13283. List<MeasureExportDetailDTO>? remedicalMeasuredInfoCodes;
  13284. String? exportFileToken;
  13285. DateTime? createTime;
  13286. DateTime? updateTime;
  13287. MeasureExportRecordDTO({
  13288. this.languageCode,
  13289. this.remedicalMeasuredInfoCodes,
  13290. this.exportFileToken,
  13291. this.createTime,
  13292. this.updateTime,
  13293. });
  13294. factory MeasureExportRecordDTO.fromJson(Map<String, dynamic> map) {
  13295. return MeasureExportRecordDTO(
  13296. languageCode: map['LanguageCode'],
  13297. remedicalMeasuredInfoCodes: map['RemedicalMeasuredInfoCodes'] != null ? (map['RemedicalMeasuredInfoCodes'] as List).map((e)=>MeasureExportDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13298. exportFileToken: map['ExportFileToken'],
  13299. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13300. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13301. );
  13302. }
  13303. Map<String, dynamic> toJson() {
  13304. final map = Map<String, dynamic>();
  13305. if(languageCode != null) {
  13306. map['LanguageCode'] = languageCode;
  13307. }
  13308. if(remedicalMeasuredInfoCodes != null) {
  13309. map['RemedicalMeasuredInfoCodes'] = remedicalMeasuredInfoCodes;
  13310. }
  13311. if(exportFileToken != null) {
  13312. map['ExportFileToken'] = exportFileToken;
  13313. }
  13314. if(createTime != null) {
  13315. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  13316. }
  13317. if(updateTime != null) {
  13318. map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
  13319. }
  13320. return map;
  13321. }
  13322. }
  13323. class MeasureItemDTO {
  13324. String? name;
  13325. String? description;
  13326. String? briefAnnotation;
  13327. String? typeName;
  13328. MeasureItemDTO({
  13329. this.name,
  13330. this.description,
  13331. this.briefAnnotation,
  13332. this.typeName,
  13333. });
  13334. factory MeasureItemDTO.fromJson(Map<String, dynamic> map) {
  13335. return MeasureItemDTO(
  13336. name: map['Name'],
  13337. description: map['Description'],
  13338. briefAnnotation: map['BriefAnnotation'],
  13339. typeName: map['TypeName'],
  13340. );
  13341. }
  13342. Map<String, dynamic> toJson() {
  13343. final map = Map<String, dynamic>();
  13344. if(name != null) {
  13345. map['Name'] = name;
  13346. }
  13347. if(description != null) {
  13348. map['Description'] = description;
  13349. }
  13350. if(briefAnnotation != null) {
  13351. map['BriefAnnotation'] = briefAnnotation;
  13352. }
  13353. if(typeName != null) {
  13354. map['TypeName'] = typeName;
  13355. }
  13356. return map;
  13357. }
  13358. }
  13359. class MeasureResultExcelDTO {
  13360. String? number;
  13361. String? measureItem;
  13362. String? measureResult;
  13363. MeasureResultExcelDTO({
  13364. this.number,
  13365. this.measureItem,
  13366. this.measureResult,
  13367. });
  13368. factory MeasureResultExcelDTO.fromJson(Map<String, dynamic> map) {
  13369. return MeasureResultExcelDTO(
  13370. number: map['Number'],
  13371. measureItem: map['MeasureItem'],
  13372. measureResult: map['MeasureResult'],
  13373. );
  13374. }
  13375. Map<String, dynamic> toJson() {
  13376. final map = Map<String, dynamic>();
  13377. if(number != null) {
  13378. map['Number'] = number;
  13379. }
  13380. if(measureItem != null) {
  13381. map['MeasureItem'] = measureItem;
  13382. }
  13383. if(measureResult != null) {
  13384. map['MeasureResult'] = measureResult;
  13385. }
  13386. return map;
  13387. }
  13388. }
  13389. class MultiMethodItemDTO extends MeasureItemDTO{
  13390. MultiMethodItemDTO({
  13391. String? name,
  13392. String? description,
  13393. String? briefAnnotation,
  13394. String? typeName,
  13395. }) : super(
  13396. name: name,
  13397. description: description,
  13398. briefAnnotation: briefAnnotation,
  13399. typeName: typeName,
  13400. );
  13401. factory MultiMethodItemDTO.fromJson(Map<String, dynamic> map) {
  13402. return MultiMethodItemDTO(
  13403. name: map['Name'],
  13404. description: map['Description'],
  13405. briefAnnotation: map['BriefAnnotation'],
  13406. typeName: map['TypeName'],
  13407. );
  13408. }
  13409. Map<String, dynamic> toJson() {
  13410. final map = super.toJson();
  13411. return map;
  13412. }
  13413. }
  13414. class UserDefinedMeasureApplicationDTO {
  13415. String? version;
  13416. String? id;
  13417. String? categoryName;
  13418. List<UserDefinedMeasureModeDTO>? modes;
  13419. UserDefinedMeasureApplicationDTO({
  13420. this.version,
  13421. this.id,
  13422. this.categoryName,
  13423. this.modes,
  13424. });
  13425. factory UserDefinedMeasureApplicationDTO.fromJson(Map<String, dynamic> map) {
  13426. return UserDefinedMeasureApplicationDTO(
  13427. version: map['Version'],
  13428. id: map['Id'],
  13429. categoryName: map['CategoryName'],
  13430. modes: map['Modes'] != null ? (map['Modes'] as List).map((e)=>UserDefinedMeasureModeDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13431. );
  13432. }
  13433. Map<String, dynamic> toJson() {
  13434. final map = Map<String, dynamic>();
  13435. if(version != null) {
  13436. map['Version'] = version;
  13437. }
  13438. if(id != null) {
  13439. map['Id'] = id;
  13440. }
  13441. if(categoryName != null) {
  13442. map['CategoryName'] = categoryName;
  13443. }
  13444. if(modes != null) {
  13445. map['Modes'] = modes;
  13446. }
  13447. return map;
  13448. }
  13449. }
  13450. class UserDefinedCommentDataDTO {
  13451. String? version;
  13452. String? languageCode;
  13453. String? categoryName;
  13454. String? applicationName;
  13455. List<CommentItemDTO>? commentItems;
  13456. UserDefinedCommentDataDTO({
  13457. this.version,
  13458. this.languageCode,
  13459. this.categoryName,
  13460. this.applicationName,
  13461. this.commentItems,
  13462. });
  13463. factory UserDefinedCommentDataDTO.fromJson(Map<String, dynamic> map) {
  13464. return UserDefinedCommentDataDTO(
  13465. version: map['Version'],
  13466. languageCode: map['LanguageCode'],
  13467. categoryName: map['CategoryName'],
  13468. applicationName: map['ApplicationName'],
  13469. commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>CommentItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13470. );
  13471. }
  13472. Map<String, dynamic> toJson() {
  13473. final map = Map<String, dynamic>();
  13474. if(version != null) {
  13475. map['Version'] = version;
  13476. }
  13477. if(languageCode != null) {
  13478. map['LanguageCode'] = languageCode;
  13479. }
  13480. if(categoryName != null) {
  13481. map['CategoryName'] = categoryName;
  13482. }
  13483. if(applicationName != null) {
  13484. map['ApplicationName'] = applicationName;
  13485. }
  13486. if(commentItems != null) {
  13487. map['CommentItems'] = commentItems;
  13488. }
  13489. return map;
  13490. }
  13491. }
  13492. class UserDefinedMeasureInfoDTO {
  13493. String? userId;
  13494. Map<String,String>? systemSettings;
  13495. List<UserDefinedMeasureApplicationDTO>? measureApplications;
  13496. List<UserDefinedCommentDataDTO>? commentItems;
  13497. UserDefinedMeasureInfoDTO({
  13498. this.userId,
  13499. this.systemSettings,
  13500. this.measureApplications,
  13501. this.commentItems,
  13502. });
  13503. factory UserDefinedMeasureInfoDTO.fromJson(Map<String, dynamic> map) {
  13504. return UserDefinedMeasureInfoDTO(
  13505. userId: map['UserId'],
  13506. systemSettings: map['SystemSettings']?.cast<String,String>(),
  13507. measureApplications: map['MeasureApplications'] != null ? (map['MeasureApplications'] as List).map((e)=>UserDefinedMeasureApplicationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13508. commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>UserDefinedCommentDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13509. );
  13510. }
  13511. Map<String, dynamic> toJson() {
  13512. final map = Map<String, dynamic>();
  13513. if(userId != null) {
  13514. map['UserId'] = userId;
  13515. }
  13516. if(systemSettings != null) {
  13517. map['SystemSettings'] = systemSettings;
  13518. }
  13519. if(measureApplications != null) {
  13520. map['MeasureApplications'] = measureApplications;
  13521. }
  13522. if(commentItems != null) {
  13523. map['CommentItems'] = commentItems;
  13524. }
  13525. return map;
  13526. }
  13527. }
  13528. class AbRatioDTO extends MultiMethodItemDTO{
  13529. AbRatioDTO({
  13530. String? name,
  13531. String? description,
  13532. String? briefAnnotation,
  13533. String? typeName,
  13534. }) : super(
  13535. name: name,
  13536. description: description,
  13537. briefAnnotation: briefAnnotation,
  13538. typeName: typeName,
  13539. );
  13540. factory AbRatioDTO.fromJson(Map<String, dynamic> map) {
  13541. return AbRatioDTO(
  13542. name: map['Name'],
  13543. description: map['Description'],
  13544. briefAnnotation: map['BriefAnnotation'],
  13545. typeName: map['TypeName'],
  13546. );
  13547. }
  13548. Map<String, dynamic> toJson() {
  13549. final map = super.toJson();
  13550. return map;
  13551. }
  13552. }
  13553. class AngleDTO extends MeasureItemDTO{
  13554. AngleDTO({
  13555. String? name,
  13556. String? description,
  13557. String? briefAnnotation,
  13558. String? typeName,
  13559. }) : super(
  13560. name: name,
  13561. description: description,
  13562. briefAnnotation: briefAnnotation,
  13563. typeName: typeName,
  13564. );
  13565. factory AngleDTO.fromJson(Map<String, dynamic> map) {
  13566. return AngleDTO(
  13567. name: map['Name'],
  13568. description: map['Description'],
  13569. briefAnnotation: map['BriefAnnotation'],
  13570. typeName: map['TypeName'],
  13571. );
  13572. }
  13573. Map<String, dynamic> toJson() {
  13574. final map = super.toJson();
  13575. return map;
  13576. }
  13577. }
  13578. class AreaPerimeterDTO extends MultiMethodItemDTO{
  13579. AreaPerimeterDTO({
  13580. String? name,
  13581. String? description,
  13582. String? briefAnnotation,
  13583. String? typeName,
  13584. }) : super(
  13585. name: name,
  13586. description: description,
  13587. briefAnnotation: briefAnnotation,
  13588. typeName: typeName,
  13589. );
  13590. factory AreaPerimeterDTO.fromJson(Map<String, dynamic> map) {
  13591. return AreaPerimeterDTO(
  13592. name: map['Name'],
  13593. description: map['Description'],
  13594. briefAnnotation: map['BriefAnnotation'],
  13595. typeName: map['TypeName'],
  13596. );
  13597. }
  13598. Map<String, dynamic> toJson() {
  13599. final map = super.toJson();
  13600. return map;
  13601. }
  13602. }
  13603. class CircleDTO extends MeasureItemDTO{
  13604. CircleDTO({
  13605. String? name,
  13606. String? description,
  13607. String? briefAnnotation,
  13608. String? typeName,
  13609. }) : super(
  13610. name: name,
  13611. description: description,
  13612. briefAnnotation: briefAnnotation,
  13613. typeName: typeName,
  13614. );
  13615. factory CircleDTO.fromJson(Map<String, dynamic> map) {
  13616. return CircleDTO(
  13617. name: map['Name'],
  13618. description: map['Description'],
  13619. briefAnnotation: map['BriefAnnotation'],
  13620. typeName: map['TypeName'],
  13621. );
  13622. }
  13623. Map<String, dynamic> toJson() {
  13624. final map = super.toJson();
  13625. return map;
  13626. }
  13627. }
  13628. class CurveLengthDTO extends MultiMethodItemDTO{
  13629. CurveLengthDTO({
  13630. String? name,
  13631. String? description,
  13632. String? briefAnnotation,
  13633. String? typeName,
  13634. }) : super(
  13635. name: name,
  13636. description: description,
  13637. briefAnnotation: briefAnnotation,
  13638. typeName: typeName,
  13639. );
  13640. factory CurveLengthDTO.fromJson(Map<String, dynamic> map) {
  13641. return CurveLengthDTO(
  13642. name: map['Name'],
  13643. description: map['Description'],
  13644. briefAnnotation: map['BriefAnnotation'],
  13645. typeName: map['TypeName'],
  13646. );
  13647. }
  13648. Map<String, dynamic> toJson() {
  13649. final map = super.toJson();
  13650. return map;
  13651. }
  13652. }
  13653. class EllipseDTO extends MeasureItemDTO{
  13654. EllipseDTO({
  13655. String? name,
  13656. String? description,
  13657. String? briefAnnotation,
  13658. String? typeName,
  13659. }) : super(
  13660. name: name,
  13661. description: description,
  13662. briefAnnotation: briefAnnotation,
  13663. typeName: typeName,
  13664. );
  13665. factory EllipseDTO.fromJson(Map<String, dynamic> map) {
  13666. return EllipseDTO(
  13667. name: map['Name'],
  13668. description: map['Description'],
  13669. briefAnnotation: map['BriefAnnotation'],
  13670. typeName: map['TypeName'],
  13671. );
  13672. }
  13673. Map<String, dynamic> toJson() {
  13674. final map = super.toJson();
  13675. return map;
  13676. }
  13677. }
  13678. class LocationDTO extends MeasureItemDTO{
  13679. LocationDTO({
  13680. String? name,
  13681. String? description,
  13682. String? briefAnnotation,
  13683. String? typeName,
  13684. }) : super(
  13685. name: name,
  13686. description: description,
  13687. briefAnnotation: briefAnnotation,
  13688. typeName: typeName,
  13689. );
  13690. factory LocationDTO.fromJson(Map<String, dynamic> map) {
  13691. return LocationDTO(
  13692. name: map['Name'],
  13693. description: map['Description'],
  13694. briefAnnotation: map['BriefAnnotation'],
  13695. typeName: map['TypeName'],
  13696. );
  13697. }
  13698. Map<String, dynamic> toJson() {
  13699. final map = super.toJson();
  13700. return map;
  13701. }
  13702. }
  13703. class LWHStraightLineDTO extends MeasureItemDTO{
  13704. LWHStraightLineDTO({
  13705. String? name,
  13706. String? description,
  13707. String? briefAnnotation,
  13708. String? typeName,
  13709. }) : super(
  13710. name: name,
  13711. description: description,
  13712. briefAnnotation: briefAnnotation,
  13713. typeName: typeName,
  13714. );
  13715. factory LWHStraightLineDTO.fromJson(Map<String, dynamic> map) {
  13716. return LWHStraightLineDTO(
  13717. name: map['Name'],
  13718. description: map['Description'],
  13719. briefAnnotation: map['BriefAnnotation'],
  13720. typeName: map['TypeName'],
  13721. );
  13722. }
  13723. Map<String, dynamic> toJson() {
  13724. final map = super.toJson();
  13725. return map;
  13726. }
  13727. }
  13728. class PolylineDTO extends MeasureItemDTO{
  13729. PolylineDTO({
  13730. String? name,
  13731. String? description,
  13732. String? briefAnnotation,
  13733. String? typeName,
  13734. }) : super(
  13735. name: name,
  13736. description: description,
  13737. briefAnnotation: briefAnnotation,
  13738. typeName: typeName,
  13739. );
  13740. factory PolylineDTO.fromJson(Map<String, dynamic> map) {
  13741. return PolylineDTO(
  13742. name: map['Name'],
  13743. description: map['Description'],
  13744. briefAnnotation: map['BriefAnnotation'],
  13745. typeName: map['TypeName'],
  13746. );
  13747. }
  13748. Map<String, dynamic> toJson() {
  13749. final map = super.toJson();
  13750. return map;
  13751. }
  13752. }
  13753. class RectDTO extends MeasureItemDTO{
  13754. RectDTO({
  13755. String? name,
  13756. String? description,
  13757. String? briefAnnotation,
  13758. String? typeName,
  13759. }) : super(
  13760. name: name,
  13761. description: description,
  13762. briefAnnotation: briefAnnotation,
  13763. typeName: typeName,
  13764. );
  13765. factory RectDTO.fromJson(Map<String, dynamic> map) {
  13766. return RectDTO(
  13767. name: map['Name'],
  13768. description: map['Description'],
  13769. briefAnnotation: map['BriefAnnotation'],
  13770. typeName: map['TypeName'],
  13771. );
  13772. }
  13773. Map<String, dynamic> toJson() {
  13774. final map = super.toJson();
  13775. return map;
  13776. }
  13777. }
  13778. class StenosisDTO extends MultiMethodItemDTO{
  13779. StenosisDTO({
  13780. String? name,
  13781. String? description,
  13782. String? briefAnnotation,
  13783. String? typeName,
  13784. }) : super(
  13785. name: name,
  13786. description: description,
  13787. briefAnnotation: briefAnnotation,
  13788. typeName: typeName,
  13789. );
  13790. factory StenosisDTO.fromJson(Map<String, dynamic> map) {
  13791. return StenosisDTO(
  13792. name: map['Name'],
  13793. description: map['Description'],
  13794. briefAnnotation: map['BriefAnnotation'],
  13795. typeName: map['TypeName'],
  13796. );
  13797. }
  13798. Map<String, dynamic> toJson() {
  13799. final map = super.toJson();
  13800. return map;
  13801. }
  13802. }
  13803. class StraightLineDTO extends MeasureItemDTO{
  13804. StraightLineDTO({
  13805. String? name,
  13806. String? description,
  13807. String? briefAnnotation,
  13808. String? typeName,
  13809. }) : super(
  13810. name: name,
  13811. description: description,
  13812. briefAnnotation: briefAnnotation,
  13813. typeName: typeName,
  13814. );
  13815. factory StraightLineDTO.fromJson(Map<String, dynamic> map) {
  13816. return StraightLineDTO(
  13817. name: map['Name'],
  13818. description: map['Description'],
  13819. briefAnnotation: map['BriefAnnotation'],
  13820. typeName: map['TypeName'],
  13821. );
  13822. }
  13823. Map<String, dynamic> toJson() {
  13824. final map = super.toJson();
  13825. return map;
  13826. }
  13827. }
  13828. class VolumeDTO extends MultiMethodItemDTO{
  13829. VolumeDTO({
  13830. String? name,
  13831. String? description,
  13832. String? briefAnnotation,
  13833. String? typeName,
  13834. }) : super(
  13835. name: name,
  13836. description: description,
  13837. briefAnnotation: briefAnnotation,
  13838. typeName: typeName,
  13839. );
  13840. factory VolumeDTO.fromJson(Map<String, dynamic> map) {
  13841. return VolumeDTO(
  13842. name: map['Name'],
  13843. description: map['Description'],
  13844. briefAnnotation: map['BriefAnnotation'],
  13845. typeName: map['TypeName'],
  13846. );
  13847. }
  13848. Map<String, dynamic> toJson() {
  13849. final map = super.toJson();
  13850. return map;
  13851. }
  13852. }
  13853. class CardiacAxisFeatureDTO extends MeasuredFeatureDTO{
  13854. String? logicalName;
  13855. String? logicalMode;
  13856. CardiacAxisFeatureDTO({
  13857. String? typeName,
  13858. this.logicalName,
  13859. this.logicalMode,
  13860. String? creator,
  13861. String? guid,
  13862. bool showChildFeatures = false,
  13863. DateTime? timeStamp,
  13864. bool isAutoCalculated = false,
  13865. List<MeasuredValueDTO>? values,
  13866. List<MeasuredFeatureDTO>? childFeatures,
  13867. }) : super(
  13868. typeName: typeName,
  13869. creator: creator,
  13870. guid: guid,
  13871. showChildFeatures: showChildFeatures,
  13872. timeStamp: timeStamp,
  13873. isAutoCalculated: isAutoCalculated,
  13874. values: values,
  13875. childFeatures: childFeatures,
  13876. );
  13877. factory CardiacAxisFeatureDTO.fromJson(Map<String, dynamic> map) {
  13878. return CardiacAxisFeatureDTO(
  13879. typeName: map['TypeName'],
  13880. logicalName: map['LogicalName'],
  13881. logicalMode: map['LogicalMode'],
  13882. creator: map['Creator'],
  13883. guid: map['Guid'],
  13884. showChildFeatures: map['ShowChildFeatures'],
  13885. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  13886. isAutoCalculated: map['IsAutoCalculated'],
  13887. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13888. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13889. );
  13890. }
  13891. Map<String, dynamic> toJson() {
  13892. final map = super.toJson();
  13893. if(logicalName != null)
  13894. map['LogicalName'] = logicalName;
  13895. if(logicalMode != null)
  13896. map['LogicalMode'] = logicalMode;
  13897. return map;
  13898. }
  13899. }
  13900. class CustomCalculatorFeatureDTO extends MeasuredFeatureDTO{
  13901. String? logicalName;
  13902. String? logicalMode;
  13903. CustomCalculatorFeatureDTO({
  13904. String? typeName,
  13905. this.logicalName,
  13906. this.logicalMode,
  13907. String? creator,
  13908. String? guid,
  13909. bool showChildFeatures = false,
  13910. DateTime? timeStamp,
  13911. bool isAutoCalculated = false,
  13912. List<MeasuredValueDTO>? values,
  13913. List<MeasuredFeatureDTO>? childFeatures,
  13914. }) : super(
  13915. typeName: typeName,
  13916. creator: creator,
  13917. guid: guid,
  13918. showChildFeatures: showChildFeatures,
  13919. timeStamp: timeStamp,
  13920. isAutoCalculated: isAutoCalculated,
  13921. values: values,
  13922. childFeatures: childFeatures,
  13923. );
  13924. factory CustomCalculatorFeatureDTO.fromJson(Map<String, dynamic> map) {
  13925. return CustomCalculatorFeatureDTO(
  13926. typeName: map['TypeName'],
  13927. logicalName: map['LogicalName'],
  13928. logicalMode: map['LogicalMode'],
  13929. creator: map['Creator'],
  13930. guid: map['Guid'],
  13931. showChildFeatures: map['ShowChildFeatures'],
  13932. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  13933. isAutoCalculated: map['IsAutoCalculated'],
  13934. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13935. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13936. );
  13937. }
  13938. Map<String, dynamic> toJson() {
  13939. final map = super.toJson();
  13940. if(logicalName != null)
  13941. map['LogicalName'] = logicalName;
  13942. if(logicalMode != null)
  13943. map['LogicalMode'] = logicalMode;
  13944. return map;
  13945. }
  13946. }
  13947. class GeometryFeatureDTO extends MeasuredFeatureDTO{
  13948. bool isVisible;
  13949. String? annotation;
  13950. String? briefAnnotation;
  13951. Unit xUnit;
  13952. Unit yUnit;
  13953. bool showAnnotation;
  13954. bool showCalliper;
  13955. List<PointDTO>? points;
  13956. GeometryFeatureDTO({
  13957. this.isVisible = false,
  13958. this.annotation,
  13959. this.briefAnnotation,
  13960. this.xUnit = Unit.None,
  13961. this.yUnit = Unit.None,
  13962. this.showAnnotation = false,
  13963. this.showCalliper = false,
  13964. this.points,
  13965. String? typeName,
  13966. String? creator,
  13967. String? guid,
  13968. bool showChildFeatures = false,
  13969. DateTime? timeStamp,
  13970. bool isAutoCalculated = false,
  13971. List<MeasuredValueDTO>? values,
  13972. List<MeasuredFeatureDTO>? childFeatures,
  13973. }) : super(
  13974. typeName: typeName,
  13975. creator: creator,
  13976. guid: guid,
  13977. showChildFeatures: showChildFeatures,
  13978. timeStamp: timeStamp,
  13979. isAutoCalculated: isAutoCalculated,
  13980. values: values,
  13981. childFeatures: childFeatures,
  13982. );
  13983. factory GeometryFeatureDTO.fromJson(Map<String, dynamic> map) {
  13984. return GeometryFeatureDTO(
  13985. isVisible: map['IsVisible'],
  13986. annotation: map['Annotation'],
  13987. briefAnnotation: map['BriefAnnotation'],
  13988. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  13989. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  13990. showAnnotation: map['ShowAnnotation'],
  13991. showCalliper: map['ShowCalliper'],
  13992. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13993. typeName: map['TypeName'],
  13994. creator: map['Creator'],
  13995. guid: map['Guid'],
  13996. showChildFeatures: map['ShowChildFeatures'],
  13997. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  13998. isAutoCalculated: map['IsAutoCalculated'],
  13999. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14000. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14001. );
  14002. }
  14003. Map<String, dynamic> toJson() {
  14004. final map = super.toJson();
  14005. map['IsVisible'] = isVisible;
  14006. if(annotation != null)
  14007. map['Annotation'] = annotation;
  14008. if(briefAnnotation != null)
  14009. map['BriefAnnotation'] = briefAnnotation;
  14010. map['XUnit'] = xUnit.index;
  14011. map['YUnit'] = yUnit.index;
  14012. map['ShowAnnotation'] = showAnnotation;
  14013. map['ShowCalliper'] = showCalliper;
  14014. if(points != null)
  14015. map['Points'] = points;
  14016. return map;
  14017. }
  14018. }
  14019. class CardiacCycleDTO {
  14020. int index;
  14021. PointDTO? systoleStart;
  14022. PointDTO? diastoleEnd;
  14023. PointDTO? peakSystolic;
  14024. PointDTO? minimumAbsoluteVelocity;
  14025. CardiacCycleDTO({
  14026. this.index = 0,
  14027. this.systoleStart,
  14028. this.diastoleEnd,
  14029. this.peakSystolic,
  14030. this.minimumAbsoluteVelocity,
  14031. });
  14032. factory CardiacCycleDTO.fromJson(Map<String, dynamic> map) {
  14033. return CardiacCycleDTO(
  14034. index: map['Index'],
  14035. systoleStart: map['SystoleStart'] != null ? PointDTO.fromJson(map['SystoleStart']) : null,
  14036. diastoleEnd: map['DiastoleEnd'] != null ? PointDTO.fromJson(map['DiastoleEnd']) : null,
  14037. peakSystolic: map['PeakSystolic'] != null ? PointDTO.fromJson(map['PeakSystolic']) : null,
  14038. minimumAbsoluteVelocity: map['MinimumAbsoluteVelocity'] != null ? PointDTO.fromJson(map['MinimumAbsoluteVelocity']) : null,
  14039. );
  14040. }
  14041. Map<String, dynamic> toJson() {
  14042. final map = Map<String, dynamic>();
  14043. map['Index'] = index;
  14044. if(systoleStart != null) {
  14045. map['SystoleStart'] = systoleStart;
  14046. }
  14047. if(diastoleEnd != null) {
  14048. map['DiastoleEnd'] = diastoleEnd;
  14049. }
  14050. if(peakSystolic != null) {
  14051. map['PeakSystolic'] = peakSystolic;
  14052. }
  14053. if(minimumAbsoluteVelocity != null) {
  14054. map['MinimumAbsoluteVelocity'] = minimumAbsoluteVelocity;
  14055. }
  14056. return map;
  14057. }
  14058. }
  14059. class GrowthPercentileDTO {
  14060. int oBTableCategory;
  14061. String? tableAuthor;
  14062. String? measureItem;
  14063. int gAinDays;
  14064. int status;
  14065. double value;
  14066. double tableDataLimitation;
  14067. double zScoreValue;
  14068. int zScoreStatus;
  14069. GrowthPercentileDTO({
  14070. this.oBTableCategory = 0,
  14071. this.tableAuthor,
  14072. this.measureItem,
  14073. this.gAinDays = 0,
  14074. this.status = 0,
  14075. this.value = 0,
  14076. this.tableDataLimitation = 0,
  14077. this.zScoreValue = 0,
  14078. this.zScoreStatus = 0,
  14079. });
  14080. factory GrowthPercentileDTO.fromJson(Map<String, dynamic> map) {
  14081. return GrowthPercentileDTO(
  14082. oBTableCategory: map['OBTableCategory'],
  14083. tableAuthor: map['TableAuthor'],
  14084. measureItem: map['MeasureItem'],
  14085. gAinDays: map['GAinDays'],
  14086. status: map['Status'],
  14087. value: double.parse(map['Value'].toString()),
  14088. tableDataLimitation: double.parse(map['TableDataLimitation'].toString()),
  14089. zScoreValue: double.parse(map['ZScoreValue'].toString()),
  14090. zScoreStatus: map['ZScoreStatus'],
  14091. );
  14092. }
  14093. Map<String, dynamic> toJson() {
  14094. final map = Map<String, dynamic>();
  14095. map['OBTableCategory'] = oBTableCategory;
  14096. if(tableAuthor != null) {
  14097. map['TableAuthor'] = tableAuthor;
  14098. }
  14099. if(measureItem != null) {
  14100. map['MeasureItem'] = measureItem;
  14101. }
  14102. map['GAinDays'] = gAinDays;
  14103. map['Status'] = status;
  14104. map['Value'] = value;
  14105. map['TableDataLimitation'] = tableDataLimitation;
  14106. map['ZScoreValue'] = zScoreValue;
  14107. map['ZScoreStatus'] = zScoreStatus;
  14108. return map;
  14109. }
  14110. }
  14111. class GrowthAgeDTO {
  14112. int oBTableCategory;
  14113. String? tableAuthor;
  14114. String? measureItem;
  14115. int days;
  14116. int status;
  14117. int minDays;
  14118. int maxDays;
  14119. GrowthAgeDTO({
  14120. this.oBTableCategory = 0,
  14121. this.tableAuthor,
  14122. this.measureItem,
  14123. this.days = 0,
  14124. this.status = 0,
  14125. this.minDays = 0,
  14126. this.maxDays = 0,
  14127. });
  14128. factory GrowthAgeDTO.fromJson(Map<String, dynamic> map) {
  14129. return GrowthAgeDTO(
  14130. oBTableCategory: map['OBTableCategory'],
  14131. tableAuthor: map['TableAuthor'],
  14132. measureItem: map['MeasureItem'],
  14133. days: map['Days'],
  14134. status: map['Status'],
  14135. minDays: map['MinDays'],
  14136. maxDays: map['MaxDays'],
  14137. );
  14138. }
  14139. Map<String, dynamic> toJson() {
  14140. final map = Map<String, dynamic>();
  14141. map['OBTableCategory'] = oBTableCategory;
  14142. if(tableAuthor != null) {
  14143. map['TableAuthor'] = tableAuthor;
  14144. }
  14145. if(measureItem != null) {
  14146. map['MeasureItem'] = measureItem;
  14147. }
  14148. map['Days'] = days;
  14149. map['Status'] = status;
  14150. map['MinDays'] = minDays;
  14151. map['MaxDays'] = maxDays;
  14152. return map;
  14153. }
  14154. }
  14155. class FetalGrowthIndexDTO {
  14156. GrowthPercentileDTO? percentile;
  14157. GrowthAgeDTO? growthAge;
  14158. DateTime? estimateDueDate;
  14159. FetalGrowthIndexDTO({
  14160. this.percentile,
  14161. this.growthAge,
  14162. this.estimateDueDate,
  14163. });
  14164. factory FetalGrowthIndexDTO.fromJson(Map<String, dynamic> map) {
  14165. return FetalGrowthIndexDTO(
  14166. percentile: map['Percentile'] != null ? GrowthPercentileDTO.fromJson(map['Percentile']) : null,
  14167. growthAge: map['GrowthAge'] != null ? GrowthAgeDTO.fromJson(map['GrowthAge']) : null,
  14168. estimateDueDate: map['EstimateDueDate'] != null ? DateTime.parse(map['EstimateDueDate']) : null,
  14169. );
  14170. }
  14171. Map<String, dynamic> toJson() {
  14172. final map = Map<String, dynamic>();
  14173. if(percentile != null) {
  14174. map['Percentile'] = percentile;
  14175. }
  14176. if(growthAge != null) {
  14177. map['GrowthAge'] = growthAge;
  14178. }
  14179. if(estimateDueDate != null) {
  14180. map['EstimateDueDate'] = JsonRpcUtils.dateFormat(estimateDueDate!);
  14181. }
  14182. return map;
  14183. }
  14184. }
  14185. class FloatValueDTO extends MeasuredValueDTO{
  14186. FetalGrowthIndexDTO? fetalGrowthIndex;
  14187. String? typeName;
  14188. String? name;
  14189. String? description;
  14190. bool worksheetAffinity;
  14191. String? briefDescription;
  14192. String? value;
  14193. Unit unit;
  14194. Unit targetUnit;
  14195. FloatValueDTO({
  14196. this.fetalGrowthIndex,
  14197. this.typeName,
  14198. this.name,
  14199. this.description,
  14200. this.worksheetAffinity = false,
  14201. this.briefDescription,
  14202. this.value,
  14203. this.unit = Unit.None,
  14204. this.targetUnit = Unit.None,
  14205. });
  14206. factory FloatValueDTO.fromJson(Map<String, dynamic> map) {
  14207. return FloatValueDTO(
  14208. fetalGrowthIndex: map['FetalGrowthIndex'] != null ? FetalGrowthIndexDTO.fromJson(map['FetalGrowthIndex']) : null,
  14209. typeName: map['TypeName'],
  14210. name: map['Name'],
  14211. description: map['Description'],
  14212. worksheetAffinity: map['WorksheetAffinity'],
  14213. briefDescription: map['BriefDescription'],
  14214. value: map['Value'],
  14215. unit: Unit.values.firstWhere((e) => e.index == map['Unit']),
  14216. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  14217. );
  14218. }
  14219. Map<String, dynamic> toJson() {
  14220. final map = super.toJson();
  14221. return map;
  14222. }
  14223. }
  14224. class DopplerTraceFeatureDTO extends GeometryFeatureDTO{
  14225. int avgHeartCycle;
  14226. ASETypeEnum traceType;
  14227. List<PointDTO>? maxTraceLine;
  14228. List<CardiacCycleDTO>? cardiacCycles;
  14229. List<FloatValueDTO>? autoMeasureValues;
  14230. DopplerTraceFeatureDTO({
  14231. String? typeName,
  14232. this.avgHeartCycle = 0,
  14233. this.traceType = ASETypeEnum.Off,
  14234. this.maxTraceLine,
  14235. this.cardiacCycles,
  14236. this.autoMeasureValues,
  14237. bool isVisible = false,
  14238. String? annotation,
  14239. String? briefAnnotation,
  14240. Unit xUnit = Unit.None,
  14241. Unit yUnit = Unit.None,
  14242. bool showAnnotation = false,
  14243. bool showCalliper = false,
  14244. List<PointDTO>? points,
  14245. String? creator,
  14246. String? guid,
  14247. bool showChildFeatures = false,
  14248. DateTime? timeStamp,
  14249. bool isAutoCalculated = false,
  14250. List<MeasuredValueDTO>? values,
  14251. List<MeasuredFeatureDTO>? childFeatures,
  14252. }) : super(
  14253. isVisible: isVisible,
  14254. annotation: annotation,
  14255. briefAnnotation: briefAnnotation,
  14256. xUnit: xUnit,
  14257. yUnit: yUnit,
  14258. showAnnotation: showAnnotation,
  14259. showCalliper: showCalliper,
  14260. points: points,
  14261. typeName: typeName,
  14262. creator: creator,
  14263. guid: guid,
  14264. showChildFeatures: showChildFeatures,
  14265. timeStamp: timeStamp,
  14266. isAutoCalculated: isAutoCalculated,
  14267. values: values,
  14268. childFeatures: childFeatures,
  14269. );
  14270. factory DopplerTraceFeatureDTO.fromJson(Map<String, dynamic> map) {
  14271. return DopplerTraceFeatureDTO(
  14272. typeName: map['TypeName'],
  14273. avgHeartCycle: map['AvgHeartCycle'],
  14274. traceType: ASETypeEnum.values.firstWhere((e) => e.index == map['TraceType']),
  14275. maxTraceLine: map['MaxTraceLine'] != null ? (map['MaxTraceLine'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14276. cardiacCycles: map['CardiacCycles'] != null ? (map['CardiacCycles'] as List).map((e)=>CardiacCycleDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14277. autoMeasureValues: map['AutoMeasureValues'] != null ? (map['AutoMeasureValues'] as List).map((e)=>FloatValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14278. isVisible: map['IsVisible'],
  14279. annotation: map['Annotation'],
  14280. briefAnnotation: map['BriefAnnotation'],
  14281. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  14282. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  14283. showAnnotation: map['ShowAnnotation'],
  14284. showCalliper: map['ShowCalliper'],
  14285. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14286. creator: map['Creator'],
  14287. guid: map['Guid'],
  14288. showChildFeatures: map['ShowChildFeatures'],
  14289. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14290. isAutoCalculated: map['IsAutoCalculated'],
  14291. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14292. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14293. );
  14294. }
  14295. Map<String, dynamic> toJson() {
  14296. final map = super.toJson();
  14297. map['AvgHeartCycle'] = avgHeartCycle;
  14298. map['TraceType'] = traceType.index;
  14299. if(maxTraceLine != null)
  14300. map['MaxTraceLine'] = maxTraceLine;
  14301. if(cardiacCycles != null)
  14302. map['CardiacCycles'] = cardiacCycles;
  14303. if(autoMeasureValues != null)
  14304. map['AutoMeasureValues'] = autoMeasureValues;
  14305. return map;
  14306. }
  14307. }
  14308. class EllipseFeatureDTO extends GeometryFeatureDTO{
  14309. double angle;
  14310. EllipseFeatureDTO({
  14311. String? typeName,
  14312. this.angle = 0,
  14313. bool isVisible = false,
  14314. String? annotation,
  14315. String? briefAnnotation,
  14316. Unit xUnit = Unit.None,
  14317. Unit yUnit = Unit.None,
  14318. bool showAnnotation = false,
  14319. bool showCalliper = false,
  14320. List<PointDTO>? points,
  14321. String? creator,
  14322. String? guid,
  14323. bool showChildFeatures = false,
  14324. DateTime? timeStamp,
  14325. bool isAutoCalculated = false,
  14326. List<MeasuredValueDTO>? values,
  14327. List<MeasuredFeatureDTO>? childFeatures,
  14328. }) : super(
  14329. isVisible: isVisible,
  14330. annotation: annotation,
  14331. briefAnnotation: briefAnnotation,
  14332. xUnit: xUnit,
  14333. yUnit: yUnit,
  14334. showAnnotation: showAnnotation,
  14335. showCalliper: showCalliper,
  14336. points: points,
  14337. typeName: typeName,
  14338. creator: creator,
  14339. guid: guid,
  14340. showChildFeatures: showChildFeatures,
  14341. timeStamp: timeStamp,
  14342. isAutoCalculated: isAutoCalculated,
  14343. values: values,
  14344. childFeatures: childFeatures,
  14345. );
  14346. factory EllipseFeatureDTO.fromJson(Map<String, dynamic> map) {
  14347. return EllipseFeatureDTO(
  14348. typeName: map['TypeName'],
  14349. angle: double.parse(map['Angle'].toString()),
  14350. isVisible: map['IsVisible'],
  14351. annotation: map['Annotation'],
  14352. briefAnnotation: map['BriefAnnotation'],
  14353. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  14354. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  14355. showAnnotation: map['ShowAnnotation'],
  14356. showCalliper: map['ShowCalliper'],
  14357. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14358. creator: map['Creator'],
  14359. guid: map['Guid'],
  14360. showChildFeatures: map['ShowChildFeatures'],
  14361. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14362. isAutoCalculated: map['IsAutoCalculated'],
  14363. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14364. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14365. );
  14366. }
  14367. Map<String, dynamic> toJson() {
  14368. final map = super.toJson();
  14369. map['Angle'] = angle;
  14370. return map;
  14371. }
  14372. }
  14373. class AutoMeasureGeometryDTO {
  14374. int index;
  14375. List<PointDTO>? points;
  14376. AutoMeasureGeometryDTO({
  14377. this.index = 0,
  14378. this.points,
  14379. });
  14380. factory AutoMeasureGeometryDTO.fromJson(Map<String, dynamic> map) {
  14381. return AutoMeasureGeometryDTO(
  14382. index: map['Index'],
  14383. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14384. );
  14385. }
  14386. Map<String, dynamic> toJson() {
  14387. final map = Map<String, dynamic>();
  14388. map['Index'] = index;
  14389. if(points != null) {
  14390. map['Points'] = points;
  14391. }
  14392. return map;
  14393. }
  14394. }
  14395. class FollicleShapeFeatureDTO extends GeometryFeatureDTO{
  14396. List<AutoMeasureGeometryDTO>? geometries;
  14397. FollicleShapeFeatureDTO({
  14398. String? typeName,
  14399. this.geometries,
  14400. bool isVisible = false,
  14401. String? annotation,
  14402. String? briefAnnotation,
  14403. Unit xUnit = Unit.None,
  14404. Unit yUnit = Unit.None,
  14405. bool showAnnotation = false,
  14406. bool showCalliper = false,
  14407. List<PointDTO>? points,
  14408. String? creator,
  14409. String? guid,
  14410. bool showChildFeatures = false,
  14411. DateTime? timeStamp,
  14412. bool isAutoCalculated = false,
  14413. List<MeasuredValueDTO>? values,
  14414. List<MeasuredFeatureDTO>? childFeatures,
  14415. }) : super(
  14416. isVisible: isVisible,
  14417. annotation: annotation,
  14418. briefAnnotation: briefAnnotation,
  14419. xUnit: xUnit,
  14420. yUnit: yUnit,
  14421. showAnnotation: showAnnotation,
  14422. showCalliper: showCalliper,
  14423. points: points,
  14424. typeName: typeName,
  14425. creator: creator,
  14426. guid: guid,
  14427. showChildFeatures: showChildFeatures,
  14428. timeStamp: timeStamp,
  14429. isAutoCalculated: isAutoCalculated,
  14430. values: values,
  14431. childFeatures: childFeatures,
  14432. );
  14433. factory FollicleShapeFeatureDTO.fromJson(Map<String, dynamic> map) {
  14434. return FollicleShapeFeatureDTO(
  14435. typeName: map['TypeName'],
  14436. geometries: map['Geometries'] != null ? (map['Geometries'] as List).map((e)=>AutoMeasureGeometryDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14437. isVisible: map['IsVisible'],
  14438. annotation: map['Annotation'],
  14439. briefAnnotation: map['BriefAnnotation'],
  14440. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  14441. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  14442. showAnnotation: map['ShowAnnotation'],
  14443. showCalliper: map['ShowCalliper'],
  14444. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14445. creator: map['Creator'],
  14446. guid: map['Guid'],
  14447. showChildFeatures: map['ShowChildFeatures'],
  14448. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14449. isAutoCalculated: map['IsAutoCalculated'],
  14450. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14451. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14452. );
  14453. }
  14454. Map<String, dynamic> toJson() {
  14455. final map = super.toJson();
  14456. if(geometries != null)
  14457. map['Geometries'] = geometries;
  14458. return map;
  14459. }
  14460. }
  14461. class LocationFeatureDTO extends GeometryFeatureDTO{
  14462. LocationFeatureDTO({
  14463. String? typeName,
  14464. bool isVisible = false,
  14465. String? annotation,
  14466. String? briefAnnotation,
  14467. Unit xUnit = Unit.None,
  14468. Unit yUnit = Unit.None,
  14469. bool showAnnotation = false,
  14470. bool showCalliper = false,
  14471. List<PointDTO>? points,
  14472. String? creator,
  14473. String? guid,
  14474. bool showChildFeatures = false,
  14475. DateTime? timeStamp,
  14476. bool isAutoCalculated = false,
  14477. List<MeasuredValueDTO>? values,
  14478. List<MeasuredFeatureDTO>? childFeatures,
  14479. }) : super(
  14480. isVisible: isVisible,
  14481. annotation: annotation,
  14482. briefAnnotation: briefAnnotation,
  14483. xUnit: xUnit,
  14484. yUnit: yUnit,
  14485. showAnnotation: showAnnotation,
  14486. showCalliper: showCalliper,
  14487. points: points,
  14488. typeName: typeName,
  14489. creator: creator,
  14490. guid: guid,
  14491. showChildFeatures: showChildFeatures,
  14492. timeStamp: timeStamp,
  14493. isAutoCalculated: isAutoCalculated,
  14494. values: values,
  14495. childFeatures: childFeatures,
  14496. );
  14497. factory LocationFeatureDTO.fromJson(Map<String, dynamic> map) {
  14498. return LocationFeatureDTO(
  14499. typeName: map['TypeName'],
  14500. isVisible: map['IsVisible'],
  14501. annotation: map['Annotation'],
  14502. briefAnnotation: map['BriefAnnotation'],
  14503. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  14504. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  14505. showAnnotation: map['ShowAnnotation'],
  14506. showCalliper: map['ShowCalliper'],
  14507. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14508. creator: map['Creator'],
  14509. guid: map['Guid'],
  14510. showChildFeatures: map['ShowChildFeatures'],
  14511. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14512. isAutoCalculated: map['IsAutoCalculated'],
  14513. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14514. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14515. );
  14516. }
  14517. Map<String, dynamic> toJson() {
  14518. final map = super.toJson();
  14519. return map;
  14520. }
  14521. }
  14522. class RayFeatureDTO extends LocationFeatureDTO{
  14523. bool isReverse;
  14524. double angle;
  14525. RayFeatureDTO({
  14526. String? typeName,
  14527. this.isReverse = false,
  14528. this.angle = 0,
  14529. bool isVisible = false,
  14530. String? annotation,
  14531. String? briefAnnotation,
  14532. Unit xUnit = Unit.None,
  14533. Unit yUnit = Unit.None,
  14534. bool showAnnotation = false,
  14535. bool showCalliper = false,
  14536. List<PointDTO>? points,
  14537. String? creator,
  14538. String? guid,
  14539. bool showChildFeatures = false,
  14540. DateTime? timeStamp,
  14541. bool isAutoCalculated = false,
  14542. List<MeasuredValueDTO>? values,
  14543. List<MeasuredFeatureDTO>? childFeatures,
  14544. }) : super(
  14545. typeName: typeName,
  14546. isVisible: isVisible,
  14547. annotation: annotation,
  14548. briefAnnotation: briefAnnotation,
  14549. xUnit: xUnit,
  14550. yUnit: yUnit,
  14551. showAnnotation: showAnnotation,
  14552. showCalliper: showCalliper,
  14553. points: points,
  14554. creator: creator,
  14555. guid: guid,
  14556. showChildFeatures: showChildFeatures,
  14557. timeStamp: timeStamp,
  14558. isAutoCalculated: isAutoCalculated,
  14559. values: values,
  14560. childFeatures: childFeatures,
  14561. );
  14562. factory RayFeatureDTO.fromJson(Map<String, dynamic> map) {
  14563. return RayFeatureDTO(
  14564. typeName: map['TypeName'],
  14565. isReverse: map['IsReverse'],
  14566. angle: double.parse(map['Angle'].toString()),
  14567. isVisible: map['IsVisible'],
  14568. annotation: map['Annotation'],
  14569. briefAnnotation: map['BriefAnnotation'],
  14570. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  14571. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  14572. showAnnotation: map['ShowAnnotation'],
  14573. showCalliper: map['ShowCalliper'],
  14574. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14575. creator: map['Creator'],
  14576. guid: map['Guid'],
  14577. showChildFeatures: map['ShowChildFeatures'],
  14578. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14579. isAutoCalculated: map['IsAutoCalculated'],
  14580. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14581. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14582. );
  14583. }
  14584. Map<String, dynamic> toJson() {
  14585. final map = super.toJson();
  14586. map['IsReverse'] = isReverse;
  14587. map['Angle'] = angle;
  14588. return map;
  14589. }
  14590. }
  14591. class ManualTraceFeatureDTO extends GeometryFeatureDTO{
  14592. ManualTraceFeatureDTO({
  14593. String? typeName,
  14594. bool isVisible = false,
  14595. String? annotation,
  14596. String? briefAnnotation,
  14597. Unit xUnit = Unit.None,
  14598. Unit yUnit = Unit.None,
  14599. bool showAnnotation = false,
  14600. bool showCalliper = false,
  14601. List<PointDTO>? points,
  14602. String? creator,
  14603. String? guid,
  14604. bool showChildFeatures = false,
  14605. DateTime? timeStamp,
  14606. bool isAutoCalculated = false,
  14607. List<MeasuredValueDTO>? values,
  14608. List<MeasuredFeatureDTO>? childFeatures,
  14609. }) : super(
  14610. isVisible: isVisible,
  14611. annotation: annotation,
  14612. briefAnnotation: briefAnnotation,
  14613. xUnit: xUnit,
  14614. yUnit: yUnit,
  14615. showAnnotation: showAnnotation,
  14616. showCalliper: showCalliper,
  14617. points: points,
  14618. typeName: typeName,
  14619. creator: creator,
  14620. guid: guid,
  14621. showChildFeatures: showChildFeatures,
  14622. timeStamp: timeStamp,
  14623. isAutoCalculated: isAutoCalculated,
  14624. values: values,
  14625. childFeatures: childFeatures,
  14626. );
  14627. factory ManualTraceFeatureDTO.fromJson(Map<String, dynamic> map) {
  14628. return ManualTraceFeatureDTO(
  14629. typeName: map['TypeName'],
  14630. isVisible: map['IsVisible'],
  14631. annotation: map['Annotation'],
  14632. briefAnnotation: map['BriefAnnotation'],
  14633. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  14634. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  14635. showAnnotation: map['ShowAnnotation'],
  14636. showCalliper: map['ShowCalliper'],
  14637. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14638. creator: map['Creator'],
  14639. guid: map['Guid'],
  14640. showChildFeatures: map['ShowChildFeatures'],
  14641. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14642. isAutoCalculated: map['IsAutoCalculated'],
  14643. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14644. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14645. );
  14646. }
  14647. Map<String, dynamic> toJson() {
  14648. final map = super.toJson();
  14649. return map;
  14650. }
  14651. }
  14652. class PolyLineFeatureDTO extends MeasuredFeatureDTO{
  14653. bool isClosed;
  14654. double splineTension;
  14655. PolyLineFeatureDTO({
  14656. String? typeName,
  14657. this.isClosed = false,
  14658. this.splineTension = 0,
  14659. String? creator,
  14660. String? guid,
  14661. bool showChildFeatures = false,
  14662. DateTime? timeStamp,
  14663. bool isAutoCalculated = false,
  14664. List<MeasuredValueDTO>? values,
  14665. List<MeasuredFeatureDTO>? childFeatures,
  14666. }) : super(
  14667. typeName: typeName,
  14668. creator: creator,
  14669. guid: guid,
  14670. showChildFeatures: showChildFeatures,
  14671. timeStamp: timeStamp,
  14672. isAutoCalculated: isAutoCalculated,
  14673. values: values,
  14674. childFeatures: childFeatures,
  14675. );
  14676. factory PolyLineFeatureDTO.fromJson(Map<String, dynamic> map) {
  14677. return PolyLineFeatureDTO(
  14678. typeName: map['TypeName'],
  14679. isClosed: map['IsClosed'],
  14680. splineTension: double.parse(map['SplineTension'].toString()),
  14681. creator: map['Creator'],
  14682. guid: map['Guid'],
  14683. showChildFeatures: map['ShowChildFeatures'],
  14684. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14685. isAutoCalculated: map['IsAutoCalculated'],
  14686. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14687. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14688. );
  14689. }
  14690. Map<String, dynamic> toJson() {
  14691. final map = super.toJson();
  14692. map['IsClosed'] = isClosed;
  14693. map['SplineTension'] = splineTension;
  14694. return map;
  14695. }
  14696. }
  14697. class TraceLineFeatureDTO extends PolyLineFeatureDTO{
  14698. TraceLineFeatureDTO({
  14699. String? typeName,
  14700. bool isClosed = false,
  14701. double splineTension = 0,
  14702. String? creator,
  14703. String? guid,
  14704. bool showChildFeatures = false,
  14705. DateTime? timeStamp,
  14706. bool isAutoCalculated = false,
  14707. List<MeasuredValueDTO>? values,
  14708. List<MeasuredFeatureDTO>? childFeatures,
  14709. }) : super(
  14710. typeName: typeName,
  14711. isClosed: isClosed,
  14712. splineTension: splineTension,
  14713. creator: creator,
  14714. guid: guid,
  14715. showChildFeatures: showChildFeatures,
  14716. timeStamp: timeStamp,
  14717. isAutoCalculated: isAutoCalculated,
  14718. values: values,
  14719. childFeatures: childFeatures,
  14720. );
  14721. factory TraceLineFeatureDTO.fromJson(Map<String, dynamic> map) {
  14722. return TraceLineFeatureDTO(
  14723. typeName: map['TypeName'],
  14724. isClosed: map['IsClosed'],
  14725. splineTension: double.parse(map['SplineTension'].toString()),
  14726. creator: map['Creator'],
  14727. guid: map['Guid'],
  14728. showChildFeatures: map['ShowChildFeatures'],
  14729. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14730. isAutoCalculated: map['IsAutoCalculated'],
  14731. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14732. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14733. );
  14734. }
  14735. Map<String, dynamic> toJson() {
  14736. final map = super.toJson();
  14737. return map;
  14738. }
  14739. }
  14740. class SimpsonPathFeatureDTO extends TraceLineFeatureDTO{
  14741. PointDTO? centerLineMovablePoint;
  14742. SimpsonPathFeatureDTO({
  14743. String? typeName,
  14744. this.centerLineMovablePoint,
  14745. bool isClosed = false,
  14746. double splineTension = 0,
  14747. String? creator,
  14748. String? guid,
  14749. bool showChildFeatures = false,
  14750. DateTime? timeStamp,
  14751. bool isAutoCalculated = false,
  14752. List<MeasuredValueDTO>? values,
  14753. List<MeasuredFeatureDTO>? childFeatures,
  14754. }) : super(
  14755. typeName: typeName,
  14756. isClosed: isClosed,
  14757. splineTension: splineTension,
  14758. creator: creator,
  14759. guid: guid,
  14760. showChildFeatures: showChildFeatures,
  14761. timeStamp: timeStamp,
  14762. isAutoCalculated: isAutoCalculated,
  14763. values: values,
  14764. childFeatures: childFeatures,
  14765. );
  14766. factory SimpsonPathFeatureDTO.fromJson(Map<String, dynamic> map) {
  14767. return SimpsonPathFeatureDTO(
  14768. typeName: map['TypeName'],
  14769. centerLineMovablePoint: map['CenterLineMovablePoint'] != null ? PointDTO.fromJson(map['CenterLineMovablePoint']) : null,
  14770. isClosed: map['IsClosed'],
  14771. splineTension: double.parse(map['SplineTension'].toString()),
  14772. creator: map['Creator'],
  14773. guid: map['Guid'],
  14774. showChildFeatures: map['ShowChildFeatures'],
  14775. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14776. isAutoCalculated: map['IsAutoCalculated'],
  14777. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14778. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14779. );
  14780. }
  14781. Map<String, dynamic> toJson() {
  14782. final map = super.toJson();
  14783. if(centerLineMovablePoint != null)
  14784. map['CenterLineMovablePoint'] = centerLineMovablePoint;
  14785. return map;
  14786. }
  14787. }
  14788. class RectFeatureDTO extends GeometryFeatureDTO{
  14789. bool showRootFeature;
  14790. List<MeasuredFeatureDTO>? autoLines;
  14791. RectFeatureDTO({
  14792. String? typeName,
  14793. this.showRootFeature = false,
  14794. this.autoLines,
  14795. bool isVisible = false,
  14796. String? annotation,
  14797. String? briefAnnotation,
  14798. Unit xUnit = Unit.None,
  14799. Unit yUnit = Unit.None,
  14800. bool showAnnotation = false,
  14801. bool showCalliper = false,
  14802. List<PointDTO>? points,
  14803. String? creator,
  14804. String? guid,
  14805. bool showChildFeatures = false,
  14806. DateTime? timeStamp,
  14807. bool isAutoCalculated = false,
  14808. List<MeasuredValueDTO>? values,
  14809. List<MeasuredFeatureDTO>? childFeatures,
  14810. }) : super(
  14811. isVisible: isVisible,
  14812. annotation: annotation,
  14813. briefAnnotation: briefAnnotation,
  14814. xUnit: xUnit,
  14815. yUnit: yUnit,
  14816. showAnnotation: showAnnotation,
  14817. showCalliper: showCalliper,
  14818. points: points,
  14819. typeName: typeName,
  14820. creator: creator,
  14821. guid: guid,
  14822. showChildFeatures: showChildFeatures,
  14823. timeStamp: timeStamp,
  14824. isAutoCalculated: isAutoCalculated,
  14825. values: values,
  14826. childFeatures: childFeatures,
  14827. );
  14828. factory RectFeatureDTO.fromJson(Map<String, dynamic> map) {
  14829. return RectFeatureDTO(
  14830. typeName: map['TypeName'],
  14831. showRootFeature: map['ShowRootFeature'],
  14832. autoLines: map['AutoLines'] != null ? (map['AutoLines'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14833. isVisible: map['IsVisible'],
  14834. annotation: map['Annotation'],
  14835. briefAnnotation: map['BriefAnnotation'],
  14836. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  14837. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  14838. showAnnotation: map['ShowAnnotation'],
  14839. showCalliper: map['ShowCalliper'],
  14840. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14841. creator: map['Creator'],
  14842. guid: map['Guid'],
  14843. showChildFeatures: map['ShowChildFeatures'],
  14844. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14845. isAutoCalculated: map['IsAutoCalculated'],
  14846. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14847. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14848. );
  14849. }
  14850. Map<String, dynamic> toJson() {
  14851. final map = super.toJson();
  14852. map['ShowRootFeature'] = showRootFeature;
  14853. if(autoLines != null)
  14854. map['AutoLines'] = autoLines;
  14855. return map;
  14856. }
  14857. }
  14858. class FollicleRectFeatureDTO extends RectFeatureDTO{
  14859. FollicleRectFeatureDTO({
  14860. String? typeName,
  14861. bool showRootFeature = false,
  14862. List<MeasuredFeatureDTO>? autoLines,
  14863. bool isVisible = false,
  14864. String? annotation,
  14865. String? briefAnnotation,
  14866. Unit xUnit = Unit.None,
  14867. Unit yUnit = Unit.None,
  14868. bool showAnnotation = false,
  14869. bool showCalliper = false,
  14870. List<PointDTO>? points,
  14871. String? creator,
  14872. String? guid,
  14873. bool showChildFeatures = false,
  14874. DateTime? timeStamp,
  14875. bool isAutoCalculated = false,
  14876. List<MeasuredValueDTO>? values,
  14877. List<MeasuredFeatureDTO>? childFeatures,
  14878. }) : super(
  14879. typeName: typeName,
  14880. showRootFeature: showRootFeature,
  14881. autoLines: autoLines,
  14882. isVisible: isVisible,
  14883. annotation: annotation,
  14884. briefAnnotation: briefAnnotation,
  14885. xUnit: xUnit,
  14886. yUnit: yUnit,
  14887. showAnnotation: showAnnotation,
  14888. showCalliper: showCalliper,
  14889. points: points,
  14890. creator: creator,
  14891. guid: guid,
  14892. showChildFeatures: showChildFeatures,
  14893. timeStamp: timeStamp,
  14894. isAutoCalculated: isAutoCalculated,
  14895. values: values,
  14896. childFeatures: childFeatures,
  14897. );
  14898. factory FollicleRectFeatureDTO.fromJson(Map<String, dynamic> map) {
  14899. return FollicleRectFeatureDTO(
  14900. typeName: map['TypeName'],
  14901. showRootFeature: map['ShowRootFeature'],
  14902. autoLines: map['AutoLines'] != null ? (map['AutoLines'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14903. isVisible: map['IsVisible'],
  14904. annotation: map['Annotation'],
  14905. briefAnnotation: map['BriefAnnotation'],
  14906. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  14907. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  14908. showAnnotation: map['ShowAnnotation'],
  14909. showCalliper: map['ShowCalliper'],
  14910. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14911. creator: map['Creator'],
  14912. guid: map['Guid'],
  14913. showChildFeatures: map['ShowChildFeatures'],
  14914. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14915. isAutoCalculated: map['IsAutoCalculated'],
  14916. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14917. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14918. );
  14919. }
  14920. Map<String, dynamic> toJson() {
  14921. final map = super.toJson();
  14922. return map;
  14923. }
  14924. }
  14925. class StraightLineFeatureDTO extends GeometryFeatureDTO{
  14926. StraightLineShapeEnum shapeType;
  14927. bool useDashLine;
  14928. StraightLineFeatureDTO({
  14929. String? typeName,
  14930. this.shapeType = StraightLineShapeEnum.StraightLine,
  14931. this.useDashLine = false,
  14932. bool isVisible = false,
  14933. String? annotation,
  14934. String? briefAnnotation,
  14935. Unit xUnit = Unit.None,
  14936. Unit yUnit = Unit.None,
  14937. bool showAnnotation = false,
  14938. bool showCalliper = false,
  14939. List<PointDTO>? points,
  14940. String? creator,
  14941. String? guid,
  14942. bool showChildFeatures = false,
  14943. DateTime? timeStamp,
  14944. bool isAutoCalculated = false,
  14945. List<MeasuredValueDTO>? values,
  14946. List<MeasuredFeatureDTO>? childFeatures,
  14947. }) : super(
  14948. isVisible: isVisible,
  14949. annotation: annotation,
  14950. briefAnnotation: briefAnnotation,
  14951. xUnit: xUnit,
  14952. yUnit: yUnit,
  14953. showAnnotation: showAnnotation,
  14954. showCalliper: showCalliper,
  14955. points: points,
  14956. typeName: typeName,
  14957. creator: creator,
  14958. guid: guid,
  14959. showChildFeatures: showChildFeatures,
  14960. timeStamp: timeStamp,
  14961. isAutoCalculated: isAutoCalculated,
  14962. values: values,
  14963. childFeatures: childFeatures,
  14964. );
  14965. factory StraightLineFeatureDTO.fromJson(Map<String, dynamic> map) {
  14966. return StraightLineFeatureDTO(
  14967. typeName: map['TypeName'],
  14968. shapeType: StraightLineShapeEnum.values.firstWhere((e) => e.index == map['ShapeType']),
  14969. useDashLine: map['UseDashLine'],
  14970. isVisible: map['IsVisible'],
  14971. annotation: map['Annotation'],
  14972. briefAnnotation: map['BriefAnnotation'],
  14973. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  14974. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  14975. showAnnotation: map['ShowAnnotation'],
  14976. showCalliper: map['ShowCalliper'],
  14977. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14978. creator: map['Creator'],
  14979. guid: map['Guid'],
  14980. showChildFeatures: map['ShowChildFeatures'],
  14981. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14982. isAutoCalculated: map['IsAutoCalculated'],
  14983. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14984. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14985. );
  14986. }
  14987. Map<String, dynamic> toJson() {
  14988. final map = super.toJson();
  14989. map['ShapeType'] = shapeType.index;
  14990. map['UseDashLine'] = useDashLine;
  14991. return map;
  14992. }
  14993. }
  14994. class VasPlaqueSplitterFeatureDTO extends GeometryFeatureDTO{
  14995. int maxZoneCount;
  14996. int currentZoneCount;
  14997. int angle;
  14998. List<PointDTO>? splitterLinesPoints;
  14999. VasPlaqueSplitterFeatureDTO({
  15000. String? typeName,
  15001. this.maxZoneCount = 0,
  15002. this.currentZoneCount = 0,
  15003. this.angle = 0,
  15004. bool isVisible = false,
  15005. this.splitterLinesPoints,
  15006. String? annotation,
  15007. String? briefAnnotation,
  15008. Unit xUnit = Unit.None,
  15009. Unit yUnit = Unit.None,
  15010. bool showAnnotation = false,
  15011. bool showCalliper = false,
  15012. List<PointDTO>? points,
  15013. String? creator,
  15014. String? guid,
  15015. bool showChildFeatures = false,
  15016. DateTime? timeStamp,
  15017. bool isAutoCalculated = false,
  15018. List<MeasuredValueDTO>? values,
  15019. List<MeasuredFeatureDTO>? childFeatures,
  15020. }) : super(
  15021. isVisible: isVisible,
  15022. annotation: annotation,
  15023. briefAnnotation: briefAnnotation,
  15024. xUnit: xUnit,
  15025. yUnit: yUnit,
  15026. showAnnotation: showAnnotation,
  15027. showCalliper: showCalliper,
  15028. points: points,
  15029. typeName: typeName,
  15030. creator: creator,
  15031. guid: guid,
  15032. showChildFeatures: showChildFeatures,
  15033. timeStamp: timeStamp,
  15034. isAutoCalculated: isAutoCalculated,
  15035. values: values,
  15036. childFeatures: childFeatures,
  15037. );
  15038. factory VasPlaqueSplitterFeatureDTO.fromJson(Map<String, dynamic> map) {
  15039. return VasPlaqueSplitterFeatureDTO(
  15040. typeName: map['TypeName'],
  15041. maxZoneCount: map['MaxZoneCount'],
  15042. currentZoneCount: map['CurrentZoneCount'],
  15043. angle: map['Angle'],
  15044. isVisible: map['IsVisible'],
  15045. splitterLinesPoints: map['SplitterLinesPoints'] != null ? (map['SplitterLinesPoints'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15046. annotation: map['Annotation'],
  15047. briefAnnotation: map['BriefAnnotation'],
  15048. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  15049. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  15050. showAnnotation: map['ShowAnnotation'],
  15051. showCalliper: map['ShowCalliper'],
  15052. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15053. creator: map['Creator'],
  15054. guid: map['Guid'],
  15055. showChildFeatures: map['ShowChildFeatures'],
  15056. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  15057. isAutoCalculated: map['IsAutoCalculated'],
  15058. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15059. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15060. );
  15061. }
  15062. Map<String, dynamic> toJson() {
  15063. final map = super.toJson();
  15064. map['MaxZoneCount'] = maxZoneCount;
  15065. map['CurrentZoneCount'] = currentZoneCount;
  15066. map['Angle'] = angle;
  15067. if(splitterLinesPoints != null)
  15068. map['SplitterLinesPoints'] = splitterLinesPoints;
  15069. return map;
  15070. }
  15071. }
  15072. class GrowthNormalRangeDTO {
  15073. String? typeName;
  15074. String? tableAuthor;
  15075. String? measureItem;
  15076. int gAinDays;
  15077. int status;
  15078. double value;
  15079. double minValue;
  15080. double maxValue;
  15081. Unit valueUnit;
  15082. Unit targetUnit;
  15083. GrowthNormalRangeDTO({
  15084. this.typeName,
  15085. this.tableAuthor,
  15086. this.measureItem,
  15087. this.gAinDays = 0,
  15088. this.status = 0,
  15089. this.value = 0,
  15090. this.minValue = 0,
  15091. this.maxValue = 0,
  15092. this.valueUnit = Unit.None,
  15093. this.targetUnit = Unit.None,
  15094. });
  15095. factory GrowthNormalRangeDTO.fromJson(Map<String, dynamic> map) {
  15096. return GrowthNormalRangeDTO(
  15097. typeName: map['TypeName'],
  15098. tableAuthor: map['TableAuthor'],
  15099. measureItem: map['MeasureItem'],
  15100. gAinDays: map['GAinDays'],
  15101. status: map['Status'],
  15102. value: double.parse(map['Value'].toString()),
  15103. minValue: double.parse(map['MinValue'].toString()),
  15104. maxValue: double.parse(map['MaxValue'].toString()),
  15105. valueUnit: Unit.values.firstWhere((e) => e.index == map['ValueUnit']),
  15106. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  15107. );
  15108. }
  15109. Map<String, dynamic> toJson() {
  15110. final map = Map<String, dynamic>();
  15111. if(typeName != null) {
  15112. map['TypeName'] = typeName;
  15113. }
  15114. if(tableAuthor != null) {
  15115. map['TableAuthor'] = tableAuthor;
  15116. }
  15117. if(measureItem != null) {
  15118. map['MeasureItem'] = measureItem;
  15119. }
  15120. map['GAinDays'] = gAinDays;
  15121. map['Status'] = status;
  15122. map['Value'] = value;
  15123. map['MinValue'] = minValue;
  15124. map['MaxValue'] = maxValue;
  15125. map['ValueUnit'] = valueUnit.index;
  15126. map['TargetUnit'] = targetUnit.index;
  15127. return map;
  15128. }
  15129. }
  15130. class EFWRepresentationDTO extends FloatValueDTO{
  15131. EFWRepresentationDTO({
  15132. FetalGrowthIndexDTO? fetalGrowthIndex,
  15133. String? typeName,
  15134. String? name,
  15135. String? description,
  15136. bool worksheetAffinity = false,
  15137. String? briefDescription,
  15138. String? value,
  15139. Unit unit = Unit.None,
  15140. Unit targetUnit = Unit.None,
  15141. }) : super(
  15142. fetalGrowthIndex: fetalGrowthIndex,
  15143. typeName: typeName,
  15144. name: name,
  15145. description: description,
  15146. worksheetAffinity: worksheetAffinity,
  15147. briefDescription: briefDescription,
  15148. value: value,
  15149. unit: unit,
  15150. targetUnit: targetUnit,
  15151. );
  15152. factory EFWRepresentationDTO.fromJson(Map<String, dynamic> map) {
  15153. return EFWRepresentationDTO(
  15154. fetalGrowthIndex: map['FetalGrowthIndex'] != null ? FetalGrowthIndexDTO.fromJson(map['FetalGrowthIndex']) : null,
  15155. typeName: map['TypeName'],
  15156. name: map['Name'],
  15157. description: map['Description'],
  15158. worksheetAffinity: map['WorksheetAffinity'],
  15159. briefDescription: map['BriefDescription'],
  15160. value: map['Value'],
  15161. unit: Unit.values.firstWhere((e) => e.index == map['Unit']),
  15162. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  15163. );
  15164. }
  15165. Map<String, dynamic> toJson() {
  15166. final map = super.toJson();
  15167. return map;
  15168. }
  15169. }
  15170. class AdminExtendInfoDTO extends AdminInfoDTO{
  15171. List<String>? roleNames;
  15172. String? defaultRoleCode;
  15173. String? defaultRoleName;
  15174. bool isLocked;
  15175. AdminExtendInfoDTO({
  15176. this.roleNames,
  15177. this.defaultRoleCode,
  15178. this.defaultRoleName,
  15179. this.isLocked = false,
  15180. String? adminCode,
  15181. String? fatherCode,
  15182. String? adminName,
  15183. String? fullName,
  15184. String? secretPassword,
  15185. String? headImageToken,
  15186. String? licenseKey,
  15187. String? lastIP,
  15188. String? phone,
  15189. String? email,
  15190. List<String>? roleCodes,
  15191. LoginLockInfoDTO? loginLockInfo,
  15192. DateTime? passwordUpdateTime,
  15193. List<String>? passwordRecords,
  15194. List<ClearLogOperateDTO>? clearLogOperateList,
  15195. DateTime? createTime,
  15196. DateTime? updateTime,
  15197. }) : super(
  15198. adminCode: adminCode,
  15199. fatherCode: fatherCode,
  15200. adminName: adminName,
  15201. fullName: fullName,
  15202. secretPassword: secretPassword,
  15203. headImageToken: headImageToken,
  15204. licenseKey: licenseKey,
  15205. lastIP: lastIP,
  15206. phone: phone,
  15207. email: email,
  15208. roleCodes: roleCodes,
  15209. loginLockInfo: loginLockInfo,
  15210. passwordUpdateTime: passwordUpdateTime,
  15211. passwordRecords: passwordRecords,
  15212. clearLogOperateList: clearLogOperateList,
  15213. createTime: createTime,
  15214. updateTime: updateTime,
  15215. );
  15216. factory AdminExtendInfoDTO.fromJson(Map<String, dynamic> map) {
  15217. return AdminExtendInfoDTO(
  15218. roleNames: map['RoleNames']?.cast<String>().toList(),
  15219. defaultRoleCode: map['DefaultRoleCode'],
  15220. defaultRoleName: map['DefaultRoleName'],
  15221. isLocked: map['IsLocked'],
  15222. adminCode: map['AdminCode'],
  15223. fatherCode: map['FatherCode'],
  15224. adminName: map['AdminName'],
  15225. fullName: map['FullName'],
  15226. secretPassword: map['SecretPassword'],
  15227. headImageToken: map['HeadImageToken'],
  15228. licenseKey: map['LicenseKey'],
  15229. lastIP: map['LastIP'],
  15230. phone: map['Phone'],
  15231. email: map['Email'],
  15232. roleCodes: map['RoleCodes']?.cast<String>().toList(),
  15233. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  15234. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  15235. passwordRecords: map['PasswordRecords']?.cast<String>().toList(),
  15236. clearLogOperateList: map['ClearLogOperateList'] != null ? (map['ClearLogOperateList'] as List).map((e)=>ClearLogOperateDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15237. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  15238. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  15239. );
  15240. }
  15241. Map<String, dynamic> toJson() {
  15242. final map = super.toJson();
  15243. if(roleNames != null)
  15244. map['RoleNames'] = roleNames;
  15245. if(defaultRoleCode != null)
  15246. map['DefaultRoleCode'] = defaultRoleCode;
  15247. if(defaultRoleName != null)
  15248. map['DefaultRoleName'] = defaultRoleName;
  15249. map['IsLocked'] = isLocked;
  15250. return map;
  15251. }
  15252. }
  15253. class AdminLoginResult {
  15254. LoginStateEnum loginState;
  15255. String? token;
  15256. int? lockRemainingTimes;
  15257. bool isDistributedServer;
  15258. bool passwordExpired;
  15259. String? adminName;
  15260. AdminLoginResult({
  15261. this.loginState = LoginStateEnum.Succeed,
  15262. this.token,
  15263. this.lockRemainingTimes,
  15264. this.isDistributedServer = false,
  15265. this.passwordExpired = false,
  15266. this.adminName,
  15267. });
  15268. factory AdminLoginResult.fromJson(Map<String, dynamic> map) {
  15269. return AdminLoginResult(
  15270. loginState: LoginStateEnum.values.firstWhere((e) => e.index == map['LoginState']),
  15271. token: map['Token'],
  15272. lockRemainingTimes: map['LockRemainingTimes'],
  15273. isDistributedServer: map['IsDistributedServer'],
  15274. passwordExpired: map['PasswordExpired'],
  15275. adminName: map['AdminName'],
  15276. );
  15277. }
  15278. Map<String, dynamic> toJson() {
  15279. final map = Map<String, dynamic>();
  15280. map['LoginState'] = loginState.index;
  15281. if(token != null) {
  15282. map['Token'] = token;
  15283. }
  15284. if(lockRemainingTimes != null) {
  15285. map['LockRemainingTimes'] = lockRemainingTimes;
  15286. }
  15287. map['IsDistributedServer'] = isDistributedServer;
  15288. map['PasswordExpired'] = passwordExpired;
  15289. if(adminName != null) {
  15290. map['AdminName'] = adminName;
  15291. }
  15292. return map;
  15293. }
  15294. }
  15295. class WaitDeleteLogBaseDTO {
  15296. int daysAgo;
  15297. int percentage;
  15298. WaitDeleteLogBaseDTO({
  15299. this.daysAgo = 0,
  15300. this.percentage = 0,
  15301. });
  15302. factory WaitDeleteLogBaseDTO.fromJson(Map<String, dynamic> map) {
  15303. return WaitDeleteLogBaseDTO(
  15304. daysAgo: map['DaysAgo'],
  15305. percentage: map['Percentage'],
  15306. );
  15307. }
  15308. Map<String, dynamic> toJson() {
  15309. final map = Map<String, dynamic>();
  15310. map['DaysAgo'] = daysAgo;
  15311. map['Percentage'] = percentage;
  15312. return map;
  15313. }
  15314. }
  15315. class WaitDeleteLogsDTO {
  15316. List<WaitDeleteLogBaseDTO>? waitDeleteLogs;
  15317. int daysAgo;
  15318. bool isLockClear;
  15319. String? requestServerHost;
  15320. DateTime? lastClearTime;
  15321. DateTime? lastClearOperateTime;
  15322. WaitDeleteLogsDTO({
  15323. this.waitDeleteLogs,
  15324. this.daysAgo = 0,
  15325. this.isLockClear = false,
  15326. this.requestServerHost,
  15327. this.lastClearTime,
  15328. this.lastClearOperateTime,
  15329. });
  15330. factory WaitDeleteLogsDTO.fromJson(Map<String, dynamic> map) {
  15331. return WaitDeleteLogsDTO(
  15332. waitDeleteLogs: map['WaitDeleteLogs'] != null ? (map['WaitDeleteLogs'] as List).map((e)=>WaitDeleteLogBaseDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15333. daysAgo: map['DaysAgo'],
  15334. isLockClear: map['IsLockClear'],
  15335. requestServerHost: map['RequestServerHost'],
  15336. lastClearTime: map['LastClearTime'] != null ? DateTime.parse(map['LastClearTime']) : null,
  15337. lastClearOperateTime: map['LastClearOperateTime'] != null ? DateTime.parse(map['LastClearOperateTime']) : null,
  15338. );
  15339. }
  15340. Map<String, dynamic> toJson() {
  15341. final map = Map<String, dynamic>();
  15342. if(waitDeleteLogs != null) {
  15343. map['WaitDeleteLogs'] = waitDeleteLogs;
  15344. }
  15345. map['DaysAgo'] = daysAgo;
  15346. map['IsLockClear'] = isLockClear;
  15347. if(requestServerHost != null) {
  15348. map['RequestServerHost'] = requestServerHost;
  15349. }
  15350. if(lastClearTime != null) {
  15351. map['LastClearTime'] = JsonRpcUtils.dateFormat(lastClearTime!);
  15352. }
  15353. if(lastClearOperateTime != null) {
  15354. map['LastClearOperateTime'] = JsonRpcUtils.dateFormat(lastClearOperateTime!);
  15355. }
  15356. return map;
  15357. }
  15358. }
  15359. class ManageAdminFeatureInfoDTO {
  15360. List<String>? featureCodeList;
  15361. ManageAdminFeatureInfoDTO({
  15362. this.featureCodeList,
  15363. });
  15364. factory ManageAdminFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  15365. return ManageAdminFeatureInfoDTO(
  15366. featureCodeList: map['FeatureCodeList']?.cast<String>().toList(),
  15367. );
  15368. }
  15369. Map<String, dynamic> toJson() {
  15370. final map = Map<String, dynamic>();
  15371. if(featureCodeList != null) {
  15372. map['FeatureCodeList'] = featureCodeList;
  15373. }
  15374. return map;
  15375. }
  15376. }
  15377. class FeatureDetail {
  15378. String? id;
  15379. FeatureDetail({
  15380. this.id,
  15381. });
  15382. factory FeatureDetail.fromJson(Map<String, dynamic> map) {
  15383. return FeatureDetail(
  15384. id: map['Id'],
  15385. );
  15386. }
  15387. Map<String, dynamic> toJson() {
  15388. final map = Map<String, dynamic>();
  15389. if(id != null) {
  15390. map['Id'] = id;
  15391. }
  15392. return map;
  15393. }
  15394. }
  15395. class ManageAdminRoleInfoDTO extends AdminRoleDTO{
  15396. List<FeatureDetail>? featureList;
  15397. ManageAdminRoleInfoDTO({
  15398. this.featureList,
  15399. String? adminGroupCode,
  15400. int adminNum = 0,
  15401. String? roleCode,
  15402. String? roleName,
  15403. String? description,
  15404. List<UserRoleLanguageConfigDTO>? languageConfigs,
  15405. DateTime? createTime,
  15406. DateTime? updateTime,
  15407. }) : super(
  15408. adminGroupCode: adminGroupCode,
  15409. adminNum: adminNum,
  15410. roleCode: roleCode,
  15411. roleName: roleName,
  15412. description: description,
  15413. languageConfigs: languageConfigs,
  15414. createTime: createTime,
  15415. updateTime: updateTime,
  15416. );
  15417. factory ManageAdminRoleInfoDTO.fromJson(Map<String, dynamic> map) {
  15418. return ManageAdminRoleInfoDTO(
  15419. featureList: map['FeatureList'] != null ? (map['FeatureList'] as List).map((e)=>FeatureDetail.fromJson(e as Map<String,dynamic>)).toList() : null,
  15420. adminGroupCode: map['AdminGroupCode'],
  15421. adminNum: map['AdminNum'],
  15422. roleCode: map['RoleCode'],
  15423. roleName: map['RoleName'],
  15424. description: map['Description'],
  15425. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15426. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  15427. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  15428. );
  15429. }
  15430. Map<String, dynamic> toJson() {
  15431. final map = super.toJson();
  15432. if(featureList != null)
  15433. map['FeatureList'] = featureList;
  15434. return map;
  15435. }
  15436. }
  15437. class ManageCreateProductDTO extends CreateProductDTO{
  15438. ManageCreateProductDTO({
  15439. String? productCode,
  15440. DateTime? createTime,
  15441. DateTime? updateTime,
  15442. }) : super(
  15443. productCode: productCode,
  15444. createTime: createTime,
  15445. updateTime: updateTime,
  15446. );
  15447. factory ManageCreateProductDTO.fromJson(Map<String, dynamic> map) {
  15448. return ManageCreateProductDTO(
  15449. productCode: map['ProductCode'],
  15450. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  15451. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  15452. );
  15453. }
  15454. Map<String, dynamic> toJson() {
  15455. final map = super.toJson();
  15456. return map;
  15457. }
  15458. }
  15459. class ManageDeviceInfoDTO extends DeviceInfoDTO{
  15460. String? hospitalName;
  15461. String? departmentName;
  15462. String? directorName;
  15463. String? adminName;
  15464. String? shareUserNum;
  15465. String? deviceModelName;
  15466. List<DictionaryLanguageConfigDTO>? languageConfigs;
  15467. ManageDeviceInfoDTO({
  15468. this.hospitalName,
  15469. this.departmentName,
  15470. this.directorName,
  15471. this.adminName,
  15472. this.shareUserNum,
  15473. this.deviceModelName,
  15474. this.languageConfigs,
  15475. String? deviceCode,
  15476. String? serialNumber,
  15477. String? password,
  15478. String? name,
  15479. String? description,
  15480. String? deviceModel,
  15481. String? deviceType,
  15482. String? headPicUrl,
  15483. String? deviceSoftwareVersion,
  15484. String? sDKSoftwareVersion,
  15485. String? organizationCode,
  15486. String? departmentCode,
  15487. String? shortCode,
  15488. bool isAutoShared = false,
  15489. bool isEncryptedShow = false,
  15490. DateTime? lastLoginTime,
  15491. String? systemVersion,
  15492. String? cPUModel,
  15493. String? systemLanguage,
  15494. List<String>? diagnosisModules,
  15495. List<String>? reportPosterCodes,
  15496. bool mergedChannel = false,
  15497. int mergedVideoOutputWidth = 0,
  15498. int mergedVideoOutputHeight = 0,
  15499. List<VideoDeviceDTO>? videoDeviceInfos,
  15500. DownloadModeSettingEnum downloadModeSetting = DownloadModeSettingEnum.Auto,
  15501. bool liveOpened = false,
  15502. bool supportRtc = false,
  15503. String? displayName,
  15504. SonopostVersionEnum sonopostVersion = SonopostVersionEnum.Sonopost,
  15505. DateTime? createTime,
  15506. DateTime? updateTime,
  15507. }) : super(
  15508. deviceCode: deviceCode,
  15509. serialNumber: serialNumber,
  15510. password: password,
  15511. name: name,
  15512. description: description,
  15513. deviceModel: deviceModel,
  15514. deviceType: deviceType,
  15515. headPicUrl: headPicUrl,
  15516. deviceSoftwareVersion: deviceSoftwareVersion,
  15517. sDKSoftwareVersion: sDKSoftwareVersion,
  15518. organizationCode: organizationCode,
  15519. departmentCode: departmentCode,
  15520. shortCode: shortCode,
  15521. isAutoShared: isAutoShared,
  15522. isEncryptedShow: isEncryptedShow,
  15523. lastLoginTime: lastLoginTime,
  15524. systemVersion: systemVersion,
  15525. cPUModel: cPUModel,
  15526. systemLanguage: systemLanguage,
  15527. diagnosisModules: diagnosisModules,
  15528. reportPosterCodes: reportPosterCodes,
  15529. mergedChannel: mergedChannel,
  15530. mergedVideoOutputWidth: mergedVideoOutputWidth,
  15531. mergedVideoOutputHeight: mergedVideoOutputHeight,
  15532. videoDeviceInfos: videoDeviceInfos,
  15533. downloadModeSetting: downloadModeSetting,
  15534. liveOpened: liveOpened,
  15535. supportRtc: supportRtc,
  15536. displayName: displayName,
  15537. sonopostVersion: sonopostVersion,
  15538. createTime: createTime,
  15539. updateTime: updateTime,
  15540. );
  15541. factory ManageDeviceInfoDTO.fromJson(Map<String, dynamic> map) {
  15542. return ManageDeviceInfoDTO(
  15543. hospitalName: map['HospitalName'],
  15544. departmentName: map['DepartmentName'],
  15545. directorName: map['DirectorName'],
  15546. adminName: map['AdminName'],
  15547. shareUserNum: map['ShareUserNum'],
  15548. deviceModelName: map['DeviceModelName'],
  15549. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>DictionaryLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15550. deviceCode: map['DeviceCode'],
  15551. serialNumber: map['SerialNumber'],
  15552. password: map['Password'],
  15553. name: map['Name'],
  15554. description: map['Description'],
  15555. deviceModel: map['DeviceModel'],
  15556. deviceType: map['DeviceType'],
  15557. headPicUrl: map['HeadPicUrl'],
  15558. deviceSoftwareVersion: map['DeviceSoftwareVersion'],
  15559. sDKSoftwareVersion: map['SDKSoftwareVersion'],
  15560. organizationCode: map['OrganizationCode'],
  15561. departmentCode: map['DepartmentCode'],
  15562. shortCode: map['ShortCode'],
  15563. isAutoShared: map['IsAutoShared'],
  15564. isEncryptedShow: map['IsEncryptedShow'],
  15565. lastLoginTime: map['LastLoginTime'] != null ? DateTime.parse(map['LastLoginTime']) : null,
  15566. systemVersion: map['SystemVersion'],
  15567. cPUModel: map['CPUModel'],
  15568. systemLanguage: map['SystemLanguage'],
  15569. diagnosisModules: map['DiagnosisModules']?.cast<String>().toList(),
  15570. reportPosterCodes: map['ReportPosterCodes']?.cast<String>().toList(),
  15571. mergedChannel: map['MergedChannel'],
  15572. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  15573. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  15574. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15575. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  15576. liveOpened: map['LiveOpened'],
  15577. supportRtc: map['SupportRtc'],
  15578. displayName: map['DisplayName'],
  15579. sonopostVersion: SonopostVersionEnum.values.firstWhere((e) => e.index == map['SonopostVersion']),
  15580. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  15581. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  15582. );
  15583. }
  15584. Map<String, dynamic> toJson() {
  15585. final map = super.toJson();
  15586. if(hospitalName != null)
  15587. map['HospitalName'] = hospitalName;
  15588. if(departmentName != null)
  15589. map['DepartmentName'] = departmentName;
  15590. if(directorName != null)
  15591. map['DirectorName'] = directorName;
  15592. if(adminName != null)
  15593. map['AdminName'] = adminName;
  15594. if(shareUserNum != null)
  15595. map['ShareUserNum'] = shareUserNum;
  15596. if(deviceModelName != null)
  15597. map['DeviceModelName'] = deviceModelName;
  15598. if(languageConfigs != null)
  15599. map['LanguageConfigs'] = languageConfigs;
  15600. return map;
  15601. }
  15602. }
  15603. class ManageDeviceTypeDTO {
  15604. String? dictionaryCode;
  15605. String? value;
  15606. List<DictionaryLanguageConfigDTO>? languageConfigs;
  15607. List<DictionaryDTO>? dictionaryList;
  15608. ManageDeviceTypeDTO({
  15609. this.dictionaryCode,
  15610. this.value,
  15611. this.languageConfigs,
  15612. this.dictionaryList,
  15613. });
  15614. factory ManageDeviceTypeDTO.fromJson(Map<String, dynamic> map) {
  15615. return ManageDeviceTypeDTO(
  15616. dictionaryCode: map['DictionaryCode'],
  15617. value: map['Value'],
  15618. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>DictionaryLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15619. dictionaryList: map['DictionaryList'] != null ? (map['DictionaryList'] as List).map((e)=>DictionaryDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15620. );
  15621. }
  15622. Map<String, dynamic> toJson() {
  15623. final map = Map<String, dynamic>();
  15624. if(dictionaryCode != null) {
  15625. map['DictionaryCode'] = dictionaryCode;
  15626. }
  15627. if(value != null) {
  15628. map['Value'] = value;
  15629. }
  15630. if(languageConfigs != null) {
  15631. map['LanguageConfigs'] = languageConfigs;
  15632. }
  15633. if(dictionaryList != null) {
  15634. map['DictionaryList'] = dictionaryList;
  15635. }
  15636. return map;
  15637. }
  15638. }
  15639. class ManageDeviceUserDTO {
  15640. String? userCode;
  15641. String? userName;
  15642. String? phone;
  15643. String? email;
  15644. String? nickName;
  15645. String? fullName;
  15646. String? hospitalName;
  15647. ManageDeviceUserDTO({
  15648. this.userCode,
  15649. this.userName,
  15650. this.phone,
  15651. this.email,
  15652. this.nickName,
  15653. this.fullName,
  15654. this.hospitalName,
  15655. });
  15656. factory ManageDeviceUserDTO.fromJson(Map<String, dynamic> map) {
  15657. return ManageDeviceUserDTO(
  15658. userCode: map['UserCode'],
  15659. userName: map['UserName'],
  15660. phone: map['Phone'],
  15661. email: map['Email'],
  15662. nickName: map['NickName'],
  15663. fullName: map['FullName'],
  15664. hospitalName: map['HospitalName'],
  15665. );
  15666. }
  15667. Map<String, dynamic> toJson() {
  15668. final map = Map<String, dynamic>();
  15669. if(userCode != null) {
  15670. map['UserCode'] = userCode;
  15671. }
  15672. if(userName != null) {
  15673. map['UserName'] = userName;
  15674. }
  15675. if(phone != null) {
  15676. map['Phone'] = phone;
  15677. }
  15678. if(email != null) {
  15679. map['Email'] = email;
  15680. }
  15681. if(nickName != null) {
  15682. map['NickName'] = nickName;
  15683. }
  15684. if(fullName != null) {
  15685. map['FullName'] = fullName;
  15686. }
  15687. if(hospitalName != null) {
  15688. map['HospitalName'] = hospitalName;
  15689. }
  15690. return map;
  15691. }
  15692. }
  15693. class ManageOrderDetailDTO extends OrderDetailDTO{
  15694. ManageOrderDetailDTO({
  15695. String? code,
  15696. String? orderUserName,
  15697. String? orderUserCode,
  15698. String? productCode,
  15699. String? tPORderCode,
  15700. String? orderTitle,
  15701. OrderTypeEnum orderType = OrderTypeEnum.General,
  15702. double orderAmount = 0,
  15703. DateTime? payTime,
  15704. PayStatusEnum payStatus = PayStatusEnum.NoPay,
  15705. DateTime? createTime,
  15706. DateTime? updateTime,
  15707. }) : super(
  15708. code: code,
  15709. orderUserName: orderUserName,
  15710. orderUserCode: orderUserCode,
  15711. productCode: productCode,
  15712. tPORderCode: tPORderCode,
  15713. orderTitle: orderTitle,
  15714. orderType: orderType,
  15715. orderAmount: orderAmount,
  15716. payTime: payTime,
  15717. payStatus: payStatus,
  15718. createTime: createTime,
  15719. updateTime: updateTime,
  15720. );
  15721. factory ManageOrderDetailDTO.fromJson(Map<String, dynamic> map) {
  15722. return ManageOrderDetailDTO(
  15723. code: map['Code'],
  15724. orderUserName: map['OrderUserName'],
  15725. orderUserCode: map['OrderUserCode'],
  15726. productCode: map['ProductCode'],
  15727. tPORderCode: map['TPORderCode'],
  15728. orderTitle: map['OrderTitle'],
  15729. orderType: OrderTypeEnum.values.firstWhere((e) => e.index == map['OrderType']),
  15730. orderAmount: double.parse(map['OrderAmount'].toString()),
  15731. payTime: map['PayTime'] != null ? DateTime.parse(map['PayTime']) : null,
  15732. payStatus: PayStatusEnum.values.firstWhere((e) => e.index == map['PayStatus']),
  15733. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  15734. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  15735. );
  15736. }
  15737. Map<String, dynamic> toJson() {
  15738. final map = super.toJson();
  15739. return map;
  15740. }
  15741. }
  15742. class ManageOrganizationDTO extends OrganizationDTO{
  15743. String? countryName;
  15744. String? provinceName;
  15745. String? cityName;
  15746. String? countryCode;
  15747. String? provinceCode;
  15748. String? cityCode;
  15749. String? directorName;
  15750. String? adminFullName;
  15751. ManageOrganizationDTO({
  15752. this.countryName,
  15753. this.provinceName,
  15754. this.cityName,
  15755. this.countryCode,
  15756. this.provinceCode,
  15757. this.cityCode,
  15758. this.directorName,
  15759. this.adminFullName,
  15760. String? description,
  15761. String? rootCode,
  15762. OrganizationTypeEnum organizationType = OrganizationTypeEnum.Corporation,
  15763. List<String>? authorityGroups,
  15764. String? nautica,
  15765. OrganizationStateEnum state = OrganizationStateEnum.WaitAudit,
  15766. List<String>? directors,
  15767. List<String>? assignedAdmins,
  15768. String? patientSettingJson,
  15769. String? examSettingJson,
  15770. String? consultationSettingJson,
  15771. String? patientSettingVersion,
  15772. String? examSettingVersion,
  15773. String? consultationSettingVersion,
  15774. String? parentOrganizationName,
  15775. String? regionCode,
  15776. String? parentCode,
  15777. String? logoUrl,
  15778. OrganizationPatientTypeEnum patientType = OrganizationPatientTypeEnum.Person,
  15779. bool isinvented = false,
  15780. List<SettingDTOClass>? settings,
  15781. List<String>? diagnosisModules,
  15782. bool isEncryptedShow = false,
  15783. double referralLimitHours = 0,
  15784. List<String>? referralOrganizationCodes,
  15785. List<ReferralOrganizationDTO>? referralOrganizations,
  15786. String? defaultThesaurusCode,
  15787. String? defaultReportTemplateCode,
  15788. String? organizationCode,
  15789. String? organizationName,
  15790. String? shortCode,
  15791. DateTime? createTime,
  15792. DateTime? updateTime,
  15793. }) : super(
  15794. description: description,
  15795. rootCode: rootCode,
  15796. organizationType: organizationType,
  15797. authorityGroups: authorityGroups,
  15798. nautica: nautica,
  15799. state: state,
  15800. directors: directors,
  15801. assignedAdmins: assignedAdmins,
  15802. patientSettingJson: patientSettingJson,
  15803. examSettingJson: examSettingJson,
  15804. consultationSettingJson: consultationSettingJson,
  15805. patientSettingVersion: patientSettingVersion,
  15806. examSettingVersion: examSettingVersion,
  15807. consultationSettingVersion: consultationSettingVersion,
  15808. parentOrganizationName: parentOrganizationName,
  15809. regionCode: regionCode,
  15810. parentCode: parentCode,
  15811. logoUrl: logoUrl,
  15812. patientType: patientType,
  15813. isinvented: isinvented,
  15814. settings: settings,
  15815. diagnosisModules: diagnosisModules,
  15816. isEncryptedShow: isEncryptedShow,
  15817. referralLimitHours: referralLimitHours,
  15818. referralOrganizationCodes: referralOrganizationCodes,
  15819. referralOrganizations: referralOrganizations,
  15820. defaultThesaurusCode: defaultThesaurusCode,
  15821. defaultReportTemplateCode: defaultReportTemplateCode,
  15822. organizationCode: organizationCode,
  15823. organizationName: organizationName,
  15824. shortCode: shortCode,
  15825. createTime: createTime,
  15826. updateTime: updateTime,
  15827. );
  15828. factory ManageOrganizationDTO.fromJson(Map<String, dynamic> map) {
  15829. return ManageOrganizationDTO(
  15830. countryName: map['CountryName'],
  15831. provinceName: map['ProvinceName'],
  15832. cityName: map['CityName'],
  15833. countryCode: map['CountryCode'],
  15834. provinceCode: map['ProvinceCode'],
  15835. cityCode: map['CityCode'],
  15836. directorName: map['DirectorName'],
  15837. adminFullName: map['AdminFullName'],
  15838. description: map['Description'],
  15839. rootCode: map['RootCode'],
  15840. organizationType: OrganizationTypeEnum.values.firstWhere((e) => e.index == map['OrganizationType']),
  15841. authorityGroups: map['AuthorityGroups']?.cast<String>().toList(),
  15842. nautica: map['Nautica'],
  15843. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  15844. directors: map['Directors']?.cast<String>().toList(),
  15845. assignedAdmins: map['AssignedAdmins']?.cast<String>().toList(),
  15846. patientSettingJson: map['PatientSettingJson'],
  15847. examSettingJson: map['ExamSettingJson'],
  15848. consultationSettingJson: map['ConsultationSettingJson'],
  15849. patientSettingVersion: map['PatientSettingVersion'],
  15850. examSettingVersion: map['ExamSettingVersion'],
  15851. consultationSettingVersion: map['ConsultationSettingVersion'],
  15852. parentOrganizationName: map['ParentOrganizationName'],
  15853. regionCode: map['RegionCode'],
  15854. parentCode: map['ParentCode'],
  15855. logoUrl: map['LogoUrl'],
  15856. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  15857. isinvented: map['Isinvented'],
  15858. settings: map['Settings'] != null ? (map['Settings'] as List).map((e)=>SettingDTOClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  15859. diagnosisModules: map['DiagnosisModules']?.cast<String>().toList(),
  15860. isEncryptedShow: map['IsEncryptedShow'],
  15861. referralLimitHours: double.parse(map['ReferralLimitHours'].toString()),
  15862. referralOrganizationCodes: map['ReferralOrganizationCodes']?.cast<String>().toList(),
  15863. referralOrganizations: map['ReferralOrganizations'] != null ? (map['ReferralOrganizations'] as List).map((e)=>ReferralOrganizationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15864. defaultThesaurusCode: map['DefaultThesaurusCode'],
  15865. defaultReportTemplateCode: map['DefaultReportTemplateCode'],
  15866. organizationCode: map['OrganizationCode'],
  15867. organizationName: map['OrganizationName'],
  15868. shortCode: map['ShortCode'],
  15869. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  15870. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  15871. );
  15872. }
  15873. Map<String, dynamic> toJson() {
  15874. final map = super.toJson();
  15875. if(countryName != null)
  15876. map['CountryName'] = countryName;
  15877. if(provinceName != null)
  15878. map['ProvinceName'] = provinceName;
  15879. if(cityName != null)
  15880. map['CityName'] = cityName;
  15881. if(countryCode != null)
  15882. map['CountryCode'] = countryCode;
  15883. if(provinceCode != null)
  15884. map['ProvinceCode'] = provinceCode;
  15885. if(cityCode != null)
  15886. map['CityCode'] = cityCode;
  15887. if(directorName != null)
  15888. map['DirectorName'] = directorName;
  15889. if(adminFullName != null)
  15890. map['AdminFullName'] = adminFullName;
  15891. return map;
  15892. }
  15893. }
  15894. class ManageOrganizationUserDTO {
  15895. String? userCode;
  15896. String? userName;
  15897. String? phone;
  15898. String? email;
  15899. String? nickName;
  15900. String? fullName;
  15901. String? hospitalName;
  15902. ManageOrganizationUserDTO({
  15903. this.userCode,
  15904. this.userName,
  15905. this.phone,
  15906. this.email,
  15907. this.nickName,
  15908. this.fullName,
  15909. this.hospitalName,
  15910. });
  15911. factory ManageOrganizationUserDTO.fromJson(Map<String, dynamic> map) {
  15912. return ManageOrganizationUserDTO(
  15913. userCode: map['UserCode'],
  15914. userName: map['UserName'],
  15915. phone: map['Phone'],
  15916. email: map['Email'],
  15917. nickName: map['NickName'],
  15918. fullName: map['FullName'],
  15919. hospitalName: map['HospitalName'],
  15920. );
  15921. }
  15922. Map<String, dynamic> toJson() {
  15923. final map = Map<String, dynamic>();
  15924. if(userCode != null) {
  15925. map['UserCode'] = userCode;
  15926. }
  15927. if(userName != null) {
  15928. map['UserName'] = userName;
  15929. }
  15930. if(phone != null) {
  15931. map['Phone'] = phone;
  15932. }
  15933. if(email != null) {
  15934. map['Email'] = email;
  15935. }
  15936. if(nickName != null) {
  15937. map['NickName'] = nickName;
  15938. }
  15939. if(fullName != null) {
  15940. map['FullName'] = fullName;
  15941. }
  15942. if(hospitalName != null) {
  15943. map['HospitalName'] = hospitalName;
  15944. }
  15945. return map;
  15946. }
  15947. }
  15948. class ManagePaymentRecordDTO extends PaymentRecordDTO{
  15949. ManagePaymentRecordDTO({
  15950. String? orderCode,
  15951. double payAmount = 0,
  15952. DateTime? payTime,
  15953. PayStatusEnum payStatus = PayStatusEnum.NoPay,
  15954. PayTypeEnum payType = PayTypeEnum.Alipay_PAGE,
  15955. String? payReqContent,
  15956. String? payResContent,
  15957. DateTime? createTime,
  15958. DateTime? updateTime,
  15959. }) : super(
  15960. orderCode: orderCode,
  15961. payAmount: payAmount,
  15962. payTime: payTime,
  15963. payStatus: payStatus,
  15964. payType: payType,
  15965. payReqContent: payReqContent,
  15966. payResContent: payResContent,
  15967. createTime: createTime,
  15968. updateTime: updateTime,
  15969. );
  15970. factory ManagePaymentRecordDTO.fromJson(Map<String, dynamic> map) {
  15971. return ManagePaymentRecordDTO(
  15972. orderCode: map['OrderCode'],
  15973. payAmount: double.parse(map['PayAmount'].toString()),
  15974. payTime: map['PayTime'] != null ? DateTime.parse(map['PayTime']) : null,
  15975. payStatus: PayStatusEnum.values.firstWhere((e) => e.index == map['PayStatus']),
  15976. payType: PayTypeEnum.values.firstWhere((e) => e.index == map['PayType']),
  15977. payReqContent: map['PayReqContent'],
  15978. payResContent: map['PayResContent'],
  15979. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  15980. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  15981. );
  15982. }
  15983. Map<String, dynamic> toJson() {
  15984. final map = super.toJson();
  15985. return map;
  15986. }
  15987. }
  15988. class ManageRoleInfoDTO extends RoleDTO{
  15989. List<FeatureDetail>? featureList;
  15990. ManageRoleInfoDTO({
  15991. this.featureList,
  15992. RoleShowTypeEnum roleShowType = RoleShowTypeEnum.NotShow,
  15993. String? iConUrl,
  15994. String? colorStart,
  15995. String? colorEnd,
  15996. RoleQualificationEnum roleQualification = RoleQualificationEnum.NoNeed,
  15997. String? userGroupCode,
  15998. RoleShowTypeEnum fieldShowType = RoleShowTypeEnum.NotShow,
  15999. List<String>? fieldList,
  16000. String? roleCode,
  16001. String? roleName,
  16002. String? description,
  16003. List<UserRoleLanguageConfigDTO>? languageConfigs,
  16004. DateTime? createTime,
  16005. DateTime? updateTime,
  16006. }) : super(
  16007. roleShowType: roleShowType,
  16008. iConUrl: iConUrl,
  16009. colorStart: colorStart,
  16010. colorEnd: colorEnd,
  16011. roleQualification: roleQualification,
  16012. userGroupCode: userGroupCode,
  16013. fieldShowType: fieldShowType,
  16014. fieldList: fieldList,
  16015. roleCode: roleCode,
  16016. roleName: roleName,
  16017. description: description,
  16018. languageConfigs: languageConfigs,
  16019. createTime: createTime,
  16020. updateTime: updateTime,
  16021. );
  16022. factory ManageRoleInfoDTO.fromJson(Map<String, dynamic> map) {
  16023. return ManageRoleInfoDTO(
  16024. featureList: map['FeatureList'] != null ? (map['FeatureList'] as List).map((e)=>FeatureDetail.fromJson(e as Map<String,dynamic>)).toList() : null,
  16025. roleShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['RoleShowType']),
  16026. iConUrl: map['IConUrl'],
  16027. colorStart: map['ColorStart'],
  16028. colorEnd: map['ColorEnd'],
  16029. roleQualification: RoleQualificationEnum.values.firstWhere((e) => e.index == map['RoleQualification']),
  16030. userGroupCode: map['UserGroupCode'],
  16031. fieldShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['FieldShowType']),
  16032. fieldList: map['FieldList']?.cast<String>().toList(),
  16033. roleCode: map['RoleCode'],
  16034. roleName: map['RoleName'],
  16035. description: map['Description'],
  16036. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16037. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  16038. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  16039. );
  16040. }
  16041. Map<String, dynamic> toJson() {
  16042. final map = super.toJson();
  16043. if(featureList != null)
  16044. map['FeatureList'] = featureList;
  16045. return map;
  16046. }
  16047. }
  16048. class BaseThesaurusItemBaseDTO<T> {
  16049. String? id;
  16050. String? label;
  16051. String? fatherCode;
  16052. String? thesaurusItemDescription;
  16053. String? thesaurusItemConclusion;
  16054. ThesaurusItemTypeEnum type;
  16055. List<T>? children;
  16056. bool isExistThesaurusItem;
  16057. BaseThesaurusItemBaseDTO({
  16058. this.id,
  16059. this.label,
  16060. this.fatherCode,
  16061. this.thesaurusItemDescription,
  16062. this.thesaurusItemConclusion,
  16063. this.type = ThesaurusItemTypeEnum.Classification,
  16064. this.children,
  16065. this.isExistThesaurusItem = false,
  16066. });
  16067. factory BaseThesaurusItemBaseDTO.fromJson(Map<String, dynamic> map) {
  16068. List<T> childrenList = [];
  16069. if (map['Children'] != null) {
  16070. childrenList.addAll(
  16071. (map['Children'] as List).map((e) => FJsonConvert.fromJson<T>(e)!));
  16072. }
  16073. return BaseThesaurusItemBaseDTO(
  16074. id: map['Id'],
  16075. label: map['Label'],
  16076. fatherCode: map['FatherCode'],
  16077. thesaurusItemDescription: map['ThesaurusItemDescription'],
  16078. thesaurusItemConclusion: map['ThesaurusItemConclusion'],
  16079. type: ThesaurusItemTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  16080. children: childrenList,
  16081. isExistThesaurusItem: map['IsExistThesaurusItem'],
  16082. );
  16083. }
  16084. Map<String, dynamic> toJson() {
  16085. final map = Map<String, dynamic>();
  16086. if(id != null) {
  16087. map['Id'] = id;
  16088. }
  16089. if(label != null) {
  16090. map['Label'] = label;
  16091. }
  16092. if(fatherCode != null) {
  16093. map['FatherCode'] = fatherCode;
  16094. }
  16095. if(thesaurusItemDescription != null) {
  16096. map['ThesaurusItemDescription'] = thesaurusItemDescription;
  16097. }
  16098. if(thesaurusItemConclusion != null) {
  16099. map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
  16100. }
  16101. map['Type'] = type.index;
  16102. if(children != null) {
  16103. map['Children'] = children;
  16104. }
  16105. map['IsExistThesaurusItem'] = isExistThesaurusItem;
  16106. return map;
  16107. }
  16108. }
  16109. class ManageThesaurusItemDTO extends BaseThesaurusItemBaseDTO<ManageThesaurusItemDTO>{
  16110. ManageThesaurusItemDTO(
  16111. );
  16112. factory ManageThesaurusItemDTO.fromJson(Map<String, dynamic> map) {
  16113. return ManageThesaurusItemDTO(
  16114. );
  16115. }
  16116. Map<String, dynamic> toJson() {
  16117. final map = super.toJson();
  16118. return map;
  16119. }
  16120. }
  16121. class ManageUpdateProductDTO extends UpdateProductDTO{
  16122. ManageUpdateProductDTO({
  16123. bool isSuccess = false,
  16124. }) : super(
  16125. isSuccess: isSuccess,
  16126. );
  16127. factory ManageUpdateProductDTO.fromJson(Map<String, dynamic> map) {
  16128. return ManageUpdateProductDTO(
  16129. isSuccess: map['IsSuccess'],
  16130. );
  16131. }
  16132. Map<String, dynamic> toJson() {
  16133. final map = super.toJson();
  16134. return map;
  16135. }
  16136. }
  16137. class OnlineTokenDTO extends TokenDTO{
  16138. String? ipAddress;
  16139. OnlineTokenDTO({
  16140. this.ipAddress,
  16141. int version = 0,
  16142. String? code,
  16143. AccountType accountType = AccountType.Admin,
  16144. String? accountName,
  16145. Platform platform = Platform.Windows,
  16146. LoginSource loginSource = LoginSource.PC,
  16147. String? clientId,
  16148. String? loginServer,
  16149. DateTime? createTime,
  16150. DateTime? expiration,
  16151. int ipValue = 0,
  16152. bool isOnline = false,
  16153. String? installVersion,
  16154. bool isOldPlatform = false,
  16155. ProxyTypeEnum proxyType = ProxyTypeEnum.Old,
  16156. }) : super(
  16157. version: version,
  16158. code: code,
  16159. accountType: accountType,
  16160. accountName: accountName,
  16161. platform: platform,
  16162. loginSource: loginSource,
  16163. clientId: clientId,
  16164. loginServer: loginServer,
  16165. createTime: createTime,
  16166. expiration: expiration,
  16167. ipValue: ipValue,
  16168. isOnline: isOnline,
  16169. installVersion: installVersion,
  16170. isOldPlatform: isOldPlatform,
  16171. proxyType: proxyType,
  16172. );
  16173. factory OnlineTokenDTO.fromJson(Map<String, dynamic> map) {
  16174. return OnlineTokenDTO(
  16175. ipAddress: map['IpAddress'],
  16176. version: map['Version'],
  16177. code: map['Code'],
  16178. accountType: AccountType.values.firstWhere((e) => e.index == map['AccountType']),
  16179. accountName: map['AccountName'],
  16180. platform: Platform.values.firstWhere((e) => e.index == map['Platform']),
  16181. loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
  16182. clientId: map['ClientId'],
  16183. loginServer: map['LoginServer'],
  16184. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  16185. expiration: map['Expiration'] != null ? DateTime.parse(map['Expiration']) : null,
  16186. ipValue: map['IpValue'],
  16187. isOnline: map['IsOnline'],
  16188. installVersion: map['InstallVersion'],
  16189. isOldPlatform: map['IsOldPlatform'],
  16190. proxyType: ProxyTypeEnum.values.firstWhere((e) => e.index == map['ProxyType']),
  16191. );
  16192. }
  16193. Map<String, dynamic> toJson() {
  16194. final map = super.toJson();
  16195. if(ipAddress != null)
  16196. map['IpAddress'] = ipAddress;
  16197. return map;
  16198. }
  16199. }
  16200. class SelectParentItemDTO extends SelectItemDTO{
  16201. String? parentCode;
  16202. SelectParentItemDTO({
  16203. this.parentCode,
  16204. String? key,
  16205. String? value,
  16206. String? language,
  16207. }) : super(
  16208. key: key,
  16209. value: value,
  16210. language: language,
  16211. );
  16212. factory SelectParentItemDTO.fromJson(Map<String, dynamic> map) {
  16213. return SelectParentItemDTO(
  16214. parentCode: map['ParentCode'],
  16215. key: map['Key'],
  16216. value: map['Value'],
  16217. language: map['Language'],
  16218. );
  16219. }
  16220. Map<String, dynamic> toJson() {
  16221. final map = super.toJson();
  16222. if(parentCode != null)
  16223. map['ParentCode'] = parentCode;
  16224. return map;
  16225. }
  16226. }
  16227. class SystemConfigDTO extends BaseDTO{
  16228. String? code;
  16229. String? configKey;
  16230. String? configContent;
  16231. String? configPageControls;
  16232. SystemConfigDTO({
  16233. this.code,
  16234. this.configKey,
  16235. this.configContent,
  16236. this.configPageControls,
  16237. DateTime? createTime,
  16238. DateTime? updateTime,
  16239. }) : super(
  16240. createTime: createTime,
  16241. updateTime: updateTime,
  16242. );
  16243. factory SystemConfigDTO.fromJson(Map<String, dynamic> map) {
  16244. return SystemConfigDTO(
  16245. code: map['Code'],
  16246. configKey: map['ConfigKey'],
  16247. configContent: map['ConfigContent'],
  16248. configPageControls: map['ConfigPageControls'],
  16249. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  16250. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  16251. );
  16252. }
  16253. Map<String, dynamic> toJson() {
  16254. final map = super.toJson();
  16255. if(code != null)
  16256. map['Code'] = code;
  16257. if(configKey != null)
  16258. map['ConfigKey'] = configKey;
  16259. if(configContent != null)
  16260. map['ConfigContent'] = configContent;
  16261. if(configPageControls != null)
  16262. map['ConfigPageControls'] = configPageControls;
  16263. return map;
  16264. }
  16265. }
  16266. class LiveBoardDataDTO {
  16267. String? userCode;
  16268. String? boardData;
  16269. DateTime? interactiveTime;
  16270. LiveBoardDataDTO({
  16271. this.userCode,
  16272. this.boardData,
  16273. this.interactiveTime,
  16274. });
  16275. factory LiveBoardDataDTO.fromJson(Map<String, dynamic> map) {
  16276. return LiveBoardDataDTO(
  16277. userCode: map['UserCode'],
  16278. boardData: map['BoardData'],
  16279. interactiveTime: map['InteractiveTime'] != null ? DateTime.parse(map['InteractiveTime']) : null,
  16280. );
  16281. }
  16282. Map<String, dynamic> toJson() {
  16283. final map = Map<String, dynamic>();
  16284. if(userCode != null) {
  16285. map['UserCode'] = userCode;
  16286. }
  16287. if(boardData != null) {
  16288. map['BoardData'] = boardData;
  16289. }
  16290. if(interactiveTime != null) {
  16291. map['InteractiveTime'] = JsonRpcUtils.dateFormat(interactiveTime!);
  16292. }
  16293. return map;
  16294. }
  16295. }
  16296. class LiveMemberStatusDTO {
  16297. String? code;
  16298. String? liveRoomCode;
  16299. LiveMemberStatus status;
  16300. UserStatusEnum userStatusType;
  16301. String? loginServerUrl;
  16302. LoginSource loginSource;
  16303. LiveMemberStatusDTO({
  16304. this.code,
  16305. this.liveRoomCode,
  16306. this.status = LiveMemberStatus.Default,
  16307. this.userStatusType = UserStatusEnum.NotOnline,
  16308. this.loginServerUrl,
  16309. this.loginSource = LoginSource.PC,
  16310. });
  16311. factory LiveMemberStatusDTO.fromJson(Map<String, dynamic> map) {
  16312. return LiveMemberStatusDTO(
  16313. code: map['Code'],
  16314. liveRoomCode: map['LiveRoomCode'],
  16315. status: LiveMemberStatus.values.firstWhere((e) => e.index == map['Status']),
  16316. userStatusType: UserStatusEnum.values.firstWhere((e) => e.index == map['UserStatusType']),
  16317. loginServerUrl: map['LoginServerUrl'],
  16318. loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
  16319. );
  16320. }
  16321. Map<String, dynamic> toJson() {
  16322. final map = Map<String, dynamic>();
  16323. if(code != null) {
  16324. map['Code'] = code;
  16325. }
  16326. if(liveRoomCode != null) {
  16327. map['LiveRoomCode'] = liveRoomCode;
  16328. }
  16329. map['Status'] = status.index;
  16330. map['UserStatusType'] = userStatusType.index;
  16331. if(loginServerUrl != null) {
  16332. map['LoginServerUrl'] = loginServerUrl;
  16333. }
  16334. map['LoginSource'] = loginSource.index;
  16335. return map;
  16336. }
  16337. }
  16338. class LiveRoomDTO {
  16339. String? liveRoomCode;
  16340. String? name;
  16341. String? relatedCode;
  16342. String? initiatorCode;
  16343. int rtcRoomId;
  16344. int sdkAppId;
  16345. BusinessModuleEnum businessModule;
  16346. LiveRoomStatus status;
  16347. List<LiveMemberDTO>? deviceInfos;
  16348. List<LiveMemberDTO>? userInfos;
  16349. List<LiveViewerDTO>? viewerInfos;
  16350. ShareInfoDTO? shareInfo;
  16351. LiveRoomDTO({
  16352. this.liveRoomCode,
  16353. this.name,
  16354. this.relatedCode,
  16355. this.initiatorCode,
  16356. this.rtcRoomId = 0,
  16357. this.sdkAppId = 0,
  16358. this.businessModule = BusinessModuleEnum.RemoteDiagnosis,
  16359. this.status = LiveRoomStatus.Default,
  16360. this.deviceInfos,
  16361. this.userInfos,
  16362. this.viewerInfos,
  16363. this.shareInfo,
  16364. });
  16365. factory LiveRoomDTO.fromJson(Map<String, dynamic> map) {
  16366. return LiveRoomDTO(
  16367. liveRoomCode: map['LiveRoomCode'],
  16368. name: map['Name'],
  16369. relatedCode: map['RelatedCode'],
  16370. initiatorCode: map['InitiatorCode'],
  16371. rtcRoomId: map['RtcRoomId'],
  16372. sdkAppId: map['SdkAppId'],
  16373. businessModule: BusinessModuleEnum.values.firstWhere((e) => e.index == map['BusinessModule']),
  16374. status: LiveRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  16375. deviceInfos: map['DeviceInfos'] != null ? (map['DeviceInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16376. userInfos: map['UserInfos'] != null ? (map['UserInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16377. viewerInfos: map['ViewerInfos'] != null ? (map['ViewerInfos'] as List).map((e)=>LiveViewerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16378. shareInfo: map['ShareInfo'] != null ? ShareInfoDTO.fromJson(map['ShareInfo']) : null,
  16379. );
  16380. }
  16381. Map<String, dynamic> toJson() {
  16382. final map = Map<String, dynamic>();
  16383. if(liveRoomCode != null) {
  16384. map['LiveRoomCode'] = liveRoomCode;
  16385. }
  16386. if(name != null) {
  16387. map['Name'] = name;
  16388. }
  16389. if(relatedCode != null) {
  16390. map['RelatedCode'] = relatedCode;
  16391. }
  16392. if(initiatorCode != null) {
  16393. map['InitiatorCode'] = initiatorCode;
  16394. }
  16395. map['RtcRoomId'] = rtcRoomId;
  16396. map['SdkAppId'] = sdkAppId;
  16397. map['BusinessModule'] = businessModule.index;
  16398. map['Status'] = status.index;
  16399. if(deviceInfos != null) {
  16400. map['DeviceInfos'] = deviceInfos;
  16401. }
  16402. if(userInfos != null) {
  16403. map['UserInfos'] = userInfos;
  16404. }
  16405. if(viewerInfos != null) {
  16406. map['ViewerInfos'] = viewerInfos;
  16407. }
  16408. if(shareInfo != null) {
  16409. map['ShareInfo'] = shareInfo;
  16410. }
  16411. return map;
  16412. }
  16413. }
  16414. class DownloadFileInfoDTO {
  16415. List<FileUploadInfoDTO>? fileUploadInfos;
  16416. String? folderCode;
  16417. String? fileName;
  16418. DownloadFileInfoDTO({
  16419. this.fileUploadInfos,
  16420. this.folderCode,
  16421. this.fileName,
  16422. });
  16423. factory DownloadFileInfoDTO.fromJson(Map<String, dynamic> map) {
  16424. return DownloadFileInfoDTO(
  16425. fileUploadInfos: map['FileUploadInfos'] != null ? (map['FileUploadInfos'] as List).map((e)=>FileUploadInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16426. folderCode: map['FolderCode'],
  16427. fileName: map['FileName'],
  16428. );
  16429. }
  16430. Map<String, dynamic> toJson() {
  16431. final map = Map<String, dynamic>();
  16432. if(fileUploadInfos != null) {
  16433. map['FileUploadInfos'] = fileUploadInfos;
  16434. }
  16435. if(folderCode != null) {
  16436. map['FolderCode'] = folderCode;
  16437. }
  16438. if(fileName != null) {
  16439. map['FileName'] = fileName;
  16440. }
  16441. return map;
  16442. }
  16443. }
  16444. class ConvertFileInfoDTO {
  16445. String? recordCode;
  16446. String? filePath;
  16447. String? folderCode;
  16448. UploadFileTypeEnum fileType;
  16449. ConvertFileInfoDTO({
  16450. this.recordCode,
  16451. this.filePath,
  16452. this.folderCode,
  16453. this.fileType = UploadFileTypeEnum.Unknown,
  16454. });
  16455. factory ConvertFileInfoDTO.fromJson(Map<String, dynamic> map) {
  16456. return ConvertFileInfoDTO(
  16457. recordCode: map['RecordCode'],
  16458. filePath: map['FilePath'],
  16459. folderCode: map['FolderCode'],
  16460. fileType: UploadFileTypeEnum.values.firstWhere((e) => e.index == map['FileType']),
  16461. );
  16462. }
  16463. Map<String, dynamic> toJson() {
  16464. final map = Map<String, dynamic>();
  16465. if(recordCode != null) {
  16466. map['RecordCode'] = recordCode;
  16467. }
  16468. if(filePath != null) {
  16469. map['FilePath'] = filePath;
  16470. }
  16471. if(folderCode != null) {
  16472. map['FolderCode'] = folderCode;
  16473. }
  16474. map['FileType'] = fileType.index;
  16475. return map;
  16476. }
  16477. }
  16478. class LabConvertStateDTO {
  16479. String? code;
  16480. String? creatorCode;
  16481. String? recordCode;
  16482. bool isTemplate;
  16483. DateTime? lastExecuteTime;
  16484. int errorCount;
  16485. List<DownloadFileInfoDTO>? downloadErrorFiles;
  16486. List<ConvertFileInfoDTO>? convertErrorFiles;
  16487. LabConvertStateDTO({
  16488. this.code,
  16489. this.creatorCode,
  16490. this.recordCode,
  16491. this.isTemplate = false,
  16492. this.lastExecuteTime,
  16493. this.errorCount = 0,
  16494. this.downloadErrorFiles,
  16495. this.convertErrorFiles,
  16496. });
  16497. factory LabConvertStateDTO.fromJson(Map<String, dynamic> map) {
  16498. return LabConvertStateDTO(
  16499. code: map['Code'],
  16500. creatorCode: map['CreatorCode'],
  16501. recordCode: map['RecordCode'],
  16502. isTemplate: map['IsTemplate'],
  16503. lastExecuteTime: map['LastExecuteTime'] != null ? DateTime.parse(map['LastExecuteTime']) : null,
  16504. errorCount: map['ErrorCount'],
  16505. downloadErrorFiles: map['DownloadErrorFiles'] != null ? (map['DownloadErrorFiles'] as List).map((e)=>DownloadFileInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16506. convertErrorFiles: map['ConvertErrorFiles'] != null ? (map['ConvertErrorFiles'] as List).map((e)=>ConvertFileInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16507. );
  16508. }
  16509. Map<String, dynamic> toJson() {
  16510. final map = Map<String, dynamic>();
  16511. if(code != null) {
  16512. map['Code'] = code;
  16513. }
  16514. if(creatorCode != null) {
  16515. map['CreatorCode'] = creatorCode;
  16516. }
  16517. if(recordCode != null) {
  16518. map['RecordCode'] = recordCode;
  16519. }
  16520. map['IsTemplate'] = isTemplate;
  16521. if(lastExecuteTime != null) {
  16522. map['LastExecuteTime'] = JsonRpcUtils.dateFormat(lastExecuteTime!);
  16523. }
  16524. map['ErrorCount'] = errorCount;
  16525. if(downloadErrorFiles != null) {
  16526. map['DownloadErrorFiles'] = downloadErrorFiles;
  16527. }
  16528. if(convertErrorFiles != null) {
  16529. map['ConvertErrorFiles'] = convertErrorFiles;
  16530. }
  16531. return map;
  16532. }
  16533. }
  16534. class GradingProtectionConfigDTO {
  16535. String? code;
  16536. String? name;
  16537. int configType;
  16538. String? value;
  16539. GradingProtectionConfigDTO({
  16540. this.code,
  16541. this.name,
  16542. this.configType = 0,
  16543. this.value,
  16544. });
  16545. factory GradingProtectionConfigDTO.fromJson(Map<String, dynamic> map) {
  16546. return GradingProtectionConfigDTO(
  16547. code: map['Code'],
  16548. name: map['Name'],
  16549. configType: map['ConfigType'],
  16550. value: map['Value'],
  16551. );
  16552. }
  16553. Map<String, dynamic> toJson() {
  16554. final map = Map<String, dynamic>();
  16555. if(code != null) {
  16556. map['Code'] = code;
  16557. }
  16558. if(name != null) {
  16559. map['Name'] = name;
  16560. }
  16561. map['ConfigType'] = configType;
  16562. if(value != null) {
  16563. map['Value'] = value;
  16564. }
  16565. return map;
  16566. }
  16567. }
  16568. class DistributedServerInfoDTO extends BaseDTO{
  16569. String? serverCode;
  16570. bool isMaster;
  16571. String? name;
  16572. String? description;
  16573. bool enable;
  16574. DistributedServerTypeEnum serverType;
  16575. String? serverUrl;
  16576. String? lat;
  16577. String? lng;
  16578. List<IPAddressInfoDTO>? assignClientIPList;
  16579. int rTCStartingRoomId;
  16580. String? shareCodePrefix;
  16581. DistributedServerInfoDTO({
  16582. this.serverCode,
  16583. this.isMaster = false,
  16584. this.name,
  16585. this.description,
  16586. this.enable = false,
  16587. this.serverType = DistributedServerTypeEnum.Official,
  16588. this.serverUrl,
  16589. this.lat,
  16590. this.lng,
  16591. this.assignClientIPList,
  16592. this.rTCStartingRoomId = 0,
  16593. this.shareCodePrefix,
  16594. DateTime? createTime,
  16595. DateTime? updateTime,
  16596. }) : super(
  16597. createTime: createTime,
  16598. updateTime: updateTime,
  16599. );
  16600. factory DistributedServerInfoDTO.fromJson(Map<String, dynamic> map) {
  16601. return DistributedServerInfoDTO(
  16602. serverCode: map['ServerCode'],
  16603. isMaster: map['IsMaster'],
  16604. name: map['Name'],
  16605. description: map['Description'],
  16606. enable: map['Enable'],
  16607. serverType: DistributedServerTypeEnum.values.firstWhere((e) => e.index == map['ServerType']),
  16608. serverUrl: map['ServerUrl'],
  16609. lat: map['Lat'],
  16610. lng: map['Lng'],
  16611. assignClientIPList: map['AssignClientIPList'] != null ? (map['AssignClientIPList'] as List).map((e)=>IPAddressInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16612. rTCStartingRoomId: map['RTCStartingRoomId'],
  16613. shareCodePrefix: map['ShareCodePrefix'],
  16614. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  16615. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  16616. );
  16617. }
  16618. Map<String, dynamic> toJson() {
  16619. final map = super.toJson();
  16620. if(serverCode != null)
  16621. map['ServerCode'] = serverCode;
  16622. map['IsMaster'] = isMaster;
  16623. if(name != null)
  16624. map['Name'] = name;
  16625. if(description != null)
  16626. map['Description'] = description;
  16627. map['Enable'] = enable;
  16628. map['ServerType'] = serverType.index;
  16629. if(serverUrl != null)
  16630. map['ServerUrl'] = serverUrl;
  16631. if(lat != null)
  16632. map['Lat'] = lat;
  16633. if(lng != null)
  16634. map['Lng'] = lng;
  16635. if(assignClientIPList != null)
  16636. map['AssignClientIPList'] = assignClientIPList;
  16637. map['RTCStartingRoomId'] = rTCStartingRoomId;
  16638. if(shareCodePrefix != null)
  16639. map['ShareCodePrefix'] = shareCodePrefix;
  16640. return map;
  16641. }
  16642. }
  16643. class DiagnosisResultDTO {
  16644. int index;
  16645. String? diagnosisResult;
  16646. DiagnosisResultDTO({
  16647. this.index = 0,
  16648. this.diagnosisResult,
  16649. });
  16650. factory DiagnosisResultDTO.fromJson(Map<String, dynamic> map) {
  16651. return DiagnosisResultDTO(
  16652. index: map['Index'],
  16653. diagnosisResult: map['DiagnosisResult'],
  16654. );
  16655. }
  16656. Map<String, dynamic> toJson() {
  16657. final map = Map<String, dynamic>();
  16658. map['Index'] = index;
  16659. if(diagnosisResult != null) {
  16660. map['DiagnosisResult'] = diagnosisResult;
  16661. }
  16662. return map;
  16663. }
  16664. }
  16665. class DeviceOutputConfigDTO {
  16666. String? code;
  16667. String? name;
  16668. DeviceVideoOutputTypeEnum deviceVideoOutputType;
  16669. int videoWidth;
  16670. int videoHeight;
  16671. DeviceOutputConfigDTO({
  16672. this.code,
  16673. this.name,
  16674. this.deviceVideoOutputType = DeviceVideoOutputTypeEnum.MergedVideo,
  16675. this.videoWidth = 0,
  16676. this.videoHeight = 0,
  16677. });
  16678. factory DeviceOutputConfigDTO.fromJson(Map<String, dynamic> map) {
  16679. return DeviceOutputConfigDTO(
  16680. code: map['Code'],
  16681. name: map['Name'],
  16682. deviceVideoOutputType: DeviceVideoOutputTypeEnum.values.firstWhere((e) => e.index == map['DeviceVideoOutputType']),
  16683. videoWidth: map['VideoWidth'],
  16684. videoHeight: map['VideoHeight'],
  16685. );
  16686. }
  16687. Map<String, dynamic> toJson() {
  16688. final map = Map<String, dynamic>();
  16689. if(code != null) {
  16690. map['Code'] = code;
  16691. }
  16692. if(name != null) {
  16693. map['Name'] = name;
  16694. }
  16695. map['DeviceVideoOutputType'] = deviceVideoOutputType.index;
  16696. map['VideoWidth'] = videoWidth;
  16697. map['VideoHeight'] = videoHeight;
  16698. return map;
  16699. }
  16700. }
  16701. class ResolutionDTO {
  16702. String? shortCode;
  16703. int videoWidth;
  16704. int videoHeight;
  16705. ResolutionDTO({
  16706. this.shortCode,
  16707. this.videoWidth = 0,
  16708. this.videoHeight = 0,
  16709. });
  16710. factory ResolutionDTO.fromJson(Map<String, dynamic> map) {
  16711. return ResolutionDTO(
  16712. shortCode: map['ShortCode'],
  16713. videoWidth: map['VideoWidth'],
  16714. videoHeight: map['VideoHeight'],
  16715. );
  16716. }
  16717. Map<String, dynamic> toJson() {
  16718. final map = Map<String, dynamic>();
  16719. if(shortCode != null) {
  16720. map['ShortCode'] = shortCode;
  16721. }
  16722. map['VideoWidth'] = videoWidth;
  16723. map['VideoHeight'] = videoHeight;
  16724. return map;
  16725. }
  16726. }
  16727. class BrandModelDetailDTO {
  16728. String? code;
  16729. String? brand;
  16730. String? model;
  16731. List<ResolutionDTO>? resolutions;
  16732. BrandModelDetailDTO({
  16733. this.code,
  16734. this.brand,
  16735. this.model,
  16736. this.resolutions,
  16737. });
  16738. factory BrandModelDetailDTO.fromJson(Map<String, dynamic> map) {
  16739. return BrandModelDetailDTO(
  16740. code: map['Code'],
  16741. brand: map['Brand'],
  16742. model: map['Model'],
  16743. resolutions: map['Resolutions'] != null ? (map['Resolutions'] as List).map((e)=>ResolutionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16744. );
  16745. }
  16746. Map<String, dynamic> toJson() {
  16747. final map = Map<String, dynamic>();
  16748. if(code != null) {
  16749. map['Code'] = code;
  16750. }
  16751. if(brand != null) {
  16752. map['Brand'] = brand;
  16753. }
  16754. if(model != null) {
  16755. map['Model'] = model;
  16756. }
  16757. if(resolutions != null) {
  16758. map['Resolutions'] = resolutions;
  16759. }
  16760. return map;
  16761. }
  16762. }
  16763. class DeviceLiveShareInfoDTO {
  16764. String? deviceCode;
  16765. String? shareUserCode;
  16766. String? shareUserName;
  16767. DateTime? shareTime;
  16768. DeviceLiveShareInfoDTO({
  16769. this.deviceCode,
  16770. this.shareUserCode,
  16771. this.shareUserName,
  16772. this.shareTime,
  16773. });
  16774. factory DeviceLiveShareInfoDTO.fromJson(Map<String, dynamic> map) {
  16775. return DeviceLiveShareInfoDTO(
  16776. deviceCode: map['DeviceCode'],
  16777. shareUserCode: map['ShareUserCode'],
  16778. shareUserName: map['ShareUserName'],
  16779. shareTime: map['ShareTime'] != null ? DateTime.parse(map['ShareTime']) : null,
  16780. );
  16781. }
  16782. Map<String, dynamic> toJson() {
  16783. final map = Map<String, dynamic>();
  16784. if(deviceCode != null) {
  16785. map['DeviceCode'] = deviceCode;
  16786. }
  16787. if(shareUserCode != null) {
  16788. map['ShareUserCode'] = shareUserCode;
  16789. }
  16790. if(shareUserName != null) {
  16791. map['ShareUserName'] = shareUserName;
  16792. }
  16793. if(shareTime != null) {
  16794. map['ShareTime'] = JsonRpcUtils.dateFormat(shareTime!);
  16795. }
  16796. return map;
  16797. }
  16798. }
  16799. class NameItemSettingInfoDTO {
  16800. String? name;
  16801. String? key;
  16802. NameItemSettingInfoDTO({
  16803. this.name,
  16804. this.key,
  16805. });
  16806. factory NameItemSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  16807. return NameItemSettingInfoDTO(
  16808. name: map['Name'],
  16809. key: map['Key'],
  16810. );
  16811. }
  16812. Map<String, dynamic> toJson() {
  16813. final map = Map<String, dynamic>();
  16814. if(name != null) {
  16815. map['Name'] = name;
  16816. }
  16817. if(key != null) {
  16818. map['Key'] = key;
  16819. }
  16820. return map;
  16821. }
  16822. }
  16823. class GroupSettingInfoDTO extends NameItemSettingInfoDTO{
  16824. List<NameItemSettingInfoDTO>? items;
  16825. GroupSettingInfoDTO({
  16826. this.items,
  16827. String? name,
  16828. String? key,
  16829. }) : super(
  16830. name: name,
  16831. key: key,
  16832. );
  16833. factory GroupSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  16834. return GroupSettingInfoDTO(
  16835. items: map['Items'] != null ? (map['Items'] as List).map((e)=>NameItemSettingInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16836. name: map['Name'],
  16837. key: map['Key'],
  16838. );
  16839. }
  16840. Map<String, dynamic> toJson() {
  16841. final map = super.toJson();
  16842. if(items != null)
  16843. map['Items'] = items;
  16844. return map;
  16845. }
  16846. }
  16847. class ListPageSettingInfoDTO extends NameItemSettingInfoDTO{
  16848. List<GroupSettingInfoDTO>? groups;
  16849. ListPageSettingInfoDTO({
  16850. this.groups,
  16851. String? name,
  16852. String? key,
  16853. }) : super(
  16854. name: name,
  16855. key: key,
  16856. );
  16857. factory ListPageSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  16858. return ListPageSettingInfoDTO(
  16859. groups: map['Groups'] != null ? (map['Groups'] as List).map((e)=>GroupSettingInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16860. name: map['Name'],
  16861. key: map['Key'],
  16862. );
  16863. }
  16864. Map<String, dynamic> toJson() {
  16865. final map = super.toJson();
  16866. if(groups != null)
  16867. map['Groups'] = groups;
  16868. return map;
  16869. }
  16870. }
  16871. class SystemSettingInfoDTO {
  16872. String? selectedListPageKey;
  16873. String? selectedGroupKey;
  16874. List<ListPageSettingInfoDTO>? listPages;
  16875. String? applyLicenseResult;
  16876. SystemSettingInfoDTO({
  16877. this.selectedListPageKey,
  16878. this.selectedGroupKey,
  16879. this.listPages,
  16880. this.applyLicenseResult,
  16881. });
  16882. factory SystemSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  16883. return SystemSettingInfoDTO(
  16884. selectedListPageKey: map['SelectedListPageKey'],
  16885. selectedGroupKey: map['SelectedGroupKey'],
  16886. listPages: map['ListPages'] != null ? (map['ListPages'] as List).map((e)=>ListPageSettingInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16887. applyLicenseResult: map['ApplyLicenseResult'],
  16888. );
  16889. }
  16890. Map<String, dynamic> toJson() {
  16891. final map = Map<String, dynamic>();
  16892. if(selectedListPageKey != null) {
  16893. map['SelectedListPageKey'] = selectedListPageKey;
  16894. }
  16895. if(selectedGroupKey != null) {
  16896. map['SelectedGroupKey'] = selectedGroupKey;
  16897. }
  16898. if(listPages != null) {
  16899. map['ListPages'] = listPages;
  16900. }
  16901. if(applyLicenseResult != null) {
  16902. map['ApplyLicenseResult'] = applyLicenseResult;
  16903. }
  16904. return map;
  16905. }
  16906. }
  16907. class CommandSettingInfoDTO extends NameItemSettingInfoDTO{
  16908. String? commandDescription;
  16909. CommandSettingInfoDTO({
  16910. this.commandDescription,
  16911. String? name,
  16912. String? key,
  16913. }) : super(
  16914. name: name,
  16915. key: key,
  16916. );
  16917. factory CommandSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  16918. return CommandSettingInfoDTO(
  16919. commandDescription: map['CommandDescription'],
  16920. name: map['Name'],
  16921. key: map['Key'],
  16922. );
  16923. }
  16924. Map<String, dynamic> toJson() {
  16925. final map = super.toJson();
  16926. if(commandDescription != null)
  16927. map['CommandDescription'] = commandDescription;
  16928. return map;
  16929. }
  16930. }
  16931. class ExtendCommandSettingInfoDTO extends CommandSettingInfoDTO{
  16932. String? additionalDescription;
  16933. String? value;
  16934. ExtendCommandSettingInfoDTO({
  16935. this.additionalDescription,
  16936. this.value,
  16937. String? commandDescription,
  16938. String? name,
  16939. String? key,
  16940. }) : super(
  16941. commandDescription: commandDescription,
  16942. name: name,
  16943. key: key,
  16944. );
  16945. factory ExtendCommandSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  16946. return ExtendCommandSettingInfoDTO(
  16947. additionalDescription: map['AdditionalDescription'],
  16948. value: map['Value'],
  16949. commandDescription: map['CommandDescription'],
  16950. name: map['Name'],
  16951. key: map['Key'],
  16952. );
  16953. }
  16954. Map<String, dynamic> toJson() {
  16955. final map = super.toJson();
  16956. if(additionalDescription != null)
  16957. map['AdditionalDescription'] = additionalDescription;
  16958. if(value != null)
  16959. map['Value'] = value;
  16960. return map;
  16961. }
  16962. }
  16963. class CommandResultInfoDTO extends NameItemSettingInfoDTO{
  16964. String? result;
  16965. CommandResultInfoDTO({
  16966. this.result,
  16967. String? name,
  16968. String? key,
  16969. }) : super(
  16970. name: name,
  16971. key: key,
  16972. );
  16973. factory CommandResultInfoDTO.fromJson(Map<String, dynamic> map) {
  16974. return CommandResultInfoDTO(
  16975. result: map['Result'],
  16976. name: map['Name'],
  16977. key: map['Key'],
  16978. );
  16979. }
  16980. Map<String, dynamic> toJson() {
  16981. final map = super.toJson();
  16982. if(result != null)
  16983. map['Result'] = result;
  16984. return map;
  16985. }
  16986. }
  16987. class FeatureItemInfoDTO extends NameItemSettingInfoDTO{
  16988. String? details;
  16989. String? status;
  16990. FeatureItemInfoDTO({
  16991. this.details,
  16992. this.status,
  16993. String? name,
  16994. String? key,
  16995. }) : super(
  16996. name: name,
  16997. key: key,
  16998. );
  16999. factory FeatureItemInfoDTO.fromJson(Map<String, dynamic> map) {
  17000. return FeatureItemInfoDTO(
  17001. details: map['Details'],
  17002. status: map['Status'],
  17003. name: map['Name'],
  17004. key: map['Key'],
  17005. );
  17006. }
  17007. Map<String, dynamic> toJson() {
  17008. final map = super.toJson();
  17009. if(details != null)
  17010. map['Details'] = details;
  17011. if(status != null)
  17012. map['Status'] = status;
  17013. return map;
  17014. }
  17015. }
  17016. class ApplyLicenseInfoDTO extends NameItemSettingInfoDTO{
  17017. String? applyLicenseDescription;
  17018. ApplyLicenseInfoDTO({
  17019. this.applyLicenseDescription,
  17020. String? name,
  17021. String? key,
  17022. }) : super(
  17023. name: name,
  17024. key: key,
  17025. );
  17026. factory ApplyLicenseInfoDTO.fromJson(Map<String, dynamic> map) {
  17027. return ApplyLicenseInfoDTO(
  17028. applyLicenseDescription: map['ApplyLicenseDescription'],
  17029. name: map['Name'],
  17030. key: map['Key'],
  17031. );
  17032. }
  17033. Map<String, dynamic> toJson() {
  17034. final map = super.toJson();
  17035. if(applyLicenseDescription != null)
  17036. map['ApplyLicenseDescription'] = applyLicenseDescription;
  17037. return map;
  17038. }
  17039. }
  17040. class BoolParameterInfoDTO extends NameItemSettingInfoDTO{
  17041. bool value;
  17042. BoolParameterInfoDTO({
  17043. this.value = false,
  17044. String? name,
  17045. String? key,
  17046. }) : super(
  17047. name: name,
  17048. key: key,
  17049. );
  17050. factory BoolParameterInfoDTO.fromJson(Map<String, dynamic> map) {
  17051. return BoolParameterInfoDTO(
  17052. value: map['Value'],
  17053. name: map['Name'],
  17054. key: map['Key'],
  17055. );
  17056. }
  17057. Map<String, dynamic> toJson() {
  17058. final map = super.toJson();
  17059. map['Value'] = value;
  17060. return map;
  17061. }
  17062. }
  17063. class StringParameterInfoDTO extends NameItemSettingInfoDTO{
  17064. String? value;
  17065. StringParameterInfoDTO({
  17066. this.value,
  17067. String? name,
  17068. String? key,
  17069. }) : super(
  17070. name: name,
  17071. key: key,
  17072. );
  17073. factory StringParameterInfoDTO.fromJson(Map<String, dynamic> map) {
  17074. return StringParameterInfoDTO(
  17075. value: map['Value'],
  17076. name: map['Name'],
  17077. key: map['Key'],
  17078. );
  17079. }
  17080. Map<String, dynamic> toJson() {
  17081. final map = super.toJson();
  17082. if(value != null)
  17083. map['Value'] = value;
  17084. return map;
  17085. }
  17086. }
  17087. class ChoiceParameterInfoDTO extends NameItemSettingInfoDTO{
  17088. String? value;
  17089. List<String>? items;
  17090. ChoiceParameterInfoDTO({
  17091. this.value,
  17092. this.items,
  17093. String? name,
  17094. String? key,
  17095. }) : super(
  17096. name: name,
  17097. key: key,
  17098. );
  17099. factory ChoiceParameterInfoDTO.fromJson(Map<String, dynamic> map) {
  17100. return ChoiceParameterInfoDTO(
  17101. value: map['Value'],
  17102. items: map['Items']?.cast<String>().toList(),
  17103. name: map['Name'],
  17104. key: map['Key'],
  17105. );
  17106. }
  17107. Map<String, dynamic> toJson() {
  17108. final map = super.toJson();
  17109. if(value != null)
  17110. map['Value'] = value;
  17111. if(items != null)
  17112. map['Items'] = items;
  17113. return map;
  17114. }
  17115. }
  17116. class CommandResultPageSettingInfoDTO extends ListPageSettingInfoDTO{
  17117. String? result;
  17118. CommandResultPageSettingInfoDTO({
  17119. this.result,
  17120. List<GroupSettingInfoDTO>? groups,
  17121. String? name,
  17122. String? key,
  17123. }) : super(
  17124. groups: groups,
  17125. name: name,
  17126. key: key,
  17127. );
  17128. factory CommandResultPageSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  17129. return CommandResultPageSettingInfoDTO(
  17130. result: map['Result'],
  17131. groups: map['Groups'] != null ? (map['Groups'] as List).map((e)=>GroupSettingInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  17132. name: map['Name'],
  17133. key: map['Key'],
  17134. );
  17135. }
  17136. Map<String, dynamic> toJson() {
  17137. final map = super.toJson();
  17138. if(result != null)
  17139. map['Result'] = result;
  17140. return map;
  17141. }
  17142. }
  17143. class AdminView {
  17144. String? code;
  17145. String? name;
  17146. AdminView({
  17147. this.code,
  17148. this.name,
  17149. });
  17150. factory AdminView.fromJson(Map<String, dynamic> map) {
  17151. return AdminView(
  17152. code: map['Code'],
  17153. name: map['Name'],
  17154. );
  17155. }
  17156. Map<String, dynamic> toJson() {
  17157. final map = Map<String, dynamic>();
  17158. if(code != null) {
  17159. map['Code'] = code;
  17160. }
  17161. if(name != null) {
  17162. map['Name'] = name;
  17163. }
  17164. return map;
  17165. }
  17166. }
  17167. class BaseInfoView {
  17168. String? code;
  17169. String? name;
  17170. BaseInfoView({
  17171. this.code,
  17172. this.name,
  17173. });
  17174. factory BaseInfoView.fromJson(Map<String, dynamic> map) {
  17175. return BaseInfoView(
  17176. code: map['Code'],
  17177. name: map['Name'],
  17178. );
  17179. }
  17180. Map<String, dynamic> toJson() {
  17181. final map = Map<String, dynamic>();
  17182. if(code != null) {
  17183. map['Code'] = code;
  17184. }
  17185. if(name != null) {
  17186. map['Name'] = name;
  17187. }
  17188. return map;
  17189. }
  17190. }
  17191. class CaseLabelView {
  17192. String? code;
  17193. String? name;
  17194. CaseLabelView({
  17195. this.code,
  17196. this.name,
  17197. });
  17198. factory CaseLabelView.fromJson(Map<String, dynamic> map) {
  17199. return CaseLabelView(
  17200. code: map['Code'],
  17201. name: map['Name'],
  17202. );
  17203. }
  17204. Map<String, dynamic> toJson() {
  17205. final map = Map<String, dynamic>();
  17206. if(code != null) {
  17207. map['Code'] = code;
  17208. }
  17209. if(name != null) {
  17210. map['Name'] = name;
  17211. }
  17212. return map;
  17213. }
  17214. }
  17215. class ChannelDataView {
  17216. String? channelId;
  17217. String? downLoadUrl;
  17218. String? upLoadUrl;
  17219. ChannelDescriptionEnum description;
  17220. String? httpUrl;
  17221. String? hlsUrl;
  17222. ChannelDataView({
  17223. this.channelId,
  17224. this.downLoadUrl,
  17225. this.upLoadUrl,
  17226. this.description = ChannelDescriptionEnum.DeskChannel,
  17227. this.httpUrl,
  17228. this.hlsUrl,
  17229. });
  17230. factory ChannelDataView.fromJson(Map<String, dynamic> map) {
  17231. return ChannelDataView(
  17232. channelId: map['ChannelId'],
  17233. downLoadUrl: map['DownLoadUrl'],
  17234. upLoadUrl: map['UpLoadUrl'],
  17235. description: ChannelDescriptionEnum.values.firstWhere((e) => e.index == map['Description']),
  17236. httpUrl: map['HttpUrl'],
  17237. hlsUrl: map['HlsUrl'],
  17238. );
  17239. }
  17240. Map<String, dynamic> toJson() {
  17241. final map = Map<String, dynamic>();
  17242. if(channelId != null) {
  17243. map['ChannelId'] = channelId;
  17244. }
  17245. if(downLoadUrl != null) {
  17246. map['DownLoadUrl'] = downLoadUrl;
  17247. }
  17248. if(upLoadUrl != null) {
  17249. map['UpLoadUrl'] = upLoadUrl;
  17250. }
  17251. map['Description'] = description.index;
  17252. if(httpUrl != null) {
  17253. map['HttpUrl'] = httpUrl;
  17254. }
  17255. if(hlsUrl != null) {
  17256. map['HlsUrl'] = hlsUrl;
  17257. }
  17258. return map;
  17259. }
  17260. }
  17261. class ClassView {
  17262. String? code;
  17263. String? name;
  17264. ClassView({
  17265. this.code,
  17266. this.name,
  17267. });
  17268. factory ClassView.fromJson(Map<String, dynamic> map) {
  17269. return ClassView(
  17270. code: map['Code'],
  17271. name: map['Name'],
  17272. );
  17273. }
  17274. Map<String, dynamic> toJson() {
  17275. final map = Map<String, dynamic>();
  17276. if(code != null) {
  17277. map['Code'] = code;
  17278. }
  17279. if(name != null) {
  17280. map['Name'] = name;
  17281. }
  17282. return map;
  17283. }
  17284. }
  17285. class CommentView {
  17286. String? userCode;
  17287. String? userName;
  17288. double score;
  17289. String? description;
  17290. CommentView({
  17291. this.userCode,
  17292. this.userName,
  17293. this.score = 0,
  17294. this.description,
  17295. });
  17296. factory CommentView.fromJson(Map<String, dynamic> map) {
  17297. return CommentView(
  17298. userCode: map['UserCode'],
  17299. userName: map['UserName'],
  17300. score: double.parse(map['Score'].toString()),
  17301. description: map['Description'],
  17302. );
  17303. }
  17304. Map<String, dynamic> toJson() {
  17305. final map = Map<String, dynamic>();
  17306. if(userCode != null) {
  17307. map['UserCode'] = userCode;
  17308. }
  17309. if(userName != null) {
  17310. map['UserName'] = userName;
  17311. }
  17312. map['Score'] = score;
  17313. if(description != null) {
  17314. map['Description'] = description;
  17315. }
  17316. return map;
  17317. }
  17318. }
  17319. class UserView {
  17320. String? code;
  17321. String? name;
  17322. String? organizationCode;
  17323. String? organizationName;
  17324. UserView({
  17325. this.code,
  17326. this.name,
  17327. this.organizationCode,
  17328. this.organizationName,
  17329. });
  17330. factory UserView.fromJson(Map<String, dynamic> map) {
  17331. return UserView(
  17332. code: map['Code'],
  17333. name: map['Name'],
  17334. organizationCode: map['OrganizationCode'],
  17335. organizationName: map['OrganizationName'],
  17336. );
  17337. }
  17338. Map<String, dynamic> toJson() {
  17339. final map = Map<String, dynamic>();
  17340. if(code != null) {
  17341. map['Code'] = code;
  17342. }
  17343. if(name != null) {
  17344. map['Name'] = name;
  17345. }
  17346. if(organizationCode != null) {
  17347. map['OrganizationCode'] = organizationCode;
  17348. }
  17349. if(organizationName != null) {
  17350. map['OrganizationName'] = organizationName;
  17351. }
  17352. return map;
  17353. }
  17354. }
  17355. class StudentView extends UserView{
  17356. bool isNoSpeaking;
  17357. bool isAssistant;
  17358. List<int>? smallHeadImage;
  17359. bool isPay;
  17360. StudentCourseStatusEnum signCourseStatus;
  17361. StudentView({
  17362. this.isNoSpeaking = false,
  17363. this.isAssistant = false,
  17364. this.smallHeadImage,
  17365. this.isPay = false,
  17366. this.signCourseStatus = StudentCourseStatusEnum.All,
  17367. String? code,
  17368. String? name,
  17369. String? organizationCode,
  17370. String? organizationName,
  17371. }) : super(
  17372. code: code,
  17373. name: name,
  17374. organizationCode: organizationCode,
  17375. organizationName: organizationName,
  17376. );
  17377. factory StudentView.fromJson(Map<String, dynamic> map) {
  17378. final smallHeadImageData = map['SmallHeadImage'];
  17379. return StudentView(
  17380. isNoSpeaking: map['IsNoSpeaking'],
  17381. isAssistant: map['IsAssistant'],
  17382. smallHeadImage: smallHeadImageData != null ? (smallHeadImageData as List).map((e) => e as int).toList(): null,
  17383. isPay: map['IsPay'],
  17384. signCourseStatus: StudentCourseStatusEnum.values.firstWhere((e) => e.index == map['SignCourseStatus']),
  17385. code: map['Code'],
  17386. name: map['Name'],
  17387. organizationCode: map['OrganizationCode'],
  17388. organizationName: map['OrganizationName'],
  17389. );
  17390. }
  17391. Map<String, dynamic> toJson() {
  17392. final map = super.toJson();
  17393. map['IsNoSpeaking'] = isNoSpeaking;
  17394. map['IsAssistant'] = isAssistant;
  17395. if(smallHeadImage != null)
  17396. map['SmallHeadImage'] = smallHeadImage;
  17397. map['IsPay'] = isPay;
  17398. map['SignCourseStatus'] = signCourseStatus.index;
  17399. return map;
  17400. }
  17401. }
  17402. class CourseAlbumView extends BaseDTO{
  17403. String? code;
  17404. String? name;
  17405. String? teacherCode;
  17406. String? teacherName;
  17407. List<BaseInfoView>? courseInfos;
  17408. String? cover;
  17409. String? introduction;
  17410. List<CourseLabelDTO>? courseLabels;
  17411. CourseViewRangeEnum viewRange;
  17412. double price;
  17413. List<StudentView>? students;
  17414. int sort;
  17415. bool isStick;
  17416. CourseAlbumView({
  17417. this.code,
  17418. this.name,
  17419. this.teacherCode,
  17420. this.teacherName,
  17421. this.courseInfos,
  17422. this.cover,
  17423. this.introduction,
  17424. this.courseLabels,
  17425. this.viewRange = CourseViewRangeEnum.All,
  17426. this.price = 0,
  17427. this.students,
  17428. this.sort = 0,
  17429. this.isStick = false,
  17430. DateTime? createTime,
  17431. DateTime? updateTime,
  17432. }) : super(
  17433. createTime: createTime,
  17434. updateTime: updateTime,
  17435. );
  17436. factory CourseAlbumView.fromJson(Map<String, dynamic> map) {
  17437. return CourseAlbumView(
  17438. code: map['Code'],
  17439. name: map['Name'],
  17440. teacherCode: map['TeacherCode'],
  17441. teacherName: map['TeacherName'],
  17442. courseInfos: map['CourseInfos'] != null ? (map['CourseInfos'] as List).map((e)=>BaseInfoView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17443. cover: map['Cover'],
  17444. introduction: map['Introduction'],
  17445. courseLabels: map['CourseLabels'] != null ? (map['CourseLabels'] as List).map((e)=>CourseLabelDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  17446. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  17447. price: double.parse(map['Price'].toString()),
  17448. students: map['Students'] != null ? (map['Students'] as List).map((e)=>StudentView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17449. sort: map['Sort'],
  17450. isStick: map['IsStick'],
  17451. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  17452. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  17453. );
  17454. }
  17455. Map<String, dynamic> toJson() {
  17456. final map = super.toJson();
  17457. if(code != null)
  17458. map['Code'] = code;
  17459. if(name != null)
  17460. map['Name'] = name;
  17461. if(teacherCode != null)
  17462. map['TeacherCode'] = teacherCode;
  17463. if(teacherName != null)
  17464. map['TeacherName'] = teacherName;
  17465. if(courseInfos != null)
  17466. map['CourseInfos'] = courseInfos;
  17467. if(cover != null)
  17468. map['Cover'] = cover;
  17469. if(introduction != null)
  17470. map['Introduction'] = introduction;
  17471. if(courseLabels != null)
  17472. map['CourseLabels'] = courseLabels;
  17473. map['ViewRange'] = viewRange.index;
  17474. map['Price'] = price;
  17475. if(students != null)
  17476. map['Students'] = students;
  17477. map['Sort'] = sort;
  17478. map['IsStick'] = isStick;
  17479. return map;
  17480. }
  17481. }
  17482. class LabelLanguageConfigView {
  17483. String? name;
  17484. String? languageCode;
  17485. LabelLanguageConfigView({
  17486. this.name,
  17487. this.languageCode,
  17488. });
  17489. factory LabelLanguageConfigView.fromJson(Map<String, dynamic> map) {
  17490. return LabelLanguageConfigView(
  17491. name: map['Name'],
  17492. languageCode: map['LanguageCode'],
  17493. );
  17494. }
  17495. Map<String, dynamic> toJson() {
  17496. final map = Map<String, dynamic>();
  17497. if(name != null) {
  17498. map['Name'] = name;
  17499. }
  17500. if(languageCode != null) {
  17501. map['LanguageCode'] = languageCode;
  17502. }
  17503. return map;
  17504. }
  17505. }
  17506. class CourseLabelView {
  17507. OrganizationPatientTypeEnum useObjectType;
  17508. List<LabelLanguageConfigView>? labelLanguageConfigs;
  17509. LabelTypeEnum type;
  17510. List<CourseLabelView>? childLabels;
  17511. CourseLabelView({
  17512. this.useObjectType = OrganizationPatientTypeEnum.Person,
  17513. this.labelLanguageConfigs,
  17514. this.type = LabelTypeEnum.Unknown,
  17515. this.childLabels,
  17516. });
  17517. factory CourseLabelView.fromJson(Map<String, dynamic> map) {
  17518. return CourseLabelView(
  17519. useObjectType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['UseObjectType']),
  17520. labelLanguageConfigs: map['LabelLanguageConfigs'] != null ? (map['LabelLanguageConfigs'] as List).map((e)=>LabelLanguageConfigView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17521. type: LabelTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  17522. childLabels: map['ChildLabels'] != null ? (map['ChildLabels'] as List).map((e)=>CourseLabelView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17523. );
  17524. }
  17525. Map<String, dynamic> toJson() {
  17526. final map = Map<String, dynamic>();
  17527. map['UseObjectType'] = useObjectType.index;
  17528. if(labelLanguageConfigs != null) {
  17529. map['LabelLanguageConfigs'] = labelLanguageConfigs;
  17530. }
  17531. map['Type'] = type.index;
  17532. if(childLabels != null) {
  17533. map['ChildLabels'] = childLabels;
  17534. }
  17535. return map;
  17536. }
  17537. }
  17538. class CustomerLabelView {
  17539. String? code;
  17540. String? name;
  17541. CustomerLabelView({
  17542. this.code,
  17543. this.name,
  17544. });
  17545. factory CustomerLabelView.fromJson(Map<String, dynamic> map) {
  17546. return CustomerLabelView(
  17547. code: map['Code'],
  17548. name: map['Name'],
  17549. );
  17550. }
  17551. Map<String, dynamic> toJson() {
  17552. final map = Map<String, dynamic>();
  17553. if(code != null) {
  17554. map['Code'] = code;
  17555. }
  17556. if(name != null) {
  17557. map['Name'] = name;
  17558. }
  17559. return map;
  17560. }
  17561. }
  17562. class DeviceView {
  17563. String? code;
  17564. String? name;
  17565. String? description;
  17566. String? uniqueCode;
  17567. String? organizationCode;
  17568. String? organizationName;
  17569. String? deviceType;
  17570. String? deviceModel;
  17571. DeviceView({
  17572. this.code,
  17573. this.name,
  17574. this.description,
  17575. this.uniqueCode,
  17576. this.organizationCode,
  17577. this.organizationName,
  17578. this.deviceType,
  17579. this.deviceModel,
  17580. });
  17581. factory DeviceView.fromJson(Map<String, dynamic> map) {
  17582. return DeviceView(
  17583. code: map['Code'],
  17584. name: map['Name'],
  17585. description: map['Description'],
  17586. uniqueCode: map['UniqueCode'],
  17587. organizationCode: map['OrganizationCode'],
  17588. organizationName: map['OrganizationName'],
  17589. deviceType: map['DeviceType'],
  17590. deviceModel: map['DeviceModel'],
  17591. );
  17592. }
  17593. Map<String, dynamic> toJson() {
  17594. final map = Map<String, dynamic>();
  17595. if(code != null) {
  17596. map['Code'] = code;
  17597. }
  17598. if(name != null) {
  17599. map['Name'] = name;
  17600. }
  17601. if(description != null) {
  17602. map['Description'] = description;
  17603. }
  17604. if(uniqueCode != null) {
  17605. map['UniqueCode'] = uniqueCode;
  17606. }
  17607. if(organizationCode != null) {
  17608. map['OrganizationCode'] = organizationCode;
  17609. }
  17610. if(organizationName != null) {
  17611. map['OrganizationName'] = organizationName;
  17612. }
  17613. if(deviceType != null) {
  17614. map['DeviceType'] = deviceType;
  17615. }
  17616. if(deviceModel != null) {
  17617. map['DeviceModel'] = deviceModel;
  17618. }
  17619. return map;
  17620. }
  17621. }
  17622. class DiagnosisView {
  17623. DiagnosisOrganEnum organ;
  17624. DiagnosisConclusionEnum diagnosisStatus;
  17625. DiagnosisView({
  17626. this.organ = DiagnosisOrganEnum.Null,
  17627. this.diagnosisStatus = DiagnosisConclusionEnum.NotRequired,
  17628. });
  17629. factory DiagnosisView.fromJson(Map<String, dynamic> map) {
  17630. return DiagnosisView(
  17631. organ: DiagnosisOrganEnum.values.firstWhere((e) => e.index == map['Organ']),
  17632. diagnosisStatus: DiagnosisConclusionEnum.values.firstWhere((e) => e.index == map['DiagnosisStatus']),
  17633. );
  17634. }
  17635. Map<String, dynamic> toJson() {
  17636. final map = Map<String, dynamic>();
  17637. map['Organ'] = organ.index;
  17638. map['DiagnosisStatus'] = diagnosisStatus.index;
  17639. return map;
  17640. }
  17641. }
  17642. class ExamQuestionView {
  17643. String? code;
  17644. String? stem;
  17645. QuestionTypeEnum questionType;
  17646. List<QuestionOptionDTO>? questionOptionList;
  17647. List<QuestionFileDTO>? fileList;
  17648. List<String>? caseLabelCodes;
  17649. List<String>? courseLabelCodes;
  17650. bool trueOrFalse;
  17651. double score;
  17652. ExamQuestionView({
  17653. this.code,
  17654. this.stem,
  17655. this.questionType = QuestionTypeEnum.Judge,
  17656. this.questionOptionList,
  17657. this.fileList,
  17658. this.caseLabelCodes,
  17659. this.courseLabelCodes,
  17660. this.trueOrFalse = false,
  17661. this.score = 0,
  17662. });
  17663. factory ExamQuestionView.fromJson(Map<String, dynamic> map) {
  17664. return ExamQuestionView(
  17665. code: map['Code'],
  17666. stem: map['Stem'],
  17667. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  17668. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  17669. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  17670. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  17671. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  17672. trueOrFalse: map['TrueOrFalse'],
  17673. score: double.parse(map['Score'].toString()),
  17674. );
  17675. }
  17676. Map<String, dynamic> toJson() {
  17677. final map = Map<String, dynamic>();
  17678. if(code != null) {
  17679. map['Code'] = code;
  17680. }
  17681. if(stem != null) {
  17682. map['Stem'] = stem;
  17683. }
  17684. map['QuestionType'] = questionType.index;
  17685. if(questionOptionList != null) {
  17686. map['QuestionOptionList'] = questionOptionList;
  17687. }
  17688. if(fileList != null) {
  17689. map['FileList'] = fileList;
  17690. }
  17691. if(caseLabelCodes != null) {
  17692. map['CaseLabelCodes'] = caseLabelCodes;
  17693. }
  17694. if(courseLabelCodes != null) {
  17695. map['CourseLabelCodes'] = courseLabelCodes;
  17696. }
  17697. map['TrueOrFalse'] = trueOrFalse;
  17698. map['Score'] = score;
  17699. return map;
  17700. }
  17701. }
  17702. class ICollection<T> {
  17703. int count;
  17704. bool isReadOnly;
  17705. ICollection({
  17706. this.count = 0,
  17707. this.isReadOnly = false,
  17708. });
  17709. factory ICollection.fromJson(Map<String, dynamic> map) {
  17710. return ICollection(
  17711. count: map['Count'],
  17712. isReadOnly: map['IsReadOnly'],
  17713. );
  17714. }
  17715. Map<String, dynamic> toJson() {
  17716. final map = Map<String, dynamic>();
  17717. map['Count'] = count;
  17718. map['IsReadOnly'] = isReadOnly;
  17719. return map;
  17720. }
  17721. }
  17722. class LearnerView {
  17723. String? code;
  17724. LearnerStatusEnum learnerStatus;
  17725. LearnerView({
  17726. this.code,
  17727. this.learnerStatus = LearnerStatusEnum.Unknown,
  17728. });
  17729. factory LearnerView.fromJson(Map<String, dynamic> map) {
  17730. return LearnerView(
  17731. code: map['Code'],
  17732. learnerStatus: LearnerStatusEnum.values.firstWhere((e) => e.index == map['LearnerStatus']),
  17733. );
  17734. }
  17735. Map<String, dynamic> toJson() {
  17736. final map = Map<String, dynamic>();
  17737. if(code != null) {
  17738. map['Code'] = code;
  17739. }
  17740. map['LearnerStatus'] = learnerStatus.index;
  17741. return map;
  17742. }
  17743. }
  17744. class GroupView {
  17745. String? code;
  17746. String? name;
  17747. String? shortCode;
  17748. int maxPeople;
  17749. List<LearnerView>? students;
  17750. GroupView({
  17751. this.code,
  17752. this.name,
  17753. this.shortCode,
  17754. this.maxPeople = 0,
  17755. this.students,
  17756. });
  17757. factory GroupView.fromJson(Map<String, dynamic> map) {
  17758. return GroupView(
  17759. code: map['Code'],
  17760. name: map['Name'],
  17761. shortCode: map['ShortCode'],
  17762. maxPeople: map['MaxPeople'],
  17763. students: map['Students'] != null ? (map['Students'] as List).map((e)=>LearnerView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17764. );
  17765. }
  17766. Map<String, dynamic> toJson() {
  17767. final map = Map<String, dynamic>();
  17768. if(code != null) {
  17769. map['Code'] = code;
  17770. }
  17771. if(name != null) {
  17772. map['Name'] = name;
  17773. }
  17774. if(shortCode != null) {
  17775. map['ShortCode'] = shortCode;
  17776. }
  17777. map['MaxPeople'] = maxPeople;
  17778. if(students != null) {
  17779. map['Students'] = students;
  17780. }
  17781. return map;
  17782. }
  17783. }
  17784. class ExamVideoView {
  17785. String? id;
  17786. String? videoName;
  17787. DateTime? createTime;
  17788. String? posterToken;
  17789. int duration;
  17790. int size;
  17791. String? description;
  17792. String? url;
  17793. ExamVideoView({
  17794. this.id,
  17795. this.videoName,
  17796. this.createTime,
  17797. this.posterToken,
  17798. this.duration = 0,
  17799. this.size = 0,
  17800. this.description,
  17801. this.url,
  17802. });
  17803. factory ExamVideoView.fromJson(Map<String, dynamic> map) {
  17804. return ExamVideoView(
  17805. id: map['Id'],
  17806. videoName: map['VideoName'],
  17807. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  17808. posterToken: map['PosterToken'],
  17809. duration: map['Duration'],
  17810. size: map['Size'],
  17811. description: map['Description'],
  17812. url: map['Url'],
  17813. );
  17814. }
  17815. Map<String, dynamic> toJson() {
  17816. final map = Map<String, dynamic>();
  17817. if(id != null) {
  17818. map['Id'] = id;
  17819. }
  17820. if(videoName != null) {
  17821. map['VideoName'] = videoName;
  17822. }
  17823. if(createTime != null) {
  17824. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  17825. }
  17826. if(posterToken != null) {
  17827. map['PosterToken'] = posterToken;
  17828. }
  17829. map['Duration'] = duration;
  17830. map['Size'] = size;
  17831. if(description != null) {
  17832. map['Description'] = description;
  17833. }
  17834. if(url != null) {
  17835. map['Url'] = url;
  17836. }
  17837. return map;
  17838. }
  17839. }
  17840. class MyExamAnswerView {
  17841. String? subjectId;
  17842. List<String>? answers;
  17843. MyExamAnswerView({
  17844. this.subjectId,
  17845. this.answers,
  17846. });
  17847. factory MyExamAnswerView.fromJson(Map<String, dynamic> map) {
  17848. return MyExamAnswerView(
  17849. subjectId: map['SubjectId'],
  17850. answers: map['Answers']?.cast<String>().toList(),
  17851. );
  17852. }
  17853. Map<String, dynamic> toJson() {
  17854. final map = Map<String, dynamic>();
  17855. if(subjectId != null) {
  17856. map['SubjectId'] = subjectId;
  17857. }
  17858. if(answers != null) {
  17859. map['Answers'] = answers;
  17860. }
  17861. return map;
  17862. }
  17863. }
  17864. class ExamScoreView {
  17865. double totalScore;
  17866. int correctCount;
  17867. int submitCount;
  17868. int maxScore;
  17869. List<MyExamAnswerView>? myExamAnswers;
  17870. ExamScoreView({
  17871. this.totalScore = 0,
  17872. this.correctCount = 0,
  17873. this.submitCount = 0,
  17874. this.maxScore = 0,
  17875. this.myExamAnswers,
  17876. });
  17877. factory ExamScoreView.fromJson(Map<String, dynamic> map) {
  17878. return ExamScoreView(
  17879. totalScore: double.parse(map['TotalScore'].toString()),
  17880. correctCount: map['CorrectCount'],
  17881. submitCount: map['SubmitCount'],
  17882. maxScore: map['MaxScore'],
  17883. myExamAnswers: map['MyExamAnswers'] != null ? (map['MyExamAnswers'] as List).map((e)=>MyExamAnswerView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17884. );
  17885. }
  17886. Map<String, dynamic> toJson() {
  17887. final map = Map<String, dynamic>();
  17888. map['TotalScore'] = totalScore;
  17889. map['CorrectCount'] = correctCount;
  17890. map['SubmitCount'] = submitCount;
  17891. map['MaxScore'] = maxScore;
  17892. if(myExamAnswers != null) {
  17893. map['MyExamAnswers'] = myExamAnswers;
  17894. }
  17895. return map;
  17896. }
  17897. }
  17898. class VideoInfoView {
  17899. String? videoToken;
  17900. String? videoImageToken;
  17901. VideoInfoView({
  17902. this.videoToken,
  17903. this.videoImageToken,
  17904. });
  17905. factory VideoInfoView.fromJson(Map<String, dynamic> map) {
  17906. return VideoInfoView(
  17907. videoToken: map['VideoToken'],
  17908. videoImageToken: map['VideoImageToken'],
  17909. );
  17910. }
  17911. Map<String, dynamic> toJson() {
  17912. final map = Map<String, dynamic>();
  17913. if(videoToken != null) {
  17914. map['VideoToken'] = videoToken;
  17915. }
  17916. if(videoImageToken != null) {
  17917. map['VideoImageToken'] = videoImageToken;
  17918. }
  17919. return map;
  17920. }
  17921. }
  17922. class SubjectItemView {
  17923. String? content;
  17924. int index;
  17925. bool isAnswer;
  17926. SubjectItemView({
  17927. this.content,
  17928. this.index = 0,
  17929. this.isAnswer = false,
  17930. });
  17931. factory SubjectItemView.fromJson(Map<String, dynamic> map) {
  17932. return SubjectItemView(
  17933. content: map['Content'],
  17934. index: map['Index'],
  17935. isAnswer: map['IsAnswer'],
  17936. );
  17937. }
  17938. Map<String, dynamic> toJson() {
  17939. final map = Map<String, dynamic>();
  17940. if(content != null) {
  17941. map['Content'] = content;
  17942. }
  17943. map['Index'] = index;
  17944. map['IsAnswer'] = isAnswer;
  17945. return map;
  17946. }
  17947. }
  17948. class SubjectInfoView {
  17949. String? id;
  17950. String? subject;
  17951. List<String>? images;
  17952. List<VideoInfoView>? videos;
  17953. double score;
  17954. int index;
  17955. QuestionTypeEnum subjectType;
  17956. List<SubjectItemView>? items;
  17957. SubjectInfoView({
  17958. this.id,
  17959. this.subject,
  17960. this.images,
  17961. this.videos,
  17962. this.score = 0,
  17963. this.index = 0,
  17964. this.subjectType = QuestionTypeEnum.Judge,
  17965. this.items,
  17966. });
  17967. factory SubjectInfoView.fromJson(Map<String, dynamic> map) {
  17968. return SubjectInfoView(
  17969. id: map['Id'],
  17970. subject: map['Subject'],
  17971. images: map['Images']?.cast<String>().toList(),
  17972. videos: map['Videos'] != null ? (map['Videos'] as List).map((e)=>VideoInfoView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17973. score: double.parse(map['Score'].toString()),
  17974. index: map['Index'],
  17975. subjectType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['SubjectType']),
  17976. items: map['Items'] != null ? (map['Items'] as List).map((e)=>SubjectItemView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17977. );
  17978. }
  17979. Map<String, dynamic> toJson() {
  17980. final map = Map<String, dynamic>();
  17981. if(id != null) {
  17982. map['Id'] = id;
  17983. }
  17984. if(subject != null) {
  17985. map['Subject'] = subject;
  17986. }
  17987. if(images != null) {
  17988. map['Images'] = images;
  17989. }
  17990. if(videos != null) {
  17991. map['Videos'] = videos;
  17992. }
  17993. map['Score'] = score;
  17994. map['Index'] = index;
  17995. map['SubjectType'] = subjectType.index;
  17996. if(items != null) {
  17997. map['Items'] = items;
  17998. }
  17999. return map;
  18000. }
  18001. }
  18002. class ExamTemplateView {
  18003. String? code;
  18004. List<SubjectInfoView>? subjects;
  18005. bool isDeleted;
  18006. String? name;
  18007. ExamTemplateView({
  18008. this.code,
  18009. this.subjects,
  18010. this.isDeleted = false,
  18011. this.name,
  18012. });
  18013. factory ExamTemplateView.fromJson(Map<String, dynamic> map) {
  18014. return ExamTemplateView(
  18015. code: map['Code'],
  18016. subjects: map['Subjects'] != null ? (map['Subjects'] as List).map((e)=>SubjectInfoView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18017. isDeleted: map['IsDeleted'],
  18018. name: map['Name'],
  18019. );
  18020. }
  18021. Map<String, dynamic> toJson() {
  18022. final map = Map<String, dynamic>();
  18023. if(code != null) {
  18024. map['Code'] = code;
  18025. }
  18026. if(subjects != null) {
  18027. map['Subjects'] = subjects;
  18028. }
  18029. map['IsDeleted'] = isDeleted;
  18030. if(name != null) {
  18031. map['Name'] = name;
  18032. }
  18033. return map;
  18034. }
  18035. }
  18036. class ExamPaperDTO extends BaseDTO{
  18037. String? code;
  18038. String? name;
  18039. double totalScore;
  18040. List<ExamQuestionView>? questionList;
  18041. List<CourseLabelDTO>? caseLabels;
  18042. List<CourseLabelDTO>? courseLabels;
  18043. List<StudentExaminationDTO>? studentExaminationInfos;
  18044. String? description;
  18045. DateTime? starTime;
  18046. DateTime? endTime;
  18047. int limitCount;
  18048. String? result;
  18049. ICollection<UserView>? examiners;
  18050. ICollection<GroupView>? examinerUserGroups;
  18051. ExaminationAvailabilityEnum examinationAvailability;
  18052. ICollection<ClassView>? classes;
  18053. String? creatorId;
  18054. String? creatorName;
  18055. ExamTypeEnum examType;
  18056. bool hasPassScore;
  18057. double passScore;
  18058. List<ExamVideoView>? examVideoInfos;
  18059. List<ExamScoreView>? examScoreInfos;
  18060. ExamTemplateView? examTemplate;
  18061. bool isDisplayAnswer;
  18062. ExamPaperDTO({
  18063. this.code,
  18064. this.name,
  18065. this.totalScore = 0,
  18066. this.questionList,
  18067. this.caseLabels,
  18068. this.courseLabels,
  18069. this.studentExaminationInfos,
  18070. this.description,
  18071. this.starTime,
  18072. this.endTime,
  18073. this.limitCount = 0,
  18074. this.result,
  18075. this.examiners,
  18076. this.examinerUserGroups,
  18077. this.examinationAvailability = ExaminationAvailabilityEnum.Public,
  18078. this.classes,
  18079. this.creatorId,
  18080. this.creatorName,
  18081. this.examType = ExamTypeEnum.GeneralExam,
  18082. this.hasPassScore = false,
  18083. this.passScore = 0,
  18084. this.examVideoInfos,
  18085. this.examScoreInfos,
  18086. this.examTemplate,
  18087. this.isDisplayAnswer = false,
  18088. DateTime? createTime,
  18089. DateTime? updateTime,
  18090. }) : super(
  18091. createTime: createTime,
  18092. updateTime: updateTime,
  18093. );
  18094. factory ExamPaperDTO.fromJson(Map<String, dynamic> map) {
  18095. return ExamPaperDTO(
  18096. code: map['Code'],
  18097. name: map['Name'],
  18098. totalScore: double.parse(map['TotalScore'].toString()),
  18099. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>ExamQuestionView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18100. caseLabels: map['CaseLabels'] != null ? (map['CaseLabels'] as List).map((e)=>CourseLabelDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  18101. courseLabels: map['CourseLabels'] != null ? (map['CourseLabels'] as List).map((e)=>CourseLabelDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  18102. studentExaminationInfos: map['StudentExaminationInfos'] != null ? (map['StudentExaminationInfos'] as List).map((e)=>StudentExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  18103. description: map['Description'],
  18104. starTime: map['StarTime'] != null ? DateTime.parse(map['StarTime']) : null,
  18105. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  18106. limitCount: map['LimitCount'],
  18107. result: map['Result'],
  18108. examinationAvailability: ExaminationAvailabilityEnum.values.firstWhere((e) => e.index == map['ExaminationAvailability']),
  18109. creatorId: map['CreatorId'],
  18110. creatorName: map['CreatorName'],
  18111. examType: ExamTypeEnum.values.firstWhere((e) => e.index == map['ExamType']),
  18112. hasPassScore: map['HasPassScore'],
  18113. passScore: double.parse(map['PassScore'].toString()),
  18114. examVideoInfos: map['ExamVideoInfos'] != null ? (map['ExamVideoInfos'] as List).map((e)=>ExamVideoView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18115. examScoreInfos: map['ExamScoreInfos'] != null ? (map['ExamScoreInfos'] as List).map((e)=>ExamScoreView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18116. examTemplate: map['ExamTemplate'] != null ? ExamTemplateView.fromJson(map['ExamTemplate']) : null,
  18117. isDisplayAnswer: map['IsDisplayAnswer'],
  18118. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  18119. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  18120. );
  18121. }
  18122. Map<String, dynamic> toJson() {
  18123. final map = super.toJson();
  18124. if(code != null)
  18125. map['Code'] = code;
  18126. if(name != null)
  18127. map['Name'] = name;
  18128. map['TotalScore'] = totalScore;
  18129. if(questionList != null)
  18130. map['QuestionList'] = questionList;
  18131. if(caseLabels != null)
  18132. map['CaseLabels'] = caseLabels;
  18133. if(courseLabels != null)
  18134. map['CourseLabels'] = courseLabels;
  18135. if(studentExaminationInfos != null)
  18136. map['StudentExaminationInfos'] = studentExaminationInfos;
  18137. if(description != null)
  18138. map['Description'] = description;
  18139. if(starTime != null)
  18140. map['StarTime'] = JsonRpcUtils.dateFormat(starTime!);
  18141. if(endTime != null)
  18142. map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
  18143. map['LimitCount'] = limitCount;
  18144. if(result != null)
  18145. map['Result'] = result;
  18146. if(examiners != null)
  18147. map['Examiners'] = examiners;
  18148. if(examinerUserGroups != null)
  18149. map['ExaminerUserGroups'] = examinerUserGroups;
  18150. map['ExaminationAvailability'] = examinationAvailability.index;
  18151. if(classes != null)
  18152. map['Classes'] = classes;
  18153. if(creatorId != null)
  18154. map['CreatorId'] = creatorId;
  18155. if(creatorName != null)
  18156. map['CreatorName'] = creatorName;
  18157. map['ExamType'] = examType.index;
  18158. map['HasPassScore'] = hasPassScore;
  18159. map['PassScore'] = passScore;
  18160. if(examVideoInfos != null)
  18161. map['ExamVideoInfos'] = examVideoInfos;
  18162. if(examScoreInfos != null)
  18163. map['ExamScoreInfos'] = examScoreInfos;
  18164. if(examTemplate != null)
  18165. map['ExamTemplate'] = examTemplate;
  18166. map['IsDisplayAnswer'] = isDisplayAnswer;
  18167. return map;
  18168. }
  18169. }
  18170. class FileDiagnosisResultDTO extends BaseDTO{
  18171. String? code;
  18172. String? remedicalCode;
  18173. DiagnosisConclusionEnum diagnosisConclusion;
  18174. String? diagnosisResult;
  18175. List<DiagnosisOrganEnum>? diagnosisOrgans;
  18176. MeasuredResultsDTO? measuredResult;
  18177. ScanImageDTO? commentResult;
  18178. CarotidResultDTO? carotidResult;
  18179. BusinessTypeEnum businessType;
  18180. FileDiagnosisResultDTO({
  18181. this.code,
  18182. this.remedicalCode,
  18183. this.diagnosisConclusion = DiagnosisConclusionEnum.NotRequired,
  18184. this.diagnosisResult,
  18185. this.diagnosisOrgans,
  18186. this.measuredResult,
  18187. this.commentResult,
  18188. this.carotidResult,
  18189. this.businessType = BusinessTypeEnum.RemoteDiagnosis,
  18190. DateTime? createTime,
  18191. DateTime? updateTime,
  18192. }) : super(
  18193. createTime: createTime,
  18194. updateTime: updateTime,
  18195. );
  18196. factory FileDiagnosisResultDTO.fromJson(Map<String, dynamic> map) {
  18197. return FileDiagnosisResultDTO(
  18198. code: map['Code'],
  18199. remedicalCode: map['RemedicalCode'],
  18200. diagnosisConclusion: DiagnosisConclusionEnum.values.firstWhere((e) => e.index == map['DiagnosisConclusion']),
  18201. diagnosisResult: map['DiagnosisResult'],
  18202. diagnosisOrgans: map['DiagnosisOrgans'] != null ? (map['DiagnosisOrgans'] as List).map((e)=>DiagnosisOrganEnum.values.firstWhere((i) => i.index == e)).toList() : null,
  18203. measuredResult: map['MeasuredResult'] != null ? MeasuredResultsDTO.fromJson(map['MeasuredResult']) : null,
  18204. commentResult: map['CommentResult'] != null ? ScanImageDTO.fromJson(map['CommentResult']) : null,
  18205. carotidResult: map['CarotidResult'] != null ? CarotidResultDTO.fromJson(map['CarotidResult']) : null,
  18206. businessType: BusinessTypeEnum.values.firstWhere((e) => e.index == map['BusinessType']),
  18207. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  18208. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  18209. );
  18210. }
  18211. Map<String, dynamic> toJson() {
  18212. final map = super.toJson();
  18213. if(code != null)
  18214. map['Code'] = code;
  18215. if(remedicalCode != null)
  18216. map['RemedicalCode'] = remedicalCode;
  18217. map['DiagnosisConclusion'] = diagnosisConclusion.index;
  18218. if(diagnosisResult != null)
  18219. map['DiagnosisResult'] = diagnosisResult;
  18220. if(diagnosisOrgans != null)
  18221. map['DiagnosisOrgans'] = diagnosisOrgans;
  18222. if(measuredResult != null)
  18223. map['MeasuredResult'] = measuredResult;
  18224. if(commentResult != null)
  18225. map['CommentResult'] = commentResult;
  18226. if(carotidResult != null)
  18227. map['CarotidResult'] = carotidResult;
  18228. map['BusinessType'] = businessType.index;
  18229. return map;
  18230. }
  18231. }
  18232. class FileView {
  18233. RemedicalFileDataTypeEnum dataType;
  18234. String? originalUrl;
  18235. String? cdnUrl;
  18236. int fileSize;
  18237. String? fileName;
  18238. String? previewUrl;
  18239. String? converUrl;
  18240. FileView({
  18241. this.dataType = RemedicalFileDataTypeEnum.VinnoVidSingle,
  18242. this.originalUrl,
  18243. this.cdnUrl,
  18244. this.fileSize = 0,
  18245. this.fileName,
  18246. this.previewUrl,
  18247. this.converUrl,
  18248. });
  18249. factory FileView.fromJson(Map<String, dynamic> map) {
  18250. return FileView(
  18251. dataType: RemedicalFileDataTypeEnum.values.firstWhere((e) => e.index == map['DataType']),
  18252. originalUrl: map['OriginalUrl'],
  18253. cdnUrl: map['CdnUrl'],
  18254. fileSize: map['FileSize'],
  18255. fileName: map['FileName'],
  18256. previewUrl: map['PreviewUrl'],
  18257. converUrl: map['ConverUrl'],
  18258. );
  18259. }
  18260. Map<String, dynamic> toJson() {
  18261. final map = Map<String, dynamic>();
  18262. map['DataType'] = dataType.index;
  18263. if(originalUrl != null) {
  18264. map['OriginalUrl'] = originalUrl;
  18265. }
  18266. if(cdnUrl != null) {
  18267. map['CdnUrl'] = cdnUrl;
  18268. }
  18269. map['FileSize'] = fileSize;
  18270. if(fileName != null) {
  18271. map['FileName'] = fileName;
  18272. }
  18273. if(previewUrl != null) {
  18274. map['PreviewUrl'] = previewUrl;
  18275. }
  18276. if(converUrl != null) {
  18277. map['ConverUrl'] = converUrl;
  18278. }
  18279. return map;
  18280. }
  18281. }
  18282. class ImageLocationView {
  18283. String? group;
  18284. String? position;
  18285. String? quadrant;
  18286. ImageLocationView({
  18287. this.group,
  18288. this.position,
  18289. this.quadrant,
  18290. });
  18291. factory ImageLocationView.fromJson(Map<String, dynamic> map) {
  18292. return ImageLocationView(
  18293. group: map['Group'],
  18294. position: map['Position'],
  18295. quadrant: map['Quadrant'],
  18296. );
  18297. }
  18298. Map<String, dynamic> toJson() {
  18299. final map = Map<String, dynamic>();
  18300. if(group != null) {
  18301. map['Group'] = group;
  18302. }
  18303. if(position != null) {
  18304. map['Position'] = position;
  18305. }
  18306. if(quadrant != null) {
  18307. map['Quadrant'] = quadrant;
  18308. }
  18309. return map;
  18310. }
  18311. }
  18312. class RemoteDiagnosisFileView extends FileView{
  18313. String? code;
  18314. String? application;
  18315. ImageLocationView? imageLocationInfo;
  18316. List<CommentView>? commentInfos;
  18317. RemoteDiagnosisFileView({
  18318. this.code,
  18319. this.application,
  18320. this.imageLocationInfo,
  18321. this.commentInfos,
  18322. RemedicalFileDataTypeEnum dataType = RemedicalFileDataTypeEnum.VinnoVidSingle,
  18323. String? originalUrl,
  18324. String? cdnUrl,
  18325. int fileSize = 0,
  18326. String? fileName,
  18327. String? previewUrl,
  18328. String? converUrl,
  18329. }) : super(
  18330. dataType: dataType,
  18331. originalUrl: originalUrl,
  18332. cdnUrl: cdnUrl,
  18333. fileSize: fileSize,
  18334. fileName: fileName,
  18335. previewUrl: previewUrl,
  18336. converUrl: converUrl,
  18337. );
  18338. factory RemoteDiagnosisFileView.fromJson(Map<String, dynamic> map) {
  18339. return RemoteDiagnosisFileView(
  18340. code: map['Code'],
  18341. application: map['Application'],
  18342. imageLocationInfo: map['ImageLocationInfo'] != null ? ImageLocationView.fromJson(map['ImageLocationInfo']) : null,
  18343. commentInfos: map['CommentInfos'] != null ? (map['CommentInfos'] as List).map((e)=>CommentView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18344. dataType: RemedicalFileDataTypeEnum.values.firstWhere((e) => e.index == map['DataType']),
  18345. originalUrl: map['OriginalUrl'],
  18346. cdnUrl: map['CdnUrl'],
  18347. fileSize: map['FileSize'],
  18348. fileName: map['FileName'],
  18349. previewUrl: map['PreviewUrl'],
  18350. converUrl: map['ConverUrl'],
  18351. );
  18352. }
  18353. Map<String, dynamic> toJson() {
  18354. final map = super.toJson();
  18355. if(code != null)
  18356. map['Code'] = code;
  18357. if(application != null)
  18358. map['Application'] = application;
  18359. if(imageLocationInfo != null)
  18360. map['ImageLocationInfo'] = imageLocationInfo;
  18361. if(commentInfos != null)
  18362. map['CommentInfos'] = commentInfos;
  18363. return map;
  18364. }
  18365. }
  18366. class LiveConsultationFileView extends FileView{
  18367. String? userCode;
  18368. String? userName;
  18369. String? type;
  18370. ConsultationFileTypeEnum consultationFileType;
  18371. String? remedicalCode;
  18372. String? remedicalMeasureCode;
  18373. LiveConsultationFileView({
  18374. this.userCode,
  18375. this.userName,
  18376. this.type,
  18377. this.consultationFileType = ConsultationFileTypeEnum.Screenshot,
  18378. this.remedicalCode,
  18379. this.remedicalMeasureCode,
  18380. RemedicalFileDataTypeEnum dataType = RemedicalFileDataTypeEnum.VinnoVidSingle,
  18381. String? originalUrl,
  18382. String? cdnUrl,
  18383. int fileSize = 0,
  18384. String? fileName,
  18385. String? previewUrl,
  18386. String? converUrl,
  18387. }) : super(
  18388. dataType: dataType,
  18389. originalUrl: originalUrl,
  18390. cdnUrl: cdnUrl,
  18391. fileSize: fileSize,
  18392. fileName: fileName,
  18393. previewUrl: previewUrl,
  18394. converUrl: converUrl,
  18395. );
  18396. factory LiveConsultationFileView.fromJson(Map<String, dynamic> map) {
  18397. return LiveConsultationFileView(
  18398. userCode: map['UserCode'],
  18399. userName: map['UserName'],
  18400. type: map['Type'],
  18401. consultationFileType: ConsultationFileTypeEnum.values.firstWhere((e) => e.index == map['ConsultationFileType']),
  18402. remedicalCode: map['RemedicalCode'],
  18403. remedicalMeasureCode: map['RemedicalMeasureCode'],
  18404. dataType: RemedicalFileDataTypeEnum.values.firstWhere((e) => e.index == map['DataType']),
  18405. originalUrl: map['OriginalUrl'],
  18406. cdnUrl: map['CdnUrl'],
  18407. fileSize: map['FileSize'],
  18408. fileName: map['FileName'],
  18409. previewUrl: map['PreviewUrl'],
  18410. converUrl: map['ConverUrl'],
  18411. );
  18412. }
  18413. Map<String, dynamic> toJson() {
  18414. final map = super.toJson();
  18415. if(userCode != null)
  18416. map['UserCode'] = userCode;
  18417. if(userName != null)
  18418. map['UserName'] = userName;
  18419. if(type != null)
  18420. map['Type'] = type;
  18421. map['ConsultationFileType'] = consultationFileType.index;
  18422. if(remedicalCode != null)
  18423. map['RemedicalCode'] = remedicalCode;
  18424. if(remedicalMeasureCode != null)
  18425. map['RemedicalMeasureCode'] = remedicalMeasureCode;
  18426. return map;
  18427. }
  18428. }
  18429. class PatientView {
  18430. String? code;
  18431. String? name;
  18432. String? identityCardId;
  18433. String? mobile;
  18434. String? gender;
  18435. String? age;
  18436. String? pastHistory;
  18437. String? diagnosis;
  18438. PatientView({
  18439. this.code,
  18440. this.name,
  18441. this.identityCardId,
  18442. this.mobile,
  18443. this.gender,
  18444. this.age,
  18445. this.pastHistory,
  18446. this.diagnosis,
  18447. });
  18448. factory PatientView.fromJson(Map<String, dynamic> map) {
  18449. return PatientView(
  18450. code: map['Code'],
  18451. name: map['Name'],
  18452. identityCardId: map['IdentityCardId'],
  18453. mobile: map['Mobile'],
  18454. gender: map['Gender'],
  18455. age: map['Age'],
  18456. pastHistory: map['PastHistory'],
  18457. diagnosis: map['Diagnosis'],
  18458. );
  18459. }
  18460. Map<String, dynamic> toJson() {
  18461. final map = Map<String, dynamic>();
  18462. if(code != null) {
  18463. map['Code'] = code;
  18464. }
  18465. if(name != null) {
  18466. map['Name'] = name;
  18467. }
  18468. if(identityCardId != null) {
  18469. map['IdentityCardId'] = identityCardId;
  18470. }
  18471. if(mobile != null) {
  18472. map['Mobile'] = mobile;
  18473. }
  18474. if(gender != null) {
  18475. map['Gender'] = gender;
  18476. }
  18477. if(age != null) {
  18478. map['Age'] = age;
  18479. }
  18480. if(pastHistory != null) {
  18481. map['PastHistory'] = pastHistory;
  18482. }
  18483. if(diagnosis != null) {
  18484. map['Diagnosis'] = diagnosis;
  18485. }
  18486. return map;
  18487. }
  18488. }
  18489. class OrganizationView {
  18490. String? code;
  18491. String? name;
  18492. String? departmentCode;
  18493. String? departmentName;
  18494. String? description;
  18495. String? logoUrl;
  18496. String? countryCode;
  18497. String? countryName;
  18498. String? provinceCode;
  18499. String? provinceName;
  18500. String? cityCode;
  18501. String? cityName;
  18502. OrganizationView({
  18503. this.code,
  18504. this.name,
  18505. this.departmentCode,
  18506. this.departmentName,
  18507. this.description,
  18508. this.logoUrl,
  18509. this.countryCode,
  18510. this.countryName,
  18511. this.provinceCode,
  18512. this.provinceName,
  18513. this.cityCode,
  18514. this.cityName,
  18515. });
  18516. factory OrganizationView.fromJson(Map<String, dynamic> map) {
  18517. return OrganizationView(
  18518. code: map['Code'],
  18519. name: map['Name'],
  18520. departmentCode: map['DepartmentCode'],
  18521. departmentName: map['DepartmentName'],
  18522. description: map['Description'],
  18523. logoUrl: map['LogoUrl'],
  18524. countryCode: map['CountryCode'],
  18525. countryName: map['CountryName'],
  18526. provinceCode: map['ProvinceCode'],
  18527. provinceName: map['ProvinceName'],
  18528. cityCode: map['CityCode'],
  18529. cityName: map['CityName'],
  18530. );
  18531. }
  18532. Map<String, dynamic> toJson() {
  18533. final map = Map<String, dynamic>();
  18534. if(code != null) {
  18535. map['Code'] = code;
  18536. }
  18537. if(name != null) {
  18538. map['Name'] = name;
  18539. }
  18540. if(departmentCode != null) {
  18541. map['DepartmentCode'] = departmentCode;
  18542. }
  18543. if(departmentName != null) {
  18544. map['DepartmentName'] = departmentName;
  18545. }
  18546. if(description != null) {
  18547. map['Description'] = description;
  18548. }
  18549. if(logoUrl != null) {
  18550. map['LogoUrl'] = logoUrl;
  18551. }
  18552. if(countryCode != null) {
  18553. map['CountryCode'] = countryCode;
  18554. }
  18555. if(countryName != null) {
  18556. map['CountryName'] = countryName;
  18557. }
  18558. if(provinceCode != null) {
  18559. map['ProvinceCode'] = provinceCode;
  18560. }
  18561. if(provinceName != null) {
  18562. map['ProvinceName'] = provinceName;
  18563. }
  18564. if(cityCode != null) {
  18565. map['CityCode'] = cityCode;
  18566. }
  18567. if(cityName != null) {
  18568. map['CityName'] = cityName;
  18569. }
  18570. return map;
  18571. }
  18572. }
  18573. class ReportConclusionView {
  18574. String? reportId;
  18575. String? diseaseName;
  18576. DiseaseConclusion diseaseConclusion;
  18577. ReportConclusionView({
  18578. this.reportId,
  18579. this.diseaseName,
  18580. this.diseaseConclusion = DiseaseConclusion.NoConclusion,
  18581. });
  18582. factory ReportConclusionView.fromJson(Map<String, dynamic> map) {
  18583. return ReportConclusionView(
  18584. reportId: map['ReportId'],
  18585. diseaseName: map['DiseaseName'],
  18586. diseaseConclusion: DiseaseConclusion.values.firstWhere((e) => e.index == map['DiseaseConclusion']),
  18587. );
  18588. }
  18589. Map<String, dynamic> toJson() {
  18590. final map = Map<String, dynamic>();
  18591. if(reportId != null) {
  18592. map['ReportId'] = reportId;
  18593. }
  18594. if(diseaseName != null) {
  18595. map['DiseaseName'] = diseaseName;
  18596. }
  18597. map['DiseaseConclusion'] = diseaseConclusion.index;
  18598. return map;
  18599. }
  18600. }
  18601. class LiveConsultationDTO extends BaseDTO{
  18602. String? code;
  18603. UserView? doctorInfo;
  18604. UserView? expertInfo;
  18605. PatientView? patientInfo;
  18606. OrganizationView? primaryHosptial;
  18607. OrganizationView? centralHospital;
  18608. DeviceView? deviceInfo;
  18609. String? checkPoint;
  18610. ConsultationState state;
  18611. String? consultationNumber;
  18612. String? queuingNumber;
  18613. QualityType qualityType;
  18614. FollowUpVisitStatusEnum followUpVisitStatus;
  18615. bool isNeedFollowUpVisit;
  18616. EvaluateGradeEnum evaluateGrade;
  18617. ICollection<LiveConsultationFileView>? fileInfos;
  18618. ICollection<ReportConclusionView>? reportConclusionInfos;
  18619. List<DataItemDTO>? patientDatas;
  18620. OrganizationPatientTypeEnum patientType;
  18621. List<String>? scanPositions;
  18622. String? scanUserCode;
  18623. String? scanUserName;
  18624. String? operateUserCode;
  18625. String? operateUserName;
  18626. DateTime? consultationTime;
  18627. DateTime? consultationTimeEnd;
  18628. TransactionStatusEnum consultationStatus;
  18629. String? rejectReason;
  18630. String? location;
  18631. List<ConsultationMemberDTO>? consultationMembers;
  18632. String? description;
  18633. List<ConsultationReminderDTO>? consultationReminders;
  18634. String? approverCode;
  18635. ConsultationReportMode reportMode;
  18636. String? diseases;
  18637. String? primaryDiagnosis;
  18638. String? initiatorCode;
  18639. bool isEmergency;
  18640. String? emergencyCode;
  18641. SyncEvaluatesRequest? evaluates;
  18642. List<SyncFollowUpVisitRequest>? syncFollowUpVisitList;
  18643. LiveConsultationDTO({
  18644. this.code,
  18645. this.doctorInfo,
  18646. this.expertInfo,
  18647. this.patientInfo,
  18648. this.primaryHosptial,
  18649. this.centralHospital,
  18650. this.deviceInfo,
  18651. this.checkPoint,
  18652. this.state = ConsultationState.Unhandled,
  18653. this.consultationNumber,
  18654. this.queuingNumber,
  18655. this.qualityType = QualityType.None,
  18656. this.followUpVisitStatus = FollowUpVisitStatusEnum.Unknown,
  18657. this.isNeedFollowUpVisit = false,
  18658. this.evaluateGrade = EvaluateGradeEnum.UnSet,
  18659. this.fileInfos,
  18660. this.reportConclusionInfos,
  18661. this.patientDatas,
  18662. this.patientType = OrganizationPatientTypeEnum.Person,
  18663. this.scanPositions,
  18664. this.scanUserCode,
  18665. this.scanUserName,
  18666. this.operateUserCode,
  18667. this.operateUserName,
  18668. this.consultationTime,
  18669. this.consultationTimeEnd,
  18670. this.consultationStatus = TransactionStatusEnum.Applied,
  18671. this.rejectReason,
  18672. this.location,
  18673. this.consultationMembers,
  18674. this.description,
  18675. this.consultationReminders,
  18676. this.approverCode,
  18677. this.reportMode = ConsultationReportMode.ExpertReport,
  18678. this.diseases,
  18679. this.primaryDiagnosis,
  18680. this.initiatorCode,
  18681. this.isEmergency = false,
  18682. this.emergencyCode,
  18683. this.evaluates,
  18684. this.syncFollowUpVisitList,
  18685. DateTime? createTime,
  18686. DateTime? updateTime,
  18687. }) : super(
  18688. createTime: createTime,
  18689. updateTime: updateTime,
  18690. );
  18691. factory LiveConsultationDTO.fromJson(Map<String, dynamic> map) {
  18692. return LiveConsultationDTO(
  18693. code: map['Code'],
  18694. doctorInfo: map['DoctorInfo'] != null ? UserView.fromJson(map['DoctorInfo']) : null,
  18695. expertInfo: map['ExpertInfo'] != null ? UserView.fromJson(map['ExpertInfo']) : null,
  18696. patientInfo: map['PatientInfo'] != null ? PatientView.fromJson(map['PatientInfo']) : null,
  18697. primaryHosptial: map['PrimaryHosptial'] != null ? OrganizationView.fromJson(map['PrimaryHosptial']) : null,
  18698. centralHospital: map['CentralHospital'] != null ? OrganizationView.fromJson(map['CentralHospital']) : null,
  18699. deviceInfo: map['DeviceInfo'] != null ? DeviceView.fromJson(map['DeviceInfo']) : null,
  18700. checkPoint: map['CheckPoint'],
  18701. state: ConsultationState.values.firstWhere((e) => e.index == map['State']),
  18702. consultationNumber: map['ConsultationNumber'],
  18703. queuingNumber: map['QueuingNumber'],
  18704. qualityType: QualityType.values.firstWhere((e) => e.index == map['QualityType']),
  18705. followUpVisitStatus: FollowUpVisitStatusEnum.values.firstWhere((e) => e.index == map['FollowUpVisitStatus']),
  18706. isNeedFollowUpVisit: map['IsNeedFollowUpVisit'],
  18707. evaluateGrade: EvaluateGradeEnum.values.firstWhere((e) => e.index == map['EvaluateGrade']),
  18708. patientDatas: map['PatientDatas'] != null ? (map['PatientDatas'] as List).map((e)=>DataItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  18709. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  18710. scanPositions: map['ScanPositions']?.cast<String>().toList(),
  18711. scanUserCode: map['ScanUserCode'],
  18712. scanUserName: map['ScanUserName'],
  18713. operateUserCode: map['OperateUserCode'],
  18714. operateUserName: map['OperateUserName'],
  18715. consultationTime: map['ConsultationTime'] != null ? DateTime.parse(map['ConsultationTime']) : null,
  18716. consultationTimeEnd: map['ConsultationTimeEnd'] != null ? DateTime.parse(map['ConsultationTimeEnd']) : null,
  18717. consultationStatus: TransactionStatusEnum.values.firstWhere((e) => e.index == map['ConsultationStatus']),
  18718. rejectReason: map['RejectReason'],
  18719. location: map['Location'],
  18720. consultationMembers: map['ConsultationMembers'] != null ? (map['ConsultationMembers'] as List).map((e)=>ConsultationMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  18721. description: map['Description'],
  18722. consultationReminders: map['ConsultationReminders'] != null ? (map['ConsultationReminders'] as List).map((e)=>ConsultationReminderDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  18723. approverCode: map['ApproverCode'],
  18724. reportMode: ConsultationReportMode.values.firstWhere((e) => e.index == map['ReportMode']),
  18725. diseases: map['Diseases'],
  18726. primaryDiagnosis: map['PrimaryDiagnosis'],
  18727. initiatorCode: map['InitiatorCode'],
  18728. isEmergency: map['IsEmergency'],
  18729. emergencyCode: map['EmergencyCode'],
  18730. evaluates: map['Evaluates'] != null ? SyncEvaluatesRequest.fromJson(map['Evaluates']) : null,
  18731. syncFollowUpVisitList: map['SyncFollowUpVisitList'] != null ? (map['SyncFollowUpVisitList'] as List).map((e)=>SyncFollowUpVisitRequest.fromJson(e as Map<String,dynamic>)).toList() : null,
  18732. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  18733. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  18734. );
  18735. }
  18736. Map<String, dynamic> toJson() {
  18737. final map = super.toJson();
  18738. if(code != null)
  18739. map['Code'] = code;
  18740. if(doctorInfo != null)
  18741. map['DoctorInfo'] = doctorInfo;
  18742. if(expertInfo != null)
  18743. map['ExpertInfo'] = expertInfo;
  18744. if(patientInfo != null)
  18745. map['PatientInfo'] = patientInfo;
  18746. if(primaryHosptial != null)
  18747. map['PrimaryHosptial'] = primaryHosptial;
  18748. if(centralHospital != null)
  18749. map['CentralHospital'] = centralHospital;
  18750. if(deviceInfo != null)
  18751. map['DeviceInfo'] = deviceInfo;
  18752. if(checkPoint != null)
  18753. map['CheckPoint'] = checkPoint;
  18754. map['State'] = state.index;
  18755. if(consultationNumber != null)
  18756. map['ConsultationNumber'] = consultationNumber;
  18757. if(queuingNumber != null)
  18758. map['QueuingNumber'] = queuingNumber;
  18759. map['QualityType'] = qualityType.index;
  18760. map['FollowUpVisitStatus'] = followUpVisitStatus.index;
  18761. map['IsNeedFollowUpVisit'] = isNeedFollowUpVisit;
  18762. map['EvaluateGrade'] = evaluateGrade.index;
  18763. if(fileInfos != null)
  18764. map['FileInfos'] = fileInfos;
  18765. if(reportConclusionInfos != null)
  18766. map['ReportConclusionInfos'] = reportConclusionInfos;
  18767. if(patientDatas != null)
  18768. map['PatientDatas'] = patientDatas;
  18769. map['PatientType'] = patientType.index;
  18770. if(scanPositions != null)
  18771. map['ScanPositions'] = scanPositions;
  18772. if(scanUserCode != null)
  18773. map['ScanUserCode'] = scanUserCode;
  18774. if(scanUserName != null)
  18775. map['ScanUserName'] = scanUserName;
  18776. if(operateUserCode != null)
  18777. map['OperateUserCode'] = operateUserCode;
  18778. if(operateUserName != null)
  18779. map['OperateUserName'] = operateUserName;
  18780. if(consultationTime != null)
  18781. map['ConsultationTime'] = JsonRpcUtils.dateFormat(consultationTime!);
  18782. if(consultationTimeEnd != null)
  18783. map['ConsultationTimeEnd'] = JsonRpcUtils.dateFormat(consultationTimeEnd!);
  18784. map['ConsultationStatus'] = consultationStatus.index;
  18785. if(rejectReason != null)
  18786. map['RejectReason'] = rejectReason;
  18787. if(location != null)
  18788. map['Location'] = location;
  18789. if(consultationMembers != null)
  18790. map['ConsultationMembers'] = consultationMembers;
  18791. if(description != null)
  18792. map['Description'] = description;
  18793. if(consultationReminders != null)
  18794. map['ConsultationReminders'] = consultationReminders;
  18795. if(approverCode != null)
  18796. map['ApproverCode'] = approverCode;
  18797. map['ReportMode'] = reportMode.index;
  18798. if(diseases != null)
  18799. map['Diseases'] = diseases;
  18800. if(primaryDiagnosis != null)
  18801. map['PrimaryDiagnosis'] = primaryDiagnosis;
  18802. if(initiatorCode != null)
  18803. map['InitiatorCode'] = initiatorCode;
  18804. map['IsEmergency'] = isEmergency;
  18805. if(emergencyCode != null)
  18806. map['EmergencyCode'] = emergencyCode;
  18807. if(evaluates != null)
  18808. map['Evaluates'] = evaluates;
  18809. if(syncFollowUpVisitList != null)
  18810. map['SyncFollowUpVisitList'] = syncFollowUpVisitList;
  18811. return map;
  18812. }
  18813. }
  18814. class SignStudentView {
  18815. String? studentCode;
  18816. String? studentName;
  18817. CourseAppearTypeEnum courseAppearType;
  18818. bool isPay;
  18819. StudentCourseStatusEnum signCourseStatus;
  18820. bool isNoSpeaking;
  18821. bool isAssistant;
  18822. List<int>? smallHeadImage;
  18823. SignStudentView({
  18824. this.studentCode,
  18825. this.studentName,
  18826. this.courseAppearType = CourseAppearTypeEnum.Unknown,
  18827. this.isPay = false,
  18828. this.signCourseStatus = StudentCourseStatusEnum.All,
  18829. this.isNoSpeaking = false,
  18830. this.isAssistant = false,
  18831. this.smallHeadImage,
  18832. });
  18833. factory SignStudentView.fromJson(Map<String, dynamic> map) {
  18834. final smallHeadImageData = map['SmallHeadImage'];
  18835. return SignStudentView(
  18836. studentCode: map['StudentCode'],
  18837. studentName: map['StudentName'],
  18838. courseAppearType: CourseAppearTypeEnum.values.firstWhere((e) => e.index == map['CourseAppearType']),
  18839. isPay: map['IsPay'],
  18840. signCourseStatus: StudentCourseStatusEnum.values.firstWhere((e) => e.index == map['SignCourseStatus']),
  18841. isNoSpeaking: map['IsNoSpeaking'],
  18842. isAssistant: map['IsAssistant'],
  18843. smallHeadImage: smallHeadImageData != null ? (smallHeadImageData as List).map((e) => e as int).toList(): null,
  18844. );
  18845. }
  18846. Map<String, dynamic> toJson() {
  18847. final map = Map<String, dynamic>();
  18848. if(studentCode != null) {
  18849. map['StudentCode'] = studentCode;
  18850. }
  18851. if(studentName != null) {
  18852. map['StudentName'] = studentName;
  18853. }
  18854. map['CourseAppearType'] = courseAppearType.index;
  18855. map['IsPay'] = isPay;
  18856. map['SignCourseStatus'] = signCourseStatus.index;
  18857. map['IsNoSpeaking'] = isNoSpeaking;
  18858. map['IsAssistant'] = isAssistant;
  18859. if(smallHeadImage != null) {
  18860. map['SmallHeadImage'] = smallHeadImage;
  18861. }
  18862. return map;
  18863. }
  18864. }
  18865. class CourseExaminationQuestionView {
  18866. String? code;
  18867. String? stem;
  18868. QuestionTypeEnum questionType;
  18869. List<QuestionOptionDTO>? questionOptionList;
  18870. List<QuestionFileDTO>? fileList;
  18871. bool trueOrFalse;
  18872. double score;
  18873. CourseExaminationQuestionView({
  18874. this.code,
  18875. this.stem,
  18876. this.questionType = QuestionTypeEnum.Judge,
  18877. this.questionOptionList,
  18878. this.fileList,
  18879. this.trueOrFalse = false,
  18880. this.score = 0,
  18881. });
  18882. factory CourseExaminationQuestionView.fromJson(Map<String, dynamic> map) {
  18883. return CourseExaminationQuestionView(
  18884. code: map['Code'],
  18885. stem: map['Stem'],
  18886. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  18887. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  18888. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  18889. trueOrFalse: map['TrueOrFalse'],
  18890. score: double.parse(map['Score'].toString()),
  18891. );
  18892. }
  18893. Map<String, dynamic> toJson() {
  18894. final map = Map<String, dynamic>();
  18895. if(code != null) {
  18896. map['Code'] = code;
  18897. }
  18898. if(stem != null) {
  18899. map['Stem'] = stem;
  18900. }
  18901. map['QuestionType'] = questionType.index;
  18902. if(questionOptionList != null) {
  18903. map['QuestionOptionList'] = questionOptionList;
  18904. }
  18905. if(fileList != null) {
  18906. map['FileList'] = fileList;
  18907. }
  18908. map['TrueOrFalse'] = trueOrFalse;
  18909. map['Score'] = score;
  18910. return map;
  18911. }
  18912. }
  18913. class CourseExaminationView {
  18914. String? code;
  18915. String? name;
  18916. double totalScore;
  18917. List<CourseExaminationQuestionView>? questionList;
  18918. int submitLimitCount;
  18919. bool isRelease;
  18920. CourseExaminationTypeEnum examinationType;
  18921. DateTime? startTime;
  18922. int examDuration;
  18923. double passingScore;
  18924. CourseExaminationView({
  18925. this.code,
  18926. this.name,
  18927. this.totalScore = 0,
  18928. this.questionList,
  18929. this.submitLimitCount = 0,
  18930. this.isRelease = false,
  18931. this.examinationType = CourseExaminationTypeEnum.Practice,
  18932. this.startTime,
  18933. this.examDuration = 0,
  18934. this.passingScore = 0,
  18935. });
  18936. factory CourseExaminationView.fromJson(Map<String, dynamic> map) {
  18937. return CourseExaminationView(
  18938. code: map['Code'],
  18939. name: map['Name'],
  18940. totalScore: double.parse(map['TotalScore'].toString()),
  18941. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>CourseExaminationQuestionView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18942. submitLimitCount: map['SubmitLimitCount'],
  18943. isRelease: map['IsRelease'],
  18944. examinationType: CourseExaminationTypeEnum.values.firstWhere((e) => e.index == map['ExaminationType']),
  18945. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  18946. examDuration: map['ExamDuration'],
  18947. passingScore: double.parse(map['PassingScore'].toString()),
  18948. );
  18949. }
  18950. Map<String, dynamic> toJson() {
  18951. final map = Map<String, dynamic>();
  18952. if(code != null) {
  18953. map['Code'] = code;
  18954. }
  18955. if(name != null) {
  18956. map['Name'] = name;
  18957. }
  18958. map['TotalScore'] = totalScore;
  18959. if(questionList != null) {
  18960. map['QuestionList'] = questionList;
  18961. }
  18962. map['SubmitLimitCount'] = submitLimitCount;
  18963. map['IsRelease'] = isRelease;
  18964. map['ExaminationType'] = examinationType.index;
  18965. if(startTime != null) {
  18966. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  18967. }
  18968. map['ExamDuration'] = examDuration;
  18969. map['PassingScore'] = passingScore;
  18970. return map;
  18971. }
  18972. }
  18973. class OnlineTrainingDTO extends BaseDTO{
  18974. String? code;
  18975. String? name;
  18976. String? teacherCode;
  18977. String? teacherName;
  18978. int duration;
  18979. CourseStatusEnum status;
  18980. CourseViewRangeEnum viewRange;
  18981. double price;
  18982. String? courseIntro;
  18983. CourseAudienceTypeEnum audienceType;
  18984. String? poster;
  18985. String? creatorCode;
  18986. String? organizationCode;
  18987. DateTime? startTime;
  18988. DateTime? deadline;
  18989. DateTime? actualStartTime;
  18990. DateTime? actualEndTime;
  18991. List<CourseLabelView>? caseLabelInfos;
  18992. String? courseToken;
  18993. String? coursewareToken;
  18994. List<GroupView>? userGroupInfos;
  18995. CourseTypeEnum courseType;
  18996. List<SignStudentView>? students;
  18997. List<SignStudentView>? assistants;
  18998. List<SignStudentView>? experts;
  18999. List<CourseLabelView>? courseLabelInfos;
  19000. bool isAgentCourse;
  19001. bool isStick;
  19002. int sort;
  19003. List<CourseExaminationView>? bindExams;
  19004. List<String>? courseVideoCodes;
  19005. CourseAppearTypeEnum courseAppearType;
  19006. List<String>? courseAlbumCodes;
  19007. int playCount;
  19008. List<String>? courseMaterialCodes;
  19009. ApplyStateEnum applyState;
  19010. String? conversationId;
  19011. ICollection<ChannelDataView>? channelDatas;
  19012. AdminView? createAdmin;
  19013. ICollection<AdminView>? owners;
  19014. bool teacherOnlineState;
  19015. bool startCourseInAdvance;
  19016. List<UserView>? assistantInfos;
  19017. List<UserView>? guestInfos;
  19018. String? credentialCode;
  19019. String? courseNotice;
  19020. List<UserView>? meetingMemberInfos;
  19021. OnlineTrainingDTO({
  19022. this.code,
  19023. this.name,
  19024. this.teacherCode,
  19025. this.teacherName,
  19026. this.duration = 0,
  19027. this.status = CourseStatusEnum.Unknown,
  19028. this.viewRange = CourseViewRangeEnum.All,
  19029. this.price = 0,
  19030. this.courseIntro,
  19031. this.audienceType = CourseAudienceTypeEnum.Unknown,
  19032. this.poster,
  19033. this.creatorCode,
  19034. this.organizationCode,
  19035. this.startTime,
  19036. this.deadline,
  19037. this.actualStartTime,
  19038. this.actualEndTime,
  19039. this.caseLabelInfos,
  19040. this.courseToken,
  19041. this.coursewareToken,
  19042. this.userGroupInfos,
  19043. this.courseType = CourseTypeEnum.Unknown,
  19044. this.students,
  19045. this.assistants,
  19046. this.experts,
  19047. this.courseLabelInfos,
  19048. this.isAgentCourse = false,
  19049. this.isStick = false,
  19050. this.sort = 0,
  19051. this.bindExams,
  19052. this.courseVideoCodes,
  19053. this.courseAppearType = CourseAppearTypeEnum.Unknown,
  19054. this.courseAlbumCodes,
  19055. this.playCount = 0,
  19056. this.courseMaterialCodes,
  19057. this.applyState = ApplyStateEnum.NotApply,
  19058. this.conversationId,
  19059. this.channelDatas,
  19060. this.createAdmin,
  19061. this.owners,
  19062. this.teacherOnlineState = false,
  19063. this.startCourseInAdvance = false,
  19064. this.assistantInfos,
  19065. this.guestInfos,
  19066. this.credentialCode,
  19067. this.courseNotice,
  19068. this.meetingMemberInfos,
  19069. DateTime? createTime,
  19070. DateTime? updateTime,
  19071. }) : super(
  19072. createTime: createTime,
  19073. updateTime: updateTime,
  19074. );
  19075. factory OnlineTrainingDTO.fromJson(Map<String, dynamic> map) {
  19076. return OnlineTrainingDTO(
  19077. code: map['Code'],
  19078. name: map['Name'],
  19079. teacherCode: map['TeacherCode'],
  19080. teacherName: map['TeacherName'],
  19081. duration: map['Duration'],
  19082. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  19083. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  19084. price: double.parse(map['Price'].toString()),
  19085. courseIntro: map['CourseIntro'],
  19086. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  19087. poster: map['Poster'],
  19088. creatorCode: map['CreatorCode'],
  19089. organizationCode: map['OrganizationCode'],
  19090. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  19091. deadline: map['Deadline'] != null ? DateTime.parse(map['Deadline']) : null,
  19092. actualStartTime: map['ActualStartTime'] != null ? DateTime.parse(map['ActualStartTime']) : null,
  19093. actualEndTime: map['ActualEndTime'] != null ? DateTime.parse(map['ActualEndTime']) : null,
  19094. caseLabelInfos: map['CaseLabelInfos'] != null ? (map['CaseLabelInfos'] as List).map((e)=>CourseLabelView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19095. courseToken: map['CourseToken'],
  19096. coursewareToken: map['CoursewareToken'],
  19097. userGroupInfos: map['UserGroupInfos'] != null ? (map['UserGroupInfos'] as List).map((e)=>GroupView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19098. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  19099. students: map['Students'] != null ? (map['Students'] as List).map((e)=>SignStudentView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19100. assistants: map['Assistants'] != null ? (map['Assistants'] as List).map((e)=>SignStudentView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19101. experts: map['Experts'] != null ? (map['Experts'] as List).map((e)=>SignStudentView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19102. courseLabelInfos: map['CourseLabelInfos'] != null ? (map['CourseLabelInfos'] as List).map((e)=>CourseLabelView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19103. isAgentCourse: map['IsAgentCourse'],
  19104. isStick: map['IsStick'],
  19105. sort: map['Sort'],
  19106. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19107. courseVideoCodes: map['CourseVideoCodes']?.cast<String>().toList(),
  19108. courseAppearType: CourseAppearTypeEnum.values.firstWhere((e) => e.index == map['CourseAppearType']),
  19109. courseAlbumCodes: map['CourseAlbumCodes']?.cast<String>().toList(),
  19110. playCount: map['PlayCount'],
  19111. courseMaterialCodes: map['CourseMaterialCodes']?.cast<String>().toList(),
  19112. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  19113. conversationId: map['ConversationId'],
  19114. createAdmin: map['CreateAdmin'] != null ? AdminView.fromJson(map['CreateAdmin']) : null,
  19115. teacherOnlineState: map['TeacherOnlineState'],
  19116. startCourseInAdvance: map['StartCourseInAdvance'],
  19117. assistantInfos: map['AssistantInfos'] != null ? (map['AssistantInfos'] as List).map((e)=>UserView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19118. guestInfos: map['GuestInfos'] != null ? (map['GuestInfos'] as List).map((e)=>UserView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19119. credentialCode: map['CredentialCode'],
  19120. courseNotice: map['CourseNotice'],
  19121. meetingMemberInfos: map['MeetingMemberInfos'] != null ? (map['MeetingMemberInfos'] as List).map((e)=>UserView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19122. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  19123. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  19124. );
  19125. }
  19126. Map<String, dynamic> toJson() {
  19127. final map = super.toJson();
  19128. if(code != null)
  19129. map['Code'] = code;
  19130. if(name != null)
  19131. map['Name'] = name;
  19132. if(teacherCode != null)
  19133. map['TeacherCode'] = teacherCode;
  19134. if(teacherName != null)
  19135. map['TeacherName'] = teacherName;
  19136. map['Duration'] = duration;
  19137. map['Status'] = status.index;
  19138. map['ViewRange'] = viewRange.index;
  19139. map['Price'] = price;
  19140. if(courseIntro != null)
  19141. map['CourseIntro'] = courseIntro;
  19142. map['AudienceType'] = audienceType.index;
  19143. if(poster != null)
  19144. map['Poster'] = poster;
  19145. if(creatorCode != null)
  19146. map['CreatorCode'] = creatorCode;
  19147. if(organizationCode != null)
  19148. map['OrganizationCode'] = organizationCode;
  19149. if(startTime != null)
  19150. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  19151. if(deadline != null)
  19152. map['Deadline'] = JsonRpcUtils.dateFormat(deadline!);
  19153. if(actualStartTime != null)
  19154. map['ActualStartTime'] = JsonRpcUtils.dateFormat(actualStartTime!);
  19155. if(actualEndTime != null)
  19156. map['ActualEndTime'] = JsonRpcUtils.dateFormat(actualEndTime!);
  19157. if(caseLabelInfos != null)
  19158. map['CaseLabelInfos'] = caseLabelInfos;
  19159. if(courseToken != null)
  19160. map['CourseToken'] = courseToken;
  19161. if(coursewareToken != null)
  19162. map['CoursewareToken'] = coursewareToken;
  19163. if(userGroupInfos != null)
  19164. map['UserGroupInfos'] = userGroupInfos;
  19165. map['CourseType'] = courseType.index;
  19166. if(students != null)
  19167. map['Students'] = students;
  19168. if(assistants != null)
  19169. map['Assistants'] = assistants;
  19170. if(experts != null)
  19171. map['Experts'] = experts;
  19172. if(courseLabelInfos != null)
  19173. map['CourseLabelInfos'] = courseLabelInfos;
  19174. map['IsAgentCourse'] = isAgentCourse;
  19175. map['IsStick'] = isStick;
  19176. map['Sort'] = sort;
  19177. if(bindExams != null)
  19178. map['BindExams'] = bindExams;
  19179. if(courseVideoCodes != null)
  19180. map['CourseVideoCodes'] = courseVideoCodes;
  19181. map['CourseAppearType'] = courseAppearType.index;
  19182. if(courseAlbumCodes != null)
  19183. map['CourseAlbumCodes'] = courseAlbumCodes;
  19184. map['PlayCount'] = playCount;
  19185. if(courseMaterialCodes != null)
  19186. map['CourseMaterialCodes'] = courseMaterialCodes;
  19187. map['ApplyState'] = applyState.index;
  19188. if(conversationId != null)
  19189. map['ConversationId'] = conversationId;
  19190. if(channelDatas != null)
  19191. map['ChannelDatas'] = channelDatas;
  19192. if(createAdmin != null)
  19193. map['CreateAdmin'] = createAdmin;
  19194. if(owners != null)
  19195. map['Owners'] = owners;
  19196. map['TeacherOnlineState'] = teacherOnlineState;
  19197. map['StartCourseInAdvance'] = startCourseInAdvance;
  19198. if(assistantInfos != null)
  19199. map['AssistantInfos'] = assistantInfos;
  19200. if(guestInfos != null)
  19201. map['GuestInfos'] = guestInfos;
  19202. if(credentialCode != null)
  19203. map['CredentialCode'] = credentialCode;
  19204. if(courseNotice != null)
  19205. map['CourseNotice'] = courseNotice;
  19206. if(meetingMemberInfos != null)
  19207. map['MeetingMemberInfos'] = meetingMemberInfos;
  19208. return map;
  19209. }
  19210. }
  19211. class OnlineVideoDTO extends BaseDTO{
  19212. String? code;
  19213. String? name;
  19214. String? creatorCode;
  19215. String? creatorName;
  19216. UploadFileTypeEnum fodderType;
  19217. bool isPublic;
  19218. CourseViewRangeEnum viewRange;
  19219. String? videoToken;
  19220. String? vodFileId;
  19221. String? poster;
  19222. int duration;
  19223. double videoSize;
  19224. int playCount;
  19225. String? srcFileToken;
  19226. String? description;
  19227. VideoImportanceEnum importance;
  19228. VideoPermissionsEnum permissions;
  19229. List<UserView>? users;
  19230. List<GroupView>? userGroups;
  19231. List<ClassView>? classInfos;
  19232. List<OnlineTrainingDTO>? courses;
  19233. List<VideoLabelEnum>? labels;
  19234. String? teachingDocumentName;
  19235. String? teachingDocument;
  19236. int realBrowsedCount;
  19237. int baseBrowsedCount;
  19238. List<UserView>? finishedUsers;
  19239. OnlineVideoDTO({
  19240. this.code,
  19241. this.name,
  19242. this.creatorCode,
  19243. this.creatorName,
  19244. this.fodderType = UploadFileTypeEnum.Unknown,
  19245. this.isPublic = false,
  19246. this.viewRange = CourseViewRangeEnum.All,
  19247. this.videoToken,
  19248. this.vodFileId,
  19249. this.poster,
  19250. this.duration = 0,
  19251. this.videoSize = 0,
  19252. this.playCount = 0,
  19253. this.srcFileToken,
  19254. this.description,
  19255. this.importance = VideoImportanceEnum.Normal,
  19256. this.permissions = VideoPermissionsEnum.Public,
  19257. this.users,
  19258. this.userGroups,
  19259. this.classInfos,
  19260. this.courses,
  19261. this.labels,
  19262. this.teachingDocumentName,
  19263. this.teachingDocument,
  19264. this.realBrowsedCount = 0,
  19265. this.baseBrowsedCount = 0,
  19266. this.finishedUsers,
  19267. DateTime? createTime,
  19268. DateTime? updateTime,
  19269. }) : super(
  19270. createTime: createTime,
  19271. updateTime: updateTime,
  19272. );
  19273. factory OnlineVideoDTO.fromJson(Map<String, dynamic> map) {
  19274. return OnlineVideoDTO(
  19275. code: map['Code'],
  19276. name: map['Name'],
  19277. creatorCode: map['CreatorCode'],
  19278. creatorName: map['CreatorName'],
  19279. fodderType: UploadFileTypeEnum.values.firstWhere((e) => e.index == map['FodderType']),
  19280. isPublic: map['IsPublic'],
  19281. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  19282. videoToken: map['VideoToken'],
  19283. vodFileId: map['VodFileId'],
  19284. poster: map['Poster'],
  19285. duration: map['Duration'],
  19286. videoSize: double.parse(map['VideoSize'].toString()),
  19287. playCount: map['PlayCount'],
  19288. srcFileToken: map['SrcFileToken'],
  19289. description: map['Description'],
  19290. importance: VideoImportanceEnum.values.firstWhere((e) => e.index == map['Importance']),
  19291. permissions: VideoPermissionsEnum.values.firstWhere((e) => e.index == map['Permissions']),
  19292. users: map['Users'] != null ? (map['Users'] as List).map((e)=>UserView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19293. userGroups: map['UserGroups'] != null ? (map['UserGroups'] as List).map((e)=>GroupView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19294. classInfos: map['ClassInfos'] != null ? (map['ClassInfos'] as List).map((e)=>ClassView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19295. courses: map['Courses'] != null ? (map['Courses'] as List).map((e)=>OnlineTrainingDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  19296. labels: map['Labels'] != null ? (map['Labels'] as List).map((e)=>VideoLabelEnum.values.firstWhere((i) => i.index == e)).toList() : null,
  19297. teachingDocumentName: map['TeachingDocumentName'],
  19298. teachingDocument: map['TeachingDocument'],
  19299. realBrowsedCount: map['RealBrowsedCount'],
  19300. baseBrowsedCount: map['BaseBrowsedCount'],
  19301. finishedUsers: map['FinishedUsers'] != null ? (map['FinishedUsers'] as List).map((e)=>UserView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19302. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  19303. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  19304. );
  19305. }
  19306. Map<String, dynamic> toJson() {
  19307. final map = super.toJson();
  19308. if(code != null)
  19309. map['Code'] = code;
  19310. if(name != null)
  19311. map['Name'] = name;
  19312. if(creatorCode != null)
  19313. map['CreatorCode'] = creatorCode;
  19314. if(creatorName != null)
  19315. map['CreatorName'] = creatorName;
  19316. map['FodderType'] = fodderType.index;
  19317. map['IsPublic'] = isPublic;
  19318. map['ViewRange'] = viewRange.index;
  19319. if(videoToken != null)
  19320. map['VideoToken'] = videoToken;
  19321. if(vodFileId != null)
  19322. map['VodFileId'] = vodFileId;
  19323. if(poster != null)
  19324. map['Poster'] = poster;
  19325. map['Duration'] = duration;
  19326. map['VideoSize'] = videoSize;
  19327. map['PlayCount'] = playCount;
  19328. if(srcFileToken != null)
  19329. map['SrcFileToken'] = srcFileToken;
  19330. if(description != null)
  19331. map['Description'] = description;
  19332. map['Importance'] = importance.index;
  19333. map['Permissions'] = permissions.index;
  19334. if(users != null)
  19335. map['Users'] = users;
  19336. if(userGroups != null)
  19337. map['UserGroups'] = userGroups;
  19338. if(classInfos != null)
  19339. map['ClassInfos'] = classInfos;
  19340. if(courses != null)
  19341. map['Courses'] = courses;
  19342. if(labels != null)
  19343. map['Labels'] = labels;
  19344. if(teachingDocumentName != null)
  19345. map['TeachingDocumentName'] = teachingDocumentName;
  19346. if(teachingDocument != null)
  19347. map['TeachingDocument'] = teachingDocument;
  19348. map['RealBrowsedCount'] = realBrowsedCount;
  19349. map['BaseBrowsedCount'] = baseBrowsedCount;
  19350. if(finishedUsers != null)
  19351. map['FinishedUsers'] = finishedUsers;
  19352. return map;
  19353. }
  19354. }
  19355. class QualifiedView {
  19356. QualifiedState qualifiedState;
  19357. QualityType qualityType;
  19358. QualifiedView({
  19359. this.qualifiedState = QualifiedState.UnSet,
  19360. this.qualityType = QualityType.None,
  19361. });
  19362. factory QualifiedView.fromJson(Map<String, dynamic> map) {
  19363. return QualifiedView(
  19364. qualifiedState: QualifiedState.values.firstWhere((e) => e.index == map['QualifiedState']),
  19365. qualityType: QualityType.values.firstWhere((e) => e.index == map['QualityType']),
  19366. );
  19367. }
  19368. Map<String, dynamic> toJson() {
  19369. final map = Map<String, dynamic>();
  19370. map['QualifiedState'] = qualifiedState.index;
  19371. map['QualityType'] = qualityType.index;
  19372. return map;
  19373. }
  19374. }
  19375. class ScreenshotView {
  19376. String? createUserCode;
  19377. String? createUserName;
  19378. String? prelDiagnosis;
  19379. String? examDoctor;
  19380. ScreenshotView({
  19381. this.createUserCode,
  19382. this.createUserName,
  19383. this.prelDiagnosis,
  19384. this.examDoctor,
  19385. });
  19386. factory ScreenshotView.fromJson(Map<String, dynamic> map) {
  19387. return ScreenshotView(
  19388. createUserCode: map['CreateUserCode'],
  19389. createUserName: map['CreateUserName'],
  19390. prelDiagnosis: map['PrelDiagnosis'],
  19391. examDoctor: map['ExamDoctor'],
  19392. );
  19393. }
  19394. Map<String, dynamic> toJson() {
  19395. final map = Map<String, dynamic>();
  19396. if(createUserCode != null) {
  19397. map['CreateUserCode'] = createUserCode;
  19398. }
  19399. if(createUserName != null) {
  19400. map['CreateUserName'] = createUserName;
  19401. }
  19402. if(prelDiagnosis != null) {
  19403. map['PrelDiagnosis'] = prelDiagnosis;
  19404. }
  19405. if(examDoctor != null) {
  19406. map['ExamDoctor'] = examDoctor;
  19407. }
  19408. return map;
  19409. }
  19410. }
  19411. class RemoteDiagnosisDTO extends BaseDTO{
  19412. String? code;
  19413. String? examId;
  19414. OrganizationView? organizationInfo;
  19415. DeviceView? deviceInfo;
  19416. PatientView? patientInfo;
  19417. ScreenshotView? screenshotInfo;
  19418. QualifiedView? qualifiedInfo;
  19419. List<DiagnosisView>? diagnosisInfos;
  19420. List<String>? shareUserCodes;
  19421. String? customDoctor;
  19422. String? customOrganzation;
  19423. String? equipmentSN;
  19424. List<RemoteDiagnosisFileView>? fileInfos;
  19425. List<String>? completedUsers;
  19426. RecordStatusEnum recordStatus;
  19427. String? creatorCode;
  19428. String? tags;
  19429. RecordCreateTypeEnum createType;
  19430. List<DataItemDTO>? patientDataInfo;
  19431. List<PatientInfoExt>? patientInfoExtList;
  19432. String? patientType;
  19433. List<String>? readUsers;
  19434. List<String>? associatedExamCodes;
  19435. RemoteDiagnosisDTO({
  19436. this.code,
  19437. this.examId,
  19438. this.organizationInfo,
  19439. this.deviceInfo,
  19440. this.patientInfo,
  19441. this.screenshotInfo,
  19442. this.qualifiedInfo,
  19443. this.diagnosisInfos,
  19444. this.shareUserCodes,
  19445. this.customDoctor,
  19446. this.customOrganzation,
  19447. this.equipmentSN,
  19448. this.fileInfos,
  19449. this.completedUsers,
  19450. this.recordStatus = RecordStatusEnum.NotScanned,
  19451. this.creatorCode,
  19452. this.tags,
  19453. this.createType = RecordCreateTypeEnum.Reservation,
  19454. this.patientDataInfo,
  19455. this.patientInfoExtList,
  19456. this.patientType,
  19457. this.readUsers,
  19458. this.associatedExamCodes,
  19459. DateTime? createTime,
  19460. DateTime? updateTime,
  19461. }) : super(
  19462. createTime: createTime,
  19463. updateTime: updateTime,
  19464. );
  19465. factory RemoteDiagnosisDTO.fromJson(Map<String, dynamic> map) {
  19466. return RemoteDiagnosisDTO(
  19467. code: map['Code'],
  19468. examId: map['ExamId'],
  19469. organizationInfo: map['OrganizationInfo'] != null ? OrganizationView.fromJson(map['OrganizationInfo']) : null,
  19470. deviceInfo: map['DeviceInfo'] != null ? DeviceView.fromJson(map['DeviceInfo']) : null,
  19471. patientInfo: map['PatientInfo'] != null ? PatientView.fromJson(map['PatientInfo']) : null,
  19472. screenshotInfo: map['ScreenshotInfo'] != null ? ScreenshotView.fromJson(map['ScreenshotInfo']) : null,
  19473. qualifiedInfo: map['QualifiedInfo'] != null ? QualifiedView.fromJson(map['QualifiedInfo']) : null,
  19474. diagnosisInfos: map['DiagnosisInfos'] != null ? (map['DiagnosisInfos'] as List).map((e)=>DiagnosisView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19475. shareUserCodes: map['ShareUserCodes']?.cast<String>().toList(),
  19476. customDoctor: map['CustomDoctor'],
  19477. customOrganzation: map['CustomOrganzation'],
  19478. equipmentSN: map['EquipmentSN'],
  19479. fileInfos: map['FileInfos'] != null ? (map['FileInfos'] as List).map((e)=>RemoteDiagnosisFileView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19480. completedUsers: map['CompletedUsers']?.cast<String>().toList(),
  19481. recordStatus: RecordStatusEnum.values.firstWhere((e) => e.index == map['RecordStatus']),
  19482. creatorCode: map['CreatorCode'],
  19483. tags: map['Tags'],
  19484. createType: RecordCreateTypeEnum.values.firstWhere((e) => e.index == map['CreateType']),
  19485. patientDataInfo: map['PatientDataInfo'] != null ? (map['PatientDataInfo'] as List).map((e)=>DataItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  19486. patientInfoExtList: map['PatientInfoExtList'] != null ? (map['PatientInfoExtList'] as List).map((e)=>PatientInfoExt.fromJson(e as Map<String,dynamic>)).toList() : null,
  19487. patientType: map['PatientType'],
  19488. readUsers: map['ReadUsers']?.cast<String>().toList(),
  19489. associatedExamCodes: map['AssociatedExamCodes']?.cast<String>().toList(),
  19490. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  19491. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  19492. );
  19493. }
  19494. Map<String, dynamic> toJson() {
  19495. final map = super.toJson();
  19496. if(code != null)
  19497. map['Code'] = code;
  19498. if(examId != null)
  19499. map['ExamId'] = examId;
  19500. if(organizationInfo != null)
  19501. map['OrganizationInfo'] = organizationInfo;
  19502. if(deviceInfo != null)
  19503. map['DeviceInfo'] = deviceInfo;
  19504. if(patientInfo != null)
  19505. map['PatientInfo'] = patientInfo;
  19506. if(screenshotInfo != null)
  19507. map['ScreenshotInfo'] = screenshotInfo;
  19508. if(qualifiedInfo != null)
  19509. map['QualifiedInfo'] = qualifiedInfo;
  19510. if(diagnosisInfos != null)
  19511. map['DiagnosisInfos'] = diagnosisInfos;
  19512. if(shareUserCodes != null)
  19513. map['ShareUserCodes'] = shareUserCodes;
  19514. if(customDoctor != null)
  19515. map['CustomDoctor'] = customDoctor;
  19516. if(customOrganzation != null)
  19517. map['CustomOrganzation'] = customOrganzation;
  19518. if(equipmentSN != null)
  19519. map['EquipmentSN'] = equipmentSN;
  19520. if(fileInfos != null)
  19521. map['FileInfos'] = fileInfos;
  19522. if(completedUsers != null)
  19523. map['CompletedUsers'] = completedUsers;
  19524. map['RecordStatus'] = recordStatus.index;
  19525. if(creatorCode != null)
  19526. map['CreatorCode'] = creatorCode;
  19527. if(tags != null)
  19528. map['Tags'] = tags;
  19529. map['CreateType'] = createType.index;
  19530. if(patientDataInfo != null)
  19531. map['PatientDataInfo'] = patientDataInfo;
  19532. if(patientInfoExtList != null)
  19533. map['PatientInfoExtList'] = patientInfoExtList;
  19534. if(patientType != null)
  19535. map['PatientType'] = patientType;
  19536. if(readUsers != null)
  19537. map['ReadUsers'] = readUsers;
  19538. if(associatedExamCodes != null)
  19539. map['AssociatedExamCodes'] = associatedExamCodes;
  19540. return map;
  19541. }
  19542. }
  19543. class ReportImageInfo2 {
  19544. String? name;
  19545. ImageTypeEnum type;
  19546. String? examDataId;
  19547. ReportImageInfo2({
  19548. this.name,
  19549. this.type = ImageTypeEnum.Local,
  19550. this.examDataId,
  19551. });
  19552. factory ReportImageInfo2.fromJson(Map<String, dynamic> map) {
  19553. return ReportImageInfo2(
  19554. name: map['Name'],
  19555. type: ImageTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  19556. examDataId: map['ExamDataId'],
  19557. );
  19558. }
  19559. Map<String, dynamic> toJson() {
  19560. final map = Map<String, dynamic>();
  19561. if(name != null) {
  19562. map['Name'] = name;
  19563. }
  19564. map['Type'] = type.index;
  19565. if(examDataId != null) {
  19566. map['ExamDataId'] = examDataId;
  19567. }
  19568. return map;
  19569. }
  19570. }
  19571. class CustomLabelView {
  19572. String? name;
  19573. String? code;
  19574. String? description;
  19575. String? fatherCode;
  19576. CustomLabelTypeEnum labelType;
  19577. bool isShow;
  19578. List<String>? userIds;
  19579. CustomLabelView({
  19580. this.name,
  19581. this.code,
  19582. this.description,
  19583. this.fatherCode,
  19584. this.labelType = CustomLabelTypeEnum.Group,
  19585. this.isShow = false,
  19586. this.userIds,
  19587. });
  19588. factory CustomLabelView.fromJson(Map<String, dynamic> map) {
  19589. return CustomLabelView(
  19590. name: map['Name'],
  19591. code: map['Code'],
  19592. description: map['Description'],
  19593. fatherCode: map['FatherCode'],
  19594. labelType: CustomLabelTypeEnum.values.firstWhere((e) => e.index == map['LabelType']),
  19595. isShow: map['IsShow'],
  19596. userIds: map['UserIds']?.cast<String>().toList(),
  19597. );
  19598. }
  19599. Map<String, dynamic> toJson() {
  19600. final map = Map<String, dynamic>();
  19601. if(name != null) {
  19602. map['Name'] = name;
  19603. }
  19604. if(code != null) {
  19605. map['Code'] = code;
  19606. }
  19607. if(description != null) {
  19608. map['Description'] = description;
  19609. }
  19610. if(fatherCode != null) {
  19611. map['FatherCode'] = fatherCode;
  19612. }
  19613. map['LabelType'] = labelType.index;
  19614. map['IsShow'] = isShow;
  19615. if(userIds != null) {
  19616. map['UserIds'] = userIds;
  19617. }
  19618. return map;
  19619. }
  19620. }
  19621. class QualityControlScoreItemView {
  19622. int sort;
  19623. double score;
  19624. QualityControlScoreItemView({
  19625. this.sort = 0,
  19626. this.score = 0,
  19627. });
  19628. factory QualityControlScoreItemView.fromJson(Map<String, dynamic> map) {
  19629. return QualityControlScoreItemView(
  19630. sort: map['Sort'],
  19631. score: double.parse(map['Score'].toString()),
  19632. );
  19633. }
  19634. Map<String, dynamic> toJson() {
  19635. final map = Map<String, dynamic>();
  19636. map['Sort'] = sort;
  19637. map['Score'] = score;
  19638. return map;
  19639. }
  19640. }
  19641. class QualityControlDataView {
  19642. String? controlPersonId;
  19643. String? controlPersonName;
  19644. String? opinion;
  19645. double score;
  19646. List<QualityControlScoreItemView>? scoreItems;
  19647. DateTime? controlTime;
  19648. QualityControlDataView({
  19649. this.controlPersonId,
  19650. this.controlPersonName,
  19651. this.opinion,
  19652. this.score = 0,
  19653. this.scoreItems,
  19654. this.controlTime,
  19655. });
  19656. factory QualityControlDataView.fromJson(Map<String, dynamic> map) {
  19657. return QualityControlDataView(
  19658. controlPersonId: map['ControlPersonId'],
  19659. controlPersonName: map['ControlPersonName'],
  19660. opinion: map['Opinion'],
  19661. score: double.parse(map['Score'].toString()),
  19662. scoreItems: map['ScoreItems'] != null ? (map['ScoreItems'] as List).map((e)=>QualityControlScoreItemView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19663. controlTime: map['ControlTime'] != null ? DateTime.parse(map['ControlTime']) : null,
  19664. );
  19665. }
  19666. Map<String, dynamic> toJson() {
  19667. final map = Map<String, dynamic>();
  19668. if(controlPersonId != null) {
  19669. map['ControlPersonId'] = controlPersonId;
  19670. }
  19671. if(controlPersonName != null) {
  19672. map['ControlPersonName'] = controlPersonName;
  19673. }
  19674. if(opinion != null) {
  19675. map['Opinion'] = opinion;
  19676. }
  19677. map['Score'] = score;
  19678. if(scoreItems != null) {
  19679. map['ScoreItems'] = scoreItems;
  19680. }
  19681. if(controlTime != null) {
  19682. map['ControlTime'] = JsonRpcUtils.dateFormat(controlTime!);
  19683. }
  19684. return map;
  19685. }
  19686. }
  19687. class ReportInfoResultDTO extends BaseDTO{
  19688. String? code;
  19689. String? organizationCode;
  19690. String? organizationName;
  19691. String? recordCode;
  19692. String? reportUserCode;
  19693. String? reportUserName;
  19694. DeviceView? deviceInfo;
  19695. String? patientCode;
  19696. String? patientId;
  19697. String? reportTemplateJson;
  19698. String? reportDatasJson;
  19699. String? patientName;
  19700. List<String>? reportLabels;
  19701. List<String>? platformLabels;
  19702. List<String>? diagnosisLabels;
  19703. DiagnosisOrganEnum reportOrgan;
  19704. List<ReportPreviewDTO>? reportPreviewList;
  19705. String? referralRecordCode;
  19706. ReportTypeEnum reportType;
  19707. String? elementCollectionJson;
  19708. String? measureElementCollectionJson;
  19709. String? patientPerfPhysician;
  19710. String? patientRefPhysician;
  19711. ICollection<ReportImageInfo2>? previewImages;
  19712. ICollection<CustomLabelView>? customLabels;
  19713. QualifiedState qualifiedState;
  19714. QualityType qualityType;
  19715. String? reportPreviewPdf;
  19716. ICollection<QualityControlDataView>? qualityControlDatas;
  19717. ReportInfoResultDTO({
  19718. this.code,
  19719. this.organizationCode,
  19720. this.organizationName,
  19721. this.recordCode,
  19722. this.reportUserCode,
  19723. this.reportUserName,
  19724. this.deviceInfo,
  19725. this.patientCode,
  19726. this.patientId,
  19727. this.reportTemplateJson,
  19728. this.reportDatasJson,
  19729. this.patientName,
  19730. this.reportLabels,
  19731. this.platformLabels,
  19732. this.diagnosisLabels,
  19733. this.reportOrgan = DiagnosisOrganEnum.Null,
  19734. this.reportPreviewList,
  19735. this.referralRecordCode,
  19736. this.reportType = ReportTypeEnum.RemoteDiagnosis,
  19737. this.elementCollectionJson,
  19738. this.measureElementCollectionJson,
  19739. this.patientPerfPhysician,
  19740. this.patientRefPhysician,
  19741. this.previewImages,
  19742. this.customLabels,
  19743. this.qualifiedState = QualifiedState.UnSet,
  19744. this.qualityType = QualityType.None,
  19745. this.reportPreviewPdf,
  19746. this.qualityControlDatas,
  19747. DateTime? createTime,
  19748. DateTime? updateTime,
  19749. }) : super(
  19750. createTime: createTime,
  19751. updateTime: updateTime,
  19752. );
  19753. factory ReportInfoResultDTO.fromJson(Map<String, dynamic> map) {
  19754. return ReportInfoResultDTO(
  19755. code: map['Code'],
  19756. organizationCode: map['OrganizationCode'],
  19757. organizationName: map['OrganizationName'],
  19758. recordCode: map['RecordCode'],
  19759. reportUserCode: map['ReportUserCode'],
  19760. reportUserName: map['ReportUserName'],
  19761. deviceInfo: map['DeviceInfo'] != null ? DeviceView.fromJson(map['DeviceInfo']) : null,
  19762. patientCode: map['PatientCode'],
  19763. patientId: map['PatientId'],
  19764. reportTemplateJson: map['ReportTemplateJson'],
  19765. reportDatasJson: map['ReportDatasJson'],
  19766. patientName: map['PatientName'],
  19767. reportLabels: map['ReportLabels']?.cast<String>().toList(),
  19768. platformLabels: map['PlatformLabels']?.cast<String>().toList(),
  19769. diagnosisLabels: map['DiagnosisLabels']?.cast<String>().toList(),
  19770. reportOrgan: DiagnosisOrganEnum.values.firstWhere((e) => e.index == map['ReportOrgan']),
  19771. reportPreviewList: map['ReportPreviewList'] != null ? (map['ReportPreviewList'] as List).map((e)=>ReportPreviewDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  19772. referralRecordCode: map['ReferralRecordCode'],
  19773. reportType: ReportTypeEnum.values.firstWhere((e) => e.index == map['ReportType']),
  19774. elementCollectionJson: map['ElementCollectionJson'],
  19775. measureElementCollectionJson: map['MeasureElementCollectionJson'],
  19776. patientPerfPhysician: map['PatientPerfPhysician'],
  19777. patientRefPhysician: map['PatientRefPhysician'],
  19778. qualifiedState: QualifiedState.values.firstWhere((e) => e.index == map['QualifiedState']),
  19779. qualityType: QualityType.values.firstWhere((e) => e.index == map['QualityType']),
  19780. reportPreviewPdf: map['ReportPreviewPdf'],
  19781. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  19782. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  19783. );
  19784. }
  19785. Map<String, dynamic> toJson() {
  19786. final map = super.toJson();
  19787. if(code != null)
  19788. map['Code'] = code;
  19789. if(organizationCode != null)
  19790. map['OrganizationCode'] = organizationCode;
  19791. if(organizationName != null)
  19792. map['OrganizationName'] = organizationName;
  19793. if(recordCode != null)
  19794. map['RecordCode'] = recordCode;
  19795. if(reportUserCode != null)
  19796. map['ReportUserCode'] = reportUserCode;
  19797. if(reportUserName != null)
  19798. map['ReportUserName'] = reportUserName;
  19799. if(deviceInfo != null)
  19800. map['DeviceInfo'] = deviceInfo;
  19801. if(patientCode != null)
  19802. map['PatientCode'] = patientCode;
  19803. if(patientId != null)
  19804. map['PatientId'] = patientId;
  19805. if(reportTemplateJson != null)
  19806. map['ReportTemplateJson'] = reportTemplateJson;
  19807. if(reportDatasJson != null)
  19808. map['ReportDatasJson'] = reportDatasJson;
  19809. if(patientName != null)
  19810. map['PatientName'] = patientName;
  19811. if(reportLabels != null)
  19812. map['ReportLabels'] = reportLabels;
  19813. if(platformLabels != null)
  19814. map['PlatformLabels'] = platformLabels;
  19815. if(diagnosisLabels != null)
  19816. map['DiagnosisLabels'] = diagnosisLabels;
  19817. map['ReportOrgan'] = reportOrgan.index;
  19818. if(reportPreviewList != null)
  19819. map['ReportPreviewList'] = reportPreviewList;
  19820. if(referralRecordCode != null)
  19821. map['ReferralRecordCode'] = referralRecordCode;
  19822. map['ReportType'] = reportType.index;
  19823. if(elementCollectionJson != null)
  19824. map['ElementCollectionJson'] = elementCollectionJson;
  19825. if(measureElementCollectionJson != null)
  19826. map['MeasureElementCollectionJson'] = measureElementCollectionJson;
  19827. if(patientPerfPhysician != null)
  19828. map['PatientPerfPhysician'] = patientPerfPhysician;
  19829. if(patientRefPhysician != null)
  19830. map['PatientRefPhysician'] = patientRefPhysician;
  19831. if(previewImages != null)
  19832. map['PreviewImages'] = previewImages;
  19833. if(customLabels != null)
  19834. map['CustomLabels'] = customLabels;
  19835. map['QualifiedState'] = qualifiedState.index;
  19836. map['QualityType'] = qualityType.index;
  19837. if(reportPreviewPdf != null)
  19838. map['ReportPreviewPdf'] = reportPreviewPdf;
  19839. if(qualityControlDatas != null)
  19840. map['QualityControlDatas'] = qualityControlDatas;
  19841. return map;
  19842. }
  19843. }
  19844. class TeacherView extends UserView{
  19845. String? introduction;
  19846. List<int>? smallAvatar;
  19847. TeacherView({
  19848. this.introduction,
  19849. this.smallAvatar,
  19850. String? code,
  19851. String? name,
  19852. String? organizationCode,
  19853. String? organizationName,
  19854. }) : super(
  19855. code: code,
  19856. name: name,
  19857. organizationCode: organizationCode,
  19858. organizationName: organizationName,
  19859. );
  19860. factory TeacherView.fromJson(Map<String, dynamic> map) {
  19861. final smallAvatarData = map['SmallAvatar'];
  19862. return TeacherView(
  19863. introduction: map['Introduction'],
  19864. smallAvatar: smallAvatarData != null ? (smallAvatarData as List).map((e) => e as int).toList(): null,
  19865. code: map['Code'],
  19866. name: map['Name'],
  19867. organizationCode: map['OrganizationCode'],
  19868. organizationName: map['OrganizationName'],
  19869. );
  19870. }
  19871. Map<String, dynamic> toJson() {
  19872. final map = super.toJson();
  19873. if(introduction != null)
  19874. map['Introduction'] = introduction;
  19875. if(smallAvatar != null)
  19876. map['SmallAvatar'] = smallAvatar;
  19877. return map;
  19878. }
  19879. }
  19880. class AudienceView extends UserView{
  19881. int totalMinutes;
  19882. List<GroupView>? groupInfos;
  19883. AudienceView({
  19884. this.totalMinutes = 0,
  19885. this.groupInfos,
  19886. String? code,
  19887. String? name,
  19888. String? organizationCode,
  19889. String? organizationName,
  19890. }) : super(
  19891. code: code,
  19892. name: name,
  19893. organizationCode: organizationCode,
  19894. organizationName: organizationName,
  19895. );
  19896. factory AudienceView.fromJson(Map<String, dynamic> map) {
  19897. return AudienceView(
  19898. totalMinutes: map['TotalMinutes'],
  19899. groupInfos: map['GroupInfos'] != null ? (map['GroupInfos'] as List).map((e)=>GroupView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19900. code: map['Code'],
  19901. name: map['Name'],
  19902. organizationCode: map['OrganizationCode'],
  19903. organizationName: map['OrganizationName'],
  19904. );
  19905. }
  19906. Map<String, dynamic> toJson() {
  19907. final map = super.toJson();
  19908. map['TotalMinutes'] = totalMinutes;
  19909. if(groupInfos != null)
  19910. map['GroupInfos'] = groupInfos;
  19911. return map;
  19912. }
  19913. }
  19914. class CourseAlbumDetailDTO extends CourseAlbumDTO{
  19915. List<CourseInfoDetailDTO>? courseInfos;
  19916. int studentCount;
  19917. CourseAlbumDetailDTO({
  19918. this.courseInfos,
  19919. this.studentCount = 0,
  19920. String? cover,
  19921. List<String>? courseCodes,
  19922. String? introduction,
  19923. List<String>? courseLabelCodes,
  19924. String? teacherCode,
  19925. String? teacherName,
  19926. CourseViewRangeEnum viewRange = CourseViewRangeEnum.All,
  19927. double price = 0,
  19928. DateTime? createTime,
  19929. int sort = 0,
  19930. bool isStick = false,
  19931. String? code,
  19932. String? name,
  19933. }) : super(
  19934. cover: cover,
  19935. courseCodes: courseCodes,
  19936. introduction: introduction,
  19937. courseLabelCodes: courseLabelCodes,
  19938. teacherCode: teacherCode,
  19939. teacherName: teacherName,
  19940. viewRange: viewRange,
  19941. price: price,
  19942. createTime: createTime,
  19943. sort: sort,
  19944. isStick: isStick,
  19945. code: code,
  19946. name: name,
  19947. );
  19948. factory CourseAlbumDetailDTO.fromJson(Map<String, dynamic> map) {
  19949. return CourseAlbumDetailDTO(
  19950. courseInfos: map['CourseInfos'] != null ? (map['CourseInfos'] as List).map((e)=>CourseInfoDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  19951. studentCount: map['StudentCount'],
  19952. cover: map['Cover'],
  19953. courseCodes: map['CourseCodes']?.cast<String>().toList(),
  19954. introduction: map['Introduction'],
  19955. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  19956. teacherCode: map['TeacherCode'],
  19957. teacherName: map['TeacherName'],
  19958. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  19959. price: double.parse(map['Price'].toString()),
  19960. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  19961. sort: map['Sort'],
  19962. isStick: map['IsStick'],
  19963. code: map['Code'],
  19964. name: map['Name'],
  19965. );
  19966. }
  19967. Map<String, dynamic> toJson() {
  19968. final map = super.toJson();
  19969. if(courseInfos != null)
  19970. map['CourseInfos'] = courseInfos;
  19971. map['StudentCount'] = studentCount;
  19972. return map;
  19973. }
  19974. }
  19975. class BaseCoursePageDTO {
  19976. String? code;
  19977. String? name;
  19978. String? cover;
  19979. DateTime? startTime;
  19980. DateTime? createTime;
  19981. int playCount;
  19982. CourseStatusEnum status;
  19983. String? teacherName;
  19984. CourseTypeEnum courseType;
  19985. CourseAudienceTypeEnum audienceType;
  19986. int duration;
  19987. double price;
  19988. List<BaseUserGroupDTO>? userGroupList;
  19989. List<BaseCourseAlbumDTO>? courseAlbumList;
  19990. BaseCoursePageDTO({
  19991. this.code,
  19992. this.name,
  19993. this.cover,
  19994. this.startTime,
  19995. this.createTime,
  19996. this.playCount = 0,
  19997. this.status = CourseStatusEnum.Unknown,
  19998. this.teacherName,
  19999. this.courseType = CourseTypeEnum.Unknown,
  20000. this.audienceType = CourseAudienceTypeEnum.Unknown,
  20001. this.duration = 0,
  20002. this.price = 0,
  20003. this.userGroupList,
  20004. this.courseAlbumList,
  20005. });
  20006. factory BaseCoursePageDTO.fromJson(Map<String, dynamic> map) {
  20007. return BaseCoursePageDTO(
  20008. code: map['Code'],
  20009. name: map['Name'],
  20010. cover: map['Cover'],
  20011. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  20012. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  20013. playCount: map['PlayCount'],
  20014. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  20015. teacherName: map['TeacherName'],
  20016. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  20017. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  20018. duration: map['Duration'],
  20019. price: double.parse(map['Price'].toString()),
  20020. userGroupList: map['UserGroupList'] != null ? (map['UserGroupList'] as List).map((e)=>BaseUserGroupDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  20021. courseAlbumList: map['CourseAlbumList'] != null ? (map['CourseAlbumList'] as List).map((e)=>BaseCourseAlbumDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  20022. );
  20023. }
  20024. Map<String, dynamic> toJson() {
  20025. final map = Map<String, dynamic>();
  20026. if(code != null) {
  20027. map['Code'] = code;
  20028. }
  20029. if(name != null) {
  20030. map['Name'] = name;
  20031. }
  20032. if(cover != null) {
  20033. map['Cover'] = cover;
  20034. }
  20035. if(startTime != null) {
  20036. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  20037. }
  20038. if(createTime != null) {
  20039. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  20040. }
  20041. map['PlayCount'] = playCount;
  20042. map['Status'] = status.index;
  20043. if(teacherName != null) {
  20044. map['TeacherName'] = teacherName;
  20045. }
  20046. map['CourseType'] = courseType.index;
  20047. map['AudienceType'] = audienceType.index;
  20048. map['Duration'] = duration;
  20049. map['Price'] = price;
  20050. if(userGroupList != null) {
  20051. map['UserGroupList'] = userGroupList;
  20052. }
  20053. if(courseAlbumList != null) {
  20054. map['CourseAlbumList'] = courseAlbumList;
  20055. }
  20056. return map;
  20057. }
  20058. }
  20059. class CoursePageDTO extends BaseCoursePageDTO{
  20060. CoursePageDTO({
  20061. String? code,
  20062. String? name,
  20063. String? cover,
  20064. DateTime? startTime,
  20065. DateTime? createTime,
  20066. int playCount = 0,
  20067. CourseStatusEnum status = CourseStatusEnum.Unknown,
  20068. String? teacherName,
  20069. CourseTypeEnum courseType = CourseTypeEnum.Unknown,
  20070. CourseAudienceTypeEnum audienceType = CourseAudienceTypeEnum.Unknown,
  20071. int duration = 0,
  20072. double price = 0,
  20073. List<BaseUserGroupDTO>? userGroupList,
  20074. List<BaseCourseAlbumDTO>? courseAlbumList,
  20075. }) : super(
  20076. code: code,
  20077. name: name,
  20078. cover: cover,
  20079. startTime: startTime,
  20080. createTime: createTime,
  20081. playCount: playCount,
  20082. status: status,
  20083. teacherName: teacherName,
  20084. courseType: courseType,
  20085. audienceType: audienceType,
  20086. duration: duration,
  20087. price: price,
  20088. userGroupList: userGroupList,
  20089. courseAlbumList: courseAlbumList,
  20090. );
  20091. factory CoursePageDTO.fromJson(Map<String, dynamic> map) {
  20092. return CoursePageDTO(
  20093. code: map['Code'],
  20094. name: map['Name'],
  20095. cover: map['Cover'],
  20096. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  20097. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  20098. playCount: map['PlayCount'],
  20099. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  20100. teacherName: map['TeacherName'],
  20101. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  20102. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  20103. duration: map['Duration'],
  20104. price: double.parse(map['Price'].toString()),
  20105. userGroupList: map['UserGroupList'] != null ? (map['UserGroupList'] as List).map((e)=>BaseUserGroupDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  20106. courseAlbumList: map['CourseAlbumList'] != null ? (map['CourseAlbumList'] as List).map((e)=>BaseCourseAlbumDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  20107. );
  20108. }
  20109. Map<String, dynamic> toJson() {
  20110. final map = super.toJson();
  20111. return map;
  20112. }
  20113. }
  20114. class MyCoursePageDTO {
  20115. String? code;
  20116. String? courseOrAlbumCode;
  20117. CourseAppearTypeEnum courseAppearType;
  20118. CourseTypeEnum courseType;
  20119. String? name;
  20120. String? teacherName;
  20121. List<String>? courseLabelNames;
  20122. bool isPay;
  20123. DateTime? createTime;
  20124. CourseStatusEnum status;
  20125. CourseViewRangeEnum viewRange;
  20126. DateTime? startTime;
  20127. int playCount;
  20128. MyCoursePageDTO({
  20129. this.code,
  20130. this.courseOrAlbumCode,
  20131. this.courseAppearType = CourseAppearTypeEnum.Unknown,
  20132. this.courseType = CourseTypeEnum.Unknown,
  20133. this.name,
  20134. this.teacherName,
  20135. this.courseLabelNames,
  20136. this.isPay = false,
  20137. this.createTime,
  20138. this.status = CourseStatusEnum.Unknown,
  20139. this.viewRange = CourseViewRangeEnum.All,
  20140. this.startTime,
  20141. this.playCount = 0,
  20142. });
  20143. factory MyCoursePageDTO.fromJson(Map<String, dynamic> map) {
  20144. return MyCoursePageDTO(
  20145. code: map['Code'],
  20146. courseOrAlbumCode: map['CourseOrAlbumCode'],
  20147. courseAppearType: CourseAppearTypeEnum.values.firstWhere((e) => e.index == map['CourseAppearType']),
  20148. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  20149. name: map['Name'],
  20150. teacherName: map['TeacherName'],
  20151. courseLabelNames: map['CourseLabelNames']?.cast<String>().toList(),
  20152. isPay: map['IsPay'],
  20153. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  20154. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  20155. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  20156. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  20157. playCount: map['PlayCount'],
  20158. );
  20159. }
  20160. Map<String, dynamic> toJson() {
  20161. final map = Map<String, dynamic>();
  20162. if(code != null) {
  20163. map['Code'] = code;
  20164. }
  20165. if(courseOrAlbumCode != null) {
  20166. map['CourseOrAlbumCode'] = courseOrAlbumCode;
  20167. }
  20168. map['CourseAppearType'] = courseAppearType.index;
  20169. map['CourseType'] = courseType.index;
  20170. if(name != null) {
  20171. map['Name'] = name;
  20172. }
  20173. if(teacherName != null) {
  20174. map['TeacherName'] = teacherName;
  20175. }
  20176. if(courseLabelNames != null) {
  20177. map['CourseLabelNames'] = courseLabelNames;
  20178. }
  20179. map['IsPay'] = isPay;
  20180. if(createTime != null) {
  20181. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  20182. }
  20183. map['Status'] = status.index;
  20184. map['ViewRange'] = viewRange.index;
  20185. if(startTime != null) {
  20186. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  20187. }
  20188. map['PlayCount'] = playCount;
  20189. return map;
  20190. }
  20191. }
  20192. class StudentInCoursePageDTO extends BaseCoursePageDTO{
  20193. StudentCourseStatusEnum signCourseStatus;
  20194. bool isPay;
  20195. StudentInCoursePageDTO({
  20196. this.signCourseStatus = StudentCourseStatusEnum.All,
  20197. this.isPay = false,
  20198. String? code,
  20199. String? name,
  20200. String? cover,
  20201. DateTime? startTime,
  20202. DateTime? createTime,
  20203. int playCount = 0,
  20204. CourseStatusEnum status = CourseStatusEnum.Unknown,
  20205. String? teacherName,
  20206. CourseTypeEnum courseType = CourseTypeEnum.Unknown,
  20207. CourseAudienceTypeEnum audienceType = CourseAudienceTypeEnum.Unknown,
  20208. int duration = 0,
  20209. double price = 0,
  20210. List<BaseUserGroupDTO>? userGroupList,
  20211. List<BaseCourseAlbumDTO>? courseAlbumList,
  20212. }) : super(
  20213. code: code,
  20214. name: name,
  20215. cover: cover,
  20216. startTime: startTime,
  20217. createTime: createTime,
  20218. playCount: playCount,
  20219. status: status,
  20220. teacherName: teacherName,
  20221. courseType: courseType,
  20222. audienceType: audienceType,
  20223. duration: duration,
  20224. price: price,
  20225. userGroupList: userGroupList,
  20226. courseAlbumList: courseAlbumList,
  20227. );
  20228. factory StudentInCoursePageDTO.fromJson(Map<String, dynamic> map) {
  20229. return StudentInCoursePageDTO(
  20230. signCourseStatus: StudentCourseStatusEnum.values.firstWhere((e) => e.index == map['SignCourseStatus']),
  20231. isPay: map['IsPay'],
  20232. code: map['Code'],
  20233. name: map['Name'],
  20234. cover: map['Cover'],
  20235. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  20236. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  20237. playCount: map['PlayCount'],
  20238. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  20239. teacherName: map['TeacherName'],
  20240. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  20241. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  20242. duration: map['Duration'],
  20243. price: double.parse(map['Price'].toString()),
  20244. userGroupList: map['UserGroupList'] != null ? (map['UserGroupList'] as List).map((e)=>BaseUserGroupDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  20245. courseAlbumList: map['CourseAlbumList'] != null ? (map['CourseAlbumList'] as List).map((e)=>BaseCourseAlbumDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  20246. );
  20247. }
  20248. Map<String, dynamic> toJson() {
  20249. final map = super.toJson();
  20250. map['SignCourseStatus'] = signCourseStatus.index;
  20251. map['IsPay'] = isPay;
  20252. return map;
  20253. }
  20254. }
  20255. class SignStudentDTO {
  20256. String? studentCode;
  20257. String? courseOrAlbumCode;
  20258. CourseAppearTypeEnum courseAppearType;
  20259. bool isPay;
  20260. StudentCourseStatusEnum signCourseStatus;
  20261. SignStudentDTO({
  20262. this.studentCode,
  20263. this.courseOrAlbumCode,
  20264. this.courseAppearType = CourseAppearTypeEnum.Unknown,
  20265. this.isPay = false,
  20266. this.signCourseStatus = StudentCourseStatusEnum.All,
  20267. });
  20268. factory SignStudentDTO.fromJson(Map<String, dynamic> map) {
  20269. return SignStudentDTO(
  20270. studentCode: map['StudentCode'],
  20271. courseOrAlbumCode: map['CourseOrAlbumCode'],
  20272. courseAppearType: CourseAppearTypeEnum.values.firstWhere((e) => e.index == map['CourseAppearType']),
  20273. isPay: map['IsPay'],
  20274. signCourseStatus: StudentCourseStatusEnum.values.firstWhere((e) => e.index == map['SignCourseStatus']),
  20275. );
  20276. }
  20277. Map<String, dynamic> toJson() {
  20278. final map = Map<String, dynamic>();
  20279. if(studentCode != null) {
  20280. map['StudentCode'] = studentCode;
  20281. }
  20282. if(courseOrAlbumCode != null) {
  20283. map['CourseOrAlbumCode'] = courseOrAlbumCode;
  20284. }
  20285. map['CourseAppearType'] = courseAppearType.index;
  20286. map['IsPay'] = isPay;
  20287. map['SignCourseStatus'] = signCourseStatus.index;
  20288. return map;
  20289. }
  20290. }
  20291. class BoardPointDTO {
  20292. double x;
  20293. double y;
  20294. BoardPointDTO({
  20295. this.x = 0,
  20296. this.y = 0,
  20297. });
  20298. factory BoardPointDTO.fromJson(Map<String, dynamic> map) {
  20299. return BoardPointDTO(
  20300. x: double.parse(map['X'].toString()),
  20301. y: double.parse(map['Y'].toString()),
  20302. );
  20303. }
  20304. Map<String, dynamic> toJson() {
  20305. final map = Map<String, dynamic>();
  20306. map['X'] = x;
  20307. map['Y'] = y;
  20308. return map;
  20309. }
  20310. }
  20311. class ConsultationExpertDTO extends UserBaseDTO{
  20312. ConsultationExpertDTO({
  20313. String? phone,
  20314. String? email,
  20315. String? userCode,
  20316. String? userName,
  20317. String? fullName,
  20318. String? headImageUrl,
  20319. String? displayName,
  20320. DateTime? createTime,
  20321. DateTime? updateTime,
  20322. }) : super(
  20323. phone: phone,
  20324. email: email,
  20325. userCode: userCode,
  20326. userName: userName,
  20327. fullName: fullName,
  20328. headImageUrl: headImageUrl,
  20329. displayName: displayName,
  20330. createTime: createTime,
  20331. updateTime: updateTime,
  20332. );
  20333. factory ConsultationExpertDTO.fromJson(Map<String, dynamic> map) {
  20334. return ConsultationExpertDTO(
  20335. phone: map['Phone'],
  20336. email: map['Email'],
  20337. userCode: map['UserCode'],
  20338. userName: map['UserName'],
  20339. fullName: map['FullName'],
  20340. headImageUrl: map['HeadImageUrl'],
  20341. displayName: map['DisplayName'],
  20342. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  20343. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  20344. );
  20345. }
  20346. Map<String, dynamic> toJson() {
  20347. final map = super.toJson();
  20348. return map;
  20349. }
  20350. }
  20351. class AdminStatisticRecordDTO extends BaseDTO{
  20352. String? adminStatisticRecordCode;
  20353. String? adminStatisticCode;
  20354. String? adminStatisticName;
  20355. String? adminCode;
  20356. String? serverHost;
  20357. DateTime? lastestUpdateTime;
  20358. DateTime? nextHandleTime;
  20359. List<String>? xAxisDatas;
  20360. List<List<double>>? yAxisDatas;
  20361. List<StatisticInfoDTO>? children;
  20362. String? statisticJsonData;
  20363. StatisticsPlatformEnum statisticsPlatform;
  20364. AdminStatisticRecordDTO({
  20365. this.adminStatisticRecordCode,
  20366. this.adminStatisticCode,
  20367. this.adminStatisticName,
  20368. this.adminCode,
  20369. this.serverHost,
  20370. this.lastestUpdateTime,
  20371. this.nextHandleTime,
  20372. this.xAxisDatas,
  20373. this.yAxisDatas,
  20374. this.children,
  20375. this.statisticJsonData,
  20376. this.statisticsPlatform = StatisticsPlatformEnum.Management,
  20377. DateTime? createTime,
  20378. DateTime? updateTime,
  20379. }) : super(
  20380. createTime: createTime,
  20381. updateTime: updateTime,
  20382. );
  20383. factory AdminStatisticRecordDTO.fromJson(Map<String, dynamic> map) {
  20384. return AdminStatisticRecordDTO(
  20385. adminStatisticRecordCode: map['AdminStatisticRecordCode'],
  20386. adminStatisticCode: map['AdminStatisticCode'],
  20387. adminStatisticName: map['AdminStatisticName'],
  20388. adminCode: map['AdminCode'],
  20389. serverHost: map['ServerHost'],
  20390. lastestUpdateTime: map['LastestUpdateTime'] != null ? DateTime.parse(map['LastestUpdateTime']) : null,
  20391. nextHandleTime: map['NextHandleTime'] != null ? DateTime.parse(map['NextHandleTime']) : null,
  20392. xAxisDatas: map['XAxisDatas']?.cast<String>().toList(),
  20393. yAxisDatas: map['YAxisDatas']?.cast<List<double>>().toList(),
  20394. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  20395. statisticJsonData: map['StatisticJsonData'],
  20396. statisticsPlatform: StatisticsPlatformEnum.values.firstWhere((e) => e.index == map['StatisticsPlatform']),
  20397. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  20398. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  20399. );
  20400. }
  20401. Map<String, dynamic> toJson() {
  20402. final map = super.toJson();
  20403. if(adminStatisticRecordCode != null)
  20404. map['AdminStatisticRecordCode'] = adminStatisticRecordCode;
  20405. if(adminStatisticCode != null)
  20406. map['AdminStatisticCode'] = adminStatisticCode;
  20407. if(adminStatisticName != null)
  20408. map['AdminStatisticName'] = adminStatisticName;
  20409. if(adminCode != null)
  20410. map['AdminCode'] = adminCode;
  20411. if(serverHost != null)
  20412. map['ServerHost'] = serverHost;
  20413. if(lastestUpdateTime != null)
  20414. map['LastestUpdateTime'] = JsonRpcUtils.dateFormat(lastestUpdateTime!);
  20415. if(nextHandleTime != null)
  20416. map['NextHandleTime'] = JsonRpcUtils.dateFormat(nextHandleTime!);
  20417. if(xAxisDatas != null)
  20418. map['XAxisDatas'] = xAxisDatas;
  20419. if(yAxisDatas != null)
  20420. map['YAxisDatas'] = yAxisDatas;
  20421. if(children != null)
  20422. map['Children'] = children;
  20423. if(statisticJsonData != null)
  20424. map['StatisticJsonData'] = statisticJsonData;
  20425. map['StatisticsPlatform'] = statisticsPlatform.index;
  20426. return map;
  20427. }
  20428. }
  20429. class CMSStatisticRecordDTO extends AdminStatisticRecordDTO{
  20430. CMSStatisticRecordDTO({
  20431. String? statisticJsonData,
  20432. String? adminStatisticRecordCode,
  20433. String? adminStatisticCode,
  20434. String? adminStatisticName,
  20435. String? adminCode,
  20436. String? serverHost,
  20437. DateTime? lastestUpdateTime,
  20438. DateTime? nextHandleTime,
  20439. List<String>? xAxisDatas,
  20440. List<List<double>>? yAxisDatas,
  20441. List<StatisticInfoDTO>? children,
  20442. StatisticsPlatformEnum statisticsPlatform = StatisticsPlatformEnum.Management,
  20443. DateTime? createTime,
  20444. DateTime? updateTime,
  20445. }) : super(
  20446. adminStatisticRecordCode: adminStatisticRecordCode,
  20447. adminStatisticCode: adminStatisticCode,
  20448. adminStatisticName: adminStatisticName,
  20449. adminCode: adminCode,
  20450. serverHost: serverHost,
  20451. lastestUpdateTime: lastestUpdateTime,
  20452. nextHandleTime: nextHandleTime,
  20453. xAxisDatas: xAxisDatas,
  20454. yAxisDatas: yAxisDatas,
  20455. children: children,
  20456. statisticJsonData: statisticJsonData,
  20457. statisticsPlatform: statisticsPlatform,
  20458. createTime: createTime,
  20459. updateTime: updateTime,
  20460. );
  20461. factory CMSStatisticRecordDTO.fromJson(Map<String, dynamic> map) {
  20462. return CMSStatisticRecordDTO(
  20463. statisticJsonData: map['StatisticJsonData'],
  20464. adminStatisticRecordCode: map['AdminStatisticRecordCode'],
  20465. adminStatisticCode: map['AdminStatisticCode'],
  20466. adminStatisticName: map['AdminStatisticName'],
  20467. adminCode: map['AdminCode'],
  20468. serverHost: map['ServerHost'],
  20469. lastestUpdateTime: map['LastestUpdateTime'] != null ? DateTime.parse(map['LastestUpdateTime']) : null,
  20470. nextHandleTime: map['NextHandleTime'] != null ? DateTime.parse(map['NextHandleTime']) : null,
  20471. xAxisDatas: map['XAxisDatas']?.cast<String>().toList(),
  20472. yAxisDatas: map['YAxisDatas']?.cast<List<double>>().toList(),
  20473. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  20474. statisticsPlatform: StatisticsPlatformEnum.values.firstWhere((e) => e.index == map['StatisticsPlatform']),
  20475. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  20476. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  20477. );
  20478. }
  20479. Map<String, dynamic> toJson() {
  20480. final map = super.toJson();
  20481. return map;
  20482. }
  20483. }
  20484. class CMSTemplateDTO extends BaseDTO{
  20485. String? cMSTemplateCode;
  20486. String? cMSTemplateName;
  20487. CMSTemplateStatusTypeEnum cMSTemplateStateType;
  20488. String? cMSTemplateJson;
  20489. bool isDefault;
  20490. List<String>? organizationCodes;
  20491. String? cMSBgColor;
  20492. String? cMSBgImg;
  20493. bool isShowTop;
  20494. String? cMSBorderColor;
  20495. int cMSBorderShadow;
  20496. CMSTemplateDTO({
  20497. this.cMSTemplateCode,
  20498. this.cMSTemplateName,
  20499. this.cMSTemplateStateType = CMSTemplateStatusTypeEnum.UnPublished,
  20500. this.cMSTemplateJson,
  20501. this.isDefault = false,
  20502. this.organizationCodes,
  20503. this.cMSBgColor,
  20504. this.cMSBgImg,
  20505. this.isShowTop = false,
  20506. this.cMSBorderColor,
  20507. this.cMSBorderShadow = 0,
  20508. DateTime? createTime,
  20509. DateTime? updateTime,
  20510. }) : super(
  20511. createTime: createTime,
  20512. updateTime: updateTime,
  20513. );
  20514. factory CMSTemplateDTO.fromJson(Map<String, dynamic> map) {
  20515. return CMSTemplateDTO(
  20516. cMSTemplateCode: map['CMSTemplateCode'],
  20517. cMSTemplateName: map['CMSTemplateName'],
  20518. cMSTemplateStateType: CMSTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['CMSTemplateStateType']),
  20519. cMSTemplateJson: map['CMSTemplateJson'],
  20520. isDefault: map['IsDefault'],
  20521. organizationCodes: map['OrganizationCodes']?.cast<String>().toList(),
  20522. cMSBgColor: map['CMSBgColor'],
  20523. cMSBgImg: map['CMSBgImg'],
  20524. isShowTop: map['IsShowTop'],
  20525. cMSBorderColor: map['CMSBorderColor'],
  20526. cMSBorderShadow: map['CMSBorderShadow'],
  20527. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  20528. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  20529. );
  20530. }
  20531. Map<String, dynamic> toJson() {
  20532. final map = super.toJson();
  20533. if(cMSTemplateCode != null)
  20534. map['CMSTemplateCode'] = cMSTemplateCode;
  20535. if(cMSTemplateName != null)
  20536. map['CMSTemplateName'] = cMSTemplateName;
  20537. map['CMSTemplateStateType'] = cMSTemplateStateType.index;
  20538. if(cMSTemplateJson != null)
  20539. map['CMSTemplateJson'] = cMSTemplateJson;
  20540. map['IsDefault'] = isDefault;
  20541. if(organizationCodes != null)
  20542. map['OrganizationCodes'] = organizationCodes;
  20543. if(cMSBgColor != null)
  20544. map['CMSBgColor'] = cMSBgColor;
  20545. if(cMSBgImg != null)
  20546. map['CMSBgImg'] = cMSBgImg;
  20547. map['IsShowTop'] = isShowTop;
  20548. if(cMSBorderColor != null)
  20549. map['CMSBorderColor'] = cMSBorderColor;
  20550. map['CMSBorderShadow'] = cMSBorderShadow;
  20551. return map;
  20552. }
  20553. }
  20554. class StatisticAnnouncesDTO {
  20555. AnnouncementTypeEnum announcementType;
  20556. DateTime? contentTime;
  20557. String? content;
  20558. CMSMessageStatusEnum status;
  20559. StatisticAnnouncesDTO({
  20560. this.announcementType = AnnouncementTypeEnum.Broadcast,
  20561. this.contentTime,
  20562. this.content,
  20563. this.status = CMSMessageStatusEnum.UnRead,
  20564. });
  20565. factory StatisticAnnouncesDTO.fromJson(Map<String, dynamic> map) {
  20566. return StatisticAnnouncesDTO(
  20567. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  20568. contentTime: map['ContentTime'] != null ? DateTime.parse(map['ContentTime']) : null,
  20569. content: map['Content'],
  20570. status: CMSMessageStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  20571. );
  20572. }
  20573. Map<String, dynamic> toJson() {
  20574. final map = Map<String, dynamic>();
  20575. map['AnnouncementType'] = announcementType.index;
  20576. if(contentTime != null) {
  20577. map['ContentTime'] = JsonRpcUtils.dateFormat(contentTime!);
  20578. }
  20579. if(content != null) {
  20580. map['Content'] = content;
  20581. }
  20582. map['Status'] = status.index;
  20583. return map;
  20584. }
  20585. }
  20586. class StatisticDevicesDTO {
  20587. String? imgUrl;
  20588. String? name;
  20589. String? transferUrl;
  20590. StatisticDevicesDTO({
  20591. this.imgUrl,
  20592. this.name,
  20593. this.transferUrl,
  20594. });
  20595. factory StatisticDevicesDTO.fromJson(Map<String, dynamic> map) {
  20596. return StatisticDevicesDTO(
  20597. imgUrl: map['ImgUrl'],
  20598. name: map['Name'],
  20599. transferUrl: map['TransferUrl'],
  20600. );
  20601. }
  20602. Map<String, dynamic> toJson() {
  20603. final map = Map<String, dynamic>();
  20604. if(imgUrl != null) {
  20605. map['ImgUrl'] = imgUrl;
  20606. }
  20607. if(name != null) {
  20608. map['Name'] = name;
  20609. }
  20610. if(transferUrl != null) {
  20611. map['TransferUrl'] = transferUrl;
  20612. }
  20613. return map;
  20614. }
  20615. }
  20616. class StatisticDiagnosisDataDTO {
  20617. String? organizationCode;
  20618. DateTime? createTime;
  20619. int totalCount;
  20620. BusinessModuleEnum businessType;
  20621. StatisticDiagnosisDataDTO({
  20622. this.organizationCode,
  20623. this.createTime,
  20624. this.totalCount = 0,
  20625. this.businessType = BusinessModuleEnum.RemoteDiagnosis,
  20626. });
  20627. factory StatisticDiagnosisDataDTO.fromJson(Map<String, dynamic> map) {
  20628. return StatisticDiagnosisDataDTO(
  20629. organizationCode: map['OrganizationCode'],
  20630. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  20631. totalCount: map['TotalCount'],
  20632. businessType: BusinessModuleEnum.values.firstWhere((e) => e.index == map['BusinessType']),
  20633. );
  20634. }
  20635. Map<String, dynamic> toJson() {
  20636. final map = Map<String, dynamic>();
  20637. if(organizationCode != null) {
  20638. map['OrganizationCode'] = organizationCode;
  20639. }
  20640. if(createTime != null) {
  20641. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  20642. }
  20643. map['TotalCount'] = totalCount;
  20644. map['BusinessType'] = businessType.index;
  20645. return map;
  20646. }
  20647. }
  20648. class StatisticDownloadDTO {
  20649. String? imgUrl;
  20650. String? transferUrl;
  20651. StatisticDownloadDTO({
  20652. this.imgUrl,
  20653. this.transferUrl,
  20654. });
  20655. factory StatisticDownloadDTO.fromJson(Map<String, dynamic> map) {
  20656. return StatisticDownloadDTO(
  20657. imgUrl: map['ImgUrl'],
  20658. transferUrl: map['TransferUrl'],
  20659. );
  20660. }
  20661. Map<String, dynamic> toJson() {
  20662. final map = Map<String, dynamic>();
  20663. if(imgUrl != null) {
  20664. map['ImgUrl'] = imgUrl;
  20665. }
  20666. if(transferUrl != null) {
  20667. map['TransferUrl'] = transferUrl;
  20668. }
  20669. return map;
  20670. }
  20671. }
  20672. class StatisticMessagesDTO {
  20673. String? content;
  20674. DateTime? time;
  20675. String? transferUrl;
  20676. CMSMessageStatusEnum status;
  20677. StatisticMessagesDTO({
  20678. this.content,
  20679. this.time,
  20680. this.transferUrl,
  20681. this.status = CMSMessageStatusEnum.UnRead,
  20682. });
  20683. factory StatisticMessagesDTO.fromJson(Map<String, dynamic> map) {
  20684. return StatisticMessagesDTO(
  20685. content: map['Content'],
  20686. time: map['Time'] != null ? DateTime.parse(map['Time']) : null,
  20687. transferUrl: map['TransferUrl'],
  20688. status: CMSMessageStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  20689. );
  20690. }
  20691. Map<String, dynamic> toJson() {
  20692. final map = Map<String, dynamic>();
  20693. if(content != null) {
  20694. map['Content'] = content;
  20695. }
  20696. if(time != null) {
  20697. map['Time'] = JsonRpcUtils.dateFormat(time!);
  20698. }
  20699. if(transferUrl != null) {
  20700. map['TransferUrl'] = transferUrl;
  20701. }
  20702. map['Status'] = status.index;
  20703. return map;
  20704. }
  20705. }
  20706. class StatisticMessageInfoDTO extends StatisticMessagesDTO{
  20707. String? userCode;
  20708. String? messageCode;
  20709. StatisticMessageInfoDTO({
  20710. this.userCode,
  20711. this.messageCode,
  20712. String? content,
  20713. DateTime? time,
  20714. String? transferUrl,
  20715. CMSMessageStatusEnum status = CMSMessageStatusEnum.UnRead,
  20716. }) : super(
  20717. content: content,
  20718. time: time,
  20719. transferUrl: transferUrl,
  20720. status: status,
  20721. );
  20722. factory StatisticMessageInfoDTO.fromJson(Map<String, dynamic> map) {
  20723. return StatisticMessageInfoDTO(
  20724. userCode: map['UserCode'],
  20725. messageCode: map['MessageCode'],
  20726. content: map['Content'],
  20727. time: map['Time'] != null ? DateTime.parse(map['Time']) : null,
  20728. transferUrl: map['TransferUrl'],
  20729. status: CMSMessageStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  20730. );
  20731. }
  20732. Map<String, dynamic> toJson() {
  20733. final map = super.toJson();
  20734. if(userCode != null)
  20735. map['UserCode'] = userCode;
  20736. if(messageCode != null)
  20737. map['MessageCode'] = messageCode;
  20738. return map;
  20739. }
  20740. }
  20741. class StatisticMyPendingDTO {
  20742. String? title;
  20743. double rate;
  20744. StatisticMyPendingDTO({
  20745. this.title,
  20746. this.rate = 0,
  20747. });
  20748. factory StatisticMyPendingDTO.fromJson(Map<String, dynamic> map) {
  20749. return StatisticMyPendingDTO(
  20750. title: map['Title'],
  20751. rate: double.parse(map['Rate'].toString()),
  20752. );
  20753. }
  20754. Map<String, dynamic> toJson() {
  20755. final map = Map<String, dynamic>();
  20756. if(title != null) {
  20757. map['Title'] = title;
  20758. }
  20759. map['Rate'] = rate;
  20760. return map;
  20761. }
  20762. }
  20763. class StatisticMyStandingDTO {
  20764. String? title;
  20765. int data;
  20766. String? unit;
  20767. String? transferUrl;
  20768. StatisticMyStandingDTO({
  20769. this.title,
  20770. this.data = 0,
  20771. this.unit,
  20772. this.transferUrl,
  20773. });
  20774. factory StatisticMyStandingDTO.fromJson(Map<String, dynamic> map) {
  20775. return StatisticMyStandingDTO(
  20776. title: map['Title'],
  20777. data: map['Data'],
  20778. unit: map['Unit'],
  20779. transferUrl: map['TransferUrl'],
  20780. );
  20781. }
  20782. Map<String, dynamic> toJson() {
  20783. final map = Map<String, dynamic>();
  20784. if(title != null) {
  20785. map['Title'] = title;
  20786. }
  20787. map['Data'] = data;
  20788. if(unit != null) {
  20789. map['Unit'] = unit;
  20790. }
  20791. if(transferUrl != null) {
  20792. map['TransferUrl'] = transferUrl;
  20793. }
  20794. return map;
  20795. }
  20796. }
  20797. class StatisticPlatActivityDTO {
  20798. String? imgUrl;
  20799. String? transferUrl;
  20800. StatisticPlatActivityDTO({
  20801. this.imgUrl,
  20802. this.transferUrl,
  20803. });
  20804. factory StatisticPlatActivityDTO.fromJson(Map<String, dynamic> map) {
  20805. return StatisticPlatActivityDTO(
  20806. imgUrl: map['ImgUrl'],
  20807. transferUrl: map['TransferUrl'],
  20808. );
  20809. }
  20810. Map<String, dynamic> toJson() {
  20811. final map = Map<String, dynamic>();
  20812. if(imgUrl != null) {
  20813. map['ImgUrl'] = imgUrl;
  20814. }
  20815. if(transferUrl != null) {
  20816. map['TransferUrl'] = transferUrl;
  20817. }
  20818. return map;
  20819. }
  20820. }
  20821. class StatisticRealtimeDataDTO {
  20822. DateTime? createTime;
  20823. String? organizationCode;
  20824. String? organizationName;
  20825. String? doctorCode;
  20826. String? doctorName;
  20827. RecordStatusEnum status;
  20828. StatisticRealtimeDataDTO({
  20829. this.createTime,
  20830. this.organizationCode,
  20831. this.organizationName,
  20832. this.doctorCode,
  20833. this.doctorName,
  20834. this.status = RecordStatusEnum.NotScanned,
  20835. });
  20836. factory StatisticRealtimeDataDTO.fromJson(Map<String, dynamic> map) {
  20837. return StatisticRealtimeDataDTO(
  20838. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  20839. organizationCode: map['OrganizationCode'],
  20840. organizationName: map['OrganizationName'],
  20841. doctorCode: map['DoctorCode'],
  20842. doctorName: map['DoctorName'],
  20843. status: RecordStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  20844. );
  20845. }
  20846. Map<String, dynamic> toJson() {
  20847. final map = Map<String, dynamic>();
  20848. if(createTime != null) {
  20849. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  20850. }
  20851. if(organizationCode != null) {
  20852. map['OrganizationCode'] = organizationCode;
  20853. }
  20854. if(organizationName != null) {
  20855. map['OrganizationName'] = organizationName;
  20856. }
  20857. if(doctorCode != null) {
  20858. map['DoctorCode'] = doctorCode;
  20859. }
  20860. if(doctorName != null) {
  20861. map['DoctorName'] = doctorName;
  20862. }
  20863. map['Status'] = status.index;
  20864. return map;
  20865. }
  20866. }
  20867. class StatisticSubmittedReportsDTO {
  20868. String? organizationCode;
  20869. String? organizationName;
  20870. int totalCount;
  20871. StatisticSubmittedReportsDTO({
  20872. this.organizationCode,
  20873. this.organizationName,
  20874. this.totalCount = 0,
  20875. });
  20876. factory StatisticSubmittedReportsDTO.fromJson(Map<String, dynamic> map) {
  20877. return StatisticSubmittedReportsDTO(
  20878. organizationCode: map['OrganizationCode'],
  20879. organizationName: map['OrganizationName'],
  20880. totalCount: map['TotalCount'],
  20881. );
  20882. }
  20883. Map<String, dynamic> toJson() {
  20884. final map = Map<String, dynamic>();
  20885. if(organizationCode != null) {
  20886. map['OrganizationCode'] = organizationCode;
  20887. }
  20888. if(organizationName != null) {
  20889. map['OrganizationName'] = organizationName;
  20890. }
  20891. map['TotalCount'] = totalCount;
  20892. return map;
  20893. }
  20894. }
  20895. class StatisticUpdateCourseDTO {
  20896. String? title;
  20897. String? teacher;
  20898. String? thumbnail;
  20899. String? transferUrl;
  20900. StatisticUpdateCourseDTO({
  20901. this.title,
  20902. this.teacher,
  20903. this.thumbnail,
  20904. this.transferUrl,
  20905. });
  20906. factory StatisticUpdateCourseDTO.fromJson(Map<String, dynamic> map) {
  20907. return StatisticUpdateCourseDTO(
  20908. title: map['Title'],
  20909. teacher: map['Teacher'],
  20910. thumbnail: map['Thumbnail'],
  20911. transferUrl: map['TransferUrl'],
  20912. );
  20913. }
  20914. Map<String, dynamic> toJson() {
  20915. final map = Map<String, dynamic>();
  20916. if(title != null) {
  20917. map['Title'] = title;
  20918. }
  20919. if(teacher != null) {
  20920. map['Teacher'] = teacher;
  20921. }
  20922. if(thumbnail != null) {
  20923. map['Thumbnail'] = thumbnail;
  20924. }
  20925. if(transferUrl != null) {
  20926. map['TransferUrl'] = transferUrl;
  20927. }
  20928. return map;
  20929. }
  20930. }
  20931. class BaseFeatureItemDTO extends BaseFeatureItemBaseDTO<BaseFeatureItemDTO>{
  20932. BaseFeatureItemDTO(
  20933. );
  20934. factory BaseFeatureItemDTO.fromJson(Map<String, dynamic> map) {
  20935. return BaseFeatureItemDTO(
  20936. );
  20937. }
  20938. Map<String, dynamic> toJson() {
  20939. final map = super.toJson();
  20940. return map;
  20941. }
  20942. }
  20943. class ArrowCommentItemDTO {
  20944. ArrowOrientation arrowOrientation;
  20945. String? text;
  20946. ArrowCommentItemDTO({
  20947. this.arrowOrientation = ArrowOrientation.Down,
  20948. this.text,
  20949. });
  20950. factory ArrowCommentItemDTO.fromJson(Map<String, dynamic> map) {
  20951. return ArrowCommentItemDTO(
  20952. arrowOrientation: ArrowOrientation.values.firstWhere((e) => e.index == map['ArrowOrientation']),
  20953. text: map['Text'],
  20954. );
  20955. }
  20956. Map<String, dynamic> toJson() {
  20957. final map = Map<String, dynamic>();
  20958. map['ArrowOrientation'] = arrowOrientation.index;
  20959. if(text != null) {
  20960. map['Text'] = text;
  20961. }
  20962. return map;
  20963. }
  20964. }
  20965. class UserDefinedCommentsDTO {
  20966. String? userId;
  20967. List<UserDefinedCommentDataDTO>? commentItems;
  20968. UserDefinedCommentsDTO({
  20969. this.userId,
  20970. this.commentItems,
  20971. });
  20972. factory UserDefinedCommentsDTO.fromJson(Map<String, dynamic> map) {
  20973. return UserDefinedCommentsDTO(
  20974. userId: map['UserId'],
  20975. commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>UserDefinedCommentDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  20976. );
  20977. }
  20978. Map<String, dynamic> toJson() {
  20979. final map = Map<String, dynamic>();
  20980. if(userId != null) {
  20981. map['UserId'] = userId;
  20982. }
  20983. if(commentItems != null) {
  20984. map['CommentItems'] = commentItems;
  20985. }
  20986. return map;
  20987. }
  20988. }
  20989. class FunctionalityInfo {
  20990. String? functionalityName;
  20991. FunctionalityStatusEnum functionalityStatus;
  20992. FunctionalityInfo({
  20993. this.functionalityName,
  20994. this.functionalityStatus = FunctionalityStatusEnum.DemoMode,
  20995. });
  20996. factory FunctionalityInfo.fromJson(Map<String, dynamic> map) {
  20997. return FunctionalityInfo(
  20998. functionalityName: map['FunctionalityName'],
  20999. functionalityStatus: FunctionalityStatusEnum.values.firstWhere((e) => e.index == map['FunctionalityStatus']),
  21000. );
  21001. }
  21002. Map<String, dynamic> toJson() {
  21003. final map = Map<String, dynamic>();
  21004. if(functionalityName != null) {
  21005. map['FunctionalityName'] = functionalityName;
  21006. }
  21007. map['FunctionalityStatus'] = functionalityStatus.index;
  21008. return map;
  21009. }
  21010. }
  21011. class AdminStatisticDTO extends BaseDTO{
  21012. String? adminStatisticCode;
  21013. String? name;
  21014. String? description;
  21015. String? intervalSetting;
  21016. bool enabled;
  21017. String? handleClass;
  21018. String? serverHost;
  21019. AdminStatisticDTO({
  21020. this.adminStatisticCode,
  21021. this.name,
  21022. this.description,
  21023. this.intervalSetting,
  21024. this.enabled = false,
  21025. this.handleClass,
  21026. this.serverHost,
  21027. DateTime? createTime,
  21028. DateTime? updateTime,
  21029. }) : super(
  21030. createTime: createTime,
  21031. updateTime: updateTime,
  21032. );
  21033. factory AdminStatisticDTO.fromJson(Map<String, dynamic> map) {
  21034. return AdminStatisticDTO(
  21035. adminStatisticCode: map['AdminStatisticCode'],
  21036. name: map['Name'],
  21037. description: map['Description'],
  21038. intervalSetting: map['IntervalSetting'],
  21039. enabled: map['Enabled'],
  21040. handleClass: map['HandleClass'],
  21041. serverHost: map['ServerHost'],
  21042. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  21043. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  21044. );
  21045. }
  21046. Map<String, dynamic> toJson() {
  21047. final map = super.toJson();
  21048. if(adminStatisticCode != null)
  21049. map['AdminStatisticCode'] = adminStatisticCode;
  21050. if(name != null)
  21051. map['Name'] = name;
  21052. if(description != null)
  21053. map['Description'] = description;
  21054. if(intervalSetting != null)
  21055. map['IntervalSetting'] = intervalSetting;
  21056. map['Enabled'] = enabled;
  21057. if(handleClass != null)
  21058. map['HandleClass'] = handleClass;
  21059. if(serverHost != null)
  21060. map['ServerHost'] = serverHost;
  21061. return map;
  21062. }
  21063. }
  21064. class AdminFeatureItemDTO extends BaseFeatureItemBaseDTO<AdminFeatureItemDTO>{
  21065. AdminFeatureItemDTO(
  21066. );
  21067. factory AdminFeatureItemDTO.fromJson(Map<String, dynamic> map) {
  21068. return AdminFeatureItemDTO(
  21069. );
  21070. }
  21071. Map<String, dynamic> toJson() {
  21072. final map = super.toJson();
  21073. return map;
  21074. }
  21075. }
  21076. class AdminAuthorityGroupDTO extends BaseDTO{
  21077. String? adminGroupCode;
  21078. String? description;
  21079. List<String>? adminCodes;
  21080. List<String>? features;
  21081. String? createAdmin;
  21082. AdminAuthorityGroupDTO({
  21083. this.adminGroupCode,
  21084. this.description,
  21085. this.adminCodes,
  21086. this.features,
  21087. this.createAdmin,
  21088. DateTime? createTime,
  21089. DateTime? updateTime,
  21090. }) : super(
  21091. createTime: createTime,
  21092. updateTime: updateTime,
  21093. );
  21094. factory AdminAuthorityGroupDTO.fromJson(Map<String, dynamic> map) {
  21095. return AdminAuthorityGroupDTO(
  21096. adminGroupCode: map['AdminGroupCode'],
  21097. description: map['Description'],
  21098. adminCodes: map['AdminCodes']?.cast<String>().toList(),
  21099. features: map['Features']?.cast<String>().toList(),
  21100. createAdmin: map['CreateAdmin'],
  21101. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  21102. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  21103. );
  21104. }
  21105. Map<String, dynamic> toJson() {
  21106. final map = super.toJson();
  21107. if(adminGroupCode != null)
  21108. map['AdminGroupCode'] = adminGroupCode;
  21109. if(description != null)
  21110. map['Description'] = description;
  21111. if(adminCodes != null)
  21112. map['AdminCodes'] = adminCodes;
  21113. if(features != null)
  21114. map['Features'] = features;
  21115. if(createAdmin != null)
  21116. map['CreateAdmin'] = createAdmin;
  21117. return map;
  21118. }
  21119. }