other.m.dart 584 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965
  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 'report.m.dart';
  12. import 'device.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 WaitClearLogResult {
  224. int daysAgo;
  225. int waitDelCount;
  226. WaitClearLogResult({
  227. this.daysAgo = 0,
  228. this.waitDelCount = 0,
  229. });
  230. factory WaitClearLogResult.fromJson(Map<String, dynamic> map) {
  231. return WaitClearLogResult(
  232. daysAgo: map['DaysAgo'],
  233. waitDelCount: map['WaitDelCount'],
  234. );
  235. }
  236. Map<String, dynamic> toJson() {
  237. final map = Map<String, dynamic>();
  238. map['DaysAgo'] = daysAgo;
  239. map['WaitDelCount'] = waitDelCount;
  240. return map;
  241. }
  242. }
  243. class ClearSystemLogRecordResult {
  244. int daysAgo;
  245. String? requestServerHost;
  246. String? clearTime;
  247. List<WaitClearLogResult>? waitClearLogs;
  248. ClearSystemLogRecordResult({
  249. this.daysAgo = 0,
  250. this.requestServerHost,
  251. this.clearTime,
  252. this.waitClearLogs,
  253. });
  254. factory ClearSystemLogRecordResult.fromJson(Map<String, dynamic> map) {
  255. return ClearSystemLogRecordResult(
  256. daysAgo: map['DaysAgo'],
  257. requestServerHost: map['RequestServerHost'],
  258. clearTime: map['ClearTime'],
  259. waitClearLogs: map['WaitClearLogs'] != null ? (map['WaitClearLogs'] as List).map((e)=>WaitClearLogResult.fromJson(e as Map<String,dynamic>)).toList() : null,
  260. );
  261. }
  262. Map<String, dynamic> toJson() {
  263. final map = Map<String, dynamic>();
  264. map['DaysAgo'] = daysAgo;
  265. if(requestServerHost != null) {
  266. map['RequestServerHost'] = requestServerHost;
  267. }
  268. if(clearTime != null) {
  269. map['ClearTime'] = clearTime;
  270. }
  271. if(waitClearLogs != null) {
  272. map['WaitClearLogs'] = waitClearLogs;
  273. }
  274. return map;
  275. }
  276. }
  277. enum CMSTemplateStatusTypeEnum {
  278. UnPublished,
  279. Published,
  280. }
  281. class CMSTemplateResult {
  282. String? cMSTemplateCode;
  283. String? cMSTemplateName;
  284. CMSTemplateStatusTypeEnum cMSTemplateStateType;
  285. String? cMSTemplateJson;
  286. bool isDefault;
  287. DateTime? createTime;
  288. String? cMSBgColor;
  289. String? cMSBgImg;
  290. bool isShowTop;
  291. String? cMSBorderColor;
  292. int cMSBorderShadow;
  293. CMSTemplateResult({
  294. this.cMSTemplateCode,
  295. this.cMSTemplateName,
  296. this.cMSTemplateStateType = CMSTemplateStatusTypeEnum.UnPublished,
  297. this.cMSTemplateJson,
  298. this.isDefault = false,
  299. this.createTime,
  300. this.cMSBgColor,
  301. this.cMSBgImg,
  302. this.isShowTop = false,
  303. this.cMSBorderColor,
  304. this.cMSBorderShadow = 0,
  305. });
  306. factory CMSTemplateResult.fromJson(Map<String, dynamic> map) {
  307. return CMSTemplateResult(
  308. cMSTemplateCode: map['CMSTemplateCode'],
  309. cMSTemplateName: map['CMSTemplateName'],
  310. cMSTemplateStateType: CMSTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['CMSTemplateStateType']),
  311. cMSTemplateJson: map['CMSTemplateJson'],
  312. isDefault: map['IsDefault'],
  313. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  314. cMSBgColor: map['CMSBgColor'],
  315. cMSBgImg: map['CMSBgImg'],
  316. isShowTop: map['IsShowTop'],
  317. cMSBorderColor: map['CMSBorderColor'],
  318. cMSBorderShadow: map['CMSBorderShadow'],
  319. );
  320. }
  321. Map<String, dynamic> toJson() {
  322. final map = Map<String, dynamic>();
  323. if(cMSTemplateCode != null) {
  324. map['CMSTemplateCode'] = cMSTemplateCode;
  325. }
  326. if(cMSTemplateName != null) {
  327. map['CMSTemplateName'] = cMSTemplateName;
  328. }
  329. map['CMSTemplateStateType'] = cMSTemplateStateType.index;
  330. if(cMSTemplateJson != null) {
  331. map['CMSTemplateJson'] = cMSTemplateJson;
  332. }
  333. map['IsDefault'] = isDefault;
  334. if(createTime != null) {
  335. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  336. }
  337. if(cMSBgColor != null) {
  338. map['CMSBgColor'] = cMSBgColor;
  339. }
  340. if(cMSBgImg != null) {
  341. map['CMSBgImg'] = cMSBgImg;
  342. }
  343. map['IsShowTop'] = isShowTop;
  344. if(cMSBorderColor != null) {
  345. map['CMSBorderColor'] = cMSBorderColor;
  346. }
  347. map['CMSBorderShadow'] = cMSBorderShadow;
  348. return map;
  349. }
  350. }
  351. class ConfigRecordResult {
  352. bool isOpenASR;
  353. ConfigRecordResult({
  354. this.isOpenASR = false,
  355. });
  356. factory ConfigRecordResult.fromJson(Map<String, dynamic> map) {
  357. return ConfigRecordResult(
  358. isOpenASR: map['IsOpenASR'],
  359. );
  360. }
  361. Map<String, dynamic> toJson() {
  362. final map = Map<String, dynamic>();
  363. map['IsOpenASR'] = isOpenASR;
  364. return map;
  365. }
  366. }
  367. class ExportThesaurusResult {
  368. String? thesaurusName;
  369. String? json;
  370. ExportThesaurusResult({
  371. this.thesaurusName,
  372. this.json,
  373. });
  374. factory ExportThesaurusResult.fromJson(Map<String, dynamic> map) {
  375. return ExportThesaurusResult(
  376. thesaurusName: map['ThesaurusName'],
  377. json: map['Json'],
  378. );
  379. }
  380. Map<String, dynamic> toJson() {
  381. final map = Map<String, dynamic>();
  382. if(thesaurusName != null) {
  383. map['ThesaurusName'] = thesaurusName;
  384. }
  385. if(json != null) {
  386. map['Json'] = json;
  387. }
  388. return map;
  389. }
  390. }
  391. class OrganizationBindQueryResult {
  392. int bindDeviceNum;
  393. int bindUserNum;
  394. OrganizationBindQueryResult({
  395. this.bindDeviceNum = 0,
  396. this.bindUserNum = 0,
  397. });
  398. factory OrganizationBindQueryResult.fromJson(Map<String, dynamic> map) {
  399. return OrganizationBindQueryResult(
  400. bindDeviceNum: map['BindDeviceNum'],
  401. bindUserNum: map['BindUserNum'],
  402. );
  403. }
  404. Map<String, dynamic> toJson() {
  405. final map = Map<String, dynamic>();
  406. map['BindDeviceNum'] = bindDeviceNum;
  407. map['BindUserNum'] = bindUserNum;
  408. return map;
  409. }
  410. }
  411. class ShareExamUrlResult {
  412. String? posterUrl;
  413. String? videoUrl;
  414. ShareExamUrlResult({
  415. this.posterUrl,
  416. this.videoUrl,
  417. });
  418. factory ShareExamUrlResult.fromJson(Map<String, dynamic> map) {
  419. return ShareExamUrlResult(
  420. posterUrl: map['PosterUrl'],
  421. videoUrl: map['VideoUrl'],
  422. );
  423. }
  424. Map<String, dynamic> toJson() {
  425. final map = Map<String, dynamic>();
  426. if(posterUrl != null) {
  427. map['PosterUrl'] = posterUrl;
  428. }
  429. if(videoUrl != null) {
  430. map['VideoUrl'] = videoUrl;
  431. }
  432. return map;
  433. }
  434. }
  435. class ApplyLockResult {
  436. bool isSuccess;
  437. String? lockUniqueCode;
  438. ApplyLockResult({
  439. this.isSuccess = false,
  440. this.lockUniqueCode,
  441. });
  442. factory ApplyLockResult.fromJson(Map<String, dynamic> map) {
  443. return ApplyLockResult(
  444. isSuccess: map['IsSuccess'],
  445. lockUniqueCode: map['LockUniqueCode'],
  446. );
  447. }
  448. Map<String, dynamic> toJson() {
  449. final map = Map<String, dynamic>();
  450. map['IsSuccess'] = isSuccess;
  451. if(lockUniqueCode != null) {
  452. map['LockUniqueCode'] = lockUniqueCode;
  453. }
  454. return map;
  455. }
  456. }
  457. class ReleaseLockResult {
  458. bool isSuccess;
  459. ReleaseLockResult({
  460. this.isSuccess = false,
  461. });
  462. factory ReleaseLockResult.fromJson(Map<String, dynamic> map) {
  463. return ReleaseLockResult(
  464. isSuccess: map['IsSuccess'],
  465. );
  466. }
  467. Map<String, dynamic> toJson() {
  468. final map = Map<String, dynamic>();
  469. map['IsSuccess'] = isSuccess;
  470. return map;
  471. }
  472. }
  473. class MarshalByRefObject {
  474. MarshalByRefObject();
  475. factory MarshalByRefObject.fromJson(Map<String, dynamic> map) {
  476. return MarshalByRefObject(
  477. );
  478. }
  479. Map<String, dynamic> toJson() {
  480. final map = Map<String, dynamic>();
  481. return map;
  482. }
  483. }
  484. class Stream extends MarshalByRefObject{
  485. bool canRead;
  486. bool canWrite;
  487. bool canSeek;
  488. bool canTimeout;
  489. int length;
  490. int position;
  491. int readTimeout;
  492. int writeTimeout;
  493. Stream({
  494. this.canRead = false,
  495. this.canWrite = false,
  496. this.canSeek = false,
  497. this.canTimeout = false,
  498. this.length = 0,
  499. this.position = 0,
  500. this.readTimeout = 0,
  501. this.writeTimeout = 0,
  502. }) : super(
  503. );
  504. factory Stream.fromJson(Map<String, dynamic> map) {
  505. return Stream(
  506. canRead: map['CanRead'],
  507. canWrite: map['CanWrite'],
  508. canSeek: map['CanSeek'],
  509. canTimeout: map['CanTimeout'],
  510. length: map['Length'],
  511. position: map['Position'],
  512. readTimeout: map['ReadTimeout'],
  513. writeTimeout: map['WriteTimeout'],
  514. );
  515. }
  516. Map<String, dynamic> toJson() {
  517. final map = super.toJson();
  518. map['CanRead'] = canRead;
  519. map['CanWrite'] = canWrite;
  520. map['CanSeek'] = canSeek;
  521. map['CanTimeout'] = canTimeout;
  522. map['Length'] = length;
  523. map['Position'] = position;
  524. map['ReadTimeout'] = readTimeout;
  525. map['WriteTimeout'] = writeTimeout;
  526. return map;
  527. }
  528. }
  529. class DownloadFileResult {
  530. Stream? merageFileStream;
  531. int fileSize;
  532. DownloadFileResult({
  533. this.merageFileStream,
  534. this.fileSize = 0,
  535. });
  536. factory DownloadFileResult.fromJson(Map<String, dynamic> map) {
  537. return DownloadFileResult(
  538. merageFileStream: map['MerageFileStream'] != null ? Stream.fromJson(map['MerageFileStream']) : null,
  539. fileSize: map['FileSize'],
  540. );
  541. }
  542. Map<String, dynamic> toJson() {
  543. final map = Map<String, dynamic>();
  544. if(merageFileStream != null) {
  545. map['MerageFileStream'] = merageFileStream;
  546. }
  547. map['FileSize'] = fileSize;
  548. return map;
  549. }
  550. }
  551. class QueryExamListItemResult {
  552. String? examCode;
  553. String? patientName;
  554. String? age;
  555. List<DataItemDTO>? ageInfo;
  556. String? sex;
  557. List<String>? associatedExamCodes;
  558. DateTime? createTime;
  559. QueryExamListItemResult({
  560. this.examCode,
  561. this.patientName,
  562. this.age,
  563. this.ageInfo,
  564. this.sex,
  565. this.associatedExamCodes,
  566. this.createTime,
  567. });
  568. factory QueryExamListItemResult.fromJson(Map<String, dynamic> map) {
  569. return QueryExamListItemResult(
  570. examCode: map['ExamCode'],
  571. patientName: map['PatientName'],
  572. age: map['Age'],
  573. ageInfo: map['AgeInfo'] != null ? (map['AgeInfo'] as List).map((e)=>DataItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  574. sex: map['Sex'],
  575. associatedExamCodes: map['AssociatedExamCodes']?.cast<String>().toList(),
  576. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  577. );
  578. }
  579. Map<String, dynamic> toJson() {
  580. final map = Map<String, dynamic>();
  581. if(examCode != null) {
  582. map['ExamCode'] = examCode;
  583. }
  584. if(patientName != null) {
  585. map['PatientName'] = patientName;
  586. }
  587. if(age != null) {
  588. map['Age'] = age;
  589. }
  590. if(ageInfo != null) {
  591. map['AgeInfo'] = ageInfo;
  592. }
  593. if(sex != null) {
  594. map['Sex'] = sex;
  595. }
  596. if(associatedExamCodes != null) {
  597. map['AssociatedExamCodes'] = associatedExamCodes;
  598. }
  599. if(createTime != null) {
  600. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  601. }
  602. return map;
  603. }
  604. }
  605. class BaseLiveResult {
  606. String? roomCode;
  607. int integerRoomId;
  608. String? rtcMessageJson;
  609. BaseLiveResult({
  610. this.roomCode,
  611. this.integerRoomId = 0,
  612. this.rtcMessageJson,
  613. });
  614. factory BaseLiveResult.fromJson(Map<String, dynamic> map) {
  615. return BaseLiveResult(
  616. roomCode: map['RoomCode'],
  617. integerRoomId: map['IntegerRoomId'],
  618. rtcMessageJson: map['RtcMessageJson'],
  619. );
  620. }
  621. Map<String, dynamic> toJson() {
  622. final map = Map<String, dynamic>();
  623. if(roomCode != null) {
  624. map['RoomCode'] = roomCode;
  625. }
  626. map['IntegerRoomId'] = integerRoomId;
  627. if(rtcMessageJson != null) {
  628. map['RtcMessageJson'] = rtcMessageJson;
  629. }
  630. return map;
  631. }
  632. }
  633. class MuteLiveResult extends BaseLiveResult{
  634. bool mute;
  635. MuteLiveResult({
  636. this.mute = false,
  637. String? roomCode,
  638. int integerRoomId = 0,
  639. String? rtcMessageJson,
  640. }) : super(
  641. roomCode: roomCode,
  642. integerRoomId: integerRoomId,
  643. rtcMessageJson: rtcMessageJson,
  644. );
  645. factory MuteLiveResult.fromJson(Map<String, dynamic> map) {
  646. return MuteLiveResult(
  647. mute: map['Mute'],
  648. roomCode: map['RoomCode'],
  649. integerRoomId: map['IntegerRoomId'],
  650. rtcMessageJson: map['RtcMessageJson'],
  651. );
  652. }
  653. Map<String, dynamic> toJson() {
  654. final map = super.toJson();
  655. map['Mute'] = mute;
  656. return map;
  657. }
  658. }
  659. class OpenedVideoLiveResult extends BaseLiveResult{
  660. bool videoOpend;
  661. OpenedVideoLiveResult({
  662. this.videoOpend = false,
  663. String? roomCode,
  664. int integerRoomId = 0,
  665. String? rtcMessageJson,
  666. }) : super(
  667. roomCode: roomCode,
  668. integerRoomId: integerRoomId,
  669. rtcMessageJson: rtcMessageJson,
  670. );
  671. factory OpenedVideoLiveResult.fromJson(Map<String, dynamic> map) {
  672. return OpenedVideoLiveResult(
  673. videoOpend: map['VideoOpend'],
  674. roomCode: map['RoomCode'],
  675. integerRoomId: map['IntegerRoomId'],
  676. rtcMessageJson: map['RtcMessageJson'],
  677. );
  678. }
  679. Map<String, dynamic> toJson() {
  680. final map = super.toJson();
  681. map['VideoOpend'] = videoOpend;
  682. return map;
  683. }
  684. }
  685. class ControllingParameterLiveResult extends BaseLiveResult{
  686. bool isControllingParameter;
  687. ControllingParameterLiveResult({
  688. this.isControllingParameter = false,
  689. String? roomCode,
  690. int integerRoomId = 0,
  691. String? rtcMessageJson,
  692. }) : super(
  693. roomCode: roomCode,
  694. integerRoomId: integerRoomId,
  695. rtcMessageJson: rtcMessageJson,
  696. );
  697. factory ControllingParameterLiveResult.fromJson(Map<String, dynamic> map) {
  698. return ControllingParameterLiveResult(
  699. isControllingParameter: map['IsControllingParameter'],
  700. roomCode: map['RoomCode'],
  701. integerRoomId: map['IntegerRoomId'],
  702. rtcMessageJson: map['RtcMessageJson'],
  703. );
  704. }
  705. Map<String, dynamic> toJson() {
  706. final map = super.toJson();
  707. map['IsControllingParameter'] = isControllingParameter;
  708. return map;
  709. }
  710. }
  711. class ChangeCourseStatusResult extends BaseLiveResult{
  712. CourseStatusEnum status;
  713. ChangeCourseStatusResult({
  714. this.status = CourseStatusEnum.Unknown,
  715. String? roomCode,
  716. int integerRoomId = 0,
  717. String? rtcMessageJson,
  718. }) : super(
  719. roomCode: roomCode,
  720. integerRoomId: integerRoomId,
  721. rtcMessageJson: rtcMessageJson,
  722. );
  723. factory ChangeCourseStatusResult.fromJson(Map<String, dynamic> map) {
  724. return ChangeCourseStatusResult(
  725. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  726. roomCode: map['RoomCode'],
  727. integerRoomId: map['IntegerRoomId'],
  728. rtcMessageJson: map['RtcMessageJson'],
  729. );
  730. }
  731. Map<String, dynamic> toJson() {
  732. final map = super.toJson();
  733. map['Status'] = status.index;
  734. return map;
  735. }
  736. }
  737. class FindConsultationSettingResult {
  738. String? version;
  739. String? settingData;
  740. FindConsultationSettingResult({
  741. this.version,
  742. this.settingData,
  743. });
  744. factory FindConsultationSettingResult.fromJson(Map<String, dynamic> map) {
  745. return FindConsultationSettingResult(
  746. version: map['Version'],
  747. settingData: map['SettingData'],
  748. );
  749. }
  750. Map<String, dynamic> toJson() {
  751. final map = Map<String, dynamic>();
  752. if(version != null) {
  753. map['Version'] = version;
  754. }
  755. if(settingData != null) {
  756. map['SettingData'] = settingData;
  757. }
  758. return map;
  759. }
  760. }
  761. class AddCacheReportPosterRequest extends TokenRequest{
  762. String? reportPosterCode;
  763. AddCacheReportPosterRequest({
  764. this.reportPosterCode,
  765. String? token,
  766. }) : super(
  767. token: token,
  768. );
  769. factory AddCacheReportPosterRequest.fromJson(Map<String, dynamic> map) {
  770. return AddCacheReportPosterRequest(
  771. reportPosterCode: map['ReportPosterCode'],
  772. token: map['Token'],
  773. );
  774. }
  775. Map<String, dynamic> toJson() {
  776. final map = super.toJson();
  777. if(reportPosterCode != null)
  778. map['ReportPosterCode'] = reportPosterCode;
  779. return map;
  780. }
  781. }
  782. class DeleteThesaurusUserCodeRequest extends TokenRequest{
  783. String? thesaurusCode;
  784. DeleteThesaurusUserCodeRequest({
  785. this.thesaurusCode,
  786. String? token,
  787. }) : super(
  788. token: token,
  789. );
  790. factory DeleteThesaurusUserCodeRequest.fromJson(Map<String, dynamic> map) {
  791. return DeleteThesaurusUserCodeRequest(
  792. thesaurusCode: map['ThesaurusCode'],
  793. token: map['Token'],
  794. );
  795. }
  796. Map<String, dynamic> toJson() {
  797. final map = super.toJson();
  798. if(thesaurusCode != null)
  799. map['ThesaurusCode'] = thesaurusCode;
  800. return map;
  801. }
  802. }
  803. class RemoveCacheReportPosterRequest extends TokenRequest{
  804. String? reportPosterCode;
  805. RemoveCacheReportPosterRequest({
  806. this.reportPosterCode,
  807. String? token,
  808. }) : super(
  809. token: token,
  810. );
  811. factory RemoveCacheReportPosterRequest.fromJson(Map<String, dynamic> map) {
  812. return RemoveCacheReportPosterRequest(
  813. reportPosterCode: map['ReportPosterCode'],
  814. token: map['Token'],
  815. );
  816. }
  817. Map<String, dynamic> toJson() {
  818. final map = super.toJson();
  819. if(reportPosterCode != null)
  820. map['ReportPosterCode'] = reportPosterCode;
  821. return map;
  822. }
  823. }
  824. class UpdateThesaurusUserCodeRequest extends TokenRequest{
  825. String? thesaurusCode;
  826. UpdateThesaurusUserCodeRequest({
  827. this.thesaurusCode,
  828. String? token,
  829. }) : super(
  830. token: token,
  831. );
  832. factory UpdateThesaurusUserCodeRequest.fromJson(Map<String, dynamic> map) {
  833. return UpdateThesaurusUserCodeRequest(
  834. thesaurusCode: map['ThesaurusCode'],
  835. token: map['Token'],
  836. );
  837. }
  838. Map<String, dynamic> toJson() {
  839. final map = super.toJson();
  840. if(thesaurusCode != null)
  841. map['ThesaurusCode'] = thesaurusCode;
  842. return map;
  843. }
  844. }
  845. class PushRecordCodesToDeviceRequest extends TokenRequest{
  846. List<String>? recordCodes;
  847. String? deviceCode;
  848. PushRecordCodesToDeviceRequest({
  849. this.recordCodes,
  850. this.deviceCode,
  851. String? token,
  852. }) : super(
  853. token: token,
  854. );
  855. factory PushRecordCodesToDeviceRequest.fromJson(Map<String, dynamic> map) {
  856. return PushRecordCodesToDeviceRequest(
  857. recordCodes: map['RecordCodes']?.cast<String>().toList(),
  858. deviceCode: map['DeviceCode'],
  859. token: map['Token'],
  860. );
  861. }
  862. Map<String, dynamic> toJson() {
  863. final map = super.toJson();
  864. if(recordCodes != null)
  865. map['RecordCodes'] = recordCodes;
  866. if(deviceCode != null)
  867. map['DeviceCode'] = deviceCode;
  868. return map;
  869. }
  870. }
  871. class PayCallbackRequest {
  872. String? keyWord;
  873. PayCallbackRequest({
  874. this.keyWord,
  875. });
  876. factory PayCallbackRequest.fromJson(Map<String, dynamic> map) {
  877. return PayCallbackRequest(
  878. keyWord: map['KeyWord'],
  879. );
  880. }
  881. Map<String, dynamic> toJson() {
  882. final map = Map<String, dynamic>();
  883. if(keyWord != null) {
  884. map['KeyWord'] = keyWord;
  885. }
  886. return map;
  887. }
  888. }
  889. class CloseNotifyQueueRequest {
  890. String? msgQueueId;
  891. CloseNotifyQueueRequest({
  892. this.msgQueueId,
  893. });
  894. factory CloseNotifyQueueRequest.fromJson(Map<String, dynamic> map) {
  895. return CloseNotifyQueueRequest(
  896. msgQueueId: map['MsgQueueId'],
  897. );
  898. }
  899. Map<String, dynamic> toJson() {
  900. final map = Map<String, dynamic>();
  901. if(msgQueueId != null) {
  902. map['MsgQueueId'] = msgQueueId;
  903. }
  904. return map;
  905. }
  906. }
  907. class OpenNotifyQueueRequest {
  908. String? module;
  909. OpenNotifyQueueRequest({
  910. this.module,
  911. });
  912. factory OpenNotifyQueueRequest.fromJson(Map<String, dynamic> map) {
  913. return OpenNotifyQueueRequest(
  914. module: map['Module'],
  915. );
  916. }
  917. Map<String, dynamic> toJson() {
  918. final map = Map<String, dynamic>();
  919. if(module != null) {
  920. map['Module'] = module;
  921. }
  922. return map;
  923. }
  924. }
  925. class ApplyLockRequest {
  926. String? lockKey;
  927. ApplyLockRequest({
  928. this.lockKey,
  929. });
  930. factory ApplyLockRequest.fromJson(Map<String, dynamic> map) {
  931. return ApplyLockRequest(
  932. lockKey: map['LockKey'],
  933. );
  934. }
  935. Map<String, dynamic> toJson() {
  936. final map = Map<String, dynamic>();
  937. if(lockKey != null) {
  938. map['LockKey'] = lockKey;
  939. }
  940. return map;
  941. }
  942. }
  943. class ReleaseLockRequest {
  944. String? lockUniqueCode;
  945. ReleaseLockRequest({
  946. this.lockUniqueCode,
  947. });
  948. factory ReleaseLockRequest.fromJson(Map<String, dynamic> map) {
  949. return ReleaseLockRequest(
  950. lockUniqueCode: map['LockUniqueCode'],
  951. );
  952. }
  953. Map<String, dynamic> toJson() {
  954. final map = Map<String, dynamic>();
  955. if(lockUniqueCode != null) {
  956. map['LockUniqueCode'] = lockUniqueCode;
  957. }
  958. return map;
  959. }
  960. }
  961. class AssignPatientToUsersRequest extends TokenRequest{
  962. String? patientCode;
  963. List<String>? userCodes;
  964. AssignPatientToUsersRequest({
  965. this.patientCode,
  966. this.userCodes,
  967. String? token,
  968. }) : super(
  969. token: token,
  970. );
  971. factory AssignPatientToUsersRequest.fromJson(Map<String, dynamic> map) {
  972. return AssignPatientToUsersRequest(
  973. patientCode: map['PatientCode'],
  974. userCodes: map['UserCodes']?.cast<String>().toList(),
  975. token: map['Token'],
  976. );
  977. }
  978. Map<String, dynamic> toJson() {
  979. final map = super.toJson();
  980. if(patientCode != null)
  981. map['PatientCode'] = patientCode;
  982. if(userCodes != null)
  983. map['UserCodes'] = userCodes;
  984. return map;
  985. }
  986. }
  987. class QuestionDetailDTO extends BaseDTO{
  988. String? code;
  989. double score;
  990. QuestionDetailDTO({
  991. this.code,
  992. this.score = 0,
  993. DateTime? createTime,
  994. DateTime? updateTime,
  995. }) : super(
  996. createTime: createTime,
  997. updateTime: updateTime,
  998. );
  999. factory QuestionDetailDTO.fromJson(Map<String, dynamic> map) {
  1000. return QuestionDetailDTO(
  1001. code: map['Code'],
  1002. score: double.parse(map['Score'].toString()),
  1003. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  1004. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  1005. );
  1006. }
  1007. Map<String, dynamic> toJson() {
  1008. final map = super.toJson();
  1009. if(code != null)
  1010. map['Code'] = code;
  1011. map['Score'] = score;
  1012. return map;
  1013. }
  1014. }
  1015. class AddExaminationPaperRequest extends TokenRequest{
  1016. String? name;
  1017. double totalScore;
  1018. List<QuestionDetailDTO>? questionList;
  1019. List<String>? caseLabelCodes;
  1020. List<String>? courseLabelCodes;
  1021. AddExaminationPaperRequest({
  1022. this.name,
  1023. this.totalScore = 0,
  1024. this.questionList,
  1025. this.caseLabelCodes,
  1026. this.courseLabelCodes,
  1027. String? token,
  1028. }) : super(
  1029. token: token,
  1030. );
  1031. factory AddExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  1032. return AddExaminationPaperRequest(
  1033. name: map['Name'],
  1034. totalScore: double.parse(map['TotalScore'].toString()),
  1035. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>QuestionDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1036. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  1037. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  1038. token: map['Token'],
  1039. );
  1040. }
  1041. Map<String, dynamic> toJson() {
  1042. final map = super.toJson();
  1043. if(name != null)
  1044. map['Name'] = name;
  1045. map['TotalScore'] = totalScore;
  1046. if(questionList != null)
  1047. map['QuestionList'] = questionList;
  1048. if(caseLabelCodes != null)
  1049. map['CaseLabelCodes'] = caseLabelCodes;
  1050. if(courseLabelCodes != null)
  1051. map['CourseLabelCodes'] = courseLabelCodes;
  1052. return map;
  1053. }
  1054. }
  1055. class FindUserGroupByStudentRequest extends TokenRequest{
  1056. FindUserGroupByStudentRequest({
  1057. String? token,
  1058. }) : super(
  1059. token: token,
  1060. );
  1061. factory FindUserGroupByStudentRequest.fromJson(Map<String, dynamic> map) {
  1062. return FindUserGroupByStudentRequest(
  1063. token: map['Token'],
  1064. );
  1065. }
  1066. Map<String, dynamic> toJson() {
  1067. final map = super.toJson();
  1068. return map;
  1069. }
  1070. }
  1071. class CourseLabelRequest extends TokenRequest{
  1072. String? code;
  1073. List<LabelLanguageConfigDTO>? labelLanguageConfigs;
  1074. OrganizationPatientTypeEnum useObjectType;
  1075. LabelTypeEnum type;
  1076. String? parentCode;
  1077. CourseLabelRequest({
  1078. this.code,
  1079. this.labelLanguageConfigs,
  1080. this.useObjectType = OrganizationPatientTypeEnum.Person,
  1081. this.type = LabelTypeEnum.Unknown,
  1082. this.parentCode,
  1083. String? token,
  1084. }) : super(
  1085. token: token,
  1086. );
  1087. factory CourseLabelRequest.fromJson(Map<String, dynamic> map) {
  1088. return CourseLabelRequest(
  1089. code: map['Code'],
  1090. labelLanguageConfigs: map['LabelLanguageConfigs'] != null ? (map['LabelLanguageConfigs'] as List).map((e)=>LabelLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1091. useObjectType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['UseObjectType']),
  1092. type: LabelTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  1093. parentCode: map['ParentCode'],
  1094. token: map['Token'],
  1095. );
  1096. }
  1097. Map<String, dynamic> toJson() {
  1098. final map = super.toJson();
  1099. if(code != null)
  1100. map['Code'] = code;
  1101. if(labelLanguageConfigs != null)
  1102. map['LabelLanguageConfigs'] = labelLanguageConfigs;
  1103. map['UseObjectType'] = useObjectType.index;
  1104. map['Type'] = type.index;
  1105. if(parentCode != null)
  1106. map['ParentCode'] = parentCode;
  1107. return map;
  1108. }
  1109. }
  1110. class DeleteExaminationPaperRequest extends TokenRequest{
  1111. String? examinationPaperCode;
  1112. DeleteExaminationPaperRequest({
  1113. this.examinationPaperCode,
  1114. String? token,
  1115. }) : super(
  1116. token: token,
  1117. );
  1118. factory DeleteExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  1119. return DeleteExaminationPaperRequest(
  1120. examinationPaperCode: map['ExaminationPaperCode'],
  1121. token: map['Token'],
  1122. );
  1123. }
  1124. Map<String, dynamic> toJson() {
  1125. final map = super.toJson();
  1126. if(examinationPaperCode != null)
  1127. map['ExaminationPaperCode'] = examinationPaperCode;
  1128. return map;
  1129. }
  1130. }
  1131. class FindExaminationQuestionPagesRequest extends PageRequest{
  1132. String? searchKey;
  1133. List<String>? caseLabelCodes;
  1134. List<String>? courseLabelCodes;
  1135. List<String>? codes;
  1136. List<String>? notInCodes;
  1137. FindExaminationQuestionPagesRequest({
  1138. this.searchKey,
  1139. this.caseLabelCodes,
  1140. this.courseLabelCodes,
  1141. this.codes,
  1142. this.notInCodes,
  1143. int pageIndex = 0,
  1144. int pageSize = 0,
  1145. String? token,
  1146. }) : super(
  1147. pageIndex: pageIndex,
  1148. pageSize: pageSize,
  1149. token: token,
  1150. );
  1151. factory FindExaminationQuestionPagesRequest.fromJson(Map<String, dynamic> map) {
  1152. return FindExaminationQuestionPagesRequest(
  1153. searchKey: map['SearchKey'],
  1154. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  1155. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  1156. codes: map['Codes']?.cast<String>().toList(),
  1157. notInCodes: map['NotInCodes']?.cast<String>().toList(),
  1158. pageIndex: map['PageIndex'],
  1159. pageSize: map['PageSize'],
  1160. token: map['Token'],
  1161. );
  1162. }
  1163. Map<String, dynamic> toJson() {
  1164. final map = super.toJson();
  1165. if(searchKey != null)
  1166. map['SearchKey'] = searchKey;
  1167. if(caseLabelCodes != null)
  1168. map['CaseLabelCodes'] = caseLabelCodes;
  1169. if(courseLabelCodes != null)
  1170. map['CourseLabelCodes'] = courseLabelCodes;
  1171. if(codes != null)
  1172. map['Codes'] = codes;
  1173. if(notInCodes != null)
  1174. map['NotInCodes'] = notInCodes;
  1175. return map;
  1176. }
  1177. }
  1178. class FindExaminationQuestionsByCodesRequest extends TokenRequest{
  1179. List<String>? codes;
  1180. FindExaminationQuestionsByCodesRequest({
  1181. this.codes,
  1182. String? token,
  1183. }) : super(
  1184. token: token,
  1185. );
  1186. factory FindExaminationQuestionsByCodesRequest.fromJson(Map<String, dynamic> map) {
  1187. return FindExaminationQuestionsByCodesRequest(
  1188. codes: map['Codes']?.cast<String>().toList(),
  1189. token: map['Token'],
  1190. );
  1191. }
  1192. Map<String, dynamic> toJson() {
  1193. final map = super.toJson();
  1194. if(codes != null)
  1195. map['Codes'] = codes;
  1196. return map;
  1197. }
  1198. }
  1199. class CreateExaminationQuestionRequest extends TokenRequest{
  1200. String? stem;
  1201. QuestionTypeEnum questionType;
  1202. List<QuestionOptionDTO>? questionOptionList;
  1203. List<QuestionFileDTO>? fileList;
  1204. List<String>? caseLabelCodes;
  1205. List<String>? courseLabelCodes;
  1206. bool trueOrFalse;
  1207. CreateExaminationQuestionRequest({
  1208. this.stem,
  1209. this.questionType = QuestionTypeEnum.Judge,
  1210. this.questionOptionList,
  1211. this.fileList,
  1212. this.caseLabelCodes,
  1213. this.courseLabelCodes,
  1214. this.trueOrFalse = false,
  1215. String? token,
  1216. }) : super(
  1217. token: token,
  1218. );
  1219. factory CreateExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1220. return CreateExaminationQuestionRequest(
  1221. stem: map['Stem'],
  1222. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  1223. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1224. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1225. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  1226. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  1227. trueOrFalse: map['TrueOrFalse'],
  1228. token: map['Token'],
  1229. );
  1230. }
  1231. Map<String, dynamic> toJson() {
  1232. final map = super.toJson();
  1233. if(stem != null)
  1234. map['Stem'] = stem;
  1235. map['QuestionType'] = questionType.index;
  1236. if(questionOptionList != null)
  1237. map['QuestionOptionList'] = questionOptionList;
  1238. if(fileList != null)
  1239. map['FileList'] = fileList;
  1240. if(caseLabelCodes != null)
  1241. map['CaseLabelCodes'] = caseLabelCodes;
  1242. if(courseLabelCodes != null)
  1243. map['CourseLabelCodes'] = courseLabelCodes;
  1244. map['TrueOrFalse'] = trueOrFalse;
  1245. return map;
  1246. }
  1247. }
  1248. class GetExaminationQuestionRequest extends TokenRequest{
  1249. String? code;
  1250. GetExaminationQuestionRequest({
  1251. this.code,
  1252. String? token,
  1253. }) : super(
  1254. token: token,
  1255. );
  1256. factory GetExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1257. return GetExaminationQuestionRequest(
  1258. code: map['Code'],
  1259. token: map['Token'],
  1260. );
  1261. }
  1262. Map<String, dynamic> toJson() {
  1263. final map = super.toJson();
  1264. if(code != null)
  1265. map['Code'] = code;
  1266. return map;
  1267. }
  1268. }
  1269. class UpdateExaminationQuestionRequest extends TokenRequest{
  1270. String? code;
  1271. String? stem;
  1272. QuestionTypeEnum questionType;
  1273. List<QuestionOptionDTO>? questionOptionList;
  1274. List<QuestionFileDTO>? fileList;
  1275. List<String>? caseLabelCodes;
  1276. List<String>? courseLabelCodes;
  1277. bool trueOrFalse;
  1278. UpdateExaminationQuestionRequest({
  1279. this.code,
  1280. this.stem,
  1281. this.questionType = QuestionTypeEnum.Judge,
  1282. this.questionOptionList,
  1283. this.fileList,
  1284. this.caseLabelCodes,
  1285. this.courseLabelCodes,
  1286. this.trueOrFalse = false,
  1287. String? token,
  1288. }) : super(
  1289. token: token,
  1290. );
  1291. factory UpdateExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1292. return UpdateExaminationQuestionRequest(
  1293. code: map['Code'],
  1294. stem: map['Stem'],
  1295. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  1296. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1297. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1298. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  1299. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  1300. trueOrFalse: map['TrueOrFalse'],
  1301. token: map['Token'],
  1302. );
  1303. }
  1304. Map<String, dynamic> toJson() {
  1305. final map = super.toJson();
  1306. if(code != null)
  1307. map['Code'] = code;
  1308. if(stem != null)
  1309. map['Stem'] = stem;
  1310. map['QuestionType'] = questionType.index;
  1311. if(questionOptionList != null)
  1312. map['QuestionOptionList'] = questionOptionList;
  1313. if(fileList != null)
  1314. map['FileList'] = fileList;
  1315. if(caseLabelCodes != null)
  1316. map['CaseLabelCodes'] = caseLabelCodes;
  1317. if(courseLabelCodes != null)
  1318. map['CourseLabelCodes'] = courseLabelCodes;
  1319. map['TrueOrFalse'] = trueOrFalse;
  1320. return map;
  1321. }
  1322. }
  1323. class DeleteExaminationQuestionRequest extends TokenRequest{
  1324. String? code;
  1325. DeleteExaminationQuestionRequest({
  1326. this.code,
  1327. String? token,
  1328. }) : super(
  1329. token: token,
  1330. );
  1331. factory DeleteExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1332. return DeleteExaminationQuestionRequest(
  1333. code: map['Code'],
  1334. token: map['Token'],
  1335. );
  1336. }
  1337. Map<String, dynamic> toJson() {
  1338. final map = super.toJson();
  1339. if(code != null)
  1340. map['Code'] = code;
  1341. return map;
  1342. }
  1343. }
  1344. class GetExaminationPaperPagesRequest extends PageRequest{
  1345. String? keyword;
  1346. List<String>? caseLabelCodes;
  1347. List<String>? courseLabelCodes;
  1348. GetExaminationPaperPagesRequest({
  1349. this.keyword,
  1350. this.caseLabelCodes,
  1351. this.courseLabelCodes,
  1352. int pageIndex = 0,
  1353. int pageSize = 0,
  1354. String? token,
  1355. }) : super(
  1356. pageIndex: pageIndex,
  1357. pageSize: pageSize,
  1358. token: token,
  1359. );
  1360. factory GetExaminationPaperPagesRequest.fromJson(Map<String, dynamic> map) {
  1361. return GetExaminationPaperPagesRequest(
  1362. keyword: map['Keyword'],
  1363. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  1364. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  1365. pageIndex: map['PageIndex'],
  1366. pageSize: map['PageSize'],
  1367. token: map['Token'],
  1368. );
  1369. }
  1370. Map<String, dynamic> toJson() {
  1371. final map = super.toJson();
  1372. if(keyword != null)
  1373. map['Keyword'] = keyword;
  1374. if(caseLabelCodes != null)
  1375. map['CaseLabelCodes'] = caseLabelCodes;
  1376. if(courseLabelCodes != null)
  1377. map['CourseLabelCodes'] = courseLabelCodes;
  1378. return map;
  1379. }
  1380. }
  1381. class GetExaminationPaperRequest extends TokenRequest{
  1382. String? examinationPaperCode;
  1383. GetExaminationPaperRequest({
  1384. this.examinationPaperCode,
  1385. String? token,
  1386. }) : super(
  1387. token: token,
  1388. );
  1389. factory GetExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  1390. return GetExaminationPaperRequest(
  1391. examinationPaperCode: map['ExaminationPaperCode'],
  1392. token: map['Token'],
  1393. );
  1394. }
  1395. Map<String, dynamic> toJson() {
  1396. final map = super.toJson();
  1397. if(examinationPaperCode != null)
  1398. map['ExaminationPaperCode'] = examinationPaperCode;
  1399. return map;
  1400. }
  1401. }
  1402. class CancelLiveCourseRequest extends InitiateLiveCourseRequest{
  1403. CancelLiveCourseRequest({
  1404. String? courseCode,
  1405. String? token,
  1406. }) : super(
  1407. courseCode: courseCode,
  1408. token: token,
  1409. );
  1410. factory CancelLiveCourseRequest.fromJson(Map<String, dynamic> map) {
  1411. return CancelLiveCourseRequest(
  1412. courseCode: map['CourseCode'],
  1413. token: map['Token'],
  1414. );
  1415. }
  1416. Map<String, dynamic> toJson() {
  1417. final map = super.toJson();
  1418. return map;
  1419. }
  1420. }
  1421. class QueryStudentByGroupCodePageRequest extends PageRequest{
  1422. String? keyword;
  1423. String? userGroupCode;
  1424. QueryStudentByGroupCodePageRequest({
  1425. this.keyword,
  1426. this.userGroupCode,
  1427. int pageIndex = 0,
  1428. int pageSize = 0,
  1429. String? token,
  1430. }) : super(
  1431. pageIndex: pageIndex,
  1432. pageSize: pageSize,
  1433. token: token,
  1434. );
  1435. factory QueryStudentByGroupCodePageRequest.fromJson(Map<String, dynamic> map) {
  1436. return QueryStudentByGroupCodePageRequest(
  1437. keyword: map['Keyword'],
  1438. userGroupCode: map['UserGroupCode'],
  1439. pageIndex: map['PageIndex'],
  1440. pageSize: map['PageSize'],
  1441. token: map['Token'],
  1442. );
  1443. }
  1444. Map<String, dynamic> toJson() {
  1445. final map = super.toJson();
  1446. if(keyword != null)
  1447. map['Keyword'] = keyword;
  1448. if(userGroupCode != null)
  1449. map['UserGroupCode'] = userGroupCode;
  1450. return map;
  1451. }
  1452. }
  1453. class UpdateExaminationPaperRequest extends TokenRequest{
  1454. String? examinationPaperCode;
  1455. String? name;
  1456. double totalScore;
  1457. List<QuestionDetailDTO>? questionList;
  1458. List<String>? caseLabelCodes;
  1459. List<String>? courseLabelCodes;
  1460. UpdateExaminationPaperRequest({
  1461. this.examinationPaperCode,
  1462. this.name,
  1463. this.totalScore = 0,
  1464. this.questionList,
  1465. this.caseLabelCodes,
  1466. this.courseLabelCodes,
  1467. String? token,
  1468. }) : super(
  1469. token: token,
  1470. );
  1471. factory UpdateExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  1472. return UpdateExaminationPaperRequest(
  1473. examinationPaperCode: map['ExaminationPaperCode'],
  1474. name: map['Name'],
  1475. totalScore: double.parse(map['TotalScore'].toString()),
  1476. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>QuestionDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1477. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  1478. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  1479. token: map['Token'],
  1480. );
  1481. }
  1482. Map<String, dynamic> toJson() {
  1483. final map = super.toJson();
  1484. if(examinationPaperCode != null)
  1485. map['ExaminationPaperCode'] = examinationPaperCode;
  1486. if(name != null)
  1487. map['Name'] = name;
  1488. map['TotalScore'] = totalScore;
  1489. if(questionList != null)
  1490. map['QuestionList'] = questionList;
  1491. if(caseLabelCodes != null)
  1492. map['CaseLabelCodes'] = caseLabelCodes;
  1493. if(courseLabelCodes != null)
  1494. map['CourseLabelCodes'] = courseLabelCodes;
  1495. return map;
  1496. }
  1497. }
  1498. class QueryCourseLabelPageRequest extends PageRequest{
  1499. String? name;
  1500. String? languageCode;
  1501. LabelTypeEnum type;
  1502. String? parentCode;
  1503. QueryCourseLabelPageRequest({
  1504. this.name,
  1505. this.languageCode,
  1506. this.type = LabelTypeEnum.Unknown,
  1507. this.parentCode,
  1508. int pageIndex = 0,
  1509. int pageSize = 0,
  1510. String? token,
  1511. }) : super(
  1512. pageIndex: pageIndex,
  1513. pageSize: pageSize,
  1514. token: token,
  1515. );
  1516. factory QueryCourseLabelPageRequest.fromJson(Map<String, dynamic> map) {
  1517. return QueryCourseLabelPageRequest(
  1518. name: map['Name'],
  1519. languageCode: map['LanguageCode'],
  1520. type: LabelTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  1521. parentCode: map['ParentCode'],
  1522. pageIndex: map['PageIndex'],
  1523. pageSize: map['PageSize'],
  1524. token: map['Token'],
  1525. );
  1526. }
  1527. Map<String, dynamic> toJson() {
  1528. final map = super.toJson();
  1529. if(name != null)
  1530. map['Name'] = name;
  1531. if(languageCode != null)
  1532. map['LanguageCode'] = languageCode;
  1533. map['Type'] = type.index;
  1534. if(parentCode != null)
  1535. map['ParentCode'] = parentCode;
  1536. return map;
  1537. }
  1538. }
  1539. class AlterDeviceRequest extends TokenRequest{
  1540. String? deviceCode;
  1541. String? serialNumber;
  1542. String? name;
  1543. String? description;
  1544. String? headPicUrl;
  1545. String? organizationCode;
  1546. String? departmentCode;
  1547. bool isAutoShared;
  1548. AlterDeviceRequest({
  1549. this.deviceCode,
  1550. this.serialNumber,
  1551. this.name,
  1552. this.description,
  1553. this.headPicUrl,
  1554. this.organizationCode,
  1555. this.departmentCode,
  1556. this.isAutoShared = false,
  1557. String? token,
  1558. }) : super(
  1559. token: token,
  1560. );
  1561. factory AlterDeviceRequest.fromJson(Map<String, dynamic> map) {
  1562. return AlterDeviceRequest(
  1563. deviceCode: map['DeviceCode'],
  1564. serialNumber: map['SerialNumber'],
  1565. name: map['Name'],
  1566. description: map['Description'],
  1567. headPicUrl: map['HeadPicUrl'],
  1568. organizationCode: map['OrganizationCode'],
  1569. departmentCode: map['DepartmentCode'],
  1570. isAutoShared: map['IsAutoShared'],
  1571. token: map['Token'],
  1572. );
  1573. }
  1574. Map<String, dynamic> toJson() {
  1575. final map = super.toJson();
  1576. if(deviceCode != null)
  1577. map['DeviceCode'] = deviceCode;
  1578. if(serialNumber != null)
  1579. map['SerialNumber'] = serialNumber;
  1580. if(name != null)
  1581. map['Name'] = name;
  1582. if(description != null)
  1583. map['Description'] = description;
  1584. if(headPicUrl != null)
  1585. map['HeadPicUrl'] = headPicUrl;
  1586. if(organizationCode != null)
  1587. map['OrganizationCode'] = organizationCode;
  1588. if(departmentCode != null)
  1589. map['DepartmentCode'] = departmentCode;
  1590. map['IsAutoShared'] = isAutoShared;
  1591. return map;
  1592. }
  1593. }
  1594. class CleanDeviceCacheRequest {
  1595. String? deviceCode;
  1596. CleanDeviceCacheRequest({
  1597. this.deviceCode,
  1598. });
  1599. factory CleanDeviceCacheRequest.fromJson(Map<String, dynamic> map) {
  1600. return CleanDeviceCacheRequest(
  1601. deviceCode: map['DeviceCode'],
  1602. );
  1603. }
  1604. Map<String, dynamic> toJson() {
  1605. final map = Map<String, dynamic>();
  1606. if(deviceCode != null) {
  1607. map['DeviceCode'] = deviceCode;
  1608. }
  1609. return map;
  1610. }
  1611. }
  1612. class CreateShareCodeRequest {
  1613. String? reportCode;
  1614. String? languageCode;
  1615. CreateShareCodeRequest({
  1616. this.reportCode,
  1617. this.languageCode,
  1618. });
  1619. factory CreateShareCodeRequest.fromJson(Map<String, dynamic> map) {
  1620. return CreateShareCodeRequest(
  1621. reportCode: map['ReportCode'],
  1622. languageCode: map['LanguageCode'],
  1623. );
  1624. }
  1625. Map<String, dynamic> toJson() {
  1626. final map = Map<String, dynamic>();
  1627. if(reportCode != null) {
  1628. map['ReportCode'] = reportCode;
  1629. }
  1630. if(languageCode != null) {
  1631. map['LanguageCode'] = languageCode;
  1632. }
  1633. return map;
  1634. }
  1635. }
  1636. class DeleteDeviceRequest {
  1637. String? deviceCode;
  1638. DeleteDeviceRequest({
  1639. this.deviceCode,
  1640. });
  1641. factory DeleteDeviceRequest.fromJson(Map<String, dynamic> map) {
  1642. return DeleteDeviceRequest(
  1643. deviceCode: map['DeviceCode'],
  1644. );
  1645. }
  1646. Map<String, dynamic> toJson() {
  1647. final map = Map<String, dynamic>();
  1648. if(deviceCode != null) {
  1649. map['DeviceCode'] = deviceCode;
  1650. }
  1651. return map;
  1652. }
  1653. }
  1654. class DeviceDiagnosisChangedNotification extends TokenRequest{
  1655. String? diagnosisModule;
  1656. String? organizationCode;
  1657. String? deviceCode;
  1658. DeviceDiagnosisChangedNotification({
  1659. this.diagnosisModule,
  1660. this.organizationCode,
  1661. this.deviceCode,
  1662. String? token,
  1663. }) : super(
  1664. token: token,
  1665. );
  1666. factory DeviceDiagnosisChangedNotification.fromJson(Map<String, dynamic> map) {
  1667. return DeviceDiagnosisChangedNotification(
  1668. diagnosisModule: map['DiagnosisModule'],
  1669. organizationCode: map['OrganizationCode'],
  1670. deviceCode: map['DeviceCode'],
  1671. token: map['Token'],
  1672. );
  1673. }
  1674. Map<String, dynamic> toJson() {
  1675. final map = super.toJson();
  1676. if(diagnosisModule != null)
  1677. map['DiagnosisModule'] = diagnosisModule;
  1678. if(organizationCode != null)
  1679. map['OrganizationCode'] = organizationCode;
  1680. if(deviceCode != null)
  1681. map['DeviceCode'] = deviceCode;
  1682. return map;
  1683. }
  1684. }
  1685. class DeviceLeaveLiveConsultationRequest extends TokenRequest{
  1686. String? consultationCode;
  1687. DeviceLeaveLiveConsultationRequest({
  1688. this.consultationCode,
  1689. String? token,
  1690. }) : super(
  1691. token: token,
  1692. );
  1693. factory DeviceLeaveLiveConsultationRequest.fromJson(Map<String, dynamic> map) {
  1694. return DeviceLeaveLiveConsultationRequest(
  1695. consultationCode: map['ConsultationCode'],
  1696. token: map['Token'],
  1697. );
  1698. }
  1699. Map<String, dynamic> toJson() {
  1700. final map = super.toJson();
  1701. if(consultationCode != null)
  1702. map['ConsultationCode'] = consultationCode;
  1703. return map;
  1704. }
  1705. }
  1706. class DeviceLeaveLiveConsultationResult {
  1707. bool success;
  1708. DeviceLeaveLiveConsultationResult({
  1709. this.success = false,
  1710. });
  1711. factory DeviceLeaveLiveConsultationResult.fromJson(Map<String, dynamic> map) {
  1712. return DeviceLeaveLiveConsultationResult(
  1713. success: map['Success'],
  1714. );
  1715. }
  1716. Map<String, dynamic> toJson() {
  1717. final map = Map<String, dynamic>();
  1718. map['Success'] = success;
  1719. return map;
  1720. }
  1721. }
  1722. class GetDevicePrinterRequest extends TokenRequest{
  1723. String? deviceCode;
  1724. DevicePrinterEnum getPrinterEnum;
  1725. GetDevicePrinterRequest({
  1726. this.deviceCode,
  1727. this.getPrinterEnum = DevicePrinterEnum.GetInstalledPrinters,
  1728. String? token,
  1729. }) : super(
  1730. token: token,
  1731. );
  1732. factory GetDevicePrinterRequest.fromJson(Map<String, dynamic> map) {
  1733. return GetDevicePrinterRequest(
  1734. deviceCode: map['DeviceCode'],
  1735. getPrinterEnum: DevicePrinterEnum.values.firstWhere((e) => e.index == map['GetPrinterEnum']),
  1736. token: map['Token'],
  1737. );
  1738. }
  1739. Map<String, dynamic> toJson() {
  1740. final map = super.toJson();
  1741. if(deviceCode != null)
  1742. map['DeviceCode'] = deviceCode;
  1743. map['GetPrinterEnum'] = getPrinterEnum.index;
  1744. return map;
  1745. }
  1746. }
  1747. class RemoteConnectDataRequest {
  1748. String? roomCode;
  1749. UserRemoteConnectRequest? userRemoteConnect;
  1750. bool isManangeDisConnnect;
  1751. RemoteConnectDataRequest({
  1752. this.roomCode,
  1753. this.userRemoteConnect,
  1754. this.isManangeDisConnnect = false,
  1755. });
  1756. factory RemoteConnectDataRequest.fromJson(Map<String, dynamic> map) {
  1757. return RemoteConnectDataRequest(
  1758. roomCode: map['RoomCode'],
  1759. userRemoteConnect: map['UserRemoteConnect'] != null ? UserRemoteConnectRequest.fromJson(map['UserRemoteConnect']) : null,
  1760. isManangeDisConnnect: map['IsManangeDisConnnect'],
  1761. );
  1762. }
  1763. Map<String, dynamic> toJson() {
  1764. final map = Map<String, dynamic>();
  1765. if(roomCode != null) {
  1766. map['RoomCode'] = roomCode;
  1767. }
  1768. if(userRemoteConnect != null) {
  1769. map['UserRemoteConnect'] = userRemoteConnect;
  1770. }
  1771. map['IsManangeDisConnnect'] = isManangeDisConnnect;
  1772. return map;
  1773. }
  1774. }
  1775. class ReportLiveStateResult {
  1776. ReportLiveStateResult();
  1777. factory ReportLiveStateResult.fromJson(Map<String, dynamic> map) {
  1778. return ReportLiveStateResult(
  1779. );
  1780. }
  1781. Map<String, dynamic> toJson() {
  1782. final map = Map<String, dynamic>();
  1783. return map;
  1784. }
  1785. }
  1786. class RemoteControlRequest extends TokenRequest{
  1787. String? controlUserCode;
  1788. RemoteControlRequest({
  1789. this.controlUserCode,
  1790. String? token,
  1791. }) : super(
  1792. token: token,
  1793. );
  1794. factory RemoteControlRequest.fromJson(Map<String, dynamic> map) {
  1795. return RemoteControlRequest(
  1796. controlUserCode: map['ControlUserCode'],
  1797. token: map['Token'],
  1798. );
  1799. }
  1800. Map<String, dynamic> toJson() {
  1801. final map = super.toJson();
  1802. if(controlUserCode != null)
  1803. map['ControlUserCode'] = controlUserCode;
  1804. return map;
  1805. }
  1806. }
  1807. class TransportAfterSalesCommonRequest {
  1808. String? reqJson;
  1809. String? receiverId;
  1810. NotificationTypeEnum notificationType;
  1811. TransportAfterSalesCommonRequest({
  1812. this.reqJson,
  1813. this.receiverId,
  1814. this.notificationType = NotificationTypeEnum.Unknown,
  1815. });
  1816. factory TransportAfterSalesCommonRequest.fromJson(Map<String, dynamic> map) {
  1817. return TransportAfterSalesCommonRequest(
  1818. reqJson: map['ReqJson'],
  1819. receiverId: map['ReceiverId'],
  1820. notificationType: NotificationTypeEnum.values.firstWhere((e) => e.index == map['NotificationType']),
  1821. );
  1822. }
  1823. Map<String, dynamic> toJson() {
  1824. final map = Map<String, dynamic>();
  1825. if(reqJson != null) {
  1826. map['ReqJson'] = reqJson;
  1827. }
  1828. if(receiverId != null) {
  1829. map['ReceiverId'] = receiverId;
  1830. }
  1831. map['NotificationType'] = notificationType.index;
  1832. return map;
  1833. }
  1834. }
  1835. class CheckUserAuthRequest extends TokenRequest{
  1836. String? signature;
  1837. OrganizationPatientTypeEnum patientType;
  1838. String? userName;
  1839. String? organizationCode;
  1840. CheckUserAuthRequest({
  1841. this.signature,
  1842. this.patientType = OrganizationPatientTypeEnum.Person,
  1843. this.userName,
  1844. this.organizationCode,
  1845. String? token,
  1846. }) : super(
  1847. token: token,
  1848. );
  1849. factory CheckUserAuthRequest.fromJson(Map<String, dynamic> map) {
  1850. return CheckUserAuthRequest(
  1851. signature: map['Signature'],
  1852. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  1853. userName: map['UserName'],
  1854. organizationCode: map['OrganizationCode'],
  1855. token: map['Token'],
  1856. );
  1857. }
  1858. Map<String, dynamic> toJson() {
  1859. final map = super.toJson();
  1860. if(signature != null)
  1861. map['Signature'] = signature;
  1862. map['PatientType'] = patientType.index;
  1863. if(userName != null)
  1864. map['UserName'] = userName;
  1865. if(organizationCode != null)
  1866. map['OrganizationCode'] = organizationCode;
  1867. return map;
  1868. }
  1869. }
  1870. class ConfirmAssociatedWithAccountRequest extends TokenRequest{
  1871. String? emailAddress;
  1872. String? verifyCode;
  1873. ConfirmAssociatedWithAccountRequest({
  1874. this.emailAddress,
  1875. this.verifyCode,
  1876. String? token,
  1877. }) : super(
  1878. token: token,
  1879. );
  1880. factory ConfirmAssociatedWithAccountRequest.fromJson(Map<String, dynamic> map) {
  1881. return ConfirmAssociatedWithAccountRequest(
  1882. emailAddress: map['EmailAddress'],
  1883. verifyCode: map['VerifyCode'],
  1884. token: map['Token'],
  1885. );
  1886. }
  1887. Map<String, dynamic> toJson() {
  1888. final map = super.toJson();
  1889. if(emailAddress != null)
  1890. map['EmailAddress'] = emailAddress;
  1891. if(verifyCode != null)
  1892. map['VerifyCode'] = verifyCode;
  1893. return map;
  1894. }
  1895. }
  1896. class DeleteThesaurusCodeRequest extends TokenRequest{
  1897. String? thesaurusCode;
  1898. DeleteThesaurusCodeRequest({
  1899. this.thesaurusCode,
  1900. String? token,
  1901. }) : super(
  1902. token: token,
  1903. );
  1904. factory DeleteThesaurusCodeRequest.fromJson(Map<String, dynamic> map) {
  1905. return DeleteThesaurusCodeRequest(
  1906. thesaurusCode: map['ThesaurusCode'],
  1907. token: map['Token'],
  1908. );
  1909. }
  1910. Map<String, dynamic> toJson() {
  1911. final map = super.toJson();
  1912. if(thesaurusCode != null)
  1913. map['ThesaurusCode'] = thesaurusCode;
  1914. return map;
  1915. }
  1916. }
  1917. class SignUpRequest extends UserDTO{
  1918. SignUpRequest({
  1919. String? nickName,
  1920. String? organizationCode,
  1921. String? organizationName,
  1922. String? rootOrganizationCode,
  1923. String? rootOrganizationName,
  1924. List<String>? authorityGroups,
  1925. List<String>? bindDevices,
  1926. List<String>? bindDeviceOrganizations,
  1927. String? lastIP,
  1928. int logintimes = 0,
  1929. UserInfoStateEnum userState = UserInfoStateEnum.Nonactivated,
  1930. List<String>? roleCodes,
  1931. List<String>? rankCodes,
  1932. List<String>? positionCodes,
  1933. ApplyStateEnum applyState = ApplyStateEnum.NotApply,
  1934. String? rankName,
  1935. String? positionName,
  1936. bool isDirector = false,
  1937. List<String>? fieldList,
  1938. List<String>? deletePatientCodes,
  1939. bool isBatchExportDiagnoseData = false,
  1940. String? bindAssistantUserCode,
  1941. String? bindAssistantDoctorUserCode,
  1942. LoginLockInfoDTO? loginLockInfo,
  1943. String? signature,
  1944. String? language,
  1945. bool enableReportLabel = false,
  1946. List<AssociatedInfoDTO>? associatedInfos,
  1947. String? commonPlatformUserId,
  1948. String? bindEmergencyDeviceCode,
  1949. String? bindEmergencyExpertCode,
  1950. List<String>? dashboardOrgCodes,
  1951. String? phone,
  1952. String? email,
  1953. String? userCode,
  1954. String? userName,
  1955. String? fullName,
  1956. String? headImageUrl,
  1957. String? displayName,
  1958. DateTime? createTime,
  1959. DateTime? updateTime,
  1960. }) : super(
  1961. nickName: nickName,
  1962. organizationCode: organizationCode,
  1963. organizationName: organizationName,
  1964. rootOrganizationCode: rootOrganizationCode,
  1965. rootOrganizationName: rootOrganizationName,
  1966. authorityGroups: authorityGroups,
  1967. bindDevices: bindDevices,
  1968. bindDeviceOrganizations: bindDeviceOrganizations,
  1969. lastIP: lastIP,
  1970. logintimes: logintimes,
  1971. userState: userState,
  1972. roleCodes: roleCodes,
  1973. rankCodes: rankCodes,
  1974. positionCodes: positionCodes,
  1975. applyState: applyState,
  1976. rankName: rankName,
  1977. positionName: positionName,
  1978. isDirector: isDirector,
  1979. fieldList: fieldList,
  1980. deletePatientCodes: deletePatientCodes,
  1981. isBatchExportDiagnoseData: isBatchExportDiagnoseData,
  1982. bindAssistantUserCode: bindAssistantUserCode,
  1983. bindAssistantDoctorUserCode: bindAssistantDoctorUserCode,
  1984. loginLockInfo: loginLockInfo,
  1985. signature: signature,
  1986. language: language,
  1987. enableReportLabel: enableReportLabel,
  1988. associatedInfos: associatedInfos,
  1989. commonPlatformUserId: commonPlatformUserId,
  1990. bindEmergencyDeviceCode: bindEmergencyDeviceCode,
  1991. bindEmergencyExpertCode: bindEmergencyExpertCode,
  1992. dashboardOrgCodes: dashboardOrgCodes,
  1993. phone: phone,
  1994. email: email,
  1995. userCode: userCode,
  1996. userName: userName,
  1997. fullName: fullName,
  1998. headImageUrl: headImageUrl,
  1999. displayName: displayName,
  2000. createTime: createTime,
  2001. updateTime: updateTime,
  2002. );
  2003. factory SignUpRequest.fromJson(Map<String, dynamic> map) {
  2004. return SignUpRequest(
  2005. nickName: map['NickName'],
  2006. organizationCode: map['OrganizationCode'],
  2007. organizationName: map['OrganizationName'],
  2008. rootOrganizationCode: map['RootOrganizationCode'],
  2009. rootOrganizationName: map['RootOrganizationName'],
  2010. authorityGroups: map['AuthorityGroups']?.cast<String>().toList(),
  2011. bindDevices: map['BindDevices']?.cast<String>().toList(),
  2012. bindDeviceOrganizations: map['BindDeviceOrganizations']?.cast<String>().toList(),
  2013. lastIP: map['LastIP'],
  2014. logintimes: map['Logintimes'],
  2015. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  2016. roleCodes: map['RoleCodes']?.cast<String>().toList(),
  2017. rankCodes: map['RankCodes']?.cast<String>().toList(),
  2018. positionCodes: map['PositionCodes']?.cast<String>().toList(),
  2019. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  2020. rankName: map['RankName'],
  2021. positionName: map['PositionName'],
  2022. isDirector: map['IsDirector'],
  2023. fieldList: map['FieldList']?.cast<String>().toList(),
  2024. deletePatientCodes: map['DeletePatientCodes']?.cast<String>().toList(),
  2025. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  2026. bindAssistantUserCode: map['BindAssistantUserCode'],
  2027. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  2028. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  2029. signature: map['Signature'],
  2030. language: map['Language'],
  2031. enableReportLabel: map['EnableReportLabel'],
  2032. associatedInfos: map['AssociatedInfos'] != null ? (map['AssociatedInfos'] as List).map((e)=>AssociatedInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2033. commonPlatformUserId: map['CommonPlatformUserId'],
  2034. bindEmergencyDeviceCode: map['BindEmergencyDeviceCode'],
  2035. bindEmergencyExpertCode: map['BindEmergencyExpertCode'],
  2036. dashboardOrgCodes: map['DashboardOrgCodes']?.cast<String>().toList(),
  2037. phone: map['Phone'],
  2038. email: map['Email'],
  2039. userCode: map['UserCode'],
  2040. userName: map['UserName'],
  2041. fullName: map['FullName'],
  2042. headImageUrl: map['HeadImageUrl'],
  2043. displayName: map['DisplayName'],
  2044. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  2045. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  2046. );
  2047. }
  2048. Map<String, dynamic> toJson() {
  2049. final map = super.toJson();
  2050. return map;
  2051. }
  2052. }
  2053. class UpdateThesaurusCodeRequest extends TokenRequest{
  2054. String? thesaurusCode;
  2055. UpdateThesaurusCodeRequest({
  2056. this.thesaurusCode,
  2057. String? token,
  2058. }) : super(
  2059. token: token,
  2060. );
  2061. factory UpdateThesaurusCodeRequest.fromJson(Map<String, dynamic> map) {
  2062. return UpdateThesaurusCodeRequest(
  2063. thesaurusCode: map['ThesaurusCode'],
  2064. token: map['Token'],
  2065. );
  2066. }
  2067. Map<String, dynamic> toJson() {
  2068. final map = super.toJson();
  2069. if(thesaurusCode != null)
  2070. map['ThesaurusCode'] = thesaurusCode;
  2071. return map;
  2072. }
  2073. }
  2074. enum AnnouncementStatusEnum {
  2075. placeHolder_0,
  2076. Released,
  2077. Pending,
  2078. }
  2079. class AnnouncementInfoDTO extends BaseDTO{
  2080. String? code;
  2081. AnnouncementTypeEnum announcementType;
  2082. AnnouncementStatusEnum announcementStatus;
  2083. List<AnnouncementLanguageConfigDTO>? languageConfigs;
  2084. AnnouncementInfoDTO({
  2085. this.code,
  2086. this.announcementType = AnnouncementTypeEnum.Broadcast,
  2087. this.announcementStatus = AnnouncementStatusEnum.Released,
  2088. this.languageConfigs,
  2089. DateTime? createTime,
  2090. DateTime? updateTime,
  2091. }) : super(
  2092. createTime: createTime,
  2093. updateTime: updateTime,
  2094. );
  2095. factory AnnouncementInfoDTO.fromJson(Map<String, dynamic> map) {
  2096. return AnnouncementInfoDTO(
  2097. code: map['Code'],
  2098. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  2099. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  2100. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>AnnouncementLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2101. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  2102. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  2103. );
  2104. }
  2105. Map<String, dynamic> toJson() {
  2106. final map = super.toJson();
  2107. if(code != null)
  2108. map['Code'] = code;
  2109. map['AnnouncementType'] = announcementType.index;
  2110. map['AnnouncementStatus'] = announcementStatus.index;
  2111. if(languageConfigs != null)
  2112. map['LanguageConfigs'] = languageConfigs;
  2113. return map;
  2114. }
  2115. }
  2116. class AddAnnouncementRequest extends AnnouncementInfoDTO{
  2117. AddAnnouncementRequest({
  2118. String? code,
  2119. AnnouncementTypeEnum announcementType = AnnouncementTypeEnum.Broadcast,
  2120. AnnouncementStatusEnum announcementStatus = AnnouncementStatusEnum.Released,
  2121. List<AnnouncementLanguageConfigDTO>? languageConfigs,
  2122. DateTime? createTime,
  2123. DateTime? updateTime,
  2124. }) : super(
  2125. code: code,
  2126. announcementType: announcementType,
  2127. announcementStatus: announcementStatus,
  2128. languageConfigs: languageConfigs,
  2129. createTime: createTime,
  2130. updateTime: updateTime,
  2131. );
  2132. factory AddAnnouncementRequest.fromJson(Map<String, dynamic> map) {
  2133. return AddAnnouncementRequest(
  2134. code: map['Code'],
  2135. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  2136. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  2137. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>AnnouncementLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2138. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  2139. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  2140. );
  2141. }
  2142. Map<String, dynamic> toJson() {
  2143. final map = super.toJson();
  2144. return map;
  2145. }
  2146. }
  2147. class UpdateAnnouncementRequest extends AnnouncementInfoDTO{
  2148. UpdateAnnouncementRequest({
  2149. String? code,
  2150. AnnouncementTypeEnum announcementType = AnnouncementTypeEnum.Broadcast,
  2151. AnnouncementStatusEnum announcementStatus = AnnouncementStatusEnum.Released,
  2152. List<AnnouncementLanguageConfigDTO>? languageConfigs,
  2153. DateTime? createTime,
  2154. DateTime? updateTime,
  2155. }) : super(
  2156. code: code,
  2157. announcementType: announcementType,
  2158. announcementStatus: announcementStatus,
  2159. languageConfigs: languageConfigs,
  2160. createTime: createTime,
  2161. updateTime: updateTime,
  2162. );
  2163. factory UpdateAnnouncementRequest.fromJson(Map<String, dynamic> map) {
  2164. return UpdateAnnouncementRequest(
  2165. code: map['Code'],
  2166. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  2167. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  2168. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>AnnouncementLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2169. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  2170. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  2171. );
  2172. }
  2173. Map<String, dynamic> toJson() {
  2174. final map = super.toJson();
  2175. return map;
  2176. }
  2177. }
  2178. class AddContentConfigRequest extends TokenRequest{
  2179. String? bindTypeKey;
  2180. String? bindTypeValue;
  2181. String? bindContentKey;
  2182. String? bindContentValue;
  2183. AddContentConfigRequest({
  2184. this.bindTypeKey,
  2185. this.bindTypeValue,
  2186. this.bindContentKey,
  2187. this.bindContentValue,
  2188. String? token,
  2189. }) : super(
  2190. token: token,
  2191. );
  2192. factory AddContentConfigRequest.fromJson(Map<String, dynamic> map) {
  2193. return AddContentConfigRequest(
  2194. bindTypeKey: map['BindTypeKey'],
  2195. bindTypeValue: map['BindTypeValue'],
  2196. bindContentKey: map['BindContentKey'],
  2197. bindContentValue: map['BindContentValue'],
  2198. token: map['Token'],
  2199. );
  2200. }
  2201. Map<String, dynamic> toJson() {
  2202. final map = super.toJson();
  2203. if(bindTypeKey != null)
  2204. map['BindTypeKey'] = bindTypeKey;
  2205. if(bindTypeValue != null)
  2206. map['BindTypeValue'] = bindTypeValue;
  2207. if(bindContentKey != null)
  2208. map['BindContentKey'] = bindContentKey;
  2209. if(bindContentValue != null)
  2210. map['BindContentValue'] = bindContentValue;
  2211. return map;
  2212. }
  2213. }
  2214. enum DeviceVideoOutputTypeEnum {
  2215. MergedVideo,
  2216. Desktop,
  2217. Camera,
  2218. }
  2219. class AddDeviceOutputConfigRequest extends TokenRequest{
  2220. DeviceVideoOutputTypeEnum deviceVideoOutputType;
  2221. int videoWidth;
  2222. int videoHeight;
  2223. AddDeviceOutputConfigRequest({
  2224. this.deviceVideoOutputType = DeviceVideoOutputTypeEnum.MergedVideo,
  2225. this.videoWidth = 0,
  2226. this.videoHeight = 0,
  2227. String? token,
  2228. }) : super(
  2229. token: token,
  2230. );
  2231. factory AddDeviceOutputConfigRequest.fromJson(Map<String, dynamic> map) {
  2232. return AddDeviceOutputConfigRequest(
  2233. deviceVideoOutputType: DeviceVideoOutputTypeEnum.values.firstWhere((e) => e.index == map['DeviceVideoOutputType']),
  2234. videoWidth: map['VideoWidth'],
  2235. videoHeight: map['VideoHeight'],
  2236. token: map['Token'],
  2237. );
  2238. }
  2239. Map<String, dynamic> toJson() {
  2240. final map = super.toJson();
  2241. map['DeviceVideoOutputType'] = deviceVideoOutputType.index;
  2242. map['VideoWidth'] = videoWidth;
  2243. map['VideoHeight'] = videoHeight;
  2244. return map;
  2245. }
  2246. }
  2247. class AdminApplyCourseRequest extends TokenRequest{
  2248. String? name;
  2249. String? courseIntro;
  2250. String? teacherCode;
  2251. String? cover;
  2252. DateTime? startTime;
  2253. int duration;
  2254. CourseTypeEnum courseType;
  2255. CourseAudienceTypeEnum audienceType;
  2256. String? coursewareToken;
  2257. String? teacherName;
  2258. CourseViewRangeEnum viewRange;
  2259. List<String>? caseLabelCodes;
  2260. List<String>? courseLabelCodes;
  2261. List<String>? userGroupCodes;
  2262. double price;
  2263. List<String>? courseVideoCodes;
  2264. List<CourseExaminationDTO>? bindExams;
  2265. bool isSmallClass;
  2266. List<String>? assistants;
  2267. List<String>? experts;
  2268. bool isAgentCourse;
  2269. List<String>? courseAlbumCodes;
  2270. bool isStick;
  2271. int sort;
  2272. AdminApplyCourseRequest({
  2273. this.name,
  2274. this.courseIntro,
  2275. this.teacherCode,
  2276. this.cover,
  2277. this.startTime,
  2278. this.duration = 0,
  2279. this.courseType = CourseTypeEnum.Unknown,
  2280. this.audienceType = CourseAudienceTypeEnum.Unknown,
  2281. this.coursewareToken,
  2282. this.teacherName,
  2283. this.viewRange = CourseViewRangeEnum.All,
  2284. this.caseLabelCodes,
  2285. this.courseLabelCodes,
  2286. this.userGroupCodes,
  2287. this.price = 0,
  2288. this.courseVideoCodes,
  2289. this.bindExams,
  2290. this.isSmallClass = false,
  2291. this.assistants,
  2292. this.experts,
  2293. this.isAgentCourse = false,
  2294. this.courseAlbumCodes,
  2295. this.isStick = false,
  2296. this.sort = 0,
  2297. String? token,
  2298. }) : super(
  2299. token: token,
  2300. );
  2301. factory AdminApplyCourseRequest.fromJson(Map<String, dynamic> map) {
  2302. return AdminApplyCourseRequest(
  2303. name: map['Name'],
  2304. courseIntro: map['CourseIntro'],
  2305. teacherCode: map['TeacherCode'],
  2306. cover: map['Cover'],
  2307. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  2308. duration: map['Duration'],
  2309. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  2310. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  2311. coursewareToken: map['CoursewareToken'],
  2312. teacherName: map['TeacherName'],
  2313. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  2314. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  2315. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  2316. userGroupCodes: map['UserGroupCodes']?.cast<String>().toList(),
  2317. price: double.parse(map['Price'].toString()),
  2318. courseVideoCodes: map['CourseVideoCodes']?.cast<String>().toList(),
  2319. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2320. isSmallClass: map['IsSmallClass'],
  2321. assistants: map['Assistants']?.cast<String>().toList(),
  2322. experts: map['Experts']?.cast<String>().toList(),
  2323. isAgentCourse: map['IsAgentCourse'],
  2324. courseAlbumCodes: map['CourseAlbumCodes']?.cast<String>().toList(),
  2325. isStick: map['IsStick'],
  2326. sort: map['Sort'],
  2327. token: map['Token'],
  2328. );
  2329. }
  2330. Map<String, dynamic> toJson() {
  2331. final map = super.toJson();
  2332. if(name != null)
  2333. map['Name'] = name;
  2334. if(courseIntro != null)
  2335. map['CourseIntro'] = courseIntro;
  2336. if(teacherCode != null)
  2337. map['TeacherCode'] = teacherCode;
  2338. if(cover != null)
  2339. map['Cover'] = cover;
  2340. if(startTime != null)
  2341. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  2342. map['Duration'] = duration;
  2343. map['CourseType'] = courseType.index;
  2344. map['AudienceType'] = audienceType.index;
  2345. if(coursewareToken != null)
  2346. map['CoursewareToken'] = coursewareToken;
  2347. if(teacherName != null)
  2348. map['TeacherName'] = teacherName;
  2349. map['ViewRange'] = viewRange.index;
  2350. if(caseLabelCodes != null)
  2351. map['CaseLabelCodes'] = caseLabelCodes;
  2352. if(courseLabelCodes != null)
  2353. map['CourseLabelCodes'] = courseLabelCodes;
  2354. if(userGroupCodes != null)
  2355. map['UserGroupCodes'] = userGroupCodes;
  2356. map['Price'] = price;
  2357. if(courseVideoCodes != null)
  2358. map['CourseVideoCodes'] = courseVideoCodes;
  2359. if(bindExams != null)
  2360. map['BindExams'] = bindExams;
  2361. map['IsSmallClass'] = isSmallClass;
  2362. if(assistants != null)
  2363. map['Assistants'] = assistants;
  2364. if(experts != null)
  2365. map['Experts'] = experts;
  2366. map['IsAgentCourse'] = isAgentCourse;
  2367. if(courseAlbumCodes != null)
  2368. map['CourseAlbumCodes'] = courseAlbumCodes;
  2369. map['IsStick'] = isStick;
  2370. map['Sort'] = sort;
  2371. return map;
  2372. }
  2373. }
  2374. class AdminApprovalCourseRequest extends TokenRequest{
  2375. String? code;
  2376. CourseStatusEnum status;
  2377. AdminApprovalCourseRequest({
  2378. this.code,
  2379. this.status = CourseStatusEnum.Unknown,
  2380. String? token,
  2381. }) : super(
  2382. token: token,
  2383. );
  2384. factory AdminApprovalCourseRequest.fromJson(Map<String, dynamic> map) {
  2385. return AdminApprovalCourseRequest(
  2386. code: map['Code'],
  2387. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  2388. token: map['Token'],
  2389. );
  2390. }
  2391. Map<String, dynamic> toJson() {
  2392. final map = super.toJson();
  2393. if(code != null)
  2394. map['Code'] = code;
  2395. map['Status'] = status.index;
  2396. return map;
  2397. }
  2398. }
  2399. class AdminDeleteCourseByCodeRequest extends TokenRequest{
  2400. String? code;
  2401. AdminDeleteCourseByCodeRequest({
  2402. this.code,
  2403. String? token,
  2404. }) : super(
  2405. token: token,
  2406. );
  2407. factory AdminDeleteCourseByCodeRequest.fromJson(Map<String, dynamic> map) {
  2408. return AdminDeleteCourseByCodeRequest(
  2409. code: map['Code'],
  2410. token: map['Token'],
  2411. );
  2412. }
  2413. Map<String, dynamic> toJson() {
  2414. final map = super.toJson();
  2415. if(code != null)
  2416. map['Code'] = code;
  2417. return map;
  2418. }
  2419. }
  2420. class AdminFindCoursePagesRequest extends PageRequest{
  2421. String? keyword;
  2422. CourseStatusEnum status;
  2423. String? languageCode;
  2424. CourseTypeEnum courseType;
  2425. CourseAudienceTypeEnum audienceType;
  2426. AdminFindCoursePagesRequest({
  2427. this.keyword,
  2428. this.status = CourseStatusEnum.Unknown,
  2429. this.languageCode,
  2430. this.courseType = CourseTypeEnum.Unknown,
  2431. this.audienceType = CourseAudienceTypeEnum.Unknown,
  2432. int pageIndex = 0,
  2433. int pageSize = 0,
  2434. String? token,
  2435. }) : super(
  2436. pageIndex: pageIndex,
  2437. pageSize: pageSize,
  2438. token: token,
  2439. );
  2440. factory AdminFindCoursePagesRequest.fromJson(Map<String, dynamic> map) {
  2441. return AdminFindCoursePagesRequest(
  2442. keyword: map['Keyword'],
  2443. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  2444. languageCode: map['LanguageCode'],
  2445. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  2446. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  2447. pageIndex: map['PageIndex'],
  2448. pageSize: map['PageSize'],
  2449. token: map['Token'],
  2450. );
  2451. }
  2452. Map<String, dynamic> toJson() {
  2453. final map = super.toJson();
  2454. if(keyword != null)
  2455. map['Keyword'] = keyword;
  2456. map['Status'] = status.index;
  2457. if(languageCode != null)
  2458. map['LanguageCode'] = languageCode;
  2459. map['CourseType'] = courseType.index;
  2460. map['AudienceType'] = audienceType.index;
  2461. return map;
  2462. }
  2463. }
  2464. class AdminUpdateCourseRequest extends TokenRequest{
  2465. String? code;
  2466. String? name;
  2467. String? courseIntro;
  2468. String? teacherCode;
  2469. String? cover;
  2470. DateTime? startTime;
  2471. int duration;
  2472. CourseTypeEnum courseType;
  2473. CourseAudienceTypeEnum audienceType;
  2474. String? coursewareToken;
  2475. String? teacherName;
  2476. CourseViewRangeEnum viewRange;
  2477. List<String>? caseLabelCodes;
  2478. List<String>? courseLabelCodes;
  2479. List<String>? userGroupCodes;
  2480. double price;
  2481. List<String>? courseVideoCodes;
  2482. List<CourseExaminationDTO>? bindExams;
  2483. bool isSmallClass;
  2484. List<String>? assistants;
  2485. List<String>? experts;
  2486. bool isAgentCourse;
  2487. List<String>? courseAlbumCodes;
  2488. bool isStick;
  2489. int sort;
  2490. AdminUpdateCourseRequest({
  2491. this.code,
  2492. this.name,
  2493. this.courseIntro,
  2494. this.teacherCode,
  2495. this.cover,
  2496. this.startTime,
  2497. this.duration = 0,
  2498. this.courseType = CourseTypeEnum.Unknown,
  2499. this.audienceType = CourseAudienceTypeEnum.Unknown,
  2500. this.coursewareToken,
  2501. this.teacherName,
  2502. this.viewRange = CourseViewRangeEnum.All,
  2503. this.caseLabelCodes,
  2504. this.courseLabelCodes,
  2505. this.userGroupCodes,
  2506. this.price = 0,
  2507. this.courseVideoCodes,
  2508. this.bindExams,
  2509. this.isSmallClass = false,
  2510. this.assistants,
  2511. this.experts,
  2512. this.isAgentCourse = false,
  2513. this.courseAlbumCodes,
  2514. this.isStick = false,
  2515. this.sort = 0,
  2516. String? token,
  2517. }) : super(
  2518. token: token,
  2519. );
  2520. factory AdminUpdateCourseRequest.fromJson(Map<String, dynamic> map) {
  2521. return AdminUpdateCourseRequest(
  2522. code: map['Code'],
  2523. name: map['Name'],
  2524. courseIntro: map['CourseIntro'],
  2525. teacherCode: map['TeacherCode'],
  2526. cover: map['Cover'],
  2527. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  2528. duration: map['Duration'],
  2529. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  2530. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  2531. coursewareToken: map['CoursewareToken'],
  2532. teacherName: map['TeacherName'],
  2533. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  2534. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  2535. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  2536. userGroupCodes: map['UserGroupCodes']?.cast<String>().toList(),
  2537. price: double.parse(map['Price'].toString()),
  2538. courseVideoCodes: map['CourseVideoCodes']?.cast<String>().toList(),
  2539. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2540. isSmallClass: map['IsSmallClass'],
  2541. assistants: map['Assistants']?.cast<String>().toList(),
  2542. experts: map['Experts']?.cast<String>().toList(),
  2543. isAgentCourse: map['IsAgentCourse'],
  2544. courseAlbumCodes: map['CourseAlbumCodes']?.cast<String>().toList(),
  2545. isStick: map['IsStick'],
  2546. sort: map['Sort'],
  2547. token: map['Token'],
  2548. );
  2549. }
  2550. Map<String, dynamic> toJson() {
  2551. final map = super.toJson();
  2552. if(code != null)
  2553. map['Code'] = code;
  2554. if(name != null)
  2555. map['Name'] = name;
  2556. if(courseIntro != null)
  2557. map['CourseIntro'] = courseIntro;
  2558. if(teacherCode != null)
  2559. map['TeacherCode'] = teacherCode;
  2560. if(cover != null)
  2561. map['Cover'] = cover;
  2562. if(startTime != null)
  2563. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  2564. map['Duration'] = duration;
  2565. map['CourseType'] = courseType.index;
  2566. map['AudienceType'] = audienceType.index;
  2567. if(coursewareToken != null)
  2568. map['CoursewareToken'] = coursewareToken;
  2569. if(teacherName != null)
  2570. map['TeacherName'] = teacherName;
  2571. map['ViewRange'] = viewRange.index;
  2572. if(caseLabelCodes != null)
  2573. map['CaseLabelCodes'] = caseLabelCodes;
  2574. if(courseLabelCodes != null)
  2575. map['CourseLabelCodes'] = courseLabelCodes;
  2576. if(userGroupCodes != null)
  2577. map['UserGroupCodes'] = userGroupCodes;
  2578. map['Price'] = price;
  2579. if(courseVideoCodes != null)
  2580. map['CourseVideoCodes'] = courseVideoCodes;
  2581. if(bindExams != null)
  2582. map['BindExams'] = bindExams;
  2583. map['IsSmallClass'] = isSmallClass;
  2584. if(assistants != null)
  2585. map['Assistants'] = assistants;
  2586. if(experts != null)
  2587. map['Experts'] = experts;
  2588. map['IsAgentCourse'] = isAgentCourse;
  2589. if(courseAlbumCodes != null)
  2590. map['CourseAlbumCodes'] = courseAlbumCodes;
  2591. map['IsStick'] = isStick;
  2592. map['Sort'] = sort;
  2593. return map;
  2594. }
  2595. }
  2596. class AdminUpdateCourseBindExamsRequest extends TokenRequest{
  2597. String? code;
  2598. List<CourseExaminationDTO>? bindExams;
  2599. AdminUpdateCourseBindExamsRequest({
  2600. this.code,
  2601. this.bindExams,
  2602. String? token,
  2603. }) : super(
  2604. token: token,
  2605. );
  2606. factory AdminUpdateCourseBindExamsRequest.fromJson(Map<String, dynamic> map) {
  2607. return AdminUpdateCourseBindExamsRequest(
  2608. code: map['Code'],
  2609. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2610. token: map['Token'],
  2611. );
  2612. }
  2613. Map<String, dynamic> toJson() {
  2614. final map = super.toJson();
  2615. if(code != null)
  2616. map['Code'] = code;
  2617. if(bindExams != null)
  2618. map['BindExams'] = bindExams;
  2619. return map;
  2620. }
  2621. }
  2622. class AssignedAdminsToOrganizationsRequest extends TokenRequest{
  2623. List<String>? assignedAdmins;
  2624. List<String>? organizationCodes;
  2625. AssignedAdminsToOrganizationsRequest({
  2626. this.assignedAdmins,
  2627. this.organizationCodes,
  2628. String? token,
  2629. }) : super(
  2630. token: token,
  2631. );
  2632. factory AssignedAdminsToOrganizationsRequest.fromJson(Map<String, dynamic> map) {
  2633. return AssignedAdminsToOrganizationsRequest(
  2634. assignedAdmins: map['AssignedAdmins']?.cast<String>().toList(),
  2635. organizationCodes: map['OrganizationCodes']?.cast<String>().toList(),
  2636. token: map['Token'],
  2637. );
  2638. }
  2639. Map<String, dynamic> toJson() {
  2640. final map = super.toJson();
  2641. if(assignedAdmins != null)
  2642. map['AssignedAdmins'] = assignedAdmins;
  2643. if(organizationCodes != null)
  2644. map['OrganizationCodes'] = organizationCodes;
  2645. return map;
  2646. }
  2647. }
  2648. class ClearLogOperateDTO {
  2649. String? serverHost;
  2650. DateTime? lastClearTime;
  2651. DateTime? lastClearOperateTime;
  2652. ClearLogOperateDTO({
  2653. this.serverHost,
  2654. this.lastClearTime,
  2655. this.lastClearOperateTime,
  2656. });
  2657. factory ClearLogOperateDTO.fromJson(Map<String, dynamic> map) {
  2658. return ClearLogOperateDTO(
  2659. serverHost: map['ServerHost'],
  2660. lastClearTime: map['LastClearTime'] != null ? DateTime.parse(map['LastClearTime']) : null,
  2661. lastClearOperateTime: map['LastClearOperateTime'] != null ? DateTime.parse(map['LastClearOperateTime']) : null,
  2662. );
  2663. }
  2664. Map<String, dynamic> toJson() {
  2665. final map = Map<String, dynamic>();
  2666. if(serverHost != null) {
  2667. map['ServerHost'] = serverHost;
  2668. }
  2669. if(lastClearTime != null) {
  2670. map['LastClearTime'] = JsonRpcUtils.dateFormat(lastClearTime!);
  2671. }
  2672. if(lastClearOperateTime != null) {
  2673. map['LastClearOperateTime'] = JsonRpcUtils.dateFormat(lastClearOperateTime!);
  2674. }
  2675. return map;
  2676. }
  2677. }
  2678. class AdminInfoDTO extends BaseDTO{
  2679. String? adminCode;
  2680. String? fatherCode;
  2681. String? adminName;
  2682. String? fullName;
  2683. String? secretPassword;
  2684. String? headImageToken;
  2685. String? licenseKey;
  2686. String? lastIP;
  2687. String? phone;
  2688. String? email;
  2689. List<String>? roleCodes;
  2690. LoginLockInfoDTO? loginLockInfo;
  2691. DateTime? passwordUpdateTime;
  2692. List<String>? passwordRecords;
  2693. List<ClearLogOperateDTO>? clearLogOperateList;
  2694. AdminInfoDTO({
  2695. this.adminCode,
  2696. this.fatherCode,
  2697. this.adminName,
  2698. this.fullName,
  2699. this.secretPassword,
  2700. this.headImageToken,
  2701. this.licenseKey,
  2702. this.lastIP,
  2703. this.phone,
  2704. this.email,
  2705. this.roleCodes,
  2706. this.loginLockInfo,
  2707. this.passwordUpdateTime,
  2708. this.passwordRecords,
  2709. this.clearLogOperateList,
  2710. DateTime? createTime,
  2711. DateTime? updateTime,
  2712. }) : super(
  2713. createTime: createTime,
  2714. updateTime: updateTime,
  2715. );
  2716. factory AdminInfoDTO.fromJson(Map<String, dynamic> map) {
  2717. return AdminInfoDTO(
  2718. adminCode: map['AdminCode'],
  2719. fatherCode: map['FatherCode'],
  2720. adminName: map['AdminName'],
  2721. fullName: map['FullName'],
  2722. secretPassword: map['SecretPassword'],
  2723. headImageToken: map['HeadImageToken'],
  2724. licenseKey: map['LicenseKey'],
  2725. lastIP: map['LastIP'],
  2726. phone: map['Phone'],
  2727. email: map['Email'],
  2728. roleCodes: map['RoleCodes']?.cast<String>().toList(),
  2729. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  2730. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  2731. passwordRecords: map['PasswordRecords']?.cast<String>().toList(),
  2732. clearLogOperateList: map['ClearLogOperateList'] != null ? (map['ClearLogOperateList'] as List).map((e)=>ClearLogOperateDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2733. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  2734. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  2735. );
  2736. }
  2737. Map<String, dynamic> toJson() {
  2738. final map = super.toJson();
  2739. if(adminCode != null)
  2740. map['AdminCode'] = adminCode;
  2741. if(fatherCode != null)
  2742. map['FatherCode'] = fatherCode;
  2743. if(adminName != null)
  2744. map['AdminName'] = adminName;
  2745. if(fullName != null)
  2746. map['FullName'] = fullName;
  2747. if(secretPassword != null)
  2748. map['SecretPassword'] = secretPassword;
  2749. if(headImageToken != null)
  2750. map['HeadImageToken'] = headImageToken;
  2751. if(licenseKey != null)
  2752. map['LicenseKey'] = licenseKey;
  2753. if(lastIP != null)
  2754. map['LastIP'] = lastIP;
  2755. if(phone != null)
  2756. map['Phone'] = phone;
  2757. if(email != null)
  2758. map['Email'] = email;
  2759. if(roleCodes != null)
  2760. map['RoleCodes'] = roleCodes;
  2761. if(loginLockInfo != null)
  2762. map['LoginLockInfo'] = loginLockInfo;
  2763. if(passwordUpdateTime != null)
  2764. map['PasswordUpdateTime'] = JsonRpcUtils.dateFormat(passwordUpdateTime!);
  2765. if(passwordRecords != null)
  2766. map['PasswordRecords'] = passwordRecords;
  2767. if(clearLogOperateList != null)
  2768. map['ClearLogOperateList'] = clearLogOperateList;
  2769. return map;
  2770. }
  2771. }
  2772. enum AdminMigratoryRoleEnum {
  2773. PrimaryAdmin01,
  2774. GeneralAdmin,
  2775. }
  2776. class AdminMigratoryInfo extends AdminInfoDTO{
  2777. AdminMigratoryRoleEnum adminRole;
  2778. bool isDelete;
  2779. AdminMigratoryInfo({
  2780. this.adminRole = AdminMigratoryRoleEnum.PrimaryAdmin01,
  2781. this.isDelete = false,
  2782. String? adminCode,
  2783. String? fatherCode,
  2784. String? adminName,
  2785. String? fullName,
  2786. String? secretPassword,
  2787. String? headImageToken,
  2788. String? licenseKey,
  2789. String? lastIP,
  2790. String? phone,
  2791. String? email,
  2792. List<String>? roleCodes,
  2793. LoginLockInfoDTO? loginLockInfo,
  2794. DateTime? passwordUpdateTime,
  2795. List<String>? passwordRecords,
  2796. List<ClearLogOperateDTO>? clearLogOperateList,
  2797. DateTime? createTime,
  2798. DateTime? updateTime,
  2799. }) : super(
  2800. adminCode: adminCode,
  2801. fatherCode: fatherCode,
  2802. adminName: adminName,
  2803. fullName: fullName,
  2804. secretPassword: secretPassword,
  2805. headImageToken: headImageToken,
  2806. licenseKey: licenseKey,
  2807. lastIP: lastIP,
  2808. phone: phone,
  2809. email: email,
  2810. roleCodes: roleCodes,
  2811. loginLockInfo: loginLockInfo,
  2812. passwordUpdateTime: passwordUpdateTime,
  2813. passwordRecords: passwordRecords,
  2814. clearLogOperateList: clearLogOperateList,
  2815. createTime: createTime,
  2816. updateTime: updateTime,
  2817. );
  2818. factory AdminMigratoryInfo.fromJson(Map<String, dynamic> map) {
  2819. return AdminMigratoryInfo(
  2820. adminRole: AdminMigratoryRoleEnum.values.firstWhere((e) => e.index == map['AdminRole']),
  2821. isDelete: map['IsDelete'],
  2822. adminCode: map['AdminCode'],
  2823. fatherCode: map['FatherCode'],
  2824. adminName: map['AdminName'],
  2825. fullName: map['FullName'],
  2826. secretPassword: map['SecretPassword'],
  2827. headImageToken: map['HeadImageToken'],
  2828. licenseKey: map['LicenseKey'],
  2829. lastIP: map['LastIP'],
  2830. phone: map['Phone'],
  2831. email: map['Email'],
  2832. roleCodes: map['RoleCodes']?.cast<String>().toList(),
  2833. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  2834. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  2835. passwordRecords: map['PasswordRecords']?.cast<String>().toList(),
  2836. clearLogOperateList: map['ClearLogOperateList'] != null ? (map['ClearLogOperateList'] as List).map((e)=>ClearLogOperateDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2837. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  2838. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  2839. );
  2840. }
  2841. Map<String, dynamic> toJson() {
  2842. final map = super.toJson();
  2843. map['AdminRole'] = adminRole.index;
  2844. map['IsDelete'] = isDelete;
  2845. return map;
  2846. }
  2847. }
  2848. class BatchInsertAdminRequest extends TokenRequest{
  2849. SyncDBEnum syncType;
  2850. List<AdminMigratoryInfo>? adminMigratorys;
  2851. BatchInsertAdminRequest({
  2852. this.syncType = SyncDBEnum.Migrate,
  2853. this.adminMigratorys,
  2854. String? token,
  2855. }) : super(
  2856. token: token,
  2857. );
  2858. factory BatchInsertAdminRequest.fromJson(Map<String, dynamic> map) {
  2859. return BatchInsertAdminRequest(
  2860. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  2861. adminMigratorys: map['AdminMigratorys'] != null ? (map['AdminMigratorys'] as List).map((e)=>AdminMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  2862. token: map['Token'],
  2863. );
  2864. }
  2865. Map<String, dynamic> toJson() {
  2866. final map = super.toJson();
  2867. map['SyncType'] = syncType.index;
  2868. if(adminMigratorys != null)
  2869. map['AdminMigratorys'] = adminMigratorys;
  2870. return map;
  2871. }
  2872. }
  2873. class CourseLabelMigratoryInfo extends BaseDTO{
  2874. bool isDelete;
  2875. String? code;
  2876. List<LabelLanguageConfigDTO>? labelLanguageConfigs;
  2877. OrganizationPatientTypeEnum useObjectType;
  2878. LabelTypeEnum type;
  2879. CourseLabelMigratoryInfo({
  2880. this.isDelete = false,
  2881. this.code,
  2882. this.labelLanguageConfigs,
  2883. this.useObjectType = OrganizationPatientTypeEnum.Person,
  2884. this.type = LabelTypeEnum.Unknown,
  2885. DateTime? createTime,
  2886. DateTime? updateTime,
  2887. }) : super(
  2888. createTime: createTime,
  2889. updateTime: updateTime,
  2890. );
  2891. factory CourseLabelMigratoryInfo.fromJson(Map<String, dynamic> map) {
  2892. return CourseLabelMigratoryInfo(
  2893. isDelete: map['IsDelete'],
  2894. code: map['Code'],
  2895. labelLanguageConfigs: map['LabelLanguageConfigs'] != null ? (map['LabelLanguageConfigs'] as List).map((e)=>LabelLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2896. useObjectType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['UseObjectType']),
  2897. type: LabelTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  2898. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  2899. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  2900. );
  2901. }
  2902. Map<String, dynamic> toJson() {
  2903. final map = super.toJson();
  2904. map['IsDelete'] = isDelete;
  2905. if(code != null)
  2906. map['Code'] = code;
  2907. if(labelLanguageConfigs != null)
  2908. map['LabelLanguageConfigs'] = labelLanguageConfigs;
  2909. map['UseObjectType'] = useObjectType.index;
  2910. map['Type'] = type.index;
  2911. return map;
  2912. }
  2913. }
  2914. class BatchInsertCourseLabelRequest extends TokenRequest{
  2915. SyncDBEnum syncType;
  2916. List<CourseLabelMigratoryInfo>? courseLabelMigratorys;
  2917. BatchInsertCourseLabelRequest({
  2918. this.syncType = SyncDBEnum.Migrate,
  2919. this.courseLabelMigratorys,
  2920. String? token,
  2921. }) : super(
  2922. token: token,
  2923. );
  2924. factory BatchInsertCourseLabelRequest.fromJson(Map<String, dynamic> map) {
  2925. return BatchInsertCourseLabelRequest(
  2926. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  2927. courseLabelMigratorys: map['CourseLabelMigratorys'] != null ? (map['CourseLabelMigratorys'] as List).map((e)=>CourseLabelMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  2928. token: map['Token'],
  2929. );
  2930. }
  2931. Map<String, dynamic> toJson() {
  2932. final map = super.toJson();
  2933. map['SyncType'] = syncType.index;
  2934. if(courseLabelMigratorys != null)
  2935. map['CourseLabelMigratorys'] = courseLabelMigratorys;
  2936. return map;
  2937. }
  2938. }
  2939. class CourseMigratoryInfo extends BaseDTO{
  2940. bool isDelete;
  2941. String? code;
  2942. String? name;
  2943. String? courseIntro;
  2944. String? teacherCode;
  2945. String? poster;
  2946. CourseStatusEnum status;
  2947. DateTime? startTime;
  2948. int duration;
  2949. DateTime? deadline;
  2950. DateTime? actualStartTime;
  2951. DateTime? actualEndTime;
  2952. String? courseToken;
  2953. String? creatorCode;
  2954. String? organizationCode;
  2955. CourseTypeEnum courseType;
  2956. CourseAudienceTypeEnum audienceType;
  2957. String? coursewareToken;
  2958. String? teacherName;
  2959. CourseViewRangeEnum viewRange;
  2960. List<String>? caseLabelCodes;
  2961. List<String>? courseLabelCodes;
  2962. List<String>? userGroupCodes;
  2963. double price;
  2964. List<String>? courseVideoCodes;
  2965. List<StudentInfoDTO>? assistants;
  2966. List<StudentInfoDTO>? experts;
  2967. bool isAgentCourse;
  2968. List<String>? courseAlbumCodes;
  2969. bool isStick;
  2970. int sort;
  2971. List<String>? courseMaterialCodes;
  2972. List<CourseExaminationDTO>? bindExams;
  2973. CourseAppearTypeEnum courseAppearType;
  2974. List<StudentInfoDTO>? students;
  2975. int playCount;
  2976. CourseMigratoryInfo({
  2977. this.isDelete = false,
  2978. this.code,
  2979. this.name,
  2980. this.courseIntro,
  2981. this.teacherCode,
  2982. this.poster,
  2983. this.status = CourseStatusEnum.Unknown,
  2984. this.startTime,
  2985. this.duration = 0,
  2986. this.deadline,
  2987. this.actualStartTime,
  2988. this.actualEndTime,
  2989. this.courseToken,
  2990. this.creatorCode,
  2991. this.organizationCode,
  2992. this.courseType = CourseTypeEnum.Unknown,
  2993. this.audienceType = CourseAudienceTypeEnum.Unknown,
  2994. this.coursewareToken,
  2995. this.teacherName,
  2996. this.viewRange = CourseViewRangeEnum.All,
  2997. this.caseLabelCodes,
  2998. this.courseLabelCodes,
  2999. this.userGroupCodes,
  3000. this.price = 0,
  3001. this.courseVideoCodes,
  3002. this.assistants,
  3003. this.experts,
  3004. this.isAgentCourse = false,
  3005. this.courseAlbumCodes,
  3006. this.isStick = false,
  3007. this.sort = 0,
  3008. this.courseMaterialCodes,
  3009. this.bindExams,
  3010. this.courseAppearType = CourseAppearTypeEnum.Unknown,
  3011. this.students,
  3012. this.playCount = 0,
  3013. DateTime? createTime,
  3014. DateTime? updateTime,
  3015. }) : super(
  3016. createTime: createTime,
  3017. updateTime: updateTime,
  3018. );
  3019. factory CourseMigratoryInfo.fromJson(Map<String, dynamic> map) {
  3020. return CourseMigratoryInfo(
  3021. isDelete: map['IsDelete'],
  3022. code: map['Code'],
  3023. name: map['Name'],
  3024. courseIntro: map['CourseIntro'],
  3025. teacherCode: map['TeacherCode'],
  3026. poster: map['Poster'],
  3027. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  3028. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  3029. duration: map['Duration'],
  3030. deadline: map['Deadline'] != null ? DateTime.parse(map['Deadline']) : null,
  3031. actualStartTime: map['ActualStartTime'] != null ? DateTime.parse(map['ActualStartTime']) : null,
  3032. actualEndTime: map['ActualEndTime'] != null ? DateTime.parse(map['ActualEndTime']) : null,
  3033. courseToken: map['CourseToken'],
  3034. creatorCode: map['CreatorCode'],
  3035. organizationCode: map['OrganizationCode'],
  3036. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  3037. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  3038. coursewareToken: map['CoursewareToken'],
  3039. teacherName: map['TeacherName'],
  3040. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  3041. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  3042. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  3043. userGroupCodes: map['UserGroupCodes']?.cast<String>().toList(),
  3044. price: double.parse(map['Price'].toString()),
  3045. courseVideoCodes: map['CourseVideoCodes']?.cast<String>().toList(),
  3046. assistants: map['Assistants'] != null ? (map['Assistants'] as List).map((e)=>StudentInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3047. experts: map['Experts'] != null ? (map['Experts'] as List).map((e)=>StudentInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3048. isAgentCourse: map['IsAgentCourse'],
  3049. courseAlbumCodes: map['CourseAlbumCodes']?.cast<String>().toList(),
  3050. isStick: map['IsStick'],
  3051. sort: map['Sort'],
  3052. courseMaterialCodes: map['CourseMaterialCodes']?.cast<String>().toList(),
  3053. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3054. courseAppearType: CourseAppearTypeEnum.values.firstWhere((e) => e.index == map['CourseAppearType']),
  3055. students: map['Students'] != null ? (map['Students'] as List).map((e)=>StudentInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3056. playCount: map['PlayCount'],
  3057. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3058. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3059. );
  3060. }
  3061. Map<String, dynamic> toJson() {
  3062. final map = super.toJson();
  3063. map['IsDelete'] = isDelete;
  3064. if(code != null)
  3065. map['Code'] = code;
  3066. if(name != null)
  3067. map['Name'] = name;
  3068. if(courseIntro != null)
  3069. map['CourseIntro'] = courseIntro;
  3070. if(teacherCode != null)
  3071. map['TeacherCode'] = teacherCode;
  3072. if(poster != null)
  3073. map['Poster'] = poster;
  3074. map['Status'] = status.index;
  3075. if(startTime != null)
  3076. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  3077. map['Duration'] = duration;
  3078. if(deadline != null)
  3079. map['Deadline'] = JsonRpcUtils.dateFormat(deadline!);
  3080. if(actualStartTime != null)
  3081. map['ActualStartTime'] = JsonRpcUtils.dateFormat(actualStartTime!);
  3082. if(actualEndTime != null)
  3083. map['ActualEndTime'] = JsonRpcUtils.dateFormat(actualEndTime!);
  3084. if(courseToken != null)
  3085. map['CourseToken'] = courseToken;
  3086. if(creatorCode != null)
  3087. map['CreatorCode'] = creatorCode;
  3088. if(organizationCode != null)
  3089. map['OrganizationCode'] = organizationCode;
  3090. map['CourseType'] = courseType.index;
  3091. map['AudienceType'] = audienceType.index;
  3092. if(coursewareToken != null)
  3093. map['CoursewareToken'] = coursewareToken;
  3094. if(teacherName != null)
  3095. map['TeacherName'] = teacherName;
  3096. map['ViewRange'] = viewRange.index;
  3097. if(caseLabelCodes != null)
  3098. map['CaseLabelCodes'] = caseLabelCodes;
  3099. if(courseLabelCodes != null)
  3100. map['CourseLabelCodes'] = courseLabelCodes;
  3101. if(userGroupCodes != null)
  3102. map['UserGroupCodes'] = userGroupCodes;
  3103. map['Price'] = price;
  3104. if(courseVideoCodes != null)
  3105. map['CourseVideoCodes'] = courseVideoCodes;
  3106. if(assistants != null)
  3107. map['Assistants'] = assistants;
  3108. if(experts != null)
  3109. map['Experts'] = experts;
  3110. map['IsAgentCourse'] = isAgentCourse;
  3111. if(courseAlbumCodes != null)
  3112. map['CourseAlbumCodes'] = courseAlbumCodes;
  3113. map['IsStick'] = isStick;
  3114. map['Sort'] = sort;
  3115. if(courseMaterialCodes != null)
  3116. map['CourseMaterialCodes'] = courseMaterialCodes;
  3117. if(bindExams != null)
  3118. map['BindExams'] = bindExams;
  3119. map['CourseAppearType'] = courseAppearType.index;
  3120. if(students != null)
  3121. map['Students'] = students;
  3122. map['PlayCount'] = playCount;
  3123. return map;
  3124. }
  3125. }
  3126. class VideoMigratoryInfo extends BaseDTO{
  3127. bool isDelete;
  3128. String? code;
  3129. String? name;
  3130. String? videoToken;
  3131. String? vodFileId;
  3132. String? poster;
  3133. int duration;
  3134. double videoSize;
  3135. String? creatorCode;
  3136. String? creatorName;
  3137. UploadFileTypeEnum fodderType;
  3138. bool isPublic;
  3139. CourseViewRangeEnum viewRange;
  3140. int playCount;
  3141. String? srcFileToken;
  3142. VideoMigratoryInfo({
  3143. this.isDelete = false,
  3144. this.code,
  3145. this.name,
  3146. this.videoToken,
  3147. this.vodFileId,
  3148. this.poster,
  3149. this.duration = 0,
  3150. this.videoSize = 0,
  3151. this.creatorCode,
  3152. this.creatorName,
  3153. this.fodderType = UploadFileTypeEnum.Unknown,
  3154. this.isPublic = false,
  3155. this.viewRange = CourseViewRangeEnum.All,
  3156. this.playCount = 0,
  3157. this.srcFileToken,
  3158. DateTime? createTime,
  3159. DateTime? updateTime,
  3160. }) : super(
  3161. createTime: createTime,
  3162. updateTime: updateTime,
  3163. );
  3164. factory VideoMigratoryInfo.fromJson(Map<String, dynamic> map) {
  3165. return VideoMigratoryInfo(
  3166. isDelete: map['IsDelete'],
  3167. code: map['Code'],
  3168. name: map['Name'],
  3169. videoToken: map['VideoToken'],
  3170. vodFileId: map['VodFileId'],
  3171. poster: map['Poster'],
  3172. duration: map['Duration'],
  3173. videoSize: double.parse(map['VideoSize'].toString()),
  3174. creatorCode: map['CreatorCode'],
  3175. creatorName: map['CreatorName'],
  3176. fodderType: UploadFileTypeEnum.values.firstWhere((e) => e.index == map['FodderType']),
  3177. isPublic: map['IsPublic'],
  3178. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  3179. playCount: map['PlayCount'],
  3180. srcFileToken: map['SrcFileToken'],
  3181. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3182. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3183. );
  3184. }
  3185. Map<String, dynamic> toJson() {
  3186. final map = super.toJson();
  3187. map['IsDelete'] = isDelete;
  3188. if(code != null)
  3189. map['Code'] = code;
  3190. if(name != null)
  3191. map['Name'] = name;
  3192. if(videoToken != null)
  3193. map['VideoToken'] = videoToken;
  3194. if(vodFileId != null)
  3195. map['VodFileId'] = vodFileId;
  3196. if(poster != null)
  3197. map['Poster'] = poster;
  3198. map['Duration'] = duration;
  3199. map['VideoSize'] = videoSize;
  3200. if(creatorCode != null)
  3201. map['CreatorCode'] = creatorCode;
  3202. if(creatorName != null)
  3203. map['CreatorName'] = creatorName;
  3204. map['FodderType'] = fodderType.index;
  3205. map['IsPublic'] = isPublic;
  3206. map['ViewRange'] = viewRange.index;
  3207. map['PlayCount'] = playCount;
  3208. if(srcFileToken != null)
  3209. map['SrcFileToken'] = srcFileToken;
  3210. return map;
  3211. }
  3212. }
  3213. class ExaminationPaperDTO {
  3214. String? code;
  3215. String? name;
  3216. double totalScore;
  3217. List<QuestionDetailDTO>? questionList;
  3218. List<String>? caseLabelCodes;
  3219. List<String>? courseLabelCodes;
  3220. DateTime? createTime;
  3221. DateTime? updateTime;
  3222. ExaminationPaperDTO({
  3223. this.code,
  3224. this.name,
  3225. this.totalScore = 0,
  3226. this.questionList,
  3227. this.caseLabelCodes,
  3228. this.courseLabelCodes,
  3229. this.createTime,
  3230. this.updateTime,
  3231. });
  3232. factory ExaminationPaperDTO.fromJson(Map<String, dynamic> map) {
  3233. return ExaminationPaperDTO(
  3234. code: map['Code'],
  3235. name: map['Name'],
  3236. totalScore: double.parse(map['TotalScore'].toString()),
  3237. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>QuestionDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3238. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  3239. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  3240. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3241. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3242. );
  3243. }
  3244. Map<String, dynamic> toJson() {
  3245. final map = Map<String, dynamic>();
  3246. if(code != null) {
  3247. map['Code'] = code;
  3248. }
  3249. if(name != null) {
  3250. map['Name'] = name;
  3251. }
  3252. map['TotalScore'] = totalScore;
  3253. if(questionList != null) {
  3254. map['QuestionList'] = questionList;
  3255. }
  3256. if(caseLabelCodes != null) {
  3257. map['CaseLabelCodes'] = caseLabelCodes;
  3258. }
  3259. if(courseLabelCodes != null) {
  3260. map['CourseLabelCodes'] = courseLabelCodes;
  3261. }
  3262. if(createTime != null) {
  3263. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  3264. }
  3265. if(updateTime != null) {
  3266. map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
  3267. }
  3268. return map;
  3269. }
  3270. }
  3271. class ExaminationQuestionDTO extends BaseDTO{
  3272. bool isDelete;
  3273. String? code;
  3274. String? stem;
  3275. QuestionTypeEnum questionType;
  3276. List<QuestionOptionDTO>? questionOptionList;
  3277. List<QuestionFileDTO>? fileList;
  3278. List<String>? caseLabelCodes;
  3279. List<String>? courseLabelCodes;
  3280. bool trueOrFalse;
  3281. ExaminationQuestionDTO({
  3282. this.isDelete = false,
  3283. this.code,
  3284. this.stem,
  3285. this.questionType = QuestionTypeEnum.Judge,
  3286. this.questionOptionList,
  3287. this.fileList,
  3288. this.caseLabelCodes,
  3289. this.courseLabelCodes,
  3290. this.trueOrFalse = false,
  3291. DateTime? createTime,
  3292. DateTime? updateTime,
  3293. }) : super(
  3294. createTime: createTime,
  3295. updateTime: updateTime,
  3296. );
  3297. factory ExaminationQuestionDTO.fromJson(Map<String, dynamic> map) {
  3298. return ExaminationQuestionDTO(
  3299. isDelete: map['IsDelete'],
  3300. code: map['Code'],
  3301. stem: map['Stem'],
  3302. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  3303. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3304. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3305. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  3306. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  3307. trueOrFalse: map['TrueOrFalse'],
  3308. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3309. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3310. );
  3311. }
  3312. Map<String, dynamic> toJson() {
  3313. final map = super.toJson();
  3314. map['IsDelete'] = isDelete;
  3315. if(code != null)
  3316. map['Code'] = code;
  3317. if(stem != null)
  3318. map['Stem'] = stem;
  3319. map['QuestionType'] = questionType.index;
  3320. if(questionOptionList != null)
  3321. map['QuestionOptionList'] = questionOptionList;
  3322. if(fileList != null)
  3323. map['FileList'] = fileList;
  3324. if(caseLabelCodes != null)
  3325. map['CaseLabelCodes'] = caseLabelCodes;
  3326. if(courseLabelCodes != null)
  3327. map['CourseLabelCodes'] = courseLabelCodes;
  3328. map['TrueOrFalse'] = trueOrFalse;
  3329. return map;
  3330. }
  3331. }
  3332. enum RelevanceTypeEnum {
  3333. Course,
  3334. }
  3335. class StudentExaminationDTO extends BaseStudentExaminationDTO{
  3336. bool isDelete;
  3337. RelevanceTypeEnum relevanceType;
  3338. String? relevanceCode;
  3339. List<ExaminationAnswerDTO>? studentAnswers;
  3340. int submitCount;
  3341. StudentExaminationDTO({
  3342. this.isDelete = false,
  3343. this.relevanceType = RelevanceTypeEnum.Course,
  3344. this.relevanceCode,
  3345. this.studentAnswers,
  3346. this.submitCount = 0,
  3347. String? code,
  3348. String? examinationCode,
  3349. String? studentCode,
  3350. String? studentName,
  3351. double totalScore = 0,
  3352. }) : super(
  3353. code: code,
  3354. examinationCode: examinationCode,
  3355. studentCode: studentCode,
  3356. studentName: studentName,
  3357. totalScore: totalScore,
  3358. );
  3359. factory StudentExaminationDTO.fromJson(Map<String, dynamic> map) {
  3360. return StudentExaminationDTO(
  3361. isDelete: map['IsDelete'],
  3362. relevanceType: RelevanceTypeEnum.values.firstWhere((e) => e.index == map['RelevanceType']),
  3363. relevanceCode: map['RelevanceCode'],
  3364. studentAnswers: map['StudentAnswers'] != null ? (map['StudentAnswers'] as List).map((e)=>ExaminationAnswerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3365. submitCount: map['SubmitCount'],
  3366. code: map['Code'],
  3367. examinationCode: map['ExaminationCode'],
  3368. studentCode: map['StudentCode'],
  3369. studentName: map['StudentName'],
  3370. totalScore: double.parse(map['TotalScore'].toString()),
  3371. );
  3372. }
  3373. Map<String, dynamic> toJson() {
  3374. final map = super.toJson();
  3375. map['IsDelete'] = isDelete;
  3376. map['RelevanceType'] = relevanceType.index;
  3377. if(relevanceCode != null)
  3378. map['RelevanceCode'] = relevanceCode;
  3379. if(studentAnswers != null)
  3380. map['StudentAnswers'] = studentAnswers;
  3381. map['SubmitCount'] = submitCount;
  3382. return map;
  3383. }
  3384. }
  3385. class ExamMigratoryInfo extends ExaminationPaperDTO{
  3386. bool isDelete;
  3387. List<ExaminationQuestionDTO>? examinationQuestions;
  3388. List<StudentExaminationDTO>? studentExamination;
  3389. ExamMigratoryInfo({
  3390. this.isDelete = false,
  3391. this.examinationQuestions,
  3392. this.studentExamination,
  3393. String? code,
  3394. String? name,
  3395. double totalScore = 0,
  3396. List<QuestionDetailDTO>? questionList,
  3397. List<String>? caseLabelCodes,
  3398. List<String>? courseLabelCodes,
  3399. DateTime? createTime,
  3400. DateTime? updateTime,
  3401. }) : super(
  3402. code: code,
  3403. name: name,
  3404. totalScore: totalScore,
  3405. questionList: questionList,
  3406. caseLabelCodes: caseLabelCodes,
  3407. courseLabelCodes: courseLabelCodes,
  3408. createTime: createTime,
  3409. updateTime: updateTime,
  3410. );
  3411. factory ExamMigratoryInfo.fromJson(Map<String, dynamic> map) {
  3412. return ExamMigratoryInfo(
  3413. isDelete: map['IsDelete'],
  3414. examinationQuestions: map['ExaminationQuestions'] != null ? (map['ExaminationQuestions'] as List).map((e)=>ExaminationQuestionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3415. studentExamination: map['StudentExamination'] != null ? (map['StudentExamination'] as List).map((e)=>StudentExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3416. code: map['Code'],
  3417. name: map['Name'],
  3418. totalScore: double.parse(map['TotalScore'].toString()),
  3419. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>QuestionDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3420. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  3421. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  3422. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3423. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3424. );
  3425. }
  3426. Map<String, dynamic> toJson() {
  3427. final map = super.toJson();
  3428. map['IsDelete'] = isDelete;
  3429. if(examinationQuestions != null)
  3430. map['ExaminationQuestions'] = examinationQuestions;
  3431. if(studentExamination != null)
  3432. map['StudentExamination'] = studentExamination;
  3433. return map;
  3434. }
  3435. }
  3436. class BatchInsertCourseRequest extends TokenRequest{
  3437. SyncDBEnum syncType;
  3438. List<CourseMigratoryInfo>? courseMigratorys;
  3439. List<VideoMigratoryInfo>? videoMigratorys;
  3440. List<ExamMigratoryInfo>? examMigratorys;
  3441. List<RemoteExaminationDTO>? remoteExaminationMigratorys;
  3442. BatchInsertCourseRequest({
  3443. this.syncType = SyncDBEnum.Migrate,
  3444. this.courseMigratorys,
  3445. this.videoMigratorys,
  3446. this.examMigratorys,
  3447. this.remoteExaminationMigratorys,
  3448. String? token,
  3449. }) : super(
  3450. token: token,
  3451. );
  3452. factory BatchInsertCourseRequest.fromJson(Map<String, dynamic> map) {
  3453. return BatchInsertCourseRequest(
  3454. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  3455. courseMigratorys: map['CourseMigratorys'] != null ? (map['CourseMigratorys'] as List).map((e)=>CourseMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  3456. videoMigratorys: map['VideoMigratorys'] != null ? (map['VideoMigratorys'] as List).map((e)=>VideoMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  3457. examMigratorys: map['ExamMigratorys'] != null ? (map['ExamMigratorys'] as List).map((e)=>ExamMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  3458. remoteExaminationMigratorys: map['RemoteExaminationMigratorys'] != null ? (map['RemoteExaminationMigratorys'] as List).map((e)=>RemoteExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3459. token: map['Token'],
  3460. );
  3461. }
  3462. Map<String, dynamic> toJson() {
  3463. final map = super.toJson();
  3464. map['SyncType'] = syncType.index;
  3465. if(courseMigratorys != null)
  3466. map['CourseMigratorys'] = courseMigratorys;
  3467. if(videoMigratorys != null)
  3468. map['VideoMigratorys'] = videoMigratorys;
  3469. if(examMigratorys != null)
  3470. map['ExamMigratorys'] = examMigratorys;
  3471. if(remoteExaminationMigratorys != null)
  3472. map['RemoteExaminationMigratorys'] = remoteExaminationMigratorys;
  3473. return map;
  3474. }
  3475. }
  3476. enum DiagnosisModuleEnum {
  3477. LiverLesionDetect,
  3478. ThyroidLesionDetect,
  3479. CarotidPlaqueDetect,
  3480. BreastLesionDetectBIRADS,
  3481. }
  3482. class DeviceMigratoryInfo extends DeviceInfoDTO{
  3483. bool isDelete;
  3484. List<DiagnosisModuleEnum>? diagnosisModule;
  3485. DeviceMigratoryInfo({
  3486. this.isDelete = false,
  3487. this.diagnosisModule,
  3488. String? deviceCode,
  3489. String? serialNumber,
  3490. String? password,
  3491. String? name,
  3492. String? description,
  3493. String? deviceModel,
  3494. String? deviceType,
  3495. String? headPicUrl,
  3496. String? deviceSoftwareVersion,
  3497. String? sDKSoftwareVersion,
  3498. String? organizationCode,
  3499. String? departmentCode,
  3500. String? shortCode,
  3501. bool isAutoShared = false,
  3502. bool isEncryptedShow = false,
  3503. DateTime? lastLoginTime,
  3504. String? systemVersion,
  3505. String? cPUModel,
  3506. String? systemLanguage,
  3507. List<String>? diagnosisModules,
  3508. List<String>? reportPosterCodes,
  3509. bool mergedChannel = false,
  3510. int mergedVideoOutputWidth = 0,
  3511. int mergedVideoOutputHeight = 0,
  3512. List<VideoDeviceDTO>? videoDeviceInfos,
  3513. DownloadModeSettingEnum downloadModeSetting = DownloadModeSettingEnum.Auto,
  3514. bool liveOpened = false,
  3515. bool supportRtc = false,
  3516. String? displayName,
  3517. DateTime? createTime,
  3518. DateTime? updateTime,
  3519. }) : super(
  3520. deviceCode: deviceCode,
  3521. serialNumber: serialNumber,
  3522. password: password,
  3523. name: name,
  3524. description: description,
  3525. deviceModel: deviceModel,
  3526. deviceType: deviceType,
  3527. headPicUrl: headPicUrl,
  3528. deviceSoftwareVersion: deviceSoftwareVersion,
  3529. sDKSoftwareVersion: sDKSoftwareVersion,
  3530. organizationCode: organizationCode,
  3531. departmentCode: departmentCode,
  3532. shortCode: shortCode,
  3533. isAutoShared: isAutoShared,
  3534. isEncryptedShow: isEncryptedShow,
  3535. lastLoginTime: lastLoginTime,
  3536. systemVersion: systemVersion,
  3537. cPUModel: cPUModel,
  3538. systemLanguage: systemLanguage,
  3539. diagnosisModules: diagnosisModules,
  3540. reportPosterCodes: reportPosterCodes,
  3541. mergedChannel: mergedChannel,
  3542. mergedVideoOutputWidth: mergedVideoOutputWidth,
  3543. mergedVideoOutputHeight: mergedVideoOutputHeight,
  3544. videoDeviceInfos: videoDeviceInfos,
  3545. downloadModeSetting: downloadModeSetting,
  3546. liveOpened: liveOpened,
  3547. supportRtc: supportRtc,
  3548. displayName: displayName,
  3549. createTime: createTime,
  3550. updateTime: updateTime,
  3551. );
  3552. factory DeviceMigratoryInfo.fromJson(Map<String, dynamic> map) {
  3553. return DeviceMigratoryInfo(
  3554. isDelete: map['IsDelete'],
  3555. diagnosisModule: map['DiagnosisModule'] != null ? (map['DiagnosisModule'] as List).map((e)=>DiagnosisModuleEnum.values.firstWhere((i) => i.index == e)).toList() : null,
  3556. deviceCode: map['DeviceCode'],
  3557. serialNumber: map['SerialNumber'],
  3558. password: map['Password'],
  3559. name: map['Name'],
  3560. description: map['Description'],
  3561. deviceModel: map['DeviceModel'],
  3562. deviceType: map['DeviceType'],
  3563. headPicUrl: map['HeadPicUrl'],
  3564. deviceSoftwareVersion: map['DeviceSoftwareVersion'],
  3565. sDKSoftwareVersion: map['SDKSoftwareVersion'],
  3566. organizationCode: map['OrganizationCode'],
  3567. departmentCode: map['DepartmentCode'],
  3568. shortCode: map['ShortCode'],
  3569. isAutoShared: map['IsAutoShared'],
  3570. isEncryptedShow: map['IsEncryptedShow'],
  3571. lastLoginTime: map['LastLoginTime'] != null ? DateTime.parse(map['LastLoginTime']) : null,
  3572. systemVersion: map['SystemVersion'],
  3573. cPUModel: map['CPUModel'],
  3574. systemLanguage: map['SystemLanguage'],
  3575. diagnosisModules: map['DiagnosisModules']?.cast<String>().toList(),
  3576. reportPosterCodes: map['ReportPosterCodes']?.cast<String>().toList(),
  3577. mergedChannel: map['MergedChannel'],
  3578. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  3579. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  3580. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3581. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  3582. liveOpened: map['LiveOpened'],
  3583. supportRtc: map['SupportRtc'],
  3584. displayName: map['DisplayName'],
  3585. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3586. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3587. );
  3588. }
  3589. Map<String, dynamic> toJson() {
  3590. final map = super.toJson();
  3591. map['IsDelete'] = isDelete;
  3592. if(diagnosisModule != null)
  3593. map['DiagnosisModule'] = diagnosisModule;
  3594. return map;
  3595. }
  3596. }
  3597. class BatchInsertDeviceRequest extends TokenRequest{
  3598. SyncDBEnum syncType;
  3599. List<DeviceMigratoryInfo>? deviceMigratorys;
  3600. BatchInsertDeviceRequest({
  3601. this.syncType = SyncDBEnum.Migrate,
  3602. this.deviceMigratorys,
  3603. String? token,
  3604. }) : super(
  3605. token: token,
  3606. );
  3607. factory BatchInsertDeviceRequest.fromJson(Map<String, dynamic> map) {
  3608. return BatchInsertDeviceRequest(
  3609. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  3610. deviceMigratorys: map['DeviceMigratorys'] != null ? (map['DeviceMigratorys'] as List).map((e)=>DeviceMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  3611. token: map['Token'],
  3612. );
  3613. }
  3614. Map<String, dynamic> toJson() {
  3615. final map = super.toJson();
  3616. map['SyncType'] = syncType.index;
  3617. if(deviceMigratorys != null)
  3618. map['DeviceMigratorys'] = deviceMigratorys;
  3619. return map;
  3620. }
  3621. }
  3622. class OrganizationMigratoryInfo extends OrganizationDTO{
  3623. bool isDelete;
  3624. List<DiagnosisModuleEnum>? diagnosisModule;
  3625. String? regionName;
  3626. String? defaultTemplateId;
  3627. List<String>? reportTemplateIds;
  3628. OrganizationMigratoryInfo({
  3629. this.isDelete = false,
  3630. this.diagnosisModule,
  3631. this.regionName,
  3632. this.defaultTemplateId,
  3633. this.reportTemplateIds,
  3634. String? description,
  3635. String? rootCode,
  3636. OrganizationTypeEnum organizationType = OrganizationTypeEnum.Corporation,
  3637. List<String>? authorityGroups,
  3638. String? nautica,
  3639. OrganizationStateEnum state = OrganizationStateEnum.WaitAudit,
  3640. List<String>? directors,
  3641. List<String>? assignedAdmins,
  3642. String? patientSettingJson,
  3643. String? examSettingJson,
  3644. String? consultationSettingJson,
  3645. String? patientSettingVersion,
  3646. String? examSettingVersion,
  3647. String? consultationSettingVersion,
  3648. String? parentOrganizationName,
  3649. String? regionCode,
  3650. String? parentCode,
  3651. String? logoUrl,
  3652. OrganizationPatientTypeEnum patientType = OrganizationPatientTypeEnum.Person,
  3653. bool isinvented = false,
  3654. List<SettingDTOClass>? settings,
  3655. List<String>? diagnosisModules,
  3656. bool isEncryptedShow = false,
  3657. double referralLimitHours = 0,
  3658. List<String>? referralOrganizationCodes,
  3659. List<ReferralOrganizationDTO>? referralOrganizations,
  3660. String? organizationCode,
  3661. String? organizationName,
  3662. String? shortCode,
  3663. DateTime? createTime,
  3664. DateTime? updateTime,
  3665. }) : super(
  3666. description: description,
  3667. rootCode: rootCode,
  3668. organizationType: organizationType,
  3669. authorityGroups: authorityGroups,
  3670. nautica: nautica,
  3671. state: state,
  3672. directors: directors,
  3673. assignedAdmins: assignedAdmins,
  3674. patientSettingJson: patientSettingJson,
  3675. examSettingJson: examSettingJson,
  3676. consultationSettingJson: consultationSettingJson,
  3677. patientSettingVersion: patientSettingVersion,
  3678. examSettingVersion: examSettingVersion,
  3679. consultationSettingVersion: consultationSettingVersion,
  3680. parentOrganizationName: parentOrganizationName,
  3681. regionCode: regionCode,
  3682. parentCode: parentCode,
  3683. logoUrl: logoUrl,
  3684. patientType: patientType,
  3685. isinvented: isinvented,
  3686. settings: settings,
  3687. diagnosisModules: diagnosisModules,
  3688. isEncryptedShow: isEncryptedShow,
  3689. referralLimitHours: referralLimitHours,
  3690. referralOrganizationCodes: referralOrganizationCodes,
  3691. referralOrganizations: referralOrganizations,
  3692. organizationCode: organizationCode,
  3693. organizationName: organizationName,
  3694. shortCode: shortCode,
  3695. createTime: createTime,
  3696. updateTime: updateTime,
  3697. );
  3698. factory OrganizationMigratoryInfo.fromJson(Map<String, dynamic> map) {
  3699. return OrganizationMigratoryInfo(
  3700. isDelete: map['IsDelete'],
  3701. diagnosisModule: map['DiagnosisModule'] != null ? (map['DiagnosisModule'] as List).map((e)=>DiagnosisModuleEnum.values.firstWhere((i) => i.index == e)).toList() : null,
  3702. regionName: map['RegionName'],
  3703. defaultTemplateId: map['DefaultTemplateId'],
  3704. reportTemplateIds: map['ReportTemplateIds']?.cast<String>().toList(),
  3705. description: map['Description'],
  3706. rootCode: map['RootCode'],
  3707. organizationType: OrganizationTypeEnum.values.firstWhere((e) => e.index == map['OrganizationType']),
  3708. authorityGroups: map['AuthorityGroups']?.cast<String>().toList(),
  3709. nautica: map['Nautica'],
  3710. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  3711. directors: map['Directors']?.cast<String>().toList(),
  3712. assignedAdmins: map['AssignedAdmins']?.cast<String>().toList(),
  3713. patientSettingJson: map['PatientSettingJson'],
  3714. examSettingJson: map['ExamSettingJson'],
  3715. consultationSettingJson: map['ConsultationSettingJson'],
  3716. patientSettingVersion: map['PatientSettingVersion'],
  3717. examSettingVersion: map['ExamSettingVersion'],
  3718. consultationSettingVersion: map['ConsultationSettingVersion'],
  3719. parentOrganizationName: map['ParentOrganizationName'],
  3720. regionCode: map['RegionCode'],
  3721. parentCode: map['ParentCode'],
  3722. logoUrl: map['LogoUrl'],
  3723. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  3724. isinvented: map['Isinvented'],
  3725. settings: map['Settings'] != null ? (map['Settings'] as List).map((e)=>SettingDTOClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  3726. diagnosisModules: map['DiagnosisModules']?.cast<String>().toList(),
  3727. isEncryptedShow: map['IsEncryptedShow'],
  3728. referralLimitHours: double.parse(map['ReferralLimitHours'].toString()),
  3729. referralOrganizationCodes: map['ReferralOrganizationCodes']?.cast<String>().toList(),
  3730. referralOrganizations: map['ReferralOrganizations'] != null ? (map['ReferralOrganizations'] as List).map((e)=>ReferralOrganizationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3731. organizationCode: map['OrganizationCode'],
  3732. organizationName: map['OrganizationName'],
  3733. shortCode: map['ShortCode'],
  3734. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3735. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3736. );
  3737. }
  3738. Map<String, dynamic> toJson() {
  3739. final map = super.toJson();
  3740. map['IsDelete'] = isDelete;
  3741. if(diagnosisModule != null)
  3742. map['DiagnosisModule'] = diagnosisModule;
  3743. if(regionName != null)
  3744. map['RegionName'] = regionName;
  3745. if(defaultTemplateId != null)
  3746. map['DefaultTemplateId'] = defaultTemplateId;
  3747. if(reportTemplateIds != null)
  3748. map['ReportTemplateIds'] = reportTemplateIds;
  3749. return map;
  3750. }
  3751. }
  3752. class BatchInsertOrganizationRequest extends TokenRequest{
  3753. SyncDBEnum syncType;
  3754. List<OrganizationMigratoryInfo>? organizationMigratorys;
  3755. BatchInsertOrganizationRequest({
  3756. this.syncType = SyncDBEnum.Migrate,
  3757. this.organizationMigratorys,
  3758. String? token,
  3759. }) : super(
  3760. token: token,
  3761. );
  3762. factory BatchInsertOrganizationRequest.fromJson(Map<String, dynamic> map) {
  3763. return BatchInsertOrganizationRequest(
  3764. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  3765. organizationMigratorys: map['OrganizationMigratorys'] != null ? (map['OrganizationMigratorys'] as List).map((e)=>OrganizationMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  3766. token: map['Token'],
  3767. );
  3768. }
  3769. Map<String, dynamic> toJson() {
  3770. final map = super.toJson();
  3771. map['SyncType'] = syncType.index;
  3772. if(organizationMigratorys != null)
  3773. map['OrganizationMigratorys'] = organizationMigratorys;
  3774. return map;
  3775. }
  3776. }
  3777. class MedicalConsortiumDetail {
  3778. String? name;
  3779. String? code;
  3780. OrganizationPatientTypeEnum patientType;
  3781. MedicalConsortiumDetail({
  3782. this.name,
  3783. this.code,
  3784. this.patientType = OrganizationPatientTypeEnum.Person,
  3785. });
  3786. factory MedicalConsortiumDetail.fromJson(Map<String, dynamic> map) {
  3787. return MedicalConsortiumDetail(
  3788. name: map['Name'],
  3789. code: map['Code'],
  3790. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  3791. );
  3792. }
  3793. Map<String, dynamic> toJson() {
  3794. final map = Map<String, dynamic>();
  3795. if(name != null) {
  3796. map['Name'] = name;
  3797. }
  3798. if(code != null) {
  3799. map['Code'] = code;
  3800. }
  3801. map['PatientType'] = patientType.index;
  3802. return map;
  3803. }
  3804. }
  3805. class BatchInsertMedicalConsortiumRequest {
  3806. List<MedicalConsortiumDetail>? medicalConsortiumDetails;
  3807. BatchInsertMedicalConsortiumRequest({
  3808. this.medicalConsortiumDetails,
  3809. });
  3810. factory BatchInsertMedicalConsortiumRequest.fromJson(Map<String, dynamic> map) {
  3811. return BatchInsertMedicalConsortiumRequest(
  3812. medicalConsortiumDetails: map['MedicalConsortiumDetails'] != null ? (map['MedicalConsortiumDetails'] as List).map((e)=>MedicalConsortiumDetail.fromJson(e as Map<String,dynamic>)).toList() : null,
  3813. );
  3814. }
  3815. Map<String, dynamic> toJson() {
  3816. final map = Map<String, dynamic>();
  3817. if(medicalConsortiumDetails != null) {
  3818. map['MedicalConsortiumDetails'] = medicalConsortiumDetails;
  3819. }
  3820. return map;
  3821. }
  3822. }
  3823. enum ReportPosterTypeEnum {
  3824. Default,
  3825. BJAid,
  3826. }
  3827. enum ReportFormatEnum {
  3828. Json,
  3829. Xml,
  3830. Text,
  3831. }
  3832. class PosterConfigMigratoryInfo {
  3833. String? code;
  3834. DateTime? createTime;
  3835. DateTime? updateTime;
  3836. bool isDelete;
  3837. String? receiverName;
  3838. String? contact;
  3839. String? phone;
  3840. String? targetUrl;
  3841. String? template;
  3842. ReportPosterTypeEnum posterType;
  3843. ReportFormatEnum reportFormat;
  3844. int postTimeout;
  3845. PosterConfigMigratoryInfo({
  3846. this.code,
  3847. this.createTime,
  3848. this.updateTime,
  3849. this.isDelete = false,
  3850. this.receiverName,
  3851. this.contact,
  3852. this.phone,
  3853. this.targetUrl,
  3854. this.template,
  3855. this.posterType = ReportPosterTypeEnum.Default,
  3856. this.reportFormat = ReportFormatEnum.Json,
  3857. this.postTimeout = 0,
  3858. });
  3859. factory PosterConfigMigratoryInfo.fromJson(Map<String, dynamic> map) {
  3860. return PosterConfigMigratoryInfo(
  3861. code: map['Code'],
  3862. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3863. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3864. isDelete: map['IsDelete'],
  3865. receiverName: map['ReceiverName'],
  3866. contact: map['Contact'],
  3867. phone: map['Phone'],
  3868. targetUrl: map['TargetUrl'],
  3869. template: map['Template'],
  3870. posterType: ReportPosterTypeEnum.values.firstWhere((e) => e.index == map['PosterType']),
  3871. reportFormat: ReportFormatEnum.values.firstWhere((e) => e.index == map['ReportFormat']),
  3872. postTimeout: map['PostTimeout'],
  3873. );
  3874. }
  3875. Map<String, dynamic> toJson() {
  3876. final map = Map<String, dynamic>();
  3877. if(code != null) {
  3878. map['Code'] = code;
  3879. }
  3880. if(createTime != null) {
  3881. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  3882. }
  3883. if(updateTime != null) {
  3884. map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
  3885. }
  3886. map['IsDelete'] = isDelete;
  3887. if(receiverName != null) {
  3888. map['ReceiverName'] = receiverName;
  3889. }
  3890. if(contact != null) {
  3891. map['Contact'] = contact;
  3892. }
  3893. if(phone != null) {
  3894. map['Phone'] = phone;
  3895. }
  3896. if(targetUrl != null) {
  3897. map['TargetUrl'] = targetUrl;
  3898. }
  3899. if(template != null) {
  3900. map['Template'] = template;
  3901. }
  3902. map['PosterType'] = posterType.index;
  3903. map['ReportFormat'] = reportFormat.index;
  3904. map['PostTimeout'] = postTimeout;
  3905. return map;
  3906. }
  3907. }
  3908. class BatchInsertPosterConfigRequest extends TokenRequest{
  3909. SyncDBEnum syncType;
  3910. List<PosterConfigMigratoryInfo>? posterConfigMigratorys;
  3911. BatchInsertPosterConfigRequest({
  3912. this.syncType = SyncDBEnum.Migrate,
  3913. this.posterConfigMigratorys,
  3914. String? token,
  3915. }) : super(
  3916. token: token,
  3917. );
  3918. factory BatchInsertPosterConfigRequest.fromJson(Map<String, dynamic> map) {
  3919. return BatchInsertPosterConfigRequest(
  3920. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  3921. posterConfigMigratorys: map['PosterConfigMigratorys'] != null ? (map['PosterConfigMigratorys'] as List).map((e)=>PosterConfigMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  3922. token: map['Token'],
  3923. );
  3924. }
  3925. Map<String, dynamic> toJson() {
  3926. final map = super.toJson();
  3927. map['SyncType'] = syncType.index;
  3928. if(posterConfigMigratorys != null)
  3929. map['PosterConfigMigratorys'] = posterConfigMigratorys;
  3930. return map;
  3931. }
  3932. }
  3933. class ReportTemplateMigratoryInfo extends ReportTemplateDTO{
  3934. bool isDelete;
  3935. DateTime? createTime;
  3936. DateTime? updateTime;
  3937. ReportTemplateMigratoryInfo({
  3938. this.isDelete = false,
  3939. this.createTime,
  3940. this.updateTime,
  3941. String? reportTemplateCode,
  3942. String? reportTemplateName,
  3943. ReportTemplateStatusTypeEnum reportTemplateStateType = ReportTemplateStatusTypeEnum.Unpublished,
  3944. ReportTemplateTypeEnum reportTemplateType = ReportTemplateTypeEnum.Default,
  3945. ReportTemplateUsageTypeEnum reportTemplateUsageType = ReportTemplateUsageTypeEnum.People,
  3946. String? organizationCode,
  3947. String? personalCode,
  3948. String? reportTemplateJson,
  3949. String? referenceReportTemplateCode,
  3950. bool isDefault = false,
  3951. bool isUserDefault = false,
  3952. String? reportDatasJson,
  3953. List<ReportPreviewDTO>? templatePreviewList,
  3954. List<String>? templatePreviewUrlList,
  3955. String? languageCode,
  3956. }) : super(
  3957. reportTemplateCode: reportTemplateCode,
  3958. reportTemplateName: reportTemplateName,
  3959. reportTemplateStateType: reportTemplateStateType,
  3960. reportTemplateType: reportTemplateType,
  3961. reportTemplateUsageType: reportTemplateUsageType,
  3962. organizationCode: organizationCode,
  3963. personalCode: personalCode,
  3964. reportTemplateJson: reportTemplateJson,
  3965. referenceReportTemplateCode: referenceReportTemplateCode,
  3966. isDefault: isDefault,
  3967. isUserDefault: isUserDefault,
  3968. reportDatasJson: reportDatasJson,
  3969. templatePreviewList: templatePreviewList,
  3970. templatePreviewUrlList: templatePreviewUrlList,
  3971. languageCode: languageCode,
  3972. );
  3973. factory ReportTemplateMigratoryInfo.fromJson(Map<String, dynamic> map) {
  3974. return ReportTemplateMigratoryInfo(
  3975. isDelete: map['IsDelete'],
  3976. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3977. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3978. reportTemplateCode: map['ReportTemplateCode'],
  3979. reportTemplateName: map['ReportTemplateName'],
  3980. reportTemplateStateType: ReportTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['ReportTemplateStateType']),
  3981. reportTemplateType: ReportTemplateTypeEnum.values.firstWhere((e) => e.index == map['ReportTemplateType']),
  3982. reportTemplateUsageType: ReportTemplateUsageTypeEnum.values.firstWhere((e) => e.index == map['ReportTemplateUsageType']),
  3983. organizationCode: map['OrganizationCode'],
  3984. personalCode: map['PersonalCode'],
  3985. reportTemplateJson: map['ReportTemplateJson'],
  3986. referenceReportTemplateCode: map['ReferenceReportTemplateCode'],
  3987. isDefault: map['IsDefault'],
  3988. isUserDefault: map['IsUserDefault'],
  3989. reportDatasJson: map['ReportDatasJson'],
  3990. templatePreviewList: map['TemplatePreviewList'] != null ? (map['TemplatePreviewList'] as List).map((e)=>ReportPreviewDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3991. templatePreviewUrlList: map['TemplatePreviewUrlList']?.cast<String>().toList(),
  3992. languageCode: map['LanguageCode'],
  3993. );
  3994. }
  3995. Map<String, dynamic> toJson() {
  3996. final map = super.toJson();
  3997. map['IsDelete'] = isDelete;
  3998. if(createTime != null)
  3999. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  4000. if(updateTime != null)
  4001. map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
  4002. return map;
  4003. }
  4004. }
  4005. class BatchInsertReportTemplateRequest extends TokenRequest{
  4006. SyncDBEnum syncType;
  4007. List<ReportTemplateMigratoryInfo>? reportTemplateMigratorys;
  4008. BatchInsertReportTemplateRequest({
  4009. this.syncType = SyncDBEnum.Migrate,
  4010. this.reportTemplateMigratorys,
  4011. String? token,
  4012. }) : super(
  4013. token: token,
  4014. );
  4015. factory BatchInsertReportTemplateRequest.fromJson(Map<String, dynamic> map) {
  4016. return BatchInsertReportTemplateRequest(
  4017. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  4018. reportTemplateMigratorys: map['ReportTemplateMigratorys'] != null ? (map['ReportTemplateMigratorys'] as List).map((e)=>ReportTemplateMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  4019. token: map['Token'],
  4020. );
  4021. }
  4022. Map<String, dynamic> toJson() {
  4023. final map = super.toJson();
  4024. map['SyncType'] = syncType.index;
  4025. if(reportTemplateMigratorys != null)
  4026. map['ReportTemplateMigratorys'] = reportTemplateMigratorys;
  4027. return map;
  4028. }
  4029. }
  4030. class ReportLabelMigratoryInfo extends ReportLabelDTO{
  4031. bool isDelete;
  4032. ReportLabelMigratoryInfo({
  4033. this.isDelete = false,
  4034. String? reportLabelCode,
  4035. String? labelName,
  4036. String? languageCode,
  4037. ReportLabelUsageTypeEnum usageType = ReportLabelUsageTypeEnum.People,
  4038. List<String>? labelItems,
  4039. DateTime? createTime,
  4040. DateTime? updateTime,
  4041. }) : super(
  4042. reportLabelCode: reportLabelCode,
  4043. labelName: labelName,
  4044. languageCode: languageCode,
  4045. usageType: usageType,
  4046. labelItems: labelItems,
  4047. createTime: createTime,
  4048. updateTime: updateTime,
  4049. );
  4050. factory ReportLabelMigratoryInfo.fromJson(Map<String, dynamic> map) {
  4051. return ReportLabelMigratoryInfo(
  4052. isDelete: map['IsDelete'],
  4053. reportLabelCode: map['ReportLabelCode'],
  4054. labelName: map['LabelName'],
  4055. languageCode: map['LanguageCode'],
  4056. usageType: ReportLabelUsageTypeEnum.values.firstWhere((e) => e.index == map['UsageType']),
  4057. labelItems: map['LabelItems']?.cast<String>().toList(),
  4058. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4059. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4060. );
  4061. }
  4062. Map<String, dynamic> toJson() {
  4063. final map = super.toJson();
  4064. map['IsDelete'] = isDelete;
  4065. return map;
  4066. }
  4067. }
  4068. class BatchInsertReportLabelRequest extends TokenRequest{
  4069. SyncDBEnum syncType;
  4070. List<ReportLabelMigratoryInfo>? reportLabelData;
  4071. BatchInsertReportLabelRequest({
  4072. this.syncType = SyncDBEnum.Migrate,
  4073. this.reportLabelData,
  4074. String? token,
  4075. }) : super(
  4076. token: token,
  4077. );
  4078. factory BatchInsertReportLabelRequest.fromJson(Map<String, dynamic> map) {
  4079. return BatchInsertReportLabelRequest(
  4080. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  4081. reportLabelData: map['ReportLabelData'] != null ? (map['ReportLabelData'] as List).map((e)=>ReportLabelMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  4082. token: map['Token'],
  4083. );
  4084. }
  4085. Map<String, dynamic> toJson() {
  4086. final map = super.toJson();
  4087. map['SyncType'] = syncType.index;
  4088. if(reportLabelData != null)
  4089. map['ReportLabelData'] = reportLabelData;
  4090. return map;
  4091. }
  4092. }
  4093. class OrganizationDefaultTemplate {
  4094. String? organizationCode;
  4095. String? defaultTemplateId;
  4096. List<String>? reportTemplateIds;
  4097. List<String>? userCodes;
  4098. OrganizationDefaultTemplate({
  4099. this.organizationCode,
  4100. this.defaultTemplateId,
  4101. this.reportTemplateIds,
  4102. this.userCodes,
  4103. });
  4104. factory OrganizationDefaultTemplate.fromJson(Map<String, dynamic> map) {
  4105. return OrganizationDefaultTemplate(
  4106. organizationCode: map['OrganizationCode'],
  4107. defaultTemplateId: map['DefaultTemplateId'],
  4108. reportTemplateIds: map['ReportTemplateIds']?.cast<String>().toList(),
  4109. userCodes: map['UserCodes']?.cast<String>().toList(),
  4110. );
  4111. }
  4112. Map<String, dynamic> toJson() {
  4113. final map = Map<String, dynamic>();
  4114. if(organizationCode != null) {
  4115. map['OrganizationCode'] = organizationCode;
  4116. }
  4117. if(defaultTemplateId != null) {
  4118. map['DefaultTemplateId'] = defaultTemplateId;
  4119. }
  4120. if(reportTemplateIds != null) {
  4121. map['ReportTemplateIds'] = reportTemplateIds;
  4122. }
  4123. if(userCodes != null) {
  4124. map['UserCodes'] = userCodes;
  4125. }
  4126. return map;
  4127. }
  4128. }
  4129. class BatchModifyReportTemplateRequest extends TokenRequest{
  4130. List<ReportTemplateMigratoryInfo>? reportTemplateMigratorys;
  4131. List<OrganizationDefaultTemplate>? organizationDefaultTemplates;
  4132. BatchModifyReportTemplateRequest({
  4133. this.reportTemplateMigratorys,
  4134. this.organizationDefaultTemplates,
  4135. String? token,
  4136. }) : super(
  4137. token: token,
  4138. );
  4139. factory BatchModifyReportTemplateRequest.fromJson(Map<String, dynamic> map) {
  4140. return BatchModifyReportTemplateRequest(
  4141. reportTemplateMigratorys: map['ReportTemplateMigratorys'] != null ? (map['ReportTemplateMigratorys'] as List).map((e)=>ReportTemplateMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  4142. organizationDefaultTemplates: map['OrganizationDefaultTemplates'] != null ? (map['OrganizationDefaultTemplates'] as List).map((e)=>OrganizationDefaultTemplate.fromJson(e as Map<String,dynamic>)).toList() : null,
  4143. token: map['Token'],
  4144. );
  4145. }
  4146. Map<String, dynamic> toJson() {
  4147. final map = super.toJson();
  4148. if(reportTemplateMigratorys != null)
  4149. map['ReportTemplateMigratorys'] = reportTemplateMigratorys;
  4150. if(organizationDefaultTemplates != null)
  4151. map['OrganizationDefaultTemplates'] = organizationDefaultTemplates;
  4152. return map;
  4153. }
  4154. }
  4155. class UserGroupMigratoryInfo extends BaseDTO{
  4156. bool isDelete;
  4157. String? code;
  4158. String? name;
  4159. int maxPeople;
  4160. String? creatorCode;
  4161. List<StudentInfoDTO>? students;
  4162. String? shortCode;
  4163. bool isAgent;
  4164. UserGroupMigratoryInfo({
  4165. this.isDelete = false,
  4166. this.code,
  4167. this.name,
  4168. this.maxPeople = 0,
  4169. this.creatorCode,
  4170. this.students,
  4171. this.shortCode,
  4172. this.isAgent = false,
  4173. DateTime? createTime,
  4174. DateTime? updateTime,
  4175. }) : super(
  4176. createTime: createTime,
  4177. updateTime: updateTime,
  4178. );
  4179. factory UserGroupMigratoryInfo.fromJson(Map<String, dynamic> map) {
  4180. return UserGroupMigratoryInfo(
  4181. isDelete: map['IsDelete'],
  4182. code: map['Code'],
  4183. name: map['Name'],
  4184. maxPeople: map['MaxPeople'],
  4185. creatorCode: map['CreatorCode'],
  4186. students: map['Students'] != null ? (map['Students'] as List).map((e)=>StudentInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4187. shortCode: map['ShortCode'],
  4188. isAgent: map['IsAgent'],
  4189. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4190. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4191. );
  4192. }
  4193. Map<String, dynamic> toJson() {
  4194. final map = super.toJson();
  4195. map['IsDelete'] = isDelete;
  4196. if(code != null)
  4197. map['Code'] = code;
  4198. if(name != null)
  4199. map['Name'] = name;
  4200. map['MaxPeople'] = maxPeople;
  4201. if(creatorCode != null)
  4202. map['CreatorCode'] = creatorCode;
  4203. if(students != null)
  4204. map['Students'] = students;
  4205. if(shortCode != null)
  4206. map['ShortCode'] = shortCode;
  4207. map['IsAgent'] = isAgent;
  4208. return map;
  4209. }
  4210. }
  4211. class BatchInsertUserGroupRequest extends TokenRequest{
  4212. SyncDBEnum syncType;
  4213. List<UserGroupMigratoryInfo>? userGroupMigratorys;
  4214. BatchInsertUserGroupRequest({
  4215. this.syncType = SyncDBEnum.Migrate,
  4216. this.userGroupMigratorys,
  4217. String? token,
  4218. }) : super(
  4219. token: token,
  4220. );
  4221. factory BatchInsertUserGroupRequest.fromJson(Map<String, dynamic> map) {
  4222. return BatchInsertUserGroupRequest(
  4223. syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
  4224. userGroupMigratorys: map['UserGroupMigratorys'] != null ? (map['UserGroupMigratorys'] as List).map((e)=>UserGroupMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
  4225. token: map['Token'],
  4226. );
  4227. }
  4228. Map<String, dynamic> toJson() {
  4229. final map = super.toJson();
  4230. map['SyncType'] = syncType.index;
  4231. if(userGroupMigratorys != null)
  4232. map['UserGroupMigratorys'] = userGroupMigratorys;
  4233. return map;
  4234. }
  4235. }
  4236. class BatchModifyRecordReportDataRequest extends TokenRequest{
  4237. List<String>? recordCodes;
  4238. bool isExistPropertyIsUserReport;
  4239. int isUserReport;
  4240. BatchModifyRecordReportDataRequest({
  4241. this.recordCodes,
  4242. this.isExistPropertyIsUserReport = false,
  4243. this.isUserReport = 0,
  4244. String? token,
  4245. }) : super(
  4246. token: token,
  4247. );
  4248. factory BatchModifyRecordReportDataRequest.fromJson(Map<String, dynamic> map) {
  4249. return BatchModifyRecordReportDataRequest(
  4250. recordCodes: map['RecordCodes']?.cast<String>().toList(),
  4251. isExistPropertyIsUserReport: map['IsExistPropertyIsUserReport'],
  4252. isUserReport: map['IsUserReport'],
  4253. token: map['Token'],
  4254. );
  4255. }
  4256. Map<String, dynamic> toJson() {
  4257. final map = super.toJson();
  4258. if(recordCodes != null)
  4259. map['RecordCodes'] = recordCodes;
  4260. map['IsExistPropertyIsUserReport'] = isExistPropertyIsUserReport;
  4261. map['IsUserReport'] = isUserReport;
  4262. return map;
  4263. }
  4264. }
  4265. class BindUserDevicesRequest extends TokenRequest{
  4266. String? userCode;
  4267. List<String>? bindDeviceCodes;
  4268. List<String>? removeDeviceCodes;
  4269. BindUserDevicesRequest({
  4270. this.userCode,
  4271. this.bindDeviceCodes,
  4272. this.removeDeviceCodes,
  4273. String? token,
  4274. }) : super(
  4275. token: token,
  4276. );
  4277. factory BindUserDevicesRequest.fromJson(Map<String, dynamic> map) {
  4278. return BindUserDevicesRequest(
  4279. userCode: map['UserCode'],
  4280. bindDeviceCodes: map['BindDeviceCodes']?.cast<String>().toList(),
  4281. removeDeviceCodes: map['RemoveDeviceCodes']?.cast<String>().toList(),
  4282. token: map['Token'],
  4283. );
  4284. }
  4285. Map<String, dynamic> toJson() {
  4286. final map = super.toJson();
  4287. if(userCode != null)
  4288. map['UserCode'] = userCode;
  4289. if(bindDeviceCodes != null)
  4290. map['BindDeviceCodes'] = bindDeviceCodes;
  4291. if(removeDeviceCodes != null)
  4292. map['RemoveDeviceCodes'] = removeDeviceCodes;
  4293. return map;
  4294. }
  4295. }
  4296. class ConfirmIdentityApplyRequest extends TokenRequest{
  4297. String? identityApplyCode;
  4298. ConfirmIdentityApplyRequest({
  4299. this.identityApplyCode,
  4300. String? token,
  4301. }) : super(
  4302. token: token,
  4303. );
  4304. factory ConfirmIdentityApplyRequest.fromJson(Map<String, dynamic> map) {
  4305. return ConfirmIdentityApplyRequest(
  4306. identityApplyCode: map['IdentityApplyCode'],
  4307. token: map['Token'],
  4308. );
  4309. }
  4310. Map<String, dynamic> toJson() {
  4311. final map = super.toJson();
  4312. if(identityApplyCode != null)
  4313. map['IdentityApplyCode'] = identityApplyCode;
  4314. return map;
  4315. }
  4316. }
  4317. class CreateThirdPartyTokenRequest extends TokenRequest{
  4318. String? code;
  4319. CreateThirdPartyTokenRequest({
  4320. this.code,
  4321. String? token,
  4322. }) : super(
  4323. token: token,
  4324. );
  4325. factory CreateThirdPartyTokenRequest.fromJson(Map<String, dynamic> map) {
  4326. return CreateThirdPartyTokenRequest(
  4327. code: map['Code'],
  4328. token: map['Token'],
  4329. );
  4330. }
  4331. Map<String, dynamic> toJson() {
  4332. final map = super.toJson();
  4333. if(code != null)
  4334. map['Code'] = code;
  4335. return map;
  4336. }
  4337. }
  4338. class DeleteAdminFeatureRequest extends TokenRequest{
  4339. String? adminFeatureCode;
  4340. DeleteAdminFeatureRequest({
  4341. this.adminFeatureCode,
  4342. String? token,
  4343. }) : super(
  4344. token: token,
  4345. );
  4346. factory DeleteAdminFeatureRequest.fromJson(Map<String, dynamic> map) {
  4347. return DeleteAdminFeatureRequest(
  4348. adminFeatureCode: map['AdminFeatureCode'],
  4349. token: map['Token'],
  4350. );
  4351. }
  4352. Map<String, dynamic> toJson() {
  4353. final map = super.toJson();
  4354. if(adminFeatureCode != null)
  4355. map['AdminFeatureCode'] = adminFeatureCode;
  4356. return map;
  4357. }
  4358. }
  4359. class DeleteAdminRoleRequest extends TokenRequest{
  4360. String? adminRoleCode;
  4361. DeleteAdminRoleRequest({
  4362. this.adminRoleCode,
  4363. String? token,
  4364. }) : super(
  4365. token: token,
  4366. );
  4367. factory DeleteAdminRoleRequest.fromJson(Map<String, dynamic> map) {
  4368. return DeleteAdminRoleRequest(
  4369. adminRoleCode: map['AdminRoleCode'],
  4370. token: map['Token'],
  4371. );
  4372. }
  4373. Map<String, dynamic> toJson() {
  4374. final map = super.toJson();
  4375. if(adminRoleCode != null)
  4376. map['AdminRoleCode'] = adminRoleCode;
  4377. return map;
  4378. }
  4379. }
  4380. class DeleteDeviceRequest2 extends TokenRequest{
  4381. String? deviceCode;
  4382. DeleteDeviceRequest2({
  4383. this.deviceCode,
  4384. String? token,
  4385. }) : super(
  4386. token: token,
  4387. );
  4388. factory DeleteDeviceRequest2.fromJson(Map<String, dynamic> map) {
  4389. return DeleteDeviceRequest2(
  4390. deviceCode: map['DeviceCode'],
  4391. token: map['Token'],
  4392. );
  4393. }
  4394. Map<String, dynamic> toJson() {
  4395. final map = super.toJson();
  4396. if(deviceCode != null)
  4397. map['DeviceCode'] = deviceCode;
  4398. return map;
  4399. }
  4400. }
  4401. class DeleteLogsRequest extends TokenRequest{
  4402. int daysAgo;
  4403. String? requestServerHost;
  4404. DeleteLogsRequest({
  4405. this.daysAgo = 0,
  4406. this.requestServerHost,
  4407. String? token,
  4408. }) : super(
  4409. token: token,
  4410. );
  4411. factory DeleteLogsRequest.fromJson(Map<String, dynamic> map) {
  4412. return DeleteLogsRequest(
  4413. daysAgo: map['DaysAgo'],
  4414. requestServerHost: map['RequestServerHost'],
  4415. token: map['Token'],
  4416. );
  4417. }
  4418. Map<String, dynamic> toJson() {
  4419. final map = super.toJson();
  4420. map['DaysAgo'] = daysAgo;
  4421. if(requestServerHost != null)
  4422. map['RequestServerHost'] = requestServerHost;
  4423. return map;
  4424. }
  4425. }
  4426. class QueryClearLogsRequest extends DeleteLogsRequest{
  4427. List<int>? dayAgoList;
  4428. QueryClearLogsRequest({
  4429. this.dayAgoList,
  4430. int daysAgo = 0,
  4431. String? requestServerHost,
  4432. String? token,
  4433. }) : super(
  4434. daysAgo: daysAgo,
  4435. requestServerHost: requestServerHost,
  4436. token: token,
  4437. );
  4438. factory QueryClearLogsRequest.fromJson(Map<String, dynamic> map) {
  4439. return QueryClearLogsRequest(
  4440. dayAgoList: map['DayAgoList']?.cast<int>().toList(),
  4441. daysAgo: map['DaysAgo'],
  4442. requestServerHost: map['RequestServerHost'],
  4443. token: map['Token'],
  4444. );
  4445. }
  4446. Map<String, dynamic> toJson() {
  4447. final map = super.toJson();
  4448. if(dayAgoList != null)
  4449. map['DayAgoList'] = dayAgoList;
  4450. return map;
  4451. }
  4452. }
  4453. class DeleteRoleRequest extends TokenRequest{
  4454. String? roleCode;
  4455. DeleteRoleRequest({
  4456. this.roleCode,
  4457. String? token,
  4458. }) : super(
  4459. token: token,
  4460. );
  4461. factory DeleteRoleRequest.fromJson(Map<String, dynamic> map) {
  4462. return DeleteRoleRequest(
  4463. roleCode: map['RoleCode'],
  4464. token: map['Token'],
  4465. );
  4466. }
  4467. Map<String, dynamic> toJson() {
  4468. final map = super.toJson();
  4469. if(roleCode != null)
  4470. map['RoleCode'] = roleCode;
  4471. return map;
  4472. }
  4473. }
  4474. class DeleteThesaurusRequest extends TokenRequest{
  4475. String? thesaurusCode;
  4476. DeleteThesaurusRequest({
  4477. this.thesaurusCode,
  4478. String? token,
  4479. }) : super(
  4480. token: token,
  4481. );
  4482. factory DeleteThesaurusRequest.fromJson(Map<String, dynamic> map) {
  4483. return DeleteThesaurusRequest(
  4484. thesaurusCode: map['ThesaurusCode'],
  4485. token: map['Token'],
  4486. );
  4487. }
  4488. Map<String, dynamic> toJson() {
  4489. final map = super.toJson();
  4490. if(thesaurusCode != null)
  4491. map['ThesaurusCode'] = thesaurusCode;
  4492. return map;
  4493. }
  4494. }
  4495. class DeleteThirdPartyInfoRequest extends TokenRequest{
  4496. String? code;
  4497. DeleteThirdPartyInfoRequest({
  4498. this.code,
  4499. String? token,
  4500. }) : super(
  4501. token: token,
  4502. );
  4503. factory DeleteThirdPartyInfoRequest.fromJson(Map<String, dynamic> map) {
  4504. return DeleteThirdPartyInfoRequest(
  4505. code: map['Code'],
  4506. token: map['Token'],
  4507. );
  4508. }
  4509. Map<String, dynamic> toJson() {
  4510. final map = super.toJson();
  4511. if(code != null)
  4512. map['Code'] = code;
  4513. return map;
  4514. }
  4515. }
  4516. class DeleteUserFeatureRequest extends TokenRequest{
  4517. String? userFeatureCode;
  4518. DeleteUserFeatureRequest({
  4519. this.userFeatureCode,
  4520. String? token,
  4521. }) : super(
  4522. token: token,
  4523. );
  4524. factory DeleteUserFeatureRequest.fromJson(Map<String, dynamic> map) {
  4525. return DeleteUserFeatureRequest(
  4526. userFeatureCode: map['UserFeatureCode'],
  4527. token: map['Token'],
  4528. );
  4529. }
  4530. Map<String, dynamic> toJson() {
  4531. final map = super.toJson();
  4532. if(userFeatureCode != null)
  4533. map['UserFeatureCode'] = userFeatureCode;
  4534. return map;
  4535. }
  4536. }
  4537. enum DistributedServerTypeEnum {
  4538. Official,
  4539. Private,
  4540. }
  4541. class IPAddressInfoDTO {
  4542. String? startIp;
  4543. String? endIp;
  4544. int longStartIP;
  4545. int longEndIP;
  4546. IPAddressInfoDTO({
  4547. this.startIp,
  4548. this.endIp,
  4549. this.longStartIP = 0,
  4550. this.longEndIP = 0,
  4551. });
  4552. factory IPAddressInfoDTO.fromJson(Map<String, dynamic> map) {
  4553. return IPAddressInfoDTO(
  4554. startIp: map['StartIp'],
  4555. endIp: map['EndIp'],
  4556. longStartIP: map['LongStartIP'],
  4557. longEndIP: map['LongEndIP'],
  4558. );
  4559. }
  4560. Map<String, dynamic> toJson() {
  4561. final map = Map<String, dynamic>();
  4562. if(startIp != null) {
  4563. map['StartIp'] = startIp;
  4564. }
  4565. if(endIp != null) {
  4566. map['EndIp'] = endIp;
  4567. }
  4568. map['LongStartIP'] = longStartIP;
  4569. map['LongEndIP'] = longEndIP;
  4570. return map;
  4571. }
  4572. }
  4573. class DistributedServerInfoRequest extends TokenRequest{
  4574. String? code;
  4575. List<String>? codes;
  4576. bool isMaster;
  4577. String? name;
  4578. String? description;
  4579. bool enable;
  4580. DistributedServerTypeEnum serverType;
  4581. String? serverUrl;
  4582. String? lat;
  4583. String? lng;
  4584. List<IPAddressInfoDTO>? assignClientIPList;
  4585. int rTCStartingRoomId;
  4586. String? shareCodePrefix;
  4587. DistributedServerInfoRequest({
  4588. this.code,
  4589. this.codes,
  4590. this.isMaster = false,
  4591. this.name,
  4592. this.description,
  4593. this.enable = false,
  4594. this.serverType = DistributedServerTypeEnum.Official,
  4595. this.serverUrl,
  4596. this.lat,
  4597. this.lng,
  4598. this.assignClientIPList,
  4599. this.rTCStartingRoomId = 0,
  4600. this.shareCodePrefix,
  4601. String? token,
  4602. }) : super(
  4603. token: token,
  4604. );
  4605. factory DistributedServerInfoRequest.fromJson(Map<String, dynamic> map) {
  4606. return DistributedServerInfoRequest(
  4607. code: map['Code'],
  4608. codes: map['Codes']?.cast<String>().toList(),
  4609. isMaster: map['IsMaster'],
  4610. name: map['Name'],
  4611. description: map['Description'],
  4612. enable: map['Enable'],
  4613. serverType: DistributedServerTypeEnum.values.firstWhere((e) => e.index == map['ServerType']),
  4614. serverUrl: map['ServerUrl'],
  4615. lat: map['Lat'],
  4616. lng: map['Lng'],
  4617. assignClientIPList: map['AssignClientIPList'] != null ? (map['AssignClientIPList'] as List).map((e)=>IPAddressInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4618. rTCStartingRoomId: map['RTCStartingRoomId'],
  4619. shareCodePrefix: map['ShareCodePrefix'],
  4620. token: map['Token'],
  4621. );
  4622. }
  4623. Map<String, dynamic> toJson() {
  4624. final map = super.toJson();
  4625. if(code != null)
  4626. map['Code'] = code;
  4627. if(codes != null)
  4628. map['Codes'] = codes;
  4629. map['IsMaster'] = isMaster;
  4630. if(name != null)
  4631. map['Name'] = name;
  4632. if(description != null)
  4633. map['Description'] = description;
  4634. map['Enable'] = enable;
  4635. map['ServerType'] = serverType.index;
  4636. if(serverUrl != null)
  4637. map['ServerUrl'] = serverUrl;
  4638. if(lat != null)
  4639. map['Lat'] = lat;
  4640. if(lng != null)
  4641. map['Lng'] = lng;
  4642. if(assignClientIPList != null)
  4643. map['AssignClientIPList'] = assignClientIPList;
  4644. map['RTCStartingRoomId'] = rTCStartingRoomId;
  4645. if(shareCodePrefix != null)
  4646. map['ShareCodePrefix'] = shareCodePrefix;
  4647. return map;
  4648. }
  4649. }
  4650. class SaveDistributedServerIpRequest extends TokenRequest{
  4651. String? startIp;
  4652. String? endIp;
  4653. String? code;
  4654. SaveDistributedServerIpRequest({
  4655. this.startIp,
  4656. this.endIp,
  4657. this.code,
  4658. String? token,
  4659. }) : super(
  4660. token: token,
  4661. );
  4662. factory SaveDistributedServerIpRequest.fromJson(Map<String, dynamic> map) {
  4663. return SaveDistributedServerIpRequest(
  4664. startIp: map['StartIp'],
  4665. endIp: map['EndIp'],
  4666. code: map['Code'],
  4667. token: map['Token'],
  4668. );
  4669. }
  4670. Map<String, dynamic> toJson() {
  4671. final map = super.toJson();
  4672. if(startIp != null)
  4673. map['StartIp'] = startIp;
  4674. if(endIp != null)
  4675. map['EndIp'] = endIp;
  4676. if(code != null)
  4677. map['Code'] = code;
  4678. return map;
  4679. }
  4680. }
  4681. class GetDistributedServerIpListRequest extends PageRequest{
  4682. String? code;
  4683. String? keyword;
  4684. GetDistributedServerIpListRequest({
  4685. this.code,
  4686. this.keyword,
  4687. int pageIndex = 0,
  4688. int pageSize = 0,
  4689. String? token,
  4690. }) : super(
  4691. pageIndex: pageIndex,
  4692. pageSize: pageSize,
  4693. token: token,
  4694. );
  4695. factory GetDistributedServerIpListRequest.fromJson(Map<String, dynamic> map) {
  4696. return GetDistributedServerIpListRequest(
  4697. code: map['Code'],
  4698. keyword: map['Keyword'],
  4699. pageIndex: map['PageIndex'],
  4700. pageSize: map['PageSize'],
  4701. token: map['Token'],
  4702. );
  4703. }
  4704. Map<String, dynamic> toJson() {
  4705. final map = super.toJson();
  4706. if(code != null)
  4707. map['Code'] = code;
  4708. if(keyword != null)
  4709. map['Keyword'] = keyword;
  4710. return map;
  4711. }
  4712. }
  4713. class FindAdminByCodeRequest extends TokenRequest{
  4714. String? adminCode;
  4715. FindAdminByCodeRequest({
  4716. this.adminCode,
  4717. String? token,
  4718. }) : super(
  4719. token: token,
  4720. );
  4721. factory FindAdminByCodeRequest.fromJson(Map<String, dynamic> map) {
  4722. return FindAdminByCodeRequest(
  4723. adminCode: map['AdminCode'],
  4724. token: map['Token'],
  4725. );
  4726. }
  4727. Map<String, dynamic> toJson() {
  4728. final map = super.toJson();
  4729. if(adminCode != null)
  4730. map['AdminCode'] = adminCode;
  4731. return map;
  4732. }
  4733. }
  4734. class FindAdminRoleByCodeRequest extends TokenRequest{
  4735. String? adminRoleCode;
  4736. FindAdminRoleByCodeRequest({
  4737. this.adminRoleCode,
  4738. String? token,
  4739. }) : super(
  4740. token: token,
  4741. );
  4742. factory FindAdminRoleByCodeRequest.fromJson(Map<String, dynamic> map) {
  4743. return FindAdminRoleByCodeRequest(
  4744. adminRoleCode: map['AdminRoleCode'],
  4745. token: map['Token'],
  4746. );
  4747. }
  4748. Map<String, dynamic> toJson() {
  4749. final map = super.toJson();
  4750. if(adminRoleCode != null)
  4751. map['AdminRoleCode'] = adminRoleCode;
  4752. return map;
  4753. }
  4754. }
  4755. class FindAdminStatisticRecordsRequest extends TokenRequest{
  4756. String? languageCode;
  4757. FindAdminStatisticRecordsRequest({
  4758. this.languageCode,
  4759. String? token,
  4760. }) : super(
  4761. token: token,
  4762. );
  4763. factory FindAdminStatisticRecordsRequest.fromJson(Map<String, dynamic> map) {
  4764. return FindAdminStatisticRecordsRequest(
  4765. languageCode: map['LanguageCode'],
  4766. token: map['Token'],
  4767. );
  4768. }
  4769. Map<String, dynamic> toJson() {
  4770. final map = super.toJson();
  4771. if(languageCode != null)
  4772. map['LanguageCode'] = languageCode;
  4773. return map;
  4774. }
  4775. }
  4776. class FindCMSStatisticRequest extends TokenRequest{
  4777. String? clientId;
  4778. FindCMSStatisticRequest({
  4779. this.clientId,
  4780. String? token,
  4781. }) : super(
  4782. token: token,
  4783. );
  4784. factory FindCMSStatisticRequest.fromJson(Map<String, dynamic> map) {
  4785. return FindCMSStatisticRequest(
  4786. clientId: map['ClientId'],
  4787. token: map['Token'],
  4788. );
  4789. }
  4790. Map<String, dynamic> toJson() {
  4791. final map = super.toJson();
  4792. if(clientId != null)
  4793. map['ClientId'] = clientId;
  4794. return map;
  4795. }
  4796. }
  4797. class FindCMSTemplateByUserRequest extends TokenRequest{
  4798. String? clientId;
  4799. FindCMSTemplateByUserRequest({
  4800. this.clientId,
  4801. String? token,
  4802. }) : super(
  4803. token: token,
  4804. );
  4805. factory FindCMSTemplateByUserRequest.fromJson(Map<String, dynamic> map) {
  4806. return FindCMSTemplateByUserRequest(
  4807. clientId: map['ClientId'],
  4808. token: map['Token'],
  4809. );
  4810. }
  4811. Map<String, dynamic> toJson() {
  4812. final map = super.toJson();
  4813. if(clientId != null)
  4814. map['ClientId'] = clientId;
  4815. return map;
  4816. }
  4817. }
  4818. class FindCMSTemplateDetailRequest extends TokenRequest{
  4819. String? cMSTemplateCode;
  4820. FindCMSTemplateDetailRequest({
  4821. this.cMSTemplateCode,
  4822. String? token,
  4823. }) : super(
  4824. token: token,
  4825. );
  4826. factory FindCMSTemplateDetailRequest.fromJson(Map<String, dynamic> map) {
  4827. return FindCMSTemplateDetailRequest(
  4828. cMSTemplateCode: map['CMSTemplateCode'],
  4829. token: map['Token'],
  4830. );
  4831. }
  4832. Map<String, dynamic> toJson() {
  4833. final map = super.toJson();
  4834. if(cMSTemplateCode != null)
  4835. map['CMSTemplateCode'] = cMSTemplateCode;
  4836. return map;
  4837. }
  4838. }
  4839. class FindCMSTemplatePageRequest extends PageRequest{
  4840. String? searchKey;
  4841. FindCMSTemplatePageRequest({
  4842. this.searchKey,
  4843. int pageIndex = 0,
  4844. int pageSize = 0,
  4845. String? token,
  4846. }) : super(
  4847. pageIndex: pageIndex,
  4848. pageSize: pageSize,
  4849. token: token,
  4850. );
  4851. factory FindCMSTemplatePageRequest.fromJson(Map<String, dynamic> map) {
  4852. return FindCMSTemplatePageRequest(
  4853. searchKey: map['SearchKey'],
  4854. pageIndex: map['PageIndex'],
  4855. pageSize: map['PageSize'],
  4856. token: map['Token'],
  4857. );
  4858. }
  4859. Map<String, dynamic> toJson() {
  4860. final map = super.toJson();
  4861. if(searchKey != null)
  4862. map['SearchKey'] = searchKey;
  4863. return map;
  4864. }
  4865. }
  4866. class FindContentConfigRequest extends TokenRequest{
  4867. int type;
  4868. String? parentCode;
  4869. FindContentConfigRequest({
  4870. this.type = 0,
  4871. this.parentCode,
  4872. String? token,
  4873. }) : super(
  4874. token: token,
  4875. );
  4876. factory FindContentConfigRequest.fromJson(Map<String, dynamic> map) {
  4877. return FindContentConfigRequest(
  4878. type: map['Type'],
  4879. parentCode: map['ParentCode'],
  4880. token: map['Token'],
  4881. );
  4882. }
  4883. Map<String, dynamic> toJson() {
  4884. final map = super.toJson();
  4885. map['Type'] = type;
  4886. if(parentCode != null)
  4887. map['ParentCode'] = parentCode;
  4888. return map;
  4889. }
  4890. }
  4891. class FindDeviceDiagnosisModulesRequest2 extends TokenRequest{
  4892. String? deviceCode;
  4893. FindDeviceDiagnosisModulesRequest2({
  4894. this.deviceCode,
  4895. String? token,
  4896. }) : super(
  4897. token: token,
  4898. );
  4899. factory FindDeviceDiagnosisModulesRequest2.fromJson(Map<String, dynamic> map) {
  4900. return FindDeviceDiagnosisModulesRequest2(
  4901. deviceCode: map['DeviceCode'],
  4902. token: map['Token'],
  4903. );
  4904. }
  4905. Map<String, dynamic> toJson() {
  4906. final map = super.toJson();
  4907. if(deviceCode != null)
  4908. map['DeviceCode'] = deviceCode;
  4909. return map;
  4910. }
  4911. }
  4912. class FindDiagnosisModuleByPageRequest extends PageRequest{
  4913. FindDiagnosisModuleByPageRequest({
  4914. int pageIndex = 0,
  4915. int pageSize = 0,
  4916. String? token,
  4917. }) : super(
  4918. pageIndex: pageIndex,
  4919. pageSize: pageSize,
  4920. token: token,
  4921. );
  4922. factory FindDiagnosisModuleByPageRequest.fromJson(Map<String, dynamic> map) {
  4923. return FindDiagnosisModuleByPageRequest(
  4924. pageIndex: map['PageIndex'],
  4925. pageSize: map['PageSize'],
  4926. token: map['Token'],
  4927. );
  4928. }
  4929. Map<String, dynamic> toJson() {
  4930. final map = super.toJson();
  4931. return map;
  4932. }
  4933. }
  4934. class FindGradingProtectionConfigByPageRequest extends PageRequest{
  4935. String? keyword;
  4936. FindGradingProtectionConfigByPageRequest({
  4937. this.keyword,
  4938. int pageIndex = 0,
  4939. int pageSize = 0,
  4940. String? token,
  4941. }) : super(
  4942. pageIndex: pageIndex,
  4943. pageSize: pageSize,
  4944. token: token,
  4945. );
  4946. factory FindGradingProtectionConfigByPageRequest.fromJson(Map<String, dynamic> map) {
  4947. return FindGradingProtectionConfigByPageRequest(
  4948. keyword: map['Keyword'],
  4949. pageIndex: map['PageIndex'],
  4950. pageSize: map['PageSize'],
  4951. token: map['Token'],
  4952. );
  4953. }
  4954. Map<String, dynamic> toJson() {
  4955. final map = super.toJson();
  4956. if(keyword != null)
  4957. map['Keyword'] = keyword;
  4958. return map;
  4959. }
  4960. }
  4961. class FindOrganizationDiagnosisModulesRequest extends TokenRequest{
  4962. String? organizationCode;
  4963. FindOrganizationDiagnosisModulesRequest({
  4964. this.organizationCode,
  4965. String? token,
  4966. }) : super(
  4967. token: token,
  4968. );
  4969. factory FindOrganizationDiagnosisModulesRequest.fromJson(Map<String, dynamic> map) {
  4970. return FindOrganizationDiagnosisModulesRequest(
  4971. organizationCode: map['OrganizationCode'],
  4972. token: map['Token'],
  4973. );
  4974. }
  4975. Map<String, dynamic> toJson() {
  4976. final map = super.toJson();
  4977. if(organizationCode != null)
  4978. map['OrganizationCode'] = organizationCode;
  4979. return map;
  4980. }
  4981. }
  4982. class FindReferralRecordSettingRequest extends TokenRequest{
  4983. FindReferralRecordSettingRequest({
  4984. String? token,
  4985. }) : super(
  4986. token: token,
  4987. );
  4988. factory FindReferralRecordSettingRequest.fromJson(Map<String, dynamic> map) {
  4989. return FindReferralRecordSettingRequest(
  4990. token: map['Token'],
  4991. );
  4992. }
  4993. Map<String, dynamic> toJson() {
  4994. final map = super.toJson();
  4995. return map;
  4996. }
  4997. }
  4998. class FindRelatedDeviceCodesRequest extends TokenRequest{
  4999. String? reportPosterCode;
  5000. FindRelatedDeviceCodesRequest({
  5001. this.reportPosterCode,
  5002. String? token,
  5003. }) : super(
  5004. token: token,
  5005. );
  5006. factory FindRelatedDeviceCodesRequest.fromJson(Map<String, dynamic> map) {
  5007. return FindRelatedDeviceCodesRequest(
  5008. reportPosterCode: map['ReportPosterCode'],
  5009. token: map['Token'],
  5010. );
  5011. }
  5012. Map<String, dynamic> toJson() {
  5013. final map = super.toJson();
  5014. if(reportPosterCode != null)
  5015. map['ReportPosterCode'] = reportPosterCode;
  5016. return map;
  5017. }
  5018. }
  5019. class FindReportLabelByCodeRequest extends TokenRequest{
  5020. String? reportLabelCode;
  5021. FindReportLabelByCodeRequest({
  5022. this.reportLabelCode,
  5023. String? token,
  5024. }) : super(
  5025. token: token,
  5026. );
  5027. factory FindReportLabelByCodeRequest.fromJson(Map<String, dynamic> map) {
  5028. return FindReportLabelByCodeRequest(
  5029. reportLabelCode: map['ReportLabelCode'],
  5030. token: map['Token'],
  5031. );
  5032. }
  5033. Map<String, dynamic> toJson() {
  5034. final map = super.toJson();
  5035. if(reportLabelCode != null)
  5036. map['ReportLabelCode'] = reportLabelCode;
  5037. return map;
  5038. }
  5039. }
  5040. class FindReportLabelByPageRequest extends PageRequest{
  5041. String? keyword;
  5042. FindReportLabelByPageRequest({
  5043. this.keyword,
  5044. int pageIndex = 0,
  5045. int pageSize = 0,
  5046. String? token,
  5047. }) : super(
  5048. pageIndex: pageIndex,
  5049. pageSize: pageSize,
  5050. token: token,
  5051. );
  5052. factory FindReportLabelByPageRequest.fromJson(Map<String, dynamic> map) {
  5053. return FindReportLabelByPageRequest(
  5054. keyword: map['Keyword'],
  5055. pageIndex: map['PageIndex'],
  5056. pageSize: map['PageSize'],
  5057. token: map['Token'],
  5058. );
  5059. }
  5060. Map<String, dynamic> toJson() {
  5061. final map = super.toJson();
  5062. if(keyword != null)
  5063. map['Keyword'] = keyword;
  5064. return map;
  5065. }
  5066. }
  5067. class FindReportPosterByCodeRequest extends TokenRequest{
  5068. String? reportPosterCode;
  5069. FindReportPosterByCodeRequest({
  5070. this.reportPosterCode,
  5071. String? token,
  5072. }) : super(
  5073. token: token,
  5074. );
  5075. factory FindReportPosterByCodeRequest.fromJson(Map<String, dynamic> map) {
  5076. return FindReportPosterByCodeRequest(
  5077. reportPosterCode: map['ReportPosterCode'],
  5078. token: map['Token'],
  5079. );
  5080. }
  5081. Map<String, dynamic> toJson() {
  5082. final map = super.toJson();
  5083. if(reportPosterCode != null)
  5084. map['ReportPosterCode'] = reportPosterCode;
  5085. return map;
  5086. }
  5087. }
  5088. class FindReportPosterByPageRequest extends PageRequest{
  5089. String? keyword;
  5090. FindReportPosterByPageRequest({
  5091. this.keyword,
  5092. int pageIndex = 0,
  5093. int pageSize = 0,
  5094. String? token,
  5095. }) : super(
  5096. pageIndex: pageIndex,
  5097. pageSize: pageSize,
  5098. token: token,
  5099. );
  5100. factory FindReportPosterByPageRequest.fromJson(Map<String, dynamic> map) {
  5101. return FindReportPosterByPageRequest(
  5102. keyword: map['Keyword'],
  5103. pageIndex: map['PageIndex'],
  5104. pageSize: map['PageSize'],
  5105. token: map['Token'],
  5106. );
  5107. }
  5108. Map<String, dynamic> toJson() {
  5109. final map = super.toJson();
  5110. if(keyword != null)
  5111. map['Keyword'] = keyword;
  5112. return map;
  5113. }
  5114. }
  5115. class FindReportPreviewUrlRequest extends TokenRequest{
  5116. String? reportCode;
  5117. String? languageCode;
  5118. FindReportPreviewUrlRequest({
  5119. this.reportCode,
  5120. this.languageCode,
  5121. String? token,
  5122. }) : super(
  5123. token: token,
  5124. );
  5125. factory FindReportPreviewUrlRequest.fromJson(Map<String, dynamic> map) {
  5126. return FindReportPreviewUrlRequest(
  5127. reportCode: map['ReportCode'],
  5128. languageCode: map['LanguageCode'],
  5129. token: map['Token'],
  5130. );
  5131. }
  5132. Map<String, dynamic> toJson() {
  5133. final map = super.toJson();
  5134. if(reportCode != null)
  5135. map['ReportCode'] = reportCode;
  5136. if(languageCode != null)
  5137. map['LanguageCode'] = languageCode;
  5138. return map;
  5139. }
  5140. }
  5141. enum PushDataStateEnum {
  5142. UnDo,
  5143. Successful,
  5144. Failed,
  5145. All,
  5146. }
  5147. class FindReportPushRecordsByPageRequest extends PageRequest{
  5148. String? keyword;
  5149. PushDataStateEnum queryState;
  5150. FindReportPushRecordsByPageRequest({
  5151. this.keyword,
  5152. this.queryState = PushDataStateEnum.UnDo,
  5153. int pageIndex = 0,
  5154. int pageSize = 0,
  5155. String? token,
  5156. }) : super(
  5157. pageIndex: pageIndex,
  5158. pageSize: pageSize,
  5159. token: token,
  5160. );
  5161. factory FindReportPushRecordsByPageRequest.fromJson(Map<String, dynamic> map) {
  5162. return FindReportPushRecordsByPageRequest(
  5163. keyword: map['Keyword'],
  5164. queryState: PushDataStateEnum.values.firstWhere((e) => e.index == map['QueryState']),
  5165. pageIndex: map['PageIndex'],
  5166. pageSize: map['PageSize'],
  5167. token: map['Token'],
  5168. );
  5169. }
  5170. Map<String, dynamic> toJson() {
  5171. final map = super.toJson();
  5172. if(keyword != null)
  5173. map['Keyword'] = keyword;
  5174. map['QueryState'] = queryState.index;
  5175. return map;
  5176. }
  5177. }
  5178. class FindReportShareConentRequest extends TokenRequest{
  5179. String? shortCode;
  5180. FindReportShareConentRequest({
  5181. this.shortCode,
  5182. String? token,
  5183. }) : super(
  5184. token: token,
  5185. );
  5186. factory FindReportShareConentRequest.fromJson(Map<String, dynamic> map) {
  5187. return FindReportShareConentRequest(
  5188. shortCode: map['ShortCode'],
  5189. token: map['Token'],
  5190. );
  5191. }
  5192. Map<String, dynamic> toJson() {
  5193. final map = super.toJson();
  5194. if(shortCode != null)
  5195. map['ShortCode'] = shortCode;
  5196. return map;
  5197. }
  5198. }
  5199. class FindReportTemplateUserPagesRequest extends PageRequest{
  5200. String? reportTemplateCode;
  5201. String? keyword;
  5202. FindReportTemplateUserPagesRequest({
  5203. this.reportTemplateCode,
  5204. this.keyword,
  5205. int pageIndex = 0,
  5206. int pageSize = 0,
  5207. String? token,
  5208. }) : super(
  5209. pageIndex: pageIndex,
  5210. pageSize: pageSize,
  5211. token: token,
  5212. );
  5213. factory FindReportTemplateUserPagesRequest.fromJson(Map<String, dynamic> map) {
  5214. return FindReportTemplateUserPagesRequest(
  5215. reportTemplateCode: map['ReportTemplateCode'],
  5216. keyword: map['Keyword'],
  5217. pageIndex: map['PageIndex'],
  5218. pageSize: map['PageSize'],
  5219. token: map['Token'],
  5220. );
  5221. }
  5222. Map<String, dynamic> toJson() {
  5223. final map = super.toJson();
  5224. if(reportTemplateCode != null)
  5225. map['ReportTemplateCode'] = reportTemplateCode;
  5226. if(keyword != null)
  5227. map['Keyword'] = keyword;
  5228. return map;
  5229. }
  5230. }
  5231. class FindRoleByCodeRequest extends TokenRequest{
  5232. String? roleCode;
  5233. FindRoleByCodeRequest({
  5234. this.roleCode,
  5235. String? token,
  5236. }) : super(
  5237. token: token,
  5238. );
  5239. factory FindRoleByCodeRequest.fromJson(Map<String, dynamic> map) {
  5240. return FindRoleByCodeRequest(
  5241. roleCode: map['RoleCode'],
  5242. token: map['Token'],
  5243. );
  5244. }
  5245. Map<String, dynamic> toJson() {
  5246. final map = super.toJson();
  5247. if(roleCode != null)
  5248. map['RoleCode'] = roleCode;
  5249. return map;
  5250. }
  5251. }
  5252. class FindThesaurusPagesRequest extends PageRequest{
  5253. String? keyword;
  5254. FindThesaurusPagesRequest({
  5255. this.keyword,
  5256. int pageIndex = 0,
  5257. int pageSize = 0,
  5258. String? token,
  5259. }) : super(
  5260. pageIndex: pageIndex,
  5261. pageSize: pageSize,
  5262. token: token,
  5263. );
  5264. factory FindThesaurusPagesRequest.fromJson(Map<String, dynamic> map) {
  5265. return FindThesaurusPagesRequest(
  5266. keyword: map['Keyword'],
  5267. pageIndex: map['PageIndex'],
  5268. pageSize: map['PageSize'],
  5269. token: map['Token'],
  5270. );
  5271. }
  5272. Map<String, dynamic> toJson() {
  5273. final map = super.toJson();
  5274. if(keyword != null)
  5275. map['Keyword'] = keyword;
  5276. return map;
  5277. }
  5278. }
  5279. class FindThesaurusUserPagesRequest extends PageRequest{
  5280. String? thesaurusCode;
  5281. String? keyword;
  5282. FindThesaurusUserPagesRequest({
  5283. this.thesaurusCode,
  5284. this.keyword,
  5285. int pageIndex = 0,
  5286. int pageSize = 0,
  5287. String? token,
  5288. }) : super(
  5289. pageIndex: pageIndex,
  5290. pageSize: pageSize,
  5291. token: token,
  5292. );
  5293. factory FindThesaurusUserPagesRequest.fromJson(Map<String, dynamic> map) {
  5294. return FindThesaurusUserPagesRequest(
  5295. thesaurusCode: map['ThesaurusCode'],
  5296. keyword: map['Keyword'],
  5297. pageIndex: map['PageIndex'],
  5298. pageSize: map['PageSize'],
  5299. token: map['Token'],
  5300. );
  5301. }
  5302. Map<String, dynamic> toJson() {
  5303. final map = super.toJson();
  5304. if(thesaurusCode != null)
  5305. map['ThesaurusCode'] = thesaurusCode;
  5306. if(keyword != null)
  5307. map['Keyword'] = keyword;
  5308. return map;
  5309. }
  5310. }
  5311. class FindThirdPartyInfoByCodeRequest extends TokenRequest{
  5312. String? code;
  5313. FindThirdPartyInfoByCodeRequest({
  5314. this.code,
  5315. String? token,
  5316. }) : super(
  5317. token: token,
  5318. );
  5319. factory FindThirdPartyInfoByCodeRequest.fromJson(Map<String, dynamic> map) {
  5320. return FindThirdPartyInfoByCodeRequest(
  5321. code: map['Code'],
  5322. token: map['Token'],
  5323. );
  5324. }
  5325. Map<String, dynamic> toJson() {
  5326. final map = super.toJson();
  5327. if(code != null)
  5328. map['Code'] = code;
  5329. return map;
  5330. }
  5331. }
  5332. class FindUserByCodeRequest extends TokenRequest{
  5333. String? userCode;
  5334. FindUserByCodeRequest({
  5335. this.userCode,
  5336. String? token,
  5337. }) : super(
  5338. token: token,
  5339. );
  5340. factory FindUserByCodeRequest.fromJson(Map<String, dynamic> map) {
  5341. return FindUserByCodeRequest(
  5342. userCode: map['UserCode'],
  5343. token: map['Token'],
  5344. );
  5345. }
  5346. Map<String, dynamic> toJson() {
  5347. final map = super.toJson();
  5348. if(userCode != null)
  5349. map['UserCode'] = userCode;
  5350. return map;
  5351. }
  5352. }
  5353. class GetAdminPagesRequest extends PageRequest{
  5354. String? queryType;
  5355. String? keyWord;
  5356. String? roleCode;
  5357. bool isShowSuperRoleCode;
  5358. String? fatherCode;
  5359. String? languageCode;
  5360. GetAdminPagesRequest({
  5361. this.queryType,
  5362. this.keyWord,
  5363. this.roleCode,
  5364. this.isShowSuperRoleCode = false,
  5365. this.fatherCode,
  5366. this.languageCode,
  5367. int pageIndex = 0,
  5368. int pageSize = 0,
  5369. String? token,
  5370. }) : super(
  5371. pageIndex: pageIndex,
  5372. pageSize: pageSize,
  5373. token: token,
  5374. );
  5375. factory GetAdminPagesRequest.fromJson(Map<String, dynamic> map) {
  5376. return GetAdminPagesRequest(
  5377. queryType: map['QueryType'],
  5378. keyWord: map['KeyWord'],
  5379. roleCode: map['RoleCode'],
  5380. isShowSuperRoleCode: map['IsShowSuperRoleCode'],
  5381. fatherCode: map['FatherCode'],
  5382. languageCode: map['LanguageCode'],
  5383. pageIndex: map['PageIndex'],
  5384. pageSize: map['PageSize'],
  5385. token: map['Token'],
  5386. );
  5387. }
  5388. Map<String, dynamic> toJson() {
  5389. final map = super.toJson();
  5390. if(queryType != null)
  5391. map['QueryType'] = queryType;
  5392. if(keyWord != null)
  5393. map['KeyWord'] = keyWord;
  5394. if(roleCode != null)
  5395. map['RoleCode'] = roleCode;
  5396. map['IsShowSuperRoleCode'] = isShowSuperRoleCode;
  5397. if(fatherCode != null)
  5398. map['FatherCode'] = fatherCode;
  5399. if(languageCode != null)
  5400. map['LanguageCode'] = languageCode;
  5401. return map;
  5402. }
  5403. }
  5404. class GetAdminRolePagesRequest extends PageRequest{
  5405. String? roleName;
  5406. GetAdminRolePagesRequest({
  5407. this.roleName,
  5408. int pageIndex = 0,
  5409. int pageSize = 0,
  5410. String? token,
  5411. }) : super(
  5412. pageIndex: pageIndex,
  5413. pageSize: pageSize,
  5414. token: token,
  5415. );
  5416. factory GetAdminRolePagesRequest.fromJson(Map<String, dynamic> map) {
  5417. return GetAdminRolePagesRequest(
  5418. roleName: map['RoleName'],
  5419. pageIndex: map['PageIndex'],
  5420. pageSize: map['PageSize'],
  5421. token: map['Token'],
  5422. );
  5423. }
  5424. Map<String, dynamic> toJson() {
  5425. final map = super.toJson();
  5426. if(roleName != null)
  5427. map['RoleName'] = roleName;
  5428. return map;
  5429. }
  5430. }
  5431. class GetDeviceModelSelectRequest extends TokenRequest{
  5432. String? parentCode;
  5433. GetDeviceModelSelectRequest({
  5434. this.parentCode,
  5435. String? token,
  5436. }) : super(
  5437. token: token,
  5438. );
  5439. factory GetDeviceModelSelectRequest.fromJson(Map<String, dynamic> map) {
  5440. return GetDeviceModelSelectRequest(
  5441. parentCode: map['ParentCode'],
  5442. token: map['Token'],
  5443. );
  5444. }
  5445. Map<String, dynamic> toJson() {
  5446. final map = super.toJson();
  5447. if(parentCode != null)
  5448. map['ParentCode'] = parentCode;
  5449. return map;
  5450. }
  5451. }
  5452. class GetDeviceOutputConfigRequest extends TokenRequest{
  5453. DeviceVideoOutputTypeEnum deviceVideoOutputType;
  5454. GetDeviceOutputConfigRequest({
  5455. this.deviceVideoOutputType = DeviceVideoOutputTypeEnum.MergedVideo,
  5456. String? token,
  5457. }) : super(
  5458. token: token,
  5459. );
  5460. factory GetDeviceOutputConfigRequest.fromJson(Map<String, dynamic> map) {
  5461. return GetDeviceOutputConfigRequest(
  5462. deviceVideoOutputType: DeviceVideoOutputTypeEnum.values.firstWhere((e) => e.index == map['DeviceVideoOutputType']),
  5463. token: map['Token'],
  5464. );
  5465. }
  5466. Map<String, dynamic> toJson() {
  5467. final map = super.toJson();
  5468. map['DeviceVideoOutputType'] = deviceVideoOutputType.index;
  5469. return map;
  5470. }
  5471. }
  5472. class GetDeviceBrandModelPageRequest extends PageRequest{
  5473. String? keyword;
  5474. GetDeviceBrandModelPageRequest({
  5475. this.keyword,
  5476. int pageIndex = 0,
  5477. int pageSize = 0,
  5478. String? token,
  5479. }) : super(
  5480. pageIndex: pageIndex,
  5481. pageSize: pageSize,
  5482. token: token,
  5483. );
  5484. factory GetDeviceBrandModelPageRequest.fromJson(Map<String, dynamic> map) {
  5485. return GetDeviceBrandModelPageRequest(
  5486. keyword: map['Keyword'],
  5487. pageIndex: map['PageIndex'],
  5488. pageSize: map['PageSize'],
  5489. token: map['Token'],
  5490. );
  5491. }
  5492. Map<String, dynamic> toJson() {
  5493. final map = super.toJson();
  5494. if(keyword != null)
  5495. map['Keyword'] = keyword;
  5496. return map;
  5497. }
  5498. }
  5499. class DeleteBrandModelOutputConfigRequest {
  5500. List<String>? brandModelCodes;
  5501. DeleteBrandModelOutputConfigRequest({
  5502. this.brandModelCodes,
  5503. });
  5504. factory DeleteBrandModelOutputConfigRequest.fromJson(Map<String, dynamic> map) {
  5505. return DeleteBrandModelOutputConfigRequest(
  5506. brandModelCodes: map['BrandModelCodes']?.cast<String>().toList(),
  5507. );
  5508. }
  5509. Map<String, dynamic> toJson() {
  5510. final map = Map<String, dynamic>();
  5511. if(brandModelCodes != null) {
  5512. map['BrandModelCodes'] = brandModelCodes;
  5513. }
  5514. return map;
  5515. }
  5516. }
  5517. class GetDevicePagesRequest extends PageRequest{
  5518. String? queryType;
  5519. String? keyword;
  5520. List<String>? hospitals;
  5521. String? adminName;
  5522. String? userName;
  5523. GetDevicePagesRequest({
  5524. this.queryType,
  5525. this.keyword,
  5526. this.hospitals,
  5527. this.adminName,
  5528. this.userName,
  5529. int pageIndex = 0,
  5530. int pageSize = 0,
  5531. String? token,
  5532. }) : super(
  5533. pageIndex: pageIndex,
  5534. pageSize: pageSize,
  5535. token: token,
  5536. );
  5537. factory GetDevicePagesRequest.fromJson(Map<String, dynamic> map) {
  5538. return GetDevicePagesRequest(
  5539. queryType: map['QueryType'],
  5540. keyword: map['Keyword'],
  5541. hospitals: map['Hospitals']?.cast<String>().toList(),
  5542. adminName: map['AdminName'],
  5543. userName: map['UserName'],
  5544. pageIndex: map['PageIndex'],
  5545. pageSize: map['PageSize'],
  5546. token: map['Token'],
  5547. );
  5548. }
  5549. Map<String, dynamic> toJson() {
  5550. final map = super.toJson();
  5551. if(queryType != null)
  5552. map['QueryType'] = queryType;
  5553. if(keyword != null)
  5554. map['Keyword'] = keyword;
  5555. if(hospitals != null)
  5556. map['Hospitals'] = hospitals;
  5557. if(adminName != null)
  5558. map['AdminName'] = adminName;
  5559. if(userName != null)
  5560. map['UserName'] = userName;
  5561. return map;
  5562. }
  5563. }
  5564. class FindDeviceInfoByDeviceTypeRequest {
  5565. String? deviceTypeCode;
  5566. FindDeviceInfoByDeviceTypeRequest({
  5567. this.deviceTypeCode,
  5568. });
  5569. factory FindDeviceInfoByDeviceTypeRequest.fromJson(Map<String, dynamic> map) {
  5570. return FindDeviceInfoByDeviceTypeRequest(
  5571. deviceTypeCode: map['DeviceTypeCode'],
  5572. );
  5573. }
  5574. Map<String, dynamic> toJson() {
  5575. final map = Map<String, dynamic>();
  5576. if(deviceTypeCode != null) {
  5577. map['DeviceTypeCode'] = deviceTypeCode;
  5578. }
  5579. return map;
  5580. }
  5581. }
  5582. class GetDeviceTypePagesRequest extends PageRequest{
  5583. String? deviceType;
  5584. String? deviceModel;
  5585. GetDeviceTypePagesRequest({
  5586. this.deviceType,
  5587. this.deviceModel,
  5588. int pageIndex = 0,
  5589. int pageSize = 0,
  5590. String? token,
  5591. }) : super(
  5592. pageIndex: pageIndex,
  5593. pageSize: pageSize,
  5594. token: token,
  5595. );
  5596. factory GetDeviceTypePagesRequest.fromJson(Map<String, dynamic> map) {
  5597. return GetDeviceTypePagesRequest(
  5598. deviceType: map['DeviceType'],
  5599. deviceModel: map['DeviceModel'],
  5600. pageIndex: map['PageIndex'],
  5601. pageSize: map['PageSize'],
  5602. token: map['Token'],
  5603. );
  5604. }
  5605. Map<String, dynamic> toJson() {
  5606. final map = super.toJson();
  5607. if(deviceType != null)
  5608. map['DeviceType'] = deviceType;
  5609. if(deviceModel != null)
  5610. map['DeviceModel'] = deviceModel;
  5611. return map;
  5612. }
  5613. }
  5614. class GetDeviceUserPagesRequest extends PageRequest{
  5615. List<String>? deviceCodes;
  5616. String? queryType;
  5617. String? keyword;
  5618. int type;
  5619. GetDeviceUserPagesRequest({
  5620. this.deviceCodes,
  5621. this.queryType,
  5622. this.keyword,
  5623. this.type = 0,
  5624. int pageIndex = 0,
  5625. int pageSize = 0,
  5626. String? token,
  5627. }) : super(
  5628. pageIndex: pageIndex,
  5629. pageSize: pageSize,
  5630. token: token,
  5631. );
  5632. factory GetDeviceUserPagesRequest.fromJson(Map<String, dynamic> map) {
  5633. return GetDeviceUserPagesRequest(
  5634. deviceCodes: map['DeviceCodes']?.cast<String>().toList(),
  5635. queryType: map['QueryType'],
  5636. keyword: map['Keyword'],
  5637. type: map['Type'],
  5638. pageIndex: map['PageIndex'],
  5639. pageSize: map['PageSize'],
  5640. token: map['Token'],
  5641. );
  5642. }
  5643. Map<String, dynamic> toJson() {
  5644. final map = super.toJson();
  5645. if(deviceCodes != null)
  5646. map['DeviceCodes'] = deviceCodes;
  5647. if(queryType != null)
  5648. map['QueryType'] = queryType;
  5649. if(keyword != null)
  5650. map['Keyword'] = keyword;
  5651. map['Type'] = type;
  5652. return map;
  5653. }
  5654. }
  5655. class GetDistributedServerRequest extends PageRequest{
  5656. String? keyword;
  5657. GetDistributedServerRequest({
  5658. this.keyword,
  5659. int pageIndex = 0,
  5660. int pageSize = 0,
  5661. String? token,
  5662. }) : super(
  5663. pageIndex: pageIndex,
  5664. pageSize: pageSize,
  5665. token: token,
  5666. );
  5667. factory GetDistributedServerRequest.fromJson(Map<String, dynamic> map) {
  5668. return GetDistributedServerRequest(
  5669. keyword: map['Keyword'],
  5670. pageIndex: map['PageIndex'],
  5671. pageSize: map['PageSize'],
  5672. token: map['Token'],
  5673. );
  5674. }
  5675. Map<String, dynamic> toJson() {
  5676. final map = super.toJson();
  5677. if(keyword != null)
  5678. map['Keyword'] = keyword;
  5679. return map;
  5680. }
  5681. }
  5682. class GetLogPagesRequest extends PageRequest{
  5683. String? level;
  5684. String? keyWord;
  5685. String? exclude;
  5686. DateTime? startTime;
  5687. DateTime? endTime;
  5688. String? requestServerHost;
  5689. GetLogPagesRequest({
  5690. this.level,
  5691. this.keyWord,
  5692. this.exclude,
  5693. this.startTime,
  5694. this.endTime,
  5695. this.requestServerHost,
  5696. int pageIndex = 0,
  5697. int pageSize = 0,
  5698. String? token,
  5699. }) : super(
  5700. pageIndex: pageIndex,
  5701. pageSize: pageSize,
  5702. token: token,
  5703. );
  5704. factory GetLogPagesRequest.fromJson(Map<String, dynamic> map) {
  5705. return GetLogPagesRequest(
  5706. level: map['Level'],
  5707. keyWord: map['KeyWord'],
  5708. exclude: map['Exclude'],
  5709. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  5710. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  5711. requestServerHost: map['RequestServerHost'],
  5712. pageIndex: map['PageIndex'],
  5713. pageSize: map['PageSize'],
  5714. token: map['Token'],
  5715. );
  5716. }
  5717. Map<String, dynamic> toJson() {
  5718. final map = super.toJson();
  5719. if(level != null)
  5720. map['Level'] = level;
  5721. if(keyWord != null)
  5722. map['KeyWord'] = keyWord;
  5723. if(exclude != null)
  5724. map['Exclude'] = exclude;
  5725. if(startTime != null)
  5726. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  5727. if(endTime != null)
  5728. map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
  5729. if(requestServerHost != null)
  5730. map['RequestServerHost'] = requestServerHost;
  5731. return map;
  5732. }
  5733. }
  5734. class GetOrganizationCustomSettingRequest extends TokenRequest{
  5735. String? langugeKey;
  5736. String? settingModule;
  5737. String? organizationCode;
  5738. GetOrganizationCustomSettingRequest({
  5739. this.langugeKey,
  5740. this.settingModule,
  5741. this.organizationCode,
  5742. String? token,
  5743. }) : super(
  5744. token: token,
  5745. );
  5746. factory GetOrganizationCustomSettingRequest.fromJson(Map<String, dynamic> map) {
  5747. return GetOrganizationCustomSettingRequest(
  5748. langugeKey: map['LangugeKey'],
  5749. settingModule: map['SettingModule'],
  5750. organizationCode: map['OrganizationCode'],
  5751. token: map['Token'],
  5752. );
  5753. }
  5754. Map<String, dynamic> toJson() {
  5755. final map = super.toJson();
  5756. if(langugeKey != null)
  5757. map['LangugeKey'] = langugeKey;
  5758. if(settingModule != null)
  5759. map['SettingModule'] = settingModule;
  5760. if(organizationCode != null)
  5761. map['OrganizationCode'] = organizationCode;
  5762. return map;
  5763. }
  5764. }
  5765. class GetOrganizationPagesRequest extends PageRequest{
  5766. String? queryType;
  5767. String? keyword;
  5768. String? state;
  5769. String? isinvented;
  5770. GetOrganizationPagesRequest({
  5771. this.queryType,
  5772. this.keyword,
  5773. this.state,
  5774. this.isinvented,
  5775. int pageIndex = 0,
  5776. int pageSize = 0,
  5777. String? token,
  5778. }) : super(
  5779. pageIndex: pageIndex,
  5780. pageSize: pageSize,
  5781. token: token,
  5782. );
  5783. factory GetOrganizationPagesRequest.fromJson(Map<String, dynamic> map) {
  5784. return GetOrganizationPagesRequest(
  5785. queryType: map['QueryType'],
  5786. keyword: map['Keyword'],
  5787. state: map['State'],
  5788. isinvented: map['Isinvented'],
  5789. pageIndex: map['PageIndex'],
  5790. pageSize: map['PageSize'],
  5791. token: map['Token'],
  5792. );
  5793. }
  5794. Map<String, dynamic> toJson() {
  5795. final map = super.toJson();
  5796. if(queryType != null)
  5797. map['QueryType'] = queryType;
  5798. if(keyword != null)
  5799. map['Keyword'] = keyword;
  5800. if(state != null)
  5801. map['State'] = state;
  5802. if(isinvented != null)
  5803. map['Isinvented'] = isinvented;
  5804. return map;
  5805. }
  5806. }
  5807. class GetOrganizationRequest extends TokenRequest{
  5808. String? organizationCode;
  5809. GetOrganizationRequest({
  5810. this.organizationCode,
  5811. String? token,
  5812. }) : super(
  5813. token: token,
  5814. );
  5815. factory GetOrganizationRequest.fromJson(Map<String, dynamic> map) {
  5816. return GetOrganizationRequest(
  5817. organizationCode: map['OrganizationCode'],
  5818. token: map['Token'],
  5819. );
  5820. }
  5821. Map<String, dynamic> toJson() {
  5822. final map = super.toJson();
  5823. if(organizationCode != null)
  5824. map['OrganizationCode'] = organizationCode;
  5825. return map;
  5826. }
  5827. }
  5828. class GetOrganizationSettingRequest extends TokenRequest{
  5829. OrganizationSettingTypeEnum settingType;
  5830. String? organizationCode;
  5831. GetOrganizationSettingRequest({
  5832. this.settingType = OrganizationSettingTypeEnum.Patient,
  5833. this.organizationCode,
  5834. String? token,
  5835. }) : super(
  5836. token: token,
  5837. );
  5838. factory GetOrganizationSettingRequest.fromJson(Map<String, dynamic> map) {
  5839. return GetOrganizationSettingRequest(
  5840. settingType: OrganizationSettingTypeEnum.values.firstWhere((e) => e.index == map['SettingType']),
  5841. organizationCode: map['OrganizationCode'],
  5842. token: map['Token'],
  5843. );
  5844. }
  5845. Map<String, dynamic> toJson() {
  5846. final map = super.toJson();
  5847. map['SettingType'] = settingType.index;
  5848. if(organizationCode != null)
  5849. map['OrganizationCode'] = organizationCode;
  5850. return map;
  5851. }
  5852. }
  5853. class GetOrganizationUserPagesRequest extends PageRequest{
  5854. String? organizationCode;
  5855. String? queryType;
  5856. String? keyword;
  5857. GetOrganizationUserPagesRequest({
  5858. this.organizationCode,
  5859. this.queryType,
  5860. this.keyword,
  5861. int pageIndex = 0,
  5862. int pageSize = 0,
  5863. String? token,
  5864. }) : super(
  5865. pageIndex: pageIndex,
  5866. pageSize: pageSize,
  5867. token: token,
  5868. );
  5869. factory GetOrganizationUserPagesRequest.fromJson(Map<String, dynamic> map) {
  5870. return GetOrganizationUserPagesRequest(
  5871. organizationCode: map['OrganizationCode'],
  5872. queryType: map['QueryType'],
  5873. keyword: map['Keyword'],
  5874. pageIndex: map['PageIndex'],
  5875. pageSize: map['PageSize'],
  5876. token: map['Token'],
  5877. );
  5878. }
  5879. Map<String, dynamic> toJson() {
  5880. final map = super.toJson();
  5881. if(organizationCode != null)
  5882. map['OrganizationCode'] = organizationCode;
  5883. if(queryType != null)
  5884. map['QueryType'] = queryType;
  5885. if(keyword != null)
  5886. map['Keyword'] = keyword;
  5887. return map;
  5888. }
  5889. }
  5890. class GetPayUrlRequest extends PageRequest{
  5891. String? shortCode;
  5892. GetPayUrlRequest({
  5893. this.shortCode,
  5894. int pageIndex = 0,
  5895. int pageSize = 0,
  5896. String? token,
  5897. }) : super(
  5898. pageIndex: pageIndex,
  5899. pageSize: pageSize,
  5900. token: token,
  5901. );
  5902. factory GetPayUrlRequest.fromJson(Map<String, dynamic> map) {
  5903. return GetPayUrlRequest(
  5904. shortCode: map['ShortCode'],
  5905. pageIndex: map['PageIndex'],
  5906. pageSize: map['PageSize'],
  5907. token: map['Token'],
  5908. );
  5909. }
  5910. Map<String, dynamic> toJson() {
  5911. final map = super.toJson();
  5912. if(shortCode != null)
  5913. map['ShortCode'] = shortCode;
  5914. return map;
  5915. }
  5916. }
  5917. class GetPayUrlResult {
  5918. String? payUrl;
  5919. GetPayUrlResult({
  5920. this.payUrl,
  5921. });
  5922. factory GetPayUrlResult.fromJson(Map<String, dynamic> map) {
  5923. return GetPayUrlResult(
  5924. payUrl: map['PayUrl'],
  5925. );
  5926. }
  5927. Map<String, dynamic> toJson() {
  5928. final map = Map<String, dynamic>();
  5929. if(payUrl != null) {
  5930. map['PayUrl'] = payUrl;
  5931. }
  5932. return map;
  5933. }
  5934. }
  5935. class GetRolePagesRequest extends PageRequest{
  5936. String? roleName;
  5937. GetRolePagesRequest({
  5938. this.roleName,
  5939. int pageIndex = 0,
  5940. int pageSize = 0,
  5941. String? token,
  5942. }) : super(
  5943. pageIndex: pageIndex,
  5944. pageSize: pageSize,
  5945. token: token,
  5946. );
  5947. factory GetRolePagesRequest.fromJson(Map<String, dynamic> map) {
  5948. return GetRolePagesRequest(
  5949. roleName: map['RoleName'],
  5950. pageIndex: map['PageIndex'],
  5951. pageSize: map['PageSize'],
  5952. token: map['Token'],
  5953. );
  5954. }
  5955. Map<String, dynamic> toJson() {
  5956. final map = super.toJson();
  5957. if(roleName != null)
  5958. map['RoleName'] = roleName;
  5959. return map;
  5960. }
  5961. }
  5962. class GetRoleSelectListRequest extends TokenRequest{
  5963. String? languageCode;
  5964. GetRoleSelectListRequest({
  5965. this.languageCode,
  5966. String? token,
  5967. }) : super(
  5968. token: token,
  5969. );
  5970. factory GetRoleSelectListRequest.fromJson(Map<String, dynamic> map) {
  5971. return GetRoleSelectListRequest(
  5972. languageCode: map['LanguageCode'],
  5973. token: map['Token'],
  5974. );
  5975. }
  5976. Map<String, dynamic> toJson() {
  5977. final map = super.toJson();
  5978. if(languageCode != null)
  5979. map['LanguageCode'] = languageCode;
  5980. return map;
  5981. }
  5982. }
  5983. class GetSelectOrganizationPageRequest extends PageRequest{
  5984. String? keyword;
  5985. GetSelectOrganizationPageRequest({
  5986. this.keyword,
  5987. int pageIndex = 0,
  5988. int pageSize = 0,
  5989. String? token,
  5990. }) : super(
  5991. pageIndex: pageIndex,
  5992. pageSize: pageSize,
  5993. token: token,
  5994. );
  5995. factory GetSelectOrganizationPageRequest.fromJson(Map<String, dynamic> map) {
  5996. return GetSelectOrganizationPageRequest(
  5997. keyword: map['Keyword'],
  5998. pageIndex: map['PageIndex'],
  5999. pageSize: map['PageSize'],
  6000. token: map['Token'],
  6001. );
  6002. }
  6003. Map<String, dynamic> toJson() {
  6004. final map = super.toJson();
  6005. if(keyword != null)
  6006. map['Keyword'] = keyword;
  6007. return map;
  6008. }
  6009. }
  6010. class GetShareExamUrlRequest {
  6011. String? requestUrl;
  6012. String? languageCode;
  6013. GetShareExamUrlRequest({
  6014. this.requestUrl,
  6015. this.languageCode,
  6016. });
  6017. factory GetShareExamUrlRequest.fromJson(Map<String, dynamic> map) {
  6018. return GetShareExamUrlRequest(
  6019. requestUrl: map['RequestUrl'],
  6020. languageCode: map['LanguageCode'],
  6021. );
  6022. }
  6023. Map<String, dynamic> toJson() {
  6024. final map = Map<String, dynamic>();
  6025. if(requestUrl != null) {
  6026. map['RequestUrl'] = requestUrl;
  6027. }
  6028. if(languageCode != null) {
  6029. map['LanguageCode'] = languageCode;
  6030. }
  6031. return map;
  6032. }
  6033. }
  6034. class GetThesaurusItemRequest extends TokenRequest{
  6035. String? thesaurusCode;
  6036. String? thesaurusItemCode;
  6037. GetThesaurusItemRequest({
  6038. this.thesaurusCode,
  6039. this.thesaurusItemCode,
  6040. String? token,
  6041. }) : super(
  6042. token: token,
  6043. );
  6044. factory GetThesaurusItemRequest.fromJson(Map<String, dynamic> map) {
  6045. return GetThesaurusItemRequest(
  6046. thesaurusCode: map['ThesaurusCode'],
  6047. thesaurusItemCode: map['ThesaurusItemCode'],
  6048. token: map['Token'],
  6049. );
  6050. }
  6051. Map<String, dynamic> toJson() {
  6052. final map = super.toJson();
  6053. if(thesaurusCode != null)
  6054. map['ThesaurusCode'] = thesaurusCode;
  6055. if(thesaurusItemCode != null)
  6056. map['ThesaurusItemCode'] = thesaurusItemCode;
  6057. return map;
  6058. }
  6059. }
  6060. class GetThirdPartyInfoPagesRequest extends PageRequest{
  6061. String? name;
  6062. String? isValid;
  6063. GetThirdPartyInfoPagesRequest({
  6064. this.name,
  6065. this.isValid,
  6066. int pageIndex = 0,
  6067. int pageSize = 0,
  6068. String? token,
  6069. }) : super(
  6070. pageIndex: pageIndex,
  6071. pageSize: pageSize,
  6072. token: token,
  6073. );
  6074. factory GetThirdPartyInfoPagesRequest.fromJson(Map<String, dynamic> map) {
  6075. return GetThirdPartyInfoPagesRequest(
  6076. name: map['Name'],
  6077. isValid: map['IsValid'],
  6078. pageIndex: map['PageIndex'],
  6079. pageSize: map['PageSize'],
  6080. token: map['Token'],
  6081. );
  6082. }
  6083. Map<String, dynamic> toJson() {
  6084. final map = super.toJson();
  6085. if(name != null)
  6086. map['Name'] = name;
  6087. if(isValid != null)
  6088. map['IsValid'] = isValid;
  6089. return map;
  6090. }
  6091. }
  6092. class GetFeatureListRequest extends TokenRequest{
  6093. String? language;
  6094. GetFeatureListRequest({
  6095. this.language,
  6096. String? token,
  6097. }) : super(
  6098. token: token,
  6099. );
  6100. factory GetFeatureListRequest.fromJson(Map<String, dynamic> map) {
  6101. return GetFeatureListRequest(
  6102. language: map['Language'],
  6103. token: map['Token'],
  6104. );
  6105. }
  6106. Map<String, dynamic> toJson() {
  6107. final map = super.toJson();
  6108. if(language != null)
  6109. map['Language'] = language;
  6110. return map;
  6111. }
  6112. }
  6113. class GetUserDevicesPagesRequest extends PageRequest{
  6114. String? userCode;
  6115. String? keyword;
  6116. GetUserDevicesPagesRequest({
  6117. this.userCode,
  6118. this.keyword,
  6119. int pageIndex = 0,
  6120. int pageSize = 0,
  6121. String? token,
  6122. }) : super(
  6123. pageIndex: pageIndex,
  6124. pageSize: pageSize,
  6125. token: token,
  6126. );
  6127. factory GetUserDevicesPagesRequest.fromJson(Map<String, dynamic> map) {
  6128. return GetUserDevicesPagesRequest(
  6129. userCode: map['UserCode'],
  6130. keyword: map['Keyword'],
  6131. pageIndex: map['PageIndex'],
  6132. pageSize: map['PageSize'],
  6133. token: map['Token'],
  6134. );
  6135. }
  6136. Map<String, dynamic> toJson() {
  6137. final map = super.toJson();
  6138. if(userCode != null)
  6139. map['UserCode'] = userCode;
  6140. if(keyword != null)
  6141. map['Keyword'] = keyword;
  6142. return map;
  6143. }
  6144. }
  6145. class GetOrganizationDevicesPagesRequest extends PageRequest{
  6146. String? organizationCode;
  6147. String? keyword;
  6148. GetOrganizationDevicesPagesRequest({
  6149. this.organizationCode,
  6150. this.keyword,
  6151. int pageIndex = 0,
  6152. int pageSize = 0,
  6153. String? token,
  6154. }) : super(
  6155. pageIndex: pageIndex,
  6156. pageSize: pageSize,
  6157. token: token,
  6158. );
  6159. factory GetOrganizationDevicesPagesRequest.fromJson(Map<String, dynamic> map) {
  6160. return GetOrganizationDevicesPagesRequest(
  6161. organizationCode: map['OrganizationCode'],
  6162. keyword: map['Keyword'],
  6163. pageIndex: map['PageIndex'],
  6164. pageSize: map['PageSize'],
  6165. token: map['Token'],
  6166. );
  6167. }
  6168. Map<String, dynamic> toJson() {
  6169. final map = super.toJson();
  6170. if(organizationCode != null)
  6171. map['OrganizationCode'] = organizationCode;
  6172. if(keyword != null)
  6173. map['Keyword'] = keyword;
  6174. return map;
  6175. }
  6176. }
  6177. class ImitateLoginRequest {
  6178. String? account;
  6179. String? password;
  6180. AccountType accountType;
  6181. ImitateLoginRequest({
  6182. this.account,
  6183. this.password,
  6184. this.accountType = AccountType.Admin,
  6185. });
  6186. factory ImitateLoginRequest.fromJson(Map<String, dynamic> map) {
  6187. return ImitateLoginRequest(
  6188. account: map['Account'],
  6189. password: map['Password'],
  6190. accountType: AccountType.values.firstWhere((e) => e.index == map['AccountType']),
  6191. );
  6192. }
  6193. Map<String, dynamic> toJson() {
  6194. final map = Map<String, dynamic>();
  6195. if(account != null) {
  6196. map['Account'] = account;
  6197. }
  6198. if(password != null) {
  6199. map['Password'] = password;
  6200. }
  6201. map['AccountType'] = accountType.index;
  6202. return map;
  6203. }
  6204. }
  6205. class ImitateLoginResult {
  6206. String? clientId;
  6207. ImitateLoginResult({
  6208. this.clientId,
  6209. });
  6210. factory ImitateLoginResult.fromJson(Map<String, dynamic> map) {
  6211. return ImitateLoginResult(
  6212. clientId: map['ClientId'],
  6213. );
  6214. }
  6215. Map<String, dynamic> toJson() {
  6216. final map = Map<String, dynamic>();
  6217. if(clientId != null) {
  6218. map['ClientId'] = clientId;
  6219. }
  6220. return map;
  6221. }
  6222. }
  6223. class ImportThesaurusRequest {
  6224. String? thesaurusName;
  6225. String? json;
  6226. ThesaurusUsageTypeEnum thesaurusUsageType;
  6227. String? languageCode;
  6228. ImportThesaurusRequest({
  6229. this.thesaurusName,
  6230. this.json,
  6231. this.thesaurusUsageType = ThesaurusUsageTypeEnum.People,
  6232. this.languageCode,
  6233. });
  6234. factory ImportThesaurusRequest.fromJson(Map<String, dynamic> map) {
  6235. return ImportThesaurusRequest(
  6236. thesaurusName: map['ThesaurusName'],
  6237. json: map['Json'],
  6238. thesaurusUsageType: ThesaurusUsageTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusUsageType']),
  6239. languageCode: map['LanguageCode'],
  6240. );
  6241. }
  6242. Map<String, dynamic> toJson() {
  6243. final map = Map<String, dynamic>();
  6244. if(thesaurusName != null) {
  6245. map['ThesaurusName'] = thesaurusName;
  6246. }
  6247. if(json != null) {
  6248. map['Json'] = json;
  6249. }
  6250. map['ThesaurusUsageType'] = thesaurusUsageType.index;
  6251. if(languageCode != null) {
  6252. map['LanguageCode'] = languageCode;
  6253. }
  6254. return map;
  6255. }
  6256. }
  6257. class LoginRequest {
  6258. String? adminName;
  6259. String? password;
  6260. LoginRequest({
  6261. this.adminName,
  6262. this.password,
  6263. });
  6264. factory LoginRequest.fromJson(Map<String, dynamic> map) {
  6265. return LoginRequest(
  6266. adminName: map['AdminName'],
  6267. password: map['Password'],
  6268. );
  6269. }
  6270. Map<String, dynamic> toJson() {
  6271. final map = Map<String, dynamic>();
  6272. if(adminName != null) {
  6273. map['AdminName'] = adminName;
  6274. }
  6275. if(password != null) {
  6276. map['Password'] = password;
  6277. }
  6278. return map;
  6279. }
  6280. }
  6281. enum ProductStatusEnum {
  6282. SoldOut,
  6283. Putaway,
  6284. }
  6285. enum ProductTypeEnum {
  6286. Course,
  6287. Other,
  6288. }
  6289. class ManageCreateProductRequest extends TokenRequest{
  6290. String? name;
  6291. String? headImage;
  6292. double price;
  6293. ProductStatusEnum status;
  6294. ProductTypeEnum productType;
  6295. String? belongerCode;
  6296. String? relationInfo;
  6297. ManageCreateProductRequest({
  6298. this.name,
  6299. this.headImage,
  6300. this.price = 0,
  6301. this.status = ProductStatusEnum.SoldOut,
  6302. this.productType = ProductTypeEnum.Course,
  6303. this.belongerCode,
  6304. this.relationInfo,
  6305. String? token,
  6306. }) : super(
  6307. token: token,
  6308. );
  6309. factory ManageCreateProductRequest.fromJson(Map<String, dynamic> map) {
  6310. return ManageCreateProductRequest(
  6311. name: map['Name'],
  6312. headImage: map['HeadImage'],
  6313. price: double.parse(map['Price'].toString()),
  6314. status: ProductStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  6315. productType: ProductTypeEnum.values.firstWhere((e) => e.index == map['ProductType']),
  6316. belongerCode: map['BelongerCode'],
  6317. relationInfo: map['RelationInfo'],
  6318. token: map['Token'],
  6319. );
  6320. }
  6321. Map<String, dynamic> toJson() {
  6322. final map = super.toJson();
  6323. if(name != null)
  6324. map['Name'] = name;
  6325. if(headImage != null)
  6326. map['HeadImage'] = headImage;
  6327. map['Price'] = price;
  6328. map['Status'] = status.index;
  6329. map['ProductType'] = productType.index;
  6330. if(belongerCode != null)
  6331. map['BelongerCode'] = belongerCode;
  6332. if(relationInfo != null)
  6333. map['RelationInfo'] = relationInfo;
  6334. return map;
  6335. }
  6336. }
  6337. class ManageGetOrderDetailRequest extends TokenRequest{
  6338. String? orderCode;
  6339. ManageGetOrderDetailRequest({
  6340. this.orderCode,
  6341. String? token,
  6342. }) : super(
  6343. token: token,
  6344. );
  6345. factory ManageGetOrderDetailRequest.fromJson(Map<String, dynamic> map) {
  6346. return ManageGetOrderDetailRequest(
  6347. orderCode: map['OrderCode'],
  6348. token: map['Token'],
  6349. );
  6350. }
  6351. Map<String, dynamic> toJson() {
  6352. final map = super.toJson();
  6353. if(orderCode != null)
  6354. map['OrderCode'] = orderCode;
  6355. return map;
  6356. }
  6357. }
  6358. class ManageGetOrderPagesRequest extends PageRequest{
  6359. String? keyWord;
  6360. ManageGetOrderPagesRequest({
  6361. this.keyWord,
  6362. int pageIndex = 0,
  6363. int pageSize = 0,
  6364. String? token,
  6365. }) : super(
  6366. pageIndex: pageIndex,
  6367. pageSize: pageSize,
  6368. token: token,
  6369. );
  6370. factory ManageGetOrderPagesRequest.fromJson(Map<String, dynamic> map) {
  6371. return ManageGetOrderPagesRequest(
  6372. keyWord: map['KeyWord'],
  6373. pageIndex: map['PageIndex'],
  6374. pageSize: map['PageSize'],
  6375. token: map['Token'],
  6376. );
  6377. }
  6378. Map<String, dynamic> toJson() {
  6379. final map = super.toJson();
  6380. if(keyWord != null)
  6381. map['KeyWord'] = keyWord;
  6382. return map;
  6383. }
  6384. }
  6385. class ManageGetPaymentRecordsRequest extends PageRequest{
  6386. String? keyword;
  6387. ManageGetPaymentRecordsRequest({
  6388. this.keyword,
  6389. int pageIndex = 0,
  6390. int pageSize = 0,
  6391. String? token,
  6392. }) : super(
  6393. pageIndex: pageIndex,
  6394. pageSize: pageSize,
  6395. token: token,
  6396. );
  6397. factory ManageGetPaymentRecordsRequest.fromJson(Map<String, dynamic> map) {
  6398. return ManageGetPaymentRecordsRequest(
  6399. keyword: map['Keyword'],
  6400. pageIndex: map['PageIndex'],
  6401. pageSize: map['PageSize'],
  6402. token: map['Token'],
  6403. );
  6404. }
  6405. Map<String, dynamic> toJson() {
  6406. final map = super.toJson();
  6407. if(keyword != null)
  6408. map['Keyword'] = keyword;
  6409. return map;
  6410. }
  6411. }
  6412. class ManageUpdateProductRequest extends TokenRequest{
  6413. String? code;
  6414. String? name;
  6415. String? headImage;
  6416. double price;
  6417. ProductStatusEnum status;
  6418. ProductTypeEnum productType;
  6419. String? belongerCode;
  6420. String? relationInfo;
  6421. ManageUpdateProductRequest({
  6422. this.code,
  6423. this.name,
  6424. this.headImage,
  6425. this.price = 0,
  6426. this.status = ProductStatusEnum.SoldOut,
  6427. this.productType = ProductTypeEnum.Course,
  6428. this.belongerCode,
  6429. this.relationInfo,
  6430. String? token,
  6431. }) : super(
  6432. token: token,
  6433. );
  6434. factory ManageUpdateProductRequest.fromJson(Map<String, dynamic> map) {
  6435. return ManageUpdateProductRequest(
  6436. code: map['Code'],
  6437. name: map['Name'],
  6438. headImage: map['HeadImage'],
  6439. price: double.parse(map['Price'].toString()),
  6440. status: ProductStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  6441. productType: ProductTypeEnum.values.firstWhere((e) => e.index == map['ProductType']),
  6442. belongerCode: map['BelongerCode'],
  6443. relationInfo: map['RelationInfo'],
  6444. token: map['Token'],
  6445. );
  6446. }
  6447. Map<String, dynamic> toJson() {
  6448. final map = super.toJson();
  6449. if(code != null)
  6450. map['Code'] = code;
  6451. if(name != null)
  6452. map['Name'] = name;
  6453. if(headImage != null)
  6454. map['HeadImage'] = headImage;
  6455. map['Price'] = price;
  6456. map['Status'] = status.index;
  6457. map['ProductType'] = productType.index;
  6458. if(belongerCode != null)
  6459. map['BelongerCode'] = belongerCode;
  6460. if(relationInfo != null)
  6461. map['RelationInfo'] = relationInfo;
  6462. return map;
  6463. }
  6464. }
  6465. class BaseFeatureLanguageConfigDTO extends BaseDTO{
  6466. String? language;
  6467. String? featureName;
  6468. BaseFeatureLanguageConfigDTO({
  6469. this.language,
  6470. this.featureName,
  6471. DateTime? createTime,
  6472. DateTime? updateTime,
  6473. }) : super(
  6474. createTime: createTime,
  6475. updateTime: updateTime,
  6476. );
  6477. factory BaseFeatureLanguageConfigDTO.fromJson(Map<String, dynamic> map) {
  6478. return BaseFeatureLanguageConfigDTO(
  6479. language: map['Language'],
  6480. featureName: map['FeatureName'],
  6481. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6482. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  6483. );
  6484. }
  6485. Map<String, dynamic> toJson() {
  6486. final map = super.toJson();
  6487. if(language != null)
  6488. map['Language'] = language;
  6489. if(featureName != null)
  6490. map['FeatureName'] = featureName;
  6491. return map;
  6492. }
  6493. }
  6494. class BaseFeatureInfoDTO extends BaseDTO{
  6495. String? featureCode;
  6496. String? featureName;
  6497. String? fatherCode;
  6498. String? uniqueCode;
  6499. List<BaseFeatureLanguageConfigDTO>? languageConfigs;
  6500. BaseFeatureInfoDTO({
  6501. this.featureCode,
  6502. this.featureName,
  6503. this.fatherCode,
  6504. this.uniqueCode,
  6505. this.languageConfigs,
  6506. DateTime? createTime,
  6507. DateTime? updateTime,
  6508. }) : super(
  6509. createTime: createTime,
  6510. updateTime: updateTime,
  6511. );
  6512. factory BaseFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  6513. return BaseFeatureInfoDTO(
  6514. featureCode: map['FeatureCode'],
  6515. featureName: map['FeatureName'],
  6516. fatherCode: map['FatherCode'],
  6517. uniqueCode: map['UniqueCode'],
  6518. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>BaseFeatureLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6519. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6520. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  6521. );
  6522. }
  6523. Map<String, dynamic> toJson() {
  6524. final map = super.toJson();
  6525. if(featureCode != null)
  6526. map['FeatureCode'] = featureCode;
  6527. if(featureName != null)
  6528. map['FeatureName'] = featureName;
  6529. if(fatherCode != null)
  6530. map['FatherCode'] = fatherCode;
  6531. if(uniqueCode != null)
  6532. map['UniqueCode'] = uniqueCode;
  6533. if(languageConfigs != null)
  6534. map['LanguageConfigs'] = languageConfigs;
  6535. return map;
  6536. }
  6537. }
  6538. class AdminFeatureInfoDTO extends BaseFeatureInfoDTO{
  6539. AdminFeatureInfoDTO({
  6540. String? featureCode,
  6541. String? featureName,
  6542. String? fatherCode,
  6543. String? uniqueCode,
  6544. List<BaseFeatureLanguageConfigDTO>? languageConfigs,
  6545. DateTime? createTime,
  6546. DateTime? updateTime,
  6547. }) : super(
  6548. featureCode: featureCode,
  6549. featureName: featureName,
  6550. fatherCode: fatherCode,
  6551. uniqueCode: uniqueCode,
  6552. languageConfigs: languageConfigs,
  6553. createTime: createTime,
  6554. updateTime: updateTime,
  6555. );
  6556. factory AdminFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  6557. return AdminFeatureInfoDTO(
  6558. featureCode: map['FeatureCode'],
  6559. featureName: map['FeatureName'],
  6560. fatherCode: map['FatherCode'],
  6561. uniqueCode: map['UniqueCode'],
  6562. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>BaseFeatureLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6563. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6564. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  6565. );
  6566. }
  6567. Map<String, dynamic> toJson() {
  6568. final map = super.toJson();
  6569. return map;
  6570. }
  6571. }
  6572. class ModifyAdminFeatureRequest extends AdminFeatureInfoDTO{
  6573. String? token;
  6574. ModifyAdminFeatureRequest({
  6575. this.token,
  6576. String? featureCode,
  6577. String? featureName,
  6578. String? fatherCode,
  6579. String? uniqueCode,
  6580. List<BaseFeatureLanguageConfigDTO>? languageConfigs,
  6581. DateTime? createTime,
  6582. DateTime? updateTime,
  6583. }) : super(
  6584. featureCode: featureCode,
  6585. featureName: featureName,
  6586. fatherCode: fatherCode,
  6587. uniqueCode: uniqueCode,
  6588. languageConfigs: languageConfigs,
  6589. createTime: createTime,
  6590. updateTime: updateTime,
  6591. );
  6592. factory ModifyAdminFeatureRequest.fromJson(Map<String, dynamic> map) {
  6593. return ModifyAdminFeatureRequest(
  6594. token: map['Token'],
  6595. featureCode: map['FeatureCode'],
  6596. featureName: map['FeatureName'],
  6597. fatherCode: map['FatherCode'],
  6598. uniqueCode: map['UniqueCode'],
  6599. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>BaseFeatureLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6600. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6601. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  6602. );
  6603. }
  6604. Map<String, dynamic> toJson() {
  6605. final map = super.toJson();
  6606. if(token != null)
  6607. map['Token'] = token;
  6608. return map;
  6609. }
  6610. }
  6611. class ModifyAdminPasswordRequest extends TokenRequest{
  6612. String? adminCode;
  6613. String? oldPassword;
  6614. String? newPassword;
  6615. ModifyAdminPasswordRequest({
  6616. this.adminCode,
  6617. this.oldPassword,
  6618. this.newPassword,
  6619. String? token,
  6620. }) : super(
  6621. token: token,
  6622. );
  6623. factory ModifyAdminPasswordRequest.fromJson(Map<String, dynamic> map) {
  6624. return ModifyAdminPasswordRequest(
  6625. adminCode: map['AdminCode'],
  6626. oldPassword: map['OldPassword'],
  6627. newPassword: map['NewPassword'],
  6628. token: map['Token'],
  6629. );
  6630. }
  6631. Map<String, dynamic> toJson() {
  6632. final map = super.toJson();
  6633. if(adminCode != null)
  6634. map['AdminCode'] = adminCode;
  6635. if(oldPassword != null)
  6636. map['OldPassword'] = oldPassword;
  6637. if(newPassword != null)
  6638. map['NewPassword'] = newPassword;
  6639. return map;
  6640. }
  6641. }
  6642. class ModifyAdminRequest extends AdminInfoDTO{
  6643. String? token;
  6644. ModifyAdminRequest({
  6645. this.token,
  6646. String? adminCode,
  6647. String? fatherCode,
  6648. String? adminName,
  6649. String? fullName,
  6650. String? secretPassword,
  6651. String? headImageToken,
  6652. String? licenseKey,
  6653. String? lastIP,
  6654. String? phone,
  6655. String? email,
  6656. List<String>? roleCodes,
  6657. LoginLockInfoDTO? loginLockInfo,
  6658. DateTime? passwordUpdateTime,
  6659. List<String>? passwordRecords,
  6660. List<ClearLogOperateDTO>? clearLogOperateList,
  6661. DateTime? createTime,
  6662. DateTime? updateTime,
  6663. }) : super(
  6664. adminCode: adminCode,
  6665. fatherCode: fatherCode,
  6666. adminName: adminName,
  6667. fullName: fullName,
  6668. secretPassword: secretPassword,
  6669. headImageToken: headImageToken,
  6670. licenseKey: licenseKey,
  6671. lastIP: lastIP,
  6672. phone: phone,
  6673. email: email,
  6674. roleCodes: roleCodes,
  6675. loginLockInfo: loginLockInfo,
  6676. passwordUpdateTime: passwordUpdateTime,
  6677. passwordRecords: passwordRecords,
  6678. clearLogOperateList: clearLogOperateList,
  6679. createTime: createTime,
  6680. updateTime: updateTime,
  6681. );
  6682. factory ModifyAdminRequest.fromJson(Map<String, dynamic> map) {
  6683. return ModifyAdminRequest(
  6684. token: map['Token'],
  6685. adminCode: map['AdminCode'],
  6686. fatherCode: map['FatherCode'],
  6687. adminName: map['AdminName'],
  6688. fullName: map['FullName'],
  6689. secretPassword: map['SecretPassword'],
  6690. headImageToken: map['HeadImageToken'],
  6691. licenseKey: map['LicenseKey'],
  6692. lastIP: map['LastIP'],
  6693. phone: map['Phone'],
  6694. email: map['Email'],
  6695. roleCodes: map['RoleCodes']?.cast<String>().toList(),
  6696. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  6697. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  6698. passwordRecords: map['PasswordRecords']?.cast<String>().toList(),
  6699. clearLogOperateList: map['ClearLogOperateList'] != null ? (map['ClearLogOperateList'] as List).map((e)=>ClearLogOperateDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6700. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6701. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  6702. );
  6703. }
  6704. Map<String, dynamic> toJson() {
  6705. final map = super.toJson();
  6706. if(token != null)
  6707. map['Token'] = token;
  6708. return map;
  6709. }
  6710. }
  6711. class AdminRoleDTO extends BaseRoleDTO{
  6712. String? adminGroupCode;
  6713. int adminNum;
  6714. AdminRoleDTO({
  6715. this.adminGroupCode,
  6716. this.adminNum = 0,
  6717. String? roleCode,
  6718. String? roleName,
  6719. String? description,
  6720. List<UserRoleLanguageConfigDTO>? languageConfigs,
  6721. DateTime? createTime,
  6722. DateTime? updateTime,
  6723. }) : super(
  6724. roleCode: roleCode,
  6725. roleName: roleName,
  6726. description: description,
  6727. languageConfigs: languageConfigs,
  6728. createTime: createTime,
  6729. updateTime: updateTime,
  6730. );
  6731. factory AdminRoleDTO.fromJson(Map<String, dynamic> map) {
  6732. return AdminRoleDTO(
  6733. adminGroupCode: map['AdminGroupCode'],
  6734. adminNum: map['AdminNum'],
  6735. roleCode: map['RoleCode'],
  6736. roleName: map['RoleName'],
  6737. description: map['Description'],
  6738. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6739. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6740. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  6741. );
  6742. }
  6743. Map<String, dynamic> toJson() {
  6744. final map = super.toJson();
  6745. if(adminGroupCode != null)
  6746. map['AdminGroupCode'] = adminGroupCode;
  6747. map['AdminNum'] = adminNum;
  6748. return map;
  6749. }
  6750. }
  6751. class ModifyAdminRoleInfoRequest extends AdminRoleDTO{
  6752. String? token;
  6753. List<String>? featuresCodeList;
  6754. ModifyAdminRoleInfoRequest({
  6755. this.token,
  6756. this.featuresCodeList,
  6757. String? adminGroupCode,
  6758. int adminNum = 0,
  6759. String? roleCode,
  6760. String? roleName,
  6761. String? description,
  6762. List<UserRoleLanguageConfigDTO>? languageConfigs,
  6763. DateTime? createTime,
  6764. DateTime? updateTime,
  6765. }) : super(
  6766. adminGroupCode: adminGroupCode,
  6767. adminNum: adminNum,
  6768. roleCode: roleCode,
  6769. roleName: roleName,
  6770. description: description,
  6771. languageConfigs: languageConfigs,
  6772. createTime: createTime,
  6773. updateTime: updateTime,
  6774. );
  6775. factory ModifyAdminRoleInfoRequest.fromJson(Map<String, dynamic> map) {
  6776. return ModifyAdminRoleInfoRequest(
  6777. token: map['Token'],
  6778. featuresCodeList: map['FeaturesCodeList']?.cast<String>().toList(),
  6779. adminGroupCode: map['AdminGroupCode'],
  6780. adminNum: map['AdminNum'],
  6781. roleCode: map['RoleCode'],
  6782. roleName: map['RoleName'],
  6783. description: map['Description'],
  6784. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6785. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6786. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  6787. );
  6788. }
  6789. Map<String, dynamic> toJson() {
  6790. final map = super.toJson();
  6791. if(token != null)
  6792. map['Token'] = token;
  6793. if(featuresCodeList != null)
  6794. map['FeaturesCodeList'] = featuresCodeList;
  6795. return map;
  6796. }
  6797. }
  6798. class ModifyAdminsRolesRequest {
  6799. String? token;
  6800. List<String>? adminCodes;
  6801. List<String>? adminRoleCodes;
  6802. ModifyAdminsRolesRequest({
  6803. this.token,
  6804. this.adminCodes,
  6805. this.adminRoleCodes,
  6806. });
  6807. factory ModifyAdminsRolesRequest.fromJson(Map<String, dynamic> map) {
  6808. return ModifyAdminsRolesRequest(
  6809. token: map['Token'],
  6810. adminCodes: map['AdminCodes']?.cast<String>().toList(),
  6811. adminRoleCodes: map['AdminRoleCodes']?.cast<String>().toList(),
  6812. );
  6813. }
  6814. Map<String, dynamic> toJson() {
  6815. final map = Map<String, dynamic>();
  6816. if(token != null) {
  6817. map['Token'] = token;
  6818. }
  6819. if(adminCodes != null) {
  6820. map['AdminCodes'] = adminCodes;
  6821. }
  6822. if(adminRoleCodes != null) {
  6823. map['AdminRoleCodes'] = adminRoleCodes;
  6824. }
  6825. return map;
  6826. }
  6827. }
  6828. class ModifyDeviceRequest2 extends DeviceInfoDTO{
  6829. String? token;
  6830. ModifyDeviceRequest2({
  6831. this.token,
  6832. String? deviceCode,
  6833. String? serialNumber,
  6834. String? password,
  6835. String? name,
  6836. String? description,
  6837. String? deviceModel,
  6838. String? deviceType,
  6839. String? headPicUrl,
  6840. String? deviceSoftwareVersion,
  6841. String? sDKSoftwareVersion,
  6842. String? organizationCode,
  6843. String? departmentCode,
  6844. String? shortCode,
  6845. bool isAutoShared = false,
  6846. bool isEncryptedShow = false,
  6847. DateTime? lastLoginTime,
  6848. String? systemVersion,
  6849. String? cPUModel,
  6850. String? systemLanguage,
  6851. List<String>? diagnosisModules,
  6852. List<String>? reportPosterCodes,
  6853. bool mergedChannel = false,
  6854. int mergedVideoOutputWidth = 0,
  6855. int mergedVideoOutputHeight = 0,
  6856. List<VideoDeviceDTO>? videoDeviceInfos,
  6857. DownloadModeSettingEnum downloadModeSetting = DownloadModeSettingEnum.Auto,
  6858. bool liveOpened = false,
  6859. bool supportRtc = false,
  6860. String? displayName,
  6861. DateTime? createTime,
  6862. DateTime? updateTime,
  6863. }) : super(
  6864. deviceCode: deviceCode,
  6865. serialNumber: serialNumber,
  6866. password: password,
  6867. name: name,
  6868. description: description,
  6869. deviceModel: deviceModel,
  6870. deviceType: deviceType,
  6871. headPicUrl: headPicUrl,
  6872. deviceSoftwareVersion: deviceSoftwareVersion,
  6873. sDKSoftwareVersion: sDKSoftwareVersion,
  6874. organizationCode: organizationCode,
  6875. departmentCode: departmentCode,
  6876. shortCode: shortCode,
  6877. isAutoShared: isAutoShared,
  6878. isEncryptedShow: isEncryptedShow,
  6879. lastLoginTime: lastLoginTime,
  6880. systemVersion: systemVersion,
  6881. cPUModel: cPUModel,
  6882. systemLanguage: systemLanguage,
  6883. diagnosisModules: diagnosisModules,
  6884. reportPosterCodes: reportPosterCodes,
  6885. mergedChannel: mergedChannel,
  6886. mergedVideoOutputWidth: mergedVideoOutputWidth,
  6887. mergedVideoOutputHeight: mergedVideoOutputHeight,
  6888. videoDeviceInfos: videoDeviceInfos,
  6889. downloadModeSetting: downloadModeSetting,
  6890. liveOpened: liveOpened,
  6891. supportRtc: supportRtc,
  6892. displayName: displayName,
  6893. createTime: createTime,
  6894. updateTime: updateTime,
  6895. );
  6896. factory ModifyDeviceRequest2.fromJson(Map<String, dynamic> map) {
  6897. return ModifyDeviceRequest2(
  6898. token: map['Token'],
  6899. deviceCode: map['DeviceCode'],
  6900. serialNumber: map['SerialNumber'],
  6901. password: map['Password'],
  6902. name: map['Name'],
  6903. description: map['Description'],
  6904. deviceModel: map['DeviceModel'],
  6905. deviceType: map['DeviceType'],
  6906. headPicUrl: map['HeadPicUrl'],
  6907. deviceSoftwareVersion: map['DeviceSoftwareVersion'],
  6908. sDKSoftwareVersion: map['SDKSoftwareVersion'],
  6909. organizationCode: map['OrganizationCode'],
  6910. departmentCode: map['DepartmentCode'],
  6911. shortCode: map['ShortCode'],
  6912. isAutoShared: map['IsAutoShared'],
  6913. isEncryptedShow: map['IsEncryptedShow'],
  6914. lastLoginTime: map['LastLoginTime'] != null ? DateTime.parse(map['LastLoginTime']) : null,
  6915. systemVersion: map['SystemVersion'],
  6916. cPUModel: map['CPUModel'],
  6917. systemLanguage: map['SystemLanguage'],
  6918. diagnosisModules: map['DiagnosisModules']?.cast<String>().toList(),
  6919. reportPosterCodes: map['ReportPosterCodes']?.cast<String>().toList(),
  6920. mergedChannel: map['MergedChannel'],
  6921. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  6922. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  6923. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6924. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  6925. liveOpened: map['LiveOpened'],
  6926. supportRtc: map['SupportRtc'],
  6927. displayName: map['DisplayName'],
  6928. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6929. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  6930. );
  6931. }
  6932. Map<String, dynamic> toJson() {
  6933. final map = super.toJson();
  6934. if(token != null)
  6935. map['Token'] = token;
  6936. return map;
  6937. }
  6938. }
  6939. class ModifyDeviceDownloadModeRequest extends TokenRequest{
  6940. String? deviceCode;
  6941. DownloadModeSettingEnum downloadModeSetting;
  6942. ModifyDeviceDownloadModeRequest({
  6943. this.deviceCode,
  6944. this.downloadModeSetting = DownloadModeSettingEnum.Auto,
  6945. String? token,
  6946. }) : super(
  6947. token: token,
  6948. );
  6949. factory ModifyDeviceDownloadModeRequest.fromJson(Map<String, dynamic> map) {
  6950. return ModifyDeviceDownloadModeRequest(
  6951. deviceCode: map['DeviceCode'],
  6952. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  6953. token: map['Token'],
  6954. );
  6955. }
  6956. Map<String, dynamic> toJson() {
  6957. final map = super.toJson();
  6958. if(deviceCode != null)
  6959. map['DeviceCode'] = deviceCode;
  6960. map['DownloadModeSetting'] = downloadModeSetting.index;
  6961. return map;
  6962. }
  6963. }
  6964. class ModifyDeviceMergedVideoSizeRequest extends TokenRequest{
  6965. String? deviceCode;
  6966. bool mergedChannel;
  6967. int mergedVideoOutputWidth;
  6968. int mergedVideoOutputHeight;
  6969. List<VideoDeviceDTO>? videoDeviceInfos;
  6970. ModifyDeviceMergedVideoSizeRequest({
  6971. this.deviceCode,
  6972. this.mergedChannel = false,
  6973. this.mergedVideoOutputWidth = 0,
  6974. this.mergedVideoOutputHeight = 0,
  6975. this.videoDeviceInfos,
  6976. String? token,
  6977. }) : super(
  6978. token: token,
  6979. );
  6980. factory ModifyDeviceMergedVideoSizeRequest.fromJson(Map<String, dynamic> map) {
  6981. return ModifyDeviceMergedVideoSizeRequest(
  6982. deviceCode: map['DeviceCode'],
  6983. mergedChannel: map['MergedChannel'],
  6984. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  6985. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  6986. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6987. token: map['Token'],
  6988. );
  6989. }
  6990. Map<String, dynamic> toJson() {
  6991. final map = super.toJson();
  6992. if(deviceCode != null)
  6993. map['DeviceCode'] = deviceCode;
  6994. map['MergedChannel'] = mergedChannel;
  6995. map['MergedVideoOutputWidth'] = mergedVideoOutputWidth;
  6996. map['MergedVideoOutputHeight'] = mergedVideoOutputHeight;
  6997. if(videoDeviceInfos != null)
  6998. map['VideoDeviceInfos'] = videoDeviceInfos;
  6999. return map;
  7000. }
  7001. }
  7002. class DeviceModelClass {
  7003. String? deviceModelCode;
  7004. String? deviceModelName;
  7005. DeviceModelClass({
  7006. this.deviceModelCode,
  7007. this.deviceModelName,
  7008. });
  7009. factory DeviceModelClass.fromJson(Map<String, dynamic> map) {
  7010. return DeviceModelClass(
  7011. deviceModelCode: map['DeviceModelCode'],
  7012. deviceModelName: map['DeviceModelName'],
  7013. );
  7014. }
  7015. Map<String, dynamic> toJson() {
  7016. final map = Map<String, dynamic>();
  7017. if(deviceModelCode != null) {
  7018. map['DeviceModelCode'] = deviceModelCode;
  7019. }
  7020. if(deviceModelName != null) {
  7021. map['DeviceModelName'] = deviceModelName;
  7022. }
  7023. return map;
  7024. }
  7025. }
  7026. class ModifyDeviceTypeRequest extends TokenRequest{
  7027. String? deviceTypeCode;
  7028. List<DictionaryLanguageConfigDTO>? languageConfigs;
  7029. List<DeviceModelClass>? deviceModelList;
  7030. ModifyDeviceTypeRequest({
  7031. this.deviceTypeCode,
  7032. this.languageConfigs,
  7033. this.deviceModelList,
  7034. String? token,
  7035. }) : super(
  7036. token: token,
  7037. );
  7038. factory ModifyDeviceTypeRequest.fromJson(Map<String, dynamic> map) {
  7039. return ModifyDeviceTypeRequest(
  7040. deviceTypeCode: map['DeviceTypeCode'],
  7041. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>DictionaryLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  7042. deviceModelList: map['DeviceModelList'] != null ? (map['DeviceModelList'] as List).map((e)=>DeviceModelClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  7043. token: map['Token'],
  7044. );
  7045. }
  7046. Map<String, dynamic> toJson() {
  7047. final map = super.toJson();
  7048. if(deviceTypeCode != null)
  7049. map['DeviceTypeCode'] = deviceTypeCode;
  7050. if(languageConfigs != null)
  7051. map['LanguageConfigs'] = languageConfigs;
  7052. if(deviceModelList != null)
  7053. map['DeviceModelList'] = deviceModelList;
  7054. return map;
  7055. }
  7056. }
  7057. class DeleteDeviceTypeRequest {
  7058. String? deviceTypeCode;
  7059. DeleteDeviceTypeRequest({
  7060. this.deviceTypeCode,
  7061. });
  7062. factory DeleteDeviceTypeRequest.fromJson(Map<String, dynamic> map) {
  7063. return DeleteDeviceTypeRequest(
  7064. deviceTypeCode: map['DeviceTypeCode'],
  7065. );
  7066. }
  7067. Map<String, dynamic> toJson() {
  7068. final map = Map<String, dynamic>();
  7069. if(deviceTypeCode != null) {
  7070. map['DeviceTypeCode'] = deviceTypeCode;
  7071. }
  7072. return map;
  7073. }
  7074. }
  7075. class ModifyDiagnosisModuleEnableStateRequest extends TokenRequest{
  7076. List<String>? diagnosisModules;
  7077. bool enabled;
  7078. ModifyDiagnosisModuleEnableStateRequest({
  7079. this.diagnosisModules,
  7080. this.enabled = false,
  7081. String? token,
  7082. }) : super(
  7083. token: token,
  7084. );
  7085. factory ModifyDiagnosisModuleEnableStateRequest.fromJson(Map<String, dynamic> map) {
  7086. return ModifyDiagnosisModuleEnableStateRequest(
  7087. diagnosisModules: map['DiagnosisModules']?.cast<String>().toList(),
  7088. enabled: map['Enabled'],
  7089. token: map['Token'],
  7090. );
  7091. }
  7092. Map<String, dynamic> toJson() {
  7093. final map = super.toJson();
  7094. if(diagnosisModules != null)
  7095. map['DiagnosisModules'] = diagnosisModules;
  7096. map['Enabled'] = enabled;
  7097. return map;
  7098. }
  7099. }
  7100. class ModifyDiagnosisModulesRequest extends TokenRequest{
  7101. List<String>? diagnosisModules;
  7102. ModifyDiagnosisModulesRequest({
  7103. this.diagnosisModules,
  7104. String? token,
  7105. }) : super(
  7106. token: token,
  7107. );
  7108. factory ModifyDiagnosisModulesRequest.fromJson(Map<String, dynamic> map) {
  7109. return ModifyDiagnosisModulesRequest(
  7110. diagnosisModules: map['DiagnosisModules']?.cast<String>().toList(),
  7111. token: map['Token'],
  7112. );
  7113. }
  7114. Map<String, dynamic> toJson() {
  7115. final map = super.toJson();
  7116. if(diagnosisModules != null)
  7117. map['DiagnosisModules'] = diagnosisModules;
  7118. return map;
  7119. }
  7120. }
  7121. class ModifyOrganizationCustomSettingRequest extends TokenRequest{
  7122. String? langugeKey;
  7123. String? settingModule;
  7124. String? settingJson;
  7125. String? organizationCode;
  7126. ModifyOrganizationCustomSettingRequest({
  7127. this.langugeKey,
  7128. this.settingModule,
  7129. this.settingJson,
  7130. this.organizationCode,
  7131. String? token,
  7132. }) : super(
  7133. token: token,
  7134. );
  7135. factory ModifyOrganizationCustomSettingRequest.fromJson(Map<String, dynamic> map) {
  7136. return ModifyOrganizationCustomSettingRequest(
  7137. langugeKey: map['LangugeKey'],
  7138. settingModule: map['SettingModule'],
  7139. settingJson: map['SettingJson'],
  7140. organizationCode: map['OrganizationCode'],
  7141. token: map['Token'],
  7142. );
  7143. }
  7144. Map<String, dynamic> toJson() {
  7145. final map = super.toJson();
  7146. if(langugeKey != null)
  7147. map['LangugeKey'] = langugeKey;
  7148. if(settingModule != null)
  7149. map['SettingModule'] = settingModule;
  7150. if(settingJson != null)
  7151. map['SettingJson'] = settingJson;
  7152. if(organizationCode != null)
  7153. map['OrganizationCode'] = organizationCode;
  7154. return map;
  7155. }
  7156. }
  7157. class ModifyOrganizationDiagnosisModulesRequest extends TokenRequest{
  7158. String? organizationCode;
  7159. List<String>? diagnosisModules;
  7160. ModifyOrganizationDiagnosisModulesRequest({
  7161. this.organizationCode,
  7162. this.diagnosisModules,
  7163. String? token,
  7164. }) : super(
  7165. token: token,
  7166. );
  7167. factory ModifyOrganizationDiagnosisModulesRequest.fromJson(Map<String, dynamic> map) {
  7168. return ModifyOrganizationDiagnosisModulesRequest(
  7169. organizationCode: map['OrganizationCode'],
  7170. diagnosisModules: map['DiagnosisModules']?.cast<String>().toList(),
  7171. token: map['Token'],
  7172. );
  7173. }
  7174. Map<String, dynamic> toJson() {
  7175. final map = super.toJson();
  7176. if(organizationCode != null)
  7177. map['OrganizationCode'] = organizationCode;
  7178. if(diagnosisModules != null)
  7179. map['DiagnosisModules'] = diagnosisModules;
  7180. return map;
  7181. }
  7182. }
  7183. class ModifyOrganizationDirectorsRequest extends TokenRequest{
  7184. String? organizationCode;
  7185. List<String>? directors;
  7186. ModifyOrganizationDirectorsRequest({
  7187. this.organizationCode,
  7188. this.directors,
  7189. String? token,
  7190. }) : super(
  7191. token: token,
  7192. );
  7193. factory ModifyOrganizationDirectorsRequest.fromJson(Map<String, dynamic> map) {
  7194. return ModifyOrganizationDirectorsRequest(
  7195. organizationCode: map['OrganizationCode'],
  7196. directors: map['Directors']?.cast<String>().toList(),
  7197. token: map['Token'],
  7198. );
  7199. }
  7200. Map<String, dynamic> toJson() {
  7201. final map = super.toJson();
  7202. if(organizationCode != null)
  7203. map['OrganizationCode'] = organizationCode;
  7204. if(directors != null)
  7205. map['Directors'] = directors;
  7206. return map;
  7207. }
  7208. }
  7209. class ModifyOrganizationRequest extends OrganizationDTO{
  7210. String? token;
  7211. ModifyOrganizationRequest({
  7212. this.token,
  7213. String? description,
  7214. String? rootCode,
  7215. OrganizationTypeEnum organizationType = OrganizationTypeEnum.Corporation,
  7216. List<String>? authorityGroups,
  7217. String? nautica,
  7218. OrganizationStateEnum state = OrganizationStateEnum.WaitAudit,
  7219. List<String>? directors,
  7220. List<String>? assignedAdmins,
  7221. String? patientSettingJson,
  7222. String? examSettingJson,
  7223. String? consultationSettingJson,
  7224. String? patientSettingVersion,
  7225. String? examSettingVersion,
  7226. String? consultationSettingVersion,
  7227. String? parentOrganizationName,
  7228. String? regionCode,
  7229. String? parentCode,
  7230. String? logoUrl,
  7231. OrganizationPatientTypeEnum patientType = OrganizationPatientTypeEnum.Person,
  7232. bool isinvented = false,
  7233. List<SettingDTOClass>? settings,
  7234. List<String>? diagnosisModules,
  7235. bool isEncryptedShow = false,
  7236. double referralLimitHours = 0,
  7237. List<String>? referralOrganizationCodes,
  7238. List<ReferralOrganizationDTO>? referralOrganizations,
  7239. String? organizationCode,
  7240. String? organizationName,
  7241. String? shortCode,
  7242. DateTime? createTime,
  7243. DateTime? updateTime,
  7244. }) : super(
  7245. description: description,
  7246. rootCode: rootCode,
  7247. organizationType: organizationType,
  7248. authorityGroups: authorityGroups,
  7249. nautica: nautica,
  7250. state: state,
  7251. directors: directors,
  7252. assignedAdmins: assignedAdmins,
  7253. patientSettingJson: patientSettingJson,
  7254. examSettingJson: examSettingJson,
  7255. consultationSettingJson: consultationSettingJson,
  7256. patientSettingVersion: patientSettingVersion,
  7257. examSettingVersion: examSettingVersion,
  7258. consultationSettingVersion: consultationSettingVersion,
  7259. parentOrganizationName: parentOrganizationName,
  7260. regionCode: regionCode,
  7261. parentCode: parentCode,
  7262. logoUrl: logoUrl,
  7263. patientType: patientType,
  7264. isinvented: isinvented,
  7265. settings: settings,
  7266. diagnosisModules: diagnosisModules,
  7267. isEncryptedShow: isEncryptedShow,
  7268. referralLimitHours: referralLimitHours,
  7269. referralOrganizationCodes: referralOrganizationCodes,
  7270. referralOrganizations: referralOrganizations,
  7271. organizationCode: organizationCode,
  7272. organizationName: organizationName,
  7273. shortCode: shortCode,
  7274. createTime: createTime,
  7275. updateTime: updateTime,
  7276. );
  7277. factory ModifyOrganizationRequest.fromJson(Map<String, dynamic> map) {
  7278. return ModifyOrganizationRequest(
  7279. token: map['Token'],
  7280. description: map['Description'],
  7281. rootCode: map['RootCode'],
  7282. organizationType: OrganizationTypeEnum.values.firstWhere((e) => e.index == map['OrganizationType']),
  7283. authorityGroups: map['AuthorityGroups']?.cast<String>().toList(),
  7284. nautica: map['Nautica'],
  7285. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  7286. directors: map['Directors']?.cast<String>().toList(),
  7287. assignedAdmins: map['AssignedAdmins']?.cast<String>().toList(),
  7288. patientSettingJson: map['PatientSettingJson'],
  7289. examSettingJson: map['ExamSettingJson'],
  7290. consultationSettingJson: map['ConsultationSettingJson'],
  7291. patientSettingVersion: map['PatientSettingVersion'],
  7292. examSettingVersion: map['ExamSettingVersion'],
  7293. consultationSettingVersion: map['ConsultationSettingVersion'],
  7294. parentOrganizationName: map['ParentOrganizationName'],
  7295. regionCode: map['RegionCode'],
  7296. parentCode: map['ParentCode'],
  7297. logoUrl: map['LogoUrl'],
  7298. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  7299. isinvented: map['Isinvented'],
  7300. settings: map['Settings'] != null ? (map['Settings'] as List).map((e)=>SettingDTOClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  7301. diagnosisModules: map['DiagnosisModules']?.cast<String>().toList(),
  7302. isEncryptedShow: map['IsEncryptedShow'],
  7303. referralLimitHours: double.parse(map['ReferralLimitHours'].toString()),
  7304. referralOrganizationCodes: map['ReferralOrganizationCodes']?.cast<String>().toList(),
  7305. referralOrganizations: map['ReferralOrganizations'] != null ? (map['ReferralOrganizations'] as List).map((e)=>ReferralOrganizationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  7306. organizationCode: map['OrganizationCode'],
  7307. organizationName: map['OrganizationName'],
  7308. shortCode: map['ShortCode'],
  7309. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7310. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7311. );
  7312. }
  7313. Map<String, dynamic> toJson() {
  7314. final map = super.toJson();
  7315. if(token != null)
  7316. map['Token'] = token;
  7317. return map;
  7318. }
  7319. }
  7320. class ModifyOrganizationSettingRequest extends TokenRequest{
  7321. OrganizationSettingTypeEnum settingType;
  7322. String? settingJson;
  7323. String? organizationCode;
  7324. String? cMSTemplateCode;
  7325. ModifyOrganizationSettingRequest({
  7326. this.settingType = OrganizationSettingTypeEnum.Patient,
  7327. this.settingJson,
  7328. this.organizationCode,
  7329. this.cMSTemplateCode,
  7330. String? token,
  7331. }) : super(
  7332. token: token,
  7333. );
  7334. factory ModifyOrganizationSettingRequest.fromJson(Map<String, dynamic> map) {
  7335. return ModifyOrganizationSettingRequest(
  7336. settingType: OrganizationSettingTypeEnum.values.firstWhere((e) => e.index == map['SettingType']),
  7337. settingJson: map['SettingJson'],
  7338. organizationCode: map['OrganizationCode'],
  7339. cMSTemplateCode: map['CMSTemplateCode'],
  7340. token: map['Token'],
  7341. );
  7342. }
  7343. Map<String, dynamic> toJson() {
  7344. final map = super.toJson();
  7345. map['SettingType'] = settingType.index;
  7346. if(settingJson != null)
  7347. map['SettingJson'] = settingJson;
  7348. if(organizationCode != null)
  7349. map['OrganizationCode'] = organizationCode;
  7350. if(cMSTemplateCode != null)
  7351. map['CMSTemplateCode'] = cMSTemplateCode;
  7352. return map;
  7353. }
  7354. }
  7355. class ConsultationBaseInfoItem {
  7356. String? name;
  7357. bool isDefult;
  7358. bool isShow;
  7359. bool required;
  7360. ConsultationBaseInfoItem({
  7361. this.name,
  7362. this.isDefult = false,
  7363. this.isShow = false,
  7364. this.required = false,
  7365. });
  7366. factory ConsultationBaseInfoItem.fromJson(Map<String, dynamic> map) {
  7367. return ConsultationBaseInfoItem(
  7368. name: map['Name'],
  7369. isDefult: map['IsDefult'],
  7370. isShow: map['IsShow'],
  7371. required: map['Required'],
  7372. );
  7373. }
  7374. Map<String, dynamic> toJson() {
  7375. final map = Map<String, dynamic>();
  7376. if(name != null) {
  7377. map['Name'] = name;
  7378. }
  7379. map['IsDefult'] = isDefult;
  7380. map['IsShow'] = isShow;
  7381. map['Required'] = required;
  7382. return map;
  7383. }
  7384. }
  7385. class ModifycConsultationBaseInfoSettingRequest extends TokenRequest{
  7386. List<ConsultationBaseInfoItem>? consultationBaseInfoList;
  7387. String? organizationCode;
  7388. ModifycConsultationBaseInfoSettingRequest({
  7389. this.consultationBaseInfoList,
  7390. this.organizationCode,
  7391. String? token,
  7392. }) : super(
  7393. token: token,
  7394. );
  7395. factory ModifycConsultationBaseInfoSettingRequest.fromJson(Map<String, dynamic> map) {
  7396. return ModifycConsultationBaseInfoSettingRequest(
  7397. consultationBaseInfoList: map['ConsultationBaseInfoList'] != null ? (map['ConsultationBaseInfoList'] as List).map((e)=>ConsultationBaseInfoItem.fromJson(e as Map<String,dynamic>)).toList() : null,
  7398. organizationCode: map['OrganizationCode'],
  7399. token: map['Token'],
  7400. );
  7401. }
  7402. Map<String, dynamic> toJson() {
  7403. final map = super.toJson();
  7404. if(consultationBaseInfoList != null)
  7405. map['ConsultationBaseInfoList'] = consultationBaseInfoList;
  7406. if(organizationCode != null)
  7407. map['OrganizationCode'] = organizationCode;
  7408. return map;
  7409. }
  7410. }
  7411. class ModifyOrganizationStateRequest extends TokenRequest{
  7412. String? organizationCode;
  7413. OrganizationStateEnum state;
  7414. ModifyOrganizationStateRequest({
  7415. this.organizationCode,
  7416. this.state = OrganizationStateEnum.WaitAudit,
  7417. String? token,
  7418. }) : super(
  7419. token: token,
  7420. );
  7421. factory ModifyOrganizationStateRequest.fromJson(Map<String, dynamic> map) {
  7422. return ModifyOrganizationStateRequest(
  7423. organizationCode: map['OrganizationCode'],
  7424. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  7425. token: map['Token'],
  7426. );
  7427. }
  7428. Map<String, dynamic> toJson() {
  7429. final map = super.toJson();
  7430. if(organizationCode != null)
  7431. map['OrganizationCode'] = organizationCode;
  7432. map['State'] = state.index;
  7433. return map;
  7434. }
  7435. }
  7436. class ModifyReferralRecordSettingRequest extends TokenRequest{
  7437. double limitHours;
  7438. ModifyReferralRecordSettingRequest({
  7439. this.limitHours = 0,
  7440. String? token,
  7441. }) : super(
  7442. token: token,
  7443. );
  7444. factory ModifyReferralRecordSettingRequest.fromJson(Map<String, dynamic> map) {
  7445. return ModifyReferralRecordSettingRequest(
  7446. limitHours: double.parse(map['LimitHours'].toString()),
  7447. token: map['Token'],
  7448. );
  7449. }
  7450. Map<String, dynamic> toJson() {
  7451. final map = super.toJson();
  7452. map['LimitHours'] = limitHours;
  7453. return map;
  7454. }
  7455. }
  7456. class ModifyReportPosterDevicesRequest extends TokenRequest{
  7457. String? reportPosterCode;
  7458. List<String>? deviceIds;
  7459. ModifyReportPosterDevicesRequest({
  7460. this.reportPosterCode,
  7461. this.deviceIds,
  7462. String? token,
  7463. }) : super(
  7464. token: token,
  7465. );
  7466. factory ModifyReportPosterDevicesRequest.fromJson(Map<String, dynamic> map) {
  7467. return ModifyReportPosterDevicesRequest(
  7468. reportPosterCode: map['ReportPosterCode'],
  7469. deviceIds: map['DeviceIds']?.cast<String>().toList(),
  7470. token: map['Token'],
  7471. );
  7472. }
  7473. Map<String, dynamic> toJson() {
  7474. final map = super.toJson();
  7475. if(reportPosterCode != null)
  7476. map['ReportPosterCode'] = reportPosterCode;
  7477. if(deviceIds != null)
  7478. map['DeviceIds'] = deviceIds;
  7479. return map;
  7480. }
  7481. }
  7482. class ModifyRoleInfoRequest extends RoleDTO{
  7483. String? token;
  7484. List<String>? featuresCodeList;
  7485. ModifyRoleInfoRequest({
  7486. this.token,
  7487. this.featuresCodeList,
  7488. RoleShowTypeEnum roleShowType = RoleShowTypeEnum.NotShow,
  7489. String? iConUrl,
  7490. String? colorStart,
  7491. String? colorEnd,
  7492. RoleQualificationEnum roleQualification = RoleQualificationEnum.NoNeed,
  7493. String? userGroupCode,
  7494. RoleShowTypeEnum fieldShowType = RoleShowTypeEnum.NotShow,
  7495. List<String>? fieldList,
  7496. String? roleCode,
  7497. String? roleName,
  7498. String? description,
  7499. List<UserRoleLanguageConfigDTO>? languageConfigs,
  7500. DateTime? createTime,
  7501. DateTime? updateTime,
  7502. }) : super(
  7503. roleShowType: roleShowType,
  7504. iConUrl: iConUrl,
  7505. colorStart: colorStart,
  7506. colorEnd: colorEnd,
  7507. roleQualification: roleQualification,
  7508. userGroupCode: userGroupCode,
  7509. fieldShowType: fieldShowType,
  7510. fieldList: fieldList,
  7511. roleCode: roleCode,
  7512. roleName: roleName,
  7513. description: description,
  7514. languageConfigs: languageConfigs,
  7515. createTime: createTime,
  7516. updateTime: updateTime,
  7517. );
  7518. factory ModifyRoleInfoRequest.fromJson(Map<String, dynamic> map) {
  7519. return ModifyRoleInfoRequest(
  7520. token: map['Token'],
  7521. featuresCodeList: map['FeaturesCodeList']?.cast<String>().toList(),
  7522. roleShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['RoleShowType']),
  7523. iConUrl: map['IConUrl'],
  7524. colorStart: map['ColorStart'],
  7525. colorEnd: map['ColorEnd'],
  7526. roleQualification: RoleQualificationEnum.values.firstWhere((e) => e.index == map['RoleQualification']),
  7527. userGroupCode: map['UserGroupCode'],
  7528. fieldShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['FieldShowType']),
  7529. fieldList: map['FieldList']?.cast<String>().toList(),
  7530. roleCode: map['RoleCode'],
  7531. roleName: map['RoleName'],
  7532. description: map['Description'],
  7533. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  7534. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7535. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7536. );
  7537. }
  7538. Map<String, dynamic> toJson() {
  7539. final map = super.toJson();
  7540. if(token != null)
  7541. map['Token'] = token;
  7542. if(featuresCodeList != null)
  7543. map['FeaturesCodeList'] = featuresCodeList;
  7544. return map;
  7545. }
  7546. }
  7547. class ThirdPartyInfoDTO extends BaseDTO{
  7548. String? code;
  7549. String? name;
  7550. String? contactPersonName;
  7551. String? contactPhone;
  7552. List<String>? allowedInterfaces;
  7553. bool isValid;
  7554. String? token;
  7555. ThirdPartyInfoDTO({
  7556. this.code,
  7557. this.name,
  7558. this.contactPersonName,
  7559. this.contactPhone,
  7560. this.allowedInterfaces,
  7561. this.isValid = false,
  7562. this.token,
  7563. DateTime? createTime,
  7564. DateTime? updateTime,
  7565. }) : super(
  7566. createTime: createTime,
  7567. updateTime: updateTime,
  7568. );
  7569. factory ThirdPartyInfoDTO.fromJson(Map<String, dynamic> map) {
  7570. return ThirdPartyInfoDTO(
  7571. code: map['Code'],
  7572. name: map['Name'],
  7573. contactPersonName: map['ContactPersonName'],
  7574. contactPhone: map['ContactPhone'],
  7575. allowedInterfaces: map['AllowedInterfaces']?.cast<String>().toList(),
  7576. isValid: map['IsValid'],
  7577. token: map['Token'],
  7578. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7579. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7580. );
  7581. }
  7582. Map<String, dynamic> toJson() {
  7583. final map = super.toJson();
  7584. if(code != null)
  7585. map['Code'] = code;
  7586. if(name != null)
  7587. map['Name'] = name;
  7588. if(contactPersonName != null)
  7589. map['ContactPersonName'] = contactPersonName;
  7590. if(contactPhone != null)
  7591. map['ContactPhone'] = contactPhone;
  7592. if(allowedInterfaces != null)
  7593. map['AllowedInterfaces'] = allowedInterfaces;
  7594. map['IsValid'] = isValid;
  7595. if(token != null)
  7596. map['Token'] = token;
  7597. return map;
  7598. }
  7599. }
  7600. class ModifyThirdPartyInfoRequest extends ThirdPartyInfoDTO{
  7601. ModifyThirdPartyInfoRequest({
  7602. String? token,
  7603. String? code,
  7604. String? name,
  7605. String? contactPersonName,
  7606. String? contactPhone,
  7607. List<String>? allowedInterfaces,
  7608. bool isValid = false,
  7609. DateTime? createTime,
  7610. DateTime? updateTime,
  7611. }) : super(
  7612. code: code,
  7613. name: name,
  7614. contactPersonName: contactPersonName,
  7615. contactPhone: contactPhone,
  7616. allowedInterfaces: allowedInterfaces,
  7617. isValid: isValid,
  7618. token: token,
  7619. createTime: createTime,
  7620. updateTime: updateTime,
  7621. );
  7622. factory ModifyThirdPartyInfoRequest.fromJson(Map<String, dynamic> map) {
  7623. return ModifyThirdPartyInfoRequest(
  7624. token: map['Token'],
  7625. code: map['Code'],
  7626. name: map['Name'],
  7627. contactPersonName: map['ContactPersonName'],
  7628. contactPhone: map['ContactPhone'],
  7629. allowedInterfaces: map['AllowedInterfaces']?.cast<String>().toList(),
  7630. isValid: map['IsValid'],
  7631. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7632. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7633. );
  7634. }
  7635. Map<String, dynamic> toJson() {
  7636. final map = super.toJson();
  7637. return map;
  7638. }
  7639. }
  7640. class ModifyUserBindDeviceOrganizationRequest extends TokenRequest{
  7641. List<String>? userCodes;
  7642. List<String>? organizationCodes;
  7643. ModifyUserBindDeviceOrganizationRequest({
  7644. this.userCodes,
  7645. this.organizationCodes,
  7646. String? token,
  7647. }) : super(
  7648. token: token,
  7649. );
  7650. factory ModifyUserBindDeviceOrganizationRequest.fromJson(Map<String, dynamic> map) {
  7651. return ModifyUserBindDeviceOrganizationRequest(
  7652. userCodes: map['UserCodes']?.cast<String>().toList(),
  7653. organizationCodes: map['OrganizationCodes']?.cast<String>().toList(),
  7654. token: map['Token'],
  7655. );
  7656. }
  7657. Map<String, dynamic> toJson() {
  7658. final map = super.toJson();
  7659. if(userCodes != null)
  7660. map['UserCodes'] = userCodes;
  7661. if(organizationCodes != null)
  7662. map['OrganizationCodes'] = organizationCodes;
  7663. return map;
  7664. }
  7665. }
  7666. class ModifyUserSpecialOrganizationRequest extends TokenRequest{
  7667. List<String>? userCodes;
  7668. String? originOrganizationCode;
  7669. String? targetOrganizationCode;
  7670. ModifyUserSpecialOrganizationRequest({
  7671. this.userCodes,
  7672. this.originOrganizationCode,
  7673. this.targetOrganizationCode,
  7674. String? token,
  7675. }) : super(
  7676. token: token,
  7677. );
  7678. factory ModifyUserSpecialOrganizationRequest.fromJson(Map<String, dynamic> map) {
  7679. return ModifyUserSpecialOrganizationRequest(
  7680. userCodes: map['UserCodes']?.cast<String>().toList(),
  7681. originOrganizationCode: map['OriginOrganizationCode'],
  7682. targetOrganizationCode: map['TargetOrganizationCode'],
  7683. token: map['Token'],
  7684. );
  7685. }
  7686. Map<String, dynamic> toJson() {
  7687. final map = super.toJson();
  7688. if(userCodes != null)
  7689. map['UserCodes'] = userCodes;
  7690. if(originOrganizationCode != null)
  7691. map['OriginOrganizationCode'] = originOrganizationCode;
  7692. if(targetOrganizationCode != null)
  7693. map['TargetOrganizationCode'] = targetOrganizationCode;
  7694. return map;
  7695. }
  7696. }
  7697. class UserFeatureInfoDTO extends BaseFeatureInfoDTO{
  7698. UserFeatureInfoDTO({
  7699. String? featureCode,
  7700. String? featureName,
  7701. String? fatherCode,
  7702. String? uniqueCode,
  7703. List<BaseFeatureLanguageConfigDTO>? languageConfigs,
  7704. DateTime? createTime,
  7705. DateTime? updateTime,
  7706. }) : super(
  7707. featureCode: featureCode,
  7708. featureName: featureName,
  7709. fatherCode: fatherCode,
  7710. uniqueCode: uniqueCode,
  7711. languageConfigs: languageConfigs,
  7712. createTime: createTime,
  7713. updateTime: updateTime,
  7714. );
  7715. factory UserFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  7716. return UserFeatureInfoDTO(
  7717. featureCode: map['FeatureCode'],
  7718. featureName: map['FeatureName'],
  7719. fatherCode: map['FatherCode'],
  7720. uniqueCode: map['UniqueCode'],
  7721. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>BaseFeatureLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  7722. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7723. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7724. );
  7725. }
  7726. Map<String, dynamic> toJson() {
  7727. final map = super.toJson();
  7728. return map;
  7729. }
  7730. }
  7731. class ModifyUserFeatureRequest extends UserFeatureInfoDTO{
  7732. String? token;
  7733. ModifyUserFeatureRequest({
  7734. this.token,
  7735. String? featureCode,
  7736. String? featureName,
  7737. String? fatherCode,
  7738. String? uniqueCode,
  7739. List<BaseFeatureLanguageConfigDTO>? languageConfigs,
  7740. DateTime? createTime,
  7741. DateTime? updateTime,
  7742. }) : super(
  7743. featureCode: featureCode,
  7744. featureName: featureName,
  7745. fatherCode: fatherCode,
  7746. uniqueCode: uniqueCode,
  7747. languageConfigs: languageConfigs,
  7748. createTime: createTime,
  7749. updateTime: updateTime,
  7750. );
  7751. factory ModifyUserFeatureRequest.fromJson(Map<String, dynamic> map) {
  7752. return ModifyUserFeatureRequest(
  7753. token: map['Token'],
  7754. featureCode: map['FeatureCode'],
  7755. featureName: map['FeatureName'],
  7756. fatherCode: map['FatherCode'],
  7757. uniqueCode: map['UniqueCode'],
  7758. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>BaseFeatureLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  7759. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7760. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7761. );
  7762. }
  7763. Map<String, dynamic> toJson() {
  7764. final map = super.toJson();
  7765. if(token != null)
  7766. map['Token'] = token;
  7767. return map;
  7768. }
  7769. }
  7770. enum ManagementUserInfoStateEnum {
  7771. Nonactivated,
  7772. Activated,
  7773. Locked,
  7774. }
  7775. class ManageUserInfoDTO extends UserDTO{
  7776. String? roleName;
  7777. String? departmentName;
  7778. String? hospitalName;
  7779. String? identityApplyCode;
  7780. List<String>? identityCard;
  7781. List<String>? licenseCard;
  7782. String? identityApplyRoleCode;
  7783. String? identityApplyRoleName;
  7784. ManagementUserInfoStateEnum managementUserState;
  7785. ManageUserInfoDTO({
  7786. this.roleName,
  7787. this.departmentName,
  7788. this.hospitalName,
  7789. this.identityApplyCode,
  7790. this.identityCard,
  7791. this.licenseCard,
  7792. this.identityApplyRoleCode,
  7793. this.identityApplyRoleName,
  7794. bool isBatchExportDiagnoseData = false,
  7795. List<String>? fieldList,
  7796. this.managementUserState = ManagementUserInfoStateEnum.Nonactivated,
  7797. String? nickName,
  7798. String? organizationCode,
  7799. String? organizationName,
  7800. String? rootOrganizationCode,
  7801. String? rootOrganizationName,
  7802. List<String>? authorityGroups,
  7803. List<String>? bindDevices,
  7804. List<String>? bindDeviceOrganizations,
  7805. String? lastIP,
  7806. int logintimes = 0,
  7807. UserInfoStateEnum userState = UserInfoStateEnum.Nonactivated,
  7808. List<String>? roleCodes,
  7809. List<String>? rankCodes,
  7810. List<String>? positionCodes,
  7811. ApplyStateEnum applyState = ApplyStateEnum.NotApply,
  7812. String? rankName,
  7813. String? positionName,
  7814. bool isDirector = false,
  7815. List<String>? deletePatientCodes,
  7816. String? bindAssistantUserCode,
  7817. String? bindAssistantDoctorUserCode,
  7818. LoginLockInfoDTO? loginLockInfo,
  7819. String? signature,
  7820. String? language,
  7821. bool enableReportLabel = false,
  7822. List<AssociatedInfoDTO>? associatedInfos,
  7823. String? commonPlatformUserId,
  7824. String? bindEmergencyDeviceCode,
  7825. String? bindEmergencyExpertCode,
  7826. List<String>? dashboardOrgCodes,
  7827. String? phone,
  7828. String? email,
  7829. String? userCode,
  7830. String? userName,
  7831. String? fullName,
  7832. String? headImageUrl,
  7833. String? displayName,
  7834. DateTime? createTime,
  7835. DateTime? updateTime,
  7836. }) : super(
  7837. nickName: nickName,
  7838. organizationCode: organizationCode,
  7839. organizationName: organizationName,
  7840. rootOrganizationCode: rootOrganizationCode,
  7841. rootOrganizationName: rootOrganizationName,
  7842. authorityGroups: authorityGroups,
  7843. bindDevices: bindDevices,
  7844. bindDeviceOrganizations: bindDeviceOrganizations,
  7845. lastIP: lastIP,
  7846. logintimes: logintimes,
  7847. userState: userState,
  7848. roleCodes: roleCodes,
  7849. rankCodes: rankCodes,
  7850. positionCodes: positionCodes,
  7851. applyState: applyState,
  7852. rankName: rankName,
  7853. positionName: positionName,
  7854. isDirector: isDirector,
  7855. fieldList: fieldList,
  7856. deletePatientCodes: deletePatientCodes,
  7857. isBatchExportDiagnoseData: isBatchExportDiagnoseData,
  7858. bindAssistantUserCode: bindAssistantUserCode,
  7859. bindAssistantDoctorUserCode: bindAssistantDoctorUserCode,
  7860. loginLockInfo: loginLockInfo,
  7861. signature: signature,
  7862. language: language,
  7863. enableReportLabel: enableReportLabel,
  7864. associatedInfos: associatedInfos,
  7865. commonPlatformUserId: commonPlatformUserId,
  7866. bindEmergencyDeviceCode: bindEmergencyDeviceCode,
  7867. bindEmergencyExpertCode: bindEmergencyExpertCode,
  7868. dashboardOrgCodes: dashboardOrgCodes,
  7869. phone: phone,
  7870. email: email,
  7871. userCode: userCode,
  7872. userName: userName,
  7873. fullName: fullName,
  7874. headImageUrl: headImageUrl,
  7875. displayName: displayName,
  7876. createTime: createTime,
  7877. updateTime: updateTime,
  7878. );
  7879. factory ManageUserInfoDTO.fromJson(Map<String, dynamic> map) {
  7880. return ManageUserInfoDTO(
  7881. roleName: map['RoleName'],
  7882. departmentName: map['DepartmentName'],
  7883. hospitalName: map['HospitalName'],
  7884. identityApplyCode: map['IdentityApplyCode'],
  7885. identityCard: map['IdentityCard']?.cast<String>().toList(),
  7886. licenseCard: map['LicenseCard']?.cast<String>().toList(),
  7887. identityApplyRoleCode: map['IdentityApplyRoleCode'],
  7888. identityApplyRoleName: map['IdentityApplyRoleName'],
  7889. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  7890. fieldList: map['FieldList']?.cast<String>().toList(),
  7891. managementUserState: ManagementUserInfoStateEnum.values.firstWhere((e) => e.index == map['ManagementUserState']),
  7892. nickName: map['NickName'],
  7893. organizationCode: map['OrganizationCode'],
  7894. organizationName: map['OrganizationName'],
  7895. rootOrganizationCode: map['RootOrganizationCode'],
  7896. rootOrganizationName: map['RootOrganizationName'],
  7897. authorityGroups: map['AuthorityGroups']?.cast<String>().toList(),
  7898. bindDevices: map['BindDevices']?.cast<String>().toList(),
  7899. bindDeviceOrganizations: map['BindDeviceOrganizations']?.cast<String>().toList(),
  7900. lastIP: map['LastIP'],
  7901. logintimes: map['Logintimes'],
  7902. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  7903. roleCodes: map['RoleCodes']?.cast<String>().toList(),
  7904. rankCodes: map['RankCodes']?.cast<String>().toList(),
  7905. positionCodes: map['PositionCodes']?.cast<String>().toList(),
  7906. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  7907. rankName: map['RankName'],
  7908. positionName: map['PositionName'],
  7909. isDirector: map['IsDirector'],
  7910. deletePatientCodes: map['DeletePatientCodes']?.cast<String>().toList(),
  7911. bindAssistantUserCode: map['BindAssistantUserCode'],
  7912. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  7913. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  7914. signature: map['Signature'],
  7915. language: map['Language'],
  7916. enableReportLabel: map['EnableReportLabel'],
  7917. associatedInfos: map['AssociatedInfos'] != null ? (map['AssociatedInfos'] as List).map((e)=>AssociatedInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  7918. commonPlatformUserId: map['CommonPlatformUserId'],
  7919. bindEmergencyDeviceCode: map['BindEmergencyDeviceCode'],
  7920. bindEmergencyExpertCode: map['BindEmergencyExpertCode'],
  7921. dashboardOrgCodes: map['DashboardOrgCodes']?.cast<String>().toList(),
  7922. phone: map['Phone'],
  7923. email: map['Email'],
  7924. userCode: map['UserCode'],
  7925. userName: map['UserName'],
  7926. fullName: map['FullName'],
  7927. headImageUrl: map['HeadImageUrl'],
  7928. displayName: map['DisplayName'],
  7929. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7930. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7931. );
  7932. }
  7933. Map<String, dynamic> toJson() {
  7934. final map = super.toJson();
  7935. if(roleName != null)
  7936. map['RoleName'] = roleName;
  7937. if(departmentName != null)
  7938. map['DepartmentName'] = departmentName;
  7939. if(hospitalName != null)
  7940. map['HospitalName'] = hospitalName;
  7941. if(identityApplyCode != null)
  7942. map['IdentityApplyCode'] = identityApplyCode;
  7943. if(identityCard != null)
  7944. map['IdentityCard'] = identityCard;
  7945. if(licenseCard != null)
  7946. map['LicenseCard'] = licenseCard;
  7947. if(identityApplyRoleCode != null)
  7948. map['IdentityApplyRoleCode'] = identityApplyRoleCode;
  7949. if(identityApplyRoleName != null)
  7950. map['IdentityApplyRoleName'] = identityApplyRoleName;
  7951. map['ManagementUserState'] = managementUserState.index;
  7952. return map;
  7953. }
  7954. }
  7955. class ModifyUserRequest extends ManageUserInfoDTO{
  7956. String? token;
  7957. ModifyUserRequest({
  7958. this.token,
  7959. String? roleName,
  7960. String? departmentName,
  7961. String? hospitalName,
  7962. String? identityApplyCode,
  7963. List<String>? identityCard,
  7964. List<String>? licenseCard,
  7965. String? identityApplyRoleCode,
  7966. String? identityApplyRoleName,
  7967. bool isBatchExportDiagnoseData = false,
  7968. List<String>? fieldList,
  7969. ManagementUserInfoStateEnum managementUserState = ManagementUserInfoStateEnum.Nonactivated,
  7970. String? nickName,
  7971. String? organizationCode,
  7972. String? organizationName,
  7973. String? rootOrganizationCode,
  7974. String? rootOrganizationName,
  7975. List<String>? authorityGroups,
  7976. List<String>? bindDevices,
  7977. List<String>? bindDeviceOrganizations,
  7978. String? lastIP,
  7979. int logintimes = 0,
  7980. UserInfoStateEnum userState = UserInfoStateEnum.Nonactivated,
  7981. List<String>? roleCodes,
  7982. List<String>? rankCodes,
  7983. List<String>? positionCodes,
  7984. ApplyStateEnum applyState = ApplyStateEnum.NotApply,
  7985. String? rankName,
  7986. String? positionName,
  7987. bool isDirector = false,
  7988. List<String>? deletePatientCodes,
  7989. String? bindAssistantUserCode,
  7990. String? bindAssistantDoctorUserCode,
  7991. LoginLockInfoDTO? loginLockInfo,
  7992. String? signature,
  7993. String? language,
  7994. bool enableReportLabel = false,
  7995. List<AssociatedInfoDTO>? associatedInfos,
  7996. String? commonPlatformUserId,
  7997. String? bindEmergencyDeviceCode,
  7998. String? bindEmergencyExpertCode,
  7999. List<String>? dashboardOrgCodes,
  8000. String? phone,
  8001. String? email,
  8002. String? userCode,
  8003. String? userName,
  8004. String? fullName,
  8005. String? headImageUrl,
  8006. String? displayName,
  8007. DateTime? createTime,
  8008. DateTime? updateTime,
  8009. }) : super(
  8010. roleName: roleName,
  8011. departmentName: departmentName,
  8012. hospitalName: hospitalName,
  8013. identityApplyCode: identityApplyCode,
  8014. identityCard: identityCard,
  8015. licenseCard: licenseCard,
  8016. identityApplyRoleCode: identityApplyRoleCode,
  8017. identityApplyRoleName: identityApplyRoleName,
  8018. isBatchExportDiagnoseData: isBatchExportDiagnoseData,
  8019. fieldList: fieldList,
  8020. managementUserState: managementUserState,
  8021. nickName: nickName,
  8022. organizationCode: organizationCode,
  8023. organizationName: organizationName,
  8024. rootOrganizationCode: rootOrganizationCode,
  8025. rootOrganizationName: rootOrganizationName,
  8026. authorityGroups: authorityGroups,
  8027. bindDevices: bindDevices,
  8028. bindDeviceOrganizations: bindDeviceOrganizations,
  8029. lastIP: lastIP,
  8030. logintimes: logintimes,
  8031. userState: userState,
  8032. roleCodes: roleCodes,
  8033. rankCodes: rankCodes,
  8034. positionCodes: positionCodes,
  8035. applyState: applyState,
  8036. rankName: rankName,
  8037. positionName: positionName,
  8038. isDirector: isDirector,
  8039. deletePatientCodes: deletePatientCodes,
  8040. bindAssistantUserCode: bindAssistantUserCode,
  8041. bindAssistantDoctorUserCode: bindAssistantDoctorUserCode,
  8042. loginLockInfo: loginLockInfo,
  8043. signature: signature,
  8044. language: language,
  8045. enableReportLabel: enableReportLabel,
  8046. associatedInfos: associatedInfos,
  8047. commonPlatformUserId: commonPlatformUserId,
  8048. bindEmergencyDeviceCode: bindEmergencyDeviceCode,
  8049. bindEmergencyExpertCode: bindEmergencyExpertCode,
  8050. dashboardOrgCodes: dashboardOrgCodes,
  8051. phone: phone,
  8052. email: email,
  8053. userCode: userCode,
  8054. userName: userName,
  8055. fullName: fullName,
  8056. headImageUrl: headImageUrl,
  8057. displayName: displayName,
  8058. createTime: createTime,
  8059. updateTime: updateTime,
  8060. );
  8061. factory ModifyUserRequest.fromJson(Map<String, dynamic> map) {
  8062. return ModifyUserRequest(
  8063. token: map['Token'],
  8064. roleName: map['RoleName'],
  8065. departmentName: map['DepartmentName'],
  8066. hospitalName: map['HospitalName'],
  8067. identityApplyCode: map['IdentityApplyCode'],
  8068. identityCard: map['IdentityCard']?.cast<String>().toList(),
  8069. licenseCard: map['LicenseCard']?.cast<String>().toList(),
  8070. identityApplyRoleCode: map['IdentityApplyRoleCode'],
  8071. identityApplyRoleName: map['IdentityApplyRoleName'],
  8072. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  8073. fieldList: map['FieldList']?.cast<String>().toList(),
  8074. managementUserState: ManagementUserInfoStateEnum.values.firstWhere((e) => e.index == map['ManagementUserState']),
  8075. nickName: map['NickName'],
  8076. organizationCode: map['OrganizationCode'],
  8077. organizationName: map['OrganizationName'],
  8078. rootOrganizationCode: map['RootOrganizationCode'],
  8079. rootOrganizationName: map['RootOrganizationName'],
  8080. authorityGroups: map['AuthorityGroups']?.cast<String>().toList(),
  8081. bindDevices: map['BindDevices']?.cast<String>().toList(),
  8082. bindDeviceOrganizations: map['BindDeviceOrganizations']?.cast<String>().toList(),
  8083. lastIP: map['LastIP'],
  8084. logintimes: map['Logintimes'],
  8085. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  8086. roleCodes: map['RoleCodes']?.cast<String>().toList(),
  8087. rankCodes: map['RankCodes']?.cast<String>().toList(),
  8088. positionCodes: map['PositionCodes']?.cast<String>().toList(),
  8089. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  8090. rankName: map['RankName'],
  8091. positionName: map['PositionName'],
  8092. isDirector: map['IsDirector'],
  8093. deletePatientCodes: map['DeletePatientCodes']?.cast<String>().toList(),
  8094. bindAssistantUserCode: map['BindAssistantUserCode'],
  8095. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  8096. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  8097. signature: map['Signature'],
  8098. language: map['Language'],
  8099. enableReportLabel: map['EnableReportLabel'],
  8100. associatedInfos: map['AssociatedInfos'] != null ? (map['AssociatedInfos'] as List).map((e)=>AssociatedInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8101. commonPlatformUserId: map['CommonPlatformUserId'],
  8102. bindEmergencyDeviceCode: map['BindEmergencyDeviceCode'],
  8103. bindEmergencyExpertCode: map['BindEmergencyExpertCode'],
  8104. dashboardOrgCodes: map['DashboardOrgCodes']?.cast<String>().toList(),
  8105. phone: map['Phone'],
  8106. email: map['Email'],
  8107. userCode: map['UserCode'],
  8108. userName: map['UserName'],
  8109. fullName: map['FullName'],
  8110. headImageUrl: map['HeadImageUrl'],
  8111. displayName: map['DisplayName'],
  8112. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  8113. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  8114. );
  8115. }
  8116. Map<String, dynamic> toJson() {
  8117. final map = super.toJson();
  8118. if(token != null)
  8119. map['Token'] = token;
  8120. return map;
  8121. }
  8122. }
  8123. class PublishReportTemplateRequest extends TokenRequest{
  8124. String? reportTemplateCode;
  8125. PublishReportTemplateRequest({
  8126. this.reportTemplateCode,
  8127. String? token,
  8128. }) : super(
  8129. token: token,
  8130. );
  8131. factory PublishReportTemplateRequest.fromJson(Map<String, dynamic> map) {
  8132. return PublishReportTemplateRequest(
  8133. reportTemplateCode: map['ReportTemplateCode'],
  8134. token: map['Token'],
  8135. );
  8136. }
  8137. Map<String, dynamic> toJson() {
  8138. final map = super.toJson();
  8139. if(reportTemplateCode != null)
  8140. map['ReportTemplateCode'] = reportTemplateCode;
  8141. return map;
  8142. }
  8143. }
  8144. class PublishThesaurusRequest extends TokenRequest{
  8145. String? thesaurusCode;
  8146. PublishThesaurusRequest({
  8147. this.thesaurusCode,
  8148. String? token,
  8149. }) : super(
  8150. token: token,
  8151. );
  8152. factory PublishThesaurusRequest.fromJson(Map<String, dynamic> map) {
  8153. return PublishThesaurusRequest(
  8154. thesaurusCode: map['ThesaurusCode'],
  8155. token: map['Token'],
  8156. );
  8157. }
  8158. Map<String, dynamic> toJson() {
  8159. final map = super.toJson();
  8160. if(thesaurusCode != null)
  8161. map['ThesaurusCode'] = thesaurusCode;
  8162. return map;
  8163. }
  8164. }
  8165. class QueryAnnouncementPageRequest extends PageRequest{
  8166. AnnouncementTypeEnum announcementType;
  8167. AnnouncementStatusEnum announcementStatus;
  8168. String? keyword;
  8169. DateTime? startTime;
  8170. DateTime? endTime;
  8171. QueryAnnouncementPageRequest({
  8172. this.announcementType = AnnouncementTypeEnum.Broadcast,
  8173. this.announcementStatus = AnnouncementStatusEnum.Released,
  8174. this.keyword,
  8175. this.startTime,
  8176. this.endTime,
  8177. int pageIndex = 0,
  8178. int pageSize = 0,
  8179. String? token,
  8180. }) : super(
  8181. pageIndex: pageIndex,
  8182. pageSize: pageSize,
  8183. token: token,
  8184. );
  8185. factory QueryAnnouncementPageRequest.fromJson(Map<String, dynamic> map) {
  8186. return QueryAnnouncementPageRequest(
  8187. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  8188. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  8189. keyword: map['Keyword'],
  8190. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  8191. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  8192. pageIndex: map['PageIndex'],
  8193. pageSize: map['PageSize'],
  8194. token: map['Token'],
  8195. );
  8196. }
  8197. Map<String, dynamic> toJson() {
  8198. final map = super.toJson();
  8199. map['AnnouncementType'] = announcementType.index;
  8200. map['AnnouncementStatus'] = announcementStatus.index;
  8201. if(keyword != null)
  8202. map['Keyword'] = keyword;
  8203. if(startTime != null)
  8204. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  8205. if(endTime != null)
  8206. map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
  8207. return map;
  8208. }
  8209. }
  8210. class QueryDeviceModelBindNumRequest extends TokenRequest{
  8211. String? deviceModelCode;
  8212. QueryDeviceModelBindNumRequest({
  8213. this.deviceModelCode,
  8214. String? token,
  8215. }) : super(
  8216. token: token,
  8217. );
  8218. factory QueryDeviceModelBindNumRequest.fromJson(Map<String, dynamic> map) {
  8219. return QueryDeviceModelBindNumRequest(
  8220. deviceModelCode: map['DeviceModelCode'],
  8221. token: map['Token'],
  8222. );
  8223. }
  8224. Map<String, dynamic> toJson() {
  8225. final map = super.toJson();
  8226. if(deviceModelCode != null)
  8227. map['DeviceModelCode'] = deviceModelCode;
  8228. return map;
  8229. }
  8230. }
  8231. class QueryRoleAdminNumRequest extends TokenRequest{
  8232. String? adminRoleCode;
  8233. QueryRoleAdminNumRequest({
  8234. this.adminRoleCode,
  8235. String? token,
  8236. }) : super(
  8237. token: token,
  8238. );
  8239. factory QueryRoleAdminNumRequest.fromJson(Map<String, dynamic> map) {
  8240. return QueryRoleAdminNumRequest(
  8241. adminRoleCode: map['AdminRoleCode'],
  8242. token: map['Token'],
  8243. );
  8244. }
  8245. Map<String, dynamic> toJson() {
  8246. final map = super.toJson();
  8247. if(adminRoleCode != null)
  8248. map['AdminRoleCode'] = adminRoleCode;
  8249. return map;
  8250. }
  8251. }
  8252. class QueryRoleUserNumRequest extends TokenRequest{
  8253. String? roleCode;
  8254. QueryRoleUserNumRequest({
  8255. this.roleCode,
  8256. String? token,
  8257. }) : super(
  8258. token: token,
  8259. );
  8260. factory QueryRoleUserNumRequest.fromJson(Map<String, dynamic> map) {
  8261. return QueryRoleUserNumRequest(
  8262. roleCode: map['RoleCode'],
  8263. token: map['Token'],
  8264. );
  8265. }
  8266. Map<String, dynamic> toJson() {
  8267. final map = super.toJson();
  8268. if(roleCode != null)
  8269. map['RoleCode'] = roleCode;
  8270. return map;
  8271. }
  8272. }
  8273. class QuerySystemConfigRequest extends TokenRequest{
  8274. String? code;
  8275. String? configKey;
  8276. QuerySystemConfigRequest({
  8277. this.code,
  8278. this.configKey,
  8279. String? token,
  8280. }) : super(
  8281. token: token,
  8282. );
  8283. factory QuerySystemConfigRequest.fromJson(Map<String, dynamic> map) {
  8284. return QuerySystemConfigRequest(
  8285. code: map['Code'],
  8286. configKey: map['ConfigKey'],
  8287. token: map['Token'],
  8288. );
  8289. }
  8290. Map<String, dynamic> toJson() {
  8291. final map = super.toJson();
  8292. if(code != null)
  8293. map['Code'] = code;
  8294. if(configKey != null)
  8295. map['ConfigKey'] = configKey;
  8296. return map;
  8297. }
  8298. }
  8299. class RejectIdentityApplyRequest extends TokenRequest{
  8300. String? identityApplyCode;
  8301. String? rejectReason;
  8302. RejectIdentityApplyRequest({
  8303. this.identityApplyCode,
  8304. this.rejectReason,
  8305. String? token,
  8306. }) : super(
  8307. token: token,
  8308. );
  8309. factory RejectIdentityApplyRequest.fromJson(Map<String, dynamic> map) {
  8310. return RejectIdentityApplyRequest(
  8311. identityApplyCode: map['IdentityApplyCode'],
  8312. rejectReason: map['RejectReason'],
  8313. token: map['Token'],
  8314. );
  8315. }
  8316. Map<String, dynamic> toJson() {
  8317. final map = super.toJson();
  8318. if(identityApplyCode != null)
  8319. map['IdentityApplyCode'] = identityApplyCode;
  8320. if(rejectReason != null)
  8321. map['RejectReason'] = rejectReason;
  8322. return map;
  8323. }
  8324. }
  8325. class RemoveAdminRequest extends TokenRequest{
  8326. String? adminCode;
  8327. RemoveAdminRequest({
  8328. this.adminCode,
  8329. String? token,
  8330. }) : super(
  8331. token: token,
  8332. );
  8333. factory RemoveAdminRequest.fromJson(Map<String, dynamic> map) {
  8334. return RemoveAdminRequest(
  8335. adminCode: map['AdminCode'],
  8336. token: map['Token'],
  8337. );
  8338. }
  8339. Map<String, dynamic> toJson() {
  8340. final map = super.toJson();
  8341. if(adminCode != null)
  8342. map['AdminCode'] = adminCode;
  8343. return map;
  8344. }
  8345. }
  8346. class RemoveOrganizationRequest extends TokenRequest{
  8347. String? organizationCode;
  8348. RemoveOrganizationRequest({
  8349. this.organizationCode,
  8350. String? token,
  8351. }) : super(
  8352. token: token,
  8353. );
  8354. factory RemoveOrganizationRequest.fromJson(Map<String, dynamic> map) {
  8355. return RemoveOrganizationRequest(
  8356. organizationCode: map['OrganizationCode'],
  8357. token: map['Token'],
  8358. );
  8359. }
  8360. Map<String, dynamic> toJson() {
  8361. final map = super.toJson();
  8362. if(organizationCode != null)
  8363. map['OrganizationCode'] = organizationCode;
  8364. return map;
  8365. }
  8366. }
  8367. class RemoveReportLabelRequest extends TokenRequest{
  8368. String? reportLabelCode;
  8369. RemoveReportLabelRequest({
  8370. this.reportLabelCode,
  8371. String? token,
  8372. }) : super(
  8373. token: token,
  8374. );
  8375. factory RemoveReportLabelRequest.fromJson(Map<String, dynamic> map) {
  8376. return RemoveReportLabelRequest(
  8377. reportLabelCode: map['ReportLabelCode'],
  8378. token: map['Token'],
  8379. );
  8380. }
  8381. Map<String, dynamic> toJson() {
  8382. final map = super.toJson();
  8383. if(reportLabelCode != null)
  8384. map['ReportLabelCode'] = reportLabelCode;
  8385. return map;
  8386. }
  8387. }
  8388. class RemoveReportPosterRequest extends TokenRequest{
  8389. String? reportPosterCode;
  8390. RemoveReportPosterRequest({
  8391. this.reportPosterCode,
  8392. String? token,
  8393. }) : super(
  8394. token: token,
  8395. );
  8396. factory RemoveReportPosterRequest.fromJson(Map<String, dynamic> map) {
  8397. return RemoveReportPosterRequest(
  8398. reportPosterCode: map['ReportPosterCode'],
  8399. token: map['Token'],
  8400. );
  8401. }
  8402. Map<String, dynamic> toJson() {
  8403. final map = super.toJson();
  8404. if(reportPosterCode != null)
  8405. map['ReportPosterCode'] = reportPosterCode;
  8406. return map;
  8407. }
  8408. }
  8409. class RemoveUserRequest extends TokenRequest{
  8410. String? userCode;
  8411. RemoveUserRequest({
  8412. this.userCode,
  8413. String? token,
  8414. }) : super(
  8415. token: token,
  8416. );
  8417. factory RemoveUserRequest.fromJson(Map<String, dynamic> map) {
  8418. return RemoveUserRequest(
  8419. userCode: map['UserCode'],
  8420. token: map['Token'],
  8421. );
  8422. }
  8423. Map<String, dynamic> toJson() {
  8424. final map = super.toJson();
  8425. if(userCode != null)
  8426. map['UserCode'] = userCode;
  8427. return map;
  8428. }
  8429. }
  8430. class UnlockAccountRequest extends TokenRequest{
  8431. String? userCode;
  8432. UnlockAccountRequest({
  8433. this.userCode,
  8434. String? token,
  8435. }) : super(
  8436. token: token,
  8437. );
  8438. factory UnlockAccountRequest.fromJson(Map<String, dynamic> map) {
  8439. return UnlockAccountRequest(
  8440. userCode: map['UserCode'],
  8441. token: map['Token'],
  8442. );
  8443. }
  8444. Map<String, dynamic> toJson() {
  8445. final map = super.toJson();
  8446. if(userCode != null)
  8447. map['UserCode'] = userCode;
  8448. return map;
  8449. }
  8450. }
  8451. class ResetAdminPasswordRequest extends TokenRequest{
  8452. String? adminCode;
  8453. String? passWord;
  8454. ResetAdminPasswordRequest({
  8455. this.adminCode,
  8456. this.passWord,
  8457. String? token,
  8458. }) : super(
  8459. token: token,
  8460. );
  8461. factory ResetAdminPasswordRequest.fromJson(Map<String, dynamic> map) {
  8462. return ResetAdminPasswordRequest(
  8463. adminCode: map['AdminCode'],
  8464. passWord: map['PassWord'],
  8465. token: map['Token'],
  8466. );
  8467. }
  8468. Map<String, dynamic> toJson() {
  8469. final map = super.toJson();
  8470. if(adminCode != null)
  8471. map['AdminCode'] = adminCode;
  8472. if(passWord != null)
  8473. map['PassWord'] = passWord;
  8474. return map;
  8475. }
  8476. }
  8477. class ResetUserPasswordRequest extends TokenRequest{
  8478. String? userCode;
  8479. String? passWord;
  8480. ResetUserPasswordRequest({
  8481. this.userCode,
  8482. this.passWord,
  8483. String? token,
  8484. }) : super(
  8485. token: token,
  8486. );
  8487. factory ResetUserPasswordRequest.fromJson(Map<String, dynamic> map) {
  8488. return ResetUserPasswordRequest(
  8489. userCode: map['UserCode'],
  8490. passWord: map['PassWord'],
  8491. token: map['Token'],
  8492. );
  8493. }
  8494. Map<String, dynamic> toJson() {
  8495. final map = super.toJson();
  8496. if(userCode != null)
  8497. map['UserCode'] = userCode;
  8498. if(passWord != null)
  8499. map['PassWord'] = passWord;
  8500. return map;
  8501. }
  8502. }
  8503. class RetryPushReportRecordsRequest extends TokenRequest{
  8504. List<String>? codes;
  8505. RetryPushReportRecordsRequest({
  8506. this.codes,
  8507. String? token,
  8508. }) : super(
  8509. token: token,
  8510. );
  8511. factory RetryPushReportRecordsRequest.fromJson(Map<String, dynamic> map) {
  8512. return RetryPushReportRecordsRequest(
  8513. codes: map['Codes']?.cast<String>().toList(),
  8514. token: map['Token'],
  8515. );
  8516. }
  8517. Map<String, dynamic> toJson() {
  8518. final map = super.toJson();
  8519. if(codes != null)
  8520. map['Codes'] = codes;
  8521. return map;
  8522. }
  8523. }
  8524. class SaveCMSTemplateDetailRequest extends TokenRequest{
  8525. String? cMSTemplateCode;
  8526. String? cMSTemplateName;
  8527. CMSTemplateStatusTypeEnum cMSTemplateStateType;
  8528. String? cMSTemplateJson;
  8529. bool isDefault;
  8530. String? cMSBgColor;
  8531. String? cMSBgImg;
  8532. bool isShowTop;
  8533. String? cMSBorderColor;
  8534. int cMSBorderShadow;
  8535. SaveCMSTemplateDetailRequest({
  8536. this.cMSTemplateCode,
  8537. this.cMSTemplateName,
  8538. this.cMSTemplateStateType = CMSTemplateStatusTypeEnum.UnPublished,
  8539. this.cMSTemplateJson,
  8540. this.isDefault = false,
  8541. this.cMSBgColor,
  8542. this.cMSBgImg,
  8543. this.isShowTop = false,
  8544. this.cMSBorderColor,
  8545. this.cMSBorderShadow = 0,
  8546. String? token,
  8547. }) : super(
  8548. token: token,
  8549. );
  8550. factory SaveCMSTemplateDetailRequest.fromJson(Map<String, dynamic> map) {
  8551. return SaveCMSTemplateDetailRequest(
  8552. cMSTemplateCode: map['CMSTemplateCode'],
  8553. cMSTemplateName: map['CMSTemplateName'],
  8554. cMSTemplateStateType: CMSTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['CMSTemplateStateType']),
  8555. cMSTemplateJson: map['CMSTemplateJson'],
  8556. isDefault: map['IsDefault'],
  8557. cMSBgColor: map['CMSBgColor'],
  8558. cMSBgImg: map['CMSBgImg'],
  8559. isShowTop: map['IsShowTop'],
  8560. cMSBorderColor: map['CMSBorderColor'],
  8561. cMSBorderShadow: map['CMSBorderShadow'],
  8562. token: map['Token'],
  8563. );
  8564. }
  8565. Map<String, dynamic> toJson() {
  8566. final map = super.toJson();
  8567. if(cMSTemplateCode != null)
  8568. map['CMSTemplateCode'] = cMSTemplateCode;
  8569. if(cMSTemplateName != null)
  8570. map['CMSTemplateName'] = cMSTemplateName;
  8571. map['CMSTemplateStateType'] = cMSTemplateStateType.index;
  8572. if(cMSTemplateJson != null)
  8573. map['CMSTemplateJson'] = cMSTemplateJson;
  8574. map['IsDefault'] = isDefault;
  8575. if(cMSBgColor != null)
  8576. map['CMSBgColor'] = cMSBgColor;
  8577. if(cMSBgImg != null)
  8578. map['CMSBgImg'] = cMSBgImg;
  8579. map['IsShowTop'] = isShowTop;
  8580. if(cMSBorderColor != null)
  8581. map['CMSBorderColor'] = cMSBorderColor;
  8582. map['CMSBorderShadow'] = cMSBorderShadow;
  8583. return map;
  8584. }
  8585. }
  8586. class SaveReportLabelRequest extends TokenRequest{
  8587. String? reportLabelCode;
  8588. String? labelName;
  8589. String? languageCode;
  8590. ReportLabelUsageTypeEnum usageType;
  8591. List<String>? labelItems;
  8592. SaveReportLabelRequest({
  8593. this.reportLabelCode,
  8594. this.labelName,
  8595. this.languageCode,
  8596. this.usageType = ReportLabelUsageTypeEnum.People,
  8597. this.labelItems,
  8598. String? token,
  8599. }) : super(
  8600. token: token,
  8601. );
  8602. factory SaveReportLabelRequest.fromJson(Map<String, dynamic> map) {
  8603. return SaveReportLabelRequest(
  8604. reportLabelCode: map['ReportLabelCode'],
  8605. labelName: map['LabelName'],
  8606. languageCode: map['LanguageCode'],
  8607. usageType: ReportLabelUsageTypeEnum.values.firstWhere((e) => e.index == map['UsageType']),
  8608. labelItems: map['LabelItems']?.cast<String>().toList(),
  8609. token: map['Token'],
  8610. );
  8611. }
  8612. Map<String, dynamic> toJson() {
  8613. final map = super.toJson();
  8614. if(reportLabelCode != null)
  8615. map['ReportLabelCode'] = reportLabelCode;
  8616. if(labelName != null)
  8617. map['LabelName'] = labelName;
  8618. if(languageCode != null)
  8619. map['LanguageCode'] = languageCode;
  8620. map['UsageType'] = usageType.index;
  8621. if(labelItems != null)
  8622. map['LabelItems'] = labelItems;
  8623. return map;
  8624. }
  8625. }
  8626. class SaveReportPosterRequest extends TokenRequest{
  8627. String? reportPosterCode;
  8628. String? receiverName;
  8629. String? contact;
  8630. String? phone;
  8631. String? targetUrl;
  8632. String? template;
  8633. ReportPosterTypeEnum posterType;
  8634. ReportFormatEnum reportFormat;
  8635. int postTimeout;
  8636. SaveReportPosterRequest({
  8637. this.reportPosterCode,
  8638. this.receiverName,
  8639. this.contact,
  8640. this.phone,
  8641. this.targetUrl,
  8642. this.template,
  8643. this.posterType = ReportPosterTypeEnum.Default,
  8644. this.reportFormat = ReportFormatEnum.Json,
  8645. this.postTimeout = 0,
  8646. String? token,
  8647. }) : super(
  8648. token: token,
  8649. );
  8650. factory SaveReportPosterRequest.fromJson(Map<String, dynamic> map) {
  8651. return SaveReportPosterRequest(
  8652. reportPosterCode: map['ReportPosterCode'],
  8653. receiverName: map['ReceiverName'],
  8654. contact: map['Contact'],
  8655. phone: map['Phone'],
  8656. targetUrl: map['TargetUrl'],
  8657. template: map['Template'],
  8658. posterType: ReportPosterTypeEnum.values.firstWhere((e) => e.index == map['PosterType']),
  8659. reportFormat: ReportFormatEnum.values.firstWhere((e) => e.index == map['ReportFormat']),
  8660. postTimeout: map['PostTimeout'],
  8661. token: map['Token'],
  8662. );
  8663. }
  8664. Map<String, dynamic> toJson() {
  8665. final map = super.toJson();
  8666. if(reportPosterCode != null)
  8667. map['ReportPosterCode'] = reportPosterCode;
  8668. if(receiverName != null)
  8669. map['ReceiverName'] = receiverName;
  8670. if(contact != null)
  8671. map['Contact'] = contact;
  8672. if(phone != null)
  8673. map['Phone'] = phone;
  8674. if(targetUrl != null)
  8675. map['TargetUrl'] = targetUrl;
  8676. if(template != null)
  8677. map['Template'] = template;
  8678. map['PosterType'] = posterType.index;
  8679. map['ReportFormat'] = reportFormat.index;
  8680. map['PostTimeout'] = postTimeout;
  8681. return map;
  8682. }
  8683. }
  8684. class SaveThesaurusRequest extends ThesaurusDTO{
  8685. String? token;
  8686. SaveThesaurusRequest({
  8687. this.token,
  8688. String? thesaurusCode,
  8689. String? thesaurusName,
  8690. ThesaurusStatusTypeEnum thesaurusStateType = ThesaurusStatusTypeEnum.Unpublished,
  8691. ThesaurusTypeEnum thesaurusType = ThesaurusTypeEnum.Default,
  8692. ThesaurusUsageTypeEnum thesaurusUsageType = ThesaurusUsageTypeEnum.People,
  8693. String? organizationCode,
  8694. String? personalCode,
  8695. String? referenceThesaurusCode,
  8696. bool isDefault = false,
  8697. bool isUserDefault = false,
  8698. String? languageCode,
  8699. }) : super(
  8700. thesaurusCode: thesaurusCode,
  8701. thesaurusName: thesaurusName,
  8702. thesaurusStateType: thesaurusStateType,
  8703. thesaurusType: thesaurusType,
  8704. thesaurusUsageType: thesaurusUsageType,
  8705. organizationCode: organizationCode,
  8706. personalCode: personalCode,
  8707. referenceThesaurusCode: referenceThesaurusCode,
  8708. isDefault: isDefault,
  8709. isUserDefault: isUserDefault,
  8710. languageCode: languageCode,
  8711. );
  8712. factory SaveThesaurusRequest.fromJson(Map<String, dynamic> map) {
  8713. return SaveThesaurusRequest(
  8714. token: map['Token'],
  8715. thesaurusCode: map['ThesaurusCode'],
  8716. thesaurusName: map['ThesaurusName'],
  8717. thesaurusStateType: ThesaurusStatusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusStateType']),
  8718. thesaurusType: ThesaurusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusType']),
  8719. thesaurusUsageType: ThesaurusUsageTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusUsageType']),
  8720. organizationCode: map['OrganizationCode'],
  8721. personalCode: map['PersonalCode'],
  8722. referenceThesaurusCode: map['ReferenceThesaurusCode'],
  8723. isDefault: map['IsDefault'],
  8724. isUserDefault: map['IsUserDefault'],
  8725. languageCode: map['LanguageCode'],
  8726. );
  8727. }
  8728. Map<String, dynamic> toJson() {
  8729. final map = super.toJson();
  8730. if(token != null)
  8731. map['Token'] = token;
  8732. return map;
  8733. }
  8734. }
  8735. class SettingReloadRequest extends TokenRequest{
  8736. String? settingKey;
  8737. SettingReloadRequest({
  8738. this.settingKey,
  8739. String? token,
  8740. }) : super(
  8741. token: token,
  8742. );
  8743. factory SettingReloadRequest.fromJson(Map<String, dynamic> map) {
  8744. return SettingReloadRequest(
  8745. settingKey: map['SettingKey'],
  8746. token: map['Token'],
  8747. );
  8748. }
  8749. Map<String, dynamic> toJson() {
  8750. final map = super.toJson();
  8751. if(settingKey != null)
  8752. map['SettingKey'] = settingKey;
  8753. return map;
  8754. }
  8755. }
  8756. class ShareDeviceRequest extends TokenRequest{
  8757. List<String>? userCodeList;
  8758. List<String>? deviceCodes;
  8759. ShareDeviceRequest({
  8760. this.userCodeList,
  8761. this.deviceCodes,
  8762. String? token,
  8763. }) : super(
  8764. token: token,
  8765. );
  8766. factory ShareDeviceRequest.fromJson(Map<String, dynamic> map) {
  8767. return ShareDeviceRequest(
  8768. userCodeList: map['UserCodeList']?.cast<String>().toList(),
  8769. deviceCodes: map['DeviceCodes']?.cast<String>().toList(),
  8770. token: map['Token'],
  8771. );
  8772. }
  8773. Map<String, dynamic> toJson() {
  8774. final map = super.toJson();
  8775. if(userCodeList != null)
  8776. map['UserCodeList'] = userCodeList;
  8777. if(deviceCodes != null)
  8778. map['DeviceCodes'] = deviceCodes;
  8779. return map;
  8780. }
  8781. }
  8782. class ThesaurusItemRequest extends TokenRequest{
  8783. String? thesaurusItemCode;
  8784. ThesaurusItemTypeEnum thesaurusItemType;
  8785. String? thesaurusItemName;
  8786. String? parentItemCode;
  8787. String? thesaurusCode;
  8788. String? thesaurusItemDescription;
  8789. String? thesaurusItemConclusion;
  8790. ThesaurusItemRequest({
  8791. this.thesaurusItemCode,
  8792. this.thesaurusItemType = ThesaurusItemTypeEnum.Classification,
  8793. this.thesaurusItemName,
  8794. this.parentItemCode,
  8795. this.thesaurusCode,
  8796. this.thesaurusItemDescription,
  8797. this.thesaurusItemConclusion,
  8798. String? token,
  8799. }) : super(
  8800. token: token,
  8801. );
  8802. factory ThesaurusItemRequest.fromJson(Map<String, dynamic> map) {
  8803. return ThesaurusItemRequest(
  8804. thesaurusItemCode: map['ThesaurusItemCode'],
  8805. thesaurusItemType: ThesaurusItemTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusItemType']),
  8806. thesaurusItemName: map['ThesaurusItemName'],
  8807. parentItemCode: map['ParentItemCode'],
  8808. thesaurusCode: map['ThesaurusCode'],
  8809. thesaurusItemDescription: map['ThesaurusItemDescription'],
  8810. thesaurusItemConclusion: map['ThesaurusItemConclusion'],
  8811. token: map['Token'],
  8812. );
  8813. }
  8814. Map<String, dynamic> toJson() {
  8815. final map = super.toJson();
  8816. if(thesaurusItemCode != null)
  8817. map['ThesaurusItemCode'] = thesaurusItemCode;
  8818. map['ThesaurusItemType'] = thesaurusItemType.index;
  8819. if(thesaurusItemName != null)
  8820. map['ThesaurusItemName'] = thesaurusItemName;
  8821. if(parentItemCode != null)
  8822. map['ParentItemCode'] = parentItemCode;
  8823. if(thesaurusCode != null)
  8824. map['ThesaurusCode'] = thesaurusCode;
  8825. if(thesaurusItemDescription != null)
  8826. map['ThesaurusItemDescription'] = thesaurusItemDescription;
  8827. if(thesaurusItemConclusion != null)
  8828. map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
  8829. return map;
  8830. }
  8831. }
  8832. class UpdateDeviceDiagnosisModuleEnabledRequest extends TokenRequest{
  8833. String? deviceCode;
  8834. List<String>? diagnosisModules;
  8835. UpdateDeviceDiagnosisModuleEnabledRequest({
  8836. this.deviceCode,
  8837. this.diagnosisModules,
  8838. String? token,
  8839. }) : super(
  8840. token: token,
  8841. );
  8842. factory UpdateDeviceDiagnosisModuleEnabledRequest.fromJson(Map<String, dynamic> map) {
  8843. return UpdateDeviceDiagnosisModuleEnabledRequest(
  8844. deviceCode: map['DeviceCode'],
  8845. diagnosisModules: map['DiagnosisModules']?.cast<String>().toList(),
  8846. token: map['Token'],
  8847. );
  8848. }
  8849. Map<String, dynamic> toJson() {
  8850. final map = super.toJson();
  8851. if(deviceCode != null)
  8852. map['DeviceCode'] = deviceCode;
  8853. if(diagnosisModules != null)
  8854. map['DiagnosisModules'] = diagnosisModules;
  8855. return map;
  8856. }
  8857. }
  8858. enum GradingConfigTypeEnum {
  8859. Switch,
  8860. Text,
  8861. }
  8862. class UpdateGradingProtectionConfigEnableRequest extends TokenRequest{
  8863. List<String>? codes;
  8864. GradingConfigTypeEnum configType;
  8865. String? value;
  8866. UpdateGradingProtectionConfigEnableRequest({
  8867. this.codes,
  8868. this.configType = GradingConfigTypeEnum.Switch,
  8869. this.value,
  8870. String? token,
  8871. }) : super(
  8872. token: token,
  8873. );
  8874. factory UpdateGradingProtectionConfigEnableRequest.fromJson(Map<String, dynamic> map) {
  8875. return UpdateGradingProtectionConfigEnableRequest(
  8876. codes: map['Codes']?.cast<String>().toList(),
  8877. configType: GradingConfigTypeEnum.values.firstWhere((e) => e.index == map['ConfigType']),
  8878. value: map['Value'],
  8879. token: map['Token'],
  8880. );
  8881. }
  8882. Map<String, dynamic> toJson() {
  8883. final map = super.toJson();
  8884. if(codes != null)
  8885. map['Codes'] = codes;
  8886. map['ConfigType'] = configType.index;
  8887. if(value != null)
  8888. map['Value'] = value;
  8889. return map;
  8890. }
  8891. }
  8892. class FindCourseAlbumPageRequest extends PageRequest{
  8893. String? keyword;
  8894. StudentCourseStatusEnum queryStatus;
  8895. List<String>? courseLabelCodes;
  8896. String? teacherCode;
  8897. String? teacherName;
  8898. CourseViewRangeEnum viewRange;
  8899. double price;
  8900. FindCourseAlbumPageRequest({
  8901. this.keyword,
  8902. this.queryStatus = StudentCourseStatusEnum.All,
  8903. this.courseLabelCodes,
  8904. this.teacherCode,
  8905. this.teacherName,
  8906. this.viewRange = CourseViewRangeEnum.All,
  8907. this.price = 0,
  8908. int pageIndex = 0,
  8909. int pageSize = 0,
  8910. String? token,
  8911. }) : super(
  8912. pageIndex: pageIndex,
  8913. pageSize: pageSize,
  8914. token: token,
  8915. );
  8916. factory FindCourseAlbumPageRequest.fromJson(Map<String, dynamic> map) {
  8917. return FindCourseAlbumPageRequest(
  8918. keyword: map['Keyword'],
  8919. queryStatus: StudentCourseStatusEnum.values.firstWhere((e) => e.index == map['QueryStatus']),
  8920. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  8921. teacherCode: map['TeacherCode'],
  8922. teacherName: map['TeacherName'],
  8923. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  8924. price: double.parse(map['Price'].toString()),
  8925. pageIndex: map['PageIndex'],
  8926. pageSize: map['PageSize'],
  8927. token: map['Token'],
  8928. );
  8929. }
  8930. Map<String, dynamic> toJson() {
  8931. final map = super.toJson();
  8932. if(keyword != null)
  8933. map['Keyword'] = keyword;
  8934. map['QueryStatus'] = queryStatus.index;
  8935. if(courseLabelCodes != null)
  8936. map['CourseLabelCodes'] = courseLabelCodes;
  8937. if(teacherCode != null)
  8938. map['TeacherCode'] = teacherCode;
  8939. if(teacherName != null)
  8940. map['TeacherName'] = teacherName;
  8941. map['ViewRange'] = viewRange.index;
  8942. map['Price'] = price;
  8943. return map;
  8944. }
  8945. }
  8946. class CourseAlbumAddCourseCodesRequest extends TokenRequest{
  8947. List<String>? courseCodes;
  8948. CourseAlbumAddCourseCodesRequest({
  8949. this.courseCodes,
  8950. String? token,
  8951. }) : super(
  8952. token: token,
  8953. );
  8954. factory CourseAlbumAddCourseCodesRequest.fromJson(Map<String, dynamic> map) {
  8955. return CourseAlbumAddCourseCodesRequest(
  8956. courseCodes: map['CourseCodes']?.cast<String>().toList(),
  8957. token: map['Token'],
  8958. );
  8959. }
  8960. Map<String, dynamic> toJson() {
  8961. final map = super.toJson();
  8962. if(courseCodes != null)
  8963. map['CourseCodes'] = courseCodes;
  8964. return map;
  8965. }
  8966. }
  8967. class CourseAlbumAddCourseLabelCodesRequest extends TokenRequest{
  8968. List<String>? courseLabelCodes;
  8969. CourseAlbumAddCourseLabelCodesRequest({
  8970. this.courseLabelCodes,
  8971. String? token,
  8972. }) : super(
  8973. token: token,
  8974. );
  8975. factory CourseAlbumAddCourseLabelCodesRequest.fromJson(Map<String, dynamic> map) {
  8976. return CourseAlbumAddCourseLabelCodesRequest(
  8977. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  8978. token: map['Token'],
  8979. );
  8980. }
  8981. Map<String, dynamic> toJson() {
  8982. final map = super.toJson();
  8983. if(courseLabelCodes != null)
  8984. map['CourseLabelCodes'] = courseLabelCodes;
  8985. return map;
  8986. }
  8987. }
  8988. class SignUpCourseAlbumRequest extends TokenRequest{
  8989. String? courseAlbumCode;
  8990. SignUpCourseAlbumRequest({
  8991. this.courseAlbumCode,
  8992. String? token,
  8993. }) : super(
  8994. token: token,
  8995. );
  8996. factory SignUpCourseAlbumRequest.fromJson(Map<String, dynamic> map) {
  8997. return SignUpCourseAlbumRequest(
  8998. courseAlbumCode: map['CourseAlbumCode'],
  8999. token: map['Token'],
  9000. );
  9001. }
  9002. Map<String, dynamic> toJson() {
  9003. final map = super.toJson();
  9004. if(courseAlbumCode != null)
  9005. map['CourseAlbumCode'] = courseAlbumCode;
  9006. return map;
  9007. }
  9008. }
  9009. class FindVideosByCourseCodeRequest extends TokenRequest{
  9010. String? code;
  9011. String? courseCode;
  9012. FindVideosByCourseCodeRequest({
  9013. this.code,
  9014. this.courseCode,
  9015. String? token,
  9016. }) : super(
  9017. token: token,
  9018. );
  9019. factory FindVideosByCourseCodeRequest.fromJson(Map<String, dynamic> map) {
  9020. return FindVideosByCourseCodeRequest(
  9021. code: map['Code'],
  9022. courseCode: map['CourseCode'],
  9023. token: map['Token'],
  9024. );
  9025. }
  9026. Map<String, dynamic> toJson() {
  9027. final map = super.toJson();
  9028. if(code != null)
  9029. map['Code'] = code;
  9030. if(courseCode != null)
  9031. map['CourseCode'] = courseCode;
  9032. return map;
  9033. }
  9034. }
  9035. class GetReportDetailRequest extends AppletAPIBaseRequest{
  9036. String? reportId;
  9037. GetReportDetailRequest({
  9038. this.reportId,
  9039. String? openId,
  9040. }) : super(
  9041. openId: openId,
  9042. );
  9043. factory GetReportDetailRequest.fromJson(Map<String, dynamic> map) {
  9044. return GetReportDetailRequest(
  9045. reportId: map['ReportId'],
  9046. openId: map['OpenId'],
  9047. );
  9048. }
  9049. Map<String, dynamic> toJson() {
  9050. final map = super.toJson();
  9051. if(reportId != null)
  9052. map['ReportId'] = reportId;
  9053. return map;
  9054. }
  9055. }
  9056. class GetOpLogsByCodesFormMasterRequest {
  9057. List<String>? codes;
  9058. GetOpLogsByCodesFormMasterRequest({
  9059. this.codes,
  9060. });
  9061. factory GetOpLogsByCodesFormMasterRequest.fromJson(Map<String, dynamic> map) {
  9062. return GetOpLogsByCodesFormMasterRequest(
  9063. codes: map['Codes']?.cast<String>().toList(),
  9064. );
  9065. }
  9066. Map<String, dynamic> toJson() {
  9067. final map = Map<String, dynamic>();
  9068. if(codes != null) {
  9069. map['Codes'] = codes;
  9070. }
  9071. return map;
  9072. }
  9073. }
  9074. class GetOpLogsFormMasterRequest {
  9075. int cursor;
  9076. String? sourceUrl;
  9077. GetOpLogsFormMasterRequest({
  9078. this.cursor = 0,
  9079. this.sourceUrl,
  9080. });
  9081. factory GetOpLogsFormMasterRequest.fromJson(Map<String, dynamic> map) {
  9082. return GetOpLogsFormMasterRequest(
  9083. cursor: map['Cursor'],
  9084. sourceUrl: map['SourceUrl'],
  9085. );
  9086. }
  9087. Map<String, dynamic> toJson() {
  9088. final map = Map<String, dynamic>();
  9089. map['Cursor'] = cursor;
  9090. if(sourceUrl != null) {
  9091. map['SourceUrl'] = sourceUrl;
  9092. }
  9093. return map;
  9094. }
  9095. }
  9096. enum MongoDBActionTypeEnum {
  9097. InsertOne,
  9098. InsertOneAsync,
  9099. InsertMany,
  9100. InsertManyAsync,
  9101. DeleteOne,
  9102. DeleteOneAsync,
  9103. DeleteMany,
  9104. DeleteManyAsync,
  9105. FindOneAndDelete,
  9106. FindOneAndDeleteAsync,
  9107. ReplaceOne,
  9108. ReplaceOneAsync,
  9109. FindOneAndReplace,
  9110. FindOneAndReplaceAsync,
  9111. UpdateOne,
  9112. UpdateOneAsync,
  9113. UpdateMany,
  9114. UpdateManyAsync,
  9115. FindOneAndUpdate,
  9116. FindOneAndUpdateAsync,
  9117. }
  9118. class OperationLogDTO {
  9119. int id;
  9120. String? collectionName;
  9121. MongoDBActionTypeEnum actionType;
  9122. String? bsonContent;
  9123. String? filterContent;
  9124. DateTime? createTime;
  9125. String? code;
  9126. String? sourceUrl;
  9127. bool isSimple;
  9128. OperationLogDTO({
  9129. this.id = 0,
  9130. this.collectionName,
  9131. this.actionType = MongoDBActionTypeEnum.InsertOne,
  9132. this.bsonContent,
  9133. this.filterContent,
  9134. this.createTime,
  9135. this.code,
  9136. this.sourceUrl,
  9137. this.isSimple = false,
  9138. });
  9139. factory OperationLogDTO.fromJson(Map<String, dynamic> map) {
  9140. return OperationLogDTO(
  9141. id: map['Id'],
  9142. collectionName: map['CollectionName'],
  9143. actionType: MongoDBActionTypeEnum.values.firstWhere((e) => e.index == map['ActionType']),
  9144. bsonContent: map['BsonContent'],
  9145. filterContent: map['FilterContent'],
  9146. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9147. code: map['Code'],
  9148. sourceUrl: map['SourceUrl'],
  9149. isSimple: map['IsSimple'],
  9150. );
  9151. }
  9152. Map<String, dynamic> toJson() {
  9153. final map = Map<String, dynamic>();
  9154. map['Id'] = id;
  9155. if(collectionName != null) {
  9156. map['CollectionName'] = collectionName;
  9157. }
  9158. map['ActionType'] = actionType.index;
  9159. if(bsonContent != null) {
  9160. map['BsonContent'] = bsonContent;
  9161. }
  9162. if(filterContent != null) {
  9163. map['FilterContent'] = filterContent;
  9164. }
  9165. if(createTime != null) {
  9166. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  9167. }
  9168. if(code != null) {
  9169. map['Code'] = code;
  9170. }
  9171. if(sourceUrl != null) {
  9172. map['SourceUrl'] = sourceUrl;
  9173. }
  9174. map['IsSimple'] = isSimple;
  9175. return map;
  9176. }
  9177. }
  9178. class SyncDataCheckResult {
  9179. Map<String,String>? serverUrlMap;
  9180. int workerCount;
  9181. bool executingStatus;
  9182. bool isClosed;
  9183. SyncDataCheckResult({
  9184. this.serverUrlMap,
  9185. this.workerCount = 0,
  9186. this.executingStatus = false,
  9187. this.isClosed = false,
  9188. });
  9189. factory SyncDataCheckResult.fromJson(Map<String, dynamic> map) {
  9190. return SyncDataCheckResult(
  9191. serverUrlMap: map['ServerUrlMap']?.cast<String,String>(),
  9192. workerCount: map['WorkerCount'],
  9193. executingStatus: map['ExecutingStatus'],
  9194. isClosed: map['IsClosed'],
  9195. );
  9196. }
  9197. Map<String, dynamic> toJson() {
  9198. final map = Map<String, dynamic>();
  9199. if(serverUrlMap != null) {
  9200. map['ServerUrlMap'] = serverUrlMap;
  9201. }
  9202. map['WorkerCount'] = workerCount;
  9203. map['ExecutingStatus'] = executingStatus;
  9204. map['IsClosed'] = isClosed;
  9205. return map;
  9206. }
  9207. }
  9208. class SyncCompleteOpLogsRequest {
  9209. List<OperationLogDTO>? oplogs;
  9210. SyncCompleteOpLogsRequest({
  9211. this.oplogs,
  9212. });
  9213. factory SyncCompleteOpLogsRequest.fromJson(Map<String, dynamic> map) {
  9214. return SyncCompleteOpLogsRequest(
  9215. oplogs: map['Oplogs'] != null ? (map['Oplogs'] as List).map((e)=>OperationLogDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9216. );
  9217. }
  9218. Map<String, dynamic> toJson() {
  9219. final map = Map<String, dynamic>();
  9220. if(oplogs != null) {
  9221. map['Oplogs'] = oplogs;
  9222. }
  9223. return map;
  9224. }
  9225. }
  9226. class SyncOpLogToMasterRequest {
  9227. String? collectionName;
  9228. MongoDBActionTypeEnum actionType;
  9229. String? bsonContent;
  9230. String? filterContent;
  9231. DateTime? createTime;
  9232. String? sourceUrl;
  9233. String? code;
  9234. String? serverID;
  9235. bool isSimple;
  9236. SyncOpLogToMasterRequest({
  9237. this.collectionName,
  9238. this.actionType = MongoDBActionTypeEnum.InsertOne,
  9239. this.bsonContent,
  9240. this.filterContent,
  9241. this.createTime,
  9242. this.sourceUrl,
  9243. this.code,
  9244. this.serverID,
  9245. this.isSimple = false,
  9246. });
  9247. factory SyncOpLogToMasterRequest.fromJson(Map<String, dynamic> map) {
  9248. return SyncOpLogToMasterRequest(
  9249. collectionName: map['CollectionName'],
  9250. actionType: MongoDBActionTypeEnum.values.firstWhere((e) => e.index == map['ActionType']),
  9251. bsonContent: map['BsonContent'],
  9252. filterContent: map['FilterContent'],
  9253. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9254. sourceUrl: map['SourceUrl'],
  9255. code: map['Code'],
  9256. serverID: map['ServerID'],
  9257. isSimple: map['IsSimple'],
  9258. );
  9259. }
  9260. Map<String, dynamic> toJson() {
  9261. final map = Map<String, dynamic>();
  9262. if(collectionName != null) {
  9263. map['CollectionName'] = collectionName;
  9264. }
  9265. map['ActionType'] = actionType.index;
  9266. if(bsonContent != null) {
  9267. map['BsonContent'] = bsonContent;
  9268. }
  9269. if(filterContent != null) {
  9270. map['FilterContent'] = filterContent;
  9271. }
  9272. if(createTime != null) {
  9273. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  9274. }
  9275. if(sourceUrl != null) {
  9276. map['SourceUrl'] = sourceUrl;
  9277. }
  9278. if(code != null) {
  9279. map['Code'] = code;
  9280. }
  9281. if(serverID != null) {
  9282. map['ServerID'] = serverID;
  9283. }
  9284. map['IsSimple'] = isSimple;
  9285. return map;
  9286. }
  9287. }
  9288. class NotificationClientInfo {
  9289. String? clientId;
  9290. String? loginServerUrl;
  9291. List<TokenDTO>? tokens;
  9292. NotificationClientInfo({
  9293. this.clientId,
  9294. this.loginServerUrl,
  9295. this.tokens,
  9296. });
  9297. factory NotificationClientInfo.fromJson(Map<String, dynamic> map) {
  9298. return NotificationClientInfo(
  9299. clientId: map['ClientId'],
  9300. loginServerUrl: map['LoginServerUrl'],
  9301. tokens: map['Tokens'] != null ? (map['Tokens'] as List).map((e)=>TokenDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9302. );
  9303. }
  9304. Map<String, dynamic> toJson() {
  9305. final map = Map<String, dynamic>();
  9306. if(clientId != null) {
  9307. map['ClientId'] = clientId;
  9308. }
  9309. if(loginServerUrl != null) {
  9310. map['LoginServerUrl'] = loginServerUrl;
  9311. }
  9312. if(tokens != null) {
  9313. map['Tokens'] = tokens;
  9314. }
  9315. return map;
  9316. }
  9317. }
  9318. class ChangeConsultationControllingStateRequest extends TokenRequest{
  9319. String? deviceCode;
  9320. String? userCode;
  9321. bool isControllingParameter;
  9322. ChangeConsultationControllingStateRequest({
  9323. this.deviceCode,
  9324. this.userCode,
  9325. this.isControllingParameter = false,
  9326. String? token,
  9327. }) : super(
  9328. token: token,
  9329. );
  9330. factory ChangeConsultationControllingStateRequest.fromJson(Map<String, dynamic> map) {
  9331. return ChangeConsultationControllingStateRequest(
  9332. deviceCode: map['DeviceCode'],
  9333. userCode: map['UserCode'],
  9334. isControllingParameter: map['IsControllingParameter'],
  9335. token: map['Token'],
  9336. );
  9337. }
  9338. Map<String, dynamic> toJson() {
  9339. final map = super.toJson();
  9340. if(deviceCode != null)
  9341. map['DeviceCode'] = deviceCode;
  9342. if(userCode != null)
  9343. map['UserCode'] = userCode;
  9344. map['IsControllingParameter'] = isControllingParameter;
  9345. return map;
  9346. }
  9347. }
  9348. enum ConsultationMemeberAcceptStatus {
  9349. Default,
  9350. Accepted,
  9351. Rejected,
  9352. }
  9353. enum LiveConsultationRoleEnum {
  9354. Expert,
  9355. General,
  9356. OtherParticipant,
  9357. AssistantDoctor,
  9358. Assistant,
  9359. }
  9360. enum LiveConsultationRoomStatus {
  9361. Default,
  9362. Initiating,
  9363. Cancelled,
  9364. ConnectionTimeout,
  9365. Connected,
  9366. Closed,
  9367. }
  9368. enum VideoProtocol {
  9369. Rtmp,
  9370. Rtc,
  9371. }
  9372. class DeviceJoinLiveConsultationResult {
  9373. String? consultationCode;
  9374. String? deviceCode;
  9375. int roomNo;
  9376. int appId;
  9377. String? deviceSign;
  9378. List<LiveConsultationMember>? memberLiveDatas;
  9379. List<InteractiveBoardDataDTO>? interactiveBoardDatas;
  9380. DeviceJoinLiveConsultationResult({
  9381. this.consultationCode,
  9382. this.deviceCode,
  9383. this.roomNo = 0,
  9384. this.appId = 0,
  9385. this.deviceSign,
  9386. this.memberLiveDatas,
  9387. this.interactiveBoardDatas,
  9388. });
  9389. factory DeviceJoinLiveConsultationResult.fromJson(Map<String, dynamic> map) {
  9390. return DeviceJoinLiveConsultationResult(
  9391. consultationCode: map['ConsultationCode'],
  9392. deviceCode: map['DeviceCode'],
  9393. roomNo: map['RoomNo'],
  9394. appId: map['AppId'],
  9395. deviceSign: map['DeviceSign'],
  9396. memberLiveDatas: map['MemberLiveDatas'] != null ? (map['MemberLiveDatas'] as List).map((e)=>LiveConsultationMember.fromJson(e as Map<String,dynamic>)).toList() : null,
  9397. interactiveBoardDatas: map['InteractiveBoardDatas'] != null ? (map['InteractiveBoardDatas'] as List).map((e)=>InteractiveBoardDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9398. );
  9399. }
  9400. Map<String, dynamic> toJson() {
  9401. final map = Map<String, dynamic>();
  9402. if(consultationCode != null) {
  9403. map['ConsultationCode'] = consultationCode;
  9404. }
  9405. if(deviceCode != null) {
  9406. map['DeviceCode'] = deviceCode;
  9407. }
  9408. map['RoomNo'] = roomNo;
  9409. map['AppId'] = appId;
  9410. if(deviceSign != null) {
  9411. map['DeviceSign'] = deviceSign;
  9412. }
  9413. if(memberLiveDatas != null) {
  9414. map['MemberLiveDatas'] = memberLiveDatas;
  9415. }
  9416. if(interactiveBoardDatas != null) {
  9417. map['InteractiveBoardDatas'] = interactiveBoardDatas;
  9418. }
  9419. return map;
  9420. }
  9421. }
  9422. class LiveConsultationRoomDTO {
  9423. String? consultationCode;
  9424. LiveConsultationMember? initiator;
  9425. List<LiveConsultationMember>? members;
  9426. List<LiveConsultationMember>? devices;
  9427. LiveConsultationRoomStatus status;
  9428. int roomNo;
  9429. LiveConsultationRoomDTO({
  9430. this.consultationCode,
  9431. this.initiator,
  9432. this.members,
  9433. this.devices,
  9434. this.status = LiveConsultationRoomStatus.Default,
  9435. this.roomNo = 0,
  9436. });
  9437. factory LiveConsultationRoomDTO.fromJson(Map<String, dynamic> map) {
  9438. return LiveConsultationRoomDTO(
  9439. consultationCode: map['ConsultationCode'],
  9440. initiator: map['Initiator'] != null ? LiveConsultationMember.fromJson(map['Initiator']) : null,
  9441. members: map['Members'] != null ? (map['Members'] as List).map((e)=>LiveConsultationMember.fromJson(e as Map<String,dynamic>)).toList() : null,
  9442. devices: map['Devices'] != null ? (map['Devices'] as List).map((e)=>LiveConsultationMember.fromJson(e as Map<String,dynamic>)).toList() : null,
  9443. status: LiveConsultationRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  9444. roomNo: map['RoomNo'],
  9445. );
  9446. }
  9447. Map<String, dynamic> toJson() {
  9448. final map = Map<String, dynamic>();
  9449. if(consultationCode != null) {
  9450. map['ConsultationCode'] = consultationCode;
  9451. }
  9452. if(initiator != null) {
  9453. map['Initiator'] = initiator;
  9454. }
  9455. if(members != null) {
  9456. map['Members'] = members;
  9457. }
  9458. if(devices != null) {
  9459. map['Devices'] = devices;
  9460. }
  9461. map['Status'] = status.index;
  9462. map['RoomNo'] = roomNo;
  9463. return map;
  9464. }
  9465. }
  9466. enum BoardTypeEnum {
  9467. ReadOnly,
  9468. Ink,
  9469. Line,
  9470. Erase,
  9471. }
  9472. class FindConsultationSettingRequest extends TokenRequest{
  9473. String? version;
  9474. FindConsultationSettingRequest({
  9475. this.version,
  9476. String? token,
  9477. }) : super(
  9478. token: token,
  9479. );
  9480. factory FindConsultationSettingRequest.fromJson(Map<String, dynamic> map) {
  9481. return FindConsultationSettingRequest(
  9482. version: map['Version'],
  9483. token: map['Token'],
  9484. );
  9485. }
  9486. Map<String, dynamic> toJson() {
  9487. final map = super.toJson();
  9488. if(version != null)
  9489. map['Version'] = version;
  9490. return map;
  9491. }
  9492. }
  9493. class FindOrganizationBindExpertsRequest extends TokenRequest{
  9494. FindOrganizationBindExpertsRequest({
  9495. String? token,
  9496. }) : super(
  9497. token: token,
  9498. );
  9499. factory FindOrganizationBindExpertsRequest.fromJson(Map<String, dynamic> map) {
  9500. return FindOrganizationBindExpertsRequest(
  9501. token: map['Token'],
  9502. );
  9503. }
  9504. Map<String, dynamic> toJson() {
  9505. final map = super.toJson();
  9506. return map;
  9507. }
  9508. }
  9509. class GetEmergencyOrderRequest extends TokenRequest{
  9510. String? emergencySerialNumber;
  9511. GetEmergencyOrderRequest({
  9512. this.emergencySerialNumber,
  9513. String? token,
  9514. }) : super(
  9515. token: token,
  9516. );
  9517. factory GetEmergencyOrderRequest.fromJson(Map<String, dynamic> map) {
  9518. return GetEmergencyOrderRequest(
  9519. emergencySerialNumber: map['EmergencySerialNumber'],
  9520. token: map['Token'],
  9521. );
  9522. }
  9523. Map<String, dynamic> toJson() {
  9524. final map = super.toJson();
  9525. if(emergencySerialNumber != null)
  9526. map['EmergencySerialNumber'] = emergencySerialNumber;
  9527. return map;
  9528. }
  9529. }
  9530. enum AgeUnitsEnum {
  9531. Year,
  9532. YearAndMonth,
  9533. MonthAndWeek,
  9534. WeekAndDay,
  9535. }
  9536. enum AnnounceTypeEnum {
  9537. Broadcast,
  9538. Maintain,
  9539. }
  9540. enum MessageCategoryEnum {
  9541. Consultation,
  9542. Diagnosis,
  9543. Course,
  9544. }
  9545. enum UpgradeEnum {
  9546. Windows,
  9547. Android,
  9548. SonoPost,
  9549. Server,
  9550. FISSDK,
  9551. }
  9552. enum ChannelDescriptionEnum {
  9553. DeskChannel,
  9554. TerminalChannel,
  9555. CameraChannel,
  9556. TerminalTestChannel,
  9557. NoneChannel,
  9558. }
  9559. enum QueryCMSTemplateStatusTypeEnum {
  9560. UnPublished,
  9561. Published,
  9562. }
  9563. enum QueryCMSMessageStatusEnum {
  9564. UnRead,
  9565. Read,
  9566. }
  9567. enum CMSMessageStatusEnum {
  9568. UnRead,
  9569. Read,
  9570. }
  9571. enum StatisticsPlatformEnum {
  9572. Management,
  9573. CMS,
  9574. }
  9575. enum StatisticsBannerTypeEnum {
  9576. PlatActivity,
  9577. Devices,
  9578. Download,
  9579. }
  9580. enum QueryStatisticsBannerTypeEnum {
  9581. PlatActivity,
  9582. Devices,
  9583. Download,
  9584. }
  9585. enum CourseAvailabilityEnum {
  9586. Public,
  9587. Limited,
  9588. Fee,
  9589. Invitation,
  9590. Meeting,
  9591. }
  9592. enum CustomLabelTypeEnum {
  9593. Group,
  9594. Label,
  9595. }
  9596. enum LogEventLevel {
  9597. Verbose,
  9598. Debug,
  9599. Information,
  9600. Warning,
  9601. Error,
  9602. Fatal,
  9603. }
  9604. enum DevicePatchTypeEnum {
  9605. US,
  9606. sonopost,
  9607. FISSDK,
  9608. }
  9609. enum DiagnosisLabelEnum {
  9610. BIRads1,
  9611. Lipomyoma,
  9612. BIRads2,
  9613. BIRads3,
  9614. BIRads4A,
  9615. BIRads4B,
  9616. BIRads4C,
  9617. BIRads5,
  9618. IntrahepaticHyperechoic,
  9619. HHE,
  9620. CYST,
  9621. PossibleCancer,
  9622. FattyLiver,
  9623. DiffuseLesions,
  9624. Cirrhosis,
  9625. PCLD,
  9626. }
  9627. enum DiagnosisBreastLabelEnum {
  9628. BIRads1,
  9629. Lipomyoma,
  9630. BIRads2,
  9631. BIRads3,
  9632. BIRads4A,
  9633. BIRads4B,
  9634. BIRads4C,
  9635. BIRads5,
  9636. }
  9637. enum DiagnosisLiverLabelEnum {
  9638. BIRads1,
  9639. Hyperechoic,
  9640. HHE,
  9641. CYST,
  9642. PossibleCancer,
  9643. FattyLiver,
  9644. DiffuseLesions,
  9645. Cirrhosis,
  9646. PCLD,
  9647. }
  9648. enum AIThyroidLabelEnum {
  9649. TIRADS0,
  9650. TIRADS2,
  9651. TIRADS3,
  9652. TIRADS4a,
  9653. TIRADS4b,
  9654. TIRADS4c,
  9655. TIRADS5,
  9656. DiffuseDisease,
  9657. }
  9658. enum DiseaseConclusion {
  9659. NoConclusion,
  9660. Positive,
  9661. Negative,
  9662. }
  9663. enum ExaminationAvailabilityEnum {
  9664. Public,
  9665. Limited,
  9666. }
  9667. enum ExamTypeEnum {
  9668. GeneralExam,
  9669. AgentExam,
  9670. Standardized,
  9671. }
  9672. enum FunctionalityStatusEnum {
  9673. DemoMode,
  9674. Activity,
  9675. }
  9676. enum GestationalAgeOriginEnum {
  9677. GestationalAge,
  9678. IVF,
  9679. OospermForm,
  9680. BBT,
  9681. LMP,
  9682. }
  9683. enum GetUserListTypeEnum {
  9684. FullName,
  9685. Phone,
  9686. }
  9687. enum HeartbeatTypeEnum {
  9688. ClientToken,
  9689. TerminalToken,
  9690. ThirdpartyToken,
  9691. LiveState,
  9692. RTCState,
  9693. }
  9694. enum ImageTypeEnum {
  9695. placeHolder_0,
  9696. Local,
  9697. Ob,
  9698. WorkSheet,
  9699. Remote,
  9700. DigitalSignature,
  9701. AIDiagnosis,
  9702. }
  9703. enum LabConvertStateEnum {
  9704. NotStarted,
  9705. Running,
  9706. Finish,
  9707. }
  9708. enum LabFileTypeEnum {
  9709. Media,
  9710. ZipFile,
  9711. }
  9712. enum LiveMemberStatusEnum {
  9713. Default,
  9714. Accepted,
  9715. Rejected,
  9716. Joined,
  9717. Left,
  9718. }
  9719. enum LiveProtocolEnum {
  9720. placeHolder_0,
  9721. RTMP,
  9722. RTC,
  9723. }
  9724. enum LiveRoomStatus {
  9725. Default,
  9726. Initiating,
  9727. Cancelled,
  9728. ConnectionTimeout,
  9729. Connected,
  9730. Closed,
  9731. }
  9732. enum LoginProcessorTypeEnum {
  9733. Official,
  9734. Wechat,
  9735. Phone,
  9736. Email,
  9737. placeHolder_4,
  9738. placeHolder_5,
  9739. placeHolder_6,
  9740. placeHolder_7,
  9741. placeHolder_8,
  9742. placeHolder_9,
  9743. placeHolder_10,
  9744. placeHolder_11,
  9745. placeHolder_12,
  9746. placeHolder_13,
  9747. placeHolder_14,
  9748. placeHolder_15,
  9749. placeHolder_16,
  9750. placeHolder_17,
  9751. placeHolder_18,
  9752. placeHolder_19,
  9753. placeHolder_20,
  9754. placeHolder_21,
  9755. placeHolder_22,
  9756. placeHolder_23,
  9757. placeHolder_24,
  9758. placeHolder_25,
  9759. placeHolder_26,
  9760. placeHolder_27,
  9761. placeHolder_28,
  9762. placeHolder_29,
  9763. placeHolder_30,
  9764. placeHolder_31,
  9765. placeHolder_32,
  9766. placeHolder_33,
  9767. placeHolder_34,
  9768. placeHolder_35,
  9769. placeHolder_36,
  9770. placeHolder_37,
  9771. placeHolder_38,
  9772. placeHolder_39,
  9773. placeHolder_40,
  9774. placeHolder_41,
  9775. placeHolder_42,
  9776. placeHolder_43,
  9777. placeHolder_44,
  9778. placeHolder_45,
  9779. placeHolder_46,
  9780. placeHolder_47,
  9781. placeHolder_48,
  9782. placeHolder_49,
  9783. placeHolder_50,
  9784. placeHolder_51,
  9785. placeHolder_52,
  9786. placeHolder_53,
  9787. placeHolder_54,
  9788. placeHolder_55,
  9789. placeHolder_56,
  9790. placeHolder_57,
  9791. placeHolder_58,
  9792. placeHolder_59,
  9793. placeHolder_60,
  9794. placeHolder_61,
  9795. placeHolder_62,
  9796. placeHolder_63,
  9797. placeHolder_64,
  9798. placeHolder_65,
  9799. placeHolder_66,
  9800. placeHolder_67,
  9801. placeHolder_68,
  9802. placeHolder_69,
  9803. placeHolder_70,
  9804. placeHolder_71,
  9805. placeHolder_72,
  9806. placeHolder_73,
  9807. placeHolder_74,
  9808. placeHolder_75,
  9809. placeHolder_76,
  9810. placeHolder_77,
  9811. placeHolder_78,
  9812. placeHolder_79,
  9813. placeHolder_80,
  9814. placeHolder_81,
  9815. placeHolder_82,
  9816. placeHolder_83,
  9817. placeHolder_84,
  9818. placeHolder_85,
  9819. placeHolder_86,
  9820. placeHolder_87,
  9821. placeHolder_88,
  9822. placeHolder_89,
  9823. placeHolder_90,
  9824. placeHolder_91,
  9825. placeHolder_92,
  9826. placeHolder_93,
  9827. placeHolder_94,
  9828. placeHolder_95,
  9829. placeHolder_96,
  9830. placeHolder_97,
  9831. placeHolder_98,
  9832. placeHolder_99,
  9833. placeHolder_100,
  9834. placeHolder_101,
  9835. placeHolder_102,
  9836. placeHolder_103,
  9837. placeHolder_104,
  9838. placeHolder_105,
  9839. placeHolder_106,
  9840. placeHolder_107,
  9841. placeHolder_108,
  9842. placeHolder_109,
  9843. placeHolder_110,
  9844. placeHolder_111,
  9845. placeHolder_112,
  9846. placeHolder_113,
  9847. placeHolder_114,
  9848. placeHolder_115,
  9849. placeHolder_116,
  9850. placeHolder_117,
  9851. placeHolder_118,
  9852. placeHolder_119,
  9853. placeHolder_120,
  9854. placeHolder_121,
  9855. placeHolder_122,
  9856. placeHolder_123,
  9857. placeHolder_124,
  9858. placeHolder_125,
  9859. placeHolder_126,
  9860. placeHolder_127,
  9861. placeHolder_128,
  9862. placeHolder_129,
  9863. placeHolder_130,
  9864. placeHolder_131,
  9865. placeHolder_132,
  9866. placeHolder_133,
  9867. placeHolder_134,
  9868. placeHolder_135,
  9869. placeHolder_136,
  9870. placeHolder_137,
  9871. placeHolder_138,
  9872. placeHolder_139,
  9873. placeHolder_140,
  9874. placeHolder_141,
  9875. placeHolder_142,
  9876. placeHolder_143,
  9877. placeHolder_144,
  9878. placeHolder_145,
  9879. placeHolder_146,
  9880. placeHolder_147,
  9881. placeHolder_148,
  9882. placeHolder_149,
  9883. placeHolder_150,
  9884. placeHolder_151,
  9885. placeHolder_152,
  9886. placeHolder_153,
  9887. placeHolder_154,
  9888. placeHolder_155,
  9889. placeHolder_156,
  9890. placeHolder_157,
  9891. placeHolder_158,
  9892. placeHolder_159,
  9893. placeHolder_160,
  9894. placeHolder_161,
  9895. placeHolder_162,
  9896. placeHolder_163,
  9897. placeHolder_164,
  9898. placeHolder_165,
  9899. placeHolder_166,
  9900. placeHolder_167,
  9901. placeHolder_168,
  9902. placeHolder_169,
  9903. placeHolder_170,
  9904. placeHolder_171,
  9905. placeHolder_172,
  9906. placeHolder_173,
  9907. placeHolder_174,
  9908. placeHolder_175,
  9909. placeHolder_176,
  9910. placeHolder_177,
  9911. placeHolder_178,
  9912. placeHolder_179,
  9913. placeHolder_180,
  9914. placeHolder_181,
  9915. placeHolder_182,
  9916. placeHolder_183,
  9917. placeHolder_184,
  9918. placeHolder_185,
  9919. placeHolder_186,
  9920. placeHolder_187,
  9921. placeHolder_188,
  9922. placeHolder_189,
  9923. placeHolder_190,
  9924. placeHolder_191,
  9925. placeHolder_192,
  9926. placeHolder_193,
  9927. placeHolder_194,
  9928. placeHolder_195,
  9929. placeHolder_196,
  9930. placeHolder_197,
  9931. placeHolder_198,
  9932. placeHolder_199,
  9933. placeHolder_200,
  9934. placeHolder_201,
  9935. placeHolder_202,
  9936. placeHolder_203,
  9937. placeHolder_204,
  9938. placeHolder_205,
  9939. placeHolder_206,
  9940. placeHolder_207,
  9941. placeHolder_208,
  9942. placeHolder_209,
  9943. placeHolder_210,
  9944. placeHolder_211,
  9945. placeHolder_212,
  9946. placeHolder_213,
  9947. placeHolder_214,
  9948. placeHolder_215,
  9949. placeHolder_216,
  9950. placeHolder_217,
  9951. placeHolder_218,
  9952. placeHolder_219,
  9953. placeHolder_220,
  9954. placeHolder_221,
  9955. placeHolder_222,
  9956. placeHolder_223,
  9957. placeHolder_224,
  9958. placeHolder_225,
  9959. placeHolder_226,
  9960. placeHolder_227,
  9961. placeHolder_228,
  9962. placeHolder_229,
  9963. placeHolder_230,
  9964. placeHolder_231,
  9965. placeHolder_232,
  9966. placeHolder_233,
  9967. placeHolder_234,
  9968. placeHolder_235,
  9969. placeHolder_236,
  9970. placeHolder_237,
  9971. placeHolder_238,
  9972. placeHolder_239,
  9973. placeHolder_240,
  9974. placeHolder_241,
  9975. placeHolder_242,
  9976. placeHolder_243,
  9977. placeHolder_244,
  9978. placeHolder_245,
  9979. placeHolder_246,
  9980. placeHolder_247,
  9981. placeHolder_248,
  9982. placeHolder_249,
  9983. placeHolder_250,
  9984. placeHolder_251,
  9985. placeHolder_252,
  9986. placeHolder_253,
  9987. placeHolder_254,
  9988. placeHolder_255,
  9989. placeHolder_256,
  9990. placeHolder_257,
  9991. placeHolder_258,
  9992. placeHolder_259,
  9993. placeHolder_260,
  9994. placeHolder_261,
  9995. placeHolder_262,
  9996. placeHolder_263,
  9997. placeHolder_264,
  9998. placeHolder_265,
  9999. placeHolder_266,
  10000. placeHolder_267,
  10001. placeHolder_268,
  10002. placeHolder_269,
  10003. placeHolder_270,
  10004. placeHolder_271,
  10005. placeHolder_272,
  10006. placeHolder_273,
  10007. placeHolder_274,
  10008. placeHolder_275,
  10009. placeHolder_276,
  10010. placeHolder_277,
  10011. placeHolder_278,
  10012. placeHolder_279,
  10013. placeHolder_280,
  10014. placeHolder_281,
  10015. placeHolder_282,
  10016. placeHolder_283,
  10017. placeHolder_284,
  10018. placeHolder_285,
  10019. placeHolder_286,
  10020. placeHolder_287,
  10021. placeHolder_288,
  10022. placeHolder_289,
  10023. placeHolder_290,
  10024. placeHolder_291,
  10025. placeHolder_292,
  10026. placeHolder_293,
  10027. placeHolder_294,
  10028. placeHolder_295,
  10029. placeHolder_296,
  10030. placeHolder_297,
  10031. placeHolder_298,
  10032. placeHolder_299,
  10033. placeHolder_300,
  10034. placeHolder_301,
  10035. placeHolder_302,
  10036. placeHolder_303,
  10037. placeHolder_304,
  10038. placeHolder_305,
  10039. placeHolder_306,
  10040. placeHolder_307,
  10041. placeHolder_308,
  10042. placeHolder_309,
  10043. placeHolder_310,
  10044. placeHolder_311,
  10045. placeHolder_312,
  10046. placeHolder_313,
  10047. placeHolder_314,
  10048. placeHolder_315,
  10049. placeHolder_316,
  10050. placeHolder_317,
  10051. placeHolder_318,
  10052. placeHolder_319,
  10053. placeHolder_320,
  10054. placeHolder_321,
  10055. placeHolder_322,
  10056. placeHolder_323,
  10057. placeHolder_324,
  10058. placeHolder_325,
  10059. placeHolder_326,
  10060. placeHolder_327,
  10061. placeHolder_328,
  10062. placeHolder_329,
  10063. placeHolder_330,
  10064. placeHolder_331,
  10065. placeHolder_332,
  10066. placeHolder_333,
  10067. placeHolder_334,
  10068. placeHolder_335,
  10069. placeHolder_336,
  10070. placeHolder_337,
  10071. placeHolder_338,
  10072. placeHolder_339,
  10073. placeHolder_340,
  10074. placeHolder_341,
  10075. placeHolder_342,
  10076. placeHolder_343,
  10077. placeHolder_344,
  10078. placeHolder_345,
  10079. placeHolder_346,
  10080. placeHolder_347,
  10081. placeHolder_348,
  10082. placeHolder_349,
  10083. placeHolder_350,
  10084. placeHolder_351,
  10085. placeHolder_352,
  10086. placeHolder_353,
  10087. placeHolder_354,
  10088. placeHolder_355,
  10089. placeHolder_356,
  10090. placeHolder_357,
  10091. placeHolder_358,
  10092. placeHolder_359,
  10093. placeHolder_360,
  10094. placeHolder_361,
  10095. placeHolder_362,
  10096. placeHolder_363,
  10097. placeHolder_364,
  10098. placeHolder_365,
  10099. placeHolder_366,
  10100. placeHolder_367,
  10101. placeHolder_368,
  10102. placeHolder_369,
  10103. placeHolder_370,
  10104. placeHolder_371,
  10105. placeHolder_372,
  10106. placeHolder_373,
  10107. placeHolder_374,
  10108. placeHolder_375,
  10109. placeHolder_376,
  10110. placeHolder_377,
  10111. placeHolder_378,
  10112. placeHolder_379,
  10113. placeHolder_380,
  10114. placeHolder_381,
  10115. placeHolder_382,
  10116. placeHolder_383,
  10117. placeHolder_384,
  10118. placeHolder_385,
  10119. placeHolder_386,
  10120. placeHolder_387,
  10121. placeHolder_388,
  10122. placeHolder_389,
  10123. placeHolder_390,
  10124. placeHolder_391,
  10125. placeHolder_392,
  10126. placeHolder_393,
  10127. placeHolder_394,
  10128. placeHolder_395,
  10129. placeHolder_396,
  10130. placeHolder_397,
  10131. placeHolder_398,
  10132. placeHolder_399,
  10133. placeHolder_400,
  10134. placeHolder_401,
  10135. placeHolder_402,
  10136. placeHolder_403,
  10137. placeHolder_404,
  10138. placeHolder_405,
  10139. placeHolder_406,
  10140. placeHolder_407,
  10141. placeHolder_408,
  10142. placeHolder_409,
  10143. placeHolder_410,
  10144. placeHolder_411,
  10145. placeHolder_412,
  10146. placeHolder_413,
  10147. placeHolder_414,
  10148. placeHolder_415,
  10149. placeHolder_416,
  10150. placeHolder_417,
  10151. placeHolder_418,
  10152. placeHolder_419,
  10153. placeHolder_420,
  10154. placeHolder_421,
  10155. placeHolder_422,
  10156. placeHolder_423,
  10157. placeHolder_424,
  10158. placeHolder_425,
  10159. placeHolder_426,
  10160. placeHolder_427,
  10161. placeHolder_428,
  10162. placeHolder_429,
  10163. placeHolder_430,
  10164. placeHolder_431,
  10165. placeHolder_432,
  10166. placeHolder_433,
  10167. placeHolder_434,
  10168. placeHolder_435,
  10169. placeHolder_436,
  10170. placeHolder_437,
  10171. placeHolder_438,
  10172. placeHolder_439,
  10173. placeHolder_440,
  10174. placeHolder_441,
  10175. placeHolder_442,
  10176. placeHolder_443,
  10177. placeHolder_444,
  10178. placeHolder_445,
  10179. placeHolder_446,
  10180. placeHolder_447,
  10181. placeHolder_448,
  10182. placeHolder_449,
  10183. placeHolder_450,
  10184. placeHolder_451,
  10185. placeHolder_452,
  10186. placeHolder_453,
  10187. placeHolder_454,
  10188. placeHolder_455,
  10189. placeHolder_456,
  10190. placeHolder_457,
  10191. placeHolder_458,
  10192. placeHolder_459,
  10193. placeHolder_460,
  10194. placeHolder_461,
  10195. placeHolder_462,
  10196. placeHolder_463,
  10197. placeHolder_464,
  10198. placeHolder_465,
  10199. placeHolder_466,
  10200. placeHolder_467,
  10201. placeHolder_468,
  10202. placeHolder_469,
  10203. placeHolder_470,
  10204. placeHolder_471,
  10205. placeHolder_472,
  10206. placeHolder_473,
  10207. placeHolder_474,
  10208. placeHolder_475,
  10209. placeHolder_476,
  10210. placeHolder_477,
  10211. placeHolder_478,
  10212. placeHolder_479,
  10213. placeHolder_480,
  10214. placeHolder_481,
  10215. placeHolder_482,
  10216. placeHolder_483,
  10217. placeHolder_484,
  10218. placeHolder_485,
  10219. placeHolder_486,
  10220. placeHolder_487,
  10221. placeHolder_488,
  10222. placeHolder_489,
  10223. placeHolder_490,
  10224. placeHolder_491,
  10225. placeHolder_492,
  10226. placeHolder_493,
  10227. placeHolder_494,
  10228. placeHolder_495,
  10229. placeHolder_496,
  10230. placeHolder_497,
  10231. placeHolder_498,
  10232. placeHolder_499,
  10233. placeHolder_500,
  10234. placeHolder_501,
  10235. placeHolder_502,
  10236. placeHolder_503,
  10237. placeHolder_504,
  10238. placeHolder_505,
  10239. placeHolder_506,
  10240. placeHolder_507,
  10241. placeHolder_508,
  10242. placeHolder_509,
  10243. placeHolder_510,
  10244. placeHolder_511,
  10245. placeHolder_512,
  10246. placeHolder_513,
  10247. placeHolder_514,
  10248. placeHolder_515,
  10249. placeHolder_516,
  10250. placeHolder_517,
  10251. placeHolder_518,
  10252. placeHolder_519,
  10253. placeHolder_520,
  10254. placeHolder_521,
  10255. placeHolder_522,
  10256. placeHolder_523,
  10257. placeHolder_524,
  10258. placeHolder_525,
  10259. placeHolder_526,
  10260. placeHolder_527,
  10261. placeHolder_528,
  10262. placeHolder_529,
  10263. placeHolder_530,
  10264. placeHolder_531,
  10265. placeHolder_532,
  10266. placeHolder_533,
  10267. placeHolder_534,
  10268. placeHolder_535,
  10269. placeHolder_536,
  10270. placeHolder_537,
  10271. placeHolder_538,
  10272. placeHolder_539,
  10273. placeHolder_540,
  10274. placeHolder_541,
  10275. placeHolder_542,
  10276. placeHolder_543,
  10277. placeHolder_544,
  10278. placeHolder_545,
  10279. placeHolder_546,
  10280. placeHolder_547,
  10281. placeHolder_548,
  10282. placeHolder_549,
  10283. placeHolder_550,
  10284. placeHolder_551,
  10285. placeHolder_552,
  10286. placeHolder_553,
  10287. placeHolder_554,
  10288. placeHolder_555,
  10289. placeHolder_556,
  10290. placeHolder_557,
  10291. placeHolder_558,
  10292. placeHolder_559,
  10293. placeHolder_560,
  10294. placeHolder_561,
  10295. placeHolder_562,
  10296. placeHolder_563,
  10297. placeHolder_564,
  10298. placeHolder_565,
  10299. placeHolder_566,
  10300. placeHolder_567,
  10301. placeHolder_568,
  10302. placeHolder_569,
  10303. placeHolder_570,
  10304. placeHolder_571,
  10305. placeHolder_572,
  10306. placeHolder_573,
  10307. placeHolder_574,
  10308. placeHolder_575,
  10309. placeHolder_576,
  10310. placeHolder_577,
  10311. placeHolder_578,
  10312. placeHolder_579,
  10313. placeHolder_580,
  10314. placeHolder_581,
  10315. placeHolder_582,
  10316. placeHolder_583,
  10317. placeHolder_584,
  10318. placeHolder_585,
  10319. placeHolder_586,
  10320. placeHolder_587,
  10321. placeHolder_588,
  10322. placeHolder_589,
  10323. placeHolder_590,
  10324. placeHolder_591,
  10325. placeHolder_592,
  10326. placeHolder_593,
  10327. placeHolder_594,
  10328. placeHolder_595,
  10329. placeHolder_596,
  10330. placeHolder_597,
  10331. placeHolder_598,
  10332. placeHolder_599,
  10333. placeHolder_600,
  10334. placeHolder_601,
  10335. placeHolder_602,
  10336. placeHolder_603,
  10337. placeHolder_604,
  10338. placeHolder_605,
  10339. placeHolder_606,
  10340. placeHolder_607,
  10341. placeHolder_608,
  10342. placeHolder_609,
  10343. placeHolder_610,
  10344. placeHolder_611,
  10345. placeHolder_612,
  10346. placeHolder_613,
  10347. placeHolder_614,
  10348. placeHolder_615,
  10349. placeHolder_616,
  10350. placeHolder_617,
  10351. placeHolder_618,
  10352. placeHolder_619,
  10353. placeHolder_620,
  10354. placeHolder_621,
  10355. placeHolder_622,
  10356. placeHolder_623,
  10357. placeHolder_624,
  10358. placeHolder_625,
  10359. placeHolder_626,
  10360. placeHolder_627,
  10361. placeHolder_628,
  10362. placeHolder_629,
  10363. placeHolder_630,
  10364. placeHolder_631,
  10365. placeHolder_632,
  10366. placeHolder_633,
  10367. placeHolder_634,
  10368. placeHolder_635,
  10369. placeHolder_636,
  10370. placeHolder_637,
  10371. placeHolder_638,
  10372. placeHolder_639,
  10373. placeHolder_640,
  10374. placeHolder_641,
  10375. placeHolder_642,
  10376. placeHolder_643,
  10377. placeHolder_644,
  10378. placeHolder_645,
  10379. placeHolder_646,
  10380. placeHolder_647,
  10381. placeHolder_648,
  10382. placeHolder_649,
  10383. placeHolder_650,
  10384. placeHolder_651,
  10385. placeHolder_652,
  10386. placeHolder_653,
  10387. placeHolder_654,
  10388. placeHolder_655,
  10389. placeHolder_656,
  10390. placeHolder_657,
  10391. placeHolder_658,
  10392. placeHolder_659,
  10393. placeHolder_660,
  10394. placeHolder_661,
  10395. placeHolder_662,
  10396. placeHolder_663,
  10397. placeHolder_664,
  10398. placeHolder_665,
  10399. placeHolder_666,
  10400. placeHolder_667,
  10401. placeHolder_668,
  10402. placeHolder_669,
  10403. placeHolder_670,
  10404. placeHolder_671,
  10405. placeHolder_672,
  10406. placeHolder_673,
  10407. placeHolder_674,
  10408. placeHolder_675,
  10409. placeHolder_676,
  10410. placeHolder_677,
  10411. placeHolder_678,
  10412. placeHolder_679,
  10413. placeHolder_680,
  10414. placeHolder_681,
  10415. placeHolder_682,
  10416. placeHolder_683,
  10417. placeHolder_684,
  10418. placeHolder_685,
  10419. placeHolder_686,
  10420. placeHolder_687,
  10421. placeHolder_688,
  10422. placeHolder_689,
  10423. placeHolder_690,
  10424. placeHolder_691,
  10425. placeHolder_692,
  10426. placeHolder_693,
  10427. placeHolder_694,
  10428. placeHolder_695,
  10429. placeHolder_696,
  10430. placeHolder_697,
  10431. placeHolder_698,
  10432. placeHolder_699,
  10433. placeHolder_700,
  10434. placeHolder_701,
  10435. placeHolder_702,
  10436. placeHolder_703,
  10437. placeHolder_704,
  10438. placeHolder_705,
  10439. placeHolder_706,
  10440. placeHolder_707,
  10441. placeHolder_708,
  10442. placeHolder_709,
  10443. placeHolder_710,
  10444. placeHolder_711,
  10445. placeHolder_712,
  10446. placeHolder_713,
  10447. placeHolder_714,
  10448. placeHolder_715,
  10449. placeHolder_716,
  10450. placeHolder_717,
  10451. placeHolder_718,
  10452. placeHolder_719,
  10453. placeHolder_720,
  10454. placeHolder_721,
  10455. placeHolder_722,
  10456. placeHolder_723,
  10457. placeHolder_724,
  10458. placeHolder_725,
  10459. placeHolder_726,
  10460. placeHolder_727,
  10461. placeHolder_728,
  10462. placeHolder_729,
  10463. placeHolder_730,
  10464. placeHolder_731,
  10465. placeHolder_732,
  10466. placeHolder_733,
  10467. placeHolder_734,
  10468. placeHolder_735,
  10469. placeHolder_736,
  10470. placeHolder_737,
  10471. placeHolder_738,
  10472. placeHolder_739,
  10473. placeHolder_740,
  10474. placeHolder_741,
  10475. placeHolder_742,
  10476. placeHolder_743,
  10477. placeHolder_744,
  10478. placeHolder_745,
  10479. placeHolder_746,
  10480. placeHolder_747,
  10481. placeHolder_748,
  10482. placeHolder_749,
  10483. placeHolder_750,
  10484. placeHolder_751,
  10485. placeHolder_752,
  10486. placeHolder_753,
  10487. placeHolder_754,
  10488. placeHolder_755,
  10489. placeHolder_756,
  10490. placeHolder_757,
  10491. placeHolder_758,
  10492. placeHolder_759,
  10493. placeHolder_760,
  10494. placeHolder_761,
  10495. placeHolder_762,
  10496. placeHolder_763,
  10497. placeHolder_764,
  10498. placeHolder_765,
  10499. placeHolder_766,
  10500. placeHolder_767,
  10501. placeHolder_768,
  10502. placeHolder_769,
  10503. placeHolder_770,
  10504. placeHolder_771,
  10505. placeHolder_772,
  10506. placeHolder_773,
  10507. placeHolder_774,
  10508. placeHolder_775,
  10509. placeHolder_776,
  10510. placeHolder_777,
  10511. placeHolder_778,
  10512. placeHolder_779,
  10513. placeHolder_780,
  10514. placeHolder_781,
  10515. placeHolder_782,
  10516. placeHolder_783,
  10517. placeHolder_784,
  10518. placeHolder_785,
  10519. placeHolder_786,
  10520. placeHolder_787,
  10521. placeHolder_788,
  10522. placeHolder_789,
  10523. placeHolder_790,
  10524. placeHolder_791,
  10525. placeHolder_792,
  10526. placeHolder_793,
  10527. placeHolder_794,
  10528. placeHolder_795,
  10529. placeHolder_796,
  10530. placeHolder_797,
  10531. placeHolder_798,
  10532. placeHolder_799,
  10533. placeHolder_800,
  10534. placeHolder_801,
  10535. placeHolder_802,
  10536. placeHolder_803,
  10537. placeHolder_804,
  10538. placeHolder_805,
  10539. placeHolder_806,
  10540. placeHolder_807,
  10541. placeHolder_808,
  10542. placeHolder_809,
  10543. placeHolder_810,
  10544. placeHolder_811,
  10545. placeHolder_812,
  10546. placeHolder_813,
  10547. placeHolder_814,
  10548. placeHolder_815,
  10549. placeHolder_816,
  10550. placeHolder_817,
  10551. placeHolder_818,
  10552. placeHolder_819,
  10553. placeHolder_820,
  10554. placeHolder_821,
  10555. placeHolder_822,
  10556. placeHolder_823,
  10557. placeHolder_824,
  10558. placeHolder_825,
  10559. placeHolder_826,
  10560. placeHolder_827,
  10561. placeHolder_828,
  10562. placeHolder_829,
  10563. placeHolder_830,
  10564. placeHolder_831,
  10565. placeHolder_832,
  10566. placeHolder_833,
  10567. placeHolder_834,
  10568. placeHolder_835,
  10569. placeHolder_836,
  10570. placeHolder_837,
  10571. placeHolder_838,
  10572. placeHolder_839,
  10573. placeHolder_840,
  10574. placeHolder_841,
  10575. placeHolder_842,
  10576. placeHolder_843,
  10577. placeHolder_844,
  10578. placeHolder_845,
  10579. placeHolder_846,
  10580. placeHolder_847,
  10581. placeHolder_848,
  10582. placeHolder_849,
  10583. placeHolder_850,
  10584. placeHolder_851,
  10585. placeHolder_852,
  10586. placeHolder_853,
  10587. placeHolder_854,
  10588. placeHolder_855,
  10589. placeHolder_856,
  10590. placeHolder_857,
  10591. placeHolder_858,
  10592. placeHolder_859,
  10593. placeHolder_860,
  10594. placeHolder_861,
  10595. placeHolder_862,
  10596. placeHolder_863,
  10597. placeHolder_864,
  10598. placeHolder_865,
  10599. placeHolder_866,
  10600. placeHolder_867,
  10601. placeHolder_868,
  10602. placeHolder_869,
  10603. placeHolder_870,
  10604. placeHolder_871,
  10605. placeHolder_872,
  10606. placeHolder_873,
  10607. placeHolder_874,
  10608. placeHolder_875,
  10609. placeHolder_876,
  10610. placeHolder_877,
  10611. placeHolder_878,
  10612. placeHolder_879,
  10613. placeHolder_880,
  10614. placeHolder_881,
  10615. placeHolder_882,
  10616. placeHolder_883,
  10617. placeHolder_884,
  10618. placeHolder_885,
  10619. placeHolder_886,
  10620. placeHolder_887,
  10621. placeHolder_888,
  10622. placeHolder_889,
  10623. placeHolder_890,
  10624. placeHolder_891,
  10625. placeHolder_892,
  10626. placeHolder_893,
  10627. placeHolder_894,
  10628. placeHolder_895,
  10629. placeHolder_896,
  10630. placeHolder_897,
  10631. placeHolder_898,
  10632. placeHolder_899,
  10633. placeHolder_900,
  10634. placeHolder_901,
  10635. placeHolder_902,
  10636. placeHolder_903,
  10637. placeHolder_904,
  10638. placeHolder_905,
  10639. placeHolder_906,
  10640. placeHolder_907,
  10641. placeHolder_908,
  10642. placeHolder_909,
  10643. placeHolder_910,
  10644. placeHolder_911,
  10645. placeHolder_912,
  10646. placeHolder_913,
  10647. placeHolder_914,
  10648. placeHolder_915,
  10649. placeHolder_916,
  10650. placeHolder_917,
  10651. placeHolder_918,
  10652. placeHolder_919,
  10653. placeHolder_920,
  10654. placeHolder_921,
  10655. placeHolder_922,
  10656. placeHolder_923,
  10657. placeHolder_924,
  10658. placeHolder_925,
  10659. placeHolder_926,
  10660. placeHolder_927,
  10661. placeHolder_928,
  10662. placeHolder_929,
  10663. placeHolder_930,
  10664. placeHolder_931,
  10665. placeHolder_932,
  10666. placeHolder_933,
  10667. placeHolder_934,
  10668. placeHolder_935,
  10669. placeHolder_936,
  10670. placeHolder_937,
  10671. placeHolder_938,
  10672. placeHolder_939,
  10673. placeHolder_940,
  10674. placeHolder_941,
  10675. placeHolder_942,
  10676. placeHolder_943,
  10677. placeHolder_944,
  10678. placeHolder_945,
  10679. placeHolder_946,
  10680. placeHolder_947,
  10681. placeHolder_948,
  10682. placeHolder_949,
  10683. placeHolder_950,
  10684. placeHolder_951,
  10685. placeHolder_952,
  10686. placeHolder_953,
  10687. placeHolder_954,
  10688. placeHolder_955,
  10689. placeHolder_956,
  10690. placeHolder_957,
  10691. placeHolder_958,
  10692. placeHolder_959,
  10693. placeHolder_960,
  10694. placeHolder_961,
  10695. placeHolder_962,
  10696. placeHolder_963,
  10697. placeHolder_964,
  10698. placeHolder_965,
  10699. placeHolder_966,
  10700. placeHolder_967,
  10701. placeHolder_968,
  10702. placeHolder_969,
  10703. placeHolder_970,
  10704. placeHolder_971,
  10705. placeHolder_972,
  10706. placeHolder_973,
  10707. placeHolder_974,
  10708. placeHolder_975,
  10709. placeHolder_976,
  10710. placeHolder_977,
  10711. placeHolder_978,
  10712. placeHolder_979,
  10713. placeHolder_980,
  10714. placeHolder_981,
  10715. placeHolder_982,
  10716. placeHolder_983,
  10717. placeHolder_984,
  10718. placeHolder_985,
  10719. placeHolder_986,
  10720. placeHolder_987,
  10721. placeHolder_988,
  10722. placeHolder_989,
  10723. placeHolder_990,
  10724. placeHolder_991,
  10725. placeHolder_992,
  10726. placeHolder_993,
  10727. placeHolder_994,
  10728. placeHolder_995,
  10729. placeHolder_996,
  10730. placeHolder_997,
  10731. placeHolder_998,
  10732. Unregistered,
  10733. }
  10734. enum AnimalGenderEnum {
  10735. AnimalInfoNotFilled,
  10736. AnimalInfoMale,
  10737. AnimalInfoFemale,
  10738. }
  10739. enum RegionGradeEnum {
  10740. Country,
  10741. Province,
  10742. City,
  10743. Area,
  10744. }
  10745. enum RemedicalApparatusTypeEnum {
  10746. BreastOuterUpper,
  10747. BreastInnerUpper,
  10748. BreastOuterLower,
  10749. BreastInnerLower,
  10750. Lobe,
  10751. LobeOfUnder,
  10752. LobeOfInter,
  10753. Thyroid,
  10754. Abdomen,
  10755. }
  10756. enum RemedicalImageLocationTypeEnum {
  10757. BreastImageLocation,
  10758. LiverImageLocation,
  10759. ThyroidImageLocation,
  10760. PositionImageLocation,
  10761. }
  10762. enum RemedicalImagePositionTypeEnum {
  10763. None,
  10764. Left,
  10765. Right,
  10766. Middle,
  10767. }
  10768. enum ReportTemplateQueryTypeEnum {
  10769. All,
  10770. Personal,
  10771. Organization,
  10772. }
  10773. enum SyncTypeEnum {
  10774. Initiate,
  10775. Accept,
  10776. Reject,
  10777. CancelInitiate,
  10778. HeartRateJoin,
  10779. NetworkErr,
  10780. HeartRateLeave,
  10781. Leave,
  10782. Close,
  10783. ChangeMuteState,
  10784. ChangeVideoOpenState,
  10785. InviteIn,
  10786. CancelInviteIn,
  10787. AcceptIn,
  10788. RejectIn,
  10789. ChangeConsultationStatus,
  10790. Agree,
  10791. Notification,
  10792. EmergencyAccept,
  10793. ChangeControllingParameter,
  10794. SendInteractiveBoardData,
  10795. ChangeRoom,
  10796. SaveViewer,
  10797. DeleteViewer,
  10798. DeviceAcceptIn,
  10799. SyncControllingParameter,
  10800. ApplyRemoteConnect,
  10801. AcceptRemoteConnect,
  10802. RejectRemoteConnect,
  10803. ApplyDisConnect,
  10804. AcceptDisConnect,
  10805. DeviceDisconnect,
  10806. DeviceRemoteConnectHeartRate,
  10807. UserRemoteConnectHeartRate,
  10808. DeviceRemoteConnectOutline,
  10809. UserRemoteConnectOutline,
  10810. ConsultionRemoteConnect,
  10811. ConsultionDisConnect,
  10812. RestartDevice,
  10813. AcceptDevice,
  10814. SetShareInfo,
  10815. LeaveDevice,
  10816. RemoteMaintainData,
  10817. ProbeApplication,
  10818. DeviceReStartPusing,
  10819. CloseDeviceLive,
  10820. }
  10821. enum SyncServiceEnum {
  10822. Live,
  10823. LiveConsultation,
  10824. Notification,
  10825. ScanLogin,
  10826. Device,
  10827. RemoteConnect,
  10828. }
  10829. enum VideoPermissionsEnum {
  10830. Public,
  10831. Private,
  10832. LinkToCourse,
  10833. Fee,
  10834. AdminAvailable,
  10835. Standardized,
  10836. }
  10837. enum VideoImportanceEnum {
  10838. Normal,
  10839. Importance,
  10840. }
  10841. enum VideoLabelEnum {
  10842. NoRecording,
  10843. NoFastForward,
  10844. TeachingDocument,
  10845. }
  10846. enum WSConnectTypeEnum {
  10847. Default,
  10848. ConsultationSecondWindow,
  10849. EducationSecondWindow,
  10850. RemoteConnectSecondWindow,
  10851. AppletAPI,
  10852. }
  10853. enum ASETypeEnum {
  10854. Off,
  10855. Max,
  10856. Mean,
  10857. Both,
  10858. }
  10859. enum StraightLineShapeEnum {
  10860. StraightLine,
  10861. HalfCircle,
  10862. AutoPWVSlope,
  10863. }
  10864. enum DefinitionMeasureItemsEnum {
  10865. Default,
  10866. UserDefined,
  10867. }
  10868. enum DefinitionPriorityEnum {
  10869. Notset,
  10870. Root,
  10871. Global,
  10872. GlobalCategory,
  10873. GlobalApp,
  10874. FactoryDefault,
  10875. OemDefault,
  10876. UserDefined,
  10877. }
  10878. enum MeasureTypeUnitEnum {
  10879. None,
  10880. AreaUnit,
  10881. VelocityUnit,
  10882. TimeUnit,
  10883. }
  10884. enum UnExecuteAction {
  10885. None,
  10886. OneStep,
  10887. AllSteps,
  10888. GeometryOnly,
  10889. }
  10890. class PriorityPair {
  10891. DefinitionPriorityEnum target;
  10892. DefinitionPriorityEnum? base;
  10893. PriorityPair({
  10894. this.target = DefinitionPriorityEnum.Notset,
  10895. this.base,
  10896. });
  10897. factory PriorityPair.fromJson(Map<String, dynamic> map) {
  10898. return PriorityPair(
  10899. target: DefinitionPriorityEnum.values.firstWhere((e) => e.index == map['Target']),
  10900. base: map['Base'] != null ? DefinitionPriorityEnum.values.firstWhere((e) => e.index == map['Base']) : null,
  10901. );
  10902. }
  10903. Map<String, dynamic> toJson() {
  10904. final map = Map<String, dynamic>();
  10905. map['Target'] = target.index;
  10906. if(base != null) {
  10907. map['Base'] = base;
  10908. }
  10909. return map;
  10910. }
  10911. }
  10912. class DefinitionPriorityEnumExtension {
  10913. DefinitionPriorityEnumExtension();
  10914. factory DefinitionPriorityEnumExtension.fromJson(Map<String, dynamic> map) {
  10915. return DefinitionPriorityEnumExtension(
  10916. );
  10917. }
  10918. Map<String, dynamic> toJson() {
  10919. final map = Map<String, dynamic>();
  10920. return map;
  10921. }
  10922. }
  10923. enum TracePeakType {
  10924. Normal,
  10925. OnePeak,
  10926. TwoPeaks,
  10927. }
  10928. enum LineWeightType {
  10929. NormalWeight,
  10930. Thin,
  10931. }
  10932. enum IMTType {
  10933. placeHolder_0,
  10934. Post,
  10935. Ant,
  10936. Both,
  10937. }
  10938. enum MeasureSectionType {
  10939. None,
  10940. Root,
  10941. Application,
  10942. MeasureMode,
  10943. Group,
  10944. Folder,
  10945. Item,
  10946. Calculator,
  10947. OutPut,
  10948. Formular,
  10949. Processor,
  10950. TypeParams,
  10951. }
  10952. enum ModeTypeEnum {
  10953. Undefined,
  10954. Tissue,
  10955. Flow,
  10956. Doppler,
  10957. TissueTM,
  10958. }
  10959. enum ResourceDefPriorityEnum {
  10960. Root,
  10961. placeHolder_1,
  10962. placeHolder_2,
  10963. placeHolder_3,
  10964. placeHolder_4,
  10965. placeHolder_5,
  10966. placeHolder_6,
  10967. placeHolder_7,
  10968. placeHolder_8,
  10969. placeHolder_9,
  10970. placeHolder_10,
  10971. placeHolder_11,
  10972. placeHolder_12,
  10973. placeHolder_13,
  10974. placeHolder_14,
  10975. placeHolder_15,
  10976. placeHolder_16,
  10977. placeHolder_17,
  10978. placeHolder_18,
  10979. placeHolder_19,
  10980. placeHolder_20,
  10981. placeHolder_21,
  10982. placeHolder_22,
  10983. placeHolder_23,
  10984. placeHolder_24,
  10985. placeHolder_25,
  10986. placeHolder_26,
  10987. placeHolder_27,
  10988. placeHolder_28,
  10989. placeHolder_29,
  10990. placeHolder_30,
  10991. placeHolder_31,
  10992. placeHolder_32,
  10993. placeHolder_33,
  10994. placeHolder_34,
  10995. placeHolder_35,
  10996. placeHolder_36,
  10997. placeHolder_37,
  10998. placeHolder_38,
  10999. placeHolder_39,
  11000. FactoryDefault,
  11001. placeHolder_41,
  11002. placeHolder_42,
  11003. placeHolder_43,
  11004. placeHolder_44,
  11005. PackageDefault,
  11006. placeHolder_46,
  11007. placeHolder_47,
  11008. placeHolder_48,
  11009. placeHolder_49,
  11010. OemDefault,
  11011. placeHolder_51,
  11012. placeHolder_52,
  11013. placeHolder_53,
  11014. placeHolder_54,
  11015. placeHolder_55,
  11016. placeHolder_56,
  11017. placeHolder_57,
  11018. placeHolder_58,
  11019. placeHolder_59,
  11020. UserDefined,
  11021. }
  11022. enum Unit {
  11023. None,
  11024. percent,
  11025. fraction,
  11026. placeHolder_3,
  11027. placeHolder_4,
  11028. placeHolder_5,
  11029. placeHolder_6,
  11030. placeHolder_7,
  11031. placeHolder_8,
  11032. placeHolder_9,
  11033. cm,
  11034. mm,
  11035. inch,
  11036. ft,
  11037. placeHolder_14,
  11038. placeHolder_15,
  11039. placeHolder_16,
  11040. placeHolder_17,
  11041. placeHolder_18,
  11042. placeHolder_19,
  11043. s,
  11044. minute,
  11045. hour,
  11046. day,
  11047. week,
  11048. week_day,
  11049. Tick,
  11050. msec,
  11051. placeHolder_28,
  11052. placeHolder_29,
  11053. degree,
  11054. radian,
  11055. placeHolder_32,
  11056. placeHolder_33,
  11057. placeHolder_34,
  11058. placeHolder_35,
  11059. placeHolder_36,
  11060. placeHolder_37,
  11061. placeHolder_38,
  11062. placeHolder_39,
  11063. g,
  11064. mg,
  11065. ng,
  11066. kg,
  11067. oz,
  11068. lb,
  11069. lb_oz,
  11070. placeHolder_47,
  11071. placeHolder_48,
  11072. placeHolder_49,
  11073. cm2,
  11074. mm2,
  11075. m2,
  11076. placeHolder_53,
  11077. placeHolder_54,
  11078. placeHolder_55,
  11079. placeHolder_56,
  11080. placeHolder_57,
  11081. placeHolder_58,
  11082. placeHolder_59,
  11083. cm3,
  11084. mm3,
  11085. ml,
  11086. L,
  11087. placeHolder_64,
  11088. placeHolder_65,
  11089. placeHolder_66,
  11090. placeHolder_67,
  11091. placeHolder_68,
  11092. placeHolder_69,
  11093. cms,
  11094. mms,
  11095. ms,
  11096. placeHolder_73,
  11097. placeHolder_74,
  11098. placeHolder_75,
  11099. placeHolder_76,
  11100. placeHolder_77,
  11101. placeHolder_78,
  11102. placeHolder_79,
  11103. cms2,
  11104. mms2,
  11105. placeHolder_82,
  11106. placeHolder_83,
  11107. placeHolder_84,
  11108. placeHolder_85,
  11109. placeHolder_86,
  11110. placeHolder_87,
  11111. placeHolder_88,
  11112. placeHolder_89,
  11113. cm3s,
  11114. mls,
  11115. mlmin,
  11116. Lmin,
  11117. placeHolder_94,
  11118. placeHolder_95,
  11119. placeHolder_96,
  11120. placeHolder_97,
  11121. placeHolder_98,
  11122. placeHolder_99,
  11123. gcm3,
  11124. gml,
  11125. ngml,
  11126. placeHolder_103,
  11127. placeHolder_104,
  11128. placeHolder_105,
  11129. placeHolder_106,
  11130. placeHolder_107,
  11131. placeHolder_108,
  11132. placeHolder_109,
  11133. mmHg,
  11134. placeHolder_111,
  11135. placeHolder_112,
  11136. placeHolder_113,
  11137. placeHolder_114,
  11138. placeHolder_115,
  11139. placeHolder_116,
  11140. placeHolder_117,
  11141. placeHolder_118,
  11142. placeHolder_119,
  11143. mV,
  11144. placeHolder_121,
  11145. placeHolder_122,
  11146. placeHolder_123,
  11147. placeHolder_124,
  11148. placeHolder_125,
  11149. placeHolder_126,
  11150. placeHolder_127,
  11151. placeHolder_128,
  11152. placeHolder_129,
  11153. Hz,
  11154. KHz,
  11155. HR,
  11156. placeHolder_133,
  11157. placeHolder_134,
  11158. placeHolder_135,
  11159. placeHolder_136,
  11160. placeHolder_137,
  11161. placeHolder_138,
  11162. placeHolder_139,
  11163. cm3m2,
  11164. mlm2,
  11165. placeHolder_142,
  11166. placeHolder_143,
  11167. placeHolder_144,
  11168. placeHolder_145,
  11169. placeHolder_146,
  11170. placeHolder_147,
  11171. placeHolder_148,
  11172. placeHolder_149,
  11173. cm3sm2,
  11174. mlsm2,
  11175. placeHolder_152,
  11176. cm3minm2,
  11177. mlminm2,
  11178. Lminm2,
  11179. placeHolder_156,
  11180. placeHolder_157,
  11181. placeHolder_158,
  11182. placeHolder_159,
  11183. circs,
  11184. placeHolder_161,
  11185. placeHolder_162,
  11186. placeHolder_163,
  11187. placeHolder_164,
  11188. placeHolder_165,
  11189. placeHolder_166,
  11190. placeHolder_167,
  11191. placeHolder_168,
  11192. placeHolder_169,
  11193. mlbeat,
  11194. placeHolder_171,
  11195. placeHolder_172,
  11196. placeHolder_173,
  11197. placeHolder_174,
  11198. placeHolder_175,
  11199. placeHolder_176,
  11200. placeHolder_177,
  11201. placeHolder_178,
  11202. placeHolder_179,
  11203. mm2pa,
  11204. d1mpa,
  11205. kpa,
  11206. placeHolder_183,
  11207. placeHolder_184,
  11208. placeHolder_185,
  11209. placeHolder_186,
  11210. placeHolder_187,
  11211. placeHolder_188,
  11212. placeHolder_189,
  11213. mmHgs,
  11214. placeHolder_191,
  11215. placeHolder_192,
  11216. placeHolder_193,
  11217. placeHolder_194,
  11218. placeHolder_195,
  11219. placeHolder_196,
  11220. placeHolder_197,
  11221. placeHolder_198,
  11222. placeHolder_199,
  11223. gm2,
  11224. kgm2,
  11225. placeHolder_202,
  11226. placeHolder_203,
  11227. placeHolder_204,
  11228. placeHolder_205,
  11229. placeHolder_206,
  11230. placeHolder_207,
  11231. placeHolder_208,
  11232. placeHolder_209,
  11233. cm2m2,
  11234. placeHolder_211,
  11235. placeHolder_212,
  11236. placeHolder_213,
  11237. placeHolder_214,
  11238. placeHolder_215,
  11239. placeHolder_216,
  11240. placeHolder_217,
  11241. placeHolder_218,
  11242. placeHolder_219,
  11243. cmm2,
  11244. mmm2,
  11245. placeHolder_222,
  11246. placeHolder_223,
  11247. placeHolder_224,
  11248. placeHolder_225,
  11249. placeHolder_226,
  11250. placeHolder_227,
  11251. placeHolder_228,
  11252. placeHolder_229,
  11253. pers,
  11254. placeHolder_231,
  11255. placeHolder_232,
  11256. placeHolder_233,
  11257. placeHolder_234,
  11258. placeHolder_235,
  11259. placeHolder_236,
  11260. placeHolder_237,
  11261. placeHolder_238,
  11262. placeHolder_239,
  11263. placeHolder_240,
  11264. placeHolder_241,
  11265. placeHolder_242,
  11266. placeHolder_243,
  11267. placeHolder_244,
  11268. placeHolder_245,
  11269. placeHolder_246,
  11270. placeHolder_247,
  11271. placeHolder_248,
  11272. placeHolder_249,
  11273. Celsius,
  11274. Fahrenheit,
  11275. placeHolder_252,
  11276. placeHolder_253,
  11277. placeHolder_254,
  11278. placeHolder_255,
  11279. placeHolder_256,
  11280. placeHolder_257,
  11281. placeHolder_258,
  11282. placeHolder_259,
  11283. Ohm,
  11284. placeHolder_261,
  11285. placeHolder_262,
  11286. placeHolder_263,
  11287. placeHolder_264,
  11288. placeHolder_265,
  11289. placeHolder_266,
  11290. placeHolder_267,
  11291. placeHolder_268,
  11292. placeHolder_269,
  11293. mmHgml,
  11294. }
  11295. enum QueryCourseSortEnum {
  11296. StartTime,
  11297. Recommended,
  11298. }
  11299. enum QueryCourseTypeEnum {
  11300. All,
  11301. LiveCourse,
  11302. VideoCourse,
  11303. }
  11304. enum ArrowOrientation {
  11305. Down,
  11306. Left,
  11307. Up,
  11308. Right,
  11309. }
  11310. class UserScanInfo {
  11311. String? scanCode;
  11312. ScanLoginSource scanLoginSource;
  11313. Platform platform;
  11314. DateTime? createTime;
  11315. DateTime? expireTime;
  11316. String? installVersion;
  11317. LoginResult? loginResult;
  11318. UserScanInfo({
  11319. this.scanCode,
  11320. this.scanLoginSource = ScanLoginSource.PC,
  11321. this.platform = Platform.Windows,
  11322. this.createTime,
  11323. this.expireTime,
  11324. this.installVersion,
  11325. this.loginResult,
  11326. });
  11327. factory UserScanInfo.fromJson(Map<String, dynamic> map) {
  11328. return UserScanInfo(
  11329. scanCode: map['ScanCode'],
  11330. scanLoginSource: ScanLoginSource.values.firstWhere((e) => e.index == map['ScanLoginSource']),
  11331. platform: Platform.values.firstWhere((e) => e.index == map['Platform']),
  11332. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  11333. expireTime: map['ExpireTime'] != null ? DateTime.parse(map['ExpireTime']) : null,
  11334. installVersion: map['InstallVersion'],
  11335. loginResult: map['LoginResult'] != null ? LoginResult.fromJson(map['LoginResult']) : null,
  11336. );
  11337. }
  11338. Map<String, dynamic> toJson() {
  11339. final map = Map<String, dynamic>();
  11340. if(scanCode != null) {
  11341. map['ScanCode'] = scanCode;
  11342. }
  11343. map['ScanLoginSource'] = scanLoginSource.index;
  11344. map['Platform'] = platform.index;
  11345. if(createTime != null) {
  11346. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  11347. }
  11348. if(expireTime != null) {
  11349. map['ExpireTime'] = JsonRpcUtils.dateFormat(expireTime!);
  11350. }
  11351. if(installVersion != null) {
  11352. map['InstallVersion'] = installVersion;
  11353. }
  11354. if(loginResult != null) {
  11355. map['LoginResult'] = loginResult;
  11356. }
  11357. return map;
  11358. }
  11359. }
  11360. class UserCMSDTO {
  11361. String? cMSData;
  11362. UserCMSDTO({
  11363. this.cMSData,
  11364. });
  11365. factory UserCMSDTO.fromJson(Map<String, dynamic> map) {
  11366. return UserCMSDTO(
  11367. cMSData: map['CMSData'],
  11368. );
  11369. }
  11370. Map<String, dynamic> toJson() {
  11371. final map = Map<String, dynamic>();
  11372. if(cMSData != null) {
  11373. map['CMSData'] = cMSData;
  11374. }
  11375. return map;
  11376. }
  11377. }
  11378. class UserPasswordDTO extends BaseDTO{
  11379. String? userCode;
  11380. String? userName;
  11381. String? secretPassword;
  11382. String? phone;
  11383. String? email;
  11384. String? nickName;
  11385. String? fullName;
  11386. String? headImageUrl;
  11387. String? organizationCode;
  11388. String? rootOrganizationCode;
  11389. List<String>? authorityGroups;
  11390. List<String>? bindDevices;
  11391. List<String>? bindDeviceOrganizations;
  11392. String? lastIP;
  11393. int logintimes;
  11394. UserInfoStateEnum userState;
  11395. List<String>? roleCodes;
  11396. List<String>? rankCodes;
  11397. List<String>? positionCodes;
  11398. ApplyStateEnum applyState;
  11399. List<String>? fieldList;
  11400. List<String>? deletePatientCodes;
  11401. bool isBatchExportDiagnoseData;
  11402. String? bindAssistantUserCode;
  11403. String? bindAssistantDoctorUserCode;
  11404. DateTime? passwordUpdateTime;
  11405. List<String>? passwordRecords;
  11406. String? signature;
  11407. String? language;
  11408. bool enableReportLabel;
  11409. String? bindEmergencyDeviceCode;
  11410. String? bindEmergencyExpertCode;
  11411. UserPasswordDTO({
  11412. this.userCode,
  11413. this.userName,
  11414. this.secretPassword,
  11415. this.phone,
  11416. this.email,
  11417. this.nickName,
  11418. this.fullName,
  11419. this.headImageUrl,
  11420. this.organizationCode,
  11421. this.rootOrganizationCode,
  11422. this.authorityGroups,
  11423. this.bindDevices,
  11424. this.bindDeviceOrganizations,
  11425. this.lastIP,
  11426. this.logintimes = 0,
  11427. this.userState = UserInfoStateEnum.Nonactivated,
  11428. this.roleCodes,
  11429. this.rankCodes,
  11430. this.positionCodes,
  11431. this.applyState = ApplyStateEnum.NotApply,
  11432. this.fieldList,
  11433. this.deletePatientCodes,
  11434. this.isBatchExportDiagnoseData = false,
  11435. this.bindAssistantUserCode,
  11436. this.bindAssistantDoctorUserCode,
  11437. this.passwordUpdateTime,
  11438. this.passwordRecords,
  11439. this.signature,
  11440. this.language,
  11441. this.enableReportLabel = false,
  11442. this.bindEmergencyDeviceCode,
  11443. this.bindEmergencyExpertCode,
  11444. DateTime? createTime,
  11445. DateTime? updateTime,
  11446. }) : super(
  11447. createTime: createTime,
  11448. updateTime: updateTime,
  11449. );
  11450. factory UserPasswordDTO.fromJson(Map<String, dynamic> map) {
  11451. return UserPasswordDTO(
  11452. userCode: map['UserCode'],
  11453. userName: map['UserName'],
  11454. secretPassword: map['SecretPassword'],
  11455. phone: map['Phone'],
  11456. email: map['Email'],
  11457. nickName: map['NickName'],
  11458. fullName: map['FullName'],
  11459. headImageUrl: map['HeadImageUrl'],
  11460. organizationCode: map['OrganizationCode'],
  11461. rootOrganizationCode: map['RootOrganizationCode'],
  11462. authorityGroups: map['AuthorityGroups']?.cast<String>().toList(),
  11463. bindDevices: map['BindDevices']?.cast<String>().toList(),
  11464. bindDeviceOrganizations: map['BindDeviceOrganizations']?.cast<String>().toList(),
  11465. lastIP: map['LastIP'],
  11466. logintimes: map['Logintimes'],
  11467. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  11468. roleCodes: map['RoleCodes']?.cast<String>().toList(),
  11469. rankCodes: map['RankCodes']?.cast<String>().toList(),
  11470. positionCodes: map['PositionCodes']?.cast<String>().toList(),
  11471. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  11472. fieldList: map['FieldList']?.cast<String>().toList(),
  11473. deletePatientCodes: map['DeletePatientCodes']?.cast<String>().toList(),
  11474. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  11475. bindAssistantUserCode: map['BindAssistantUserCode'],
  11476. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  11477. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  11478. passwordRecords: map['PasswordRecords']?.cast<String>().toList(),
  11479. signature: map['Signature'],
  11480. language: map['Language'],
  11481. enableReportLabel: map['EnableReportLabel'],
  11482. bindEmergencyDeviceCode: map['BindEmergencyDeviceCode'],
  11483. bindEmergencyExpertCode: map['BindEmergencyExpertCode'],
  11484. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  11485. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  11486. );
  11487. }
  11488. Map<String, dynamic> toJson() {
  11489. final map = super.toJson();
  11490. if(userCode != null)
  11491. map['UserCode'] = userCode;
  11492. if(userName != null)
  11493. map['UserName'] = userName;
  11494. if(secretPassword != null)
  11495. map['SecretPassword'] = secretPassword;
  11496. if(phone != null)
  11497. map['Phone'] = phone;
  11498. if(email != null)
  11499. map['Email'] = email;
  11500. if(nickName != null)
  11501. map['NickName'] = nickName;
  11502. if(fullName != null)
  11503. map['FullName'] = fullName;
  11504. if(headImageUrl != null)
  11505. map['HeadImageUrl'] = headImageUrl;
  11506. if(organizationCode != null)
  11507. map['OrganizationCode'] = organizationCode;
  11508. if(rootOrganizationCode != null)
  11509. map['RootOrganizationCode'] = rootOrganizationCode;
  11510. if(authorityGroups != null)
  11511. map['AuthorityGroups'] = authorityGroups;
  11512. if(bindDevices != null)
  11513. map['BindDevices'] = bindDevices;
  11514. if(bindDeviceOrganizations != null)
  11515. map['BindDeviceOrganizations'] = bindDeviceOrganizations;
  11516. if(lastIP != null)
  11517. map['LastIP'] = lastIP;
  11518. map['Logintimes'] = logintimes;
  11519. map['UserState'] = userState.index;
  11520. if(roleCodes != null)
  11521. map['RoleCodes'] = roleCodes;
  11522. if(rankCodes != null)
  11523. map['RankCodes'] = rankCodes;
  11524. if(positionCodes != null)
  11525. map['PositionCodes'] = positionCodes;
  11526. map['ApplyState'] = applyState.index;
  11527. if(fieldList != null)
  11528. map['FieldList'] = fieldList;
  11529. if(deletePatientCodes != null)
  11530. map['DeletePatientCodes'] = deletePatientCodes;
  11531. map['IsBatchExportDiagnoseData'] = isBatchExportDiagnoseData;
  11532. if(bindAssistantUserCode != null)
  11533. map['BindAssistantUserCode'] = bindAssistantUserCode;
  11534. if(bindAssistantDoctorUserCode != null)
  11535. map['BindAssistantDoctorUserCode'] = bindAssistantDoctorUserCode;
  11536. if(passwordUpdateTime != null)
  11537. map['PasswordUpdateTime'] = JsonRpcUtils.dateFormat(passwordUpdateTime!);
  11538. if(passwordRecords != null)
  11539. map['PasswordRecords'] = passwordRecords;
  11540. if(signature != null)
  11541. map['Signature'] = signature;
  11542. if(language != null)
  11543. map['Language'] = language;
  11544. map['EnableReportLabel'] = enableReportLabel;
  11545. if(bindEmergencyDeviceCode != null)
  11546. map['BindEmergencyDeviceCode'] = bindEmergencyDeviceCode;
  11547. if(bindEmergencyExpertCode != null)
  11548. map['BindEmergencyExpertCode'] = bindEmergencyExpertCode;
  11549. return map;
  11550. }
  11551. }
  11552. class UserTokenDTO {
  11553. String? token;
  11554. bool passwordExpired;
  11555. UserTokenDTO({
  11556. this.token,
  11557. this.passwordExpired = false,
  11558. });
  11559. factory UserTokenDTO.fromJson(Map<String, dynamic> map) {
  11560. return UserTokenDTO(
  11561. token: map['Token'],
  11562. passwordExpired: map['PasswordExpired'],
  11563. );
  11564. }
  11565. Map<String, dynamic> toJson() {
  11566. final map = Map<String, dynamic>();
  11567. if(token != null) {
  11568. map['Token'] = token;
  11569. }
  11570. map['PasswordExpired'] = passwordExpired;
  11571. return map;
  11572. }
  11573. }
  11574. class BaseFeatureItemBaseDTO<T> {
  11575. String? id;
  11576. String? label;
  11577. String? fatherCode;
  11578. String? uniqueCode;
  11579. List<BaseFeatureLanguageConfigDTO>? languageConfigs;
  11580. List<T>? children;
  11581. BaseFeatureItemBaseDTO({
  11582. this.id,
  11583. this.label,
  11584. this.fatherCode,
  11585. this.uniqueCode,
  11586. this.languageConfigs,
  11587. this.children,
  11588. });
  11589. factory BaseFeatureItemBaseDTO.fromJson(Map<String, dynamic> map) {
  11590. List<T> childrenList = [];
  11591. if (map['Children'] != null) {
  11592. childrenList.addAll(
  11593. (map['Children'] as List).map((e) => FJsonConvert.fromJson<T>(e)!));
  11594. }
  11595. return BaseFeatureItemBaseDTO(
  11596. id: map['Id'],
  11597. label: map['Label'],
  11598. fatherCode: map['FatherCode'],
  11599. uniqueCode: map['UniqueCode'],
  11600. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>BaseFeatureLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11601. children: childrenList,
  11602. );
  11603. }
  11604. Map<String, dynamic> toJson() {
  11605. final map = Map<String, dynamic>();
  11606. if(id != null) {
  11607. map['Id'] = id;
  11608. }
  11609. if(label != null) {
  11610. map['Label'] = label;
  11611. }
  11612. if(fatherCode != null) {
  11613. map['FatherCode'] = fatherCode;
  11614. }
  11615. if(uniqueCode != null) {
  11616. map['UniqueCode'] = uniqueCode;
  11617. }
  11618. if(languageConfigs != null) {
  11619. map['LanguageConfigs'] = languageConfigs;
  11620. }
  11621. if(children != null) {
  11622. map['Children'] = children;
  11623. }
  11624. return map;
  11625. }
  11626. }
  11627. class UserFeatureItemDTO extends BaseFeatureItemBaseDTO<UserFeatureItemDTO>{
  11628. UserFeatureItemDTO(
  11629. );
  11630. factory UserFeatureItemDTO.fromJson(Map<String, dynamic> map) {
  11631. return UserFeatureItemDTO(
  11632. );
  11633. }
  11634. Map<String, dynamic> toJson() {
  11635. final map = super.toJson();
  11636. return map;
  11637. }
  11638. }
  11639. class UserAuthorityGroupDTO extends BaseDTO{
  11640. String? userGroupCode;
  11641. String? description;
  11642. List<String>? adminCodes;
  11643. List<String>? features;
  11644. String? createAdmin;
  11645. UserAuthorityGroupDTO({
  11646. this.userGroupCode,
  11647. this.description,
  11648. this.adminCodes,
  11649. this.features,
  11650. this.createAdmin,
  11651. DateTime? createTime,
  11652. DateTime? updateTime,
  11653. }) : super(
  11654. createTime: createTime,
  11655. updateTime: updateTime,
  11656. );
  11657. factory UserAuthorityGroupDTO.fromJson(Map<String, dynamic> map) {
  11658. return UserAuthorityGroupDTO(
  11659. userGroupCode: map['UserGroupCode'],
  11660. description: map['Description'],
  11661. adminCodes: map['AdminCodes']?.cast<String>().toList(),
  11662. features: map['Features']?.cast<String>().toList(),
  11663. createAdmin: map['CreateAdmin'],
  11664. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  11665. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  11666. );
  11667. }
  11668. Map<String, dynamic> toJson() {
  11669. final map = super.toJson();
  11670. if(userGroupCode != null)
  11671. map['UserGroupCode'] = userGroupCode;
  11672. if(description != null)
  11673. map['Description'] = description;
  11674. if(adminCodes != null)
  11675. map['AdminCodes'] = adminCodes;
  11676. if(features != null)
  11677. map['Features'] = features;
  11678. if(createAdmin != null)
  11679. map['CreateAdmin'] = createAdmin;
  11680. return map;
  11681. }
  11682. }
  11683. class StorageInfoDTO extends BaseDTO{
  11684. String? token;
  11685. String? fileName;
  11686. String? storageRoute;
  11687. StorageInfoDTO({
  11688. this.token,
  11689. this.fileName,
  11690. this.storageRoute,
  11691. DateTime? createTime,
  11692. DateTime? updateTime,
  11693. }) : super(
  11694. createTime: createTime,
  11695. updateTime: updateTime,
  11696. );
  11697. factory StorageInfoDTO.fromJson(Map<String, dynamic> map) {
  11698. return StorageInfoDTO(
  11699. token: map['Token'],
  11700. fileName: map['FileName'],
  11701. storageRoute: map['StorageRoute'],
  11702. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  11703. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  11704. );
  11705. }
  11706. Map<String, dynamic> toJson() {
  11707. final map = super.toJson();
  11708. if(token != null)
  11709. map['Token'] = token;
  11710. if(fileName != null)
  11711. map['FileName'] = fileName;
  11712. if(storageRoute != null)
  11713. map['StorageRoute'] = storageRoute;
  11714. return map;
  11715. }
  11716. }
  11717. class StatisticDTO extends BaseDTO{
  11718. String? statisticCode;
  11719. String? name;
  11720. String? description;
  11721. String? intervalSetting;
  11722. bool enabled;
  11723. String? handleClass;
  11724. String? serverHost;
  11725. StatisticDTO({
  11726. this.statisticCode,
  11727. this.name,
  11728. this.description,
  11729. this.intervalSetting,
  11730. this.enabled = false,
  11731. this.handleClass,
  11732. this.serverHost,
  11733. DateTime? createTime,
  11734. DateTime? updateTime,
  11735. }) : super(
  11736. createTime: createTime,
  11737. updateTime: updateTime,
  11738. );
  11739. factory StatisticDTO.fromJson(Map<String, dynamic> map) {
  11740. return StatisticDTO(
  11741. statisticCode: map['StatisticCode'],
  11742. name: map['Name'],
  11743. description: map['Description'],
  11744. intervalSetting: map['IntervalSetting'],
  11745. enabled: map['Enabled'],
  11746. handleClass: map['HandleClass'],
  11747. serverHost: map['ServerHost'],
  11748. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  11749. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  11750. );
  11751. }
  11752. Map<String, dynamic> toJson() {
  11753. final map = super.toJson();
  11754. if(statisticCode != null)
  11755. map['StatisticCode'] = statisticCode;
  11756. if(name != null)
  11757. map['Name'] = name;
  11758. if(description != null)
  11759. map['Description'] = description;
  11760. if(intervalSetting != null)
  11761. map['IntervalSetting'] = intervalSetting;
  11762. map['Enabled'] = enabled;
  11763. if(handleClass != null)
  11764. map['HandleClass'] = handleClass;
  11765. if(serverHost != null)
  11766. map['ServerHost'] = serverHost;
  11767. return map;
  11768. }
  11769. }
  11770. class StatisticInfoDTO {
  11771. List<String>? xAxisDatas;
  11772. List<List<double>>? yAxisDatas;
  11773. List<StatisticInfoDTO>? children;
  11774. StatisticInfoDTO({
  11775. this.xAxisDatas,
  11776. this.yAxisDatas,
  11777. this.children,
  11778. });
  11779. factory StatisticInfoDTO.fromJson(Map<String, dynamic> map) {
  11780. return StatisticInfoDTO(
  11781. xAxisDatas: map['XAxisDatas']?.cast<String>().toList(),
  11782. yAxisDatas: map['YAxisDatas']?.cast<List<double>>().toList(),
  11783. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11784. );
  11785. }
  11786. Map<String, dynamic> toJson() {
  11787. final map = Map<String, dynamic>();
  11788. if(xAxisDatas != null) {
  11789. map['XAxisDatas'] = xAxisDatas;
  11790. }
  11791. if(yAxisDatas != null) {
  11792. map['YAxisDatas'] = yAxisDatas;
  11793. }
  11794. if(children != null) {
  11795. map['Children'] = children;
  11796. }
  11797. return map;
  11798. }
  11799. }
  11800. class StatisticRecordDTO extends BaseDTO{
  11801. String? statisticRecordCode;
  11802. String? statisticCode;
  11803. String? statisticName;
  11804. String? userCode;
  11805. DateTime? lastestUpdateTime;
  11806. DateTime? nextHandleTime;
  11807. List<String>? xAxisDatas;
  11808. List<List<double>>? yAxisDatas;
  11809. List<StatisticInfoDTO>? children;
  11810. StatisticRecordDTO({
  11811. this.statisticRecordCode,
  11812. this.statisticCode,
  11813. this.statisticName,
  11814. this.userCode,
  11815. this.lastestUpdateTime,
  11816. this.nextHandleTime,
  11817. this.xAxisDatas,
  11818. this.yAxisDatas,
  11819. this.children,
  11820. DateTime? createTime,
  11821. DateTime? updateTime,
  11822. }) : super(
  11823. createTime: createTime,
  11824. updateTime: updateTime,
  11825. );
  11826. factory StatisticRecordDTO.fromJson(Map<String, dynamic> map) {
  11827. return StatisticRecordDTO(
  11828. statisticRecordCode: map['StatisticRecordCode'],
  11829. statisticCode: map['StatisticCode'],
  11830. statisticName: map['StatisticName'],
  11831. userCode: map['UserCode'],
  11832. lastestUpdateTime: map['LastestUpdateTime'] != null ? DateTime.parse(map['LastestUpdateTime']) : null,
  11833. nextHandleTime: map['NextHandleTime'] != null ? DateTime.parse(map['NextHandleTime']) : null,
  11834. xAxisDatas: map['XAxisDatas']?.cast<String>().toList(),
  11835. yAxisDatas: map['YAxisDatas']?.cast<List<double>>().toList(),
  11836. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11837. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  11838. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  11839. );
  11840. }
  11841. Map<String, dynamic> toJson() {
  11842. final map = super.toJson();
  11843. if(statisticRecordCode != null)
  11844. map['StatisticRecordCode'] = statisticRecordCode;
  11845. if(statisticCode != null)
  11846. map['StatisticCode'] = statisticCode;
  11847. if(statisticName != null)
  11848. map['StatisticName'] = statisticName;
  11849. if(userCode != null)
  11850. map['UserCode'] = userCode;
  11851. if(lastestUpdateTime != null)
  11852. map['LastestUpdateTime'] = JsonRpcUtils.dateFormat(lastestUpdateTime!);
  11853. if(nextHandleTime != null)
  11854. map['NextHandleTime'] = JsonRpcUtils.dateFormat(nextHandleTime!);
  11855. if(xAxisDatas != null)
  11856. map['XAxisDatas'] = xAxisDatas;
  11857. if(yAxisDatas != null)
  11858. map['YAxisDatas'] = yAxisDatas;
  11859. if(children != null)
  11860. map['Children'] = children;
  11861. return map;
  11862. }
  11863. }
  11864. class ServerListResult extends BaseServerResult{
  11865. bool isDistributed;
  11866. List<ServerInfoDTO>? serverList;
  11867. ServerListResult({
  11868. this.isDistributed = false,
  11869. this.serverList,
  11870. int code = 0,
  11871. }) : super(
  11872. code: code,
  11873. );
  11874. factory ServerListResult.fromJson(Map<String, dynamic> map) {
  11875. return ServerListResult(
  11876. isDistributed: map['IsDistributed'],
  11877. serverList: map['ServerList'] != null ? (map['ServerList'] as List).map((e)=>ServerInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11878. code: map['Code'],
  11879. );
  11880. }
  11881. Map<String, dynamic> toJson() {
  11882. final map = super.toJson();
  11883. map['IsDistributed'] = isDistributed;
  11884. if(serverList != null)
  11885. map['ServerList'] = serverList;
  11886. return map;
  11887. }
  11888. }
  11889. class LoginSuccessResult extends BaseServerResult{
  11890. LoginSuccessResult({
  11891. int code = 0,
  11892. }) : super(
  11893. code: code,
  11894. );
  11895. factory LoginSuccessResult.fromJson(Map<String, dynamic> map) {
  11896. return LoginSuccessResult(
  11897. code: map['Code'],
  11898. );
  11899. }
  11900. Map<String, dynamic> toJson() {
  11901. final map = super.toJson();
  11902. return map;
  11903. }
  11904. }
  11905. class ScheduleDTO extends ClientScheduleDTO{
  11906. List<String>? userCodes;
  11907. String? code;
  11908. ScheduleDTO({
  11909. this.userCodes,
  11910. this.code,
  11911. String? title,
  11912. TransactionStatusEnum status = TransactionStatusEnum.Applied,
  11913. ScheduleTypeEnum scheduleType = ScheduleTypeEnum.Consultation,
  11914. DateTime? startTime,
  11915. DateTime? endTime,
  11916. String? relevanceCode,
  11917. }) : super(
  11918. title: title,
  11919. status: status,
  11920. scheduleType: scheduleType,
  11921. startTime: startTime,
  11922. endTime: endTime,
  11923. relevanceCode: relevanceCode,
  11924. );
  11925. factory ScheduleDTO.fromJson(Map<String, dynamic> map) {
  11926. return ScheduleDTO(
  11927. userCodes: map['UserCodes']?.cast<String>().toList(),
  11928. code: map['Code'],
  11929. title: map['Title'],
  11930. status: TransactionStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  11931. scheduleType: ScheduleTypeEnum.values.firstWhere((e) => e.index == map['ScheduleType']),
  11932. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  11933. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  11934. relevanceCode: map['RelevanceCode'],
  11935. );
  11936. }
  11937. Map<String, dynamic> toJson() {
  11938. final map = super.toJson();
  11939. if(userCodes != null)
  11940. map['UserCodes'] = userCodes;
  11941. if(code != null)
  11942. map['Code'] = code;
  11943. return map;
  11944. }
  11945. }
  11946. class LiveMemberDTO {
  11947. String? code;
  11948. LiveMemberEnum memberType;
  11949. String? name;
  11950. String? headImageToken;
  11951. LiveMemberStatus status;
  11952. bool muteOpened;
  11953. bool videoOpened;
  11954. LiveDataDTO? liveData;
  11955. bool isControllingParameter;
  11956. DateTime? firstJoinTime;
  11957. int sortLevel;
  11958. List<VideoDeviceInfoDTO>? videoDeviceInfos;
  11959. LoginSource loginSource;
  11960. String? inviterCode;
  11961. bool backgroundRole;
  11962. bool isOldPlatform;
  11963. bool supportRtc;
  11964. LiveMemberDTO({
  11965. this.code,
  11966. this.memberType = LiveMemberEnum.User,
  11967. this.name,
  11968. this.headImageToken,
  11969. this.status = LiveMemberStatus.Default,
  11970. this.muteOpened = false,
  11971. this.videoOpened = false,
  11972. this.liveData,
  11973. this.isControllingParameter = false,
  11974. this.firstJoinTime,
  11975. this.sortLevel = 0,
  11976. this.videoDeviceInfos,
  11977. this.loginSource = LoginSource.PC,
  11978. this.inviterCode,
  11979. this.backgroundRole = false,
  11980. this.isOldPlatform = false,
  11981. this.supportRtc = false,
  11982. });
  11983. factory LiveMemberDTO.fromJson(Map<String, dynamic> map) {
  11984. return LiveMemberDTO(
  11985. code: map['Code'],
  11986. memberType: LiveMemberEnum.values.firstWhere((e) => e.index == map['MemberType']),
  11987. name: map['Name'],
  11988. headImageToken: map['HeadImageToken'],
  11989. status: LiveMemberStatus.values.firstWhere((e) => e.index == map['Status']),
  11990. muteOpened: map['MuteOpened'],
  11991. videoOpened: map['VideoOpened'],
  11992. liveData: map['LiveData'] != null ? LiveDataDTO.fromJson(map['LiveData']) : null,
  11993. isControllingParameter: map['IsControllingParameter'],
  11994. firstJoinTime: map['FirstJoinTime'] != null ? DateTime.parse(map['FirstJoinTime']) : null,
  11995. sortLevel: map['SortLevel'],
  11996. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11997. loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
  11998. inviterCode: map['InviterCode'],
  11999. backgroundRole: map['BackgroundRole'],
  12000. isOldPlatform: map['IsOldPlatform'],
  12001. supportRtc: map['SupportRtc'],
  12002. );
  12003. }
  12004. Map<String, dynamic> toJson() {
  12005. final map = Map<String, dynamic>();
  12006. if(code != null) {
  12007. map['Code'] = code;
  12008. }
  12009. map['MemberType'] = memberType.index;
  12010. if(name != null) {
  12011. map['Name'] = name;
  12012. }
  12013. if(headImageToken != null) {
  12014. map['HeadImageToken'] = headImageToken;
  12015. }
  12016. map['Status'] = status.index;
  12017. map['MuteOpened'] = muteOpened;
  12018. map['VideoOpened'] = videoOpened;
  12019. if(liveData != null) {
  12020. map['LiveData'] = liveData;
  12021. }
  12022. map['IsControllingParameter'] = isControllingParameter;
  12023. if(firstJoinTime != null) {
  12024. map['FirstJoinTime'] = JsonRpcUtils.dateFormat(firstJoinTime!);
  12025. }
  12026. map['SortLevel'] = sortLevel;
  12027. if(videoDeviceInfos != null) {
  12028. map['VideoDeviceInfos'] = videoDeviceInfos;
  12029. }
  12030. map['LoginSource'] = loginSource.index;
  12031. if(inviterCode != null) {
  12032. map['InviterCode'] = inviterCode;
  12033. }
  12034. map['BackgroundRole'] = backgroundRole;
  12035. map['IsOldPlatform'] = isOldPlatform;
  12036. map['SupportRtc'] = supportRtc;
  12037. return map;
  12038. }
  12039. }
  12040. class LiveViewerDTO {
  12041. String? userCode;
  12042. String? name;
  12043. DateTime? lastReportTime;
  12044. LiveViewerDTO({
  12045. this.userCode,
  12046. this.name,
  12047. this.lastReportTime,
  12048. });
  12049. factory LiveViewerDTO.fromJson(Map<String, dynamic> map) {
  12050. return LiveViewerDTO(
  12051. userCode: map['UserCode'],
  12052. name: map['Name'],
  12053. lastReportTime: map['LastReportTime'] != null ? DateTime.parse(map['LastReportTime']) : null,
  12054. );
  12055. }
  12056. Map<String, dynamic> toJson() {
  12057. final map = Map<String, dynamic>();
  12058. if(userCode != null) {
  12059. map['UserCode'] = userCode;
  12060. }
  12061. if(name != null) {
  12062. map['Name'] = name;
  12063. }
  12064. if(lastReportTime != null) {
  12065. map['LastReportTime'] = JsonRpcUtils.dateFormat(lastReportTime!);
  12066. }
  12067. return map;
  12068. }
  12069. }
  12070. class LiveRoomInfoDTO {
  12071. String? roomId;
  12072. int roomNo;
  12073. String? msgQueueId;
  12074. List<LiveMemberDTO>? members;
  12075. List<LiveViewerDTO>? viewerInfos;
  12076. LiveMemberDTO? initiator;
  12077. List<LiveMemberDTO>? userInfos;
  12078. List<LiveMemberDTO>? deviceInfos;
  12079. List<LiveMemberDTO>? expertUserInfos;
  12080. List<LiveMemberDTO>? assistantsInfos;
  12081. LiveRoomStatus status;
  12082. String? name;
  12083. DateTime? liveTime;
  12084. int liveStatus;
  12085. List<InteractiveBoardDataDTO>? interactiveBoardDatas;
  12086. LiveRoomInfoDTO({
  12087. this.roomId,
  12088. this.roomNo = 0,
  12089. this.msgQueueId,
  12090. this.members,
  12091. this.viewerInfos,
  12092. this.initiator,
  12093. this.userInfos,
  12094. this.deviceInfos,
  12095. this.expertUserInfos,
  12096. this.assistantsInfos,
  12097. this.status = LiveRoomStatus.Default,
  12098. this.name,
  12099. this.liveTime,
  12100. this.liveStatus = 0,
  12101. this.interactiveBoardDatas,
  12102. });
  12103. factory LiveRoomInfoDTO.fromJson(Map<String, dynamic> map) {
  12104. return LiveRoomInfoDTO(
  12105. roomId: map['RoomId'],
  12106. roomNo: map['RoomNo'],
  12107. msgQueueId: map['MsgQueueId'],
  12108. members: map['Members'] != null ? (map['Members'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12109. viewerInfos: map['ViewerInfos'] != null ? (map['ViewerInfos'] as List).map((e)=>LiveViewerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12110. initiator: map['Initiator'] != null ? LiveMemberDTO.fromJson(map['Initiator']) : null,
  12111. userInfos: map['UserInfos'] != null ? (map['UserInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12112. deviceInfos: map['DeviceInfos'] != null ? (map['DeviceInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12113. expertUserInfos: map['ExpertUserInfos'] != null ? (map['ExpertUserInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12114. assistantsInfos: map['AssistantsInfos'] != null ? (map['AssistantsInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12115. status: LiveRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  12116. name: map['Name'],
  12117. liveTime: map['LiveTime'] != null ? DateTime.parse(map['LiveTime']) : null,
  12118. liveStatus: map['LiveStatus'],
  12119. interactiveBoardDatas: map['InteractiveBoardDatas'] != null ? (map['InteractiveBoardDatas'] as List).map((e)=>InteractiveBoardDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12120. );
  12121. }
  12122. Map<String, dynamic> toJson() {
  12123. final map = Map<String, dynamic>();
  12124. if(roomId != null) {
  12125. map['RoomId'] = roomId;
  12126. }
  12127. map['RoomNo'] = roomNo;
  12128. if(msgQueueId != null) {
  12129. map['MsgQueueId'] = msgQueueId;
  12130. }
  12131. if(members != null) {
  12132. map['Members'] = members;
  12133. }
  12134. if(viewerInfos != null) {
  12135. map['ViewerInfos'] = viewerInfos;
  12136. }
  12137. if(initiator != null) {
  12138. map['Initiator'] = initiator;
  12139. }
  12140. if(userInfos != null) {
  12141. map['UserInfos'] = userInfos;
  12142. }
  12143. if(deviceInfos != null) {
  12144. map['DeviceInfos'] = deviceInfos;
  12145. }
  12146. if(expertUserInfos != null) {
  12147. map['ExpertUserInfos'] = expertUserInfos;
  12148. }
  12149. if(assistantsInfos != null) {
  12150. map['AssistantsInfos'] = assistantsInfos;
  12151. }
  12152. map['Status'] = status.index;
  12153. if(name != null) {
  12154. map['Name'] = name;
  12155. }
  12156. if(liveTime != null) {
  12157. map['LiveTime'] = JsonRpcUtils.dateFormat(liveTime!);
  12158. }
  12159. map['LiveStatus'] = liveStatus;
  12160. if(interactiveBoardDatas != null) {
  12161. map['InteractiveBoardDatas'] = interactiveBoardDatas;
  12162. }
  12163. return map;
  12164. }
  12165. }
  12166. class RtcBoardDataDTO {
  12167. String? userCode;
  12168. String? boardData;
  12169. DateTime? interactiveTime;
  12170. RtcBoardDataDTO({
  12171. this.userCode,
  12172. this.boardData,
  12173. this.interactiveTime,
  12174. });
  12175. factory RtcBoardDataDTO.fromJson(Map<String, dynamic> map) {
  12176. return RtcBoardDataDTO(
  12177. userCode: map['UserCode'],
  12178. boardData: map['BoardData'],
  12179. interactiveTime: map['InteractiveTime'] != null ? DateTime.parse(map['InteractiveTime']) : null,
  12180. );
  12181. }
  12182. Map<String, dynamic> toJson() {
  12183. final map = Map<String, dynamic>();
  12184. if(userCode != null) {
  12185. map['UserCode'] = userCode;
  12186. }
  12187. if(boardData != null) {
  12188. map['BoardData'] = boardData;
  12189. }
  12190. if(interactiveTime != null) {
  12191. map['InteractiveTime'] = JsonRpcUtils.dateFormat(interactiveTime!);
  12192. }
  12193. return map;
  12194. }
  12195. }
  12196. class RtcLiveDataDTO {
  12197. String? pullUrl;
  12198. RtcLiveDataDTO({
  12199. this.pullUrl,
  12200. });
  12201. factory RtcLiveDataDTO.fromJson(Map<String, dynamic> map) {
  12202. return RtcLiveDataDTO(
  12203. pullUrl: map['PullUrl'],
  12204. );
  12205. }
  12206. Map<String, dynamic> toJson() {
  12207. final map = Map<String, dynamic>();
  12208. if(pullUrl != null) {
  12209. map['PullUrl'] = pullUrl;
  12210. }
  12211. return map;
  12212. }
  12213. }
  12214. class RtcMemberDTO {
  12215. String? id;
  12216. String? name;
  12217. String? avatarUrl;
  12218. LiveMemberEnum memberType;
  12219. LiveMemberStatus status;
  12220. bool muteOpened;
  12221. bool videoOpened;
  12222. bool isInitiator;
  12223. bool isControllingParameter;
  12224. RtcLiveDataDTO? rtcLiveData;
  12225. RtcMemberDTO({
  12226. this.id,
  12227. this.name,
  12228. this.avatarUrl,
  12229. this.memberType = LiveMemberEnum.User,
  12230. this.status = LiveMemberStatus.Default,
  12231. this.muteOpened = false,
  12232. this.videoOpened = false,
  12233. this.isInitiator = false,
  12234. this.isControllingParameter = false,
  12235. this.rtcLiveData,
  12236. });
  12237. factory RtcMemberDTO.fromJson(Map<String, dynamic> map) {
  12238. return RtcMemberDTO(
  12239. id: map['Id'],
  12240. name: map['Name'],
  12241. avatarUrl: map['AvatarUrl'],
  12242. memberType: LiveMemberEnum.values.firstWhere((e) => e.index == map['MemberType']),
  12243. status: LiveMemberStatus.values.firstWhere((e) => e.index == map['Status']),
  12244. muteOpened: map['MuteOpened'],
  12245. videoOpened: map['VideoOpened'],
  12246. isInitiator: map['IsInitiator'],
  12247. isControllingParameter: map['IsControllingParameter'],
  12248. rtcLiveData: map['RtcLiveData'] != null ? RtcLiveDataDTO.fromJson(map['RtcLiveData']) : null,
  12249. );
  12250. }
  12251. Map<String, dynamic> toJson() {
  12252. final map = Map<String, dynamic>();
  12253. if(id != null) {
  12254. map['Id'] = id;
  12255. }
  12256. if(name != null) {
  12257. map['Name'] = name;
  12258. }
  12259. if(avatarUrl != null) {
  12260. map['AvatarUrl'] = avatarUrl;
  12261. }
  12262. map['MemberType'] = memberType.index;
  12263. map['Status'] = status.index;
  12264. map['MuteOpened'] = muteOpened;
  12265. map['VideoOpened'] = videoOpened;
  12266. map['IsInitiator'] = isInitiator;
  12267. map['IsControllingParameter'] = isControllingParameter;
  12268. if(rtcLiveData != null) {
  12269. map['RtcLiveData'] = rtcLiveData;
  12270. }
  12271. return map;
  12272. }
  12273. }
  12274. class RtcViewerDTO {
  12275. String? userCode;
  12276. DateTime? lastReportTime;
  12277. RtcViewerDTO({
  12278. this.userCode,
  12279. this.lastReportTime,
  12280. });
  12281. factory RtcViewerDTO.fromJson(Map<String, dynamic> map) {
  12282. return RtcViewerDTO(
  12283. userCode: map['UserCode'],
  12284. lastReportTime: map['LastReportTime'] != null ? DateTime.parse(map['LastReportTime']) : null,
  12285. );
  12286. }
  12287. Map<String, dynamic> toJson() {
  12288. final map = Map<String, dynamic>();
  12289. if(userCode != null) {
  12290. map['UserCode'] = userCode;
  12291. }
  12292. if(lastReportTime != null) {
  12293. map['LastReportTime'] = JsonRpcUtils.dateFormat(lastReportTime!);
  12294. }
  12295. return map;
  12296. }
  12297. }
  12298. class RtcRoomDTO {
  12299. String? liveRoomCode;
  12300. String? name;
  12301. String? initiateCode;
  12302. int rtcRoomId;
  12303. int sdkAppId;
  12304. String? msgQueueId;
  12305. LiveRoomStatus status;
  12306. List<RtcMemberDTO>? members;
  12307. List<RtcViewerDTO>? viewers;
  12308. List<RtcBoardDataDTO>? interactiveBoardDatas;
  12309. RtcRoomDTO({
  12310. this.liveRoomCode,
  12311. this.name,
  12312. this.initiateCode,
  12313. this.rtcRoomId = 0,
  12314. this.sdkAppId = 0,
  12315. this.msgQueueId,
  12316. this.status = LiveRoomStatus.Default,
  12317. this.members,
  12318. this.viewers,
  12319. this.interactiveBoardDatas,
  12320. });
  12321. factory RtcRoomDTO.fromJson(Map<String, dynamic> map) {
  12322. return RtcRoomDTO(
  12323. liveRoomCode: map['LiveRoomCode'],
  12324. name: map['Name'],
  12325. initiateCode: map['InitiateCode'],
  12326. rtcRoomId: map['RtcRoomId'],
  12327. sdkAppId: map['SdkAppId'],
  12328. msgQueueId: map['MsgQueueId'],
  12329. status: LiveRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  12330. members: map['Members'] != null ? (map['Members'] as List).map((e)=>RtcMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12331. viewers: map['Viewers'] != null ? (map['Viewers'] as List).map((e)=>RtcViewerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12332. interactiveBoardDatas: map['InteractiveBoardDatas'] != null ? (map['InteractiveBoardDatas'] as List).map((e)=>RtcBoardDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12333. );
  12334. }
  12335. Map<String, dynamic> toJson() {
  12336. final map = Map<String, dynamic>();
  12337. if(liveRoomCode != null) {
  12338. map['LiveRoomCode'] = liveRoomCode;
  12339. }
  12340. if(name != null) {
  12341. map['Name'] = name;
  12342. }
  12343. if(initiateCode != null) {
  12344. map['InitiateCode'] = initiateCode;
  12345. }
  12346. map['RtcRoomId'] = rtcRoomId;
  12347. map['SdkAppId'] = sdkAppId;
  12348. if(msgQueueId != null) {
  12349. map['MsgQueueId'] = msgQueueId;
  12350. }
  12351. map['Status'] = status.index;
  12352. if(members != null) {
  12353. map['Members'] = members;
  12354. }
  12355. if(viewers != null) {
  12356. map['Viewers'] = viewers;
  12357. }
  12358. if(interactiveBoardDatas != null) {
  12359. map['InteractiveBoardDatas'] = interactiveBoardDatas;
  12360. }
  12361. return map;
  12362. }
  12363. }
  12364. class ReportElementDTO {
  12365. String? key;
  12366. String? tagId;
  12367. String? name;
  12368. String? aILanguage;
  12369. ReportElementDTO({
  12370. this.key,
  12371. this.tagId,
  12372. this.name,
  12373. this.aILanguage,
  12374. });
  12375. factory ReportElementDTO.fromJson(Map<String, dynamic> map) {
  12376. return ReportElementDTO(
  12377. key: map['Key'],
  12378. tagId: map['TagId'],
  12379. name: map['Name'],
  12380. aILanguage: map['AILanguage'],
  12381. );
  12382. }
  12383. Map<String, dynamic> toJson() {
  12384. final map = Map<String, dynamic>();
  12385. if(key != null) {
  12386. map['Key'] = key;
  12387. }
  12388. if(tagId != null) {
  12389. map['TagId'] = tagId;
  12390. }
  12391. if(name != null) {
  12392. map['Name'] = name;
  12393. }
  12394. if(aILanguage != null) {
  12395. map['AILanguage'] = aILanguage;
  12396. }
  12397. return map;
  12398. }
  12399. }
  12400. class ReportPosterDTO extends BaseDTO{
  12401. String? reportPosterCode;
  12402. String? receiverName;
  12403. String? contact;
  12404. String? phone;
  12405. String? targetUrl;
  12406. String? template;
  12407. ReportPosterTypeEnum posterType;
  12408. ReportFormatEnum reportFormat;
  12409. int postTimeout;
  12410. List<String>? deviceIds;
  12411. ReportPosterDTO({
  12412. this.reportPosterCode,
  12413. this.receiverName,
  12414. this.contact,
  12415. this.phone,
  12416. this.targetUrl,
  12417. this.template,
  12418. this.posterType = ReportPosterTypeEnum.Default,
  12419. this.reportFormat = ReportFormatEnum.Json,
  12420. this.postTimeout = 0,
  12421. this.deviceIds,
  12422. DateTime? createTime,
  12423. DateTime? updateTime,
  12424. }) : super(
  12425. createTime: createTime,
  12426. updateTime: updateTime,
  12427. );
  12428. factory ReportPosterDTO.fromJson(Map<String, dynamic> map) {
  12429. return ReportPosterDTO(
  12430. reportPosterCode: map['ReportPosterCode'],
  12431. receiverName: map['ReceiverName'],
  12432. contact: map['Contact'],
  12433. phone: map['Phone'],
  12434. targetUrl: map['TargetUrl'],
  12435. template: map['Template'],
  12436. posterType: ReportPosterTypeEnum.values.firstWhere((e) => e.index == map['PosterType']),
  12437. reportFormat: ReportFormatEnum.values.firstWhere((e) => e.index == map['ReportFormat']),
  12438. postTimeout: map['PostTimeout'],
  12439. deviceIds: map['DeviceIds']?.cast<String>().toList(),
  12440. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12441. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12442. );
  12443. }
  12444. Map<String, dynamic> toJson() {
  12445. final map = super.toJson();
  12446. if(reportPosterCode != null)
  12447. map['ReportPosterCode'] = reportPosterCode;
  12448. if(receiverName != null)
  12449. map['ReceiverName'] = receiverName;
  12450. if(contact != null)
  12451. map['Contact'] = contact;
  12452. if(phone != null)
  12453. map['Phone'] = phone;
  12454. if(targetUrl != null)
  12455. map['TargetUrl'] = targetUrl;
  12456. if(template != null)
  12457. map['Template'] = template;
  12458. map['PosterType'] = posterType.index;
  12459. map['ReportFormat'] = reportFormat.index;
  12460. map['PostTimeout'] = postTimeout;
  12461. if(deviceIds != null)
  12462. map['DeviceIds'] = deviceIds;
  12463. return map;
  12464. }
  12465. }
  12466. class ReportPushRecordDTO extends BaseDTO{
  12467. String? pushRecordCode;
  12468. String? patientId;
  12469. String? patientName;
  12470. String? poseterConfigId;
  12471. PushDataStateEnum state;
  12472. String? poseterConfigName;
  12473. String? reportId;
  12474. String? patientRecordId;
  12475. String? pushResultToken;
  12476. String? pushResponse;
  12477. ReportPushRecordDTO({
  12478. this.pushRecordCode,
  12479. this.patientId,
  12480. this.patientName,
  12481. this.poseterConfigId,
  12482. this.state = PushDataStateEnum.UnDo,
  12483. this.poseterConfigName,
  12484. this.reportId,
  12485. this.patientRecordId,
  12486. this.pushResultToken,
  12487. this.pushResponse,
  12488. DateTime? createTime,
  12489. DateTime? updateTime,
  12490. }) : super(
  12491. createTime: createTime,
  12492. updateTime: updateTime,
  12493. );
  12494. factory ReportPushRecordDTO.fromJson(Map<String, dynamic> map) {
  12495. return ReportPushRecordDTO(
  12496. pushRecordCode: map['PushRecordCode'],
  12497. patientId: map['PatientId'],
  12498. patientName: map['PatientName'],
  12499. poseterConfigId: map['PoseterConfigId'],
  12500. state: PushDataStateEnum.values.firstWhere((e) => e.index == map['State']),
  12501. poseterConfigName: map['PoseterConfigName'],
  12502. reportId: map['ReportId'],
  12503. patientRecordId: map['PatientRecordId'],
  12504. pushResultToken: map['PushResultToken'],
  12505. pushResponse: map['PushResponse'],
  12506. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12507. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12508. );
  12509. }
  12510. Map<String, dynamic> toJson() {
  12511. final map = super.toJson();
  12512. if(pushRecordCode != null)
  12513. map['PushRecordCode'] = pushRecordCode;
  12514. if(patientId != null)
  12515. map['PatientId'] = patientId;
  12516. if(patientName != null)
  12517. map['PatientName'] = patientName;
  12518. if(poseterConfigId != null)
  12519. map['PoseterConfigId'] = poseterConfigId;
  12520. map['State'] = state.index;
  12521. if(poseterConfigName != null)
  12522. map['PoseterConfigName'] = poseterConfigName;
  12523. if(reportId != null)
  12524. map['ReportId'] = reportId;
  12525. if(patientRecordId != null)
  12526. map['PatientRecordId'] = patientRecordId;
  12527. if(pushResultToken != null)
  12528. map['PushResultToken'] = pushResultToken;
  12529. if(pushResponse != null)
  12530. map['PushResponse'] = pushResponse;
  12531. return map;
  12532. }
  12533. }
  12534. class RegionItemDTO {
  12535. String? c;
  12536. String? g;
  12537. String? f;
  12538. String? n;
  12539. RegionItemDTO({
  12540. this.c,
  12541. this.g,
  12542. this.f,
  12543. this.n,
  12544. });
  12545. factory RegionItemDTO.fromJson(Map<String, dynamic> map) {
  12546. return RegionItemDTO(
  12547. c: map['c'],
  12548. g: map['g'],
  12549. f: map['f'],
  12550. n: map['n'],
  12551. );
  12552. }
  12553. Map<String, dynamic> toJson() {
  12554. final map = Map<String, dynamic>();
  12555. if(c != null) {
  12556. map['c'] = c;
  12557. }
  12558. if(g != null) {
  12559. map['g'] = g;
  12560. }
  12561. if(f != null) {
  12562. map['f'] = f;
  12563. }
  12564. if(n != null) {
  12565. map['n'] = n;
  12566. }
  12567. return map;
  12568. }
  12569. }
  12570. class RegionDataDTO {
  12571. String? lang;
  12572. List<RegionItemDTO>? datas;
  12573. RegionDataDTO({
  12574. this.lang,
  12575. this.datas,
  12576. });
  12577. factory RegionDataDTO.fromJson(Map<String, dynamic> map) {
  12578. return RegionDataDTO(
  12579. lang: map['lang'],
  12580. datas: map['datas'] != null ? (map['datas'] as List).map((e)=>RegionItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12581. );
  12582. }
  12583. Map<String, dynamic> toJson() {
  12584. final map = Map<String, dynamic>();
  12585. if(lang != null) {
  12586. map['lang'] = lang;
  12587. }
  12588. if(datas != null) {
  12589. map['datas'] = datas;
  12590. }
  12591. return map;
  12592. }
  12593. }
  12594. class ReferralRecordSettingDTO extends BaseDTO{
  12595. String? referralRecordSettingCode;
  12596. double limitHours;
  12597. ReferralRecordSettingDTO({
  12598. this.referralRecordSettingCode,
  12599. this.limitHours = 0,
  12600. DateTime? createTime,
  12601. DateTime? updateTime,
  12602. }) : super(
  12603. createTime: createTime,
  12604. updateTime: updateTime,
  12605. );
  12606. factory ReferralRecordSettingDTO.fromJson(Map<String, dynamic> map) {
  12607. return ReferralRecordSettingDTO(
  12608. referralRecordSettingCode: map['ReferralRecordSettingCode'],
  12609. limitHours: double.parse(map['LimitHours'].toString()),
  12610. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12611. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12612. );
  12613. }
  12614. Map<String, dynamic> toJson() {
  12615. final map = super.toJson();
  12616. if(referralRecordSettingCode != null)
  12617. map['ReferralRecordSettingCode'] = referralRecordSettingCode;
  12618. map['LimitHours'] = limitHours;
  12619. return map;
  12620. }
  12621. }
  12622. class CreatePaymentRecordResultDTO {
  12623. String? paymentRecordCode;
  12624. CreatePaymentRecordResultDTO({
  12625. this.paymentRecordCode,
  12626. });
  12627. factory CreatePaymentRecordResultDTO.fromJson(Map<String, dynamic> map) {
  12628. return CreatePaymentRecordResultDTO(
  12629. paymentRecordCode: map['PaymentRecordCode'],
  12630. );
  12631. }
  12632. Map<String, dynamic> toJson() {
  12633. final map = Map<String, dynamic>();
  12634. if(paymentRecordCode != null) {
  12635. map['PaymentRecordCode'] = paymentRecordCode;
  12636. }
  12637. return map;
  12638. }
  12639. }
  12640. class CreateProductDTO extends BaseDTO{
  12641. String? productCode;
  12642. CreateProductDTO({
  12643. this.productCode,
  12644. DateTime? createTime,
  12645. DateTime? updateTime,
  12646. }) : super(
  12647. createTime: createTime,
  12648. updateTime: updateTime,
  12649. );
  12650. factory CreateProductDTO.fromJson(Map<String, dynamic> map) {
  12651. return CreateProductDTO(
  12652. productCode: map['ProductCode'],
  12653. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12654. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12655. );
  12656. }
  12657. Map<String, dynamic> toJson() {
  12658. final map = super.toJson();
  12659. if(productCode != null)
  12660. map['ProductCode'] = productCode;
  12661. return map;
  12662. }
  12663. }
  12664. class PaymentRecordDTO extends BaseDTO{
  12665. String? orderCode;
  12666. double payAmount;
  12667. DateTime? payTime;
  12668. PayStatusEnum payStatus;
  12669. PayTypeEnum payType;
  12670. String? payReqContent;
  12671. String? payResContent;
  12672. PaymentRecordDTO({
  12673. this.orderCode,
  12674. this.payAmount = 0,
  12675. this.payTime,
  12676. this.payStatus = PayStatusEnum.NoPay,
  12677. this.payType = PayTypeEnum.Alipay_PAGE,
  12678. this.payReqContent,
  12679. this.payResContent,
  12680. DateTime? createTime,
  12681. DateTime? updateTime,
  12682. }) : super(
  12683. createTime: createTime,
  12684. updateTime: updateTime,
  12685. );
  12686. factory PaymentRecordDTO.fromJson(Map<String, dynamic> map) {
  12687. return PaymentRecordDTO(
  12688. orderCode: map['OrderCode'],
  12689. payAmount: double.parse(map['PayAmount'].toString()),
  12690. payTime: map['PayTime'] != null ? DateTime.parse(map['PayTime']) : null,
  12691. payStatus: PayStatusEnum.values.firstWhere((e) => e.index == map['PayStatus']),
  12692. payType: PayTypeEnum.values.firstWhere((e) => e.index == map['PayType']),
  12693. payReqContent: map['PayReqContent'],
  12694. payResContent: map['PayResContent'],
  12695. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12696. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12697. );
  12698. }
  12699. Map<String, dynamic> toJson() {
  12700. final map = super.toJson();
  12701. if(orderCode != null)
  12702. map['OrderCode'] = orderCode;
  12703. map['PayAmount'] = payAmount;
  12704. if(payTime != null)
  12705. map['PayTime'] = JsonRpcUtils.dateFormat(payTime!);
  12706. map['PayStatus'] = payStatus.index;
  12707. map['PayType'] = payType.index;
  12708. if(payReqContent != null)
  12709. map['PayReqContent'] = payReqContent;
  12710. if(payResContent != null)
  12711. map['PayResContent'] = payResContent;
  12712. return map;
  12713. }
  12714. }
  12715. class ProductDetailDTO extends BaseDTO{
  12716. String? code;
  12717. String? name;
  12718. String? headImage;
  12719. double price;
  12720. ProductStatusEnum status;
  12721. ProductTypeEnum productType;
  12722. String? belongerCode;
  12723. String? relationInfo;
  12724. ProductDetailDTO({
  12725. this.code,
  12726. this.name,
  12727. this.headImage,
  12728. this.price = 0,
  12729. this.status = ProductStatusEnum.SoldOut,
  12730. this.productType = ProductTypeEnum.Course,
  12731. this.belongerCode,
  12732. this.relationInfo,
  12733. DateTime? createTime,
  12734. DateTime? updateTime,
  12735. }) : super(
  12736. createTime: createTime,
  12737. updateTime: updateTime,
  12738. );
  12739. factory ProductDetailDTO.fromJson(Map<String, dynamic> map) {
  12740. return ProductDetailDTO(
  12741. code: map['Code'],
  12742. name: map['Name'],
  12743. headImage: map['HeadImage'],
  12744. price: double.parse(map['Price'].toString()),
  12745. status: ProductStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  12746. productType: ProductTypeEnum.values.firstWhere((e) => e.index == map['ProductType']),
  12747. belongerCode: map['BelongerCode'],
  12748. relationInfo: map['RelationInfo'],
  12749. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12750. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12751. );
  12752. }
  12753. Map<String, dynamic> toJson() {
  12754. final map = super.toJson();
  12755. if(code != null)
  12756. map['Code'] = code;
  12757. if(name != null)
  12758. map['Name'] = name;
  12759. if(headImage != null)
  12760. map['HeadImage'] = headImage;
  12761. map['Price'] = price;
  12762. map['Status'] = status.index;
  12763. map['ProductType'] = productType.index;
  12764. if(belongerCode != null)
  12765. map['BelongerCode'] = belongerCode;
  12766. if(relationInfo != null)
  12767. map['RelationInfo'] = relationInfo;
  12768. return map;
  12769. }
  12770. }
  12771. class UpdateOrderResultDTO {
  12772. bool isSuccess;
  12773. UpdateOrderResultDTO({
  12774. this.isSuccess = false,
  12775. });
  12776. factory UpdateOrderResultDTO.fromJson(Map<String, dynamic> map) {
  12777. return UpdateOrderResultDTO(
  12778. isSuccess: map['IsSuccess'],
  12779. );
  12780. }
  12781. Map<String, dynamic> toJson() {
  12782. final map = Map<String, dynamic>();
  12783. map['IsSuccess'] = isSuccess;
  12784. return map;
  12785. }
  12786. }
  12787. class UpdatePaymentRecordResultDTO {
  12788. bool isSuccess;
  12789. UpdatePaymentRecordResultDTO({
  12790. this.isSuccess = false,
  12791. });
  12792. factory UpdatePaymentRecordResultDTO.fromJson(Map<String, dynamic> map) {
  12793. return UpdatePaymentRecordResultDTO(
  12794. isSuccess: map['IsSuccess'],
  12795. );
  12796. }
  12797. Map<String, dynamic> toJson() {
  12798. final map = Map<String, dynamic>();
  12799. map['IsSuccess'] = isSuccess;
  12800. return map;
  12801. }
  12802. }
  12803. class UpdateProductDTO {
  12804. bool isSuccess;
  12805. UpdateProductDTO({
  12806. this.isSuccess = false,
  12807. });
  12808. factory UpdateProductDTO.fromJson(Map<String, dynamic> map) {
  12809. return UpdateProductDTO(
  12810. isSuccess: map['IsSuccess'],
  12811. );
  12812. }
  12813. Map<String, dynamic> toJson() {
  12814. final map = Map<String, dynamic>();
  12815. map['IsSuccess'] = isSuccess;
  12816. return map;
  12817. }
  12818. }
  12819. class StatisticDetailSettingDTO {
  12820. String? cMSTemplateCode;
  12821. StatisticDetailSettingDTO({
  12822. this.cMSTemplateCode,
  12823. });
  12824. factory StatisticDetailSettingDTO.fromJson(Map<String, dynamic> map) {
  12825. return StatisticDetailSettingDTO(
  12826. cMSTemplateCode: map['CMSTemplateCode'],
  12827. );
  12828. }
  12829. Map<String, dynamic> toJson() {
  12830. final map = Map<String, dynamic>();
  12831. if(cMSTemplateCode != null) {
  12832. map['CMSTemplateCode'] = cMSTemplateCode;
  12833. }
  12834. return map;
  12835. }
  12836. }
  12837. class ClientInfoDTO {
  12838. String? clientId;
  12839. String? name;
  12840. bool isReaded;
  12841. DateTime? deliveryTime;
  12842. DateTime? readTime;
  12843. ClientInfoDTO({
  12844. this.clientId,
  12845. this.name,
  12846. this.isReaded = false,
  12847. this.deliveryTime,
  12848. this.readTime,
  12849. });
  12850. factory ClientInfoDTO.fromJson(Map<String, dynamic> map) {
  12851. return ClientInfoDTO(
  12852. clientId: map['ClientId'],
  12853. name: map['Name'],
  12854. isReaded: map['IsReaded'],
  12855. deliveryTime: map['DeliveryTime'] != null ? DateTime.parse(map['DeliveryTime']) : null,
  12856. readTime: map['ReadTime'] != null ? DateTime.parse(map['ReadTime']) : null,
  12857. );
  12858. }
  12859. Map<String, dynamic> toJson() {
  12860. final map = Map<String, dynamic>();
  12861. if(clientId != null) {
  12862. map['ClientId'] = clientId;
  12863. }
  12864. if(name != null) {
  12865. map['Name'] = name;
  12866. }
  12867. map['IsReaded'] = isReaded;
  12868. if(deliveryTime != null) {
  12869. map['DeliveryTime'] = JsonRpcUtils.dateFormat(deliveryTime!);
  12870. }
  12871. if(readTime != null) {
  12872. map['ReadTime'] = JsonRpcUtils.dateFormat(readTime!);
  12873. }
  12874. return map;
  12875. }
  12876. }
  12877. class MessageInfoDTO extends BaseDTO{
  12878. String? code;
  12879. NotificationTypeEnum notificationType;
  12880. String? content;
  12881. String? serverHost;
  12882. DateTime? notifyTime;
  12883. ApplicantTypeEnum receiverType;
  12884. TransactionTypeEnum transactionType;
  12885. String? relevanceCode;
  12886. List<ClientInfoDTO>? clientInfos;
  12887. MessageInfoDTO({
  12888. this.code,
  12889. this.notificationType = NotificationTypeEnum.Unknown,
  12890. this.content,
  12891. this.serverHost,
  12892. this.notifyTime,
  12893. this.receiverType = ApplicantTypeEnum.Client,
  12894. this.transactionType = TransactionTypeEnum.Consultion,
  12895. this.relevanceCode,
  12896. this.clientInfos,
  12897. DateTime? createTime,
  12898. DateTime? updateTime,
  12899. }) : super(
  12900. createTime: createTime,
  12901. updateTime: updateTime,
  12902. );
  12903. factory MessageInfoDTO.fromJson(Map<String, dynamic> map) {
  12904. return MessageInfoDTO(
  12905. code: map['Code'],
  12906. notificationType: NotificationTypeEnum.values.firstWhere((e) => e.index == map['NotificationType']),
  12907. content: map['Content'],
  12908. serverHost: map['ServerHost'],
  12909. notifyTime: map['NotifyTime'] != null ? DateTime.parse(map['NotifyTime']) : null,
  12910. receiverType: ApplicantTypeEnum.values.firstWhere((e) => e.index == map['ReceiverType']),
  12911. transactionType: TransactionTypeEnum.values.firstWhere((e) => e.index == map['TransactionType']),
  12912. relevanceCode: map['RelevanceCode'],
  12913. clientInfos: map['ClientInfos'] != null ? (map['ClientInfos'] as List).map((e)=>ClientInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12914. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12915. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12916. );
  12917. }
  12918. Map<String, dynamic> toJson() {
  12919. final map = super.toJson();
  12920. if(code != null)
  12921. map['Code'] = code;
  12922. map['NotificationType'] = notificationType.index;
  12923. if(content != null)
  12924. map['Content'] = content;
  12925. if(serverHost != null)
  12926. map['ServerHost'] = serverHost;
  12927. if(notifyTime != null)
  12928. map['NotifyTime'] = JsonRpcUtils.dateFormat(notifyTime!);
  12929. map['ReceiverType'] = receiverType.index;
  12930. map['TransactionType'] = transactionType.index;
  12931. if(relevanceCode != null)
  12932. map['RelevanceCode'] = relevanceCode;
  12933. if(clientInfos != null)
  12934. map['ClientInfos'] = clientInfos;
  12935. return map;
  12936. }
  12937. }
  12938. class OutputUnitDTO {
  12939. int unit;
  12940. OutputUnitDTO({
  12941. this.unit = 0,
  12942. });
  12943. factory OutputUnitDTO.fromJson(Map<String, dynamic> map) {
  12944. return OutputUnitDTO(
  12945. unit: map['Unit'],
  12946. );
  12947. }
  12948. Map<String, dynamic> toJson() {
  12949. final map = Map<String, dynamic>();
  12950. map['Unit'] = unit;
  12951. return map;
  12952. }
  12953. }
  12954. class FormularMetaDTO {
  12955. String? name;
  12956. FormularMetaDTO({
  12957. this.name,
  12958. });
  12959. factory FormularMetaDTO.fromJson(Map<String, dynamic> map) {
  12960. return FormularMetaDTO(
  12961. name: map['Name'],
  12962. );
  12963. }
  12964. Map<String, dynamic> toJson() {
  12965. final map = Map<String, dynamic>();
  12966. if(name != null) {
  12967. map['Name'] = name;
  12968. }
  12969. return map;
  12970. }
  12971. }
  12972. class MeasuredValueDTO {
  12973. String? typeName;
  12974. String? name;
  12975. String? description;
  12976. bool worksheetAffinity;
  12977. String? briefDescription;
  12978. String? value;
  12979. Unit unit;
  12980. Unit targetUnit;
  12981. MeasuredValueDTO({
  12982. this.typeName,
  12983. this.name,
  12984. this.description,
  12985. this.worksheetAffinity = false,
  12986. this.briefDescription,
  12987. this.value,
  12988. this.unit = Unit.None,
  12989. this.targetUnit = Unit.None,
  12990. });
  12991. factory MeasuredValueDTO.fromJson(Map<String, dynamic> map) {
  12992. return MeasuredValueDTO(
  12993. typeName: map['TypeName'],
  12994. name: map['Name'],
  12995. description: map['Description'],
  12996. worksheetAffinity: map['WorksheetAffinity'],
  12997. briefDescription: map['BriefDescription'],
  12998. value: map['Value'],
  12999. unit: Unit.values.firstWhere((e) => e.index == map['Unit']),
  13000. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  13001. );
  13002. }
  13003. Map<String, dynamic> toJson() {
  13004. final map = Map<String, dynamic>();
  13005. if(typeName != null) {
  13006. map['TypeName'] = typeName;
  13007. }
  13008. if(name != null) {
  13009. map['Name'] = name;
  13010. }
  13011. if(description != null) {
  13012. map['Description'] = description;
  13013. }
  13014. map['WorksheetAffinity'] = worksheetAffinity;
  13015. if(briefDescription != null) {
  13016. map['BriefDescription'] = briefDescription;
  13017. }
  13018. if(value != null) {
  13019. map['Value'] = value;
  13020. }
  13021. map['Unit'] = unit.index;
  13022. map['TargetUnit'] = targetUnit.index;
  13023. return map;
  13024. }
  13025. }
  13026. class MeasuredFeatureDTO {
  13027. String? typeName;
  13028. String? creator;
  13029. String? guid;
  13030. bool showChildFeatures;
  13031. DateTime? timeStamp;
  13032. bool isAutoCalculated;
  13033. List<MeasuredValueDTO>? values;
  13034. List<MeasuredFeatureDTO>? childFeatures;
  13035. MeasuredFeatureDTO({
  13036. this.typeName,
  13037. this.creator,
  13038. this.guid,
  13039. this.showChildFeatures = false,
  13040. this.timeStamp,
  13041. this.isAutoCalculated = false,
  13042. this.values,
  13043. this.childFeatures,
  13044. });
  13045. factory MeasuredFeatureDTO.fromJson(Map<String, dynamic> map) {
  13046. return MeasuredFeatureDTO(
  13047. typeName: map['TypeName'],
  13048. creator: map['Creator'],
  13049. guid: map['Guid'],
  13050. showChildFeatures: map['ShowChildFeatures'],
  13051. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  13052. isAutoCalculated: map['IsAutoCalculated'],
  13053. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13054. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13055. );
  13056. }
  13057. Map<String, dynamic> toJson() {
  13058. final map = Map<String, dynamic>();
  13059. if(typeName != null) {
  13060. map['TypeName'] = typeName;
  13061. }
  13062. if(creator != null) {
  13063. map['Creator'] = creator;
  13064. }
  13065. if(guid != null) {
  13066. map['Guid'] = guid;
  13067. }
  13068. map['ShowChildFeatures'] = showChildFeatures;
  13069. if(timeStamp != null) {
  13070. map['TimeStamp'] = JsonRpcUtils.dateFormat(timeStamp!);
  13071. }
  13072. map['IsAutoCalculated'] = isAutoCalculated;
  13073. if(values != null) {
  13074. map['Values'] = values;
  13075. }
  13076. if(childFeatures != null) {
  13077. map['ChildFeatures'] = childFeatures;
  13078. }
  13079. return map;
  13080. }
  13081. }
  13082. class MeasureExportRecordDTO {
  13083. String? languageCode;
  13084. List<MeasureExportDetailDTO>? remedicalMeasuredInfoCodes;
  13085. String? exportFileToken;
  13086. DateTime? createTime;
  13087. DateTime? updateTime;
  13088. MeasureExportRecordDTO({
  13089. this.languageCode,
  13090. this.remedicalMeasuredInfoCodes,
  13091. this.exportFileToken,
  13092. this.createTime,
  13093. this.updateTime,
  13094. });
  13095. factory MeasureExportRecordDTO.fromJson(Map<String, dynamic> map) {
  13096. return MeasureExportRecordDTO(
  13097. languageCode: map['LanguageCode'],
  13098. remedicalMeasuredInfoCodes: map['RemedicalMeasuredInfoCodes'] != null ? (map['RemedicalMeasuredInfoCodes'] as List).map((e)=>MeasureExportDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13099. exportFileToken: map['ExportFileToken'],
  13100. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13101. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13102. );
  13103. }
  13104. Map<String, dynamic> toJson() {
  13105. final map = Map<String, dynamic>();
  13106. if(languageCode != null) {
  13107. map['LanguageCode'] = languageCode;
  13108. }
  13109. if(remedicalMeasuredInfoCodes != null) {
  13110. map['RemedicalMeasuredInfoCodes'] = remedicalMeasuredInfoCodes;
  13111. }
  13112. if(exportFileToken != null) {
  13113. map['ExportFileToken'] = exportFileToken;
  13114. }
  13115. if(createTime != null) {
  13116. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  13117. }
  13118. if(updateTime != null) {
  13119. map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
  13120. }
  13121. return map;
  13122. }
  13123. }
  13124. class MeasureItemDTO {
  13125. String? name;
  13126. String? description;
  13127. String? briefAnnotation;
  13128. String? typeName;
  13129. MeasureItemDTO({
  13130. this.name,
  13131. this.description,
  13132. this.briefAnnotation,
  13133. this.typeName,
  13134. });
  13135. factory MeasureItemDTO.fromJson(Map<String, dynamic> map) {
  13136. return MeasureItemDTO(
  13137. name: map['Name'],
  13138. description: map['Description'],
  13139. briefAnnotation: map['BriefAnnotation'],
  13140. typeName: map['TypeName'],
  13141. );
  13142. }
  13143. Map<String, dynamic> toJson() {
  13144. final map = Map<String, dynamic>();
  13145. if(name != null) {
  13146. map['Name'] = name;
  13147. }
  13148. if(description != null) {
  13149. map['Description'] = description;
  13150. }
  13151. if(briefAnnotation != null) {
  13152. map['BriefAnnotation'] = briefAnnotation;
  13153. }
  13154. if(typeName != null) {
  13155. map['TypeName'] = typeName;
  13156. }
  13157. return map;
  13158. }
  13159. }
  13160. class MeasureResultExcelDTO {
  13161. String? number;
  13162. String? measureItem;
  13163. String? measureResult;
  13164. MeasureResultExcelDTO({
  13165. this.number,
  13166. this.measureItem,
  13167. this.measureResult,
  13168. });
  13169. factory MeasureResultExcelDTO.fromJson(Map<String, dynamic> map) {
  13170. return MeasureResultExcelDTO(
  13171. number: map['Number'],
  13172. measureItem: map['MeasureItem'],
  13173. measureResult: map['MeasureResult'],
  13174. );
  13175. }
  13176. Map<String, dynamic> toJson() {
  13177. final map = Map<String, dynamic>();
  13178. if(number != null) {
  13179. map['Number'] = number;
  13180. }
  13181. if(measureItem != null) {
  13182. map['MeasureItem'] = measureItem;
  13183. }
  13184. if(measureResult != null) {
  13185. map['MeasureResult'] = measureResult;
  13186. }
  13187. return map;
  13188. }
  13189. }
  13190. class MultiMethodItemDTO extends MeasureItemDTO{
  13191. MultiMethodItemDTO({
  13192. String? name,
  13193. String? description,
  13194. String? briefAnnotation,
  13195. String? typeName,
  13196. }) : super(
  13197. name: name,
  13198. description: description,
  13199. briefAnnotation: briefAnnotation,
  13200. typeName: typeName,
  13201. );
  13202. factory MultiMethodItemDTO.fromJson(Map<String, dynamic> map) {
  13203. return MultiMethodItemDTO(
  13204. name: map['Name'],
  13205. description: map['Description'],
  13206. briefAnnotation: map['BriefAnnotation'],
  13207. typeName: map['TypeName'],
  13208. );
  13209. }
  13210. Map<String, dynamic> toJson() {
  13211. final map = super.toJson();
  13212. return map;
  13213. }
  13214. }
  13215. class UserDefinedMeasureApplicationDTO {
  13216. String? version;
  13217. String? id;
  13218. String? categoryName;
  13219. List<UserDefinedMeasureModeDTO>? modes;
  13220. UserDefinedMeasureApplicationDTO({
  13221. this.version,
  13222. this.id,
  13223. this.categoryName,
  13224. this.modes,
  13225. });
  13226. factory UserDefinedMeasureApplicationDTO.fromJson(Map<String, dynamic> map) {
  13227. return UserDefinedMeasureApplicationDTO(
  13228. version: map['Version'],
  13229. id: map['Id'],
  13230. categoryName: map['CategoryName'],
  13231. modes: map['Modes'] != null ? (map['Modes'] as List).map((e)=>UserDefinedMeasureModeDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13232. );
  13233. }
  13234. Map<String, dynamic> toJson() {
  13235. final map = Map<String, dynamic>();
  13236. if(version != null) {
  13237. map['Version'] = version;
  13238. }
  13239. if(id != null) {
  13240. map['Id'] = id;
  13241. }
  13242. if(categoryName != null) {
  13243. map['CategoryName'] = categoryName;
  13244. }
  13245. if(modes != null) {
  13246. map['Modes'] = modes;
  13247. }
  13248. return map;
  13249. }
  13250. }
  13251. class UserDefinedCommentDataDTO {
  13252. String? version;
  13253. String? languageCode;
  13254. String? categoryName;
  13255. String? applicationName;
  13256. List<CommentItemDTO>? commentItems;
  13257. UserDefinedCommentDataDTO({
  13258. this.version,
  13259. this.languageCode,
  13260. this.categoryName,
  13261. this.applicationName,
  13262. this.commentItems,
  13263. });
  13264. factory UserDefinedCommentDataDTO.fromJson(Map<String, dynamic> map) {
  13265. return UserDefinedCommentDataDTO(
  13266. version: map['Version'],
  13267. languageCode: map['LanguageCode'],
  13268. categoryName: map['CategoryName'],
  13269. applicationName: map['ApplicationName'],
  13270. commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>CommentItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13271. );
  13272. }
  13273. Map<String, dynamic> toJson() {
  13274. final map = Map<String, dynamic>();
  13275. if(version != null) {
  13276. map['Version'] = version;
  13277. }
  13278. if(languageCode != null) {
  13279. map['LanguageCode'] = languageCode;
  13280. }
  13281. if(categoryName != null) {
  13282. map['CategoryName'] = categoryName;
  13283. }
  13284. if(applicationName != null) {
  13285. map['ApplicationName'] = applicationName;
  13286. }
  13287. if(commentItems != null) {
  13288. map['CommentItems'] = commentItems;
  13289. }
  13290. return map;
  13291. }
  13292. }
  13293. class UserDefinedMeasureInfoDTO {
  13294. String? userId;
  13295. Map<String,String>? systemSettings;
  13296. List<UserDefinedMeasureApplicationDTO>? measureApplications;
  13297. List<UserDefinedCommentDataDTO>? commentItems;
  13298. UserDefinedMeasureInfoDTO({
  13299. this.userId,
  13300. this.systemSettings,
  13301. this.measureApplications,
  13302. this.commentItems,
  13303. });
  13304. factory UserDefinedMeasureInfoDTO.fromJson(Map<String, dynamic> map) {
  13305. return UserDefinedMeasureInfoDTO(
  13306. userId: map['UserId'],
  13307. systemSettings: map['SystemSettings']?.cast<String,String>(),
  13308. measureApplications: map['MeasureApplications'] != null ? (map['MeasureApplications'] as List).map((e)=>UserDefinedMeasureApplicationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13309. commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>UserDefinedCommentDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13310. );
  13311. }
  13312. Map<String, dynamic> toJson() {
  13313. final map = Map<String, dynamic>();
  13314. if(userId != null) {
  13315. map['UserId'] = userId;
  13316. }
  13317. if(systemSettings != null) {
  13318. map['SystemSettings'] = systemSettings;
  13319. }
  13320. if(measureApplications != null) {
  13321. map['MeasureApplications'] = measureApplications;
  13322. }
  13323. if(commentItems != null) {
  13324. map['CommentItems'] = commentItems;
  13325. }
  13326. return map;
  13327. }
  13328. }
  13329. class AbRatioDTO extends MultiMethodItemDTO{
  13330. AbRatioDTO({
  13331. String? name,
  13332. String? description,
  13333. String? briefAnnotation,
  13334. String? typeName,
  13335. }) : super(
  13336. name: name,
  13337. description: description,
  13338. briefAnnotation: briefAnnotation,
  13339. typeName: typeName,
  13340. );
  13341. factory AbRatioDTO.fromJson(Map<String, dynamic> map) {
  13342. return AbRatioDTO(
  13343. name: map['Name'],
  13344. description: map['Description'],
  13345. briefAnnotation: map['BriefAnnotation'],
  13346. typeName: map['TypeName'],
  13347. );
  13348. }
  13349. Map<String, dynamic> toJson() {
  13350. final map = super.toJson();
  13351. return map;
  13352. }
  13353. }
  13354. class AngleDTO extends MeasureItemDTO{
  13355. AngleDTO({
  13356. String? name,
  13357. String? description,
  13358. String? briefAnnotation,
  13359. String? typeName,
  13360. }) : super(
  13361. name: name,
  13362. description: description,
  13363. briefAnnotation: briefAnnotation,
  13364. typeName: typeName,
  13365. );
  13366. factory AngleDTO.fromJson(Map<String, dynamic> map) {
  13367. return AngleDTO(
  13368. name: map['Name'],
  13369. description: map['Description'],
  13370. briefAnnotation: map['BriefAnnotation'],
  13371. typeName: map['TypeName'],
  13372. );
  13373. }
  13374. Map<String, dynamic> toJson() {
  13375. final map = super.toJson();
  13376. return map;
  13377. }
  13378. }
  13379. class AreaPerimeterDTO extends MultiMethodItemDTO{
  13380. AreaPerimeterDTO({
  13381. String? name,
  13382. String? description,
  13383. String? briefAnnotation,
  13384. String? typeName,
  13385. }) : super(
  13386. name: name,
  13387. description: description,
  13388. briefAnnotation: briefAnnotation,
  13389. typeName: typeName,
  13390. );
  13391. factory AreaPerimeterDTO.fromJson(Map<String, dynamic> map) {
  13392. return AreaPerimeterDTO(
  13393. name: map['Name'],
  13394. description: map['Description'],
  13395. briefAnnotation: map['BriefAnnotation'],
  13396. typeName: map['TypeName'],
  13397. );
  13398. }
  13399. Map<String, dynamic> toJson() {
  13400. final map = super.toJson();
  13401. return map;
  13402. }
  13403. }
  13404. class CircleDTO extends MeasureItemDTO{
  13405. CircleDTO({
  13406. String? name,
  13407. String? description,
  13408. String? briefAnnotation,
  13409. String? typeName,
  13410. }) : super(
  13411. name: name,
  13412. description: description,
  13413. briefAnnotation: briefAnnotation,
  13414. typeName: typeName,
  13415. );
  13416. factory CircleDTO.fromJson(Map<String, dynamic> map) {
  13417. return CircleDTO(
  13418. name: map['Name'],
  13419. description: map['Description'],
  13420. briefAnnotation: map['BriefAnnotation'],
  13421. typeName: map['TypeName'],
  13422. );
  13423. }
  13424. Map<String, dynamic> toJson() {
  13425. final map = super.toJson();
  13426. return map;
  13427. }
  13428. }
  13429. class CurveLengthDTO extends MultiMethodItemDTO{
  13430. CurveLengthDTO({
  13431. String? name,
  13432. String? description,
  13433. String? briefAnnotation,
  13434. String? typeName,
  13435. }) : super(
  13436. name: name,
  13437. description: description,
  13438. briefAnnotation: briefAnnotation,
  13439. typeName: typeName,
  13440. );
  13441. factory CurveLengthDTO.fromJson(Map<String, dynamic> map) {
  13442. return CurveLengthDTO(
  13443. name: map['Name'],
  13444. description: map['Description'],
  13445. briefAnnotation: map['BriefAnnotation'],
  13446. typeName: map['TypeName'],
  13447. );
  13448. }
  13449. Map<String, dynamic> toJson() {
  13450. final map = super.toJson();
  13451. return map;
  13452. }
  13453. }
  13454. class EllipseDTO extends MeasureItemDTO{
  13455. EllipseDTO({
  13456. String? name,
  13457. String? description,
  13458. String? briefAnnotation,
  13459. String? typeName,
  13460. }) : super(
  13461. name: name,
  13462. description: description,
  13463. briefAnnotation: briefAnnotation,
  13464. typeName: typeName,
  13465. );
  13466. factory EllipseDTO.fromJson(Map<String, dynamic> map) {
  13467. return EllipseDTO(
  13468. name: map['Name'],
  13469. description: map['Description'],
  13470. briefAnnotation: map['BriefAnnotation'],
  13471. typeName: map['TypeName'],
  13472. );
  13473. }
  13474. Map<String, dynamic> toJson() {
  13475. final map = super.toJson();
  13476. return map;
  13477. }
  13478. }
  13479. class LocationDTO extends MeasureItemDTO{
  13480. LocationDTO({
  13481. String? name,
  13482. String? description,
  13483. String? briefAnnotation,
  13484. String? typeName,
  13485. }) : super(
  13486. name: name,
  13487. description: description,
  13488. briefAnnotation: briefAnnotation,
  13489. typeName: typeName,
  13490. );
  13491. factory LocationDTO.fromJson(Map<String, dynamic> map) {
  13492. return LocationDTO(
  13493. name: map['Name'],
  13494. description: map['Description'],
  13495. briefAnnotation: map['BriefAnnotation'],
  13496. typeName: map['TypeName'],
  13497. );
  13498. }
  13499. Map<String, dynamic> toJson() {
  13500. final map = super.toJson();
  13501. return map;
  13502. }
  13503. }
  13504. class LWHStraightLineDTO extends MeasureItemDTO{
  13505. LWHStraightLineDTO({
  13506. String? name,
  13507. String? description,
  13508. String? briefAnnotation,
  13509. String? typeName,
  13510. }) : super(
  13511. name: name,
  13512. description: description,
  13513. briefAnnotation: briefAnnotation,
  13514. typeName: typeName,
  13515. );
  13516. factory LWHStraightLineDTO.fromJson(Map<String, dynamic> map) {
  13517. return LWHStraightLineDTO(
  13518. name: map['Name'],
  13519. description: map['Description'],
  13520. briefAnnotation: map['BriefAnnotation'],
  13521. typeName: map['TypeName'],
  13522. );
  13523. }
  13524. Map<String, dynamic> toJson() {
  13525. final map = super.toJson();
  13526. return map;
  13527. }
  13528. }
  13529. class PolylineDTO extends MeasureItemDTO{
  13530. PolylineDTO({
  13531. String? name,
  13532. String? description,
  13533. String? briefAnnotation,
  13534. String? typeName,
  13535. }) : super(
  13536. name: name,
  13537. description: description,
  13538. briefAnnotation: briefAnnotation,
  13539. typeName: typeName,
  13540. );
  13541. factory PolylineDTO.fromJson(Map<String, dynamic> map) {
  13542. return PolylineDTO(
  13543. name: map['Name'],
  13544. description: map['Description'],
  13545. briefAnnotation: map['BriefAnnotation'],
  13546. typeName: map['TypeName'],
  13547. );
  13548. }
  13549. Map<String, dynamic> toJson() {
  13550. final map = super.toJson();
  13551. return map;
  13552. }
  13553. }
  13554. class RectDTO extends MeasureItemDTO{
  13555. RectDTO({
  13556. String? name,
  13557. String? description,
  13558. String? briefAnnotation,
  13559. String? typeName,
  13560. }) : super(
  13561. name: name,
  13562. description: description,
  13563. briefAnnotation: briefAnnotation,
  13564. typeName: typeName,
  13565. );
  13566. factory RectDTO.fromJson(Map<String, dynamic> map) {
  13567. return RectDTO(
  13568. name: map['Name'],
  13569. description: map['Description'],
  13570. briefAnnotation: map['BriefAnnotation'],
  13571. typeName: map['TypeName'],
  13572. );
  13573. }
  13574. Map<String, dynamic> toJson() {
  13575. final map = super.toJson();
  13576. return map;
  13577. }
  13578. }
  13579. class StenosisDTO extends MultiMethodItemDTO{
  13580. StenosisDTO({
  13581. String? name,
  13582. String? description,
  13583. String? briefAnnotation,
  13584. String? typeName,
  13585. }) : super(
  13586. name: name,
  13587. description: description,
  13588. briefAnnotation: briefAnnotation,
  13589. typeName: typeName,
  13590. );
  13591. factory StenosisDTO.fromJson(Map<String, dynamic> map) {
  13592. return StenosisDTO(
  13593. name: map['Name'],
  13594. description: map['Description'],
  13595. briefAnnotation: map['BriefAnnotation'],
  13596. typeName: map['TypeName'],
  13597. );
  13598. }
  13599. Map<String, dynamic> toJson() {
  13600. final map = super.toJson();
  13601. return map;
  13602. }
  13603. }
  13604. class StraightLineDTO extends MeasureItemDTO{
  13605. StraightLineDTO({
  13606. String? name,
  13607. String? description,
  13608. String? briefAnnotation,
  13609. String? typeName,
  13610. }) : super(
  13611. name: name,
  13612. description: description,
  13613. briefAnnotation: briefAnnotation,
  13614. typeName: typeName,
  13615. );
  13616. factory StraightLineDTO.fromJson(Map<String, dynamic> map) {
  13617. return StraightLineDTO(
  13618. name: map['Name'],
  13619. description: map['Description'],
  13620. briefAnnotation: map['BriefAnnotation'],
  13621. typeName: map['TypeName'],
  13622. );
  13623. }
  13624. Map<String, dynamic> toJson() {
  13625. final map = super.toJson();
  13626. return map;
  13627. }
  13628. }
  13629. class VolumeDTO extends MultiMethodItemDTO{
  13630. VolumeDTO({
  13631. String? name,
  13632. String? description,
  13633. String? briefAnnotation,
  13634. String? typeName,
  13635. }) : super(
  13636. name: name,
  13637. description: description,
  13638. briefAnnotation: briefAnnotation,
  13639. typeName: typeName,
  13640. );
  13641. factory VolumeDTO.fromJson(Map<String, dynamic> map) {
  13642. return VolumeDTO(
  13643. name: map['Name'],
  13644. description: map['Description'],
  13645. briefAnnotation: map['BriefAnnotation'],
  13646. typeName: map['TypeName'],
  13647. );
  13648. }
  13649. Map<String, dynamic> toJson() {
  13650. final map = super.toJson();
  13651. return map;
  13652. }
  13653. }
  13654. class CardiacAxisFeatureDTO extends MeasuredFeatureDTO{
  13655. String? logicalName;
  13656. String? logicalMode;
  13657. CardiacAxisFeatureDTO({
  13658. String? typeName,
  13659. this.logicalName,
  13660. this.logicalMode,
  13661. String? creator,
  13662. String? guid,
  13663. bool showChildFeatures = false,
  13664. DateTime? timeStamp,
  13665. bool isAutoCalculated = false,
  13666. List<MeasuredValueDTO>? values,
  13667. List<MeasuredFeatureDTO>? childFeatures,
  13668. }) : super(
  13669. typeName: typeName,
  13670. creator: creator,
  13671. guid: guid,
  13672. showChildFeatures: showChildFeatures,
  13673. timeStamp: timeStamp,
  13674. isAutoCalculated: isAutoCalculated,
  13675. values: values,
  13676. childFeatures: childFeatures,
  13677. );
  13678. factory CardiacAxisFeatureDTO.fromJson(Map<String, dynamic> map) {
  13679. return CardiacAxisFeatureDTO(
  13680. typeName: map['TypeName'],
  13681. logicalName: map['LogicalName'],
  13682. logicalMode: map['LogicalMode'],
  13683. creator: map['Creator'],
  13684. guid: map['Guid'],
  13685. showChildFeatures: map['ShowChildFeatures'],
  13686. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  13687. isAutoCalculated: map['IsAutoCalculated'],
  13688. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13689. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13690. );
  13691. }
  13692. Map<String, dynamic> toJson() {
  13693. final map = super.toJson();
  13694. if(logicalName != null)
  13695. map['LogicalName'] = logicalName;
  13696. if(logicalMode != null)
  13697. map['LogicalMode'] = logicalMode;
  13698. return map;
  13699. }
  13700. }
  13701. class CustomCalculatorFeatureDTO extends MeasuredFeatureDTO{
  13702. String? logicalName;
  13703. String? logicalMode;
  13704. CustomCalculatorFeatureDTO({
  13705. String? typeName,
  13706. this.logicalName,
  13707. this.logicalMode,
  13708. String? creator,
  13709. String? guid,
  13710. bool showChildFeatures = false,
  13711. DateTime? timeStamp,
  13712. bool isAutoCalculated = false,
  13713. List<MeasuredValueDTO>? values,
  13714. List<MeasuredFeatureDTO>? childFeatures,
  13715. }) : super(
  13716. typeName: typeName,
  13717. creator: creator,
  13718. guid: guid,
  13719. showChildFeatures: showChildFeatures,
  13720. timeStamp: timeStamp,
  13721. isAutoCalculated: isAutoCalculated,
  13722. values: values,
  13723. childFeatures: childFeatures,
  13724. );
  13725. factory CustomCalculatorFeatureDTO.fromJson(Map<String, dynamic> map) {
  13726. return CustomCalculatorFeatureDTO(
  13727. typeName: map['TypeName'],
  13728. logicalName: map['LogicalName'],
  13729. logicalMode: map['LogicalMode'],
  13730. creator: map['Creator'],
  13731. guid: map['Guid'],
  13732. showChildFeatures: map['ShowChildFeatures'],
  13733. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  13734. isAutoCalculated: map['IsAutoCalculated'],
  13735. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13736. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13737. );
  13738. }
  13739. Map<String, dynamic> toJson() {
  13740. final map = super.toJson();
  13741. if(logicalName != null)
  13742. map['LogicalName'] = logicalName;
  13743. if(logicalMode != null)
  13744. map['LogicalMode'] = logicalMode;
  13745. return map;
  13746. }
  13747. }
  13748. class GeometryFeatureDTO extends MeasuredFeatureDTO{
  13749. bool isVisible;
  13750. String? annotation;
  13751. String? briefAnnotation;
  13752. Unit xUnit;
  13753. Unit yUnit;
  13754. bool showAnnotation;
  13755. bool showCalliper;
  13756. List<PointDTO>? points;
  13757. GeometryFeatureDTO({
  13758. this.isVisible = false,
  13759. this.annotation,
  13760. this.briefAnnotation,
  13761. this.xUnit = Unit.None,
  13762. this.yUnit = Unit.None,
  13763. this.showAnnotation = false,
  13764. this.showCalliper = false,
  13765. this.points,
  13766. String? typeName,
  13767. String? creator,
  13768. String? guid,
  13769. bool showChildFeatures = false,
  13770. DateTime? timeStamp,
  13771. bool isAutoCalculated = false,
  13772. List<MeasuredValueDTO>? values,
  13773. List<MeasuredFeatureDTO>? childFeatures,
  13774. }) : super(
  13775. typeName: typeName,
  13776. creator: creator,
  13777. guid: guid,
  13778. showChildFeatures: showChildFeatures,
  13779. timeStamp: timeStamp,
  13780. isAutoCalculated: isAutoCalculated,
  13781. values: values,
  13782. childFeatures: childFeatures,
  13783. );
  13784. factory GeometryFeatureDTO.fromJson(Map<String, dynamic> map) {
  13785. return GeometryFeatureDTO(
  13786. isVisible: map['IsVisible'],
  13787. annotation: map['Annotation'],
  13788. briefAnnotation: map['BriefAnnotation'],
  13789. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  13790. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  13791. showAnnotation: map['ShowAnnotation'],
  13792. showCalliper: map['ShowCalliper'],
  13793. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13794. typeName: map['TypeName'],
  13795. creator: map['Creator'],
  13796. guid: map['Guid'],
  13797. showChildFeatures: map['ShowChildFeatures'],
  13798. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  13799. isAutoCalculated: map['IsAutoCalculated'],
  13800. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13801. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13802. );
  13803. }
  13804. Map<String, dynamic> toJson() {
  13805. final map = super.toJson();
  13806. map['IsVisible'] = isVisible;
  13807. if(annotation != null)
  13808. map['Annotation'] = annotation;
  13809. if(briefAnnotation != null)
  13810. map['BriefAnnotation'] = briefAnnotation;
  13811. map['XUnit'] = xUnit.index;
  13812. map['YUnit'] = yUnit.index;
  13813. map['ShowAnnotation'] = showAnnotation;
  13814. map['ShowCalliper'] = showCalliper;
  13815. if(points != null)
  13816. map['Points'] = points;
  13817. return map;
  13818. }
  13819. }
  13820. class CardiacCycleDTO {
  13821. int index;
  13822. PointDTO? systoleStart;
  13823. PointDTO? diastoleEnd;
  13824. PointDTO? peakSystolic;
  13825. PointDTO? minimumAbsoluteVelocity;
  13826. CardiacCycleDTO({
  13827. this.index = 0,
  13828. this.systoleStart,
  13829. this.diastoleEnd,
  13830. this.peakSystolic,
  13831. this.minimumAbsoluteVelocity,
  13832. });
  13833. factory CardiacCycleDTO.fromJson(Map<String, dynamic> map) {
  13834. return CardiacCycleDTO(
  13835. index: map['Index'],
  13836. systoleStart: map['SystoleStart'] != null ? PointDTO.fromJson(map['SystoleStart']) : null,
  13837. diastoleEnd: map['DiastoleEnd'] != null ? PointDTO.fromJson(map['DiastoleEnd']) : null,
  13838. peakSystolic: map['PeakSystolic'] != null ? PointDTO.fromJson(map['PeakSystolic']) : null,
  13839. minimumAbsoluteVelocity: map['MinimumAbsoluteVelocity'] != null ? PointDTO.fromJson(map['MinimumAbsoluteVelocity']) : null,
  13840. );
  13841. }
  13842. Map<String, dynamic> toJson() {
  13843. final map = Map<String, dynamic>();
  13844. map['Index'] = index;
  13845. if(systoleStart != null) {
  13846. map['SystoleStart'] = systoleStart;
  13847. }
  13848. if(diastoleEnd != null) {
  13849. map['DiastoleEnd'] = diastoleEnd;
  13850. }
  13851. if(peakSystolic != null) {
  13852. map['PeakSystolic'] = peakSystolic;
  13853. }
  13854. if(minimumAbsoluteVelocity != null) {
  13855. map['MinimumAbsoluteVelocity'] = minimumAbsoluteVelocity;
  13856. }
  13857. return map;
  13858. }
  13859. }
  13860. class GrowthPercentileDTO {
  13861. int oBTableCategory;
  13862. String? tableAuthor;
  13863. String? measureItem;
  13864. int gAinDays;
  13865. int status;
  13866. double value;
  13867. double tableDataLimitation;
  13868. double zScoreValue;
  13869. int zScoreStatus;
  13870. GrowthPercentileDTO({
  13871. this.oBTableCategory = 0,
  13872. this.tableAuthor,
  13873. this.measureItem,
  13874. this.gAinDays = 0,
  13875. this.status = 0,
  13876. this.value = 0,
  13877. this.tableDataLimitation = 0,
  13878. this.zScoreValue = 0,
  13879. this.zScoreStatus = 0,
  13880. });
  13881. factory GrowthPercentileDTO.fromJson(Map<String, dynamic> map) {
  13882. return GrowthPercentileDTO(
  13883. oBTableCategory: map['OBTableCategory'],
  13884. tableAuthor: map['TableAuthor'],
  13885. measureItem: map['MeasureItem'],
  13886. gAinDays: map['GAinDays'],
  13887. status: map['Status'],
  13888. value: double.parse(map['Value'].toString()),
  13889. tableDataLimitation: double.parse(map['TableDataLimitation'].toString()),
  13890. zScoreValue: double.parse(map['ZScoreValue'].toString()),
  13891. zScoreStatus: map['ZScoreStatus'],
  13892. );
  13893. }
  13894. Map<String, dynamic> toJson() {
  13895. final map = Map<String, dynamic>();
  13896. map['OBTableCategory'] = oBTableCategory;
  13897. if(tableAuthor != null) {
  13898. map['TableAuthor'] = tableAuthor;
  13899. }
  13900. if(measureItem != null) {
  13901. map['MeasureItem'] = measureItem;
  13902. }
  13903. map['GAinDays'] = gAinDays;
  13904. map['Status'] = status;
  13905. map['Value'] = value;
  13906. map['TableDataLimitation'] = tableDataLimitation;
  13907. map['ZScoreValue'] = zScoreValue;
  13908. map['ZScoreStatus'] = zScoreStatus;
  13909. return map;
  13910. }
  13911. }
  13912. class GrowthAgeDTO {
  13913. int oBTableCategory;
  13914. String? tableAuthor;
  13915. String? measureItem;
  13916. int days;
  13917. int status;
  13918. int minDays;
  13919. int maxDays;
  13920. GrowthAgeDTO({
  13921. this.oBTableCategory = 0,
  13922. this.tableAuthor,
  13923. this.measureItem,
  13924. this.days = 0,
  13925. this.status = 0,
  13926. this.minDays = 0,
  13927. this.maxDays = 0,
  13928. });
  13929. factory GrowthAgeDTO.fromJson(Map<String, dynamic> map) {
  13930. return GrowthAgeDTO(
  13931. oBTableCategory: map['OBTableCategory'],
  13932. tableAuthor: map['TableAuthor'],
  13933. measureItem: map['MeasureItem'],
  13934. days: map['Days'],
  13935. status: map['Status'],
  13936. minDays: map['MinDays'],
  13937. maxDays: map['MaxDays'],
  13938. );
  13939. }
  13940. Map<String, dynamic> toJson() {
  13941. final map = Map<String, dynamic>();
  13942. map['OBTableCategory'] = oBTableCategory;
  13943. if(tableAuthor != null) {
  13944. map['TableAuthor'] = tableAuthor;
  13945. }
  13946. if(measureItem != null) {
  13947. map['MeasureItem'] = measureItem;
  13948. }
  13949. map['Days'] = days;
  13950. map['Status'] = status;
  13951. map['MinDays'] = minDays;
  13952. map['MaxDays'] = maxDays;
  13953. return map;
  13954. }
  13955. }
  13956. class FetalGrowthIndexDTO {
  13957. GrowthPercentileDTO? percentile;
  13958. GrowthAgeDTO? growthAge;
  13959. DateTime? estimateDueDate;
  13960. FetalGrowthIndexDTO({
  13961. this.percentile,
  13962. this.growthAge,
  13963. this.estimateDueDate,
  13964. });
  13965. factory FetalGrowthIndexDTO.fromJson(Map<String, dynamic> map) {
  13966. return FetalGrowthIndexDTO(
  13967. percentile: map['Percentile'] != null ? GrowthPercentileDTO.fromJson(map['Percentile']) : null,
  13968. growthAge: map['GrowthAge'] != null ? GrowthAgeDTO.fromJson(map['GrowthAge']) : null,
  13969. estimateDueDate: map['EstimateDueDate'] != null ? DateTime.parse(map['EstimateDueDate']) : null,
  13970. );
  13971. }
  13972. Map<String, dynamic> toJson() {
  13973. final map = Map<String, dynamic>();
  13974. if(percentile != null) {
  13975. map['Percentile'] = percentile;
  13976. }
  13977. if(growthAge != null) {
  13978. map['GrowthAge'] = growthAge;
  13979. }
  13980. if(estimateDueDate != null) {
  13981. map['EstimateDueDate'] = JsonRpcUtils.dateFormat(estimateDueDate!);
  13982. }
  13983. return map;
  13984. }
  13985. }
  13986. class FloatValueDTO extends MeasuredValueDTO{
  13987. FetalGrowthIndexDTO? fetalGrowthIndex;
  13988. String? typeName;
  13989. String? name;
  13990. String? description;
  13991. bool worksheetAffinity;
  13992. String? briefDescription;
  13993. String? value;
  13994. Unit unit;
  13995. Unit targetUnit;
  13996. FloatValueDTO({
  13997. this.fetalGrowthIndex,
  13998. this.typeName,
  13999. this.name,
  14000. this.description,
  14001. this.worksheetAffinity = false,
  14002. this.briefDescription,
  14003. this.value,
  14004. this.unit = Unit.None,
  14005. this.targetUnit = Unit.None,
  14006. });
  14007. factory FloatValueDTO.fromJson(Map<String, dynamic> map) {
  14008. return FloatValueDTO(
  14009. fetalGrowthIndex: map['FetalGrowthIndex'] != null ? FetalGrowthIndexDTO.fromJson(map['FetalGrowthIndex']) : null,
  14010. typeName: map['TypeName'],
  14011. name: map['Name'],
  14012. description: map['Description'],
  14013. worksheetAffinity: map['WorksheetAffinity'],
  14014. briefDescription: map['BriefDescription'],
  14015. value: map['Value'],
  14016. unit: Unit.values.firstWhere((e) => e.index == map['Unit']),
  14017. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  14018. );
  14019. }
  14020. Map<String, dynamic> toJson() {
  14021. final map = super.toJson();
  14022. return map;
  14023. }
  14024. }
  14025. class DopplerTraceFeatureDTO extends GeometryFeatureDTO{
  14026. int avgHeartCycle;
  14027. ASETypeEnum traceType;
  14028. List<PointDTO>? maxTraceLine;
  14029. List<CardiacCycleDTO>? cardiacCycles;
  14030. List<FloatValueDTO>? autoMeasureValues;
  14031. DopplerTraceFeatureDTO({
  14032. String? typeName,
  14033. this.avgHeartCycle = 0,
  14034. this.traceType = ASETypeEnum.Off,
  14035. this.maxTraceLine,
  14036. this.cardiacCycles,
  14037. this.autoMeasureValues,
  14038. bool isVisible = false,
  14039. String? annotation,
  14040. String? briefAnnotation,
  14041. Unit xUnit = Unit.None,
  14042. Unit yUnit = Unit.None,
  14043. bool showAnnotation = false,
  14044. bool showCalliper = false,
  14045. List<PointDTO>? points,
  14046. String? creator,
  14047. String? guid,
  14048. bool showChildFeatures = false,
  14049. DateTime? timeStamp,
  14050. bool isAutoCalculated = false,
  14051. List<MeasuredValueDTO>? values,
  14052. List<MeasuredFeatureDTO>? childFeatures,
  14053. }) : super(
  14054. isVisible: isVisible,
  14055. annotation: annotation,
  14056. briefAnnotation: briefAnnotation,
  14057. xUnit: xUnit,
  14058. yUnit: yUnit,
  14059. showAnnotation: showAnnotation,
  14060. showCalliper: showCalliper,
  14061. points: points,
  14062. typeName: typeName,
  14063. creator: creator,
  14064. guid: guid,
  14065. showChildFeatures: showChildFeatures,
  14066. timeStamp: timeStamp,
  14067. isAutoCalculated: isAutoCalculated,
  14068. values: values,
  14069. childFeatures: childFeatures,
  14070. );
  14071. factory DopplerTraceFeatureDTO.fromJson(Map<String, dynamic> map) {
  14072. return DopplerTraceFeatureDTO(
  14073. typeName: map['TypeName'],
  14074. avgHeartCycle: map['AvgHeartCycle'],
  14075. traceType: ASETypeEnum.values.firstWhere((e) => e.index == map['TraceType']),
  14076. maxTraceLine: map['MaxTraceLine'] != null ? (map['MaxTraceLine'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14077. cardiacCycles: map['CardiacCycles'] != null ? (map['CardiacCycles'] as List).map((e)=>CardiacCycleDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14078. autoMeasureValues: map['AutoMeasureValues'] != null ? (map['AutoMeasureValues'] as List).map((e)=>FloatValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14079. isVisible: map['IsVisible'],
  14080. annotation: map['Annotation'],
  14081. briefAnnotation: map['BriefAnnotation'],
  14082. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  14083. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  14084. showAnnotation: map['ShowAnnotation'],
  14085. showCalliper: map['ShowCalliper'],
  14086. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14087. creator: map['Creator'],
  14088. guid: map['Guid'],
  14089. showChildFeatures: map['ShowChildFeatures'],
  14090. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14091. isAutoCalculated: map['IsAutoCalculated'],
  14092. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14093. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14094. );
  14095. }
  14096. Map<String, dynamic> toJson() {
  14097. final map = super.toJson();
  14098. map['AvgHeartCycle'] = avgHeartCycle;
  14099. map['TraceType'] = traceType.index;
  14100. if(maxTraceLine != null)
  14101. map['MaxTraceLine'] = maxTraceLine;
  14102. if(cardiacCycles != null)
  14103. map['CardiacCycles'] = cardiacCycles;
  14104. if(autoMeasureValues != null)
  14105. map['AutoMeasureValues'] = autoMeasureValues;
  14106. return map;
  14107. }
  14108. }
  14109. class EllipseFeatureDTO extends GeometryFeatureDTO{
  14110. double angle;
  14111. EllipseFeatureDTO({
  14112. String? typeName,
  14113. this.angle = 0,
  14114. bool isVisible = false,
  14115. String? annotation,
  14116. String? briefAnnotation,
  14117. Unit xUnit = Unit.None,
  14118. Unit yUnit = Unit.None,
  14119. bool showAnnotation = false,
  14120. bool showCalliper = false,
  14121. List<PointDTO>? points,
  14122. String? creator,
  14123. String? guid,
  14124. bool showChildFeatures = false,
  14125. DateTime? timeStamp,
  14126. bool isAutoCalculated = false,
  14127. List<MeasuredValueDTO>? values,
  14128. List<MeasuredFeatureDTO>? childFeatures,
  14129. }) : super(
  14130. isVisible: isVisible,
  14131. annotation: annotation,
  14132. briefAnnotation: briefAnnotation,
  14133. xUnit: xUnit,
  14134. yUnit: yUnit,
  14135. showAnnotation: showAnnotation,
  14136. showCalliper: showCalliper,
  14137. points: points,
  14138. typeName: typeName,
  14139. creator: creator,
  14140. guid: guid,
  14141. showChildFeatures: showChildFeatures,
  14142. timeStamp: timeStamp,
  14143. isAutoCalculated: isAutoCalculated,
  14144. values: values,
  14145. childFeatures: childFeatures,
  14146. );
  14147. factory EllipseFeatureDTO.fromJson(Map<String, dynamic> map) {
  14148. return EllipseFeatureDTO(
  14149. typeName: map['TypeName'],
  14150. angle: double.parse(map['Angle'].toString()),
  14151. isVisible: map['IsVisible'],
  14152. annotation: map['Annotation'],
  14153. briefAnnotation: map['BriefAnnotation'],
  14154. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  14155. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  14156. showAnnotation: map['ShowAnnotation'],
  14157. showCalliper: map['ShowCalliper'],
  14158. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14159. creator: map['Creator'],
  14160. guid: map['Guid'],
  14161. showChildFeatures: map['ShowChildFeatures'],
  14162. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14163. isAutoCalculated: map['IsAutoCalculated'],
  14164. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14165. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14166. );
  14167. }
  14168. Map<String, dynamic> toJson() {
  14169. final map = super.toJson();
  14170. map['Angle'] = angle;
  14171. return map;
  14172. }
  14173. }
  14174. class AutoMeasureGeometryDTO {
  14175. int index;
  14176. List<PointDTO>? points;
  14177. AutoMeasureGeometryDTO({
  14178. this.index = 0,
  14179. this.points,
  14180. });
  14181. factory AutoMeasureGeometryDTO.fromJson(Map<String, dynamic> map) {
  14182. return AutoMeasureGeometryDTO(
  14183. index: map['Index'],
  14184. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14185. );
  14186. }
  14187. Map<String, dynamic> toJson() {
  14188. final map = Map<String, dynamic>();
  14189. map['Index'] = index;
  14190. if(points != null) {
  14191. map['Points'] = points;
  14192. }
  14193. return map;
  14194. }
  14195. }
  14196. class FollicleShapeFeatureDTO extends GeometryFeatureDTO{
  14197. List<AutoMeasureGeometryDTO>? geometries;
  14198. FollicleShapeFeatureDTO({
  14199. String? typeName,
  14200. this.geometries,
  14201. bool isVisible = false,
  14202. String? annotation,
  14203. String? briefAnnotation,
  14204. Unit xUnit = Unit.None,
  14205. Unit yUnit = Unit.None,
  14206. bool showAnnotation = false,
  14207. bool showCalliper = false,
  14208. List<PointDTO>? points,
  14209. String? creator,
  14210. String? guid,
  14211. bool showChildFeatures = false,
  14212. DateTime? timeStamp,
  14213. bool isAutoCalculated = false,
  14214. List<MeasuredValueDTO>? values,
  14215. List<MeasuredFeatureDTO>? childFeatures,
  14216. }) : super(
  14217. isVisible: isVisible,
  14218. annotation: annotation,
  14219. briefAnnotation: briefAnnotation,
  14220. xUnit: xUnit,
  14221. yUnit: yUnit,
  14222. showAnnotation: showAnnotation,
  14223. showCalliper: showCalliper,
  14224. points: points,
  14225. typeName: typeName,
  14226. creator: creator,
  14227. guid: guid,
  14228. showChildFeatures: showChildFeatures,
  14229. timeStamp: timeStamp,
  14230. isAutoCalculated: isAutoCalculated,
  14231. values: values,
  14232. childFeatures: childFeatures,
  14233. );
  14234. factory FollicleShapeFeatureDTO.fromJson(Map<String, dynamic> map) {
  14235. return FollicleShapeFeatureDTO(
  14236. typeName: map['TypeName'],
  14237. geometries: map['Geometries'] != null ? (map['Geometries'] as List).map((e)=>AutoMeasureGeometryDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14238. isVisible: map['IsVisible'],
  14239. annotation: map['Annotation'],
  14240. briefAnnotation: map['BriefAnnotation'],
  14241. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  14242. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  14243. showAnnotation: map['ShowAnnotation'],
  14244. showCalliper: map['ShowCalliper'],
  14245. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14246. creator: map['Creator'],
  14247. guid: map['Guid'],
  14248. showChildFeatures: map['ShowChildFeatures'],
  14249. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14250. isAutoCalculated: map['IsAutoCalculated'],
  14251. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14252. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14253. );
  14254. }
  14255. Map<String, dynamic> toJson() {
  14256. final map = super.toJson();
  14257. if(geometries != null)
  14258. map['Geometries'] = geometries;
  14259. return map;
  14260. }
  14261. }
  14262. class LocationFeatureDTO extends GeometryFeatureDTO{
  14263. LocationFeatureDTO({
  14264. String? typeName,
  14265. bool isVisible = false,
  14266. String? annotation,
  14267. String? briefAnnotation,
  14268. Unit xUnit = Unit.None,
  14269. Unit yUnit = Unit.None,
  14270. bool showAnnotation = false,
  14271. bool showCalliper = false,
  14272. List<PointDTO>? points,
  14273. String? creator,
  14274. String? guid,
  14275. bool showChildFeatures = false,
  14276. DateTime? timeStamp,
  14277. bool isAutoCalculated = false,
  14278. List<MeasuredValueDTO>? values,
  14279. List<MeasuredFeatureDTO>? childFeatures,
  14280. }) : super(
  14281. isVisible: isVisible,
  14282. annotation: annotation,
  14283. briefAnnotation: briefAnnotation,
  14284. xUnit: xUnit,
  14285. yUnit: yUnit,
  14286. showAnnotation: showAnnotation,
  14287. showCalliper: showCalliper,
  14288. points: points,
  14289. typeName: typeName,
  14290. creator: creator,
  14291. guid: guid,
  14292. showChildFeatures: showChildFeatures,
  14293. timeStamp: timeStamp,
  14294. isAutoCalculated: isAutoCalculated,
  14295. values: values,
  14296. childFeatures: childFeatures,
  14297. );
  14298. factory LocationFeatureDTO.fromJson(Map<String, dynamic> map) {
  14299. return LocationFeatureDTO(
  14300. typeName: map['TypeName'],
  14301. isVisible: map['IsVisible'],
  14302. annotation: map['Annotation'],
  14303. briefAnnotation: map['BriefAnnotation'],
  14304. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  14305. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  14306. showAnnotation: map['ShowAnnotation'],
  14307. showCalliper: map['ShowCalliper'],
  14308. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14309. creator: map['Creator'],
  14310. guid: map['Guid'],
  14311. showChildFeatures: map['ShowChildFeatures'],
  14312. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14313. isAutoCalculated: map['IsAutoCalculated'],
  14314. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14315. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14316. );
  14317. }
  14318. Map<String, dynamic> toJson() {
  14319. final map = super.toJson();
  14320. return map;
  14321. }
  14322. }
  14323. class RayFeatureDTO extends LocationFeatureDTO{
  14324. bool isReverse;
  14325. double angle;
  14326. RayFeatureDTO({
  14327. String? typeName,
  14328. this.isReverse = false,
  14329. this.angle = 0,
  14330. bool isVisible = false,
  14331. String? annotation,
  14332. String? briefAnnotation,
  14333. Unit xUnit = Unit.None,
  14334. Unit yUnit = Unit.None,
  14335. bool showAnnotation = false,
  14336. bool showCalliper = false,
  14337. List<PointDTO>? points,
  14338. String? creator,
  14339. String? guid,
  14340. bool showChildFeatures = false,
  14341. DateTime? timeStamp,
  14342. bool isAutoCalculated = false,
  14343. List<MeasuredValueDTO>? values,
  14344. List<MeasuredFeatureDTO>? childFeatures,
  14345. }) : super(
  14346. typeName: typeName,
  14347. isVisible: isVisible,
  14348. annotation: annotation,
  14349. briefAnnotation: briefAnnotation,
  14350. xUnit: xUnit,
  14351. yUnit: yUnit,
  14352. showAnnotation: showAnnotation,
  14353. showCalliper: showCalliper,
  14354. points: points,
  14355. creator: creator,
  14356. guid: guid,
  14357. showChildFeatures: showChildFeatures,
  14358. timeStamp: timeStamp,
  14359. isAutoCalculated: isAutoCalculated,
  14360. values: values,
  14361. childFeatures: childFeatures,
  14362. );
  14363. factory RayFeatureDTO.fromJson(Map<String, dynamic> map) {
  14364. return RayFeatureDTO(
  14365. typeName: map['TypeName'],
  14366. isReverse: map['IsReverse'],
  14367. angle: double.parse(map['Angle'].toString()),
  14368. isVisible: map['IsVisible'],
  14369. annotation: map['Annotation'],
  14370. briefAnnotation: map['BriefAnnotation'],
  14371. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  14372. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  14373. showAnnotation: map['ShowAnnotation'],
  14374. showCalliper: map['ShowCalliper'],
  14375. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14376. creator: map['Creator'],
  14377. guid: map['Guid'],
  14378. showChildFeatures: map['ShowChildFeatures'],
  14379. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14380. isAutoCalculated: map['IsAutoCalculated'],
  14381. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14382. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14383. );
  14384. }
  14385. Map<String, dynamic> toJson() {
  14386. final map = super.toJson();
  14387. map['IsReverse'] = isReverse;
  14388. map['Angle'] = angle;
  14389. return map;
  14390. }
  14391. }
  14392. class ManualTraceFeatureDTO extends GeometryFeatureDTO{
  14393. ManualTraceFeatureDTO({
  14394. String? typeName,
  14395. bool isVisible = false,
  14396. String? annotation,
  14397. String? briefAnnotation,
  14398. Unit xUnit = Unit.None,
  14399. Unit yUnit = Unit.None,
  14400. bool showAnnotation = false,
  14401. bool showCalliper = false,
  14402. List<PointDTO>? points,
  14403. String? creator,
  14404. String? guid,
  14405. bool showChildFeatures = false,
  14406. DateTime? timeStamp,
  14407. bool isAutoCalculated = false,
  14408. List<MeasuredValueDTO>? values,
  14409. List<MeasuredFeatureDTO>? childFeatures,
  14410. }) : super(
  14411. isVisible: isVisible,
  14412. annotation: annotation,
  14413. briefAnnotation: briefAnnotation,
  14414. xUnit: xUnit,
  14415. yUnit: yUnit,
  14416. showAnnotation: showAnnotation,
  14417. showCalliper: showCalliper,
  14418. points: points,
  14419. typeName: typeName,
  14420. creator: creator,
  14421. guid: guid,
  14422. showChildFeatures: showChildFeatures,
  14423. timeStamp: timeStamp,
  14424. isAutoCalculated: isAutoCalculated,
  14425. values: values,
  14426. childFeatures: childFeatures,
  14427. );
  14428. factory ManualTraceFeatureDTO.fromJson(Map<String, dynamic> map) {
  14429. return ManualTraceFeatureDTO(
  14430. typeName: map['TypeName'],
  14431. isVisible: map['IsVisible'],
  14432. annotation: map['Annotation'],
  14433. briefAnnotation: map['BriefAnnotation'],
  14434. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  14435. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  14436. showAnnotation: map['ShowAnnotation'],
  14437. showCalliper: map['ShowCalliper'],
  14438. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14439. creator: map['Creator'],
  14440. guid: map['Guid'],
  14441. showChildFeatures: map['ShowChildFeatures'],
  14442. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14443. isAutoCalculated: map['IsAutoCalculated'],
  14444. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14445. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14446. );
  14447. }
  14448. Map<String, dynamic> toJson() {
  14449. final map = super.toJson();
  14450. return map;
  14451. }
  14452. }
  14453. class PolyLineFeatureDTO extends MeasuredFeatureDTO{
  14454. bool isClosed;
  14455. double splineTension;
  14456. PolyLineFeatureDTO({
  14457. String? typeName,
  14458. this.isClosed = false,
  14459. this.splineTension = 0,
  14460. String? creator,
  14461. String? guid,
  14462. bool showChildFeatures = false,
  14463. DateTime? timeStamp,
  14464. bool isAutoCalculated = false,
  14465. List<MeasuredValueDTO>? values,
  14466. List<MeasuredFeatureDTO>? childFeatures,
  14467. }) : super(
  14468. typeName: typeName,
  14469. creator: creator,
  14470. guid: guid,
  14471. showChildFeatures: showChildFeatures,
  14472. timeStamp: timeStamp,
  14473. isAutoCalculated: isAutoCalculated,
  14474. values: values,
  14475. childFeatures: childFeatures,
  14476. );
  14477. factory PolyLineFeatureDTO.fromJson(Map<String, dynamic> map) {
  14478. return PolyLineFeatureDTO(
  14479. typeName: map['TypeName'],
  14480. isClosed: map['IsClosed'],
  14481. splineTension: double.parse(map['SplineTension'].toString()),
  14482. creator: map['Creator'],
  14483. guid: map['Guid'],
  14484. showChildFeatures: map['ShowChildFeatures'],
  14485. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14486. isAutoCalculated: map['IsAutoCalculated'],
  14487. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14488. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14489. );
  14490. }
  14491. Map<String, dynamic> toJson() {
  14492. final map = super.toJson();
  14493. map['IsClosed'] = isClosed;
  14494. map['SplineTension'] = splineTension;
  14495. return map;
  14496. }
  14497. }
  14498. class TraceLineFeatureDTO extends PolyLineFeatureDTO{
  14499. TraceLineFeatureDTO({
  14500. String? typeName,
  14501. bool isClosed = false,
  14502. double splineTension = 0,
  14503. String? creator,
  14504. String? guid,
  14505. bool showChildFeatures = false,
  14506. DateTime? timeStamp,
  14507. bool isAutoCalculated = false,
  14508. List<MeasuredValueDTO>? values,
  14509. List<MeasuredFeatureDTO>? childFeatures,
  14510. }) : super(
  14511. typeName: typeName,
  14512. isClosed: isClosed,
  14513. splineTension: splineTension,
  14514. creator: creator,
  14515. guid: guid,
  14516. showChildFeatures: showChildFeatures,
  14517. timeStamp: timeStamp,
  14518. isAutoCalculated: isAutoCalculated,
  14519. values: values,
  14520. childFeatures: childFeatures,
  14521. );
  14522. factory TraceLineFeatureDTO.fromJson(Map<String, dynamic> map) {
  14523. return TraceLineFeatureDTO(
  14524. typeName: map['TypeName'],
  14525. isClosed: map['IsClosed'],
  14526. splineTension: double.parse(map['SplineTension'].toString()),
  14527. creator: map['Creator'],
  14528. guid: map['Guid'],
  14529. showChildFeatures: map['ShowChildFeatures'],
  14530. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14531. isAutoCalculated: map['IsAutoCalculated'],
  14532. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14533. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14534. );
  14535. }
  14536. Map<String, dynamic> toJson() {
  14537. final map = super.toJson();
  14538. return map;
  14539. }
  14540. }
  14541. class SimpsonPathFeatureDTO extends TraceLineFeatureDTO{
  14542. PointDTO? centerLineMovablePoint;
  14543. SimpsonPathFeatureDTO({
  14544. String? typeName,
  14545. this.centerLineMovablePoint,
  14546. bool isClosed = false,
  14547. double splineTension = 0,
  14548. String? creator,
  14549. String? guid,
  14550. bool showChildFeatures = false,
  14551. DateTime? timeStamp,
  14552. bool isAutoCalculated = false,
  14553. List<MeasuredValueDTO>? values,
  14554. List<MeasuredFeatureDTO>? childFeatures,
  14555. }) : super(
  14556. typeName: typeName,
  14557. isClosed: isClosed,
  14558. splineTension: splineTension,
  14559. creator: creator,
  14560. guid: guid,
  14561. showChildFeatures: showChildFeatures,
  14562. timeStamp: timeStamp,
  14563. isAutoCalculated: isAutoCalculated,
  14564. values: values,
  14565. childFeatures: childFeatures,
  14566. );
  14567. factory SimpsonPathFeatureDTO.fromJson(Map<String, dynamic> map) {
  14568. return SimpsonPathFeatureDTO(
  14569. typeName: map['TypeName'],
  14570. centerLineMovablePoint: map['CenterLineMovablePoint'] != null ? PointDTO.fromJson(map['CenterLineMovablePoint']) : null,
  14571. isClosed: map['IsClosed'],
  14572. splineTension: double.parse(map['SplineTension'].toString()),
  14573. creator: map['Creator'],
  14574. guid: map['Guid'],
  14575. showChildFeatures: map['ShowChildFeatures'],
  14576. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14577. isAutoCalculated: map['IsAutoCalculated'],
  14578. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14579. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14580. );
  14581. }
  14582. Map<String, dynamic> toJson() {
  14583. final map = super.toJson();
  14584. if(centerLineMovablePoint != null)
  14585. map['CenterLineMovablePoint'] = centerLineMovablePoint;
  14586. return map;
  14587. }
  14588. }
  14589. class RectFeatureDTO extends GeometryFeatureDTO{
  14590. bool showRootFeature;
  14591. List<MeasuredFeatureDTO>? autoLines;
  14592. RectFeatureDTO({
  14593. String? typeName,
  14594. this.showRootFeature = false,
  14595. this.autoLines,
  14596. bool isVisible = false,
  14597. String? annotation,
  14598. String? briefAnnotation,
  14599. Unit xUnit = Unit.None,
  14600. Unit yUnit = Unit.None,
  14601. bool showAnnotation = false,
  14602. bool showCalliper = false,
  14603. List<PointDTO>? points,
  14604. String? creator,
  14605. String? guid,
  14606. bool showChildFeatures = false,
  14607. DateTime? timeStamp,
  14608. bool isAutoCalculated = false,
  14609. List<MeasuredValueDTO>? values,
  14610. List<MeasuredFeatureDTO>? childFeatures,
  14611. }) : super(
  14612. isVisible: isVisible,
  14613. annotation: annotation,
  14614. briefAnnotation: briefAnnotation,
  14615. xUnit: xUnit,
  14616. yUnit: yUnit,
  14617. showAnnotation: showAnnotation,
  14618. showCalliper: showCalliper,
  14619. points: points,
  14620. typeName: typeName,
  14621. creator: creator,
  14622. guid: guid,
  14623. showChildFeatures: showChildFeatures,
  14624. timeStamp: timeStamp,
  14625. isAutoCalculated: isAutoCalculated,
  14626. values: values,
  14627. childFeatures: childFeatures,
  14628. );
  14629. factory RectFeatureDTO.fromJson(Map<String, dynamic> map) {
  14630. return RectFeatureDTO(
  14631. typeName: map['TypeName'],
  14632. showRootFeature: map['ShowRootFeature'],
  14633. autoLines: map['AutoLines'] != null ? (map['AutoLines'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14634. isVisible: map['IsVisible'],
  14635. annotation: map['Annotation'],
  14636. briefAnnotation: map['BriefAnnotation'],
  14637. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  14638. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  14639. showAnnotation: map['ShowAnnotation'],
  14640. showCalliper: map['ShowCalliper'],
  14641. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14642. creator: map['Creator'],
  14643. guid: map['Guid'],
  14644. showChildFeatures: map['ShowChildFeatures'],
  14645. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14646. isAutoCalculated: map['IsAutoCalculated'],
  14647. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14648. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14649. );
  14650. }
  14651. Map<String, dynamic> toJson() {
  14652. final map = super.toJson();
  14653. map['ShowRootFeature'] = showRootFeature;
  14654. if(autoLines != null)
  14655. map['AutoLines'] = autoLines;
  14656. return map;
  14657. }
  14658. }
  14659. class FollicleRectFeatureDTO extends RectFeatureDTO{
  14660. FollicleRectFeatureDTO({
  14661. String? typeName,
  14662. bool showRootFeature = false,
  14663. List<MeasuredFeatureDTO>? autoLines,
  14664. bool isVisible = false,
  14665. String? annotation,
  14666. String? briefAnnotation,
  14667. Unit xUnit = Unit.None,
  14668. Unit yUnit = Unit.None,
  14669. bool showAnnotation = false,
  14670. bool showCalliper = false,
  14671. List<PointDTO>? points,
  14672. String? creator,
  14673. String? guid,
  14674. bool showChildFeatures = false,
  14675. DateTime? timeStamp,
  14676. bool isAutoCalculated = false,
  14677. List<MeasuredValueDTO>? values,
  14678. List<MeasuredFeatureDTO>? childFeatures,
  14679. }) : super(
  14680. typeName: typeName,
  14681. showRootFeature: showRootFeature,
  14682. autoLines: autoLines,
  14683. isVisible: isVisible,
  14684. annotation: annotation,
  14685. briefAnnotation: briefAnnotation,
  14686. xUnit: xUnit,
  14687. yUnit: yUnit,
  14688. showAnnotation: showAnnotation,
  14689. showCalliper: showCalliper,
  14690. points: points,
  14691. creator: creator,
  14692. guid: guid,
  14693. showChildFeatures: showChildFeatures,
  14694. timeStamp: timeStamp,
  14695. isAutoCalculated: isAutoCalculated,
  14696. values: values,
  14697. childFeatures: childFeatures,
  14698. );
  14699. factory FollicleRectFeatureDTO.fromJson(Map<String, dynamic> map) {
  14700. return FollicleRectFeatureDTO(
  14701. typeName: map['TypeName'],
  14702. showRootFeature: map['ShowRootFeature'],
  14703. autoLines: map['AutoLines'] != null ? (map['AutoLines'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14704. isVisible: map['IsVisible'],
  14705. annotation: map['Annotation'],
  14706. briefAnnotation: map['BriefAnnotation'],
  14707. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  14708. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  14709. showAnnotation: map['ShowAnnotation'],
  14710. showCalliper: map['ShowCalliper'],
  14711. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14712. creator: map['Creator'],
  14713. guid: map['Guid'],
  14714. showChildFeatures: map['ShowChildFeatures'],
  14715. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14716. isAutoCalculated: map['IsAutoCalculated'],
  14717. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14718. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14719. );
  14720. }
  14721. Map<String, dynamic> toJson() {
  14722. final map = super.toJson();
  14723. return map;
  14724. }
  14725. }
  14726. class StraightLineFeatureDTO extends GeometryFeatureDTO{
  14727. StraightLineShapeEnum shapeType;
  14728. bool useDashLine;
  14729. StraightLineFeatureDTO({
  14730. String? typeName,
  14731. this.shapeType = StraightLineShapeEnum.StraightLine,
  14732. this.useDashLine = false,
  14733. bool isVisible = false,
  14734. String? annotation,
  14735. String? briefAnnotation,
  14736. Unit xUnit = Unit.None,
  14737. Unit yUnit = Unit.None,
  14738. bool showAnnotation = false,
  14739. bool showCalliper = false,
  14740. List<PointDTO>? points,
  14741. String? creator,
  14742. String? guid,
  14743. bool showChildFeatures = false,
  14744. DateTime? timeStamp,
  14745. bool isAutoCalculated = false,
  14746. List<MeasuredValueDTO>? values,
  14747. List<MeasuredFeatureDTO>? childFeatures,
  14748. }) : super(
  14749. isVisible: isVisible,
  14750. annotation: annotation,
  14751. briefAnnotation: briefAnnotation,
  14752. xUnit: xUnit,
  14753. yUnit: yUnit,
  14754. showAnnotation: showAnnotation,
  14755. showCalliper: showCalliper,
  14756. points: points,
  14757. typeName: typeName,
  14758. creator: creator,
  14759. guid: guid,
  14760. showChildFeatures: showChildFeatures,
  14761. timeStamp: timeStamp,
  14762. isAutoCalculated: isAutoCalculated,
  14763. values: values,
  14764. childFeatures: childFeatures,
  14765. );
  14766. factory StraightLineFeatureDTO.fromJson(Map<String, dynamic> map) {
  14767. return StraightLineFeatureDTO(
  14768. typeName: map['TypeName'],
  14769. shapeType: StraightLineShapeEnum.values.firstWhere((e) => e.index == map['ShapeType']),
  14770. useDashLine: map['UseDashLine'],
  14771. isVisible: map['IsVisible'],
  14772. annotation: map['Annotation'],
  14773. briefAnnotation: map['BriefAnnotation'],
  14774. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  14775. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  14776. showAnnotation: map['ShowAnnotation'],
  14777. showCalliper: map['ShowCalliper'],
  14778. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14779. creator: map['Creator'],
  14780. guid: map['Guid'],
  14781. showChildFeatures: map['ShowChildFeatures'],
  14782. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14783. isAutoCalculated: map['IsAutoCalculated'],
  14784. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14785. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14786. );
  14787. }
  14788. Map<String, dynamic> toJson() {
  14789. final map = super.toJson();
  14790. map['ShapeType'] = shapeType.index;
  14791. map['UseDashLine'] = useDashLine;
  14792. return map;
  14793. }
  14794. }
  14795. class VasPlaqueSplitterFeatureDTO extends GeometryFeatureDTO{
  14796. int maxZoneCount;
  14797. int currentZoneCount;
  14798. int angle;
  14799. List<PointDTO>? splitterLinesPoints;
  14800. VasPlaqueSplitterFeatureDTO({
  14801. String? typeName,
  14802. this.maxZoneCount = 0,
  14803. this.currentZoneCount = 0,
  14804. this.angle = 0,
  14805. bool isVisible = false,
  14806. this.splitterLinesPoints,
  14807. String? annotation,
  14808. String? briefAnnotation,
  14809. Unit xUnit = Unit.None,
  14810. Unit yUnit = Unit.None,
  14811. bool showAnnotation = false,
  14812. bool showCalliper = false,
  14813. List<PointDTO>? points,
  14814. String? creator,
  14815. String? guid,
  14816. bool showChildFeatures = false,
  14817. DateTime? timeStamp,
  14818. bool isAutoCalculated = false,
  14819. List<MeasuredValueDTO>? values,
  14820. List<MeasuredFeatureDTO>? childFeatures,
  14821. }) : super(
  14822. isVisible: isVisible,
  14823. annotation: annotation,
  14824. briefAnnotation: briefAnnotation,
  14825. xUnit: xUnit,
  14826. yUnit: yUnit,
  14827. showAnnotation: showAnnotation,
  14828. showCalliper: showCalliper,
  14829. points: points,
  14830. typeName: typeName,
  14831. creator: creator,
  14832. guid: guid,
  14833. showChildFeatures: showChildFeatures,
  14834. timeStamp: timeStamp,
  14835. isAutoCalculated: isAutoCalculated,
  14836. values: values,
  14837. childFeatures: childFeatures,
  14838. );
  14839. factory VasPlaqueSplitterFeatureDTO.fromJson(Map<String, dynamic> map) {
  14840. return VasPlaqueSplitterFeatureDTO(
  14841. typeName: map['TypeName'],
  14842. maxZoneCount: map['MaxZoneCount'],
  14843. currentZoneCount: map['CurrentZoneCount'],
  14844. angle: map['Angle'],
  14845. isVisible: map['IsVisible'],
  14846. splitterLinesPoints: map['SplitterLinesPoints'] != null ? (map['SplitterLinesPoints'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14847. annotation: map['Annotation'],
  14848. briefAnnotation: map['BriefAnnotation'],
  14849. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  14850. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  14851. showAnnotation: map['ShowAnnotation'],
  14852. showCalliper: map['ShowCalliper'],
  14853. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14854. creator: map['Creator'],
  14855. guid: map['Guid'],
  14856. showChildFeatures: map['ShowChildFeatures'],
  14857. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  14858. isAutoCalculated: map['IsAutoCalculated'],
  14859. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14860. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14861. );
  14862. }
  14863. Map<String, dynamic> toJson() {
  14864. final map = super.toJson();
  14865. map['MaxZoneCount'] = maxZoneCount;
  14866. map['CurrentZoneCount'] = currentZoneCount;
  14867. map['Angle'] = angle;
  14868. if(splitterLinesPoints != null)
  14869. map['SplitterLinesPoints'] = splitterLinesPoints;
  14870. return map;
  14871. }
  14872. }
  14873. class GrowthNormalRangeDTO {
  14874. String? typeName;
  14875. String? tableAuthor;
  14876. String? measureItem;
  14877. int gAinDays;
  14878. int status;
  14879. double value;
  14880. double minValue;
  14881. double maxValue;
  14882. Unit valueUnit;
  14883. Unit targetUnit;
  14884. GrowthNormalRangeDTO({
  14885. this.typeName,
  14886. this.tableAuthor,
  14887. this.measureItem,
  14888. this.gAinDays = 0,
  14889. this.status = 0,
  14890. this.value = 0,
  14891. this.minValue = 0,
  14892. this.maxValue = 0,
  14893. this.valueUnit = Unit.None,
  14894. this.targetUnit = Unit.None,
  14895. });
  14896. factory GrowthNormalRangeDTO.fromJson(Map<String, dynamic> map) {
  14897. return GrowthNormalRangeDTO(
  14898. typeName: map['TypeName'],
  14899. tableAuthor: map['TableAuthor'],
  14900. measureItem: map['MeasureItem'],
  14901. gAinDays: map['GAinDays'],
  14902. status: map['Status'],
  14903. value: double.parse(map['Value'].toString()),
  14904. minValue: double.parse(map['MinValue'].toString()),
  14905. maxValue: double.parse(map['MaxValue'].toString()),
  14906. valueUnit: Unit.values.firstWhere((e) => e.index == map['ValueUnit']),
  14907. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  14908. );
  14909. }
  14910. Map<String, dynamic> toJson() {
  14911. final map = Map<String, dynamic>();
  14912. if(typeName != null) {
  14913. map['TypeName'] = typeName;
  14914. }
  14915. if(tableAuthor != null) {
  14916. map['TableAuthor'] = tableAuthor;
  14917. }
  14918. if(measureItem != null) {
  14919. map['MeasureItem'] = measureItem;
  14920. }
  14921. map['GAinDays'] = gAinDays;
  14922. map['Status'] = status;
  14923. map['Value'] = value;
  14924. map['MinValue'] = minValue;
  14925. map['MaxValue'] = maxValue;
  14926. map['ValueUnit'] = valueUnit.index;
  14927. map['TargetUnit'] = targetUnit.index;
  14928. return map;
  14929. }
  14930. }
  14931. class EFWRepresentationDTO extends FloatValueDTO{
  14932. EFWRepresentationDTO({
  14933. FetalGrowthIndexDTO? fetalGrowthIndex,
  14934. String? typeName,
  14935. String? name,
  14936. String? description,
  14937. bool worksheetAffinity = false,
  14938. String? briefDescription,
  14939. String? value,
  14940. Unit unit = Unit.None,
  14941. Unit targetUnit = Unit.None,
  14942. }) : super(
  14943. fetalGrowthIndex: fetalGrowthIndex,
  14944. typeName: typeName,
  14945. name: name,
  14946. description: description,
  14947. worksheetAffinity: worksheetAffinity,
  14948. briefDescription: briefDescription,
  14949. value: value,
  14950. unit: unit,
  14951. targetUnit: targetUnit,
  14952. );
  14953. factory EFWRepresentationDTO.fromJson(Map<String, dynamic> map) {
  14954. return EFWRepresentationDTO(
  14955. fetalGrowthIndex: map['FetalGrowthIndex'] != null ? FetalGrowthIndexDTO.fromJson(map['FetalGrowthIndex']) : null,
  14956. typeName: map['TypeName'],
  14957. name: map['Name'],
  14958. description: map['Description'],
  14959. worksheetAffinity: map['WorksheetAffinity'],
  14960. briefDescription: map['BriefDescription'],
  14961. value: map['Value'],
  14962. unit: Unit.values.firstWhere((e) => e.index == map['Unit']),
  14963. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  14964. );
  14965. }
  14966. Map<String, dynamic> toJson() {
  14967. final map = super.toJson();
  14968. return map;
  14969. }
  14970. }
  14971. class AdminExtendInfoDTO extends AdminInfoDTO{
  14972. List<String>? roleNames;
  14973. String? defaultRoleCode;
  14974. String? defaultRoleName;
  14975. bool isLocked;
  14976. AdminExtendInfoDTO({
  14977. this.roleNames,
  14978. this.defaultRoleCode,
  14979. this.defaultRoleName,
  14980. this.isLocked = false,
  14981. String? adminCode,
  14982. String? fatherCode,
  14983. String? adminName,
  14984. String? fullName,
  14985. String? secretPassword,
  14986. String? headImageToken,
  14987. String? licenseKey,
  14988. String? lastIP,
  14989. String? phone,
  14990. String? email,
  14991. List<String>? roleCodes,
  14992. LoginLockInfoDTO? loginLockInfo,
  14993. DateTime? passwordUpdateTime,
  14994. List<String>? passwordRecords,
  14995. List<ClearLogOperateDTO>? clearLogOperateList,
  14996. DateTime? createTime,
  14997. DateTime? updateTime,
  14998. }) : super(
  14999. adminCode: adminCode,
  15000. fatherCode: fatherCode,
  15001. adminName: adminName,
  15002. fullName: fullName,
  15003. secretPassword: secretPassword,
  15004. headImageToken: headImageToken,
  15005. licenseKey: licenseKey,
  15006. lastIP: lastIP,
  15007. phone: phone,
  15008. email: email,
  15009. roleCodes: roleCodes,
  15010. loginLockInfo: loginLockInfo,
  15011. passwordUpdateTime: passwordUpdateTime,
  15012. passwordRecords: passwordRecords,
  15013. clearLogOperateList: clearLogOperateList,
  15014. createTime: createTime,
  15015. updateTime: updateTime,
  15016. );
  15017. factory AdminExtendInfoDTO.fromJson(Map<String, dynamic> map) {
  15018. return AdminExtendInfoDTO(
  15019. roleNames: map['RoleNames']?.cast<String>().toList(),
  15020. defaultRoleCode: map['DefaultRoleCode'],
  15021. defaultRoleName: map['DefaultRoleName'],
  15022. isLocked: map['IsLocked'],
  15023. adminCode: map['AdminCode'],
  15024. fatherCode: map['FatherCode'],
  15025. adminName: map['AdminName'],
  15026. fullName: map['FullName'],
  15027. secretPassword: map['SecretPassword'],
  15028. headImageToken: map['HeadImageToken'],
  15029. licenseKey: map['LicenseKey'],
  15030. lastIP: map['LastIP'],
  15031. phone: map['Phone'],
  15032. email: map['Email'],
  15033. roleCodes: map['RoleCodes']?.cast<String>().toList(),
  15034. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  15035. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  15036. passwordRecords: map['PasswordRecords']?.cast<String>().toList(),
  15037. clearLogOperateList: map['ClearLogOperateList'] != null ? (map['ClearLogOperateList'] as List).map((e)=>ClearLogOperateDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15038. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  15039. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  15040. );
  15041. }
  15042. Map<String, dynamic> toJson() {
  15043. final map = super.toJson();
  15044. if(roleNames != null)
  15045. map['RoleNames'] = roleNames;
  15046. if(defaultRoleCode != null)
  15047. map['DefaultRoleCode'] = defaultRoleCode;
  15048. if(defaultRoleName != null)
  15049. map['DefaultRoleName'] = defaultRoleName;
  15050. map['IsLocked'] = isLocked;
  15051. return map;
  15052. }
  15053. }
  15054. class AdminLoginResult {
  15055. LoginStateEnum loginState;
  15056. String? token;
  15057. int? lockRemainingTimes;
  15058. bool isDistributedServer;
  15059. bool passwordExpired;
  15060. String? adminName;
  15061. AdminLoginResult({
  15062. this.loginState = LoginStateEnum.Succeed,
  15063. this.token,
  15064. this.lockRemainingTimes,
  15065. this.isDistributedServer = false,
  15066. this.passwordExpired = false,
  15067. this.adminName,
  15068. });
  15069. factory AdminLoginResult.fromJson(Map<String, dynamic> map) {
  15070. return AdminLoginResult(
  15071. loginState: LoginStateEnum.values.firstWhere((e) => e.index == map['LoginState']),
  15072. token: map['Token'],
  15073. lockRemainingTimes: map['LockRemainingTimes'],
  15074. isDistributedServer: map['IsDistributedServer'],
  15075. passwordExpired: map['PasswordExpired'],
  15076. adminName: map['AdminName'],
  15077. );
  15078. }
  15079. Map<String, dynamic> toJson() {
  15080. final map = Map<String, dynamic>();
  15081. map['LoginState'] = loginState.index;
  15082. if(token != null) {
  15083. map['Token'] = token;
  15084. }
  15085. if(lockRemainingTimes != null) {
  15086. map['LockRemainingTimes'] = lockRemainingTimes;
  15087. }
  15088. map['IsDistributedServer'] = isDistributedServer;
  15089. map['PasswordExpired'] = passwordExpired;
  15090. if(adminName != null) {
  15091. map['AdminName'] = adminName;
  15092. }
  15093. return map;
  15094. }
  15095. }
  15096. class WaitDeleteLogBaseDTO {
  15097. int daysAgo;
  15098. int percentage;
  15099. WaitDeleteLogBaseDTO({
  15100. this.daysAgo = 0,
  15101. this.percentage = 0,
  15102. });
  15103. factory WaitDeleteLogBaseDTO.fromJson(Map<String, dynamic> map) {
  15104. return WaitDeleteLogBaseDTO(
  15105. daysAgo: map['DaysAgo'],
  15106. percentage: map['Percentage'],
  15107. );
  15108. }
  15109. Map<String, dynamic> toJson() {
  15110. final map = Map<String, dynamic>();
  15111. map['DaysAgo'] = daysAgo;
  15112. map['Percentage'] = percentage;
  15113. return map;
  15114. }
  15115. }
  15116. class WaitDeleteLogsDTO {
  15117. List<WaitDeleteLogBaseDTO>? waitDeleteLogs;
  15118. int daysAgo;
  15119. bool isLockClear;
  15120. String? requestServerHost;
  15121. DateTime? lastClearTime;
  15122. DateTime? lastClearOperateTime;
  15123. WaitDeleteLogsDTO({
  15124. this.waitDeleteLogs,
  15125. this.daysAgo = 0,
  15126. this.isLockClear = false,
  15127. this.requestServerHost,
  15128. this.lastClearTime,
  15129. this.lastClearOperateTime,
  15130. });
  15131. factory WaitDeleteLogsDTO.fromJson(Map<String, dynamic> map) {
  15132. return WaitDeleteLogsDTO(
  15133. waitDeleteLogs: map['WaitDeleteLogs'] != null ? (map['WaitDeleteLogs'] as List).map((e)=>WaitDeleteLogBaseDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15134. daysAgo: map['DaysAgo'],
  15135. isLockClear: map['IsLockClear'],
  15136. requestServerHost: map['RequestServerHost'],
  15137. lastClearTime: map['LastClearTime'] != null ? DateTime.parse(map['LastClearTime']) : null,
  15138. lastClearOperateTime: map['LastClearOperateTime'] != null ? DateTime.parse(map['LastClearOperateTime']) : null,
  15139. );
  15140. }
  15141. Map<String, dynamic> toJson() {
  15142. final map = Map<String, dynamic>();
  15143. if(waitDeleteLogs != null) {
  15144. map['WaitDeleteLogs'] = waitDeleteLogs;
  15145. }
  15146. map['DaysAgo'] = daysAgo;
  15147. map['IsLockClear'] = isLockClear;
  15148. if(requestServerHost != null) {
  15149. map['RequestServerHost'] = requestServerHost;
  15150. }
  15151. if(lastClearTime != null) {
  15152. map['LastClearTime'] = JsonRpcUtils.dateFormat(lastClearTime!);
  15153. }
  15154. if(lastClearOperateTime != null) {
  15155. map['LastClearOperateTime'] = JsonRpcUtils.dateFormat(lastClearOperateTime!);
  15156. }
  15157. return map;
  15158. }
  15159. }
  15160. class ManageAdminFeatureInfoDTO {
  15161. List<String>? featureCodeList;
  15162. ManageAdminFeatureInfoDTO({
  15163. this.featureCodeList,
  15164. });
  15165. factory ManageAdminFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  15166. return ManageAdminFeatureInfoDTO(
  15167. featureCodeList: map['FeatureCodeList']?.cast<String>().toList(),
  15168. );
  15169. }
  15170. Map<String, dynamic> toJson() {
  15171. final map = Map<String, dynamic>();
  15172. if(featureCodeList != null) {
  15173. map['FeatureCodeList'] = featureCodeList;
  15174. }
  15175. return map;
  15176. }
  15177. }
  15178. class FeatureDetail {
  15179. String? id;
  15180. FeatureDetail({
  15181. this.id,
  15182. });
  15183. factory FeatureDetail.fromJson(Map<String, dynamic> map) {
  15184. return FeatureDetail(
  15185. id: map['Id'],
  15186. );
  15187. }
  15188. Map<String, dynamic> toJson() {
  15189. final map = Map<String, dynamic>();
  15190. if(id != null) {
  15191. map['Id'] = id;
  15192. }
  15193. return map;
  15194. }
  15195. }
  15196. class ManageAdminRoleInfoDTO extends AdminRoleDTO{
  15197. List<FeatureDetail>? featureList;
  15198. ManageAdminRoleInfoDTO({
  15199. this.featureList,
  15200. String? adminGroupCode,
  15201. int adminNum = 0,
  15202. String? roleCode,
  15203. String? roleName,
  15204. String? description,
  15205. List<UserRoleLanguageConfigDTO>? languageConfigs,
  15206. DateTime? createTime,
  15207. DateTime? updateTime,
  15208. }) : super(
  15209. adminGroupCode: adminGroupCode,
  15210. adminNum: adminNum,
  15211. roleCode: roleCode,
  15212. roleName: roleName,
  15213. description: description,
  15214. languageConfigs: languageConfigs,
  15215. createTime: createTime,
  15216. updateTime: updateTime,
  15217. );
  15218. factory ManageAdminRoleInfoDTO.fromJson(Map<String, dynamic> map) {
  15219. return ManageAdminRoleInfoDTO(
  15220. featureList: map['FeatureList'] != null ? (map['FeatureList'] as List).map((e)=>FeatureDetail.fromJson(e as Map<String,dynamic>)).toList() : null,
  15221. adminGroupCode: map['AdminGroupCode'],
  15222. adminNum: map['AdminNum'],
  15223. roleCode: map['RoleCode'],
  15224. roleName: map['RoleName'],
  15225. description: map['Description'],
  15226. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15227. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  15228. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  15229. );
  15230. }
  15231. Map<String, dynamic> toJson() {
  15232. final map = super.toJson();
  15233. if(featureList != null)
  15234. map['FeatureList'] = featureList;
  15235. return map;
  15236. }
  15237. }
  15238. class ManageCreateProductDTO extends CreateProductDTO{
  15239. ManageCreateProductDTO({
  15240. String? productCode,
  15241. DateTime? createTime,
  15242. DateTime? updateTime,
  15243. }) : super(
  15244. productCode: productCode,
  15245. createTime: createTime,
  15246. updateTime: updateTime,
  15247. );
  15248. factory ManageCreateProductDTO.fromJson(Map<String, dynamic> map) {
  15249. return ManageCreateProductDTO(
  15250. productCode: map['ProductCode'],
  15251. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  15252. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  15253. );
  15254. }
  15255. Map<String, dynamic> toJson() {
  15256. final map = super.toJson();
  15257. return map;
  15258. }
  15259. }
  15260. class ManageDeviceInfoDTO extends DeviceInfoDTO{
  15261. String? hospitalName;
  15262. String? departmentName;
  15263. String? directorName;
  15264. String? adminName;
  15265. String? shareUserNum;
  15266. String? deviceModelName;
  15267. List<DictionaryLanguageConfigDTO>? languageConfigs;
  15268. ManageDeviceInfoDTO({
  15269. this.hospitalName,
  15270. this.departmentName,
  15271. this.directorName,
  15272. this.adminName,
  15273. this.shareUserNum,
  15274. this.deviceModelName,
  15275. this.languageConfigs,
  15276. String? deviceCode,
  15277. String? serialNumber,
  15278. String? password,
  15279. String? name,
  15280. String? description,
  15281. String? deviceModel,
  15282. String? deviceType,
  15283. String? headPicUrl,
  15284. String? deviceSoftwareVersion,
  15285. String? sDKSoftwareVersion,
  15286. String? organizationCode,
  15287. String? departmentCode,
  15288. String? shortCode,
  15289. bool isAutoShared = false,
  15290. bool isEncryptedShow = false,
  15291. DateTime? lastLoginTime,
  15292. String? systemVersion,
  15293. String? cPUModel,
  15294. String? systemLanguage,
  15295. List<String>? diagnosisModules,
  15296. List<String>? reportPosterCodes,
  15297. bool mergedChannel = false,
  15298. int mergedVideoOutputWidth = 0,
  15299. int mergedVideoOutputHeight = 0,
  15300. List<VideoDeviceDTO>? videoDeviceInfos,
  15301. DownloadModeSettingEnum downloadModeSetting = DownloadModeSettingEnum.Auto,
  15302. bool liveOpened = false,
  15303. bool supportRtc = false,
  15304. String? displayName,
  15305. DateTime? createTime,
  15306. DateTime? updateTime,
  15307. }) : super(
  15308. deviceCode: deviceCode,
  15309. serialNumber: serialNumber,
  15310. password: password,
  15311. name: name,
  15312. description: description,
  15313. deviceModel: deviceModel,
  15314. deviceType: deviceType,
  15315. headPicUrl: headPicUrl,
  15316. deviceSoftwareVersion: deviceSoftwareVersion,
  15317. sDKSoftwareVersion: sDKSoftwareVersion,
  15318. organizationCode: organizationCode,
  15319. departmentCode: departmentCode,
  15320. shortCode: shortCode,
  15321. isAutoShared: isAutoShared,
  15322. isEncryptedShow: isEncryptedShow,
  15323. lastLoginTime: lastLoginTime,
  15324. systemVersion: systemVersion,
  15325. cPUModel: cPUModel,
  15326. systemLanguage: systemLanguage,
  15327. diagnosisModules: diagnosisModules,
  15328. reportPosterCodes: reportPosterCodes,
  15329. mergedChannel: mergedChannel,
  15330. mergedVideoOutputWidth: mergedVideoOutputWidth,
  15331. mergedVideoOutputHeight: mergedVideoOutputHeight,
  15332. videoDeviceInfos: videoDeviceInfos,
  15333. downloadModeSetting: downloadModeSetting,
  15334. liveOpened: liveOpened,
  15335. supportRtc: supportRtc,
  15336. displayName: displayName,
  15337. createTime: createTime,
  15338. updateTime: updateTime,
  15339. );
  15340. factory ManageDeviceInfoDTO.fromJson(Map<String, dynamic> map) {
  15341. return ManageDeviceInfoDTO(
  15342. hospitalName: map['HospitalName'],
  15343. departmentName: map['DepartmentName'],
  15344. directorName: map['DirectorName'],
  15345. adminName: map['AdminName'],
  15346. shareUserNum: map['ShareUserNum'],
  15347. deviceModelName: map['DeviceModelName'],
  15348. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>DictionaryLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15349. deviceCode: map['DeviceCode'],
  15350. serialNumber: map['SerialNumber'],
  15351. password: map['Password'],
  15352. name: map['Name'],
  15353. description: map['Description'],
  15354. deviceModel: map['DeviceModel'],
  15355. deviceType: map['DeviceType'],
  15356. headPicUrl: map['HeadPicUrl'],
  15357. deviceSoftwareVersion: map['DeviceSoftwareVersion'],
  15358. sDKSoftwareVersion: map['SDKSoftwareVersion'],
  15359. organizationCode: map['OrganizationCode'],
  15360. departmentCode: map['DepartmentCode'],
  15361. shortCode: map['ShortCode'],
  15362. isAutoShared: map['IsAutoShared'],
  15363. isEncryptedShow: map['IsEncryptedShow'],
  15364. lastLoginTime: map['LastLoginTime'] != null ? DateTime.parse(map['LastLoginTime']) : null,
  15365. systemVersion: map['SystemVersion'],
  15366. cPUModel: map['CPUModel'],
  15367. systemLanguage: map['SystemLanguage'],
  15368. diagnosisModules: map['DiagnosisModules']?.cast<String>().toList(),
  15369. reportPosterCodes: map['ReportPosterCodes']?.cast<String>().toList(),
  15370. mergedChannel: map['MergedChannel'],
  15371. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  15372. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  15373. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15374. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  15375. liveOpened: map['LiveOpened'],
  15376. supportRtc: map['SupportRtc'],
  15377. displayName: map['DisplayName'],
  15378. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  15379. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  15380. );
  15381. }
  15382. Map<String, dynamic> toJson() {
  15383. final map = super.toJson();
  15384. if(hospitalName != null)
  15385. map['HospitalName'] = hospitalName;
  15386. if(departmentName != null)
  15387. map['DepartmentName'] = departmentName;
  15388. if(directorName != null)
  15389. map['DirectorName'] = directorName;
  15390. if(adminName != null)
  15391. map['AdminName'] = adminName;
  15392. if(shareUserNum != null)
  15393. map['ShareUserNum'] = shareUserNum;
  15394. if(deviceModelName != null)
  15395. map['DeviceModelName'] = deviceModelName;
  15396. if(languageConfigs != null)
  15397. map['LanguageConfigs'] = languageConfigs;
  15398. return map;
  15399. }
  15400. }
  15401. class ManageDeviceTypeDTO {
  15402. String? dictionaryCode;
  15403. String? value;
  15404. List<DictionaryLanguageConfigDTO>? languageConfigs;
  15405. List<DictionaryDTO>? dictionaryList;
  15406. ManageDeviceTypeDTO({
  15407. this.dictionaryCode,
  15408. this.value,
  15409. this.languageConfigs,
  15410. this.dictionaryList,
  15411. });
  15412. factory ManageDeviceTypeDTO.fromJson(Map<String, dynamic> map) {
  15413. return ManageDeviceTypeDTO(
  15414. dictionaryCode: map['DictionaryCode'],
  15415. value: map['Value'],
  15416. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>DictionaryLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15417. dictionaryList: map['DictionaryList'] != null ? (map['DictionaryList'] as List).map((e)=>DictionaryDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15418. );
  15419. }
  15420. Map<String, dynamic> toJson() {
  15421. final map = Map<String, dynamic>();
  15422. if(dictionaryCode != null) {
  15423. map['DictionaryCode'] = dictionaryCode;
  15424. }
  15425. if(value != null) {
  15426. map['Value'] = value;
  15427. }
  15428. if(languageConfigs != null) {
  15429. map['LanguageConfigs'] = languageConfigs;
  15430. }
  15431. if(dictionaryList != null) {
  15432. map['DictionaryList'] = dictionaryList;
  15433. }
  15434. return map;
  15435. }
  15436. }
  15437. class ManageDeviceUserDTO {
  15438. String? userCode;
  15439. String? userName;
  15440. String? phone;
  15441. String? email;
  15442. String? nickName;
  15443. String? fullName;
  15444. String? hospitalName;
  15445. ManageDeviceUserDTO({
  15446. this.userCode,
  15447. this.userName,
  15448. this.phone,
  15449. this.email,
  15450. this.nickName,
  15451. this.fullName,
  15452. this.hospitalName,
  15453. });
  15454. factory ManageDeviceUserDTO.fromJson(Map<String, dynamic> map) {
  15455. return ManageDeviceUserDTO(
  15456. userCode: map['UserCode'],
  15457. userName: map['UserName'],
  15458. phone: map['Phone'],
  15459. email: map['Email'],
  15460. nickName: map['NickName'],
  15461. fullName: map['FullName'],
  15462. hospitalName: map['HospitalName'],
  15463. );
  15464. }
  15465. Map<String, dynamic> toJson() {
  15466. final map = Map<String, dynamic>();
  15467. if(userCode != null) {
  15468. map['UserCode'] = userCode;
  15469. }
  15470. if(userName != null) {
  15471. map['UserName'] = userName;
  15472. }
  15473. if(phone != null) {
  15474. map['Phone'] = phone;
  15475. }
  15476. if(email != null) {
  15477. map['Email'] = email;
  15478. }
  15479. if(nickName != null) {
  15480. map['NickName'] = nickName;
  15481. }
  15482. if(fullName != null) {
  15483. map['FullName'] = fullName;
  15484. }
  15485. if(hospitalName != null) {
  15486. map['HospitalName'] = hospitalName;
  15487. }
  15488. return map;
  15489. }
  15490. }
  15491. class ManageOrderDetailDTO extends OrderDetailDTO{
  15492. ManageOrderDetailDTO({
  15493. String? code,
  15494. String? orderUserName,
  15495. String? orderUserCode,
  15496. String? productCode,
  15497. String? tPORderCode,
  15498. String? orderTitle,
  15499. OrderTypeEnum orderType = OrderTypeEnum.General,
  15500. double orderAmount = 0,
  15501. DateTime? payTime,
  15502. PayStatusEnum payStatus = PayStatusEnum.NoPay,
  15503. DateTime? createTime,
  15504. DateTime? updateTime,
  15505. }) : super(
  15506. code: code,
  15507. orderUserName: orderUserName,
  15508. orderUserCode: orderUserCode,
  15509. productCode: productCode,
  15510. tPORderCode: tPORderCode,
  15511. orderTitle: orderTitle,
  15512. orderType: orderType,
  15513. orderAmount: orderAmount,
  15514. payTime: payTime,
  15515. payStatus: payStatus,
  15516. createTime: createTime,
  15517. updateTime: updateTime,
  15518. );
  15519. factory ManageOrderDetailDTO.fromJson(Map<String, dynamic> map) {
  15520. return ManageOrderDetailDTO(
  15521. code: map['Code'],
  15522. orderUserName: map['OrderUserName'],
  15523. orderUserCode: map['OrderUserCode'],
  15524. productCode: map['ProductCode'],
  15525. tPORderCode: map['TPORderCode'],
  15526. orderTitle: map['OrderTitle'],
  15527. orderType: OrderTypeEnum.values.firstWhere((e) => e.index == map['OrderType']),
  15528. orderAmount: double.parse(map['OrderAmount'].toString()),
  15529. payTime: map['PayTime'] != null ? DateTime.parse(map['PayTime']) : null,
  15530. payStatus: PayStatusEnum.values.firstWhere((e) => e.index == map['PayStatus']),
  15531. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  15532. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  15533. );
  15534. }
  15535. Map<String, dynamic> toJson() {
  15536. final map = super.toJson();
  15537. return map;
  15538. }
  15539. }
  15540. class ManageOrganizationDTO extends OrganizationDTO{
  15541. String? countryName;
  15542. String? provinceName;
  15543. String? cityName;
  15544. String? countryCode;
  15545. String? provinceCode;
  15546. String? cityCode;
  15547. String? directorName;
  15548. String? adminFullName;
  15549. ManageOrganizationDTO({
  15550. this.countryName,
  15551. this.provinceName,
  15552. this.cityName,
  15553. this.countryCode,
  15554. this.provinceCode,
  15555. this.cityCode,
  15556. this.directorName,
  15557. this.adminFullName,
  15558. String? description,
  15559. String? rootCode,
  15560. OrganizationTypeEnum organizationType = OrganizationTypeEnum.Corporation,
  15561. List<String>? authorityGroups,
  15562. String? nautica,
  15563. OrganizationStateEnum state = OrganizationStateEnum.WaitAudit,
  15564. List<String>? directors,
  15565. List<String>? assignedAdmins,
  15566. String? patientSettingJson,
  15567. String? examSettingJson,
  15568. String? consultationSettingJson,
  15569. String? patientSettingVersion,
  15570. String? examSettingVersion,
  15571. String? consultationSettingVersion,
  15572. String? parentOrganizationName,
  15573. String? regionCode,
  15574. String? parentCode,
  15575. String? logoUrl,
  15576. OrganizationPatientTypeEnum patientType = OrganizationPatientTypeEnum.Person,
  15577. bool isinvented = false,
  15578. List<SettingDTOClass>? settings,
  15579. List<String>? diagnosisModules,
  15580. bool isEncryptedShow = false,
  15581. double referralLimitHours = 0,
  15582. List<String>? referralOrganizationCodes,
  15583. List<ReferralOrganizationDTO>? referralOrganizations,
  15584. String? organizationCode,
  15585. String? organizationName,
  15586. String? shortCode,
  15587. DateTime? createTime,
  15588. DateTime? updateTime,
  15589. }) : super(
  15590. description: description,
  15591. rootCode: rootCode,
  15592. organizationType: organizationType,
  15593. authorityGroups: authorityGroups,
  15594. nautica: nautica,
  15595. state: state,
  15596. directors: directors,
  15597. assignedAdmins: assignedAdmins,
  15598. patientSettingJson: patientSettingJson,
  15599. examSettingJson: examSettingJson,
  15600. consultationSettingJson: consultationSettingJson,
  15601. patientSettingVersion: patientSettingVersion,
  15602. examSettingVersion: examSettingVersion,
  15603. consultationSettingVersion: consultationSettingVersion,
  15604. parentOrganizationName: parentOrganizationName,
  15605. regionCode: regionCode,
  15606. parentCode: parentCode,
  15607. logoUrl: logoUrl,
  15608. patientType: patientType,
  15609. isinvented: isinvented,
  15610. settings: settings,
  15611. diagnosisModules: diagnosisModules,
  15612. isEncryptedShow: isEncryptedShow,
  15613. referralLimitHours: referralLimitHours,
  15614. referralOrganizationCodes: referralOrganizationCodes,
  15615. referralOrganizations: referralOrganizations,
  15616. organizationCode: organizationCode,
  15617. organizationName: organizationName,
  15618. shortCode: shortCode,
  15619. createTime: createTime,
  15620. updateTime: updateTime,
  15621. );
  15622. factory ManageOrganizationDTO.fromJson(Map<String, dynamic> map) {
  15623. return ManageOrganizationDTO(
  15624. countryName: map['CountryName'],
  15625. provinceName: map['ProvinceName'],
  15626. cityName: map['CityName'],
  15627. countryCode: map['CountryCode'],
  15628. provinceCode: map['ProvinceCode'],
  15629. cityCode: map['CityCode'],
  15630. directorName: map['DirectorName'],
  15631. adminFullName: map['AdminFullName'],
  15632. description: map['Description'],
  15633. rootCode: map['RootCode'],
  15634. organizationType: OrganizationTypeEnum.values.firstWhere((e) => e.index == map['OrganizationType']),
  15635. authorityGroups: map['AuthorityGroups']?.cast<String>().toList(),
  15636. nautica: map['Nautica'],
  15637. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  15638. directors: map['Directors']?.cast<String>().toList(),
  15639. assignedAdmins: map['AssignedAdmins']?.cast<String>().toList(),
  15640. patientSettingJson: map['PatientSettingJson'],
  15641. examSettingJson: map['ExamSettingJson'],
  15642. consultationSettingJson: map['ConsultationSettingJson'],
  15643. patientSettingVersion: map['PatientSettingVersion'],
  15644. examSettingVersion: map['ExamSettingVersion'],
  15645. consultationSettingVersion: map['ConsultationSettingVersion'],
  15646. parentOrganizationName: map['ParentOrganizationName'],
  15647. regionCode: map['RegionCode'],
  15648. parentCode: map['ParentCode'],
  15649. logoUrl: map['LogoUrl'],
  15650. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  15651. isinvented: map['Isinvented'],
  15652. settings: map['Settings'] != null ? (map['Settings'] as List).map((e)=>SettingDTOClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  15653. diagnosisModules: map['DiagnosisModules']?.cast<String>().toList(),
  15654. isEncryptedShow: map['IsEncryptedShow'],
  15655. referralLimitHours: double.parse(map['ReferralLimitHours'].toString()),
  15656. referralOrganizationCodes: map['ReferralOrganizationCodes']?.cast<String>().toList(),
  15657. referralOrganizations: map['ReferralOrganizations'] != null ? (map['ReferralOrganizations'] as List).map((e)=>ReferralOrganizationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15658. organizationCode: map['OrganizationCode'],
  15659. organizationName: map['OrganizationName'],
  15660. shortCode: map['ShortCode'],
  15661. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  15662. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  15663. );
  15664. }
  15665. Map<String, dynamic> toJson() {
  15666. final map = super.toJson();
  15667. if(countryName != null)
  15668. map['CountryName'] = countryName;
  15669. if(provinceName != null)
  15670. map['ProvinceName'] = provinceName;
  15671. if(cityName != null)
  15672. map['CityName'] = cityName;
  15673. if(countryCode != null)
  15674. map['CountryCode'] = countryCode;
  15675. if(provinceCode != null)
  15676. map['ProvinceCode'] = provinceCode;
  15677. if(cityCode != null)
  15678. map['CityCode'] = cityCode;
  15679. if(directorName != null)
  15680. map['DirectorName'] = directorName;
  15681. if(adminFullName != null)
  15682. map['AdminFullName'] = adminFullName;
  15683. return map;
  15684. }
  15685. }
  15686. class ManageOrganizationUserDTO {
  15687. String? userCode;
  15688. String? userName;
  15689. String? phone;
  15690. String? email;
  15691. String? nickName;
  15692. String? fullName;
  15693. String? hospitalName;
  15694. ManageOrganizationUserDTO({
  15695. this.userCode,
  15696. this.userName,
  15697. this.phone,
  15698. this.email,
  15699. this.nickName,
  15700. this.fullName,
  15701. this.hospitalName,
  15702. });
  15703. factory ManageOrganizationUserDTO.fromJson(Map<String, dynamic> map) {
  15704. return ManageOrganizationUserDTO(
  15705. userCode: map['UserCode'],
  15706. userName: map['UserName'],
  15707. phone: map['Phone'],
  15708. email: map['Email'],
  15709. nickName: map['NickName'],
  15710. fullName: map['FullName'],
  15711. hospitalName: map['HospitalName'],
  15712. );
  15713. }
  15714. Map<String, dynamic> toJson() {
  15715. final map = Map<String, dynamic>();
  15716. if(userCode != null) {
  15717. map['UserCode'] = userCode;
  15718. }
  15719. if(userName != null) {
  15720. map['UserName'] = userName;
  15721. }
  15722. if(phone != null) {
  15723. map['Phone'] = phone;
  15724. }
  15725. if(email != null) {
  15726. map['Email'] = email;
  15727. }
  15728. if(nickName != null) {
  15729. map['NickName'] = nickName;
  15730. }
  15731. if(fullName != null) {
  15732. map['FullName'] = fullName;
  15733. }
  15734. if(hospitalName != null) {
  15735. map['HospitalName'] = hospitalName;
  15736. }
  15737. return map;
  15738. }
  15739. }
  15740. class ManagePaymentRecordDTO extends PaymentRecordDTO{
  15741. ManagePaymentRecordDTO({
  15742. String? orderCode,
  15743. double payAmount = 0,
  15744. DateTime? payTime,
  15745. PayStatusEnum payStatus = PayStatusEnum.NoPay,
  15746. PayTypeEnum payType = PayTypeEnum.Alipay_PAGE,
  15747. String? payReqContent,
  15748. String? payResContent,
  15749. DateTime? createTime,
  15750. DateTime? updateTime,
  15751. }) : super(
  15752. orderCode: orderCode,
  15753. payAmount: payAmount,
  15754. payTime: payTime,
  15755. payStatus: payStatus,
  15756. payType: payType,
  15757. payReqContent: payReqContent,
  15758. payResContent: payResContent,
  15759. createTime: createTime,
  15760. updateTime: updateTime,
  15761. );
  15762. factory ManagePaymentRecordDTO.fromJson(Map<String, dynamic> map) {
  15763. return ManagePaymentRecordDTO(
  15764. orderCode: map['OrderCode'],
  15765. payAmount: double.parse(map['PayAmount'].toString()),
  15766. payTime: map['PayTime'] != null ? DateTime.parse(map['PayTime']) : null,
  15767. payStatus: PayStatusEnum.values.firstWhere((e) => e.index == map['PayStatus']),
  15768. payType: PayTypeEnum.values.firstWhere((e) => e.index == map['PayType']),
  15769. payReqContent: map['PayReqContent'],
  15770. payResContent: map['PayResContent'],
  15771. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  15772. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  15773. );
  15774. }
  15775. Map<String, dynamic> toJson() {
  15776. final map = super.toJson();
  15777. return map;
  15778. }
  15779. }
  15780. class ManageRoleInfoDTO extends RoleDTO{
  15781. List<FeatureDetail>? featureList;
  15782. ManageRoleInfoDTO({
  15783. this.featureList,
  15784. RoleShowTypeEnum roleShowType = RoleShowTypeEnum.NotShow,
  15785. String? iConUrl,
  15786. String? colorStart,
  15787. String? colorEnd,
  15788. RoleQualificationEnum roleQualification = RoleQualificationEnum.NoNeed,
  15789. String? userGroupCode,
  15790. RoleShowTypeEnum fieldShowType = RoleShowTypeEnum.NotShow,
  15791. List<String>? fieldList,
  15792. String? roleCode,
  15793. String? roleName,
  15794. String? description,
  15795. List<UserRoleLanguageConfigDTO>? languageConfigs,
  15796. DateTime? createTime,
  15797. DateTime? updateTime,
  15798. }) : super(
  15799. roleShowType: roleShowType,
  15800. iConUrl: iConUrl,
  15801. colorStart: colorStart,
  15802. colorEnd: colorEnd,
  15803. roleQualification: roleQualification,
  15804. userGroupCode: userGroupCode,
  15805. fieldShowType: fieldShowType,
  15806. fieldList: fieldList,
  15807. roleCode: roleCode,
  15808. roleName: roleName,
  15809. description: description,
  15810. languageConfigs: languageConfigs,
  15811. createTime: createTime,
  15812. updateTime: updateTime,
  15813. );
  15814. factory ManageRoleInfoDTO.fromJson(Map<String, dynamic> map) {
  15815. return ManageRoleInfoDTO(
  15816. featureList: map['FeatureList'] != null ? (map['FeatureList'] as List).map((e)=>FeatureDetail.fromJson(e as Map<String,dynamic>)).toList() : null,
  15817. roleShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['RoleShowType']),
  15818. iConUrl: map['IConUrl'],
  15819. colorStart: map['ColorStart'],
  15820. colorEnd: map['ColorEnd'],
  15821. roleQualification: RoleQualificationEnum.values.firstWhere((e) => e.index == map['RoleQualification']),
  15822. userGroupCode: map['UserGroupCode'],
  15823. fieldShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['FieldShowType']),
  15824. fieldList: map['FieldList']?.cast<String>().toList(),
  15825. roleCode: map['RoleCode'],
  15826. roleName: map['RoleName'],
  15827. description: map['Description'],
  15828. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15829. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  15830. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  15831. );
  15832. }
  15833. Map<String, dynamic> toJson() {
  15834. final map = super.toJson();
  15835. if(featureList != null)
  15836. map['FeatureList'] = featureList;
  15837. return map;
  15838. }
  15839. }
  15840. class BaseThesaurusItemBaseDTO<T> {
  15841. String? id;
  15842. String? label;
  15843. String? fatherCode;
  15844. String? thesaurusItemDescription;
  15845. String? thesaurusItemConclusion;
  15846. ThesaurusItemTypeEnum type;
  15847. List<T>? children;
  15848. bool isExistThesaurusItem;
  15849. BaseThesaurusItemBaseDTO({
  15850. this.id,
  15851. this.label,
  15852. this.fatherCode,
  15853. this.thesaurusItemDescription,
  15854. this.thesaurusItemConclusion,
  15855. this.type = ThesaurusItemTypeEnum.Classification,
  15856. this.children,
  15857. this.isExistThesaurusItem = false,
  15858. });
  15859. factory BaseThesaurusItemBaseDTO.fromJson(Map<String, dynamic> map) {
  15860. List<T> childrenList = [];
  15861. if (map['Children'] != null) {
  15862. childrenList.addAll(
  15863. (map['Children'] as List).map((e) => FJsonConvert.fromJson<T>(e)!));
  15864. }
  15865. return BaseThesaurusItemBaseDTO(
  15866. id: map['Id'],
  15867. label: map['Label'],
  15868. fatherCode: map['FatherCode'],
  15869. thesaurusItemDescription: map['ThesaurusItemDescription'],
  15870. thesaurusItemConclusion: map['ThesaurusItemConclusion'],
  15871. type: ThesaurusItemTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  15872. children: childrenList,
  15873. isExistThesaurusItem: map['IsExistThesaurusItem'],
  15874. );
  15875. }
  15876. Map<String, dynamic> toJson() {
  15877. final map = Map<String, dynamic>();
  15878. if(id != null) {
  15879. map['Id'] = id;
  15880. }
  15881. if(label != null) {
  15882. map['Label'] = label;
  15883. }
  15884. if(fatherCode != null) {
  15885. map['FatherCode'] = fatherCode;
  15886. }
  15887. if(thesaurusItemDescription != null) {
  15888. map['ThesaurusItemDescription'] = thesaurusItemDescription;
  15889. }
  15890. if(thesaurusItemConclusion != null) {
  15891. map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
  15892. }
  15893. map['Type'] = type.index;
  15894. if(children != null) {
  15895. map['Children'] = children;
  15896. }
  15897. map['IsExistThesaurusItem'] = isExistThesaurusItem;
  15898. return map;
  15899. }
  15900. }
  15901. class ManageThesaurusItemDTO extends BaseThesaurusItemBaseDTO<ManageThesaurusItemDTO>{
  15902. ManageThesaurusItemDTO(
  15903. );
  15904. factory ManageThesaurusItemDTO.fromJson(Map<String, dynamic> map) {
  15905. return ManageThesaurusItemDTO(
  15906. );
  15907. }
  15908. Map<String, dynamic> toJson() {
  15909. final map = super.toJson();
  15910. return map;
  15911. }
  15912. }
  15913. class ManageUpdateProductDTO extends UpdateProductDTO{
  15914. ManageUpdateProductDTO({
  15915. bool isSuccess = false,
  15916. }) : super(
  15917. isSuccess: isSuccess,
  15918. );
  15919. factory ManageUpdateProductDTO.fromJson(Map<String, dynamic> map) {
  15920. return ManageUpdateProductDTO(
  15921. isSuccess: map['IsSuccess'],
  15922. );
  15923. }
  15924. Map<String, dynamic> toJson() {
  15925. final map = super.toJson();
  15926. return map;
  15927. }
  15928. }
  15929. class OnlineTokenDTO extends TokenDTO{
  15930. String? ipAddress;
  15931. OnlineTokenDTO({
  15932. this.ipAddress,
  15933. int version = 0,
  15934. String? code,
  15935. AccountType accountType = AccountType.Admin,
  15936. String? accountName,
  15937. Platform platform = Platform.Windows,
  15938. LoginSource loginSource = LoginSource.PC,
  15939. String? clientId,
  15940. String? loginServer,
  15941. DateTime? createTime,
  15942. DateTime? expiration,
  15943. int ipValue = 0,
  15944. bool isOnline = false,
  15945. String? installVersion,
  15946. bool isOldPlatform = false,
  15947. }) : super(
  15948. version: version,
  15949. code: code,
  15950. accountType: accountType,
  15951. accountName: accountName,
  15952. platform: platform,
  15953. loginSource: loginSource,
  15954. clientId: clientId,
  15955. loginServer: loginServer,
  15956. createTime: createTime,
  15957. expiration: expiration,
  15958. ipValue: ipValue,
  15959. isOnline: isOnline,
  15960. installVersion: installVersion,
  15961. isOldPlatform: isOldPlatform,
  15962. );
  15963. factory OnlineTokenDTO.fromJson(Map<String, dynamic> map) {
  15964. return OnlineTokenDTO(
  15965. ipAddress: map['IpAddress'],
  15966. version: map['Version'],
  15967. code: map['Code'],
  15968. accountType: AccountType.values.firstWhere((e) => e.index == map['AccountType']),
  15969. accountName: map['AccountName'],
  15970. platform: Platform.values.firstWhere((e) => e.index == map['Platform']),
  15971. loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
  15972. clientId: map['ClientId'],
  15973. loginServer: map['LoginServer'],
  15974. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  15975. expiration: map['Expiration'] != null ? DateTime.parse(map['Expiration']) : null,
  15976. ipValue: map['IpValue'],
  15977. isOnline: map['IsOnline'],
  15978. installVersion: map['InstallVersion'],
  15979. isOldPlatform: map['IsOldPlatform'],
  15980. );
  15981. }
  15982. Map<String, dynamic> toJson() {
  15983. final map = super.toJson();
  15984. if(ipAddress != null)
  15985. map['IpAddress'] = ipAddress;
  15986. return map;
  15987. }
  15988. }
  15989. class SelectParentItemDTO extends SelectItemDTO{
  15990. String? parentCode;
  15991. SelectParentItemDTO({
  15992. this.parentCode,
  15993. String? key,
  15994. String? value,
  15995. String? language,
  15996. }) : super(
  15997. key: key,
  15998. value: value,
  15999. language: language,
  16000. );
  16001. factory SelectParentItemDTO.fromJson(Map<String, dynamic> map) {
  16002. return SelectParentItemDTO(
  16003. parentCode: map['ParentCode'],
  16004. key: map['Key'],
  16005. value: map['Value'],
  16006. language: map['Language'],
  16007. );
  16008. }
  16009. Map<String, dynamic> toJson() {
  16010. final map = super.toJson();
  16011. if(parentCode != null)
  16012. map['ParentCode'] = parentCode;
  16013. return map;
  16014. }
  16015. }
  16016. class SystemConfigDTO extends BaseDTO{
  16017. String? code;
  16018. String? configKey;
  16019. String? configContent;
  16020. String? configPageControls;
  16021. SystemConfigDTO({
  16022. this.code,
  16023. this.configKey,
  16024. this.configContent,
  16025. this.configPageControls,
  16026. DateTime? createTime,
  16027. DateTime? updateTime,
  16028. }) : super(
  16029. createTime: createTime,
  16030. updateTime: updateTime,
  16031. );
  16032. factory SystemConfigDTO.fromJson(Map<String, dynamic> map) {
  16033. return SystemConfigDTO(
  16034. code: map['Code'],
  16035. configKey: map['ConfigKey'],
  16036. configContent: map['ConfigContent'],
  16037. configPageControls: map['ConfigPageControls'],
  16038. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  16039. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  16040. );
  16041. }
  16042. Map<String, dynamic> toJson() {
  16043. final map = super.toJson();
  16044. if(code != null)
  16045. map['Code'] = code;
  16046. if(configKey != null)
  16047. map['ConfigKey'] = configKey;
  16048. if(configContent != null)
  16049. map['ConfigContent'] = configContent;
  16050. if(configPageControls != null)
  16051. map['ConfigPageControls'] = configPageControls;
  16052. return map;
  16053. }
  16054. }
  16055. class LiveBoardDataDTO {
  16056. String? userCode;
  16057. String? boardData;
  16058. DateTime? interactiveTime;
  16059. LiveBoardDataDTO({
  16060. this.userCode,
  16061. this.boardData,
  16062. this.interactiveTime,
  16063. });
  16064. factory LiveBoardDataDTO.fromJson(Map<String, dynamic> map) {
  16065. return LiveBoardDataDTO(
  16066. userCode: map['UserCode'],
  16067. boardData: map['BoardData'],
  16068. interactiveTime: map['InteractiveTime'] != null ? DateTime.parse(map['InteractiveTime']) : null,
  16069. );
  16070. }
  16071. Map<String, dynamic> toJson() {
  16072. final map = Map<String, dynamic>();
  16073. if(userCode != null) {
  16074. map['UserCode'] = userCode;
  16075. }
  16076. if(boardData != null) {
  16077. map['BoardData'] = boardData;
  16078. }
  16079. if(interactiveTime != null) {
  16080. map['InteractiveTime'] = JsonRpcUtils.dateFormat(interactiveTime!);
  16081. }
  16082. return map;
  16083. }
  16084. }
  16085. class LiveMemberStatusDTO {
  16086. String? code;
  16087. String? liveRoomCode;
  16088. LiveMemberStatus status;
  16089. UserStatusEnum userStatusType;
  16090. String? loginServerUrl;
  16091. LoginSource loginSource;
  16092. LiveMemberStatusDTO({
  16093. this.code,
  16094. this.liveRoomCode,
  16095. this.status = LiveMemberStatus.Default,
  16096. this.userStatusType = UserStatusEnum.NotOnline,
  16097. this.loginServerUrl,
  16098. this.loginSource = LoginSource.PC,
  16099. });
  16100. factory LiveMemberStatusDTO.fromJson(Map<String, dynamic> map) {
  16101. return LiveMemberStatusDTO(
  16102. code: map['Code'],
  16103. liveRoomCode: map['LiveRoomCode'],
  16104. status: LiveMemberStatus.values.firstWhere((e) => e.index == map['Status']),
  16105. userStatusType: UserStatusEnum.values.firstWhere((e) => e.index == map['UserStatusType']),
  16106. loginServerUrl: map['LoginServerUrl'],
  16107. loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
  16108. );
  16109. }
  16110. Map<String, dynamic> toJson() {
  16111. final map = Map<String, dynamic>();
  16112. if(code != null) {
  16113. map['Code'] = code;
  16114. }
  16115. if(liveRoomCode != null) {
  16116. map['LiveRoomCode'] = liveRoomCode;
  16117. }
  16118. map['Status'] = status.index;
  16119. map['UserStatusType'] = userStatusType.index;
  16120. if(loginServerUrl != null) {
  16121. map['LoginServerUrl'] = loginServerUrl;
  16122. }
  16123. map['LoginSource'] = loginSource.index;
  16124. return map;
  16125. }
  16126. }
  16127. class LiveRoomDTO {
  16128. String? liveRoomCode;
  16129. String? name;
  16130. String? relatedCode;
  16131. String? initiatorCode;
  16132. int rtcRoomId;
  16133. int sdkAppId;
  16134. BusinessModuleEnum businessModule;
  16135. LiveRoomStatus status;
  16136. List<LiveMemberDTO>? deviceInfos;
  16137. List<LiveMemberDTO>? userInfos;
  16138. List<LiveViewerDTO>? viewerInfos;
  16139. ShareInfoDTO? shareInfo;
  16140. LiveRoomDTO({
  16141. this.liveRoomCode,
  16142. this.name,
  16143. this.relatedCode,
  16144. this.initiatorCode,
  16145. this.rtcRoomId = 0,
  16146. this.sdkAppId = 0,
  16147. this.businessModule = BusinessModuleEnum.RemoteDiagnosis,
  16148. this.status = LiveRoomStatus.Default,
  16149. this.deviceInfos,
  16150. this.userInfos,
  16151. this.viewerInfos,
  16152. this.shareInfo,
  16153. });
  16154. factory LiveRoomDTO.fromJson(Map<String, dynamic> map) {
  16155. return LiveRoomDTO(
  16156. liveRoomCode: map['LiveRoomCode'],
  16157. name: map['Name'],
  16158. relatedCode: map['RelatedCode'],
  16159. initiatorCode: map['InitiatorCode'],
  16160. rtcRoomId: map['RtcRoomId'],
  16161. sdkAppId: map['SdkAppId'],
  16162. businessModule: BusinessModuleEnum.values.firstWhere((e) => e.index == map['BusinessModule']),
  16163. status: LiveRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  16164. deviceInfos: map['DeviceInfos'] != null ? (map['DeviceInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16165. userInfos: map['UserInfos'] != null ? (map['UserInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16166. viewerInfos: map['ViewerInfos'] != null ? (map['ViewerInfos'] as List).map((e)=>LiveViewerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16167. shareInfo: map['ShareInfo'] != null ? ShareInfoDTO.fromJson(map['ShareInfo']) : null,
  16168. );
  16169. }
  16170. Map<String, dynamic> toJson() {
  16171. final map = Map<String, dynamic>();
  16172. if(liveRoomCode != null) {
  16173. map['LiveRoomCode'] = liveRoomCode;
  16174. }
  16175. if(name != null) {
  16176. map['Name'] = name;
  16177. }
  16178. if(relatedCode != null) {
  16179. map['RelatedCode'] = relatedCode;
  16180. }
  16181. if(initiatorCode != null) {
  16182. map['InitiatorCode'] = initiatorCode;
  16183. }
  16184. map['RtcRoomId'] = rtcRoomId;
  16185. map['SdkAppId'] = sdkAppId;
  16186. map['BusinessModule'] = businessModule.index;
  16187. map['Status'] = status.index;
  16188. if(deviceInfos != null) {
  16189. map['DeviceInfos'] = deviceInfos;
  16190. }
  16191. if(userInfos != null) {
  16192. map['UserInfos'] = userInfos;
  16193. }
  16194. if(viewerInfos != null) {
  16195. map['ViewerInfos'] = viewerInfos;
  16196. }
  16197. if(shareInfo != null) {
  16198. map['ShareInfo'] = shareInfo;
  16199. }
  16200. return map;
  16201. }
  16202. }
  16203. class DownloadFileInfoDTO {
  16204. List<FileUploadInfoDTO>? fileUploadInfos;
  16205. String? folderCode;
  16206. String? fileName;
  16207. DownloadFileInfoDTO({
  16208. this.fileUploadInfos,
  16209. this.folderCode,
  16210. this.fileName,
  16211. });
  16212. factory DownloadFileInfoDTO.fromJson(Map<String, dynamic> map) {
  16213. return DownloadFileInfoDTO(
  16214. fileUploadInfos: map['FileUploadInfos'] != null ? (map['FileUploadInfos'] as List).map((e)=>FileUploadInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16215. folderCode: map['FolderCode'],
  16216. fileName: map['FileName'],
  16217. );
  16218. }
  16219. Map<String, dynamic> toJson() {
  16220. final map = Map<String, dynamic>();
  16221. if(fileUploadInfos != null) {
  16222. map['FileUploadInfos'] = fileUploadInfos;
  16223. }
  16224. if(folderCode != null) {
  16225. map['FolderCode'] = folderCode;
  16226. }
  16227. if(fileName != null) {
  16228. map['FileName'] = fileName;
  16229. }
  16230. return map;
  16231. }
  16232. }
  16233. class ConvertFileInfoDTO {
  16234. String? recordCode;
  16235. String? filePath;
  16236. String? folderCode;
  16237. UploadFileTypeEnum fileType;
  16238. ConvertFileInfoDTO({
  16239. this.recordCode,
  16240. this.filePath,
  16241. this.folderCode,
  16242. this.fileType = UploadFileTypeEnum.Unknown,
  16243. });
  16244. factory ConvertFileInfoDTO.fromJson(Map<String, dynamic> map) {
  16245. return ConvertFileInfoDTO(
  16246. recordCode: map['RecordCode'],
  16247. filePath: map['FilePath'],
  16248. folderCode: map['FolderCode'],
  16249. fileType: UploadFileTypeEnum.values.firstWhere((e) => e.index == map['FileType']),
  16250. );
  16251. }
  16252. Map<String, dynamic> toJson() {
  16253. final map = Map<String, dynamic>();
  16254. if(recordCode != null) {
  16255. map['RecordCode'] = recordCode;
  16256. }
  16257. if(filePath != null) {
  16258. map['FilePath'] = filePath;
  16259. }
  16260. if(folderCode != null) {
  16261. map['FolderCode'] = folderCode;
  16262. }
  16263. map['FileType'] = fileType.index;
  16264. return map;
  16265. }
  16266. }
  16267. class LabConvertStateDTO {
  16268. String? code;
  16269. String? creatorCode;
  16270. String? recordCode;
  16271. bool isTemplate;
  16272. DateTime? lastExecuteTime;
  16273. int errorCount;
  16274. List<DownloadFileInfoDTO>? downloadErrorFiles;
  16275. List<ConvertFileInfoDTO>? convertErrorFiles;
  16276. LabConvertStateDTO({
  16277. this.code,
  16278. this.creatorCode,
  16279. this.recordCode,
  16280. this.isTemplate = false,
  16281. this.lastExecuteTime,
  16282. this.errorCount = 0,
  16283. this.downloadErrorFiles,
  16284. this.convertErrorFiles,
  16285. });
  16286. factory LabConvertStateDTO.fromJson(Map<String, dynamic> map) {
  16287. return LabConvertStateDTO(
  16288. code: map['Code'],
  16289. creatorCode: map['CreatorCode'],
  16290. recordCode: map['RecordCode'],
  16291. isTemplate: map['IsTemplate'],
  16292. lastExecuteTime: map['LastExecuteTime'] != null ? DateTime.parse(map['LastExecuteTime']) : null,
  16293. errorCount: map['ErrorCount'],
  16294. downloadErrorFiles: map['DownloadErrorFiles'] != null ? (map['DownloadErrorFiles'] as List).map((e)=>DownloadFileInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16295. convertErrorFiles: map['ConvertErrorFiles'] != null ? (map['ConvertErrorFiles'] as List).map((e)=>ConvertFileInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16296. );
  16297. }
  16298. Map<String, dynamic> toJson() {
  16299. final map = Map<String, dynamic>();
  16300. if(code != null) {
  16301. map['Code'] = code;
  16302. }
  16303. if(creatorCode != null) {
  16304. map['CreatorCode'] = creatorCode;
  16305. }
  16306. if(recordCode != null) {
  16307. map['RecordCode'] = recordCode;
  16308. }
  16309. map['IsTemplate'] = isTemplate;
  16310. if(lastExecuteTime != null) {
  16311. map['LastExecuteTime'] = JsonRpcUtils.dateFormat(lastExecuteTime!);
  16312. }
  16313. map['ErrorCount'] = errorCount;
  16314. if(downloadErrorFiles != null) {
  16315. map['DownloadErrorFiles'] = downloadErrorFiles;
  16316. }
  16317. if(convertErrorFiles != null) {
  16318. map['ConvertErrorFiles'] = convertErrorFiles;
  16319. }
  16320. return map;
  16321. }
  16322. }
  16323. class GradingProtectionConfigDTO {
  16324. String? code;
  16325. String? name;
  16326. int configType;
  16327. String? value;
  16328. GradingProtectionConfigDTO({
  16329. this.code,
  16330. this.name,
  16331. this.configType = 0,
  16332. this.value,
  16333. });
  16334. factory GradingProtectionConfigDTO.fromJson(Map<String, dynamic> map) {
  16335. return GradingProtectionConfigDTO(
  16336. code: map['Code'],
  16337. name: map['Name'],
  16338. configType: map['ConfigType'],
  16339. value: map['Value'],
  16340. );
  16341. }
  16342. Map<String, dynamic> toJson() {
  16343. final map = Map<String, dynamic>();
  16344. if(code != null) {
  16345. map['Code'] = code;
  16346. }
  16347. if(name != null) {
  16348. map['Name'] = name;
  16349. }
  16350. map['ConfigType'] = configType;
  16351. if(value != null) {
  16352. map['Value'] = value;
  16353. }
  16354. return map;
  16355. }
  16356. }
  16357. class DistributedServerInfoDTO extends BaseDTO{
  16358. String? serverCode;
  16359. bool isMaster;
  16360. String? name;
  16361. String? description;
  16362. bool enable;
  16363. DistributedServerTypeEnum serverType;
  16364. String? serverUrl;
  16365. String? lat;
  16366. String? lng;
  16367. List<IPAddressInfoDTO>? assignClientIPList;
  16368. int rTCStartingRoomId;
  16369. String? shareCodePrefix;
  16370. DistributedServerInfoDTO({
  16371. this.serverCode,
  16372. this.isMaster = false,
  16373. this.name,
  16374. this.description,
  16375. this.enable = false,
  16376. this.serverType = DistributedServerTypeEnum.Official,
  16377. this.serverUrl,
  16378. this.lat,
  16379. this.lng,
  16380. this.assignClientIPList,
  16381. this.rTCStartingRoomId = 0,
  16382. this.shareCodePrefix,
  16383. DateTime? createTime,
  16384. DateTime? updateTime,
  16385. }) : super(
  16386. createTime: createTime,
  16387. updateTime: updateTime,
  16388. );
  16389. factory DistributedServerInfoDTO.fromJson(Map<String, dynamic> map) {
  16390. return DistributedServerInfoDTO(
  16391. serverCode: map['ServerCode'],
  16392. isMaster: map['IsMaster'],
  16393. name: map['Name'],
  16394. description: map['Description'],
  16395. enable: map['Enable'],
  16396. serverType: DistributedServerTypeEnum.values.firstWhere((e) => e.index == map['ServerType']),
  16397. serverUrl: map['ServerUrl'],
  16398. lat: map['Lat'],
  16399. lng: map['Lng'],
  16400. assignClientIPList: map['AssignClientIPList'] != null ? (map['AssignClientIPList'] as List).map((e)=>IPAddressInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16401. rTCStartingRoomId: map['RTCStartingRoomId'],
  16402. shareCodePrefix: map['ShareCodePrefix'],
  16403. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  16404. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  16405. );
  16406. }
  16407. Map<String, dynamic> toJson() {
  16408. final map = super.toJson();
  16409. if(serverCode != null)
  16410. map['ServerCode'] = serverCode;
  16411. map['IsMaster'] = isMaster;
  16412. if(name != null)
  16413. map['Name'] = name;
  16414. if(description != null)
  16415. map['Description'] = description;
  16416. map['Enable'] = enable;
  16417. map['ServerType'] = serverType.index;
  16418. if(serverUrl != null)
  16419. map['ServerUrl'] = serverUrl;
  16420. if(lat != null)
  16421. map['Lat'] = lat;
  16422. if(lng != null)
  16423. map['Lng'] = lng;
  16424. if(assignClientIPList != null)
  16425. map['AssignClientIPList'] = assignClientIPList;
  16426. map['RTCStartingRoomId'] = rTCStartingRoomId;
  16427. if(shareCodePrefix != null)
  16428. map['ShareCodePrefix'] = shareCodePrefix;
  16429. return map;
  16430. }
  16431. }
  16432. class DiagnosisResultDTO {
  16433. int index;
  16434. String? diagnosisResult;
  16435. DiagnosisResultDTO({
  16436. this.index = 0,
  16437. this.diagnosisResult,
  16438. });
  16439. factory DiagnosisResultDTO.fromJson(Map<String, dynamic> map) {
  16440. return DiagnosisResultDTO(
  16441. index: map['Index'],
  16442. diagnosisResult: map['DiagnosisResult'],
  16443. );
  16444. }
  16445. Map<String, dynamic> toJson() {
  16446. final map = Map<String, dynamic>();
  16447. map['Index'] = index;
  16448. if(diagnosisResult != null) {
  16449. map['DiagnosisResult'] = diagnosisResult;
  16450. }
  16451. return map;
  16452. }
  16453. }
  16454. class DeviceOutputConfigDTO {
  16455. String? code;
  16456. String? name;
  16457. DeviceVideoOutputTypeEnum deviceVideoOutputType;
  16458. int videoWidth;
  16459. int videoHeight;
  16460. DeviceOutputConfigDTO({
  16461. this.code,
  16462. this.name,
  16463. this.deviceVideoOutputType = DeviceVideoOutputTypeEnum.MergedVideo,
  16464. this.videoWidth = 0,
  16465. this.videoHeight = 0,
  16466. });
  16467. factory DeviceOutputConfigDTO.fromJson(Map<String, dynamic> map) {
  16468. return DeviceOutputConfigDTO(
  16469. code: map['Code'],
  16470. name: map['Name'],
  16471. deviceVideoOutputType: DeviceVideoOutputTypeEnum.values.firstWhere((e) => e.index == map['DeviceVideoOutputType']),
  16472. videoWidth: map['VideoWidth'],
  16473. videoHeight: map['VideoHeight'],
  16474. );
  16475. }
  16476. Map<String, dynamic> toJson() {
  16477. final map = Map<String, dynamic>();
  16478. if(code != null) {
  16479. map['Code'] = code;
  16480. }
  16481. if(name != null) {
  16482. map['Name'] = name;
  16483. }
  16484. map['DeviceVideoOutputType'] = deviceVideoOutputType.index;
  16485. map['VideoWidth'] = videoWidth;
  16486. map['VideoHeight'] = videoHeight;
  16487. return map;
  16488. }
  16489. }
  16490. class ResolutionDTO {
  16491. String? shortCode;
  16492. int videoWidth;
  16493. int videoHeight;
  16494. ResolutionDTO({
  16495. this.shortCode,
  16496. this.videoWidth = 0,
  16497. this.videoHeight = 0,
  16498. });
  16499. factory ResolutionDTO.fromJson(Map<String, dynamic> map) {
  16500. return ResolutionDTO(
  16501. shortCode: map['ShortCode'],
  16502. videoWidth: map['VideoWidth'],
  16503. videoHeight: map['VideoHeight'],
  16504. );
  16505. }
  16506. Map<String, dynamic> toJson() {
  16507. final map = Map<String, dynamic>();
  16508. if(shortCode != null) {
  16509. map['ShortCode'] = shortCode;
  16510. }
  16511. map['VideoWidth'] = videoWidth;
  16512. map['VideoHeight'] = videoHeight;
  16513. return map;
  16514. }
  16515. }
  16516. class BrandModelDetailDTO {
  16517. String? code;
  16518. String? brand;
  16519. String? model;
  16520. List<ResolutionDTO>? resolutions;
  16521. BrandModelDetailDTO({
  16522. this.code,
  16523. this.brand,
  16524. this.model,
  16525. this.resolutions,
  16526. });
  16527. factory BrandModelDetailDTO.fromJson(Map<String, dynamic> map) {
  16528. return BrandModelDetailDTO(
  16529. code: map['Code'],
  16530. brand: map['Brand'],
  16531. model: map['Model'],
  16532. resolutions: map['Resolutions'] != null ? (map['Resolutions'] as List).map((e)=>ResolutionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16533. );
  16534. }
  16535. Map<String, dynamic> toJson() {
  16536. final map = Map<String, dynamic>();
  16537. if(code != null) {
  16538. map['Code'] = code;
  16539. }
  16540. if(brand != null) {
  16541. map['Brand'] = brand;
  16542. }
  16543. if(model != null) {
  16544. map['Model'] = model;
  16545. }
  16546. if(resolutions != null) {
  16547. map['Resolutions'] = resolutions;
  16548. }
  16549. return map;
  16550. }
  16551. }
  16552. class DeviceLiveShareInfoDTO {
  16553. String? deviceCode;
  16554. String? shareUserCode;
  16555. String? shareUserName;
  16556. DateTime? shareTime;
  16557. DeviceLiveShareInfoDTO({
  16558. this.deviceCode,
  16559. this.shareUserCode,
  16560. this.shareUserName,
  16561. this.shareTime,
  16562. });
  16563. factory DeviceLiveShareInfoDTO.fromJson(Map<String, dynamic> map) {
  16564. return DeviceLiveShareInfoDTO(
  16565. deviceCode: map['DeviceCode'],
  16566. shareUserCode: map['ShareUserCode'],
  16567. shareUserName: map['ShareUserName'],
  16568. shareTime: map['ShareTime'] != null ? DateTime.parse(map['ShareTime']) : null,
  16569. );
  16570. }
  16571. Map<String, dynamic> toJson() {
  16572. final map = Map<String, dynamic>();
  16573. if(deviceCode != null) {
  16574. map['DeviceCode'] = deviceCode;
  16575. }
  16576. if(shareUserCode != null) {
  16577. map['ShareUserCode'] = shareUserCode;
  16578. }
  16579. if(shareUserName != null) {
  16580. map['ShareUserName'] = shareUserName;
  16581. }
  16582. if(shareTime != null) {
  16583. map['ShareTime'] = JsonRpcUtils.dateFormat(shareTime!);
  16584. }
  16585. return map;
  16586. }
  16587. }
  16588. class NameItemSettingInfoDTO {
  16589. String? name;
  16590. String? key;
  16591. NameItemSettingInfoDTO({
  16592. this.name,
  16593. this.key,
  16594. });
  16595. factory NameItemSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  16596. return NameItemSettingInfoDTO(
  16597. name: map['Name'],
  16598. key: map['Key'],
  16599. );
  16600. }
  16601. Map<String, dynamic> toJson() {
  16602. final map = Map<String, dynamic>();
  16603. if(name != null) {
  16604. map['Name'] = name;
  16605. }
  16606. if(key != null) {
  16607. map['Key'] = key;
  16608. }
  16609. return map;
  16610. }
  16611. }
  16612. class GroupSettingInfoDTO extends NameItemSettingInfoDTO{
  16613. List<NameItemSettingInfoDTO>? items;
  16614. GroupSettingInfoDTO({
  16615. this.items,
  16616. String? name,
  16617. String? key,
  16618. }) : super(
  16619. name: name,
  16620. key: key,
  16621. );
  16622. factory GroupSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  16623. return GroupSettingInfoDTO(
  16624. items: map['Items'] != null ? (map['Items'] as List).map((e)=>NameItemSettingInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16625. name: map['Name'],
  16626. key: map['Key'],
  16627. );
  16628. }
  16629. Map<String, dynamic> toJson() {
  16630. final map = super.toJson();
  16631. if(items != null)
  16632. map['Items'] = items;
  16633. return map;
  16634. }
  16635. }
  16636. class ListPageSettingInfoDTO extends NameItemSettingInfoDTO{
  16637. List<GroupSettingInfoDTO>? groups;
  16638. ListPageSettingInfoDTO({
  16639. this.groups,
  16640. String? name,
  16641. String? key,
  16642. }) : super(
  16643. name: name,
  16644. key: key,
  16645. );
  16646. factory ListPageSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  16647. return ListPageSettingInfoDTO(
  16648. groups: map['Groups'] != null ? (map['Groups'] as List).map((e)=>GroupSettingInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16649. name: map['Name'],
  16650. key: map['Key'],
  16651. );
  16652. }
  16653. Map<String, dynamic> toJson() {
  16654. final map = super.toJson();
  16655. if(groups != null)
  16656. map['Groups'] = groups;
  16657. return map;
  16658. }
  16659. }
  16660. class SystemSettingInfoDTO {
  16661. String? selectedListPageKey;
  16662. String? selectedGroupKey;
  16663. List<ListPageSettingInfoDTO>? listPages;
  16664. String? applyLicenseResult;
  16665. SystemSettingInfoDTO({
  16666. this.selectedListPageKey,
  16667. this.selectedGroupKey,
  16668. this.listPages,
  16669. this.applyLicenseResult,
  16670. });
  16671. factory SystemSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  16672. return SystemSettingInfoDTO(
  16673. selectedListPageKey: map['SelectedListPageKey'],
  16674. selectedGroupKey: map['SelectedGroupKey'],
  16675. listPages: map['ListPages'] != null ? (map['ListPages'] as List).map((e)=>ListPageSettingInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16676. applyLicenseResult: map['ApplyLicenseResult'],
  16677. );
  16678. }
  16679. Map<String, dynamic> toJson() {
  16680. final map = Map<String, dynamic>();
  16681. if(selectedListPageKey != null) {
  16682. map['SelectedListPageKey'] = selectedListPageKey;
  16683. }
  16684. if(selectedGroupKey != null) {
  16685. map['SelectedGroupKey'] = selectedGroupKey;
  16686. }
  16687. if(listPages != null) {
  16688. map['ListPages'] = listPages;
  16689. }
  16690. if(applyLicenseResult != null) {
  16691. map['ApplyLicenseResult'] = applyLicenseResult;
  16692. }
  16693. return map;
  16694. }
  16695. }
  16696. class CommandSettingInfoDTO extends NameItemSettingInfoDTO{
  16697. String? commandDescription;
  16698. CommandSettingInfoDTO({
  16699. this.commandDescription,
  16700. String? name,
  16701. String? key,
  16702. }) : super(
  16703. name: name,
  16704. key: key,
  16705. );
  16706. factory CommandSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  16707. return CommandSettingInfoDTO(
  16708. commandDescription: map['CommandDescription'],
  16709. name: map['Name'],
  16710. key: map['Key'],
  16711. );
  16712. }
  16713. Map<String, dynamic> toJson() {
  16714. final map = super.toJson();
  16715. if(commandDescription != null)
  16716. map['CommandDescription'] = commandDescription;
  16717. return map;
  16718. }
  16719. }
  16720. class ExtendCommandSettingInfoDTO extends CommandSettingInfoDTO{
  16721. String? additionalDescription;
  16722. String? value;
  16723. ExtendCommandSettingInfoDTO({
  16724. this.additionalDescription,
  16725. this.value,
  16726. String? commandDescription,
  16727. String? name,
  16728. String? key,
  16729. }) : super(
  16730. commandDescription: commandDescription,
  16731. name: name,
  16732. key: key,
  16733. );
  16734. factory ExtendCommandSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  16735. return ExtendCommandSettingInfoDTO(
  16736. additionalDescription: map['AdditionalDescription'],
  16737. value: map['Value'],
  16738. commandDescription: map['CommandDescription'],
  16739. name: map['Name'],
  16740. key: map['Key'],
  16741. );
  16742. }
  16743. Map<String, dynamic> toJson() {
  16744. final map = super.toJson();
  16745. if(additionalDescription != null)
  16746. map['AdditionalDescription'] = additionalDescription;
  16747. if(value != null)
  16748. map['Value'] = value;
  16749. return map;
  16750. }
  16751. }
  16752. class CommandResultInfoDTO extends NameItemSettingInfoDTO{
  16753. String? result;
  16754. CommandResultInfoDTO({
  16755. this.result,
  16756. String? name,
  16757. String? key,
  16758. }) : super(
  16759. name: name,
  16760. key: key,
  16761. );
  16762. factory CommandResultInfoDTO.fromJson(Map<String, dynamic> map) {
  16763. return CommandResultInfoDTO(
  16764. result: map['Result'],
  16765. name: map['Name'],
  16766. key: map['Key'],
  16767. );
  16768. }
  16769. Map<String, dynamic> toJson() {
  16770. final map = super.toJson();
  16771. if(result != null)
  16772. map['Result'] = result;
  16773. return map;
  16774. }
  16775. }
  16776. class FeatureItemInfoDTO extends NameItemSettingInfoDTO{
  16777. String? details;
  16778. String? status;
  16779. FeatureItemInfoDTO({
  16780. this.details,
  16781. this.status,
  16782. String? name,
  16783. String? key,
  16784. }) : super(
  16785. name: name,
  16786. key: key,
  16787. );
  16788. factory FeatureItemInfoDTO.fromJson(Map<String, dynamic> map) {
  16789. return FeatureItemInfoDTO(
  16790. details: map['Details'],
  16791. status: map['Status'],
  16792. name: map['Name'],
  16793. key: map['Key'],
  16794. );
  16795. }
  16796. Map<String, dynamic> toJson() {
  16797. final map = super.toJson();
  16798. if(details != null)
  16799. map['Details'] = details;
  16800. if(status != null)
  16801. map['Status'] = status;
  16802. return map;
  16803. }
  16804. }
  16805. class ApplyLicenseInfoDTO extends NameItemSettingInfoDTO{
  16806. String? applyLicenseDescription;
  16807. ApplyLicenseInfoDTO({
  16808. this.applyLicenseDescription,
  16809. String? name,
  16810. String? key,
  16811. }) : super(
  16812. name: name,
  16813. key: key,
  16814. );
  16815. factory ApplyLicenseInfoDTO.fromJson(Map<String, dynamic> map) {
  16816. return ApplyLicenseInfoDTO(
  16817. applyLicenseDescription: map['ApplyLicenseDescription'],
  16818. name: map['Name'],
  16819. key: map['Key'],
  16820. );
  16821. }
  16822. Map<String, dynamic> toJson() {
  16823. final map = super.toJson();
  16824. if(applyLicenseDescription != null)
  16825. map['ApplyLicenseDescription'] = applyLicenseDescription;
  16826. return map;
  16827. }
  16828. }
  16829. class BoolParameterInfoDTO extends NameItemSettingInfoDTO{
  16830. bool value;
  16831. BoolParameterInfoDTO({
  16832. this.value = false,
  16833. String? name,
  16834. String? key,
  16835. }) : super(
  16836. name: name,
  16837. key: key,
  16838. );
  16839. factory BoolParameterInfoDTO.fromJson(Map<String, dynamic> map) {
  16840. return BoolParameterInfoDTO(
  16841. value: map['Value'],
  16842. name: map['Name'],
  16843. key: map['Key'],
  16844. );
  16845. }
  16846. Map<String, dynamic> toJson() {
  16847. final map = super.toJson();
  16848. map['Value'] = value;
  16849. return map;
  16850. }
  16851. }
  16852. class StringParameterInfoDTO extends NameItemSettingInfoDTO{
  16853. String? value;
  16854. StringParameterInfoDTO({
  16855. this.value,
  16856. String? name,
  16857. String? key,
  16858. }) : super(
  16859. name: name,
  16860. key: key,
  16861. );
  16862. factory StringParameterInfoDTO.fromJson(Map<String, dynamic> map) {
  16863. return StringParameterInfoDTO(
  16864. value: map['Value'],
  16865. name: map['Name'],
  16866. key: map['Key'],
  16867. );
  16868. }
  16869. Map<String, dynamic> toJson() {
  16870. final map = super.toJson();
  16871. if(value != null)
  16872. map['Value'] = value;
  16873. return map;
  16874. }
  16875. }
  16876. class ChoiceParameterInfoDTO extends NameItemSettingInfoDTO{
  16877. String? value;
  16878. List<String>? items;
  16879. ChoiceParameterInfoDTO({
  16880. this.value,
  16881. this.items,
  16882. String? name,
  16883. String? key,
  16884. }) : super(
  16885. name: name,
  16886. key: key,
  16887. );
  16888. factory ChoiceParameterInfoDTO.fromJson(Map<String, dynamic> map) {
  16889. return ChoiceParameterInfoDTO(
  16890. value: map['Value'],
  16891. items: map['Items']?.cast<String>().toList(),
  16892. name: map['Name'],
  16893. key: map['Key'],
  16894. );
  16895. }
  16896. Map<String, dynamic> toJson() {
  16897. final map = super.toJson();
  16898. if(value != null)
  16899. map['Value'] = value;
  16900. if(items != null)
  16901. map['Items'] = items;
  16902. return map;
  16903. }
  16904. }
  16905. class CommandResultPageSettingInfoDTO extends ListPageSettingInfoDTO{
  16906. String? result;
  16907. CommandResultPageSettingInfoDTO({
  16908. this.result,
  16909. List<GroupSettingInfoDTO>? groups,
  16910. String? name,
  16911. String? key,
  16912. }) : super(
  16913. groups: groups,
  16914. name: name,
  16915. key: key,
  16916. );
  16917. factory CommandResultPageSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  16918. return CommandResultPageSettingInfoDTO(
  16919. result: map['Result'],
  16920. groups: map['Groups'] != null ? (map['Groups'] as List).map((e)=>GroupSettingInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  16921. name: map['Name'],
  16922. key: map['Key'],
  16923. );
  16924. }
  16925. Map<String, dynamic> toJson() {
  16926. final map = super.toJson();
  16927. if(result != null)
  16928. map['Result'] = result;
  16929. return map;
  16930. }
  16931. }
  16932. class AdminView {
  16933. String? code;
  16934. String? name;
  16935. AdminView({
  16936. this.code,
  16937. this.name,
  16938. });
  16939. factory AdminView.fromJson(Map<String, dynamic> map) {
  16940. return AdminView(
  16941. code: map['Code'],
  16942. name: map['Name'],
  16943. );
  16944. }
  16945. Map<String, dynamic> toJson() {
  16946. final map = Map<String, dynamic>();
  16947. if(code != null) {
  16948. map['Code'] = code;
  16949. }
  16950. if(name != null) {
  16951. map['Name'] = name;
  16952. }
  16953. return map;
  16954. }
  16955. }
  16956. class BaseInfoView {
  16957. String? code;
  16958. String? name;
  16959. BaseInfoView({
  16960. this.code,
  16961. this.name,
  16962. });
  16963. factory BaseInfoView.fromJson(Map<String, dynamic> map) {
  16964. return BaseInfoView(
  16965. code: map['Code'],
  16966. name: map['Name'],
  16967. );
  16968. }
  16969. Map<String, dynamic> toJson() {
  16970. final map = Map<String, dynamic>();
  16971. if(code != null) {
  16972. map['Code'] = code;
  16973. }
  16974. if(name != null) {
  16975. map['Name'] = name;
  16976. }
  16977. return map;
  16978. }
  16979. }
  16980. class CaseLabelView {
  16981. String? code;
  16982. String? name;
  16983. CaseLabelView({
  16984. this.code,
  16985. this.name,
  16986. });
  16987. factory CaseLabelView.fromJson(Map<String, dynamic> map) {
  16988. return CaseLabelView(
  16989. code: map['Code'],
  16990. name: map['Name'],
  16991. );
  16992. }
  16993. Map<String, dynamic> toJson() {
  16994. final map = Map<String, dynamic>();
  16995. if(code != null) {
  16996. map['Code'] = code;
  16997. }
  16998. if(name != null) {
  16999. map['Name'] = name;
  17000. }
  17001. return map;
  17002. }
  17003. }
  17004. class ChannelDataView {
  17005. String? channelId;
  17006. String? downLoadUrl;
  17007. String? upLoadUrl;
  17008. ChannelDescriptionEnum description;
  17009. String? httpUrl;
  17010. String? hlsUrl;
  17011. ChannelDataView({
  17012. this.channelId,
  17013. this.downLoadUrl,
  17014. this.upLoadUrl,
  17015. this.description = ChannelDescriptionEnum.DeskChannel,
  17016. this.httpUrl,
  17017. this.hlsUrl,
  17018. });
  17019. factory ChannelDataView.fromJson(Map<String, dynamic> map) {
  17020. return ChannelDataView(
  17021. channelId: map['ChannelId'],
  17022. downLoadUrl: map['DownLoadUrl'],
  17023. upLoadUrl: map['UpLoadUrl'],
  17024. description: ChannelDescriptionEnum.values.firstWhere((e) => e.index == map['Description']),
  17025. httpUrl: map['HttpUrl'],
  17026. hlsUrl: map['HlsUrl'],
  17027. );
  17028. }
  17029. Map<String, dynamic> toJson() {
  17030. final map = Map<String, dynamic>();
  17031. if(channelId != null) {
  17032. map['ChannelId'] = channelId;
  17033. }
  17034. if(downLoadUrl != null) {
  17035. map['DownLoadUrl'] = downLoadUrl;
  17036. }
  17037. if(upLoadUrl != null) {
  17038. map['UpLoadUrl'] = upLoadUrl;
  17039. }
  17040. map['Description'] = description.index;
  17041. if(httpUrl != null) {
  17042. map['HttpUrl'] = httpUrl;
  17043. }
  17044. if(hlsUrl != null) {
  17045. map['HlsUrl'] = hlsUrl;
  17046. }
  17047. return map;
  17048. }
  17049. }
  17050. class ClassView {
  17051. String? code;
  17052. String? name;
  17053. ClassView({
  17054. this.code,
  17055. this.name,
  17056. });
  17057. factory ClassView.fromJson(Map<String, dynamic> map) {
  17058. return ClassView(
  17059. code: map['Code'],
  17060. name: map['Name'],
  17061. );
  17062. }
  17063. Map<String, dynamic> toJson() {
  17064. final map = Map<String, dynamic>();
  17065. if(code != null) {
  17066. map['Code'] = code;
  17067. }
  17068. if(name != null) {
  17069. map['Name'] = name;
  17070. }
  17071. return map;
  17072. }
  17073. }
  17074. class CommentView {
  17075. String? userCode;
  17076. String? userName;
  17077. double score;
  17078. String? description;
  17079. CommentView({
  17080. this.userCode,
  17081. this.userName,
  17082. this.score = 0,
  17083. this.description,
  17084. });
  17085. factory CommentView.fromJson(Map<String, dynamic> map) {
  17086. return CommentView(
  17087. userCode: map['UserCode'],
  17088. userName: map['UserName'],
  17089. score: double.parse(map['Score'].toString()),
  17090. description: map['Description'],
  17091. );
  17092. }
  17093. Map<String, dynamic> toJson() {
  17094. final map = Map<String, dynamic>();
  17095. if(userCode != null) {
  17096. map['UserCode'] = userCode;
  17097. }
  17098. if(userName != null) {
  17099. map['UserName'] = userName;
  17100. }
  17101. map['Score'] = score;
  17102. if(description != null) {
  17103. map['Description'] = description;
  17104. }
  17105. return map;
  17106. }
  17107. }
  17108. class UserView {
  17109. String? code;
  17110. String? name;
  17111. String? organizationCode;
  17112. String? organizationName;
  17113. UserView({
  17114. this.code,
  17115. this.name,
  17116. this.organizationCode,
  17117. this.organizationName,
  17118. });
  17119. factory UserView.fromJson(Map<String, dynamic> map) {
  17120. return UserView(
  17121. code: map['Code'],
  17122. name: map['Name'],
  17123. organizationCode: map['OrganizationCode'],
  17124. organizationName: map['OrganizationName'],
  17125. );
  17126. }
  17127. Map<String, dynamic> toJson() {
  17128. final map = Map<String, dynamic>();
  17129. if(code != null) {
  17130. map['Code'] = code;
  17131. }
  17132. if(name != null) {
  17133. map['Name'] = name;
  17134. }
  17135. if(organizationCode != null) {
  17136. map['OrganizationCode'] = organizationCode;
  17137. }
  17138. if(organizationName != null) {
  17139. map['OrganizationName'] = organizationName;
  17140. }
  17141. return map;
  17142. }
  17143. }
  17144. class StudentView extends UserView{
  17145. bool isNoSpeaking;
  17146. bool isAssistant;
  17147. List<int>? smallHeadImage;
  17148. bool isPay;
  17149. StudentCourseStatusEnum signCourseStatus;
  17150. StudentView({
  17151. this.isNoSpeaking = false,
  17152. this.isAssistant = false,
  17153. this.smallHeadImage,
  17154. this.isPay = false,
  17155. this.signCourseStatus = StudentCourseStatusEnum.All,
  17156. String? code,
  17157. String? name,
  17158. String? organizationCode,
  17159. String? organizationName,
  17160. }) : super(
  17161. code: code,
  17162. name: name,
  17163. organizationCode: organizationCode,
  17164. organizationName: organizationName,
  17165. );
  17166. factory StudentView.fromJson(Map<String, dynamic> map) {
  17167. final smallHeadImageData = map['SmallHeadImage'];
  17168. return StudentView(
  17169. isNoSpeaking: map['IsNoSpeaking'],
  17170. isAssistant: map['IsAssistant'],
  17171. smallHeadImage: smallHeadImageData != null ? (smallHeadImageData as List).map((e) => e as int).toList(): null,
  17172. isPay: map['IsPay'],
  17173. signCourseStatus: StudentCourseStatusEnum.values.firstWhere((e) => e.index == map['SignCourseStatus']),
  17174. code: map['Code'],
  17175. name: map['Name'],
  17176. organizationCode: map['OrganizationCode'],
  17177. organizationName: map['OrganizationName'],
  17178. );
  17179. }
  17180. Map<String, dynamic> toJson() {
  17181. final map = super.toJson();
  17182. map['IsNoSpeaking'] = isNoSpeaking;
  17183. map['IsAssistant'] = isAssistant;
  17184. if(smallHeadImage != null)
  17185. map['SmallHeadImage'] = smallHeadImage;
  17186. map['IsPay'] = isPay;
  17187. map['SignCourseStatus'] = signCourseStatus.index;
  17188. return map;
  17189. }
  17190. }
  17191. class CourseAlbumView extends BaseDTO{
  17192. String? code;
  17193. String? name;
  17194. String? teacherCode;
  17195. String? teacherName;
  17196. List<BaseInfoView>? courseInfos;
  17197. String? cover;
  17198. String? introduction;
  17199. List<CourseLabelDTO>? courseLabels;
  17200. CourseViewRangeEnum viewRange;
  17201. double price;
  17202. List<StudentView>? students;
  17203. int sort;
  17204. bool isStick;
  17205. CourseAlbumView({
  17206. this.code,
  17207. this.name,
  17208. this.teacherCode,
  17209. this.teacherName,
  17210. this.courseInfos,
  17211. this.cover,
  17212. this.introduction,
  17213. this.courseLabels,
  17214. this.viewRange = CourseViewRangeEnum.All,
  17215. this.price = 0,
  17216. this.students,
  17217. this.sort = 0,
  17218. this.isStick = false,
  17219. DateTime? createTime,
  17220. DateTime? updateTime,
  17221. }) : super(
  17222. createTime: createTime,
  17223. updateTime: updateTime,
  17224. );
  17225. factory CourseAlbumView.fromJson(Map<String, dynamic> map) {
  17226. return CourseAlbumView(
  17227. code: map['Code'],
  17228. name: map['Name'],
  17229. teacherCode: map['TeacherCode'],
  17230. teacherName: map['TeacherName'],
  17231. courseInfos: map['CourseInfos'] != null ? (map['CourseInfos'] as List).map((e)=>BaseInfoView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17232. cover: map['Cover'],
  17233. introduction: map['Introduction'],
  17234. courseLabels: map['CourseLabels'] != null ? (map['CourseLabels'] as List).map((e)=>CourseLabelDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  17235. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  17236. price: double.parse(map['Price'].toString()),
  17237. students: map['Students'] != null ? (map['Students'] as List).map((e)=>StudentView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17238. sort: map['Sort'],
  17239. isStick: map['IsStick'],
  17240. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  17241. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  17242. );
  17243. }
  17244. Map<String, dynamic> toJson() {
  17245. final map = super.toJson();
  17246. if(code != null)
  17247. map['Code'] = code;
  17248. if(name != null)
  17249. map['Name'] = name;
  17250. if(teacherCode != null)
  17251. map['TeacherCode'] = teacherCode;
  17252. if(teacherName != null)
  17253. map['TeacherName'] = teacherName;
  17254. if(courseInfos != null)
  17255. map['CourseInfos'] = courseInfos;
  17256. if(cover != null)
  17257. map['Cover'] = cover;
  17258. if(introduction != null)
  17259. map['Introduction'] = introduction;
  17260. if(courseLabels != null)
  17261. map['CourseLabels'] = courseLabels;
  17262. map['ViewRange'] = viewRange.index;
  17263. map['Price'] = price;
  17264. if(students != null)
  17265. map['Students'] = students;
  17266. map['Sort'] = sort;
  17267. map['IsStick'] = isStick;
  17268. return map;
  17269. }
  17270. }
  17271. class LabelLanguageConfigView {
  17272. String? name;
  17273. String? languageCode;
  17274. LabelLanguageConfigView({
  17275. this.name,
  17276. this.languageCode,
  17277. });
  17278. factory LabelLanguageConfigView.fromJson(Map<String, dynamic> map) {
  17279. return LabelLanguageConfigView(
  17280. name: map['Name'],
  17281. languageCode: map['LanguageCode'],
  17282. );
  17283. }
  17284. Map<String, dynamic> toJson() {
  17285. final map = Map<String, dynamic>();
  17286. if(name != null) {
  17287. map['Name'] = name;
  17288. }
  17289. if(languageCode != null) {
  17290. map['LanguageCode'] = languageCode;
  17291. }
  17292. return map;
  17293. }
  17294. }
  17295. class CourseLabelView {
  17296. OrganizationPatientTypeEnum useObjectType;
  17297. List<LabelLanguageConfigView>? labelLanguageConfigs;
  17298. LabelTypeEnum type;
  17299. List<CourseLabelView>? childLabels;
  17300. CourseLabelView({
  17301. this.useObjectType = OrganizationPatientTypeEnum.Person,
  17302. this.labelLanguageConfigs,
  17303. this.type = LabelTypeEnum.Unknown,
  17304. this.childLabels,
  17305. });
  17306. factory CourseLabelView.fromJson(Map<String, dynamic> map) {
  17307. return CourseLabelView(
  17308. useObjectType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['UseObjectType']),
  17309. labelLanguageConfigs: map['LabelLanguageConfigs'] != null ? (map['LabelLanguageConfigs'] as List).map((e)=>LabelLanguageConfigView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17310. type: LabelTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  17311. childLabels: map['ChildLabels'] != null ? (map['ChildLabels'] as List).map((e)=>CourseLabelView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17312. );
  17313. }
  17314. Map<String, dynamic> toJson() {
  17315. final map = Map<String, dynamic>();
  17316. map['UseObjectType'] = useObjectType.index;
  17317. if(labelLanguageConfigs != null) {
  17318. map['LabelLanguageConfigs'] = labelLanguageConfigs;
  17319. }
  17320. map['Type'] = type.index;
  17321. if(childLabels != null) {
  17322. map['ChildLabels'] = childLabels;
  17323. }
  17324. return map;
  17325. }
  17326. }
  17327. class CustomerLabelView {
  17328. String? code;
  17329. String? name;
  17330. CustomerLabelView({
  17331. this.code,
  17332. this.name,
  17333. });
  17334. factory CustomerLabelView.fromJson(Map<String, dynamic> map) {
  17335. return CustomerLabelView(
  17336. code: map['Code'],
  17337. name: map['Name'],
  17338. );
  17339. }
  17340. Map<String, dynamic> toJson() {
  17341. final map = Map<String, dynamic>();
  17342. if(code != null) {
  17343. map['Code'] = code;
  17344. }
  17345. if(name != null) {
  17346. map['Name'] = name;
  17347. }
  17348. return map;
  17349. }
  17350. }
  17351. class DeviceView {
  17352. String? code;
  17353. String? name;
  17354. String? description;
  17355. String? uniqueCode;
  17356. String? organizationCode;
  17357. String? organizationName;
  17358. String? deviceType;
  17359. String? deviceModel;
  17360. DeviceView({
  17361. this.code,
  17362. this.name,
  17363. this.description,
  17364. this.uniqueCode,
  17365. this.organizationCode,
  17366. this.organizationName,
  17367. this.deviceType,
  17368. this.deviceModel,
  17369. });
  17370. factory DeviceView.fromJson(Map<String, dynamic> map) {
  17371. return DeviceView(
  17372. code: map['Code'],
  17373. name: map['Name'],
  17374. description: map['Description'],
  17375. uniqueCode: map['UniqueCode'],
  17376. organizationCode: map['OrganizationCode'],
  17377. organizationName: map['OrganizationName'],
  17378. deviceType: map['DeviceType'],
  17379. deviceModel: map['DeviceModel'],
  17380. );
  17381. }
  17382. Map<String, dynamic> toJson() {
  17383. final map = Map<String, dynamic>();
  17384. if(code != null) {
  17385. map['Code'] = code;
  17386. }
  17387. if(name != null) {
  17388. map['Name'] = name;
  17389. }
  17390. if(description != null) {
  17391. map['Description'] = description;
  17392. }
  17393. if(uniqueCode != null) {
  17394. map['UniqueCode'] = uniqueCode;
  17395. }
  17396. if(organizationCode != null) {
  17397. map['OrganizationCode'] = organizationCode;
  17398. }
  17399. if(organizationName != null) {
  17400. map['OrganizationName'] = organizationName;
  17401. }
  17402. if(deviceType != null) {
  17403. map['DeviceType'] = deviceType;
  17404. }
  17405. if(deviceModel != null) {
  17406. map['DeviceModel'] = deviceModel;
  17407. }
  17408. return map;
  17409. }
  17410. }
  17411. class DiagnosisView {
  17412. DiagnosisOrganEnum organ;
  17413. DiagnosisConclusionEnum diagnosisStatus;
  17414. DiagnosisView({
  17415. this.organ = DiagnosisOrganEnum.Null,
  17416. this.diagnosisStatus = DiagnosisConclusionEnum.NotRequired,
  17417. });
  17418. factory DiagnosisView.fromJson(Map<String, dynamic> map) {
  17419. return DiagnosisView(
  17420. organ: DiagnosisOrganEnum.values.firstWhere((e) => e.index == map['Organ']),
  17421. diagnosisStatus: DiagnosisConclusionEnum.values.firstWhere((e) => e.index == map['DiagnosisStatus']),
  17422. );
  17423. }
  17424. Map<String, dynamic> toJson() {
  17425. final map = Map<String, dynamic>();
  17426. map['Organ'] = organ.index;
  17427. map['DiagnosisStatus'] = diagnosisStatus.index;
  17428. return map;
  17429. }
  17430. }
  17431. class ExamQuestionView {
  17432. String? code;
  17433. String? stem;
  17434. QuestionTypeEnum questionType;
  17435. List<QuestionOptionDTO>? questionOptionList;
  17436. List<QuestionFileDTO>? fileList;
  17437. List<String>? caseLabelCodes;
  17438. List<String>? courseLabelCodes;
  17439. bool trueOrFalse;
  17440. double score;
  17441. ExamQuestionView({
  17442. this.code,
  17443. this.stem,
  17444. this.questionType = QuestionTypeEnum.Judge,
  17445. this.questionOptionList,
  17446. this.fileList,
  17447. this.caseLabelCodes,
  17448. this.courseLabelCodes,
  17449. this.trueOrFalse = false,
  17450. this.score = 0,
  17451. });
  17452. factory ExamQuestionView.fromJson(Map<String, dynamic> map) {
  17453. return ExamQuestionView(
  17454. code: map['Code'],
  17455. stem: map['Stem'],
  17456. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  17457. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  17458. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  17459. caseLabelCodes: map['CaseLabelCodes']?.cast<String>().toList(),
  17460. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  17461. trueOrFalse: map['TrueOrFalse'],
  17462. score: double.parse(map['Score'].toString()),
  17463. );
  17464. }
  17465. Map<String, dynamic> toJson() {
  17466. final map = Map<String, dynamic>();
  17467. if(code != null) {
  17468. map['Code'] = code;
  17469. }
  17470. if(stem != null) {
  17471. map['Stem'] = stem;
  17472. }
  17473. map['QuestionType'] = questionType.index;
  17474. if(questionOptionList != null) {
  17475. map['QuestionOptionList'] = questionOptionList;
  17476. }
  17477. if(fileList != null) {
  17478. map['FileList'] = fileList;
  17479. }
  17480. if(caseLabelCodes != null) {
  17481. map['CaseLabelCodes'] = caseLabelCodes;
  17482. }
  17483. if(courseLabelCodes != null) {
  17484. map['CourseLabelCodes'] = courseLabelCodes;
  17485. }
  17486. map['TrueOrFalse'] = trueOrFalse;
  17487. map['Score'] = score;
  17488. return map;
  17489. }
  17490. }
  17491. class ICollection<T> {
  17492. int count;
  17493. bool isReadOnly;
  17494. ICollection({
  17495. this.count = 0,
  17496. this.isReadOnly = false,
  17497. });
  17498. factory ICollection.fromJson(Map<String, dynamic> map) {
  17499. return ICollection(
  17500. count: map['Count'],
  17501. isReadOnly: map['IsReadOnly'],
  17502. );
  17503. }
  17504. Map<String, dynamic> toJson() {
  17505. final map = Map<String, dynamic>();
  17506. map['Count'] = count;
  17507. map['IsReadOnly'] = isReadOnly;
  17508. return map;
  17509. }
  17510. }
  17511. class LearnerView {
  17512. String? code;
  17513. LearnerStatusEnum learnerStatus;
  17514. LearnerView({
  17515. this.code,
  17516. this.learnerStatus = LearnerStatusEnum.Unknown,
  17517. });
  17518. factory LearnerView.fromJson(Map<String, dynamic> map) {
  17519. return LearnerView(
  17520. code: map['Code'],
  17521. learnerStatus: LearnerStatusEnum.values.firstWhere((e) => e.index == map['LearnerStatus']),
  17522. );
  17523. }
  17524. Map<String, dynamic> toJson() {
  17525. final map = Map<String, dynamic>();
  17526. if(code != null) {
  17527. map['Code'] = code;
  17528. }
  17529. map['LearnerStatus'] = learnerStatus.index;
  17530. return map;
  17531. }
  17532. }
  17533. class GroupView {
  17534. String? code;
  17535. String? name;
  17536. String? shortCode;
  17537. int maxPeople;
  17538. List<LearnerView>? students;
  17539. GroupView({
  17540. this.code,
  17541. this.name,
  17542. this.shortCode,
  17543. this.maxPeople = 0,
  17544. this.students,
  17545. });
  17546. factory GroupView.fromJson(Map<String, dynamic> map) {
  17547. return GroupView(
  17548. code: map['Code'],
  17549. name: map['Name'],
  17550. shortCode: map['ShortCode'],
  17551. maxPeople: map['MaxPeople'],
  17552. students: map['Students'] != null ? (map['Students'] as List).map((e)=>LearnerView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17553. );
  17554. }
  17555. Map<String, dynamic> toJson() {
  17556. final map = Map<String, dynamic>();
  17557. if(code != null) {
  17558. map['Code'] = code;
  17559. }
  17560. if(name != null) {
  17561. map['Name'] = name;
  17562. }
  17563. if(shortCode != null) {
  17564. map['ShortCode'] = shortCode;
  17565. }
  17566. map['MaxPeople'] = maxPeople;
  17567. if(students != null) {
  17568. map['Students'] = students;
  17569. }
  17570. return map;
  17571. }
  17572. }
  17573. class ExamVideoView {
  17574. String? id;
  17575. String? videoName;
  17576. DateTime? createTime;
  17577. String? posterToken;
  17578. int duration;
  17579. int size;
  17580. String? description;
  17581. String? url;
  17582. ExamVideoView({
  17583. this.id,
  17584. this.videoName,
  17585. this.createTime,
  17586. this.posterToken,
  17587. this.duration = 0,
  17588. this.size = 0,
  17589. this.description,
  17590. this.url,
  17591. });
  17592. factory ExamVideoView.fromJson(Map<String, dynamic> map) {
  17593. return ExamVideoView(
  17594. id: map['Id'],
  17595. videoName: map['VideoName'],
  17596. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  17597. posterToken: map['PosterToken'],
  17598. duration: map['Duration'],
  17599. size: map['Size'],
  17600. description: map['Description'],
  17601. url: map['Url'],
  17602. );
  17603. }
  17604. Map<String, dynamic> toJson() {
  17605. final map = Map<String, dynamic>();
  17606. if(id != null) {
  17607. map['Id'] = id;
  17608. }
  17609. if(videoName != null) {
  17610. map['VideoName'] = videoName;
  17611. }
  17612. if(createTime != null) {
  17613. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  17614. }
  17615. if(posterToken != null) {
  17616. map['PosterToken'] = posterToken;
  17617. }
  17618. map['Duration'] = duration;
  17619. map['Size'] = size;
  17620. if(description != null) {
  17621. map['Description'] = description;
  17622. }
  17623. if(url != null) {
  17624. map['Url'] = url;
  17625. }
  17626. return map;
  17627. }
  17628. }
  17629. class MyExamAnswerView {
  17630. String? subjectId;
  17631. List<String>? answers;
  17632. MyExamAnswerView({
  17633. this.subjectId,
  17634. this.answers,
  17635. });
  17636. factory MyExamAnswerView.fromJson(Map<String, dynamic> map) {
  17637. return MyExamAnswerView(
  17638. subjectId: map['SubjectId'],
  17639. answers: map['Answers']?.cast<String>().toList(),
  17640. );
  17641. }
  17642. Map<String, dynamic> toJson() {
  17643. final map = Map<String, dynamic>();
  17644. if(subjectId != null) {
  17645. map['SubjectId'] = subjectId;
  17646. }
  17647. if(answers != null) {
  17648. map['Answers'] = answers;
  17649. }
  17650. return map;
  17651. }
  17652. }
  17653. class ExamScoreView {
  17654. double totalScore;
  17655. int correctCount;
  17656. int submitCount;
  17657. int maxScore;
  17658. List<MyExamAnswerView>? myExamAnswers;
  17659. ExamScoreView({
  17660. this.totalScore = 0,
  17661. this.correctCount = 0,
  17662. this.submitCount = 0,
  17663. this.maxScore = 0,
  17664. this.myExamAnswers,
  17665. });
  17666. factory ExamScoreView.fromJson(Map<String, dynamic> map) {
  17667. return ExamScoreView(
  17668. totalScore: double.parse(map['TotalScore'].toString()),
  17669. correctCount: map['CorrectCount'],
  17670. submitCount: map['SubmitCount'],
  17671. maxScore: map['MaxScore'],
  17672. myExamAnswers: map['MyExamAnswers'] != null ? (map['MyExamAnswers'] as List).map((e)=>MyExamAnswerView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17673. );
  17674. }
  17675. Map<String, dynamic> toJson() {
  17676. final map = Map<String, dynamic>();
  17677. map['TotalScore'] = totalScore;
  17678. map['CorrectCount'] = correctCount;
  17679. map['SubmitCount'] = submitCount;
  17680. map['MaxScore'] = maxScore;
  17681. if(myExamAnswers != null) {
  17682. map['MyExamAnswers'] = myExamAnswers;
  17683. }
  17684. return map;
  17685. }
  17686. }
  17687. class VideoInfoView {
  17688. String? videoToken;
  17689. String? videoImageToken;
  17690. VideoInfoView({
  17691. this.videoToken,
  17692. this.videoImageToken,
  17693. });
  17694. factory VideoInfoView.fromJson(Map<String, dynamic> map) {
  17695. return VideoInfoView(
  17696. videoToken: map['VideoToken'],
  17697. videoImageToken: map['VideoImageToken'],
  17698. );
  17699. }
  17700. Map<String, dynamic> toJson() {
  17701. final map = Map<String, dynamic>();
  17702. if(videoToken != null) {
  17703. map['VideoToken'] = videoToken;
  17704. }
  17705. if(videoImageToken != null) {
  17706. map['VideoImageToken'] = videoImageToken;
  17707. }
  17708. return map;
  17709. }
  17710. }
  17711. class SubjectItemView {
  17712. String? content;
  17713. int index;
  17714. bool isAnswer;
  17715. SubjectItemView({
  17716. this.content,
  17717. this.index = 0,
  17718. this.isAnswer = false,
  17719. });
  17720. factory SubjectItemView.fromJson(Map<String, dynamic> map) {
  17721. return SubjectItemView(
  17722. content: map['Content'],
  17723. index: map['Index'],
  17724. isAnswer: map['IsAnswer'],
  17725. );
  17726. }
  17727. Map<String, dynamic> toJson() {
  17728. final map = Map<String, dynamic>();
  17729. if(content != null) {
  17730. map['Content'] = content;
  17731. }
  17732. map['Index'] = index;
  17733. map['IsAnswer'] = isAnswer;
  17734. return map;
  17735. }
  17736. }
  17737. class SubjectInfoView {
  17738. String? id;
  17739. String? subject;
  17740. List<String>? images;
  17741. List<VideoInfoView>? videos;
  17742. double score;
  17743. int index;
  17744. QuestionTypeEnum subjectType;
  17745. List<SubjectItemView>? items;
  17746. SubjectInfoView({
  17747. this.id,
  17748. this.subject,
  17749. this.images,
  17750. this.videos,
  17751. this.score = 0,
  17752. this.index = 0,
  17753. this.subjectType = QuestionTypeEnum.Judge,
  17754. this.items,
  17755. });
  17756. factory SubjectInfoView.fromJson(Map<String, dynamic> map) {
  17757. return SubjectInfoView(
  17758. id: map['Id'],
  17759. subject: map['Subject'],
  17760. images: map['Images']?.cast<String>().toList(),
  17761. videos: map['Videos'] != null ? (map['Videos'] as List).map((e)=>VideoInfoView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17762. score: double.parse(map['Score'].toString()),
  17763. index: map['Index'],
  17764. subjectType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['SubjectType']),
  17765. items: map['Items'] != null ? (map['Items'] as List).map((e)=>SubjectItemView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17766. );
  17767. }
  17768. Map<String, dynamic> toJson() {
  17769. final map = Map<String, dynamic>();
  17770. if(id != null) {
  17771. map['Id'] = id;
  17772. }
  17773. if(subject != null) {
  17774. map['Subject'] = subject;
  17775. }
  17776. if(images != null) {
  17777. map['Images'] = images;
  17778. }
  17779. if(videos != null) {
  17780. map['Videos'] = videos;
  17781. }
  17782. map['Score'] = score;
  17783. map['Index'] = index;
  17784. map['SubjectType'] = subjectType.index;
  17785. if(items != null) {
  17786. map['Items'] = items;
  17787. }
  17788. return map;
  17789. }
  17790. }
  17791. class ExamTemplateView {
  17792. String? code;
  17793. List<SubjectInfoView>? subjects;
  17794. bool isDeleted;
  17795. String? name;
  17796. ExamTemplateView({
  17797. this.code,
  17798. this.subjects,
  17799. this.isDeleted = false,
  17800. this.name,
  17801. });
  17802. factory ExamTemplateView.fromJson(Map<String, dynamic> map) {
  17803. return ExamTemplateView(
  17804. code: map['Code'],
  17805. subjects: map['Subjects'] != null ? (map['Subjects'] as List).map((e)=>SubjectInfoView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17806. isDeleted: map['IsDeleted'],
  17807. name: map['Name'],
  17808. );
  17809. }
  17810. Map<String, dynamic> toJson() {
  17811. final map = Map<String, dynamic>();
  17812. if(code != null) {
  17813. map['Code'] = code;
  17814. }
  17815. if(subjects != null) {
  17816. map['Subjects'] = subjects;
  17817. }
  17818. map['IsDeleted'] = isDeleted;
  17819. if(name != null) {
  17820. map['Name'] = name;
  17821. }
  17822. return map;
  17823. }
  17824. }
  17825. class ExamPaperDTO extends BaseDTO{
  17826. String? code;
  17827. String? name;
  17828. double totalScore;
  17829. List<ExamQuestionView>? questionList;
  17830. List<CourseLabelDTO>? caseLabels;
  17831. List<CourseLabelDTO>? courseLabels;
  17832. List<StudentExaminationDTO>? studentExaminationInfos;
  17833. String? description;
  17834. DateTime? starTime;
  17835. DateTime? endTime;
  17836. int limitCount;
  17837. String? result;
  17838. ICollection<UserView>? examiners;
  17839. ICollection<GroupView>? examinerUserGroups;
  17840. ExaminationAvailabilityEnum examinationAvailability;
  17841. ICollection<ClassView>? classes;
  17842. String? creatorId;
  17843. String? creatorName;
  17844. ExamTypeEnum examType;
  17845. bool hasPassScore;
  17846. double passScore;
  17847. List<ExamVideoView>? examVideoInfos;
  17848. List<ExamScoreView>? examScoreInfos;
  17849. ExamTemplateView? examTemplate;
  17850. bool isDisplayAnswer;
  17851. ExamPaperDTO({
  17852. this.code,
  17853. this.name,
  17854. this.totalScore = 0,
  17855. this.questionList,
  17856. this.caseLabels,
  17857. this.courseLabels,
  17858. this.studentExaminationInfos,
  17859. this.description,
  17860. this.starTime,
  17861. this.endTime,
  17862. this.limitCount = 0,
  17863. this.result,
  17864. this.examiners,
  17865. this.examinerUserGroups,
  17866. this.examinationAvailability = ExaminationAvailabilityEnum.Public,
  17867. this.classes,
  17868. this.creatorId,
  17869. this.creatorName,
  17870. this.examType = ExamTypeEnum.GeneralExam,
  17871. this.hasPassScore = false,
  17872. this.passScore = 0,
  17873. this.examVideoInfos,
  17874. this.examScoreInfos,
  17875. this.examTemplate,
  17876. this.isDisplayAnswer = false,
  17877. DateTime? createTime,
  17878. DateTime? updateTime,
  17879. }) : super(
  17880. createTime: createTime,
  17881. updateTime: updateTime,
  17882. );
  17883. factory ExamPaperDTO.fromJson(Map<String, dynamic> map) {
  17884. return ExamPaperDTO(
  17885. code: map['Code'],
  17886. name: map['Name'],
  17887. totalScore: double.parse(map['TotalScore'].toString()),
  17888. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>ExamQuestionView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17889. caseLabels: map['CaseLabels'] != null ? (map['CaseLabels'] as List).map((e)=>CourseLabelDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  17890. courseLabels: map['CourseLabels'] != null ? (map['CourseLabels'] as List).map((e)=>CourseLabelDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  17891. studentExaminationInfos: map['StudentExaminationInfos'] != null ? (map['StudentExaminationInfos'] as List).map((e)=>StudentExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  17892. description: map['Description'],
  17893. starTime: map['StarTime'] != null ? DateTime.parse(map['StarTime']) : null,
  17894. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  17895. limitCount: map['LimitCount'],
  17896. result: map['Result'],
  17897. examinationAvailability: ExaminationAvailabilityEnum.values.firstWhere((e) => e.index == map['ExaminationAvailability']),
  17898. creatorId: map['CreatorId'],
  17899. creatorName: map['CreatorName'],
  17900. examType: ExamTypeEnum.values.firstWhere((e) => e.index == map['ExamType']),
  17901. hasPassScore: map['HasPassScore'],
  17902. passScore: double.parse(map['PassScore'].toString()),
  17903. examVideoInfos: map['ExamVideoInfos'] != null ? (map['ExamVideoInfos'] as List).map((e)=>ExamVideoView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17904. examScoreInfos: map['ExamScoreInfos'] != null ? (map['ExamScoreInfos'] as List).map((e)=>ExamScoreView.fromJson(e as Map<String,dynamic>)).toList() : null,
  17905. examTemplate: map['ExamTemplate'] != null ? ExamTemplateView.fromJson(map['ExamTemplate']) : null,
  17906. isDisplayAnswer: map['IsDisplayAnswer'],
  17907. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  17908. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  17909. );
  17910. }
  17911. Map<String, dynamic> toJson() {
  17912. final map = super.toJson();
  17913. if(code != null)
  17914. map['Code'] = code;
  17915. if(name != null)
  17916. map['Name'] = name;
  17917. map['TotalScore'] = totalScore;
  17918. if(questionList != null)
  17919. map['QuestionList'] = questionList;
  17920. if(caseLabels != null)
  17921. map['CaseLabels'] = caseLabels;
  17922. if(courseLabels != null)
  17923. map['CourseLabels'] = courseLabels;
  17924. if(studentExaminationInfos != null)
  17925. map['StudentExaminationInfos'] = studentExaminationInfos;
  17926. if(description != null)
  17927. map['Description'] = description;
  17928. if(starTime != null)
  17929. map['StarTime'] = JsonRpcUtils.dateFormat(starTime!);
  17930. if(endTime != null)
  17931. map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
  17932. map['LimitCount'] = limitCount;
  17933. if(result != null)
  17934. map['Result'] = result;
  17935. if(examiners != null)
  17936. map['Examiners'] = examiners;
  17937. if(examinerUserGroups != null)
  17938. map['ExaminerUserGroups'] = examinerUserGroups;
  17939. map['ExaminationAvailability'] = examinationAvailability.index;
  17940. if(classes != null)
  17941. map['Classes'] = classes;
  17942. if(creatorId != null)
  17943. map['CreatorId'] = creatorId;
  17944. if(creatorName != null)
  17945. map['CreatorName'] = creatorName;
  17946. map['ExamType'] = examType.index;
  17947. map['HasPassScore'] = hasPassScore;
  17948. map['PassScore'] = passScore;
  17949. if(examVideoInfos != null)
  17950. map['ExamVideoInfos'] = examVideoInfos;
  17951. if(examScoreInfos != null)
  17952. map['ExamScoreInfos'] = examScoreInfos;
  17953. if(examTemplate != null)
  17954. map['ExamTemplate'] = examTemplate;
  17955. map['IsDisplayAnswer'] = isDisplayAnswer;
  17956. return map;
  17957. }
  17958. }
  17959. class FileDiagnosisResultDTO extends BaseDTO{
  17960. String? code;
  17961. String? remedicalCode;
  17962. DiagnosisConclusionEnum diagnosisConclusion;
  17963. String? diagnosisResult;
  17964. List<DiagnosisOrganEnum>? diagnosisOrgans;
  17965. MeasuredResultsDTO? measuredResult;
  17966. ScanImageDTO? commentResult;
  17967. CarotidResultDTO? carotidResult;
  17968. BusinessTypeEnum businessType;
  17969. FileDiagnosisResultDTO({
  17970. this.code,
  17971. this.remedicalCode,
  17972. this.diagnosisConclusion = DiagnosisConclusionEnum.NotRequired,
  17973. this.diagnosisResult,
  17974. this.diagnosisOrgans,
  17975. this.measuredResult,
  17976. this.commentResult,
  17977. this.carotidResult,
  17978. this.businessType = BusinessTypeEnum.RemoteDiagnosis,
  17979. DateTime? createTime,
  17980. DateTime? updateTime,
  17981. }) : super(
  17982. createTime: createTime,
  17983. updateTime: updateTime,
  17984. );
  17985. factory FileDiagnosisResultDTO.fromJson(Map<String, dynamic> map) {
  17986. return FileDiagnosisResultDTO(
  17987. code: map['Code'],
  17988. remedicalCode: map['RemedicalCode'],
  17989. diagnosisConclusion: DiagnosisConclusionEnum.values.firstWhere((e) => e.index == map['DiagnosisConclusion']),
  17990. diagnosisResult: map['DiagnosisResult'],
  17991. diagnosisOrgans: map['DiagnosisOrgans'] != null ? (map['DiagnosisOrgans'] as List).map((e)=>DiagnosisOrganEnum.values.firstWhere((i) => i.index == e)).toList() : null,
  17992. measuredResult: map['MeasuredResult'] != null ? MeasuredResultsDTO.fromJson(map['MeasuredResult']) : null,
  17993. commentResult: map['CommentResult'] != null ? ScanImageDTO.fromJson(map['CommentResult']) : null,
  17994. carotidResult: map['CarotidResult'] != null ? CarotidResultDTO.fromJson(map['CarotidResult']) : null,
  17995. businessType: BusinessTypeEnum.values.firstWhere((e) => e.index == map['BusinessType']),
  17996. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  17997. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  17998. );
  17999. }
  18000. Map<String, dynamic> toJson() {
  18001. final map = super.toJson();
  18002. if(code != null)
  18003. map['Code'] = code;
  18004. if(remedicalCode != null)
  18005. map['RemedicalCode'] = remedicalCode;
  18006. map['DiagnosisConclusion'] = diagnosisConclusion.index;
  18007. if(diagnosisResult != null)
  18008. map['DiagnosisResult'] = diagnosisResult;
  18009. if(diagnosisOrgans != null)
  18010. map['DiagnosisOrgans'] = diagnosisOrgans;
  18011. if(measuredResult != null)
  18012. map['MeasuredResult'] = measuredResult;
  18013. if(commentResult != null)
  18014. map['CommentResult'] = commentResult;
  18015. if(carotidResult != null)
  18016. map['CarotidResult'] = carotidResult;
  18017. map['BusinessType'] = businessType.index;
  18018. return map;
  18019. }
  18020. }
  18021. class FileView {
  18022. RemedicalFileDataTypeEnum dataType;
  18023. String? originalUrl;
  18024. String? cdnUrl;
  18025. int fileSize;
  18026. String? fileName;
  18027. String? previewUrl;
  18028. String? converUrl;
  18029. FileView({
  18030. this.dataType = RemedicalFileDataTypeEnum.VinnoVidSingle,
  18031. this.originalUrl,
  18032. this.cdnUrl,
  18033. this.fileSize = 0,
  18034. this.fileName,
  18035. this.previewUrl,
  18036. this.converUrl,
  18037. });
  18038. factory FileView.fromJson(Map<String, dynamic> map) {
  18039. return FileView(
  18040. dataType: RemedicalFileDataTypeEnum.values.firstWhere((e) => e.index == map['DataType']),
  18041. originalUrl: map['OriginalUrl'],
  18042. cdnUrl: map['CdnUrl'],
  18043. fileSize: map['FileSize'],
  18044. fileName: map['FileName'],
  18045. previewUrl: map['PreviewUrl'],
  18046. converUrl: map['ConverUrl'],
  18047. );
  18048. }
  18049. Map<String, dynamic> toJson() {
  18050. final map = Map<String, dynamic>();
  18051. map['DataType'] = dataType.index;
  18052. if(originalUrl != null) {
  18053. map['OriginalUrl'] = originalUrl;
  18054. }
  18055. if(cdnUrl != null) {
  18056. map['CdnUrl'] = cdnUrl;
  18057. }
  18058. map['FileSize'] = fileSize;
  18059. if(fileName != null) {
  18060. map['FileName'] = fileName;
  18061. }
  18062. if(previewUrl != null) {
  18063. map['PreviewUrl'] = previewUrl;
  18064. }
  18065. if(converUrl != null) {
  18066. map['ConverUrl'] = converUrl;
  18067. }
  18068. return map;
  18069. }
  18070. }
  18071. class ImageLocationView {
  18072. String? group;
  18073. String? position;
  18074. String? quadrant;
  18075. ImageLocationView({
  18076. this.group,
  18077. this.position,
  18078. this.quadrant,
  18079. });
  18080. factory ImageLocationView.fromJson(Map<String, dynamic> map) {
  18081. return ImageLocationView(
  18082. group: map['Group'],
  18083. position: map['Position'],
  18084. quadrant: map['Quadrant'],
  18085. );
  18086. }
  18087. Map<String, dynamic> toJson() {
  18088. final map = Map<String, dynamic>();
  18089. if(group != null) {
  18090. map['Group'] = group;
  18091. }
  18092. if(position != null) {
  18093. map['Position'] = position;
  18094. }
  18095. if(quadrant != null) {
  18096. map['Quadrant'] = quadrant;
  18097. }
  18098. return map;
  18099. }
  18100. }
  18101. class RemoteDiagnosisFileView extends FileView{
  18102. String? code;
  18103. String? application;
  18104. ImageLocationView? imageLocationInfo;
  18105. List<CommentView>? commentInfos;
  18106. RemoteDiagnosisFileView({
  18107. this.code,
  18108. this.application,
  18109. this.imageLocationInfo,
  18110. this.commentInfos,
  18111. RemedicalFileDataTypeEnum dataType = RemedicalFileDataTypeEnum.VinnoVidSingle,
  18112. String? originalUrl,
  18113. String? cdnUrl,
  18114. int fileSize = 0,
  18115. String? fileName,
  18116. String? previewUrl,
  18117. String? converUrl,
  18118. }) : super(
  18119. dataType: dataType,
  18120. originalUrl: originalUrl,
  18121. cdnUrl: cdnUrl,
  18122. fileSize: fileSize,
  18123. fileName: fileName,
  18124. previewUrl: previewUrl,
  18125. converUrl: converUrl,
  18126. );
  18127. factory RemoteDiagnosisFileView.fromJson(Map<String, dynamic> map) {
  18128. return RemoteDiagnosisFileView(
  18129. code: map['Code'],
  18130. application: map['Application'],
  18131. imageLocationInfo: map['ImageLocationInfo'] != null ? ImageLocationView.fromJson(map['ImageLocationInfo']) : null,
  18132. commentInfos: map['CommentInfos'] != null ? (map['CommentInfos'] as List).map((e)=>CommentView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18133. dataType: RemedicalFileDataTypeEnum.values.firstWhere((e) => e.index == map['DataType']),
  18134. originalUrl: map['OriginalUrl'],
  18135. cdnUrl: map['CdnUrl'],
  18136. fileSize: map['FileSize'],
  18137. fileName: map['FileName'],
  18138. previewUrl: map['PreviewUrl'],
  18139. converUrl: map['ConverUrl'],
  18140. );
  18141. }
  18142. Map<String, dynamic> toJson() {
  18143. final map = super.toJson();
  18144. if(code != null)
  18145. map['Code'] = code;
  18146. if(application != null)
  18147. map['Application'] = application;
  18148. if(imageLocationInfo != null)
  18149. map['ImageLocationInfo'] = imageLocationInfo;
  18150. if(commentInfos != null)
  18151. map['CommentInfos'] = commentInfos;
  18152. return map;
  18153. }
  18154. }
  18155. class LiveConsultationFileView extends FileView{
  18156. String? userCode;
  18157. String? userName;
  18158. String? type;
  18159. ConsultationFileTypeEnum consultationFileType;
  18160. String? remedicalCode;
  18161. String? remedicalMeasureCode;
  18162. LiveConsultationFileView({
  18163. this.userCode,
  18164. this.userName,
  18165. this.type,
  18166. this.consultationFileType = ConsultationFileTypeEnum.Screenshot,
  18167. this.remedicalCode,
  18168. this.remedicalMeasureCode,
  18169. RemedicalFileDataTypeEnum dataType = RemedicalFileDataTypeEnum.VinnoVidSingle,
  18170. String? originalUrl,
  18171. String? cdnUrl,
  18172. int fileSize = 0,
  18173. String? fileName,
  18174. String? previewUrl,
  18175. String? converUrl,
  18176. }) : super(
  18177. dataType: dataType,
  18178. originalUrl: originalUrl,
  18179. cdnUrl: cdnUrl,
  18180. fileSize: fileSize,
  18181. fileName: fileName,
  18182. previewUrl: previewUrl,
  18183. converUrl: converUrl,
  18184. );
  18185. factory LiveConsultationFileView.fromJson(Map<String, dynamic> map) {
  18186. return LiveConsultationFileView(
  18187. userCode: map['UserCode'],
  18188. userName: map['UserName'],
  18189. type: map['Type'],
  18190. consultationFileType: ConsultationFileTypeEnum.values.firstWhere((e) => e.index == map['ConsultationFileType']),
  18191. remedicalCode: map['RemedicalCode'],
  18192. remedicalMeasureCode: map['RemedicalMeasureCode'],
  18193. dataType: RemedicalFileDataTypeEnum.values.firstWhere((e) => e.index == map['DataType']),
  18194. originalUrl: map['OriginalUrl'],
  18195. cdnUrl: map['CdnUrl'],
  18196. fileSize: map['FileSize'],
  18197. fileName: map['FileName'],
  18198. previewUrl: map['PreviewUrl'],
  18199. converUrl: map['ConverUrl'],
  18200. );
  18201. }
  18202. Map<String, dynamic> toJson() {
  18203. final map = super.toJson();
  18204. if(userCode != null)
  18205. map['UserCode'] = userCode;
  18206. if(userName != null)
  18207. map['UserName'] = userName;
  18208. if(type != null)
  18209. map['Type'] = type;
  18210. map['ConsultationFileType'] = consultationFileType.index;
  18211. if(remedicalCode != null)
  18212. map['RemedicalCode'] = remedicalCode;
  18213. if(remedicalMeasureCode != null)
  18214. map['RemedicalMeasureCode'] = remedicalMeasureCode;
  18215. return map;
  18216. }
  18217. }
  18218. class PatientView {
  18219. String? code;
  18220. String? name;
  18221. String? identityCardId;
  18222. String? mobile;
  18223. String? gender;
  18224. String? age;
  18225. String? pastHistory;
  18226. String? diagnosis;
  18227. PatientView({
  18228. this.code,
  18229. this.name,
  18230. this.identityCardId,
  18231. this.mobile,
  18232. this.gender,
  18233. this.age,
  18234. this.pastHistory,
  18235. this.diagnosis,
  18236. });
  18237. factory PatientView.fromJson(Map<String, dynamic> map) {
  18238. return PatientView(
  18239. code: map['Code'],
  18240. name: map['Name'],
  18241. identityCardId: map['IdentityCardId'],
  18242. mobile: map['Mobile'],
  18243. gender: map['Gender'],
  18244. age: map['Age'],
  18245. pastHistory: map['PastHistory'],
  18246. diagnosis: map['Diagnosis'],
  18247. );
  18248. }
  18249. Map<String, dynamic> toJson() {
  18250. final map = Map<String, dynamic>();
  18251. if(code != null) {
  18252. map['Code'] = code;
  18253. }
  18254. if(name != null) {
  18255. map['Name'] = name;
  18256. }
  18257. if(identityCardId != null) {
  18258. map['IdentityCardId'] = identityCardId;
  18259. }
  18260. if(mobile != null) {
  18261. map['Mobile'] = mobile;
  18262. }
  18263. if(gender != null) {
  18264. map['Gender'] = gender;
  18265. }
  18266. if(age != null) {
  18267. map['Age'] = age;
  18268. }
  18269. if(pastHistory != null) {
  18270. map['PastHistory'] = pastHistory;
  18271. }
  18272. if(diagnosis != null) {
  18273. map['Diagnosis'] = diagnosis;
  18274. }
  18275. return map;
  18276. }
  18277. }
  18278. class OrganizationView {
  18279. String? code;
  18280. String? name;
  18281. String? departmentCode;
  18282. String? departmentName;
  18283. String? description;
  18284. String? logoUrl;
  18285. String? countryCode;
  18286. String? countryName;
  18287. String? provinceCode;
  18288. String? provinceName;
  18289. String? cityCode;
  18290. String? cityName;
  18291. OrganizationView({
  18292. this.code,
  18293. this.name,
  18294. this.departmentCode,
  18295. this.departmentName,
  18296. this.description,
  18297. this.logoUrl,
  18298. this.countryCode,
  18299. this.countryName,
  18300. this.provinceCode,
  18301. this.provinceName,
  18302. this.cityCode,
  18303. this.cityName,
  18304. });
  18305. factory OrganizationView.fromJson(Map<String, dynamic> map) {
  18306. return OrganizationView(
  18307. code: map['Code'],
  18308. name: map['Name'],
  18309. departmentCode: map['DepartmentCode'],
  18310. departmentName: map['DepartmentName'],
  18311. description: map['Description'],
  18312. logoUrl: map['LogoUrl'],
  18313. countryCode: map['CountryCode'],
  18314. countryName: map['CountryName'],
  18315. provinceCode: map['ProvinceCode'],
  18316. provinceName: map['ProvinceName'],
  18317. cityCode: map['CityCode'],
  18318. cityName: map['CityName'],
  18319. );
  18320. }
  18321. Map<String, dynamic> toJson() {
  18322. final map = Map<String, dynamic>();
  18323. if(code != null) {
  18324. map['Code'] = code;
  18325. }
  18326. if(name != null) {
  18327. map['Name'] = name;
  18328. }
  18329. if(departmentCode != null) {
  18330. map['DepartmentCode'] = departmentCode;
  18331. }
  18332. if(departmentName != null) {
  18333. map['DepartmentName'] = departmentName;
  18334. }
  18335. if(description != null) {
  18336. map['Description'] = description;
  18337. }
  18338. if(logoUrl != null) {
  18339. map['LogoUrl'] = logoUrl;
  18340. }
  18341. if(countryCode != null) {
  18342. map['CountryCode'] = countryCode;
  18343. }
  18344. if(countryName != null) {
  18345. map['CountryName'] = countryName;
  18346. }
  18347. if(provinceCode != null) {
  18348. map['ProvinceCode'] = provinceCode;
  18349. }
  18350. if(provinceName != null) {
  18351. map['ProvinceName'] = provinceName;
  18352. }
  18353. if(cityCode != null) {
  18354. map['CityCode'] = cityCode;
  18355. }
  18356. if(cityName != null) {
  18357. map['CityName'] = cityName;
  18358. }
  18359. return map;
  18360. }
  18361. }
  18362. class ReportConclusionView {
  18363. String? reportId;
  18364. String? diseaseName;
  18365. DiseaseConclusion diseaseConclusion;
  18366. ReportConclusionView({
  18367. this.reportId,
  18368. this.diseaseName,
  18369. this.diseaseConclusion = DiseaseConclusion.NoConclusion,
  18370. });
  18371. factory ReportConclusionView.fromJson(Map<String, dynamic> map) {
  18372. return ReportConclusionView(
  18373. reportId: map['ReportId'],
  18374. diseaseName: map['DiseaseName'],
  18375. diseaseConclusion: DiseaseConclusion.values.firstWhere((e) => e.index == map['DiseaseConclusion']),
  18376. );
  18377. }
  18378. Map<String, dynamic> toJson() {
  18379. final map = Map<String, dynamic>();
  18380. if(reportId != null) {
  18381. map['ReportId'] = reportId;
  18382. }
  18383. if(diseaseName != null) {
  18384. map['DiseaseName'] = diseaseName;
  18385. }
  18386. map['DiseaseConclusion'] = diseaseConclusion.index;
  18387. return map;
  18388. }
  18389. }
  18390. class LiveConsultationDTO extends BaseDTO{
  18391. String? code;
  18392. UserView? doctorInfo;
  18393. UserView? expertInfo;
  18394. PatientView? patientInfo;
  18395. OrganizationView? primaryHosptial;
  18396. OrganizationView? centralHospital;
  18397. DeviceView? deviceInfo;
  18398. String? checkPoint;
  18399. ConsultationState state;
  18400. String? consultationNumber;
  18401. String? queuingNumber;
  18402. QualityType qualityType;
  18403. FollowUpVisitStatusEnum followUpVisitStatus;
  18404. bool isNeedFollowUpVisit;
  18405. EvaluateGradeEnum evaluateGrade;
  18406. ICollection<LiveConsultationFileView>? fileInfos;
  18407. ICollection<ReportConclusionView>? reportConclusionInfos;
  18408. List<DataItemDTO>? patientDatas;
  18409. OrganizationPatientTypeEnum patientType;
  18410. List<String>? scanPositions;
  18411. String? scanUserCode;
  18412. String? scanUserName;
  18413. String? operateUserCode;
  18414. String? operateUserName;
  18415. DateTime? consultationTime;
  18416. DateTime? consultationTimeEnd;
  18417. TransactionStatusEnum consultationStatus;
  18418. String? rejectReason;
  18419. String? location;
  18420. List<ConsultationMemberDTO>? consultationMembers;
  18421. String? description;
  18422. List<ConsultationReminderDTO>? consultationReminders;
  18423. String? approverCode;
  18424. ConsultationReportMode reportMode;
  18425. String? diseases;
  18426. String? primaryDiagnosis;
  18427. String? initiatorCode;
  18428. bool isEmergency;
  18429. String? emergencyCode;
  18430. SyncEvaluatesRequest? evaluates;
  18431. List<SyncFollowUpVisitRequest>? syncFollowUpVisitList;
  18432. LiveConsultationDTO({
  18433. this.code,
  18434. this.doctorInfo,
  18435. this.expertInfo,
  18436. this.patientInfo,
  18437. this.primaryHosptial,
  18438. this.centralHospital,
  18439. this.deviceInfo,
  18440. this.checkPoint,
  18441. this.state = ConsultationState.Unhandled,
  18442. this.consultationNumber,
  18443. this.queuingNumber,
  18444. this.qualityType = QualityType.None,
  18445. this.followUpVisitStatus = FollowUpVisitStatusEnum.Unknown,
  18446. this.isNeedFollowUpVisit = false,
  18447. this.evaluateGrade = EvaluateGradeEnum.UnSet,
  18448. this.fileInfos,
  18449. this.reportConclusionInfos,
  18450. this.patientDatas,
  18451. this.patientType = OrganizationPatientTypeEnum.Person,
  18452. this.scanPositions,
  18453. this.scanUserCode,
  18454. this.scanUserName,
  18455. this.operateUserCode,
  18456. this.operateUserName,
  18457. this.consultationTime,
  18458. this.consultationTimeEnd,
  18459. this.consultationStatus = TransactionStatusEnum.Applied,
  18460. this.rejectReason,
  18461. this.location,
  18462. this.consultationMembers,
  18463. this.description,
  18464. this.consultationReminders,
  18465. this.approverCode,
  18466. this.reportMode = ConsultationReportMode.ExpertReport,
  18467. this.diseases,
  18468. this.primaryDiagnosis,
  18469. this.initiatorCode,
  18470. this.isEmergency = false,
  18471. this.emergencyCode,
  18472. this.evaluates,
  18473. this.syncFollowUpVisitList,
  18474. DateTime? createTime,
  18475. DateTime? updateTime,
  18476. }) : super(
  18477. createTime: createTime,
  18478. updateTime: updateTime,
  18479. );
  18480. factory LiveConsultationDTO.fromJson(Map<String, dynamic> map) {
  18481. return LiveConsultationDTO(
  18482. code: map['Code'],
  18483. doctorInfo: map['DoctorInfo'] != null ? UserView.fromJson(map['DoctorInfo']) : null,
  18484. expertInfo: map['ExpertInfo'] != null ? UserView.fromJson(map['ExpertInfo']) : null,
  18485. patientInfo: map['PatientInfo'] != null ? PatientView.fromJson(map['PatientInfo']) : null,
  18486. primaryHosptial: map['PrimaryHosptial'] != null ? OrganizationView.fromJson(map['PrimaryHosptial']) : null,
  18487. centralHospital: map['CentralHospital'] != null ? OrganizationView.fromJson(map['CentralHospital']) : null,
  18488. deviceInfo: map['DeviceInfo'] != null ? DeviceView.fromJson(map['DeviceInfo']) : null,
  18489. checkPoint: map['CheckPoint'],
  18490. state: ConsultationState.values.firstWhere((e) => e.index == map['State']),
  18491. consultationNumber: map['ConsultationNumber'],
  18492. queuingNumber: map['QueuingNumber'],
  18493. qualityType: QualityType.values.firstWhere((e) => e.index == map['QualityType']),
  18494. followUpVisitStatus: FollowUpVisitStatusEnum.values.firstWhere((e) => e.index == map['FollowUpVisitStatus']),
  18495. isNeedFollowUpVisit: map['IsNeedFollowUpVisit'],
  18496. evaluateGrade: EvaluateGradeEnum.values.firstWhere((e) => e.index == map['EvaluateGrade']),
  18497. patientDatas: map['PatientDatas'] != null ? (map['PatientDatas'] as List).map((e)=>DataItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  18498. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  18499. scanPositions: map['ScanPositions']?.cast<String>().toList(),
  18500. scanUserCode: map['ScanUserCode'],
  18501. scanUserName: map['ScanUserName'],
  18502. operateUserCode: map['OperateUserCode'],
  18503. operateUserName: map['OperateUserName'],
  18504. consultationTime: map['ConsultationTime'] != null ? DateTime.parse(map['ConsultationTime']) : null,
  18505. consultationTimeEnd: map['ConsultationTimeEnd'] != null ? DateTime.parse(map['ConsultationTimeEnd']) : null,
  18506. consultationStatus: TransactionStatusEnum.values.firstWhere((e) => e.index == map['ConsultationStatus']),
  18507. rejectReason: map['RejectReason'],
  18508. location: map['Location'],
  18509. consultationMembers: map['ConsultationMembers'] != null ? (map['ConsultationMembers'] as List).map((e)=>ConsultationMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  18510. description: map['Description'],
  18511. consultationReminders: map['ConsultationReminders'] != null ? (map['ConsultationReminders'] as List).map((e)=>ConsultationReminderDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  18512. approverCode: map['ApproverCode'],
  18513. reportMode: ConsultationReportMode.values.firstWhere((e) => e.index == map['ReportMode']),
  18514. diseases: map['Diseases'],
  18515. primaryDiagnosis: map['PrimaryDiagnosis'],
  18516. initiatorCode: map['InitiatorCode'],
  18517. isEmergency: map['IsEmergency'],
  18518. emergencyCode: map['EmergencyCode'],
  18519. evaluates: map['Evaluates'] != null ? SyncEvaluatesRequest.fromJson(map['Evaluates']) : null,
  18520. syncFollowUpVisitList: map['SyncFollowUpVisitList'] != null ? (map['SyncFollowUpVisitList'] as List).map((e)=>SyncFollowUpVisitRequest.fromJson(e as Map<String,dynamic>)).toList() : null,
  18521. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  18522. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  18523. );
  18524. }
  18525. Map<String, dynamic> toJson() {
  18526. final map = super.toJson();
  18527. if(code != null)
  18528. map['Code'] = code;
  18529. if(doctorInfo != null)
  18530. map['DoctorInfo'] = doctorInfo;
  18531. if(expertInfo != null)
  18532. map['ExpertInfo'] = expertInfo;
  18533. if(patientInfo != null)
  18534. map['PatientInfo'] = patientInfo;
  18535. if(primaryHosptial != null)
  18536. map['PrimaryHosptial'] = primaryHosptial;
  18537. if(centralHospital != null)
  18538. map['CentralHospital'] = centralHospital;
  18539. if(deviceInfo != null)
  18540. map['DeviceInfo'] = deviceInfo;
  18541. if(checkPoint != null)
  18542. map['CheckPoint'] = checkPoint;
  18543. map['State'] = state.index;
  18544. if(consultationNumber != null)
  18545. map['ConsultationNumber'] = consultationNumber;
  18546. if(queuingNumber != null)
  18547. map['QueuingNumber'] = queuingNumber;
  18548. map['QualityType'] = qualityType.index;
  18549. map['FollowUpVisitStatus'] = followUpVisitStatus.index;
  18550. map['IsNeedFollowUpVisit'] = isNeedFollowUpVisit;
  18551. map['EvaluateGrade'] = evaluateGrade.index;
  18552. if(fileInfos != null)
  18553. map['FileInfos'] = fileInfos;
  18554. if(reportConclusionInfos != null)
  18555. map['ReportConclusionInfos'] = reportConclusionInfos;
  18556. if(patientDatas != null)
  18557. map['PatientDatas'] = patientDatas;
  18558. map['PatientType'] = patientType.index;
  18559. if(scanPositions != null)
  18560. map['ScanPositions'] = scanPositions;
  18561. if(scanUserCode != null)
  18562. map['ScanUserCode'] = scanUserCode;
  18563. if(scanUserName != null)
  18564. map['ScanUserName'] = scanUserName;
  18565. if(operateUserCode != null)
  18566. map['OperateUserCode'] = operateUserCode;
  18567. if(operateUserName != null)
  18568. map['OperateUserName'] = operateUserName;
  18569. if(consultationTime != null)
  18570. map['ConsultationTime'] = JsonRpcUtils.dateFormat(consultationTime!);
  18571. if(consultationTimeEnd != null)
  18572. map['ConsultationTimeEnd'] = JsonRpcUtils.dateFormat(consultationTimeEnd!);
  18573. map['ConsultationStatus'] = consultationStatus.index;
  18574. if(rejectReason != null)
  18575. map['RejectReason'] = rejectReason;
  18576. if(location != null)
  18577. map['Location'] = location;
  18578. if(consultationMembers != null)
  18579. map['ConsultationMembers'] = consultationMembers;
  18580. if(description != null)
  18581. map['Description'] = description;
  18582. if(consultationReminders != null)
  18583. map['ConsultationReminders'] = consultationReminders;
  18584. if(approverCode != null)
  18585. map['ApproverCode'] = approverCode;
  18586. map['ReportMode'] = reportMode.index;
  18587. if(diseases != null)
  18588. map['Diseases'] = diseases;
  18589. if(primaryDiagnosis != null)
  18590. map['PrimaryDiagnosis'] = primaryDiagnosis;
  18591. if(initiatorCode != null)
  18592. map['InitiatorCode'] = initiatorCode;
  18593. map['IsEmergency'] = isEmergency;
  18594. if(emergencyCode != null)
  18595. map['EmergencyCode'] = emergencyCode;
  18596. if(evaluates != null)
  18597. map['Evaluates'] = evaluates;
  18598. if(syncFollowUpVisitList != null)
  18599. map['SyncFollowUpVisitList'] = syncFollowUpVisitList;
  18600. return map;
  18601. }
  18602. }
  18603. class SignStudentView {
  18604. String? studentCode;
  18605. String? studentName;
  18606. CourseAppearTypeEnum courseAppearType;
  18607. bool isPay;
  18608. StudentCourseStatusEnum signCourseStatus;
  18609. bool isNoSpeaking;
  18610. bool isAssistant;
  18611. List<int>? smallHeadImage;
  18612. SignStudentView({
  18613. this.studentCode,
  18614. this.studentName,
  18615. this.courseAppearType = CourseAppearTypeEnum.Unknown,
  18616. this.isPay = false,
  18617. this.signCourseStatus = StudentCourseStatusEnum.All,
  18618. this.isNoSpeaking = false,
  18619. this.isAssistant = false,
  18620. this.smallHeadImage,
  18621. });
  18622. factory SignStudentView.fromJson(Map<String, dynamic> map) {
  18623. final smallHeadImageData = map['SmallHeadImage'];
  18624. return SignStudentView(
  18625. studentCode: map['StudentCode'],
  18626. studentName: map['StudentName'],
  18627. courseAppearType: CourseAppearTypeEnum.values.firstWhere((e) => e.index == map['CourseAppearType']),
  18628. isPay: map['IsPay'],
  18629. signCourseStatus: StudentCourseStatusEnum.values.firstWhere((e) => e.index == map['SignCourseStatus']),
  18630. isNoSpeaking: map['IsNoSpeaking'],
  18631. isAssistant: map['IsAssistant'],
  18632. smallHeadImage: smallHeadImageData != null ? (smallHeadImageData as List).map((e) => e as int).toList(): null,
  18633. );
  18634. }
  18635. Map<String, dynamic> toJson() {
  18636. final map = Map<String, dynamic>();
  18637. if(studentCode != null) {
  18638. map['StudentCode'] = studentCode;
  18639. }
  18640. if(studentName != null) {
  18641. map['StudentName'] = studentName;
  18642. }
  18643. map['CourseAppearType'] = courseAppearType.index;
  18644. map['IsPay'] = isPay;
  18645. map['SignCourseStatus'] = signCourseStatus.index;
  18646. map['IsNoSpeaking'] = isNoSpeaking;
  18647. map['IsAssistant'] = isAssistant;
  18648. if(smallHeadImage != null) {
  18649. map['SmallHeadImage'] = smallHeadImage;
  18650. }
  18651. return map;
  18652. }
  18653. }
  18654. class CourseExaminationQuestionView {
  18655. String? code;
  18656. String? stem;
  18657. QuestionTypeEnum questionType;
  18658. List<QuestionOptionDTO>? questionOptionList;
  18659. List<QuestionFileDTO>? fileList;
  18660. bool trueOrFalse;
  18661. double score;
  18662. CourseExaminationQuestionView({
  18663. this.code,
  18664. this.stem,
  18665. this.questionType = QuestionTypeEnum.Judge,
  18666. this.questionOptionList,
  18667. this.fileList,
  18668. this.trueOrFalse = false,
  18669. this.score = 0,
  18670. });
  18671. factory CourseExaminationQuestionView.fromJson(Map<String, dynamic> map) {
  18672. return CourseExaminationQuestionView(
  18673. code: map['Code'],
  18674. stem: map['Stem'],
  18675. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  18676. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  18677. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  18678. trueOrFalse: map['TrueOrFalse'],
  18679. score: double.parse(map['Score'].toString()),
  18680. );
  18681. }
  18682. Map<String, dynamic> toJson() {
  18683. final map = Map<String, dynamic>();
  18684. if(code != null) {
  18685. map['Code'] = code;
  18686. }
  18687. if(stem != null) {
  18688. map['Stem'] = stem;
  18689. }
  18690. map['QuestionType'] = questionType.index;
  18691. if(questionOptionList != null) {
  18692. map['QuestionOptionList'] = questionOptionList;
  18693. }
  18694. if(fileList != null) {
  18695. map['FileList'] = fileList;
  18696. }
  18697. map['TrueOrFalse'] = trueOrFalse;
  18698. map['Score'] = score;
  18699. return map;
  18700. }
  18701. }
  18702. class CourseExaminationView {
  18703. String? code;
  18704. String? name;
  18705. double totalScore;
  18706. List<CourseExaminationQuestionView>? questionList;
  18707. int submitLimitCount;
  18708. bool isRelease;
  18709. CourseExaminationTypeEnum examinationType;
  18710. DateTime? startTime;
  18711. int examDuration;
  18712. double passingScore;
  18713. CourseExaminationView({
  18714. this.code,
  18715. this.name,
  18716. this.totalScore = 0,
  18717. this.questionList,
  18718. this.submitLimitCount = 0,
  18719. this.isRelease = false,
  18720. this.examinationType = CourseExaminationTypeEnum.Practice,
  18721. this.startTime,
  18722. this.examDuration = 0,
  18723. this.passingScore = 0,
  18724. });
  18725. factory CourseExaminationView.fromJson(Map<String, dynamic> map) {
  18726. return CourseExaminationView(
  18727. code: map['Code'],
  18728. name: map['Name'],
  18729. totalScore: double.parse(map['TotalScore'].toString()),
  18730. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>CourseExaminationQuestionView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18731. submitLimitCount: map['SubmitLimitCount'],
  18732. isRelease: map['IsRelease'],
  18733. examinationType: CourseExaminationTypeEnum.values.firstWhere((e) => e.index == map['ExaminationType']),
  18734. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  18735. examDuration: map['ExamDuration'],
  18736. passingScore: double.parse(map['PassingScore'].toString()),
  18737. );
  18738. }
  18739. Map<String, dynamic> toJson() {
  18740. final map = Map<String, dynamic>();
  18741. if(code != null) {
  18742. map['Code'] = code;
  18743. }
  18744. if(name != null) {
  18745. map['Name'] = name;
  18746. }
  18747. map['TotalScore'] = totalScore;
  18748. if(questionList != null) {
  18749. map['QuestionList'] = questionList;
  18750. }
  18751. map['SubmitLimitCount'] = submitLimitCount;
  18752. map['IsRelease'] = isRelease;
  18753. map['ExaminationType'] = examinationType.index;
  18754. if(startTime != null) {
  18755. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  18756. }
  18757. map['ExamDuration'] = examDuration;
  18758. map['PassingScore'] = passingScore;
  18759. return map;
  18760. }
  18761. }
  18762. class OnlineTrainingDTO extends BaseDTO{
  18763. String? code;
  18764. String? name;
  18765. String? teacherCode;
  18766. String? teacherName;
  18767. int duration;
  18768. CourseStatusEnum status;
  18769. CourseViewRangeEnum viewRange;
  18770. double price;
  18771. String? courseIntro;
  18772. CourseAudienceTypeEnum audienceType;
  18773. String? poster;
  18774. String? creatorCode;
  18775. String? organizationCode;
  18776. DateTime? startTime;
  18777. DateTime? deadline;
  18778. DateTime? actualStartTime;
  18779. DateTime? actualEndTime;
  18780. List<CourseLabelView>? caseLabelInfos;
  18781. String? courseToken;
  18782. String? coursewareToken;
  18783. List<GroupView>? userGroupInfos;
  18784. CourseTypeEnum courseType;
  18785. List<SignStudentView>? students;
  18786. List<SignStudentView>? assistants;
  18787. List<SignStudentView>? experts;
  18788. List<CourseLabelView>? courseLabelInfos;
  18789. bool isAgentCourse;
  18790. bool isStick;
  18791. int sort;
  18792. List<CourseExaminationView>? bindExams;
  18793. List<String>? courseVideoCodes;
  18794. CourseAppearTypeEnum courseAppearType;
  18795. List<String>? courseAlbumCodes;
  18796. int playCount;
  18797. List<String>? courseMaterialCodes;
  18798. ApplyStateEnum applyState;
  18799. String? conversationId;
  18800. ICollection<ChannelDataView>? channelDatas;
  18801. AdminView? createAdmin;
  18802. ICollection<AdminView>? owners;
  18803. bool teacherOnlineState;
  18804. bool startCourseInAdvance;
  18805. List<UserView>? assistantInfos;
  18806. List<UserView>? guestInfos;
  18807. String? credentialCode;
  18808. String? courseNotice;
  18809. List<UserView>? meetingMemberInfos;
  18810. OnlineTrainingDTO({
  18811. this.code,
  18812. this.name,
  18813. this.teacherCode,
  18814. this.teacherName,
  18815. this.duration = 0,
  18816. this.status = CourseStatusEnum.Unknown,
  18817. this.viewRange = CourseViewRangeEnum.All,
  18818. this.price = 0,
  18819. this.courseIntro,
  18820. this.audienceType = CourseAudienceTypeEnum.Unknown,
  18821. this.poster,
  18822. this.creatorCode,
  18823. this.organizationCode,
  18824. this.startTime,
  18825. this.deadline,
  18826. this.actualStartTime,
  18827. this.actualEndTime,
  18828. this.caseLabelInfos,
  18829. this.courseToken,
  18830. this.coursewareToken,
  18831. this.userGroupInfos,
  18832. this.courseType = CourseTypeEnum.Unknown,
  18833. this.students,
  18834. this.assistants,
  18835. this.experts,
  18836. this.courseLabelInfos,
  18837. this.isAgentCourse = false,
  18838. this.isStick = false,
  18839. this.sort = 0,
  18840. this.bindExams,
  18841. this.courseVideoCodes,
  18842. this.courseAppearType = CourseAppearTypeEnum.Unknown,
  18843. this.courseAlbumCodes,
  18844. this.playCount = 0,
  18845. this.courseMaterialCodes,
  18846. this.applyState = ApplyStateEnum.NotApply,
  18847. this.conversationId,
  18848. this.channelDatas,
  18849. this.createAdmin,
  18850. this.owners,
  18851. this.teacherOnlineState = false,
  18852. this.startCourseInAdvance = false,
  18853. this.assistantInfos,
  18854. this.guestInfos,
  18855. this.credentialCode,
  18856. this.courseNotice,
  18857. this.meetingMemberInfos,
  18858. DateTime? createTime,
  18859. DateTime? updateTime,
  18860. }) : super(
  18861. createTime: createTime,
  18862. updateTime: updateTime,
  18863. );
  18864. factory OnlineTrainingDTO.fromJson(Map<String, dynamic> map) {
  18865. return OnlineTrainingDTO(
  18866. code: map['Code'],
  18867. name: map['Name'],
  18868. teacherCode: map['TeacherCode'],
  18869. teacherName: map['TeacherName'],
  18870. duration: map['Duration'],
  18871. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  18872. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  18873. price: double.parse(map['Price'].toString()),
  18874. courseIntro: map['CourseIntro'],
  18875. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  18876. poster: map['Poster'],
  18877. creatorCode: map['CreatorCode'],
  18878. organizationCode: map['OrganizationCode'],
  18879. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  18880. deadline: map['Deadline'] != null ? DateTime.parse(map['Deadline']) : null,
  18881. actualStartTime: map['ActualStartTime'] != null ? DateTime.parse(map['ActualStartTime']) : null,
  18882. actualEndTime: map['ActualEndTime'] != null ? DateTime.parse(map['ActualEndTime']) : null,
  18883. caseLabelInfos: map['CaseLabelInfos'] != null ? (map['CaseLabelInfos'] as List).map((e)=>CourseLabelView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18884. courseToken: map['CourseToken'],
  18885. coursewareToken: map['CoursewareToken'],
  18886. userGroupInfos: map['UserGroupInfos'] != null ? (map['UserGroupInfos'] as List).map((e)=>GroupView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18887. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  18888. students: map['Students'] != null ? (map['Students'] as List).map((e)=>SignStudentView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18889. assistants: map['Assistants'] != null ? (map['Assistants'] as List).map((e)=>SignStudentView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18890. experts: map['Experts'] != null ? (map['Experts'] as List).map((e)=>SignStudentView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18891. courseLabelInfos: map['CourseLabelInfos'] != null ? (map['CourseLabelInfos'] as List).map((e)=>CourseLabelView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18892. isAgentCourse: map['IsAgentCourse'],
  18893. isStick: map['IsStick'],
  18894. sort: map['Sort'],
  18895. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18896. courseVideoCodes: map['CourseVideoCodes']?.cast<String>().toList(),
  18897. courseAppearType: CourseAppearTypeEnum.values.firstWhere((e) => e.index == map['CourseAppearType']),
  18898. courseAlbumCodes: map['CourseAlbumCodes']?.cast<String>().toList(),
  18899. playCount: map['PlayCount'],
  18900. courseMaterialCodes: map['CourseMaterialCodes']?.cast<String>().toList(),
  18901. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  18902. conversationId: map['ConversationId'],
  18903. createAdmin: map['CreateAdmin'] != null ? AdminView.fromJson(map['CreateAdmin']) : null,
  18904. teacherOnlineState: map['TeacherOnlineState'],
  18905. startCourseInAdvance: map['StartCourseInAdvance'],
  18906. assistantInfos: map['AssistantInfos'] != null ? (map['AssistantInfos'] as List).map((e)=>UserView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18907. guestInfos: map['GuestInfos'] != null ? (map['GuestInfos'] as List).map((e)=>UserView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18908. credentialCode: map['CredentialCode'],
  18909. courseNotice: map['CourseNotice'],
  18910. meetingMemberInfos: map['MeetingMemberInfos'] != null ? (map['MeetingMemberInfos'] as List).map((e)=>UserView.fromJson(e as Map<String,dynamic>)).toList() : null,
  18911. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  18912. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  18913. );
  18914. }
  18915. Map<String, dynamic> toJson() {
  18916. final map = super.toJson();
  18917. if(code != null)
  18918. map['Code'] = code;
  18919. if(name != null)
  18920. map['Name'] = name;
  18921. if(teacherCode != null)
  18922. map['TeacherCode'] = teacherCode;
  18923. if(teacherName != null)
  18924. map['TeacherName'] = teacherName;
  18925. map['Duration'] = duration;
  18926. map['Status'] = status.index;
  18927. map['ViewRange'] = viewRange.index;
  18928. map['Price'] = price;
  18929. if(courseIntro != null)
  18930. map['CourseIntro'] = courseIntro;
  18931. map['AudienceType'] = audienceType.index;
  18932. if(poster != null)
  18933. map['Poster'] = poster;
  18934. if(creatorCode != null)
  18935. map['CreatorCode'] = creatorCode;
  18936. if(organizationCode != null)
  18937. map['OrganizationCode'] = organizationCode;
  18938. if(startTime != null)
  18939. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  18940. if(deadline != null)
  18941. map['Deadline'] = JsonRpcUtils.dateFormat(deadline!);
  18942. if(actualStartTime != null)
  18943. map['ActualStartTime'] = JsonRpcUtils.dateFormat(actualStartTime!);
  18944. if(actualEndTime != null)
  18945. map['ActualEndTime'] = JsonRpcUtils.dateFormat(actualEndTime!);
  18946. if(caseLabelInfos != null)
  18947. map['CaseLabelInfos'] = caseLabelInfos;
  18948. if(courseToken != null)
  18949. map['CourseToken'] = courseToken;
  18950. if(coursewareToken != null)
  18951. map['CoursewareToken'] = coursewareToken;
  18952. if(userGroupInfos != null)
  18953. map['UserGroupInfos'] = userGroupInfos;
  18954. map['CourseType'] = courseType.index;
  18955. if(students != null)
  18956. map['Students'] = students;
  18957. if(assistants != null)
  18958. map['Assistants'] = assistants;
  18959. if(experts != null)
  18960. map['Experts'] = experts;
  18961. if(courseLabelInfos != null)
  18962. map['CourseLabelInfos'] = courseLabelInfos;
  18963. map['IsAgentCourse'] = isAgentCourse;
  18964. map['IsStick'] = isStick;
  18965. map['Sort'] = sort;
  18966. if(bindExams != null)
  18967. map['BindExams'] = bindExams;
  18968. if(courseVideoCodes != null)
  18969. map['CourseVideoCodes'] = courseVideoCodes;
  18970. map['CourseAppearType'] = courseAppearType.index;
  18971. if(courseAlbumCodes != null)
  18972. map['CourseAlbumCodes'] = courseAlbumCodes;
  18973. map['PlayCount'] = playCount;
  18974. if(courseMaterialCodes != null)
  18975. map['CourseMaterialCodes'] = courseMaterialCodes;
  18976. map['ApplyState'] = applyState.index;
  18977. if(conversationId != null)
  18978. map['ConversationId'] = conversationId;
  18979. if(channelDatas != null)
  18980. map['ChannelDatas'] = channelDatas;
  18981. if(createAdmin != null)
  18982. map['CreateAdmin'] = createAdmin;
  18983. if(owners != null)
  18984. map['Owners'] = owners;
  18985. map['TeacherOnlineState'] = teacherOnlineState;
  18986. map['StartCourseInAdvance'] = startCourseInAdvance;
  18987. if(assistantInfos != null)
  18988. map['AssistantInfos'] = assistantInfos;
  18989. if(guestInfos != null)
  18990. map['GuestInfos'] = guestInfos;
  18991. if(credentialCode != null)
  18992. map['CredentialCode'] = credentialCode;
  18993. if(courseNotice != null)
  18994. map['CourseNotice'] = courseNotice;
  18995. if(meetingMemberInfos != null)
  18996. map['MeetingMemberInfos'] = meetingMemberInfos;
  18997. return map;
  18998. }
  18999. }
  19000. class OnlineVideoDTO extends BaseDTO{
  19001. String? code;
  19002. String? name;
  19003. String? creatorCode;
  19004. String? creatorName;
  19005. UploadFileTypeEnum fodderType;
  19006. bool isPublic;
  19007. CourseViewRangeEnum viewRange;
  19008. String? videoToken;
  19009. String? vodFileId;
  19010. String? poster;
  19011. int duration;
  19012. double videoSize;
  19013. int playCount;
  19014. String? srcFileToken;
  19015. String? description;
  19016. VideoImportanceEnum importance;
  19017. VideoPermissionsEnum permissions;
  19018. List<UserView>? users;
  19019. List<GroupView>? userGroups;
  19020. List<ClassView>? classInfos;
  19021. List<OnlineTrainingDTO>? courses;
  19022. List<VideoLabelEnum>? labels;
  19023. String? teachingDocumentName;
  19024. String? teachingDocument;
  19025. int realBrowsedCount;
  19026. int baseBrowsedCount;
  19027. List<UserView>? finishedUsers;
  19028. OnlineVideoDTO({
  19029. this.code,
  19030. this.name,
  19031. this.creatorCode,
  19032. this.creatorName,
  19033. this.fodderType = UploadFileTypeEnum.Unknown,
  19034. this.isPublic = false,
  19035. this.viewRange = CourseViewRangeEnum.All,
  19036. this.videoToken,
  19037. this.vodFileId,
  19038. this.poster,
  19039. this.duration = 0,
  19040. this.videoSize = 0,
  19041. this.playCount = 0,
  19042. this.srcFileToken,
  19043. this.description,
  19044. this.importance = VideoImportanceEnum.Normal,
  19045. this.permissions = VideoPermissionsEnum.Public,
  19046. this.users,
  19047. this.userGroups,
  19048. this.classInfos,
  19049. this.courses,
  19050. this.labels,
  19051. this.teachingDocumentName,
  19052. this.teachingDocument,
  19053. this.realBrowsedCount = 0,
  19054. this.baseBrowsedCount = 0,
  19055. this.finishedUsers,
  19056. DateTime? createTime,
  19057. DateTime? updateTime,
  19058. }) : super(
  19059. createTime: createTime,
  19060. updateTime: updateTime,
  19061. );
  19062. factory OnlineVideoDTO.fromJson(Map<String, dynamic> map) {
  19063. return OnlineVideoDTO(
  19064. code: map['Code'],
  19065. name: map['Name'],
  19066. creatorCode: map['CreatorCode'],
  19067. creatorName: map['CreatorName'],
  19068. fodderType: UploadFileTypeEnum.values.firstWhere((e) => e.index == map['FodderType']),
  19069. isPublic: map['IsPublic'],
  19070. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  19071. videoToken: map['VideoToken'],
  19072. vodFileId: map['VodFileId'],
  19073. poster: map['Poster'],
  19074. duration: map['Duration'],
  19075. videoSize: double.parse(map['VideoSize'].toString()),
  19076. playCount: map['PlayCount'],
  19077. srcFileToken: map['SrcFileToken'],
  19078. description: map['Description'],
  19079. importance: VideoImportanceEnum.values.firstWhere((e) => e.index == map['Importance']),
  19080. permissions: VideoPermissionsEnum.values.firstWhere((e) => e.index == map['Permissions']),
  19081. users: map['Users'] != null ? (map['Users'] as List).map((e)=>UserView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19082. userGroups: map['UserGroups'] != null ? (map['UserGroups'] as List).map((e)=>GroupView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19083. classInfos: map['ClassInfos'] != null ? (map['ClassInfos'] as List).map((e)=>ClassView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19084. courses: map['Courses'] != null ? (map['Courses'] as List).map((e)=>OnlineTrainingDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  19085. labels: map['Labels'] != null ? (map['Labels'] as List).map((e)=>VideoLabelEnum.values.firstWhere((i) => i.index == e)).toList() : null,
  19086. teachingDocumentName: map['TeachingDocumentName'],
  19087. teachingDocument: map['TeachingDocument'],
  19088. realBrowsedCount: map['RealBrowsedCount'],
  19089. baseBrowsedCount: map['BaseBrowsedCount'],
  19090. finishedUsers: map['FinishedUsers'] != null ? (map['FinishedUsers'] as List).map((e)=>UserView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19091. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  19092. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  19093. );
  19094. }
  19095. Map<String, dynamic> toJson() {
  19096. final map = super.toJson();
  19097. if(code != null)
  19098. map['Code'] = code;
  19099. if(name != null)
  19100. map['Name'] = name;
  19101. if(creatorCode != null)
  19102. map['CreatorCode'] = creatorCode;
  19103. if(creatorName != null)
  19104. map['CreatorName'] = creatorName;
  19105. map['FodderType'] = fodderType.index;
  19106. map['IsPublic'] = isPublic;
  19107. map['ViewRange'] = viewRange.index;
  19108. if(videoToken != null)
  19109. map['VideoToken'] = videoToken;
  19110. if(vodFileId != null)
  19111. map['VodFileId'] = vodFileId;
  19112. if(poster != null)
  19113. map['Poster'] = poster;
  19114. map['Duration'] = duration;
  19115. map['VideoSize'] = videoSize;
  19116. map['PlayCount'] = playCount;
  19117. if(srcFileToken != null)
  19118. map['SrcFileToken'] = srcFileToken;
  19119. if(description != null)
  19120. map['Description'] = description;
  19121. map['Importance'] = importance.index;
  19122. map['Permissions'] = permissions.index;
  19123. if(users != null)
  19124. map['Users'] = users;
  19125. if(userGroups != null)
  19126. map['UserGroups'] = userGroups;
  19127. if(classInfos != null)
  19128. map['ClassInfos'] = classInfos;
  19129. if(courses != null)
  19130. map['Courses'] = courses;
  19131. if(labels != null)
  19132. map['Labels'] = labels;
  19133. if(teachingDocumentName != null)
  19134. map['TeachingDocumentName'] = teachingDocumentName;
  19135. if(teachingDocument != null)
  19136. map['TeachingDocument'] = teachingDocument;
  19137. map['RealBrowsedCount'] = realBrowsedCount;
  19138. map['BaseBrowsedCount'] = baseBrowsedCount;
  19139. if(finishedUsers != null)
  19140. map['FinishedUsers'] = finishedUsers;
  19141. return map;
  19142. }
  19143. }
  19144. class QualifiedView {
  19145. QualifiedState qualifiedState;
  19146. QualityType qualityType;
  19147. QualifiedView({
  19148. this.qualifiedState = QualifiedState.UnSet,
  19149. this.qualityType = QualityType.None,
  19150. });
  19151. factory QualifiedView.fromJson(Map<String, dynamic> map) {
  19152. return QualifiedView(
  19153. qualifiedState: QualifiedState.values.firstWhere((e) => e.index == map['QualifiedState']),
  19154. qualityType: QualityType.values.firstWhere((e) => e.index == map['QualityType']),
  19155. );
  19156. }
  19157. Map<String, dynamic> toJson() {
  19158. final map = Map<String, dynamic>();
  19159. map['QualifiedState'] = qualifiedState.index;
  19160. map['QualityType'] = qualityType.index;
  19161. return map;
  19162. }
  19163. }
  19164. class ScreenshotView {
  19165. String? createUserCode;
  19166. String? createUserName;
  19167. String? prelDiagnosis;
  19168. String? examDoctor;
  19169. ScreenshotView({
  19170. this.createUserCode,
  19171. this.createUserName,
  19172. this.prelDiagnosis,
  19173. this.examDoctor,
  19174. });
  19175. factory ScreenshotView.fromJson(Map<String, dynamic> map) {
  19176. return ScreenshotView(
  19177. createUserCode: map['CreateUserCode'],
  19178. createUserName: map['CreateUserName'],
  19179. prelDiagnosis: map['PrelDiagnosis'],
  19180. examDoctor: map['ExamDoctor'],
  19181. );
  19182. }
  19183. Map<String, dynamic> toJson() {
  19184. final map = Map<String, dynamic>();
  19185. if(createUserCode != null) {
  19186. map['CreateUserCode'] = createUserCode;
  19187. }
  19188. if(createUserName != null) {
  19189. map['CreateUserName'] = createUserName;
  19190. }
  19191. if(prelDiagnosis != null) {
  19192. map['PrelDiagnosis'] = prelDiagnosis;
  19193. }
  19194. if(examDoctor != null) {
  19195. map['ExamDoctor'] = examDoctor;
  19196. }
  19197. return map;
  19198. }
  19199. }
  19200. class RemoteDiagnosisDTO extends BaseDTO{
  19201. String? code;
  19202. String? examId;
  19203. OrganizationView? organizationInfo;
  19204. DeviceView? deviceInfo;
  19205. PatientView? patientInfo;
  19206. ScreenshotView? screenshotInfo;
  19207. QualifiedView? qualifiedInfo;
  19208. List<DiagnosisView>? diagnosisInfos;
  19209. List<String>? shareUserCodes;
  19210. String? customDoctor;
  19211. String? customOrganzation;
  19212. String? equipmentSN;
  19213. List<RemoteDiagnosisFileView>? fileInfos;
  19214. List<String>? completedUsers;
  19215. RecordStatusEnum recordStatus;
  19216. String? creatorCode;
  19217. String? tags;
  19218. RecordCreateTypeEnum createType;
  19219. List<DataItemDTO>? patientDataInfo;
  19220. List<PatientInfoExt>? patientInfoExtList;
  19221. String? patientType;
  19222. List<String>? readUsers;
  19223. List<String>? associatedExamCodes;
  19224. RemoteDiagnosisDTO({
  19225. this.code,
  19226. this.examId,
  19227. this.organizationInfo,
  19228. this.deviceInfo,
  19229. this.patientInfo,
  19230. this.screenshotInfo,
  19231. this.qualifiedInfo,
  19232. this.diagnosisInfos,
  19233. this.shareUserCodes,
  19234. this.customDoctor,
  19235. this.customOrganzation,
  19236. this.equipmentSN,
  19237. this.fileInfos,
  19238. this.completedUsers,
  19239. this.recordStatus = RecordStatusEnum.NotScanned,
  19240. this.creatorCode,
  19241. this.tags,
  19242. this.createType = RecordCreateTypeEnum.Reservation,
  19243. this.patientDataInfo,
  19244. this.patientInfoExtList,
  19245. this.patientType,
  19246. this.readUsers,
  19247. this.associatedExamCodes,
  19248. DateTime? createTime,
  19249. DateTime? updateTime,
  19250. }) : super(
  19251. createTime: createTime,
  19252. updateTime: updateTime,
  19253. );
  19254. factory RemoteDiagnosisDTO.fromJson(Map<String, dynamic> map) {
  19255. return RemoteDiagnosisDTO(
  19256. code: map['Code'],
  19257. examId: map['ExamId'],
  19258. organizationInfo: map['OrganizationInfo'] != null ? OrganizationView.fromJson(map['OrganizationInfo']) : null,
  19259. deviceInfo: map['DeviceInfo'] != null ? DeviceView.fromJson(map['DeviceInfo']) : null,
  19260. patientInfo: map['PatientInfo'] != null ? PatientView.fromJson(map['PatientInfo']) : null,
  19261. screenshotInfo: map['ScreenshotInfo'] != null ? ScreenshotView.fromJson(map['ScreenshotInfo']) : null,
  19262. qualifiedInfo: map['QualifiedInfo'] != null ? QualifiedView.fromJson(map['QualifiedInfo']) : null,
  19263. diagnosisInfos: map['DiagnosisInfos'] != null ? (map['DiagnosisInfos'] as List).map((e)=>DiagnosisView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19264. shareUserCodes: map['ShareUserCodes']?.cast<String>().toList(),
  19265. customDoctor: map['CustomDoctor'],
  19266. customOrganzation: map['CustomOrganzation'],
  19267. equipmentSN: map['EquipmentSN'],
  19268. fileInfos: map['FileInfos'] != null ? (map['FileInfos'] as List).map((e)=>RemoteDiagnosisFileView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19269. completedUsers: map['CompletedUsers']?.cast<String>().toList(),
  19270. recordStatus: RecordStatusEnum.values.firstWhere((e) => e.index == map['RecordStatus']),
  19271. creatorCode: map['CreatorCode'],
  19272. tags: map['Tags'],
  19273. createType: RecordCreateTypeEnum.values.firstWhere((e) => e.index == map['CreateType']),
  19274. patientDataInfo: map['PatientDataInfo'] != null ? (map['PatientDataInfo'] as List).map((e)=>DataItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  19275. patientInfoExtList: map['PatientInfoExtList'] != null ? (map['PatientInfoExtList'] as List).map((e)=>PatientInfoExt.fromJson(e as Map<String,dynamic>)).toList() : null,
  19276. patientType: map['PatientType'],
  19277. readUsers: map['ReadUsers']?.cast<String>().toList(),
  19278. associatedExamCodes: map['AssociatedExamCodes']?.cast<String>().toList(),
  19279. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  19280. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  19281. );
  19282. }
  19283. Map<String, dynamic> toJson() {
  19284. final map = super.toJson();
  19285. if(code != null)
  19286. map['Code'] = code;
  19287. if(examId != null)
  19288. map['ExamId'] = examId;
  19289. if(organizationInfo != null)
  19290. map['OrganizationInfo'] = organizationInfo;
  19291. if(deviceInfo != null)
  19292. map['DeviceInfo'] = deviceInfo;
  19293. if(patientInfo != null)
  19294. map['PatientInfo'] = patientInfo;
  19295. if(screenshotInfo != null)
  19296. map['ScreenshotInfo'] = screenshotInfo;
  19297. if(qualifiedInfo != null)
  19298. map['QualifiedInfo'] = qualifiedInfo;
  19299. if(diagnosisInfos != null)
  19300. map['DiagnosisInfos'] = diagnosisInfos;
  19301. if(shareUserCodes != null)
  19302. map['ShareUserCodes'] = shareUserCodes;
  19303. if(customDoctor != null)
  19304. map['CustomDoctor'] = customDoctor;
  19305. if(customOrganzation != null)
  19306. map['CustomOrganzation'] = customOrganzation;
  19307. if(equipmentSN != null)
  19308. map['EquipmentSN'] = equipmentSN;
  19309. if(fileInfos != null)
  19310. map['FileInfos'] = fileInfos;
  19311. if(completedUsers != null)
  19312. map['CompletedUsers'] = completedUsers;
  19313. map['RecordStatus'] = recordStatus.index;
  19314. if(creatorCode != null)
  19315. map['CreatorCode'] = creatorCode;
  19316. if(tags != null)
  19317. map['Tags'] = tags;
  19318. map['CreateType'] = createType.index;
  19319. if(patientDataInfo != null)
  19320. map['PatientDataInfo'] = patientDataInfo;
  19321. if(patientInfoExtList != null)
  19322. map['PatientInfoExtList'] = patientInfoExtList;
  19323. if(patientType != null)
  19324. map['PatientType'] = patientType;
  19325. if(readUsers != null)
  19326. map['ReadUsers'] = readUsers;
  19327. if(associatedExamCodes != null)
  19328. map['AssociatedExamCodes'] = associatedExamCodes;
  19329. return map;
  19330. }
  19331. }
  19332. class ReportImageInfo2 {
  19333. String? name;
  19334. ImageTypeEnum type;
  19335. String? examDataId;
  19336. ReportImageInfo2({
  19337. this.name,
  19338. this.type = ImageTypeEnum.Local,
  19339. this.examDataId,
  19340. });
  19341. factory ReportImageInfo2.fromJson(Map<String, dynamic> map) {
  19342. return ReportImageInfo2(
  19343. name: map['Name'],
  19344. type: ImageTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  19345. examDataId: map['ExamDataId'],
  19346. );
  19347. }
  19348. Map<String, dynamic> toJson() {
  19349. final map = Map<String, dynamic>();
  19350. if(name != null) {
  19351. map['Name'] = name;
  19352. }
  19353. map['Type'] = type.index;
  19354. if(examDataId != null) {
  19355. map['ExamDataId'] = examDataId;
  19356. }
  19357. return map;
  19358. }
  19359. }
  19360. class CustomLabelView {
  19361. String? name;
  19362. String? code;
  19363. String? description;
  19364. String? fatherCode;
  19365. CustomLabelTypeEnum labelType;
  19366. bool isShow;
  19367. List<String>? userIds;
  19368. CustomLabelView({
  19369. this.name,
  19370. this.code,
  19371. this.description,
  19372. this.fatherCode,
  19373. this.labelType = CustomLabelTypeEnum.Group,
  19374. this.isShow = false,
  19375. this.userIds,
  19376. });
  19377. factory CustomLabelView.fromJson(Map<String, dynamic> map) {
  19378. return CustomLabelView(
  19379. name: map['Name'],
  19380. code: map['Code'],
  19381. description: map['Description'],
  19382. fatherCode: map['FatherCode'],
  19383. labelType: CustomLabelTypeEnum.values.firstWhere((e) => e.index == map['LabelType']),
  19384. isShow: map['IsShow'],
  19385. userIds: map['UserIds']?.cast<String>().toList(),
  19386. );
  19387. }
  19388. Map<String, dynamic> toJson() {
  19389. final map = Map<String, dynamic>();
  19390. if(name != null) {
  19391. map['Name'] = name;
  19392. }
  19393. if(code != null) {
  19394. map['Code'] = code;
  19395. }
  19396. if(description != null) {
  19397. map['Description'] = description;
  19398. }
  19399. if(fatherCode != null) {
  19400. map['FatherCode'] = fatherCode;
  19401. }
  19402. map['LabelType'] = labelType.index;
  19403. map['IsShow'] = isShow;
  19404. if(userIds != null) {
  19405. map['UserIds'] = userIds;
  19406. }
  19407. return map;
  19408. }
  19409. }
  19410. class QualityControlScoreItemView {
  19411. int sort;
  19412. double score;
  19413. QualityControlScoreItemView({
  19414. this.sort = 0,
  19415. this.score = 0,
  19416. });
  19417. factory QualityControlScoreItemView.fromJson(Map<String, dynamic> map) {
  19418. return QualityControlScoreItemView(
  19419. sort: map['Sort'],
  19420. score: double.parse(map['Score'].toString()),
  19421. );
  19422. }
  19423. Map<String, dynamic> toJson() {
  19424. final map = Map<String, dynamic>();
  19425. map['Sort'] = sort;
  19426. map['Score'] = score;
  19427. return map;
  19428. }
  19429. }
  19430. class QualityControlDataView {
  19431. String? controlPersonId;
  19432. String? controlPersonName;
  19433. String? opinion;
  19434. double score;
  19435. List<QualityControlScoreItemView>? scoreItems;
  19436. DateTime? controlTime;
  19437. QualityControlDataView({
  19438. this.controlPersonId,
  19439. this.controlPersonName,
  19440. this.opinion,
  19441. this.score = 0,
  19442. this.scoreItems,
  19443. this.controlTime,
  19444. });
  19445. factory QualityControlDataView.fromJson(Map<String, dynamic> map) {
  19446. return QualityControlDataView(
  19447. controlPersonId: map['ControlPersonId'],
  19448. controlPersonName: map['ControlPersonName'],
  19449. opinion: map['Opinion'],
  19450. score: double.parse(map['Score'].toString()),
  19451. scoreItems: map['ScoreItems'] != null ? (map['ScoreItems'] as List).map((e)=>QualityControlScoreItemView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19452. controlTime: map['ControlTime'] != null ? DateTime.parse(map['ControlTime']) : null,
  19453. );
  19454. }
  19455. Map<String, dynamic> toJson() {
  19456. final map = Map<String, dynamic>();
  19457. if(controlPersonId != null) {
  19458. map['ControlPersonId'] = controlPersonId;
  19459. }
  19460. if(controlPersonName != null) {
  19461. map['ControlPersonName'] = controlPersonName;
  19462. }
  19463. if(opinion != null) {
  19464. map['Opinion'] = opinion;
  19465. }
  19466. map['Score'] = score;
  19467. if(scoreItems != null) {
  19468. map['ScoreItems'] = scoreItems;
  19469. }
  19470. if(controlTime != null) {
  19471. map['ControlTime'] = JsonRpcUtils.dateFormat(controlTime!);
  19472. }
  19473. return map;
  19474. }
  19475. }
  19476. class ReportInfoResultDTO extends BaseDTO{
  19477. String? code;
  19478. String? organizationCode;
  19479. String? organizationName;
  19480. String? recordCode;
  19481. String? reportUserCode;
  19482. String? reportUserName;
  19483. DeviceView? deviceInfo;
  19484. String? patientCode;
  19485. String? patientId;
  19486. String? reportTemplateJson;
  19487. String? reportDatasJson;
  19488. String? patientName;
  19489. List<String>? reportLabels;
  19490. List<String>? platformLabels;
  19491. List<String>? diagnosisLabels;
  19492. DiagnosisOrganEnum reportOrgan;
  19493. List<ReportPreviewDTO>? reportPreviewList;
  19494. String? referralRecordCode;
  19495. ReportTypeEnum reportType;
  19496. String? elementCollectionJson;
  19497. String? measureElementCollectionJson;
  19498. String? patientPerfPhysician;
  19499. String? patientRefPhysician;
  19500. ICollection<ReportImageInfo2>? previewImages;
  19501. ICollection<CustomLabelView>? customLabels;
  19502. QualifiedState qualifiedState;
  19503. QualityType qualityType;
  19504. String? reportPreviewPdf;
  19505. ICollection<QualityControlDataView>? qualityControlDatas;
  19506. ReportInfoResultDTO({
  19507. this.code,
  19508. this.organizationCode,
  19509. this.organizationName,
  19510. this.recordCode,
  19511. this.reportUserCode,
  19512. this.reportUserName,
  19513. this.deviceInfo,
  19514. this.patientCode,
  19515. this.patientId,
  19516. this.reportTemplateJson,
  19517. this.reportDatasJson,
  19518. this.patientName,
  19519. this.reportLabels,
  19520. this.platformLabels,
  19521. this.diagnosisLabels,
  19522. this.reportOrgan = DiagnosisOrganEnum.Null,
  19523. this.reportPreviewList,
  19524. this.referralRecordCode,
  19525. this.reportType = ReportTypeEnum.RemoteDiagnosis,
  19526. this.elementCollectionJson,
  19527. this.measureElementCollectionJson,
  19528. this.patientPerfPhysician,
  19529. this.patientRefPhysician,
  19530. this.previewImages,
  19531. this.customLabels,
  19532. this.qualifiedState = QualifiedState.UnSet,
  19533. this.qualityType = QualityType.None,
  19534. this.reportPreviewPdf,
  19535. this.qualityControlDatas,
  19536. DateTime? createTime,
  19537. DateTime? updateTime,
  19538. }) : super(
  19539. createTime: createTime,
  19540. updateTime: updateTime,
  19541. );
  19542. factory ReportInfoResultDTO.fromJson(Map<String, dynamic> map) {
  19543. return ReportInfoResultDTO(
  19544. code: map['Code'],
  19545. organizationCode: map['OrganizationCode'],
  19546. organizationName: map['OrganizationName'],
  19547. recordCode: map['RecordCode'],
  19548. reportUserCode: map['ReportUserCode'],
  19549. reportUserName: map['ReportUserName'],
  19550. deviceInfo: map['DeviceInfo'] != null ? DeviceView.fromJson(map['DeviceInfo']) : null,
  19551. patientCode: map['PatientCode'],
  19552. patientId: map['PatientId'],
  19553. reportTemplateJson: map['ReportTemplateJson'],
  19554. reportDatasJson: map['ReportDatasJson'],
  19555. patientName: map['PatientName'],
  19556. reportLabels: map['ReportLabels']?.cast<String>().toList(),
  19557. platformLabels: map['PlatformLabels']?.cast<String>().toList(),
  19558. diagnosisLabels: map['DiagnosisLabels']?.cast<String>().toList(),
  19559. reportOrgan: DiagnosisOrganEnum.values.firstWhere((e) => e.index == map['ReportOrgan']),
  19560. reportPreviewList: map['ReportPreviewList'] != null ? (map['ReportPreviewList'] as List).map((e)=>ReportPreviewDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  19561. referralRecordCode: map['ReferralRecordCode'],
  19562. reportType: ReportTypeEnum.values.firstWhere((e) => e.index == map['ReportType']),
  19563. elementCollectionJson: map['ElementCollectionJson'],
  19564. measureElementCollectionJson: map['MeasureElementCollectionJson'],
  19565. patientPerfPhysician: map['PatientPerfPhysician'],
  19566. patientRefPhysician: map['PatientRefPhysician'],
  19567. qualifiedState: QualifiedState.values.firstWhere((e) => e.index == map['QualifiedState']),
  19568. qualityType: QualityType.values.firstWhere((e) => e.index == map['QualityType']),
  19569. reportPreviewPdf: map['ReportPreviewPdf'],
  19570. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  19571. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  19572. );
  19573. }
  19574. Map<String, dynamic> toJson() {
  19575. final map = super.toJson();
  19576. if(code != null)
  19577. map['Code'] = code;
  19578. if(organizationCode != null)
  19579. map['OrganizationCode'] = organizationCode;
  19580. if(organizationName != null)
  19581. map['OrganizationName'] = organizationName;
  19582. if(recordCode != null)
  19583. map['RecordCode'] = recordCode;
  19584. if(reportUserCode != null)
  19585. map['ReportUserCode'] = reportUserCode;
  19586. if(reportUserName != null)
  19587. map['ReportUserName'] = reportUserName;
  19588. if(deviceInfo != null)
  19589. map['DeviceInfo'] = deviceInfo;
  19590. if(patientCode != null)
  19591. map['PatientCode'] = patientCode;
  19592. if(patientId != null)
  19593. map['PatientId'] = patientId;
  19594. if(reportTemplateJson != null)
  19595. map['ReportTemplateJson'] = reportTemplateJson;
  19596. if(reportDatasJson != null)
  19597. map['ReportDatasJson'] = reportDatasJson;
  19598. if(patientName != null)
  19599. map['PatientName'] = patientName;
  19600. if(reportLabels != null)
  19601. map['ReportLabels'] = reportLabels;
  19602. if(platformLabels != null)
  19603. map['PlatformLabels'] = platformLabels;
  19604. if(diagnosisLabels != null)
  19605. map['DiagnosisLabels'] = diagnosisLabels;
  19606. map['ReportOrgan'] = reportOrgan.index;
  19607. if(reportPreviewList != null)
  19608. map['ReportPreviewList'] = reportPreviewList;
  19609. if(referralRecordCode != null)
  19610. map['ReferralRecordCode'] = referralRecordCode;
  19611. map['ReportType'] = reportType.index;
  19612. if(elementCollectionJson != null)
  19613. map['ElementCollectionJson'] = elementCollectionJson;
  19614. if(measureElementCollectionJson != null)
  19615. map['MeasureElementCollectionJson'] = measureElementCollectionJson;
  19616. if(patientPerfPhysician != null)
  19617. map['PatientPerfPhysician'] = patientPerfPhysician;
  19618. if(patientRefPhysician != null)
  19619. map['PatientRefPhysician'] = patientRefPhysician;
  19620. if(previewImages != null)
  19621. map['PreviewImages'] = previewImages;
  19622. if(customLabels != null)
  19623. map['CustomLabels'] = customLabels;
  19624. map['QualifiedState'] = qualifiedState.index;
  19625. map['QualityType'] = qualityType.index;
  19626. if(reportPreviewPdf != null)
  19627. map['ReportPreviewPdf'] = reportPreviewPdf;
  19628. if(qualityControlDatas != null)
  19629. map['QualityControlDatas'] = qualityControlDatas;
  19630. return map;
  19631. }
  19632. }
  19633. class TeacherView extends UserView{
  19634. String? introduction;
  19635. List<int>? smallAvatar;
  19636. TeacherView({
  19637. this.introduction,
  19638. this.smallAvatar,
  19639. String? code,
  19640. String? name,
  19641. String? organizationCode,
  19642. String? organizationName,
  19643. }) : super(
  19644. code: code,
  19645. name: name,
  19646. organizationCode: organizationCode,
  19647. organizationName: organizationName,
  19648. );
  19649. factory TeacherView.fromJson(Map<String, dynamic> map) {
  19650. final smallAvatarData = map['SmallAvatar'];
  19651. return TeacherView(
  19652. introduction: map['Introduction'],
  19653. smallAvatar: smallAvatarData != null ? (smallAvatarData as List).map((e) => e as int).toList(): null,
  19654. code: map['Code'],
  19655. name: map['Name'],
  19656. organizationCode: map['OrganizationCode'],
  19657. organizationName: map['OrganizationName'],
  19658. );
  19659. }
  19660. Map<String, dynamic> toJson() {
  19661. final map = super.toJson();
  19662. if(introduction != null)
  19663. map['Introduction'] = introduction;
  19664. if(smallAvatar != null)
  19665. map['SmallAvatar'] = smallAvatar;
  19666. return map;
  19667. }
  19668. }
  19669. class AudienceView extends UserView{
  19670. int totalMinutes;
  19671. List<GroupView>? groupInfos;
  19672. AudienceView({
  19673. this.totalMinutes = 0,
  19674. this.groupInfos,
  19675. String? code,
  19676. String? name,
  19677. String? organizationCode,
  19678. String? organizationName,
  19679. }) : super(
  19680. code: code,
  19681. name: name,
  19682. organizationCode: organizationCode,
  19683. organizationName: organizationName,
  19684. );
  19685. factory AudienceView.fromJson(Map<String, dynamic> map) {
  19686. return AudienceView(
  19687. totalMinutes: map['TotalMinutes'],
  19688. groupInfos: map['GroupInfos'] != null ? (map['GroupInfos'] as List).map((e)=>GroupView.fromJson(e as Map<String,dynamic>)).toList() : null,
  19689. code: map['Code'],
  19690. name: map['Name'],
  19691. organizationCode: map['OrganizationCode'],
  19692. organizationName: map['OrganizationName'],
  19693. );
  19694. }
  19695. Map<String, dynamic> toJson() {
  19696. final map = super.toJson();
  19697. map['TotalMinutes'] = totalMinutes;
  19698. if(groupInfos != null)
  19699. map['GroupInfos'] = groupInfos;
  19700. return map;
  19701. }
  19702. }
  19703. class CourseAlbumDetailDTO extends CourseAlbumDTO{
  19704. List<CourseInfoDetailDTO>? courseInfos;
  19705. int studentCount;
  19706. CourseAlbumDetailDTO({
  19707. this.courseInfos,
  19708. this.studentCount = 0,
  19709. String? cover,
  19710. List<String>? courseCodes,
  19711. String? introduction,
  19712. List<String>? courseLabelCodes,
  19713. String? teacherCode,
  19714. String? teacherName,
  19715. CourseViewRangeEnum viewRange = CourseViewRangeEnum.All,
  19716. double price = 0,
  19717. DateTime? createTime,
  19718. int sort = 0,
  19719. bool isStick = false,
  19720. String? code,
  19721. String? name,
  19722. }) : super(
  19723. cover: cover,
  19724. courseCodes: courseCodes,
  19725. introduction: introduction,
  19726. courseLabelCodes: courseLabelCodes,
  19727. teacherCode: teacherCode,
  19728. teacherName: teacherName,
  19729. viewRange: viewRange,
  19730. price: price,
  19731. createTime: createTime,
  19732. sort: sort,
  19733. isStick: isStick,
  19734. code: code,
  19735. name: name,
  19736. );
  19737. factory CourseAlbumDetailDTO.fromJson(Map<String, dynamic> map) {
  19738. return CourseAlbumDetailDTO(
  19739. courseInfos: map['CourseInfos'] != null ? (map['CourseInfos'] as List).map((e)=>CourseInfoDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  19740. studentCount: map['StudentCount'],
  19741. cover: map['Cover'],
  19742. courseCodes: map['CourseCodes']?.cast<String>().toList(),
  19743. introduction: map['Introduction'],
  19744. courseLabelCodes: map['CourseLabelCodes']?.cast<String>().toList(),
  19745. teacherCode: map['TeacherCode'],
  19746. teacherName: map['TeacherName'],
  19747. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  19748. price: double.parse(map['Price'].toString()),
  19749. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  19750. sort: map['Sort'],
  19751. isStick: map['IsStick'],
  19752. code: map['Code'],
  19753. name: map['Name'],
  19754. );
  19755. }
  19756. Map<String, dynamic> toJson() {
  19757. final map = super.toJson();
  19758. if(courseInfos != null)
  19759. map['CourseInfos'] = courseInfos;
  19760. map['StudentCount'] = studentCount;
  19761. return map;
  19762. }
  19763. }
  19764. class BaseCoursePageDTO {
  19765. String? code;
  19766. String? name;
  19767. String? cover;
  19768. DateTime? startTime;
  19769. DateTime? createTime;
  19770. int playCount;
  19771. CourseStatusEnum status;
  19772. String? teacherName;
  19773. CourseTypeEnum courseType;
  19774. CourseAudienceTypeEnum audienceType;
  19775. int duration;
  19776. double price;
  19777. List<BaseUserGroupDTO>? userGroupList;
  19778. List<BaseCourseAlbumDTO>? courseAlbumList;
  19779. BaseCoursePageDTO({
  19780. this.code,
  19781. this.name,
  19782. this.cover,
  19783. this.startTime,
  19784. this.createTime,
  19785. this.playCount = 0,
  19786. this.status = CourseStatusEnum.Unknown,
  19787. this.teacherName,
  19788. this.courseType = CourseTypeEnum.Unknown,
  19789. this.audienceType = CourseAudienceTypeEnum.Unknown,
  19790. this.duration = 0,
  19791. this.price = 0,
  19792. this.userGroupList,
  19793. this.courseAlbumList,
  19794. });
  19795. factory BaseCoursePageDTO.fromJson(Map<String, dynamic> map) {
  19796. return BaseCoursePageDTO(
  19797. code: map['Code'],
  19798. name: map['Name'],
  19799. cover: map['Cover'],
  19800. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  19801. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  19802. playCount: map['PlayCount'],
  19803. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  19804. teacherName: map['TeacherName'],
  19805. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  19806. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  19807. duration: map['Duration'],
  19808. price: double.parse(map['Price'].toString()),
  19809. userGroupList: map['UserGroupList'] != null ? (map['UserGroupList'] as List).map((e)=>BaseUserGroupDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  19810. courseAlbumList: map['CourseAlbumList'] != null ? (map['CourseAlbumList'] as List).map((e)=>BaseCourseAlbumDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  19811. );
  19812. }
  19813. Map<String, dynamic> toJson() {
  19814. final map = Map<String, dynamic>();
  19815. if(code != null) {
  19816. map['Code'] = code;
  19817. }
  19818. if(name != null) {
  19819. map['Name'] = name;
  19820. }
  19821. if(cover != null) {
  19822. map['Cover'] = cover;
  19823. }
  19824. if(startTime != null) {
  19825. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  19826. }
  19827. if(createTime != null) {
  19828. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  19829. }
  19830. map['PlayCount'] = playCount;
  19831. map['Status'] = status.index;
  19832. if(teacherName != null) {
  19833. map['TeacherName'] = teacherName;
  19834. }
  19835. map['CourseType'] = courseType.index;
  19836. map['AudienceType'] = audienceType.index;
  19837. map['Duration'] = duration;
  19838. map['Price'] = price;
  19839. if(userGroupList != null) {
  19840. map['UserGroupList'] = userGroupList;
  19841. }
  19842. if(courseAlbumList != null) {
  19843. map['CourseAlbumList'] = courseAlbumList;
  19844. }
  19845. return map;
  19846. }
  19847. }
  19848. class CoursePageDTO extends BaseCoursePageDTO{
  19849. CoursePageDTO({
  19850. String? code,
  19851. String? name,
  19852. String? cover,
  19853. DateTime? startTime,
  19854. DateTime? createTime,
  19855. int playCount = 0,
  19856. CourseStatusEnum status = CourseStatusEnum.Unknown,
  19857. String? teacherName,
  19858. CourseTypeEnum courseType = CourseTypeEnum.Unknown,
  19859. CourseAudienceTypeEnum audienceType = CourseAudienceTypeEnum.Unknown,
  19860. int duration = 0,
  19861. double price = 0,
  19862. List<BaseUserGroupDTO>? userGroupList,
  19863. List<BaseCourseAlbumDTO>? courseAlbumList,
  19864. }) : super(
  19865. code: code,
  19866. name: name,
  19867. cover: cover,
  19868. startTime: startTime,
  19869. createTime: createTime,
  19870. playCount: playCount,
  19871. status: status,
  19872. teacherName: teacherName,
  19873. courseType: courseType,
  19874. audienceType: audienceType,
  19875. duration: duration,
  19876. price: price,
  19877. userGroupList: userGroupList,
  19878. courseAlbumList: courseAlbumList,
  19879. );
  19880. factory CoursePageDTO.fromJson(Map<String, dynamic> map) {
  19881. return CoursePageDTO(
  19882. code: map['Code'],
  19883. name: map['Name'],
  19884. cover: map['Cover'],
  19885. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  19886. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  19887. playCount: map['PlayCount'],
  19888. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  19889. teacherName: map['TeacherName'],
  19890. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  19891. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  19892. duration: map['Duration'],
  19893. price: double.parse(map['Price'].toString()),
  19894. userGroupList: map['UserGroupList'] != null ? (map['UserGroupList'] as List).map((e)=>BaseUserGroupDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  19895. courseAlbumList: map['CourseAlbumList'] != null ? (map['CourseAlbumList'] as List).map((e)=>BaseCourseAlbumDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  19896. );
  19897. }
  19898. Map<String, dynamic> toJson() {
  19899. final map = super.toJson();
  19900. return map;
  19901. }
  19902. }
  19903. class MyCoursePageDTO {
  19904. String? code;
  19905. String? courseOrAlbumCode;
  19906. CourseAppearTypeEnum courseAppearType;
  19907. CourseTypeEnum courseType;
  19908. String? name;
  19909. String? teacherName;
  19910. List<String>? courseLabelNames;
  19911. bool isPay;
  19912. DateTime? createTime;
  19913. CourseStatusEnum status;
  19914. CourseViewRangeEnum viewRange;
  19915. DateTime? startTime;
  19916. int playCount;
  19917. MyCoursePageDTO({
  19918. this.code,
  19919. this.courseOrAlbumCode,
  19920. this.courseAppearType = CourseAppearTypeEnum.Unknown,
  19921. this.courseType = CourseTypeEnum.Unknown,
  19922. this.name,
  19923. this.teacherName,
  19924. this.courseLabelNames,
  19925. this.isPay = false,
  19926. this.createTime,
  19927. this.status = CourseStatusEnum.Unknown,
  19928. this.viewRange = CourseViewRangeEnum.All,
  19929. this.startTime,
  19930. this.playCount = 0,
  19931. });
  19932. factory MyCoursePageDTO.fromJson(Map<String, dynamic> map) {
  19933. return MyCoursePageDTO(
  19934. code: map['Code'],
  19935. courseOrAlbumCode: map['CourseOrAlbumCode'],
  19936. courseAppearType: CourseAppearTypeEnum.values.firstWhere((e) => e.index == map['CourseAppearType']),
  19937. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  19938. name: map['Name'],
  19939. teacherName: map['TeacherName'],
  19940. courseLabelNames: map['CourseLabelNames']?.cast<String>().toList(),
  19941. isPay: map['IsPay'],
  19942. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  19943. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  19944. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  19945. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  19946. playCount: map['PlayCount'],
  19947. );
  19948. }
  19949. Map<String, dynamic> toJson() {
  19950. final map = Map<String, dynamic>();
  19951. if(code != null) {
  19952. map['Code'] = code;
  19953. }
  19954. if(courseOrAlbumCode != null) {
  19955. map['CourseOrAlbumCode'] = courseOrAlbumCode;
  19956. }
  19957. map['CourseAppearType'] = courseAppearType.index;
  19958. map['CourseType'] = courseType.index;
  19959. if(name != null) {
  19960. map['Name'] = name;
  19961. }
  19962. if(teacherName != null) {
  19963. map['TeacherName'] = teacherName;
  19964. }
  19965. if(courseLabelNames != null) {
  19966. map['CourseLabelNames'] = courseLabelNames;
  19967. }
  19968. map['IsPay'] = isPay;
  19969. if(createTime != null) {
  19970. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  19971. }
  19972. map['Status'] = status.index;
  19973. map['ViewRange'] = viewRange.index;
  19974. if(startTime != null) {
  19975. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  19976. }
  19977. map['PlayCount'] = playCount;
  19978. return map;
  19979. }
  19980. }
  19981. class StudentInCoursePageDTO extends BaseCoursePageDTO{
  19982. StudentCourseStatusEnum signCourseStatus;
  19983. bool isPay;
  19984. StudentInCoursePageDTO({
  19985. this.signCourseStatus = StudentCourseStatusEnum.All,
  19986. this.isPay = false,
  19987. String? code,
  19988. String? name,
  19989. String? cover,
  19990. DateTime? startTime,
  19991. DateTime? createTime,
  19992. int playCount = 0,
  19993. CourseStatusEnum status = CourseStatusEnum.Unknown,
  19994. String? teacherName,
  19995. CourseTypeEnum courseType = CourseTypeEnum.Unknown,
  19996. CourseAudienceTypeEnum audienceType = CourseAudienceTypeEnum.Unknown,
  19997. int duration = 0,
  19998. double price = 0,
  19999. List<BaseUserGroupDTO>? userGroupList,
  20000. List<BaseCourseAlbumDTO>? courseAlbumList,
  20001. }) : super(
  20002. code: code,
  20003. name: name,
  20004. cover: cover,
  20005. startTime: startTime,
  20006. createTime: createTime,
  20007. playCount: playCount,
  20008. status: status,
  20009. teacherName: teacherName,
  20010. courseType: courseType,
  20011. audienceType: audienceType,
  20012. duration: duration,
  20013. price: price,
  20014. userGroupList: userGroupList,
  20015. courseAlbumList: courseAlbumList,
  20016. );
  20017. factory StudentInCoursePageDTO.fromJson(Map<String, dynamic> map) {
  20018. return StudentInCoursePageDTO(
  20019. signCourseStatus: StudentCourseStatusEnum.values.firstWhere((e) => e.index == map['SignCourseStatus']),
  20020. isPay: map['IsPay'],
  20021. code: map['Code'],
  20022. name: map['Name'],
  20023. cover: map['Cover'],
  20024. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  20025. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  20026. playCount: map['PlayCount'],
  20027. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  20028. teacherName: map['TeacherName'],
  20029. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  20030. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  20031. duration: map['Duration'],
  20032. price: double.parse(map['Price'].toString()),
  20033. userGroupList: map['UserGroupList'] != null ? (map['UserGroupList'] as List).map((e)=>BaseUserGroupDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  20034. courseAlbumList: map['CourseAlbumList'] != null ? (map['CourseAlbumList'] as List).map((e)=>BaseCourseAlbumDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  20035. );
  20036. }
  20037. Map<String, dynamic> toJson() {
  20038. final map = super.toJson();
  20039. map['SignCourseStatus'] = signCourseStatus.index;
  20040. map['IsPay'] = isPay;
  20041. return map;
  20042. }
  20043. }
  20044. class SignStudentDTO {
  20045. String? studentCode;
  20046. String? courseOrAlbumCode;
  20047. CourseAppearTypeEnum courseAppearType;
  20048. bool isPay;
  20049. StudentCourseStatusEnum signCourseStatus;
  20050. SignStudentDTO({
  20051. this.studentCode,
  20052. this.courseOrAlbumCode,
  20053. this.courseAppearType = CourseAppearTypeEnum.Unknown,
  20054. this.isPay = false,
  20055. this.signCourseStatus = StudentCourseStatusEnum.All,
  20056. });
  20057. factory SignStudentDTO.fromJson(Map<String, dynamic> map) {
  20058. return SignStudentDTO(
  20059. studentCode: map['StudentCode'],
  20060. courseOrAlbumCode: map['CourseOrAlbumCode'],
  20061. courseAppearType: CourseAppearTypeEnum.values.firstWhere((e) => e.index == map['CourseAppearType']),
  20062. isPay: map['IsPay'],
  20063. signCourseStatus: StudentCourseStatusEnum.values.firstWhere((e) => e.index == map['SignCourseStatus']),
  20064. );
  20065. }
  20066. Map<String, dynamic> toJson() {
  20067. final map = Map<String, dynamic>();
  20068. if(studentCode != null) {
  20069. map['StudentCode'] = studentCode;
  20070. }
  20071. if(courseOrAlbumCode != null) {
  20072. map['CourseOrAlbumCode'] = courseOrAlbumCode;
  20073. }
  20074. map['CourseAppearType'] = courseAppearType.index;
  20075. map['IsPay'] = isPay;
  20076. map['SignCourseStatus'] = signCourseStatus.index;
  20077. return map;
  20078. }
  20079. }
  20080. class BoardPointDTO {
  20081. double x;
  20082. double y;
  20083. BoardPointDTO({
  20084. this.x = 0,
  20085. this.y = 0,
  20086. });
  20087. factory BoardPointDTO.fromJson(Map<String, dynamic> map) {
  20088. return BoardPointDTO(
  20089. x: double.parse(map['X'].toString()),
  20090. y: double.parse(map['Y'].toString()),
  20091. );
  20092. }
  20093. Map<String, dynamic> toJson() {
  20094. final map = Map<String, dynamic>();
  20095. map['X'] = x;
  20096. map['Y'] = y;
  20097. return map;
  20098. }
  20099. }
  20100. class ConsultationExpertDTO extends UserBaseDTO{
  20101. ConsultationExpertDTO({
  20102. String? phone,
  20103. String? email,
  20104. String? userCode,
  20105. String? userName,
  20106. String? fullName,
  20107. String? headImageUrl,
  20108. String? displayName,
  20109. DateTime? createTime,
  20110. DateTime? updateTime,
  20111. }) : super(
  20112. phone: phone,
  20113. email: email,
  20114. userCode: userCode,
  20115. userName: userName,
  20116. fullName: fullName,
  20117. headImageUrl: headImageUrl,
  20118. displayName: displayName,
  20119. createTime: createTime,
  20120. updateTime: updateTime,
  20121. );
  20122. factory ConsultationExpertDTO.fromJson(Map<String, dynamic> map) {
  20123. return ConsultationExpertDTO(
  20124. phone: map['Phone'],
  20125. email: map['Email'],
  20126. userCode: map['UserCode'],
  20127. userName: map['UserName'],
  20128. fullName: map['FullName'],
  20129. headImageUrl: map['HeadImageUrl'],
  20130. displayName: map['DisplayName'],
  20131. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  20132. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  20133. );
  20134. }
  20135. Map<String, dynamic> toJson() {
  20136. final map = super.toJson();
  20137. return map;
  20138. }
  20139. }
  20140. class AdminStatisticRecordDTO extends BaseDTO{
  20141. String? adminStatisticRecordCode;
  20142. String? adminStatisticCode;
  20143. String? adminStatisticName;
  20144. String? adminCode;
  20145. String? serverHost;
  20146. DateTime? lastestUpdateTime;
  20147. DateTime? nextHandleTime;
  20148. List<String>? xAxisDatas;
  20149. List<List<double>>? yAxisDatas;
  20150. List<StatisticInfoDTO>? children;
  20151. String? statisticJsonData;
  20152. StatisticsPlatformEnum statisticsPlatform;
  20153. AdminStatisticRecordDTO({
  20154. this.adminStatisticRecordCode,
  20155. this.adminStatisticCode,
  20156. this.adminStatisticName,
  20157. this.adminCode,
  20158. this.serverHost,
  20159. this.lastestUpdateTime,
  20160. this.nextHandleTime,
  20161. this.xAxisDatas,
  20162. this.yAxisDatas,
  20163. this.children,
  20164. this.statisticJsonData,
  20165. this.statisticsPlatform = StatisticsPlatformEnum.Management,
  20166. DateTime? createTime,
  20167. DateTime? updateTime,
  20168. }) : super(
  20169. createTime: createTime,
  20170. updateTime: updateTime,
  20171. );
  20172. factory AdminStatisticRecordDTO.fromJson(Map<String, dynamic> map) {
  20173. return AdminStatisticRecordDTO(
  20174. adminStatisticRecordCode: map['AdminStatisticRecordCode'],
  20175. adminStatisticCode: map['AdminStatisticCode'],
  20176. adminStatisticName: map['AdminStatisticName'],
  20177. adminCode: map['AdminCode'],
  20178. serverHost: map['ServerHost'],
  20179. lastestUpdateTime: map['LastestUpdateTime'] != null ? DateTime.parse(map['LastestUpdateTime']) : null,
  20180. nextHandleTime: map['NextHandleTime'] != null ? DateTime.parse(map['NextHandleTime']) : null,
  20181. xAxisDatas: map['XAxisDatas']?.cast<String>().toList(),
  20182. yAxisDatas: map['YAxisDatas']?.cast<List<double>>().toList(),
  20183. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  20184. statisticJsonData: map['StatisticJsonData'],
  20185. statisticsPlatform: StatisticsPlatformEnum.values.firstWhere((e) => e.index == map['StatisticsPlatform']),
  20186. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  20187. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  20188. );
  20189. }
  20190. Map<String, dynamic> toJson() {
  20191. final map = super.toJson();
  20192. if(adminStatisticRecordCode != null)
  20193. map['AdminStatisticRecordCode'] = adminStatisticRecordCode;
  20194. if(adminStatisticCode != null)
  20195. map['AdminStatisticCode'] = adminStatisticCode;
  20196. if(adminStatisticName != null)
  20197. map['AdminStatisticName'] = adminStatisticName;
  20198. if(adminCode != null)
  20199. map['AdminCode'] = adminCode;
  20200. if(serverHost != null)
  20201. map['ServerHost'] = serverHost;
  20202. if(lastestUpdateTime != null)
  20203. map['LastestUpdateTime'] = JsonRpcUtils.dateFormat(lastestUpdateTime!);
  20204. if(nextHandleTime != null)
  20205. map['NextHandleTime'] = JsonRpcUtils.dateFormat(nextHandleTime!);
  20206. if(xAxisDatas != null)
  20207. map['XAxisDatas'] = xAxisDatas;
  20208. if(yAxisDatas != null)
  20209. map['YAxisDatas'] = yAxisDatas;
  20210. if(children != null)
  20211. map['Children'] = children;
  20212. if(statisticJsonData != null)
  20213. map['StatisticJsonData'] = statisticJsonData;
  20214. map['StatisticsPlatform'] = statisticsPlatform.index;
  20215. return map;
  20216. }
  20217. }
  20218. class CMSStatisticRecordDTO extends AdminStatisticRecordDTO{
  20219. CMSStatisticRecordDTO({
  20220. String? statisticJsonData,
  20221. String? adminStatisticRecordCode,
  20222. String? adminStatisticCode,
  20223. String? adminStatisticName,
  20224. String? adminCode,
  20225. String? serverHost,
  20226. DateTime? lastestUpdateTime,
  20227. DateTime? nextHandleTime,
  20228. List<String>? xAxisDatas,
  20229. List<List<double>>? yAxisDatas,
  20230. List<StatisticInfoDTO>? children,
  20231. StatisticsPlatformEnum statisticsPlatform = StatisticsPlatformEnum.Management,
  20232. DateTime? createTime,
  20233. DateTime? updateTime,
  20234. }) : super(
  20235. adminStatisticRecordCode: adminStatisticRecordCode,
  20236. adminStatisticCode: adminStatisticCode,
  20237. adminStatisticName: adminStatisticName,
  20238. adminCode: adminCode,
  20239. serverHost: serverHost,
  20240. lastestUpdateTime: lastestUpdateTime,
  20241. nextHandleTime: nextHandleTime,
  20242. xAxisDatas: xAxisDatas,
  20243. yAxisDatas: yAxisDatas,
  20244. children: children,
  20245. statisticJsonData: statisticJsonData,
  20246. statisticsPlatform: statisticsPlatform,
  20247. createTime: createTime,
  20248. updateTime: updateTime,
  20249. );
  20250. factory CMSStatisticRecordDTO.fromJson(Map<String, dynamic> map) {
  20251. return CMSStatisticRecordDTO(
  20252. statisticJsonData: map['StatisticJsonData'],
  20253. adminStatisticRecordCode: map['AdminStatisticRecordCode'],
  20254. adminStatisticCode: map['AdminStatisticCode'],
  20255. adminStatisticName: map['AdminStatisticName'],
  20256. adminCode: map['AdminCode'],
  20257. serverHost: map['ServerHost'],
  20258. lastestUpdateTime: map['LastestUpdateTime'] != null ? DateTime.parse(map['LastestUpdateTime']) : null,
  20259. nextHandleTime: map['NextHandleTime'] != null ? DateTime.parse(map['NextHandleTime']) : null,
  20260. xAxisDatas: map['XAxisDatas']?.cast<String>().toList(),
  20261. yAxisDatas: map['YAxisDatas']?.cast<List<double>>().toList(),
  20262. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  20263. statisticsPlatform: StatisticsPlatformEnum.values.firstWhere((e) => e.index == map['StatisticsPlatform']),
  20264. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  20265. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  20266. );
  20267. }
  20268. Map<String, dynamic> toJson() {
  20269. final map = super.toJson();
  20270. return map;
  20271. }
  20272. }
  20273. class CMSTemplateDTO extends BaseDTO{
  20274. String? cMSTemplateCode;
  20275. String? cMSTemplateName;
  20276. CMSTemplateStatusTypeEnum cMSTemplateStateType;
  20277. String? cMSTemplateJson;
  20278. bool isDefault;
  20279. List<String>? organizationCodes;
  20280. String? cMSBgColor;
  20281. String? cMSBgImg;
  20282. bool isShowTop;
  20283. String? cMSBorderColor;
  20284. int cMSBorderShadow;
  20285. CMSTemplateDTO({
  20286. this.cMSTemplateCode,
  20287. this.cMSTemplateName,
  20288. this.cMSTemplateStateType = CMSTemplateStatusTypeEnum.UnPublished,
  20289. this.cMSTemplateJson,
  20290. this.isDefault = false,
  20291. this.organizationCodes,
  20292. this.cMSBgColor,
  20293. this.cMSBgImg,
  20294. this.isShowTop = false,
  20295. this.cMSBorderColor,
  20296. this.cMSBorderShadow = 0,
  20297. DateTime? createTime,
  20298. DateTime? updateTime,
  20299. }) : super(
  20300. createTime: createTime,
  20301. updateTime: updateTime,
  20302. );
  20303. factory CMSTemplateDTO.fromJson(Map<String, dynamic> map) {
  20304. return CMSTemplateDTO(
  20305. cMSTemplateCode: map['CMSTemplateCode'],
  20306. cMSTemplateName: map['CMSTemplateName'],
  20307. cMSTemplateStateType: CMSTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['CMSTemplateStateType']),
  20308. cMSTemplateJson: map['CMSTemplateJson'],
  20309. isDefault: map['IsDefault'],
  20310. organizationCodes: map['OrganizationCodes']?.cast<String>().toList(),
  20311. cMSBgColor: map['CMSBgColor'],
  20312. cMSBgImg: map['CMSBgImg'],
  20313. isShowTop: map['IsShowTop'],
  20314. cMSBorderColor: map['CMSBorderColor'],
  20315. cMSBorderShadow: map['CMSBorderShadow'],
  20316. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  20317. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  20318. );
  20319. }
  20320. Map<String, dynamic> toJson() {
  20321. final map = super.toJson();
  20322. if(cMSTemplateCode != null)
  20323. map['CMSTemplateCode'] = cMSTemplateCode;
  20324. if(cMSTemplateName != null)
  20325. map['CMSTemplateName'] = cMSTemplateName;
  20326. map['CMSTemplateStateType'] = cMSTemplateStateType.index;
  20327. if(cMSTemplateJson != null)
  20328. map['CMSTemplateJson'] = cMSTemplateJson;
  20329. map['IsDefault'] = isDefault;
  20330. if(organizationCodes != null)
  20331. map['OrganizationCodes'] = organizationCodes;
  20332. if(cMSBgColor != null)
  20333. map['CMSBgColor'] = cMSBgColor;
  20334. if(cMSBgImg != null)
  20335. map['CMSBgImg'] = cMSBgImg;
  20336. map['IsShowTop'] = isShowTop;
  20337. if(cMSBorderColor != null)
  20338. map['CMSBorderColor'] = cMSBorderColor;
  20339. map['CMSBorderShadow'] = cMSBorderShadow;
  20340. return map;
  20341. }
  20342. }
  20343. class StatisticAnnouncesDTO {
  20344. AnnouncementTypeEnum announcementType;
  20345. DateTime? contentTime;
  20346. String? content;
  20347. CMSMessageStatusEnum status;
  20348. StatisticAnnouncesDTO({
  20349. this.announcementType = AnnouncementTypeEnum.Broadcast,
  20350. this.contentTime,
  20351. this.content,
  20352. this.status = CMSMessageStatusEnum.UnRead,
  20353. });
  20354. factory StatisticAnnouncesDTO.fromJson(Map<String, dynamic> map) {
  20355. return StatisticAnnouncesDTO(
  20356. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  20357. contentTime: map['ContentTime'] != null ? DateTime.parse(map['ContentTime']) : null,
  20358. content: map['Content'],
  20359. status: CMSMessageStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  20360. );
  20361. }
  20362. Map<String, dynamic> toJson() {
  20363. final map = Map<String, dynamic>();
  20364. map['AnnouncementType'] = announcementType.index;
  20365. if(contentTime != null) {
  20366. map['ContentTime'] = JsonRpcUtils.dateFormat(contentTime!);
  20367. }
  20368. if(content != null) {
  20369. map['Content'] = content;
  20370. }
  20371. map['Status'] = status.index;
  20372. return map;
  20373. }
  20374. }
  20375. class StatisticDevicesDTO {
  20376. String? imgUrl;
  20377. String? name;
  20378. String? transferUrl;
  20379. StatisticDevicesDTO({
  20380. this.imgUrl,
  20381. this.name,
  20382. this.transferUrl,
  20383. });
  20384. factory StatisticDevicesDTO.fromJson(Map<String, dynamic> map) {
  20385. return StatisticDevicesDTO(
  20386. imgUrl: map['ImgUrl'],
  20387. name: map['Name'],
  20388. transferUrl: map['TransferUrl'],
  20389. );
  20390. }
  20391. Map<String, dynamic> toJson() {
  20392. final map = Map<String, dynamic>();
  20393. if(imgUrl != null) {
  20394. map['ImgUrl'] = imgUrl;
  20395. }
  20396. if(name != null) {
  20397. map['Name'] = name;
  20398. }
  20399. if(transferUrl != null) {
  20400. map['TransferUrl'] = transferUrl;
  20401. }
  20402. return map;
  20403. }
  20404. }
  20405. class StatisticDiagnosisDataDTO {
  20406. String? organizationCode;
  20407. DateTime? createTime;
  20408. int totalCount;
  20409. BusinessModuleEnum businessType;
  20410. StatisticDiagnosisDataDTO({
  20411. this.organizationCode,
  20412. this.createTime,
  20413. this.totalCount = 0,
  20414. this.businessType = BusinessModuleEnum.RemoteDiagnosis,
  20415. });
  20416. factory StatisticDiagnosisDataDTO.fromJson(Map<String, dynamic> map) {
  20417. return StatisticDiagnosisDataDTO(
  20418. organizationCode: map['OrganizationCode'],
  20419. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  20420. totalCount: map['TotalCount'],
  20421. businessType: BusinessModuleEnum.values.firstWhere((e) => e.index == map['BusinessType']),
  20422. );
  20423. }
  20424. Map<String, dynamic> toJson() {
  20425. final map = Map<String, dynamic>();
  20426. if(organizationCode != null) {
  20427. map['OrganizationCode'] = organizationCode;
  20428. }
  20429. if(createTime != null) {
  20430. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  20431. }
  20432. map['TotalCount'] = totalCount;
  20433. map['BusinessType'] = businessType.index;
  20434. return map;
  20435. }
  20436. }
  20437. class StatisticDownloadDTO {
  20438. String? imgUrl;
  20439. String? transferUrl;
  20440. StatisticDownloadDTO({
  20441. this.imgUrl,
  20442. this.transferUrl,
  20443. });
  20444. factory StatisticDownloadDTO.fromJson(Map<String, dynamic> map) {
  20445. return StatisticDownloadDTO(
  20446. imgUrl: map['ImgUrl'],
  20447. transferUrl: map['TransferUrl'],
  20448. );
  20449. }
  20450. Map<String, dynamic> toJson() {
  20451. final map = Map<String, dynamic>();
  20452. if(imgUrl != null) {
  20453. map['ImgUrl'] = imgUrl;
  20454. }
  20455. if(transferUrl != null) {
  20456. map['TransferUrl'] = transferUrl;
  20457. }
  20458. return map;
  20459. }
  20460. }
  20461. class StatisticMessagesDTO {
  20462. String? content;
  20463. DateTime? time;
  20464. String? transferUrl;
  20465. CMSMessageStatusEnum status;
  20466. StatisticMessagesDTO({
  20467. this.content,
  20468. this.time,
  20469. this.transferUrl,
  20470. this.status = CMSMessageStatusEnum.UnRead,
  20471. });
  20472. factory StatisticMessagesDTO.fromJson(Map<String, dynamic> map) {
  20473. return StatisticMessagesDTO(
  20474. content: map['Content'],
  20475. time: map['Time'] != null ? DateTime.parse(map['Time']) : null,
  20476. transferUrl: map['TransferUrl'],
  20477. status: CMSMessageStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  20478. );
  20479. }
  20480. Map<String, dynamic> toJson() {
  20481. final map = Map<String, dynamic>();
  20482. if(content != null) {
  20483. map['Content'] = content;
  20484. }
  20485. if(time != null) {
  20486. map['Time'] = JsonRpcUtils.dateFormat(time!);
  20487. }
  20488. if(transferUrl != null) {
  20489. map['TransferUrl'] = transferUrl;
  20490. }
  20491. map['Status'] = status.index;
  20492. return map;
  20493. }
  20494. }
  20495. class StatisticMessageInfoDTO extends StatisticMessagesDTO{
  20496. String? userCode;
  20497. String? messageCode;
  20498. StatisticMessageInfoDTO({
  20499. this.userCode,
  20500. this.messageCode,
  20501. String? content,
  20502. DateTime? time,
  20503. String? transferUrl,
  20504. CMSMessageStatusEnum status = CMSMessageStatusEnum.UnRead,
  20505. }) : super(
  20506. content: content,
  20507. time: time,
  20508. transferUrl: transferUrl,
  20509. status: status,
  20510. );
  20511. factory StatisticMessageInfoDTO.fromJson(Map<String, dynamic> map) {
  20512. return StatisticMessageInfoDTO(
  20513. userCode: map['UserCode'],
  20514. messageCode: map['MessageCode'],
  20515. content: map['Content'],
  20516. time: map['Time'] != null ? DateTime.parse(map['Time']) : null,
  20517. transferUrl: map['TransferUrl'],
  20518. status: CMSMessageStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  20519. );
  20520. }
  20521. Map<String, dynamic> toJson() {
  20522. final map = super.toJson();
  20523. if(userCode != null)
  20524. map['UserCode'] = userCode;
  20525. if(messageCode != null)
  20526. map['MessageCode'] = messageCode;
  20527. return map;
  20528. }
  20529. }
  20530. class StatisticMyPendingDTO {
  20531. String? title;
  20532. double rate;
  20533. StatisticMyPendingDTO({
  20534. this.title,
  20535. this.rate = 0,
  20536. });
  20537. factory StatisticMyPendingDTO.fromJson(Map<String, dynamic> map) {
  20538. return StatisticMyPendingDTO(
  20539. title: map['Title'],
  20540. rate: double.parse(map['Rate'].toString()),
  20541. );
  20542. }
  20543. Map<String, dynamic> toJson() {
  20544. final map = Map<String, dynamic>();
  20545. if(title != null) {
  20546. map['Title'] = title;
  20547. }
  20548. map['Rate'] = rate;
  20549. return map;
  20550. }
  20551. }
  20552. class StatisticMyStandingDTO {
  20553. String? title;
  20554. int data;
  20555. String? unit;
  20556. String? transferUrl;
  20557. StatisticMyStandingDTO({
  20558. this.title,
  20559. this.data = 0,
  20560. this.unit,
  20561. this.transferUrl,
  20562. });
  20563. factory StatisticMyStandingDTO.fromJson(Map<String, dynamic> map) {
  20564. return StatisticMyStandingDTO(
  20565. title: map['Title'],
  20566. data: map['Data'],
  20567. unit: map['Unit'],
  20568. transferUrl: map['TransferUrl'],
  20569. );
  20570. }
  20571. Map<String, dynamic> toJson() {
  20572. final map = Map<String, dynamic>();
  20573. if(title != null) {
  20574. map['Title'] = title;
  20575. }
  20576. map['Data'] = data;
  20577. if(unit != null) {
  20578. map['Unit'] = unit;
  20579. }
  20580. if(transferUrl != null) {
  20581. map['TransferUrl'] = transferUrl;
  20582. }
  20583. return map;
  20584. }
  20585. }
  20586. class StatisticPlatActivityDTO {
  20587. String? imgUrl;
  20588. String? transferUrl;
  20589. StatisticPlatActivityDTO({
  20590. this.imgUrl,
  20591. this.transferUrl,
  20592. });
  20593. factory StatisticPlatActivityDTO.fromJson(Map<String, dynamic> map) {
  20594. return StatisticPlatActivityDTO(
  20595. imgUrl: map['ImgUrl'],
  20596. transferUrl: map['TransferUrl'],
  20597. );
  20598. }
  20599. Map<String, dynamic> toJson() {
  20600. final map = Map<String, dynamic>();
  20601. if(imgUrl != null) {
  20602. map['ImgUrl'] = imgUrl;
  20603. }
  20604. if(transferUrl != null) {
  20605. map['TransferUrl'] = transferUrl;
  20606. }
  20607. return map;
  20608. }
  20609. }
  20610. class StatisticRealtimeDataDTO {
  20611. DateTime? createTime;
  20612. String? organizationCode;
  20613. String? organizationName;
  20614. String? doctorCode;
  20615. String? doctorName;
  20616. RecordStatusEnum status;
  20617. StatisticRealtimeDataDTO({
  20618. this.createTime,
  20619. this.organizationCode,
  20620. this.organizationName,
  20621. this.doctorCode,
  20622. this.doctorName,
  20623. this.status = RecordStatusEnum.NotScanned,
  20624. });
  20625. factory StatisticRealtimeDataDTO.fromJson(Map<String, dynamic> map) {
  20626. return StatisticRealtimeDataDTO(
  20627. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  20628. organizationCode: map['OrganizationCode'],
  20629. organizationName: map['OrganizationName'],
  20630. doctorCode: map['DoctorCode'],
  20631. doctorName: map['DoctorName'],
  20632. status: RecordStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  20633. );
  20634. }
  20635. Map<String, dynamic> toJson() {
  20636. final map = Map<String, dynamic>();
  20637. if(createTime != null) {
  20638. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  20639. }
  20640. if(organizationCode != null) {
  20641. map['OrganizationCode'] = organizationCode;
  20642. }
  20643. if(organizationName != null) {
  20644. map['OrganizationName'] = organizationName;
  20645. }
  20646. if(doctorCode != null) {
  20647. map['DoctorCode'] = doctorCode;
  20648. }
  20649. if(doctorName != null) {
  20650. map['DoctorName'] = doctorName;
  20651. }
  20652. map['Status'] = status.index;
  20653. return map;
  20654. }
  20655. }
  20656. class StatisticSubmittedReportsDTO {
  20657. String? organizationCode;
  20658. String? organizationName;
  20659. int totalCount;
  20660. StatisticSubmittedReportsDTO({
  20661. this.organizationCode,
  20662. this.organizationName,
  20663. this.totalCount = 0,
  20664. });
  20665. factory StatisticSubmittedReportsDTO.fromJson(Map<String, dynamic> map) {
  20666. return StatisticSubmittedReportsDTO(
  20667. organizationCode: map['OrganizationCode'],
  20668. organizationName: map['OrganizationName'],
  20669. totalCount: map['TotalCount'],
  20670. );
  20671. }
  20672. Map<String, dynamic> toJson() {
  20673. final map = Map<String, dynamic>();
  20674. if(organizationCode != null) {
  20675. map['OrganizationCode'] = organizationCode;
  20676. }
  20677. if(organizationName != null) {
  20678. map['OrganizationName'] = organizationName;
  20679. }
  20680. map['TotalCount'] = totalCount;
  20681. return map;
  20682. }
  20683. }
  20684. class StatisticUpdateCourseDTO {
  20685. String? title;
  20686. String? teacher;
  20687. String? thumbnail;
  20688. String? transferUrl;
  20689. StatisticUpdateCourseDTO({
  20690. this.title,
  20691. this.teacher,
  20692. this.thumbnail,
  20693. this.transferUrl,
  20694. });
  20695. factory StatisticUpdateCourseDTO.fromJson(Map<String, dynamic> map) {
  20696. return StatisticUpdateCourseDTO(
  20697. title: map['Title'],
  20698. teacher: map['Teacher'],
  20699. thumbnail: map['Thumbnail'],
  20700. transferUrl: map['TransferUrl'],
  20701. );
  20702. }
  20703. Map<String, dynamic> toJson() {
  20704. final map = Map<String, dynamic>();
  20705. if(title != null) {
  20706. map['Title'] = title;
  20707. }
  20708. if(teacher != null) {
  20709. map['Teacher'] = teacher;
  20710. }
  20711. if(thumbnail != null) {
  20712. map['Thumbnail'] = thumbnail;
  20713. }
  20714. if(transferUrl != null) {
  20715. map['TransferUrl'] = transferUrl;
  20716. }
  20717. return map;
  20718. }
  20719. }
  20720. class BaseFeatureItemDTO extends BaseFeatureItemBaseDTO<BaseFeatureItemDTO>{
  20721. BaseFeatureItemDTO(
  20722. );
  20723. factory BaseFeatureItemDTO.fromJson(Map<String, dynamic> map) {
  20724. return BaseFeatureItemDTO(
  20725. );
  20726. }
  20727. Map<String, dynamic> toJson() {
  20728. final map = super.toJson();
  20729. return map;
  20730. }
  20731. }
  20732. class ArrowCommentItemDTO {
  20733. ArrowOrientation arrowOrientation;
  20734. String? text;
  20735. ArrowCommentItemDTO({
  20736. this.arrowOrientation = ArrowOrientation.Down,
  20737. this.text,
  20738. });
  20739. factory ArrowCommentItemDTO.fromJson(Map<String, dynamic> map) {
  20740. return ArrowCommentItemDTO(
  20741. arrowOrientation: ArrowOrientation.values.firstWhere((e) => e.index == map['ArrowOrientation']),
  20742. text: map['Text'],
  20743. );
  20744. }
  20745. Map<String, dynamic> toJson() {
  20746. final map = Map<String, dynamic>();
  20747. map['ArrowOrientation'] = arrowOrientation.index;
  20748. if(text != null) {
  20749. map['Text'] = text;
  20750. }
  20751. return map;
  20752. }
  20753. }
  20754. class UserDefinedCommentsDTO {
  20755. String? userId;
  20756. List<UserDefinedCommentDataDTO>? commentItems;
  20757. UserDefinedCommentsDTO({
  20758. this.userId,
  20759. this.commentItems,
  20760. });
  20761. factory UserDefinedCommentsDTO.fromJson(Map<String, dynamic> map) {
  20762. return UserDefinedCommentsDTO(
  20763. userId: map['UserId'],
  20764. commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>UserDefinedCommentDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  20765. );
  20766. }
  20767. Map<String, dynamic> toJson() {
  20768. final map = Map<String, dynamic>();
  20769. if(userId != null) {
  20770. map['UserId'] = userId;
  20771. }
  20772. if(commentItems != null) {
  20773. map['CommentItems'] = commentItems;
  20774. }
  20775. return map;
  20776. }
  20777. }
  20778. class FunctionalityInfo {
  20779. String? functionalityName;
  20780. FunctionalityStatusEnum functionalityStatus;
  20781. FunctionalityInfo({
  20782. this.functionalityName,
  20783. this.functionalityStatus = FunctionalityStatusEnum.DemoMode,
  20784. });
  20785. factory FunctionalityInfo.fromJson(Map<String, dynamic> map) {
  20786. return FunctionalityInfo(
  20787. functionalityName: map['FunctionalityName'],
  20788. functionalityStatus: FunctionalityStatusEnum.values.firstWhere((e) => e.index == map['FunctionalityStatus']),
  20789. );
  20790. }
  20791. Map<String, dynamic> toJson() {
  20792. final map = Map<String, dynamic>();
  20793. if(functionalityName != null) {
  20794. map['FunctionalityName'] = functionalityName;
  20795. }
  20796. map['FunctionalityStatus'] = functionalityStatus.index;
  20797. return map;
  20798. }
  20799. }
  20800. class AdminStatisticDTO extends BaseDTO{
  20801. String? adminStatisticCode;
  20802. String? name;
  20803. String? description;
  20804. String? intervalSetting;
  20805. bool enabled;
  20806. String? handleClass;
  20807. String? serverHost;
  20808. AdminStatisticDTO({
  20809. this.adminStatisticCode,
  20810. this.name,
  20811. this.description,
  20812. this.intervalSetting,
  20813. this.enabled = false,
  20814. this.handleClass,
  20815. this.serverHost,
  20816. DateTime? createTime,
  20817. DateTime? updateTime,
  20818. }) : super(
  20819. createTime: createTime,
  20820. updateTime: updateTime,
  20821. );
  20822. factory AdminStatisticDTO.fromJson(Map<String, dynamic> map) {
  20823. return AdminStatisticDTO(
  20824. adminStatisticCode: map['AdminStatisticCode'],
  20825. name: map['Name'],
  20826. description: map['Description'],
  20827. intervalSetting: map['IntervalSetting'],
  20828. enabled: map['Enabled'],
  20829. handleClass: map['HandleClass'],
  20830. serverHost: map['ServerHost'],
  20831. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  20832. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  20833. );
  20834. }
  20835. Map<String, dynamic> toJson() {
  20836. final map = super.toJson();
  20837. if(adminStatisticCode != null)
  20838. map['AdminStatisticCode'] = adminStatisticCode;
  20839. if(name != null)
  20840. map['Name'] = name;
  20841. if(description != null)
  20842. map['Description'] = description;
  20843. if(intervalSetting != null)
  20844. map['IntervalSetting'] = intervalSetting;
  20845. map['Enabled'] = enabled;
  20846. if(handleClass != null)
  20847. map['HandleClass'] = handleClass;
  20848. if(serverHost != null)
  20849. map['ServerHost'] = serverHost;
  20850. return map;
  20851. }
  20852. }
  20853. class AdminFeatureItemDTO extends BaseFeatureItemBaseDTO<AdminFeatureItemDTO>{
  20854. AdminFeatureItemDTO(
  20855. );
  20856. factory AdminFeatureItemDTO.fromJson(Map<String, dynamic> map) {
  20857. return AdminFeatureItemDTO(
  20858. );
  20859. }
  20860. Map<String, dynamic> toJson() {
  20861. final map = super.toJson();
  20862. return map;
  20863. }
  20864. }
  20865. class AdminAuthorityGroupDTO extends BaseDTO{
  20866. String? adminGroupCode;
  20867. String? description;
  20868. List<String>? adminCodes;
  20869. List<String>? features;
  20870. String? createAdmin;
  20871. AdminAuthorityGroupDTO({
  20872. this.adminGroupCode,
  20873. this.description,
  20874. this.adminCodes,
  20875. this.features,
  20876. this.createAdmin,
  20877. DateTime? createTime,
  20878. DateTime? updateTime,
  20879. }) : super(
  20880. createTime: createTime,
  20881. updateTime: updateTime,
  20882. );
  20883. factory AdminAuthorityGroupDTO.fromJson(Map<String, dynamic> map) {
  20884. return AdminAuthorityGroupDTO(
  20885. adminGroupCode: map['AdminGroupCode'],
  20886. description: map['Description'],
  20887. adminCodes: map['AdminCodes']?.cast<String>().toList(),
  20888. features: map['Features']?.cast<String>().toList(),
  20889. createAdmin: map['CreateAdmin'],
  20890. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  20891. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  20892. );
  20893. }
  20894. Map<String, dynamic> toJson() {
  20895. final map = super.toJson();
  20896. if(adminGroupCode != null)
  20897. map['AdminGroupCode'] = adminGroupCode;
  20898. if(description != null)
  20899. map['Description'] = description;
  20900. if(adminCodes != null)
  20901. map['AdminCodes'] = adminCodes;
  20902. if(features != null)
  20903. map['Features'] = features;
  20904. if(createAdmin != null)
  20905. map['CreateAdmin'] = createAdmin;
  20906. return map;
  20907. }
  20908. }