other.m.dart 419 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758
  1. import 'authentication.m.dart';
  2. import 'notification.m.dart';
  3. import 'login.m.dart';
  4. import 'upgrade.m.dart';
  5. import 'user.m.dart';
  6. import 'patient.m.dart';
  7. import 'remedical.m.dart';
  8. import 'liveConsultation.m.dart';
  9. import 'recordInfo.m.dart';
  10. import 'organization.m.dart';
  11. import 'device.m.dart';
  12. import 'education.m.dart';
  13. import 'connect.m.dart';
  14. import 'aIDiagnosis.m.dart';
  15. import 'storage.m.dart';
  16. import 'report.m.dart';
  17. import 'payment.m.dart';
  18. import 'lab.m.dart';
  19. import 'vinnoServer.m.dart';
  20. import 'deployPlatform.m.dart';
  21. import 'position.m.dart';
  22. import 'rank.m.dart';
  23. import 'identityApply.m.dart';
  24. import 'role.m.dart';
  25. import 'region.m.dart';
  26. import 'aSR.m.dart';
  27. import 'package:fis_jsonrpc/utils.dart';
  28. import 'package:fis_common/json_convert.dart';
  29. class GenerateRoomUrlRequest {
  30. int roomId;
  31. String? uniqueId;
  32. GenerateRoomUrlRequest({
  33. this.roomId = 0,
  34. this.uniqueId,
  35. });
  36. factory GenerateRoomUrlRequest.fromJson(Map<String, dynamic> map) {
  37. return GenerateRoomUrlRequest(
  38. roomId: map['RoomId'],
  39. uniqueId: map['UniqueId'],
  40. );
  41. }
  42. Map<String, dynamic> toJson() {
  43. final map = Map<String, dynamic>();
  44. map['RoomId'] = roomId;
  45. if(uniqueId != null)
  46. map['UniqueId'] = uniqueId;
  47. return map;
  48. }
  49. }
  50. class GenerateRoomUrlResult {
  51. String? rtmpUrl;
  52. String? rtmpPushUrl;
  53. String? hlsUrl;
  54. String? flvUrl;
  55. GenerateRoomUrlResult({
  56. this.rtmpUrl,
  57. this.rtmpPushUrl,
  58. this.hlsUrl,
  59. this.flvUrl,
  60. });
  61. factory GenerateRoomUrlResult.fromJson(Map<String, dynamic> map) {
  62. return GenerateRoomUrlResult(
  63. rtmpUrl: map['RtmpUrl'],
  64. rtmpPushUrl: map['RtmpPushUrl'],
  65. hlsUrl: map['HlsUrl'],
  66. flvUrl: map['FlvUrl'],
  67. );
  68. }
  69. Map<String, dynamic> toJson() {
  70. final map = Map<String, dynamic>();
  71. if(rtmpUrl != null)
  72. map['RtmpUrl'] = rtmpUrl;
  73. if(rtmpPushUrl != null)
  74. map['RtmpPushUrl'] = rtmpPushUrl;
  75. if(hlsUrl != null)
  76. map['HlsUrl'] = hlsUrl;
  77. if(flvUrl != null)
  78. map['FlvUrl'] = flvUrl;
  79. return map;
  80. }
  81. }
  82. class GetRoomIdRequest {
  83. String? uniqueId;
  84. GetRoomIdRequest({
  85. this.uniqueId,
  86. });
  87. factory GetRoomIdRequest.fromJson(Map<String, dynamic> map) {
  88. return GetRoomIdRequest(
  89. uniqueId: map['UniqueId'],
  90. );
  91. }
  92. Map<String, dynamic> toJson() {
  93. final map = Map<String, dynamic>();
  94. if(uniqueId != null)
  95. map['UniqueId'] = uniqueId;
  96. return map;
  97. }
  98. }
  99. class GetRoomIdResult {
  100. int roomId;
  101. GetRoomIdResult({
  102. this.roomId = 0,
  103. });
  104. factory GetRoomIdResult.fromJson(Map<String, dynamic> map) {
  105. return GetRoomIdResult(
  106. roomId: map['RoomId'],
  107. );
  108. }
  109. Map<String, dynamic> toJson() {
  110. final map = Map<String, dynamic>();
  111. map['RoomId'] = roomId;
  112. return map;
  113. }
  114. }
  115. class GetRtcSettingRequest {
  116. GetRtcSettingRequest();
  117. factory GetRtcSettingRequest.fromJson(Map<String, dynamic> map) {
  118. return GetRtcSettingRequest(
  119. );
  120. }
  121. Map<String, dynamic> toJson() {
  122. final map = Map<String, dynamic>();
  123. return map;
  124. }
  125. }
  126. class GetRtcSettingResult {
  127. int appId;
  128. GetRtcSettingResult({
  129. this.appId = 0,
  130. });
  131. factory GetRtcSettingResult.fromJson(Map<String, dynamic> map) {
  132. return GetRtcSettingResult(
  133. appId: map['AppId'],
  134. );
  135. }
  136. Map<String, dynamic> toJson() {
  137. final map = Map<String, dynamic>();
  138. map['AppId'] = appId;
  139. return map;
  140. }
  141. }
  142. class GetUserSignRequest {
  143. String? userId;
  144. GetUserSignRequest({
  145. this.userId,
  146. });
  147. factory GetUserSignRequest.fromJson(Map<String, dynamic> map) {
  148. return GetUserSignRequest(
  149. userId: map['UserId'],
  150. );
  151. }
  152. Map<String, dynamic> toJson() {
  153. final map = Map<String, dynamic>();
  154. if(userId != null)
  155. map['UserId'] = userId;
  156. return map;
  157. }
  158. }
  159. class GetUserSignResult {
  160. String? userSign;
  161. GetUserSignResult({
  162. this.userSign,
  163. });
  164. factory GetUserSignResult.fromJson(Map<String, dynamic> map) {
  165. return GetUserSignResult(
  166. userSign: map['UserSign'],
  167. );
  168. }
  169. Map<String, dynamic> toJson() {
  170. final map = Map<String, dynamic>();
  171. if(userSign != null)
  172. map['UserSign'] = userSign;
  173. return map;
  174. }
  175. }
  176. class StorageInfoResult {
  177. int code;
  178. bool isSuccess;
  179. String? message;
  180. StorageInfoResult({
  181. this.code = 0,
  182. this.isSuccess = false,
  183. this.message,
  184. });
  185. factory StorageInfoResult.fromJson(Map<String, dynamic> map) {
  186. return StorageInfoResult(
  187. code: map['Code'],
  188. isSuccess: map['IsSuccess'],
  189. message: map['Message'],
  190. );
  191. }
  192. Map<String, dynamic> toJson() {
  193. final map = Map<String, dynamic>();
  194. map['Code'] = code;
  195. map['IsSuccess'] = isSuccess;
  196. if(message != null)
  197. map['Message'] = message;
  198. return map;
  199. }
  200. }
  201. class MeasureItemsResult {
  202. MeasureItemsResult();
  203. factory MeasureItemsResult.fromJson(Map<String, dynamic> map) {
  204. return MeasureItemsResult(
  205. );
  206. }
  207. Map<String, dynamic> toJson() {
  208. final map = Map<String, dynamic>();
  209. return map;
  210. }
  211. }
  212. class WaitClearLogResult {
  213. int daysAgo;
  214. int waitDelCount;
  215. WaitClearLogResult({
  216. this.daysAgo = 0,
  217. this.waitDelCount = 0,
  218. });
  219. factory WaitClearLogResult.fromJson(Map<String, dynamic> map) {
  220. return WaitClearLogResult(
  221. daysAgo: map['DaysAgo'],
  222. waitDelCount: map['WaitDelCount'],
  223. );
  224. }
  225. Map<String, dynamic> toJson() {
  226. final map = Map<String, dynamic>();
  227. map['DaysAgo'] = daysAgo;
  228. map['WaitDelCount'] = waitDelCount;
  229. return map;
  230. }
  231. }
  232. class ClearSystemLogRecordResult {
  233. int daysAgo;
  234. String? requestServerHost;
  235. String? clearTime;
  236. List<WaitClearLogResult >? waitClearLogs;
  237. ClearSystemLogRecordResult({
  238. this.daysAgo = 0,
  239. this.requestServerHost,
  240. this.clearTime,
  241. this.waitClearLogs,
  242. });
  243. factory ClearSystemLogRecordResult.fromJson(Map<String, dynamic> map) {
  244. return ClearSystemLogRecordResult(
  245. daysAgo: map['DaysAgo'],
  246. requestServerHost: map['RequestServerHost'],
  247. clearTime: map['ClearTime'],
  248. waitClearLogs: map['WaitClearLogs'] != null ? (map['WaitClearLogs'] as List).map((e)=>WaitClearLogResult.fromJson(e as Map<String,dynamic>)).toList() : null,
  249. );
  250. }
  251. Map<String, dynamic> toJson() {
  252. final map = Map<String, dynamic>();
  253. map['DaysAgo'] = daysAgo;
  254. if(requestServerHost != null)
  255. map['RequestServerHost'] = requestServerHost;
  256. if(clearTime != null)
  257. map['ClearTime'] = clearTime;
  258. if(waitClearLogs != null)
  259. map['WaitClearLogs'] = waitClearLogs;
  260. return map;
  261. }
  262. }
  263. enum CMSTemplateStatusTypeEnum {
  264. UnPublished,
  265. Published,
  266. }
  267. class CMSTemplateResult {
  268. String? cMSTemplateCode;
  269. String? cMSTemplateName;
  270. CMSTemplateStatusTypeEnum cMSTemplateStateType;
  271. String? cMSTemplateJson;
  272. bool isDefault;
  273. DateTime? createTime;
  274. String? cMSBgColor;
  275. String? cMSBgImg;
  276. bool isShowTop;
  277. String? cMSBorderColor;
  278. int cMSBorderShadow;
  279. CMSTemplateResult({
  280. this.cMSTemplateCode,
  281. this.cMSTemplateName,
  282. this.cMSTemplateStateType = CMSTemplateStatusTypeEnum.UnPublished,
  283. this.cMSTemplateJson,
  284. this.isDefault = false,
  285. this.createTime,
  286. this.cMSBgColor,
  287. this.cMSBgImg,
  288. this.isShowTop = false,
  289. this.cMSBorderColor,
  290. this.cMSBorderShadow = 0,
  291. });
  292. factory CMSTemplateResult.fromJson(Map<String, dynamic> map) {
  293. return CMSTemplateResult(
  294. cMSTemplateCode: map['CMSTemplateCode'],
  295. cMSTemplateName: map['CMSTemplateName'],
  296. cMSTemplateStateType: CMSTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['CMSTemplateStateType']),
  297. cMSTemplateJson: map['CMSTemplateJson'],
  298. isDefault: map['IsDefault'],
  299. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  300. cMSBgColor: map['CMSBgColor'],
  301. cMSBgImg: map['CMSBgImg'],
  302. isShowTop: map['IsShowTop'],
  303. cMSBorderColor: map['CMSBorderColor'],
  304. cMSBorderShadow: map['CMSBorderShadow'],
  305. );
  306. }
  307. Map<String, dynamic> toJson() {
  308. final map = Map<String, dynamic>();
  309. if(cMSTemplateCode != null)
  310. map['CMSTemplateCode'] = cMSTemplateCode;
  311. if(cMSTemplateName != null)
  312. map['CMSTemplateName'] = cMSTemplateName;
  313. map['CMSTemplateStateType'] = cMSTemplateStateType.index;
  314. if(cMSTemplateJson != null)
  315. map['CMSTemplateJson'] = cMSTemplateJson;
  316. map['IsDefault'] = isDefault;
  317. if(createTime != null)
  318. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  319. if(cMSBgColor != null)
  320. map['CMSBgColor'] = cMSBgColor;
  321. if(cMSBgImg != null)
  322. map['CMSBgImg'] = cMSBgImg;
  323. map['IsShowTop'] = isShowTop;
  324. if(cMSBorderColor != null)
  325. map['CMSBorderColor'] = cMSBorderColor;
  326. map['CMSBorderShadow'] = cMSBorderShadow;
  327. return map;
  328. }
  329. }
  330. class OrganizationBindQueryResult {
  331. int bindDeviceNum;
  332. int bindUserNum;
  333. OrganizationBindQueryResult({
  334. this.bindDeviceNum = 0,
  335. this.bindUserNum = 0,
  336. });
  337. factory OrganizationBindQueryResult.fromJson(Map<String, dynamic> map) {
  338. return OrganizationBindQueryResult(
  339. bindDeviceNum: map['BindDeviceNum'],
  340. bindUserNum: map['BindUserNum'],
  341. );
  342. }
  343. Map<String, dynamic> toJson() {
  344. final map = Map<String, dynamic>();
  345. map['BindDeviceNum'] = bindDeviceNum;
  346. map['BindUserNum'] = bindUserNum;
  347. return map;
  348. }
  349. }
  350. class ShareExamUrlResult {
  351. String? posterUrl;
  352. String? videoUrl;
  353. ShareExamUrlResult({
  354. this.posterUrl,
  355. this.videoUrl,
  356. });
  357. factory ShareExamUrlResult.fromJson(Map<String, dynamic> map) {
  358. return ShareExamUrlResult(
  359. posterUrl: map['PosterUrl'],
  360. videoUrl: map['VideoUrl'],
  361. );
  362. }
  363. Map<String, dynamic> toJson() {
  364. final map = Map<String, dynamic>();
  365. if(posterUrl != null)
  366. map['PosterUrl'] = posterUrl;
  367. if(videoUrl != null)
  368. map['VideoUrl'] = videoUrl;
  369. return map;
  370. }
  371. }
  372. class ApplyLockResult {
  373. bool isSuccess;
  374. String? lockUniqueCode;
  375. ApplyLockResult({
  376. this.isSuccess = false,
  377. this.lockUniqueCode,
  378. });
  379. factory ApplyLockResult.fromJson(Map<String, dynamic> map) {
  380. return ApplyLockResult(
  381. isSuccess: map['IsSuccess'],
  382. lockUniqueCode: map['LockUniqueCode'],
  383. );
  384. }
  385. Map<String, dynamic> toJson() {
  386. final map = Map<String, dynamic>();
  387. map['IsSuccess'] = isSuccess;
  388. if(lockUniqueCode != null)
  389. map['LockUniqueCode'] = lockUniqueCode;
  390. return map;
  391. }
  392. }
  393. class ReleaseLockResult {
  394. bool isSuccess;
  395. ReleaseLockResult({
  396. this.isSuccess = false,
  397. });
  398. factory ReleaseLockResult.fromJson(Map<String, dynamic> map) {
  399. return ReleaseLockResult(
  400. isSuccess: map['IsSuccess'],
  401. );
  402. }
  403. Map<String, dynamic> toJson() {
  404. final map = Map<String, dynamic>();
  405. map['IsSuccess'] = isSuccess;
  406. return map;
  407. }
  408. }
  409. class MarshalByRefObject {
  410. MarshalByRefObject();
  411. factory MarshalByRefObject.fromJson(Map<String, dynamic> map) {
  412. return MarshalByRefObject(
  413. );
  414. }
  415. Map<String, dynamic> toJson() {
  416. final map = Map<String, dynamic>();
  417. return map;
  418. }
  419. }
  420. class Stream extends MarshalByRefObject{
  421. bool canRead;
  422. bool canWrite;
  423. bool canSeek;
  424. bool canTimeout;
  425. int length;
  426. int position;
  427. int readTimeout;
  428. int writeTimeout;
  429. Stream({
  430. this.canRead = false,
  431. this.canWrite = false,
  432. this.canSeek = false,
  433. this.canTimeout = false,
  434. this.length = 0,
  435. this.position = 0,
  436. this.readTimeout = 0,
  437. this.writeTimeout = 0,
  438. }) : super(
  439. );
  440. factory Stream.fromJson(Map<String, dynamic> map) {
  441. return Stream(
  442. canRead: map['CanRead'],
  443. canWrite: map['CanWrite'],
  444. canSeek: map['CanSeek'],
  445. canTimeout: map['CanTimeout'],
  446. length: map['Length'],
  447. position: map['Position'],
  448. readTimeout: map['ReadTimeout'],
  449. writeTimeout: map['WriteTimeout'],
  450. );
  451. }
  452. Map<String, dynamic> toJson() {
  453. final map = super.toJson();
  454. map['CanRead'] = canRead;
  455. map['CanWrite'] = canWrite;
  456. map['CanSeek'] = canSeek;
  457. map['CanTimeout'] = canTimeout;
  458. map['Length'] = length;
  459. map['Position'] = position;
  460. map['ReadTimeout'] = readTimeout;
  461. map['WriteTimeout'] = writeTimeout;
  462. return map;
  463. }
  464. }
  465. class DownloadFileResult {
  466. Stream? merageFileStream;
  467. int fileSize;
  468. DownloadFileResult({
  469. this.merageFileStream,
  470. this.fileSize = 0,
  471. });
  472. factory DownloadFileResult.fromJson(Map<String, dynamic> map) {
  473. return DownloadFileResult(
  474. merageFileStream: map['MerageFileStream'] != null ? Stream.fromJson(map['MerageFileStream']) : null,
  475. fileSize: map['FileSize'],
  476. );
  477. }
  478. Map<String, dynamic> toJson() {
  479. final map = Map<String, dynamic>();
  480. if(merageFileStream != null)
  481. map['MerageFileStream'] = merageFileStream;
  482. map['FileSize'] = fileSize;
  483. return map;
  484. }
  485. }
  486. class BaseLiveResult {
  487. String? roomCode;
  488. int integerRoomId;
  489. String? rtcMessageJson;
  490. BaseLiveResult({
  491. this.roomCode,
  492. this.integerRoomId = 0,
  493. this.rtcMessageJson,
  494. });
  495. factory BaseLiveResult.fromJson(Map<String, dynamic> map) {
  496. return BaseLiveResult(
  497. roomCode: map['RoomCode'],
  498. integerRoomId: map['IntegerRoomId'],
  499. rtcMessageJson: map['RtcMessageJson'],
  500. );
  501. }
  502. Map<String, dynamic> toJson() {
  503. final map = Map<String, dynamic>();
  504. if(roomCode != null)
  505. map['RoomCode'] = roomCode;
  506. map['IntegerRoomId'] = integerRoomId;
  507. if(rtcMessageJson != null)
  508. map['RtcMessageJson'] = rtcMessageJson;
  509. return map;
  510. }
  511. }
  512. class MuteLiveResult extends BaseLiveResult{
  513. bool mute;
  514. MuteLiveResult({
  515. this.mute = false,
  516. String? roomCode,
  517. int integerRoomId = 0,
  518. String? rtcMessageJson,
  519. }) : super(
  520. roomCode: roomCode,
  521. integerRoomId: integerRoomId,
  522. rtcMessageJson: rtcMessageJson,
  523. );
  524. factory MuteLiveResult.fromJson(Map<String, dynamic> map) {
  525. return MuteLiveResult(
  526. mute: map['Mute'],
  527. roomCode: map['RoomCode'],
  528. integerRoomId: map['IntegerRoomId'],
  529. rtcMessageJson: map['RtcMessageJson'],
  530. );
  531. }
  532. Map<String, dynamic> toJson() {
  533. final map = super.toJson();
  534. map['Mute'] = mute;
  535. return map;
  536. }
  537. }
  538. class OpenedVideoLiveResult extends BaseLiveResult{
  539. bool videoOpend;
  540. OpenedVideoLiveResult({
  541. this.videoOpend = false,
  542. String? roomCode,
  543. int integerRoomId = 0,
  544. String? rtcMessageJson,
  545. }) : super(
  546. roomCode: roomCode,
  547. integerRoomId: integerRoomId,
  548. rtcMessageJson: rtcMessageJson,
  549. );
  550. factory OpenedVideoLiveResult.fromJson(Map<String, dynamic> map) {
  551. return OpenedVideoLiveResult(
  552. videoOpend: map['VideoOpend'],
  553. roomCode: map['RoomCode'],
  554. integerRoomId: map['IntegerRoomId'],
  555. rtcMessageJson: map['RtcMessageJson'],
  556. );
  557. }
  558. Map<String, dynamic> toJson() {
  559. final map = super.toJson();
  560. map['VideoOpend'] = videoOpend;
  561. return map;
  562. }
  563. }
  564. class ControllingParameterLiveResult extends BaseLiveResult{
  565. bool isControllingParameter;
  566. ControllingParameterLiveResult({
  567. this.isControllingParameter = false,
  568. String? roomCode,
  569. int integerRoomId = 0,
  570. String? rtcMessageJson,
  571. }) : super(
  572. roomCode: roomCode,
  573. integerRoomId: integerRoomId,
  574. rtcMessageJson: rtcMessageJson,
  575. );
  576. factory ControllingParameterLiveResult.fromJson(Map<String, dynamic> map) {
  577. return ControllingParameterLiveResult(
  578. isControllingParameter: map['IsControllingParameter'],
  579. roomCode: map['RoomCode'],
  580. integerRoomId: map['IntegerRoomId'],
  581. rtcMessageJson: map['RtcMessageJson'],
  582. );
  583. }
  584. Map<String, dynamic> toJson() {
  585. final map = super.toJson();
  586. map['IsControllingParameter'] = isControllingParameter;
  587. return map;
  588. }
  589. }
  590. class ChangeCourseStatusResult extends BaseLiveResult{
  591. CourseStatusEnum status;
  592. ChangeCourseStatusResult({
  593. this.status = CourseStatusEnum.Unknown,
  594. String? roomCode,
  595. int integerRoomId = 0,
  596. String? rtcMessageJson,
  597. }) : super(
  598. roomCode: roomCode,
  599. integerRoomId: integerRoomId,
  600. rtcMessageJson: rtcMessageJson,
  601. );
  602. factory ChangeCourseStatusResult.fromJson(Map<String, dynamic> map) {
  603. return ChangeCourseStatusResult(
  604. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  605. roomCode: map['RoomCode'],
  606. integerRoomId: map['IntegerRoomId'],
  607. rtcMessageJson: map['RtcMessageJson'],
  608. );
  609. }
  610. Map<String, dynamic> toJson() {
  611. final map = super.toJson();
  612. map['Status'] = status.index;
  613. return map;
  614. }
  615. }
  616. class FindConsultationSettingResult {
  617. String? version;
  618. String? settingData;
  619. FindConsultationSettingResult({
  620. this.version,
  621. this.settingData,
  622. });
  623. factory FindConsultationSettingResult.fromJson(Map<String, dynamic> map) {
  624. return FindConsultationSettingResult(
  625. version: map['Version'],
  626. settingData: map['SettingData'],
  627. );
  628. }
  629. Map<String, dynamic> toJson() {
  630. final map = Map<String, dynamic>();
  631. if(version != null)
  632. map['Version'] = version;
  633. if(settingData != null)
  634. map['SettingData'] = settingData;
  635. return map;
  636. }
  637. }
  638. class AddCacheReportPosterRequest extends TokenRequest{
  639. String? reportPosterCode;
  640. AddCacheReportPosterRequest({
  641. this.reportPosterCode,
  642. String? token,
  643. }) : super(
  644. token: token,
  645. );
  646. factory AddCacheReportPosterRequest.fromJson(Map<String, dynamic> map) {
  647. return AddCacheReportPosterRequest(
  648. reportPosterCode: map['ReportPosterCode'],
  649. token: map['Token'],
  650. );
  651. }
  652. Map<String, dynamic> toJson() {
  653. final map = super.toJson();
  654. if(reportPosterCode != null)
  655. map['ReportPosterCode'] = reportPosterCode;
  656. return map;
  657. }
  658. }
  659. class DeleteThesaurusUserCodeRequest extends TokenRequest{
  660. String? thesaurusCode;
  661. DeleteThesaurusUserCodeRequest({
  662. this.thesaurusCode,
  663. String? token,
  664. }) : super(
  665. token: token,
  666. );
  667. factory DeleteThesaurusUserCodeRequest.fromJson(Map<String, dynamic> map) {
  668. return DeleteThesaurusUserCodeRequest(
  669. thesaurusCode: map['ThesaurusCode'],
  670. token: map['Token'],
  671. );
  672. }
  673. Map<String, dynamic> toJson() {
  674. final map = super.toJson();
  675. if(thesaurusCode != null)
  676. map['ThesaurusCode'] = thesaurusCode;
  677. return map;
  678. }
  679. }
  680. class RemoveCacheReportPosterRequest extends TokenRequest{
  681. String? reportPosterCode;
  682. RemoveCacheReportPosterRequest({
  683. this.reportPosterCode,
  684. String? token,
  685. }) : super(
  686. token: token,
  687. );
  688. factory RemoveCacheReportPosterRequest.fromJson(Map<String, dynamic> map) {
  689. return RemoveCacheReportPosterRequest(
  690. reportPosterCode: map['ReportPosterCode'],
  691. token: map['Token'],
  692. );
  693. }
  694. Map<String, dynamic> toJson() {
  695. final map = super.toJson();
  696. if(reportPosterCode != null)
  697. map['ReportPosterCode'] = reportPosterCode;
  698. return map;
  699. }
  700. }
  701. class UpdateThesaurusUserCodeRequest extends TokenRequest{
  702. String? thesaurusCode;
  703. UpdateThesaurusUserCodeRequest({
  704. this.thesaurusCode,
  705. String? token,
  706. }) : super(
  707. token: token,
  708. );
  709. factory UpdateThesaurusUserCodeRequest.fromJson(Map<String, dynamic> map) {
  710. return UpdateThesaurusUserCodeRequest(
  711. thesaurusCode: map['ThesaurusCode'],
  712. token: map['Token'],
  713. );
  714. }
  715. Map<String, dynamic> toJson() {
  716. final map = super.toJson();
  717. if(thesaurusCode != null)
  718. map['ThesaurusCode'] = thesaurusCode;
  719. return map;
  720. }
  721. }
  722. class PushRecordCodesToDeviceRequest extends TokenRequest{
  723. List<String >? recordCodes;
  724. String? deviceCode;
  725. PushRecordCodesToDeviceRequest({
  726. this.recordCodes,
  727. this.deviceCode,
  728. String? token,
  729. }) : super(
  730. token: token,
  731. );
  732. factory PushRecordCodesToDeviceRequest.fromJson(Map<String, dynamic> map) {
  733. return PushRecordCodesToDeviceRequest(
  734. recordCodes: map['RecordCodes'] != null ? map['RecordCodes'].cast<String>().toList() : null,
  735. deviceCode: map['DeviceCode'],
  736. token: map['Token'],
  737. );
  738. }
  739. Map<String, dynamic> toJson() {
  740. final map = super.toJson();
  741. if(recordCodes != null)
  742. map['RecordCodes'] = recordCodes;
  743. if(deviceCode != null)
  744. map['DeviceCode'] = deviceCode;
  745. return map;
  746. }
  747. }
  748. class PayCallbackRequest {
  749. String? keyWord;
  750. PayCallbackRequest({
  751. this.keyWord,
  752. });
  753. factory PayCallbackRequest.fromJson(Map<String, dynamic> map) {
  754. return PayCallbackRequest(
  755. keyWord: map['KeyWord'],
  756. );
  757. }
  758. Map<String, dynamic> toJson() {
  759. final map = Map<String, dynamic>();
  760. if(keyWord != null)
  761. map['KeyWord'] = keyWord;
  762. return map;
  763. }
  764. }
  765. class CloseNotifyQueueRequest {
  766. String? msgQueueId;
  767. CloseNotifyQueueRequest({
  768. this.msgQueueId,
  769. });
  770. factory CloseNotifyQueueRequest.fromJson(Map<String, dynamic> map) {
  771. return CloseNotifyQueueRequest(
  772. msgQueueId: map['MsgQueueId'],
  773. );
  774. }
  775. Map<String, dynamic> toJson() {
  776. final map = Map<String, dynamic>();
  777. if(msgQueueId != null)
  778. map['MsgQueueId'] = msgQueueId;
  779. return map;
  780. }
  781. }
  782. class OpenNotifyQueueRequest {
  783. String? module;
  784. OpenNotifyQueueRequest({
  785. this.module,
  786. });
  787. factory OpenNotifyQueueRequest.fromJson(Map<String, dynamic> map) {
  788. return OpenNotifyQueueRequest(
  789. module: map['Module'],
  790. );
  791. }
  792. Map<String, dynamic> toJson() {
  793. final map = Map<String, dynamic>();
  794. if(module != null)
  795. map['Module'] = module;
  796. return map;
  797. }
  798. }
  799. class ApplyLockRequest {
  800. String? lockKey;
  801. ApplyLockRequest({
  802. this.lockKey,
  803. });
  804. factory ApplyLockRequest.fromJson(Map<String, dynamic> map) {
  805. return ApplyLockRequest(
  806. lockKey: map['LockKey'],
  807. );
  808. }
  809. Map<String, dynamic> toJson() {
  810. final map = Map<String, dynamic>();
  811. if(lockKey != null)
  812. map['LockKey'] = lockKey;
  813. return map;
  814. }
  815. }
  816. class ReleaseLockRequest {
  817. String? lockUniqueCode;
  818. ReleaseLockRequest({
  819. this.lockUniqueCode,
  820. });
  821. factory ReleaseLockRequest.fromJson(Map<String, dynamic> map) {
  822. return ReleaseLockRequest(
  823. lockUniqueCode: map['LockUniqueCode'],
  824. );
  825. }
  826. Map<String, dynamic> toJson() {
  827. final map = Map<String, dynamic>();
  828. if(lockUniqueCode != null)
  829. map['LockUniqueCode'] = lockUniqueCode;
  830. return map;
  831. }
  832. }
  833. class AssignPatientToUsersRequest extends TokenRequest{
  834. String? patientCode;
  835. List<String >? userCodes;
  836. AssignPatientToUsersRequest({
  837. this.patientCode,
  838. this.userCodes,
  839. String? token,
  840. }) : super(
  841. token: token,
  842. );
  843. factory AssignPatientToUsersRequest.fromJson(Map<String, dynamic> map) {
  844. return AssignPatientToUsersRequest(
  845. patientCode: map['PatientCode'],
  846. userCodes: map['UserCodes'] != null ? map['UserCodes'].cast<String>().toList() : null,
  847. token: map['Token'],
  848. );
  849. }
  850. Map<String, dynamic> toJson() {
  851. final map = super.toJson();
  852. if(patientCode != null)
  853. map['PatientCode'] = patientCode;
  854. if(userCodes != null)
  855. map['UserCodes'] = userCodes;
  856. return map;
  857. }
  858. }
  859. class QuestionDetailDTO extends BaseDTO{
  860. String? code;
  861. double score;
  862. QuestionDetailDTO({
  863. this.code,
  864. this.score = 0,
  865. DateTime? createTime,
  866. DateTime? updateTime,
  867. }) : super(
  868. createTime: createTime,
  869. updateTime: updateTime,
  870. );
  871. factory QuestionDetailDTO.fromJson(Map<String, dynamic> map) {
  872. return QuestionDetailDTO(
  873. code: map['Code'],
  874. score: double.parse(map['Score'].toString()),
  875. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  876. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  877. );
  878. }
  879. Map<String, dynamic> toJson() {
  880. final map = super.toJson();
  881. if(code != null)
  882. map['Code'] = code;
  883. map['Score'] = score;
  884. return map;
  885. }
  886. }
  887. class AddExaminationPaperRequest extends TokenRequest{
  888. String? name;
  889. double totalScore;
  890. List<QuestionDetailDTO >? questionList;
  891. List<String >? caseLabelCodes;
  892. List<String >? courseLabelCodes;
  893. AddExaminationPaperRequest({
  894. this.name,
  895. this.totalScore = 0,
  896. this.questionList,
  897. this.caseLabelCodes,
  898. this.courseLabelCodes,
  899. String? token,
  900. }) : super(
  901. token: token,
  902. );
  903. factory AddExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  904. return AddExaminationPaperRequest(
  905. name: map['Name'],
  906. totalScore: double.parse(map['TotalScore'].toString()),
  907. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>QuestionDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  908. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  909. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  910. token: map['Token'],
  911. );
  912. }
  913. Map<String, dynamic> toJson() {
  914. final map = super.toJson();
  915. if(name != null)
  916. map['Name'] = name;
  917. map['TotalScore'] = totalScore;
  918. if(questionList != null)
  919. map['QuestionList'] = questionList;
  920. if(caseLabelCodes != null)
  921. map['CaseLabelCodes'] = caseLabelCodes;
  922. if(courseLabelCodes != null)
  923. map['CourseLabelCodes'] = courseLabelCodes;
  924. return map;
  925. }
  926. }
  927. class CourseLabelRequest extends TokenRequest{
  928. String? code;
  929. List<LabelLanguageConfigDTO >? labelLanguageConfigs;
  930. OrganizationPatientTypeEnum useObjectType;
  931. LabelTypeEnum type;
  932. String? parentCode;
  933. CourseLabelRequest({
  934. this.code,
  935. this.labelLanguageConfigs,
  936. this.useObjectType = OrganizationPatientTypeEnum.Person,
  937. this.type = LabelTypeEnum.Unknown,
  938. this.parentCode,
  939. String? token,
  940. }) : super(
  941. token: token,
  942. );
  943. factory CourseLabelRequest.fromJson(Map<String, dynamic> map) {
  944. return CourseLabelRequest(
  945. code: map['Code'],
  946. labelLanguageConfigs: map['LabelLanguageConfigs'] != null ? (map['LabelLanguageConfigs'] as List).map((e)=>LabelLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  947. useObjectType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['UseObjectType']),
  948. type: LabelTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  949. parentCode: map['ParentCode'],
  950. token: map['Token'],
  951. );
  952. }
  953. Map<String, dynamic> toJson() {
  954. final map = super.toJson();
  955. if(code != null)
  956. map['Code'] = code;
  957. if(labelLanguageConfigs != null)
  958. map['LabelLanguageConfigs'] = labelLanguageConfigs;
  959. map['UseObjectType'] = useObjectType.index;
  960. map['Type'] = type.index;
  961. if(parentCode != null)
  962. map['ParentCode'] = parentCode;
  963. return map;
  964. }
  965. }
  966. class DeleteExaminationPaperRequest extends TokenRequest{
  967. String? examinationPaperCode;
  968. DeleteExaminationPaperRequest({
  969. this.examinationPaperCode,
  970. String? token,
  971. }) : super(
  972. token: token,
  973. );
  974. factory DeleteExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  975. return DeleteExaminationPaperRequest(
  976. examinationPaperCode: map['ExaminationPaperCode'],
  977. token: map['Token'],
  978. );
  979. }
  980. Map<String, dynamic> toJson() {
  981. final map = super.toJson();
  982. if(examinationPaperCode != null)
  983. map['ExaminationPaperCode'] = examinationPaperCode;
  984. return map;
  985. }
  986. }
  987. class FindExaminationQuestionPagesRequest extends PageRequest{
  988. String? searchKey;
  989. List<String >? caseLabelCodes;
  990. List<String >? courseLabelCodes;
  991. List<String >? codes;
  992. List<String >? notInCodes;
  993. FindExaminationQuestionPagesRequest({
  994. this.searchKey,
  995. this.caseLabelCodes,
  996. this.courseLabelCodes,
  997. this.codes,
  998. this.notInCodes,
  999. int pageIndex = 0,
  1000. int pageSize = 0,
  1001. String? token,
  1002. }) : super(
  1003. pageIndex: pageIndex,
  1004. pageSize: pageSize,
  1005. token: token,
  1006. );
  1007. factory FindExaminationQuestionPagesRequest.fromJson(Map<String, dynamic> map) {
  1008. return FindExaminationQuestionPagesRequest(
  1009. searchKey: map['SearchKey'],
  1010. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  1011. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  1012. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  1013. notInCodes: map['NotInCodes'] != null ? map['NotInCodes'].cast<String>().toList() : null,
  1014. pageIndex: map['PageIndex'],
  1015. pageSize: map['PageSize'],
  1016. token: map['Token'],
  1017. );
  1018. }
  1019. Map<String, dynamic> toJson() {
  1020. final map = super.toJson();
  1021. if(searchKey != null)
  1022. map['SearchKey'] = searchKey;
  1023. if(caseLabelCodes != null)
  1024. map['CaseLabelCodes'] = caseLabelCodes;
  1025. if(courseLabelCodes != null)
  1026. map['CourseLabelCodes'] = courseLabelCodes;
  1027. if(codes != null)
  1028. map['Codes'] = codes;
  1029. if(notInCodes != null)
  1030. map['NotInCodes'] = notInCodes;
  1031. return map;
  1032. }
  1033. }
  1034. class FindExaminationQuestionsByCodesRequest extends TokenRequest{
  1035. List<String >? codes;
  1036. FindExaminationQuestionsByCodesRequest({
  1037. this.codes,
  1038. String? token,
  1039. }) : super(
  1040. token: token,
  1041. );
  1042. factory FindExaminationQuestionsByCodesRequest.fromJson(Map<String, dynamic> map) {
  1043. return FindExaminationQuestionsByCodesRequest(
  1044. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  1045. token: map['Token'],
  1046. );
  1047. }
  1048. Map<String, dynamic> toJson() {
  1049. final map = super.toJson();
  1050. if(codes != null)
  1051. map['Codes'] = codes;
  1052. return map;
  1053. }
  1054. }
  1055. class CreateExaminationQuestionRequest extends TokenRequest{
  1056. String? stem;
  1057. QuestionTypeEnum questionType;
  1058. List<QuestionOptionDTO >? questionOptionList;
  1059. List<QuestionFileDTO >? fileList;
  1060. List<String >? caseLabelCodes;
  1061. List<String >? courseLabelCodes;
  1062. bool trueOrFalse;
  1063. CreateExaminationQuestionRequest({
  1064. this.stem,
  1065. this.questionType = QuestionTypeEnum.Judge,
  1066. this.questionOptionList,
  1067. this.fileList,
  1068. this.caseLabelCodes,
  1069. this.courseLabelCodes,
  1070. this.trueOrFalse = false,
  1071. String? token,
  1072. }) : super(
  1073. token: token,
  1074. );
  1075. factory CreateExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1076. return CreateExaminationQuestionRequest(
  1077. stem: map['Stem'],
  1078. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  1079. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1080. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1081. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  1082. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  1083. trueOrFalse: map['TrueOrFalse'],
  1084. token: map['Token'],
  1085. );
  1086. }
  1087. Map<String, dynamic> toJson() {
  1088. final map = super.toJson();
  1089. if(stem != null)
  1090. map['Stem'] = stem;
  1091. map['QuestionType'] = questionType.index;
  1092. if(questionOptionList != null)
  1093. map['QuestionOptionList'] = questionOptionList;
  1094. if(fileList != null)
  1095. map['FileList'] = fileList;
  1096. if(caseLabelCodes != null)
  1097. map['CaseLabelCodes'] = caseLabelCodes;
  1098. if(courseLabelCodes != null)
  1099. map['CourseLabelCodes'] = courseLabelCodes;
  1100. map['TrueOrFalse'] = trueOrFalse;
  1101. return map;
  1102. }
  1103. }
  1104. class GetExaminationQuestionRequest extends TokenRequest{
  1105. String? code;
  1106. GetExaminationQuestionRequest({
  1107. this.code,
  1108. String? token,
  1109. }) : super(
  1110. token: token,
  1111. );
  1112. factory GetExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1113. return GetExaminationQuestionRequest(
  1114. code: map['Code'],
  1115. token: map['Token'],
  1116. );
  1117. }
  1118. Map<String, dynamic> toJson() {
  1119. final map = super.toJson();
  1120. if(code != null)
  1121. map['Code'] = code;
  1122. return map;
  1123. }
  1124. }
  1125. class UpdateExaminationQuestionRequest extends TokenRequest{
  1126. String? code;
  1127. String? stem;
  1128. QuestionTypeEnum questionType;
  1129. List<QuestionOptionDTO >? questionOptionList;
  1130. List<QuestionFileDTO >? fileList;
  1131. List<String >? caseLabelCodes;
  1132. List<String >? courseLabelCodes;
  1133. bool trueOrFalse;
  1134. UpdateExaminationQuestionRequest({
  1135. this.code,
  1136. this.stem,
  1137. this.questionType = QuestionTypeEnum.Judge,
  1138. this.questionOptionList,
  1139. this.fileList,
  1140. this.caseLabelCodes,
  1141. this.courseLabelCodes,
  1142. this.trueOrFalse = false,
  1143. String? token,
  1144. }) : super(
  1145. token: token,
  1146. );
  1147. factory UpdateExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1148. return UpdateExaminationQuestionRequest(
  1149. code: map['Code'],
  1150. stem: map['Stem'],
  1151. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  1152. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1153. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1154. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  1155. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  1156. trueOrFalse: map['TrueOrFalse'],
  1157. token: map['Token'],
  1158. );
  1159. }
  1160. Map<String, dynamic> toJson() {
  1161. final map = super.toJson();
  1162. if(code != null)
  1163. map['Code'] = code;
  1164. if(stem != null)
  1165. map['Stem'] = stem;
  1166. map['QuestionType'] = questionType.index;
  1167. if(questionOptionList != null)
  1168. map['QuestionOptionList'] = questionOptionList;
  1169. if(fileList != null)
  1170. map['FileList'] = fileList;
  1171. if(caseLabelCodes != null)
  1172. map['CaseLabelCodes'] = caseLabelCodes;
  1173. if(courseLabelCodes != null)
  1174. map['CourseLabelCodes'] = courseLabelCodes;
  1175. map['TrueOrFalse'] = trueOrFalse;
  1176. return map;
  1177. }
  1178. }
  1179. class DeleteExaminationQuestionRequest extends TokenRequest{
  1180. String? code;
  1181. DeleteExaminationQuestionRequest({
  1182. this.code,
  1183. String? token,
  1184. }) : super(
  1185. token: token,
  1186. );
  1187. factory DeleteExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1188. return DeleteExaminationQuestionRequest(
  1189. code: map['Code'],
  1190. token: map['Token'],
  1191. );
  1192. }
  1193. Map<String, dynamic> toJson() {
  1194. final map = super.toJson();
  1195. if(code != null)
  1196. map['Code'] = code;
  1197. return map;
  1198. }
  1199. }
  1200. class GetExaminationPaperPagesRequest extends PageRequest{
  1201. String? keyword;
  1202. List<String >? caseLabelCodes;
  1203. List<String >? courseLabelCodes;
  1204. GetExaminationPaperPagesRequest({
  1205. this.keyword,
  1206. this.caseLabelCodes,
  1207. this.courseLabelCodes,
  1208. int pageIndex = 0,
  1209. int pageSize = 0,
  1210. String? token,
  1211. }) : super(
  1212. pageIndex: pageIndex,
  1213. pageSize: pageSize,
  1214. token: token,
  1215. );
  1216. factory GetExaminationPaperPagesRequest.fromJson(Map<String, dynamic> map) {
  1217. return GetExaminationPaperPagesRequest(
  1218. keyword: map['Keyword'],
  1219. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  1220. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  1221. pageIndex: map['PageIndex'],
  1222. pageSize: map['PageSize'],
  1223. token: map['Token'],
  1224. );
  1225. }
  1226. Map<String, dynamic> toJson() {
  1227. final map = super.toJson();
  1228. if(keyword != null)
  1229. map['Keyword'] = keyword;
  1230. if(caseLabelCodes != null)
  1231. map['CaseLabelCodes'] = caseLabelCodes;
  1232. if(courseLabelCodes != null)
  1233. map['CourseLabelCodes'] = courseLabelCodes;
  1234. return map;
  1235. }
  1236. }
  1237. class GetExaminationPaperRequest extends TokenRequest{
  1238. String? examinationPaperCode;
  1239. GetExaminationPaperRequest({
  1240. this.examinationPaperCode,
  1241. String? token,
  1242. }) : super(
  1243. token: token,
  1244. );
  1245. factory GetExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  1246. return GetExaminationPaperRequest(
  1247. examinationPaperCode: map['ExaminationPaperCode'],
  1248. token: map['Token'],
  1249. );
  1250. }
  1251. Map<String, dynamic> toJson() {
  1252. final map = super.toJson();
  1253. if(examinationPaperCode != null)
  1254. map['ExaminationPaperCode'] = examinationPaperCode;
  1255. return map;
  1256. }
  1257. }
  1258. class QueryUserGroupPageRequest extends PageRequest{
  1259. String? keyword;
  1260. QueryUserGroupPageRequest({
  1261. this.keyword,
  1262. int pageIndex = 0,
  1263. int pageSize = 0,
  1264. String? token,
  1265. }) : super(
  1266. pageIndex: pageIndex,
  1267. pageSize: pageSize,
  1268. token: token,
  1269. );
  1270. factory QueryUserGroupPageRequest.fromJson(Map<String, dynamic> map) {
  1271. return QueryUserGroupPageRequest(
  1272. keyword: map['Keyword'],
  1273. pageIndex: map['PageIndex'],
  1274. pageSize: map['PageSize'],
  1275. token: map['Token'],
  1276. );
  1277. }
  1278. Map<String, dynamic> toJson() {
  1279. final map = super.toJson();
  1280. if(keyword != null)
  1281. map['Keyword'] = keyword;
  1282. return map;
  1283. }
  1284. }
  1285. class UpdateExaminationPaperRequest extends TokenRequest{
  1286. String? examinationPaperCode;
  1287. String? name;
  1288. double totalScore;
  1289. List<QuestionDetailDTO >? questionList;
  1290. List<String >? caseLabelCodes;
  1291. List<String >? courseLabelCodes;
  1292. UpdateExaminationPaperRequest({
  1293. this.examinationPaperCode,
  1294. this.name,
  1295. this.totalScore = 0,
  1296. this.questionList,
  1297. this.caseLabelCodes,
  1298. this.courseLabelCodes,
  1299. String? token,
  1300. }) : super(
  1301. token: token,
  1302. );
  1303. factory UpdateExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  1304. return UpdateExaminationPaperRequest(
  1305. examinationPaperCode: map['ExaminationPaperCode'],
  1306. name: map['Name'],
  1307. totalScore: double.parse(map['TotalScore'].toString()),
  1308. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>QuestionDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1309. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  1310. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  1311. token: map['Token'],
  1312. );
  1313. }
  1314. Map<String, dynamic> toJson() {
  1315. final map = super.toJson();
  1316. if(examinationPaperCode != null)
  1317. map['ExaminationPaperCode'] = examinationPaperCode;
  1318. if(name != null)
  1319. map['Name'] = name;
  1320. map['TotalScore'] = totalScore;
  1321. if(questionList != null)
  1322. map['QuestionList'] = questionList;
  1323. if(caseLabelCodes != null)
  1324. map['CaseLabelCodes'] = caseLabelCodes;
  1325. if(courseLabelCodes != null)
  1326. map['CourseLabelCodes'] = courseLabelCodes;
  1327. return map;
  1328. }
  1329. }
  1330. class QueryCourseLabelPageRequest extends PageRequest{
  1331. String? name;
  1332. String? languageCode;
  1333. LabelTypeEnum type;
  1334. String? parentCode;
  1335. QueryCourseLabelPageRequest({
  1336. this.name,
  1337. this.languageCode,
  1338. this.type = LabelTypeEnum.Unknown,
  1339. this.parentCode,
  1340. int pageIndex = 0,
  1341. int pageSize = 0,
  1342. String? token,
  1343. }) : super(
  1344. pageIndex: pageIndex,
  1345. pageSize: pageSize,
  1346. token: token,
  1347. );
  1348. factory QueryCourseLabelPageRequest.fromJson(Map<String, dynamic> map) {
  1349. return QueryCourseLabelPageRequest(
  1350. name: map['Name'],
  1351. languageCode: map['LanguageCode'],
  1352. type: LabelTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  1353. parentCode: map['ParentCode'],
  1354. pageIndex: map['PageIndex'],
  1355. pageSize: map['PageSize'],
  1356. token: map['Token'],
  1357. );
  1358. }
  1359. Map<String, dynamic> toJson() {
  1360. final map = super.toJson();
  1361. if(name != null)
  1362. map['Name'] = name;
  1363. if(languageCode != null)
  1364. map['LanguageCode'] = languageCode;
  1365. map['Type'] = type.index;
  1366. if(parentCode != null)
  1367. map['ParentCode'] = parentCode;
  1368. return map;
  1369. }
  1370. }
  1371. class AlterDeviceRequest extends TokenRequest{
  1372. String? deviceCode;
  1373. String? serialNumber;
  1374. String? name;
  1375. String? description;
  1376. String? headPicUrl;
  1377. String? organizationCode;
  1378. String? departmentCode;
  1379. bool isAutoShared;
  1380. AlterDeviceRequest({
  1381. this.deviceCode,
  1382. this.serialNumber,
  1383. this.name,
  1384. this.description,
  1385. this.headPicUrl,
  1386. this.organizationCode,
  1387. this.departmentCode,
  1388. this.isAutoShared = false,
  1389. String? token,
  1390. }) : super(
  1391. token: token,
  1392. );
  1393. factory AlterDeviceRequest.fromJson(Map<String, dynamic> map) {
  1394. return AlterDeviceRequest(
  1395. deviceCode: map['DeviceCode'],
  1396. serialNumber: map['SerialNumber'],
  1397. name: map['Name'],
  1398. description: map['Description'],
  1399. headPicUrl: map['HeadPicUrl'],
  1400. organizationCode: map['OrganizationCode'],
  1401. departmentCode: map['DepartmentCode'],
  1402. isAutoShared: map['IsAutoShared'],
  1403. token: map['Token'],
  1404. );
  1405. }
  1406. Map<String, dynamic> toJson() {
  1407. final map = super.toJson();
  1408. if(deviceCode != null)
  1409. map['DeviceCode'] = deviceCode;
  1410. if(serialNumber != null)
  1411. map['SerialNumber'] = serialNumber;
  1412. if(name != null)
  1413. map['Name'] = name;
  1414. if(description != null)
  1415. map['Description'] = description;
  1416. if(headPicUrl != null)
  1417. map['HeadPicUrl'] = headPicUrl;
  1418. if(organizationCode != null)
  1419. map['OrganizationCode'] = organizationCode;
  1420. if(departmentCode != null)
  1421. map['DepartmentCode'] = departmentCode;
  1422. map['IsAutoShared'] = isAutoShared;
  1423. return map;
  1424. }
  1425. }
  1426. class CleanDeviceCacheRequest {
  1427. String? deviceCode;
  1428. CleanDeviceCacheRequest({
  1429. this.deviceCode,
  1430. });
  1431. factory CleanDeviceCacheRequest.fromJson(Map<String, dynamic> map) {
  1432. return CleanDeviceCacheRequest(
  1433. deviceCode: map['DeviceCode'],
  1434. );
  1435. }
  1436. Map<String, dynamic> toJson() {
  1437. final map = Map<String, dynamic>();
  1438. if(deviceCode != null)
  1439. map['DeviceCode'] = deviceCode;
  1440. return map;
  1441. }
  1442. }
  1443. class DeviceDiagnosisChangedNotification extends TokenRequest{
  1444. String? diagnosisModule;
  1445. String? organizationCode;
  1446. String? deviceCode;
  1447. DeviceDiagnosisChangedNotification({
  1448. this.diagnosisModule,
  1449. this.organizationCode,
  1450. this.deviceCode,
  1451. String? token,
  1452. }) : super(
  1453. token: token,
  1454. );
  1455. factory DeviceDiagnosisChangedNotification.fromJson(Map<String, dynamic> map) {
  1456. return DeviceDiagnosisChangedNotification(
  1457. diagnosisModule: map['DiagnosisModule'],
  1458. organizationCode: map['OrganizationCode'],
  1459. deviceCode: map['DeviceCode'],
  1460. token: map['Token'],
  1461. );
  1462. }
  1463. Map<String, dynamic> toJson() {
  1464. final map = super.toJson();
  1465. if(diagnosisModule != null)
  1466. map['DiagnosisModule'] = diagnosisModule;
  1467. if(organizationCode != null)
  1468. map['OrganizationCode'] = organizationCode;
  1469. if(deviceCode != null)
  1470. map['DeviceCode'] = deviceCode;
  1471. return map;
  1472. }
  1473. }
  1474. class DeviceLeaveLiveConsultationRequest extends TokenRequest{
  1475. String? consultationCode;
  1476. DeviceLeaveLiveConsultationRequest({
  1477. this.consultationCode,
  1478. String? token,
  1479. }) : super(
  1480. token: token,
  1481. );
  1482. factory DeviceLeaveLiveConsultationRequest.fromJson(Map<String, dynamic> map) {
  1483. return DeviceLeaveLiveConsultationRequest(
  1484. consultationCode: map['ConsultationCode'],
  1485. token: map['Token'],
  1486. );
  1487. }
  1488. Map<String, dynamic> toJson() {
  1489. final map = super.toJson();
  1490. if(consultationCode != null)
  1491. map['ConsultationCode'] = consultationCode;
  1492. return map;
  1493. }
  1494. }
  1495. class DeviceLeaveLiveConsultationResult {
  1496. bool success;
  1497. DeviceLeaveLiveConsultationResult({
  1498. this.success = false,
  1499. });
  1500. factory DeviceLeaveLiveConsultationResult.fromJson(Map<String, dynamic> map) {
  1501. return DeviceLeaveLiveConsultationResult(
  1502. success: map['Success'],
  1503. );
  1504. }
  1505. Map<String, dynamic> toJson() {
  1506. final map = Map<String, dynamic>();
  1507. map['Success'] = success;
  1508. return map;
  1509. }
  1510. }
  1511. class FindDeviceDiagnosisRequest extends TokenRequest{
  1512. String? deviceCode;
  1513. FindDeviceDiagnosisRequest({
  1514. this.deviceCode,
  1515. String? token,
  1516. }) : super(
  1517. token: token,
  1518. );
  1519. factory FindDeviceDiagnosisRequest.fromJson(Map<String, dynamic> map) {
  1520. return FindDeviceDiagnosisRequest(
  1521. deviceCode: map['DeviceCode'],
  1522. token: map['Token'],
  1523. );
  1524. }
  1525. Map<String, dynamic> toJson() {
  1526. final map = super.toJson();
  1527. if(deviceCode != null)
  1528. map['DeviceCode'] = deviceCode;
  1529. return map;
  1530. }
  1531. }
  1532. class GetDevicePrinterRequest extends TokenRequest{
  1533. String? deviceCode;
  1534. DevicePrinterEnum getPrinterEnum;
  1535. GetDevicePrinterRequest({
  1536. this.deviceCode,
  1537. this.getPrinterEnum = DevicePrinterEnum.GetInstalledPrinters,
  1538. String? token,
  1539. }) : super(
  1540. token: token,
  1541. );
  1542. factory GetDevicePrinterRequest.fromJson(Map<String, dynamic> map) {
  1543. return GetDevicePrinterRequest(
  1544. deviceCode: map['DeviceCode'],
  1545. getPrinterEnum: DevicePrinterEnum.values.firstWhere((e) => e.index == map['GetPrinterEnum']),
  1546. token: map['Token'],
  1547. );
  1548. }
  1549. Map<String, dynamic> toJson() {
  1550. final map = super.toJson();
  1551. if(deviceCode != null)
  1552. map['DeviceCode'] = deviceCode;
  1553. map['GetPrinterEnum'] = getPrinterEnum.index;
  1554. return map;
  1555. }
  1556. }
  1557. class UserRemoteConnectRequest {
  1558. TransactionTypeEnum transactionType;
  1559. ConnectStatusEnum statusEnum;
  1560. String? userToken;
  1561. String? deviceToken;
  1562. String? userCode;
  1563. String? roomId;
  1564. String? deviceCode;
  1565. LoginSource loginSource;
  1566. bool isNeedSyn;
  1567. UserRemoteConnectRequest({
  1568. this.transactionType = TransactionTypeEnum.Consultion,
  1569. this.statusEnum = ConnectStatusEnum.UnConnect,
  1570. this.userToken,
  1571. this.deviceToken,
  1572. this.userCode,
  1573. this.roomId,
  1574. this.deviceCode,
  1575. this.loginSource = LoginSource.PC,
  1576. this.isNeedSyn = false,
  1577. });
  1578. factory UserRemoteConnectRequest.fromJson(Map<String, dynamic> map) {
  1579. return UserRemoteConnectRequest(
  1580. transactionType: TransactionTypeEnum.values.firstWhere((e) => e.index == map['TransactionType']),
  1581. statusEnum: ConnectStatusEnum.values.firstWhere((e) => e.index == map['StatusEnum']),
  1582. userToken: map['UserToken'],
  1583. deviceToken: map['DeviceToken'],
  1584. userCode: map['UserCode'],
  1585. roomId: map['RoomId'],
  1586. deviceCode: map['DeviceCode'],
  1587. loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
  1588. isNeedSyn: map['IsNeedSyn'],
  1589. );
  1590. }
  1591. Map<String, dynamic> toJson() {
  1592. final map = Map<String, dynamic>();
  1593. map['TransactionType'] = transactionType.index;
  1594. map['StatusEnum'] = statusEnum.index;
  1595. if(userToken != null)
  1596. map['UserToken'] = userToken;
  1597. if(deviceToken != null)
  1598. map['DeviceToken'] = deviceToken;
  1599. if(userCode != null)
  1600. map['UserCode'] = userCode;
  1601. if(roomId != null)
  1602. map['RoomId'] = roomId;
  1603. if(deviceCode != null)
  1604. map['DeviceCode'] = deviceCode;
  1605. map['LoginSource'] = loginSource.index;
  1606. map['IsNeedSyn'] = isNeedSyn;
  1607. return map;
  1608. }
  1609. }
  1610. class RemoteConnectDataRequest {
  1611. String? roomCode;
  1612. UserRemoteConnectRequest? userRemoteConnect;
  1613. RemoteConnectDataRequest({
  1614. this.roomCode,
  1615. this.userRemoteConnect,
  1616. });
  1617. factory RemoteConnectDataRequest.fromJson(Map<String, dynamic> map) {
  1618. return RemoteConnectDataRequest(
  1619. roomCode: map['RoomCode'],
  1620. userRemoteConnect: map['UserRemoteConnect'] != null ? UserRemoteConnectRequest.fromJson(map['UserRemoteConnect']) : null,
  1621. );
  1622. }
  1623. Map<String, dynamic> toJson() {
  1624. final map = Map<String, dynamic>();
  1625. if(roomCode != null)
  1626. map['RoomCode'] = roomCode;
  1627. if(userRemoteConnect != null)
  1628. map['UserRemoteConnect'] = userRemoteConnect;
  1629. return map;
  1630. }
  1631. }
  1632. class ReportLiveStateResult {
  1633. ReportLiveStateResult();
  1634. factory ReportLiveStateResult.fromJson(Map<String, dynamic> map) {
  1635. return ReportLiveStateResult(
  1636. );
  1637. }
  1638. Map<String, dynamic> toJson() {
  1639. final map = Map<String, dynamic>();
  1640. return map;
  1641. }
  1642. }
  1643. class RemoteControlRequest extends TokenRequest{
  1644. String? controlUserCode;
  1645. RemoteControlRequest({
  1646. this.controlUserCode,
  1647. String? token,
  1648. }) : super(
  1649. token: token,
  1650. );
  1651. factory RemoteControlRequest.fromJson(Map<String, dynamic> map) {
  1652. return RemoteControlRequest(
  1653. controlUserCode: map['ControlUserCode'],
  1654. token: map['Token'],
  1655. );
  1656. }
  1657. Map<String, dynamic> toJson() {
  1658. final map = super.toJson();
  1659. if(controlUserCode != null)
  1660. map['ControlUserCode'] = controlUserCode;
  1661. return map;
  1662. }
  1663. }
  1664. class TransportAfterSalesCommonRequest {
  1665. String? reqJson;
  1666. String? receiverId;
  1667. NotificationTypeEnum notificationType;
  1668. TransportAfterSalesCommonRequest({
  1669. this.reqJson,
  1670. this.receiverId,
  1671. this.notificationType = NotificationTypeEnum.Unknown,
  1672. });
  1673. factory TransportAfterSalesCommonRequest.fromJson(Map<String, dynamic> map) {
  1674. return TransportAfterSalesCommonRequest(
  1675. reqJson: map['ReqJson'],
  1676. receiverId: map['ReceiverId'],
  1677. notificationType: NotificationTypeEnum.values.firstWhere((e) => e.index == map['NotificationType']),
  1678. );
  1679. }
  1680. Map<String, dynamic> toJson() {
  1681. final map = Map<String, dynamic>();
  1682. if(reqJson != null)
  1683. map['ReqJson'] = reqJson;
  1684. if(receiverId != null)
  1685. map['ReceiverId'] = receiverId;
  1686. map['NotificationType'] = notificationType.index;
  1687. return map;
  1688. }
  1689. }
  1690. class ConfirmAssociatedWithAccountRequest extends TokenRequest{
  1691. String? emailAddress;
  1692. String? verifyCode;
  1693. ConfirmAssociatedWithAccountRequest({
  1694. this.emailAddress,
  1695. this.verifyCode,
  1696. String? token,
  1697. }) : super(
  1698. token: token,
  1699. );
  1700. factory ConfirmAssociatedWithAccountRequest.fromJson(Map<String, dynamic> map) {
  1701. return ConfirmAssociatedWithAccountRequest(
  1702. emailAddress: map['EmailAddress'],
  1703. verifyCode: map['VerifyCode'],
  1704. token: map['Token'],
  1705. );
  1706. }
  1707. Map<String, dynamic> toJson() {
  1708. final map = super.toJson();
  1709. if(emailAddress != null)
  1710. map['EmailAddress'] = emailAddress;
  1711. if(verifyCode != null)
  1712. map['VerifyCode'] = verifyCode;
  1713. return map;
  1714. }
  1715. }
  1716. class DeleteThesaurusCodeRequest extends TokenRequest{
  1717. String? thesaurusCode;
  1718. DeleteThesaurusCodeRequest({
  1719. this.thesaurusCode,
  1720. String? token,
  1721. }) : super(
  1722. token: token,
  1723. );
  1724. factory DeleteThesaurusCodeRequest.fromJson(Map<String, dynamic> map) {
  1725. return DeleteThesaurusCodeRequest(
  1726. thesaurusCode: map['ThesaurusCode'],
  1727. token: map['Token'],
  1728. );
  1729. }
  1730. Map<String, dynamic> toJson() {
  1731. final map = super.toJson();
  1732. if(thesaurusCode != null)
  1733. map['ThesaurusCode'] = thesaurusCode;
  1734. return map;
  1735. }
  1736. }
  1737. class SignUpRequest extends UserDTO{
  1738. SignUpRequest({
  1739. String? phone,
  1740. String? email,
  1741. String? nickName,
  1742. String? fullName,
  1743. String? organizationCode,
  1744. String? organizationName,
  1745. String? rootOrganizationCode,
  1746. String? rootOrganizationName,
  1747. List<String >? authorityGroups,
  1748. List<String >? bindDevices,
  1749. String? lastIP,
  1750. int logintimes = 0,
  1751. UserInfoStateEnum userState = UserInfoStateEnum.Nonactivated,
  1752. List<String >? roleCodes,
  1753. List<String >? rankCodes,
  1754. List<String >? positionCodes,
  1755. ApplyStateEnum applyState = ApplyStateEnum.NotApply,
  1756. String? rankName,
  1757. String? positionName,
  1758. bool isDirector = false,
  1759. List<String >? fieldList,
  1760. List<String >? deletePatientCodes,
  1761. bool isBatchExportDiagnoseData = false,
  1762. String? bindAssistantUserCode,
  1763. String? bindAssistantDoctorUserCode,
  1764. LoginLockInfoDTO? loginLockInfo,
  1765. String? signature,
  1766. String? language,
  1767. bool enableReportLabel = false,
  1768. List<AssociatedInfoDTO >? associatedInfos,
  1769. String? commonPlatformUserId,
  1770. String? bindEmergencyDeviceCode,
  1771. String? bindEmergencyExpertCode,
  1772. String? userCode,
  1773. String? userName,
  1774. String? headImageUrl,
  1775. DateTime? createTime,
  1776. DateTime? updateTime,
  1777. }) : super(
  1778. phone: phone,
  1779. email: email,
  1780. nickName: nickName,
  1781. fullName: fullName,
  1782. organizationCode: organizationCode,
  1783. organizationName: organizationName,
  1784. rootOrganizationCode: rootOrganizationCode,
  1785. rootOrganizationName: rootOrganizationName,
  1786. authorityGroups: authorityGroups,
  1787. bindDevices: bindDevices,
  1788. lastIP: lastIP,
  1789. logintimes: logintimes,
  1790. userState: userState,
  1791. roleCodes: roleCodes,
  1792. rankCodes: rankCodes,
  1793. positionCodes: positionCodes,
  1794. applyState: applyState,
  1795. rankName: rankName,
  1796. positionName: positionName,
  1797. isDirector: isDirector,
  1798. fieldList: fieldList,
  1799. deletePatientCodes: deletePatientCodes,
  1800. isBatchExportDiagnoseData: isBatchExportDiagnoseData,
  1801. bindAssistantUserCode: bindAssistantUserCode,
  1802. bindAssistantDoctorUserCode: bindAssistantDoctorUserCode,
  1803. loginLockInfo: loginLockInfo,
  1804. signature: signature,
  1805. language: language,
  1806. enableReportLabel: enableReportLabel,
  1807. associatedInfos: associatedInfos,
  1808. commonPlatformUserId: commonPlatformUserId,
  1809. bindEmergencyDeviceCode: bindEmergencyDeviceCode,
  1810. bindEmergencyExpertCode: bindEmergencyExpertCode,
  1811. userCode: userCode,
  1812. userName: userName,
  1813. headImageUrl: headImageUrl,
  1814. createTime: createTime,
  1815. updateTime: updateTime,
  1816. );
  1817. factory SignUpRequest.fromJson(Map<String, dynamic> map) {
  1818. return SignUpRequest(
  1819. phone: map['Phone'],
  1820. email: map['Email'],
  1821. nickName: map['NickName'],
  1822. fullName: map['FullName'],
  1823. organizationCode: map['OrganizationCode'],
  1824. organizationName: map['OrganizationName'],
  1825. rootOrganizationCode: map['RootOrganizationCode'],
  1826. rootOrganizationName: map['RootOrganizationName'],
  1827. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  1828. bindDevices: map['BindDevices'] != null ? map['BindDevices'].cast<String>().toList() : null,
  1829. lastIP: map['LastIP'],
  1830. logintimes: map['Logintimes'],
  1831. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  1832. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  1833. rankCodes: map['RankCodes'] != null ? map['RankCodes'].cast<String>().toList() : null,
  1834. positionCodes: map['PositionCodes'] != null ? map['PositionCodes'].cast<String>().toList() : null,
  1835. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  1836. rankName: map['RankName'],
  1837. positionName: map['PositionName'],
  1838. isDirector: map['IsDirector'],
  1839. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  1840. deletePatientCodes: map['DeletePatientCodes'] != null ? map['DeletePatientCodes'].cast<String>().toList() : null,
  1841. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  1842. bindAssistantUserCode: map['BindAssistantUserCode'],
  1843. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  1844. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  1845. signature: map['Signature'],
  1846. language: map['Language'],
  1847. enableReportLabel: map['EnableReportLabel'],
  1848. associatedInfos: map['AssociatedInfos'] != null ? (map['AssociatedInfos'] as List).map((e)=>AssociatedInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1849. commonPlatformUserId: map['CommonPlatformUserId'],
  1850. bindEmergencyDeviceCode: map['BindEmergencyDeviceCode'],
  1851. bindEmergencyExpertCode: map['BindEmergencyExpertCode'],
  1852. userCode: map['UserCode'],
  1853. userName: map['UserName'],
  1854. headImageUrl: map['HeadImageUrl'],
  1855. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  1856. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  1857. );
  1858. }
  1859. Map<String, dynamic> toJson() {
  1860. final map = super.toJson();
  1861. return map;
  1862. }
  1863. }
  1864. class UpdateThesaurusCodeRequest extends TokenRequest{
  1865. String? thesaurusCode;
  1866. UpdateThesaurusCodeRequest({
  1867. this.thesaurusCode,
  1868. String? token,
  1869. }) : super(
  1870. token: token,
  1871. );
  1872. factory UpdateThesaurusCodeRequest.fromJson(Map<String, dynamic> map) {
  1873. return UpdateThesaurusCodeRequest(
  1874. thesaurusCode: map['ThesaurusCode'],
  1875. token: map['Token'],
  1876. );
  1877. }
  1878. Map<String, dynamic> toJson() {
  1879. final map = super.toJson();
  1880. if(thesaurusCode != null)
  1881. map['ThesaurusCode'] = thesaurusCode;
  1882. return map;
  1883. }
  1884. }
  1885. enum AnnouncementStatusEnum {
  1886. placeHolder_0,
  1887. Released,
  1888. Pending,
  1889. }
  1890. class AnnouncementInfoDTO extends BaseDTO{
  1891. String? code;
  1892. AnnouncementTypeEnum announcementType;
  1893. AnnouncementStatusEnum announcementStatus;
  1894. List<AnnouncementLanguageConfigDTO >? languageConfigs;
  1895. AnnouncementInfoDTO({
  1896. this.code,
  1897. this.announcementType = AnnouncementTypeEnum.Broadcast,
  1898. this.announcementStatus = AnnouncementStatusEnum.Released,
  1899. this.languageConfigs,
  1900. DateTime? createTime,
  1901. DateTime? updateTime,
  1902. }) : super(
  1903. createTime: createTime,
  1904. updateTime: updateTime,
  1905. );
  1906. factory AnnouncementInfoDTO.fromJson(Map<String, dynamic> map) {
  1907. return AnnouncementInfoDTO(
  1908. code: map['Code'],
  1909. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  1910. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  1911. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>AnnouncementLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1912. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  1913. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  1914. );
  1915. }
  1916. Map<String, dynamic> toJson() {
  1917. final map = super.toJson();
  1918. if(code != null)
  1919. map['Code'] = code;
  1920. map['AnnouncementType'] = announcementType.index;
  1921. map['AnnouncementStatus'] = announcementStatus.index;
  1922. if(languageConfigs != null)
  1923. map['LanguageConfigs'] = languageConfigs;
  1924. return map;
  1925. }
  1926. }
  1927. class AddAnnouncementRequest extends AnnouncementInfoDTO{
  1928. AddAnnouncementRequest({
  1929. String? code,
  1930. AnnouncementTypeEnum announcementType = AnnouncementTypeEnum.Broadcast,
  1931. AnnouncementStatusEnum announcementStatus = AnnouncementStatusEnum.Released,
  1932. List<AnnouncementLanguageConfigDTO >? languageConfigs,
  1933. DateTime? createTime,
  1934. DateTime? updateTime,
  1935. }) : super(
  1936. code: code,
  1937. announcementType: announcementType,
  1938. announcementStatus: announcementStatus,
  1939. languageConfigs: languageConfigs,
  1940. createTime: createTime,
  1941. updateTime: updateTime,
  1942. );
  1943. factory AddAnnouncementRequest.fromJson(Map<String, dynamic> map) {
  1944. return AddAnnouncementRequest(
  1945. code: map['Code'],
  1946. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  1947. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  1948. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>AnnouncementLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1949. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  1950. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  1951. );
  1952. }
  1953. Map<String, dynamic> toJson() {
  1954. final map = super.toJson();
  1955. return map;
  1956. }
  1957. }
  1958. class UpdateAnnouncementRequest extends AnnouncementInfoDTO{
  1959. UpdateAnnouncementRequest({
  1960. String? code,
  1961. AnnouncementTypeEnum announcementType = AnnouncementTypeEnum.Broadcast,
  1962. AnnouncementStatusEnum announcementStatus = AnnouncementStatusEnum.Released,
  1963. List<AnnouncementLanguageConfigDTO >? languageConfigs,
  1964. DateTime? createTime,
  1965. DateTime? updateTime,
  1966. }) : super(
  1967. code: code,
  1968. announcementType: announcementType,
  1969. announcementStatus: announcementStatus,
  1970. languageConfigs: languageConfigs,
  1971. createTime: createTime,
  1972. updateTime: updateTime,
  1973. );
  1974. factory UpdateAnnouncementRequest.fromJson(Map<String, dynamic> map) {
  1975. return UpdateAnnouncementRequest(
  1976. code: map['Code'],
  1977. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  1978. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  1979. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>AnnouncementLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1980. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  1981. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  1982. );
  1983. }
  1984. Map<String, dynamic> toJson() {
  1985. final map = super.toJson();
  1986. return map;
  1987. }
  1988. }
  1989. class AddContentConfigRequest extends TokenRequest{
  1990. String? bindTypeKey;
  1991. String? bindTypeValue;
  1992. String? bindContentKey;
  1993. String? bindContentValue;
  1994. AddContentConfigRequest({
  1995. this.bindTypeKey,
  1996. this.bindTypeValue,
  1997. this.bindContentKey,
  1998. this.bindContentValue,
  1999. String? token,
  2000. }) : super(
  2001. token: token,
  2002. );
  2003. factory AddContentConfigRequest.fromJson(Map<String, dynamic> map) {
  2004. return AddContentConfigRequest(
  2005. bindTypeKey: map['BindTypeKey'],
  2006. bindTypeValue: map['BindTypeValue'],
  2007. bindContentKey: map['BindContentKey'],
  2008. bindContentValue: map['BindContentValue'],
  2009. token: map['Token'],
  2010. );
  2011. }
  2012. Map<String, dynamic> toJson() {
  2013. final map = super.toJson();
  2014. if(bindTypeKey != null)
  2015. map['BindTypeKey'] = bindTypeKey;
  2016. if(bindTypeValue != null)
  2017. map['BindTypeValue'] = bindTypeValue;
  2018. if(bindContentKey != null)
  2019. map['BindContentKey'] = bindContentKey;
  2020. if(bindContentValue != null)
  2021. map['BindContentValue'] = bindContentValue;
  2022. return map;
  2023. }
  2024. }
  2025. enum DeviceVideoOutputTypeEnum {
  2026. MergedVideo,
  2027. Desktop,
  2028. Camera,
  2029. }
  2030. class AddDeviceOutputConfigRequest extends TokenRequest{
  2031. DeviceVideoOutputTypeEnum deviceVideoOutputType;
  2032. int videoWidth;
  2033. int videoHeight;
  2034. AddDeviceOutputConfigRequest({
  2035. this.deviceVideoOutputType = DeviceVideoOutputTypeEnum.MergedVideo,
  2036. this.videoWidth = 0,
  2037. this.videoHeight = 0,
  2038. String? token,
  2039. }) : super(
  2040. token: token,
  2041. );
  2042. factory AddDeviceOutputConfigRequest.fromJson(Map<String, dynamic> map) {
  2043. return AddDeviceOutputConfigRequest(
  2044. deviceVideoOutputType: DeviceVideoOutputTypeEnum.values.firstWhere((e) => e.index == map['DeviceVideoOutputType']),
  2045. videoWidth: map['VideoWidth'],
  2046. videoHeight: map['VideoHeight'],
  2047. token: map['Token'],
  2048. );
  2049. }
  2050. Map<String, dynamic> toJson() {
  2051. final map = super.toJson();
  2052. map['DeviceVideoOutputType'] = deviceVideoOutputType.index;
  2053. map['VideoWidth'] = videoWidth;
  2054. map['VideoHeight'] = videoHeight;
  2055. return map;
  2056. }
  2057. }
  2058. class AdminApplyCourseRequest extends TokenRequest{
  2059. String? name;
  2060. String? courseIntro;
  2061. String? teacherCode;
  2062. String? poster;
  2063. DateTime? startTime;
  2064. int duration;
  2065. CourseTypeEnum courseType;
  2066. CourseAudienceTypeEnum audienceType;
  2067. String? coursewareToken;
  2068. String? teacherName;
  2069. CourseViewRangeEnum viewRange;
  2070. List<String >? caseLabelCodes;
  2071. List<String >? courseLabelCodes;
  2072. List<String >? userGroupCodes;
  2073. Decimal? price;
  2074. List<String >? courseVideoCodes;
  2075. List<CourseExaminationDTO >? bindExams;
  2076. List<String >? assistants;
  2077. List<String >? experts;
  2078. bool isAgentCourse;
  2079. AdminApplyCourseRequest({
  2080. this.name,
  2081. this.courseIntro,
  2082. this.teacherCode,
  2083. this.poster,
  2084. this.startTime,
  2085. this.duration = 0,
  2086. this.courseType = CourseTypeEnum.Unknown,
  2087. this.audienceType = CourseAudienceTypeEnum.Unknown,
  2088. this.coursewareToken,
  2089. this.teacherName,
  2090. this.viewRange = CourseViewRangeEnum.All,
  2091. this.caseLabelCodes,
  2092. this.courseLabelCodes,
  2093. this.userGroupCodes,
  2094. this.price,
  2095. this.courseVideoCodes,
  2096. this.bindExams,
  2097. this.assistants,
  2098. this.experts,
  2099. this.isAgentCourse = false,
  2100. String? token,
  2101. }) : super(
  2102. token: token,
  2103. );
  2104. factory AdminApplyCourseRequest.fromJson(Map<String, dynamic> map) {
  2105. return AdminApplyCourseRequest(
  2106. name: map['Name'],
  2107. courseIntro: map['CourseIntro'],
  2108. teacherCode: map['TeacherCode'],
  2109. poster: map['Poster'],
  2110. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  2111. duration: map['Duration'],
  2112. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  2113. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  2114. coursewareToken: map['CoursewareToken'],
  2115. teacherName: map['TeacherName'],
  2116. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  2117. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  2118. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  2119. userGroupCodes: map['UserGroupCodes'] != null ? map['UserGroupCodes'].cast<String>().toList() : null,
  2120. price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
  2121. courseVideoCodes: map['CourseVideoCodes'] != null ? map['CourseVideoCodes'].cast<String>().toList() : null,
  2122. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2123. assistants: map['Assistants'] != null ? map['Assistants'].cast<String>().toList() : null,
  2124. experts: map['Experts'] != null ? map['Experts'].cast<String>().toList() : null,
  2125. isAgentCourse: map['IsAgentCourse'],
  2126. token: map['Token'],
  2127. );
  2128. }
  2129. Map<String, dynamic> toJson() {
  2130. final map = super.toJson();
  2131. if(name != null)
  2132. map['Name'] = name;
  2133. if(courseIntro != null)
  2134. map['CourseIntro'] = courseIntro;
  2135. if(teacherCode != null)
  2136. map['TeacherCode'] = teacherCode;
  2137. if(poster != null)
  2138. map['Poster'] = poster;
  2139. if(startTime != null)
  2140. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  2141. map['Duration'] = duration;
  2142. map['CourseType'] = courseType.index;
  2143. map['AudienceType'] = audienceType.index;
  2144. if(coursewareToken != null)
  2145. map['CoursewareToken'] = coursewareToken;
  2146. if(teacherName != null)
  2147. map['TeacherName'] = teacherName;
  2148. map['ViewRange'] = viewRange.index;
  2149. if(caseLabelCodes != null)
  2150. map['CaseLabelCodes'] = caseLabelCodes;
  2151. if(courseLabelCodes != null)
  2152. map['CourseLabelCodes'] = courseLabelCodes;
  2153. if(userGroupCodes != null)
  2154. map['UserGroupCodes'] = userGroupCodes;
  2155. if(price != null)
  2156. map['Price'] = price;
  2157. if(courseVideoCodes != null)
  2158. map['CourseVideoCodes'] = courseVideoCodes;
  2159. if(bindExams != null)
  2160. map['BindExams'] = bindExams;
  2161. if(assistants != null)
  2162. map['Assistants'] = assistants;
  2163. if(experts != null)
  2164. map['Experts'] = experts;
  2165. map['IsAgentCourse'] = isAgentCourse;
  2166. return map;
  2167. }
  2168. }
  2169. class AdminApprovalCourseRequest extends TokenRequest{
  2170. String? code;
  2171. CourseStatusEnum status;
  2172. AdminApprovalCourseRequest({
  2173. this.code,
  2174. this.status = CourseStatusEnum.Unknown,
  2175. String? token,
  2176. }) : super(
  2177. token: token,
  2178. );
  2179. factory AdminApprovalCourseRequest.fromJson(Map<String, dynamic> map) {
  2180. return AdminApprovalCourseRequest(
  2181. code: map['Code'],
  2182. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  2183. token: map['Token'],
  2184. );
  2185. }
  2186. Map<String, dynamic> toJson() {
  2187. final map = super.toJson();
  2188. if(code != null)
  2189. map['Code'] = code;
  2190. map['Status'] = status.index;
  2191. return map;
  2192. }
  2193. }
  2194. class AdminDeleteCourseByCodeRequest extends TokenRequest{
  2195. String? code;
  2196. AdminDeleteCourseByCodeRequest({
  2197. this.code,
  2198. String? token,
  2199. }) : super(
  2200. token: token,
  2201. );
  2202. factory AdminDeleteCourseByCodeRequest.fromJson(Map<String, dynamic> map) {
  2203. return AdminDeleteCourseByCodeRequest(
  2204. code: map['Code'],
  2205. token: map['Token'],
  2206. );
  2207. }
  2208. Map<String, dynamic> toJson() {
  2209. final map = super.toJson();
  2210. if(code != null)
  2211. map['Code'] = code;
  2212. return map;
  2213. }
  2214. }
  2215. class AdminFindCoursePagesRequest extends PageRequest{
  2216. String? keyword;
  2217. CourseStatusEnum status;
  2218. String? languageCode;
  2219. CourseTypeEnum courseType;
  2220. CourseAudienceTypeEnum audienceType;
  2221. AdminFindCoursePagesRequest({
  2222. this.keyword,
  2223. this.status = CourseStatusEnum.Unknown,
  2224. this.languageCode,
  2225. this.courseType = CourseTypeEnum.Unknown,
  2226. this.audienceType = CourseAudienceTypeEnum.Unknown,
  2227. int pageIndex = 0,
  2228. int pageSize = 0,
  2229. String? token,
  2230. }) : super(
  2231. pageIndex: pageIndex,
  2232. pageSize: pageSize,
  2233. token: token,
  2234. );
  2235. factory AdminFindCoursePagesRequest.fromJson(Map<String, dynamic> map) {
  2236. return AdminFindCoursePagesRequest(
  2237. keyword: map['Keyword'],
  2238. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  2239. languageCode: map['LanguageCode'],
  2240. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  2241. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  2242. pageIndex: map['PageIndex'],
  2243. pageSize: map['PageSize'],
  2244. token: map['Token'],
  2245. );
  2246. }
  2247. Map<String, dynamic> toJson() {
  2248. final map = super.toJson();
  2249. if(keyword != null)
  2250. map['Keyword'] = keyword;
  2251. map['Status'] = status.index;
  2252. if(languageCode != null)
  2253. map['LanguageCode'] = languageCode;
  2254. map['CourseType'] = courseType.index;
  2255. map['AudienceType'] = audienceType.index;
  2256. return map;
  2257. }
  2258. }
  2259. class AdminUpdateCourseRequest extends TokenRequest{
  2260. String? code;
  2261. String? name;
  2262. String? courseIntro;
  2263. String? teacherCode;
  2264. String? poster;
  2265. DateTime? startTime;
  2266. int duration;
  2267. CourseTypeEnum courseType;
  2268. CourseAudienceTypeEnum audienceType;
  2269. String? coursewareToken;
  2270. String? teacherName;
  2271. CourseViewRangeEnum viewRange;
  2272. List<String >? caseLabelCodes;
  2273. List<String >? courseLabelCodes;
  2274. List<String >? userGroupCodes;
  2275. Decimal? price;
  2276. List<String >? courseVideoCodes;
  2277. List<CourseExaminationDTO >? bindExams;
  2278. List<String >? assistants;
  2279. List<String >? experts;
  2280. bool isAgentCourse;
  2281. AdminUpdateCourseRequest({
  2282. this.code,
  2283. this.name,
  2284. this.courseIntro,
  2285. this.teacherCode,
  2286. this.poster,
  2287. this.startTime,
  2288. this.duration = 0,
  2289. this.courseType = CourseTypeEnum.Unknown,
  2290. this.audienceType = CourseAudienceTypeEnum.Unknown,
  2291. this.coursewareToken,
  2292. this.teacherName,
  2293. this.viewRange = CourseViewRangeEnum.All,
  2294. this.caseLabelCodes,
  2295. this.courseLabelCodes,
  2296. this.userGroupCodes,
  2297. this.price,
  2298. this.courseVideoCodes,
  2299. this.bindExams,
  2300. this.assistants,
  2301. this.experts,
  2302. this.isAgentCourse = false,
  2303. String? token,
  2304. }) : super(
  2305. token: token,
  2306. );
  2307. factory AdminUpdateCourseRequest.fromJson(Map<String, dynamic> map) {
  2308. return AdminUpdateCourseRequest(
  2309. code: map['Code'],
  2310. name: map['Name'],
  2311. courseIntro: map['CourseIntro'],
  2312. teacherCode: map['TeacherCode'],
  2313. poster: map['Poster'],
  2314. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  2315. duration: map['Duration'],
  2316. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  2317. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  2318. coursewareToken: map['CoursewareToken'],
  2319. teacherName: map['TeacherName'],
  2320. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  2321. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  2322. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  2323. userGroupCodes: map['UserGroupCodes'] != null ? map['UserGroupCodes'].cast<String>().toList() : null,
  2324. price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
  2325. courseVideoCodes: map['CourseVideoCodes'] != null ? map['CourseVideoCodes'].cast<String>().toList() : null,
  2326. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2327. assistants: map['Assistants'] != null ? map['Assistants'].cast<String>().toList() : null,
  2328. experts: map['Experts'] != null ? map['Experts'].cast<String>().toList() : null,
  2329. isAgentCourse: map['IsAgentCourse'],
  2330. token: map['Token'],
  2331. );
  2332. }
  2333. Map<String, dynamic> toJson() {
  2334. final map = super.toJson();
  2335. if(code != null)
  2336. map['Code'] = code;
  2337. if(name != null)
  2338. map['Name'] = name;
  2339. if(courseIntro != null)
  2340. map['CourseIntro'] = courseIntro;
  2341. if(teacherCode != null)
  2342. map['TeacherCode'] = teacherCode;
  2343. if(poster != null)
  2344. map['Poster'] = poster;
  2345. if(startTime != null)
  2346. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  2347. map['Duration'] = duration;
  2348. map['CourseType'] = courseType.index;
  2349. map['AudienceType'] = audienceType.index;
  2350. if(coursewareToken != null)
  2351. map['CoursewareToken'] = coursewareToken;
  2352. if(teacherName != null)
  2353. map['TeacherName'] = teacherName;
  2354. map['ViewRange'] = viewRange.index;
  2355. if(caseLabelCodes != null)
  2356. map['CaseLabelCodes'] = caseLabelCodes;
  2357. if(courseLabelCodes != null)
  2358. map['CourseLabelCodes'] = courseLabelCodes;
  2359. if(userGroupCodes != null)
  2360. map['UserGroupCodes'] = userGroupCodes;
  2361. if(price != null)
  2362. map['Price'] = price;
  2363. if(courseVideoCodes != null)
  2364. map['CourseVideoCodes'] = courseVideoCodes;
  2365. if(bindExams != null)
  2366. map['BindExams'] = bindExams;
  2367. if(assistants != null)
  2368. map['Assistants'] = assistants;
  2369. if(experts != null)
  2370. map['Experts'] = experts;
  2371. map['IsAgentCourse'] = isAgentCourse;
  2372. return map;
  2373. }
  2374. }
  2375. class AdminUpdateCourseBindExamsRequest extends TokenRequest{
  2376. String? code;
  2377. List<CourseExaminationDTO >? bindExams;
  2378. AdminUpdateCourseBindExamsRequest({
  2379. this.code,
  2380. this.bindExams,
  2381. String? token,
  2382. }) : super(
  2383. token: token,
  2384. );
  2385. factory AdminUpdateCourseBindExamsRequest.fromJson(Map<String, dynamic> map) {
  2386. return AdminUpdateCourseBindExamsRequest(
  2387. code: map['Code'],
  2388. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2389. token: map['Token'],
  2390. );
  2391. }
  2392. Map<String, dynamic> toJson() {
  2393. final map = super.toJson();
  2394. if(code != null)
  2395. map['Code'] = code;
  2396. if(bindExams != null)
  2397. map['BindExams'] = bindExams;
  2398. return map;
  2399. }
  2400. }
  2401. class AssignedAdminsToOrganizationsRequest extends TokenRequest{
  2402. List<String >? assignedAdmins;
  2403. List<String >? organizationCodes;
  2404. AssignedAdminsToOrganizationsRequest({
  2405. this.assignedAdmins,
  2406. this.organizationCodes,
  2407. String? token,
  2408. }) : super(
  2409. token: token,
  2410. );
  2411. factory AssignedAdminsToOrganizationsRequest.fromJson(Map<String, dynamic> map) {
  2412. return AssignedAdminsToOrganizationsRequest(
  2413. assignedAdmins: map['AssignedAdmins'] != null ? map['AssignedAdmins'].cast<String>().toList() : null,
  2414. organizationCodes: map['OrganizationCodes'] != null ? map['OrganizationCodes'].cast<String>().toList() : null,
  2415. token: map['Token'],
  2416. );
  2417. }
  2418. Map<String, dynamic> toJson() {
  2419. final map = super.toJson();
  2420. if(assignedAdmins != null)
  2421. map['AssignedAdmins'] = assignedAdmins;
  2422. if(organizationCodes != null)
  2423. map['OrganizationCodes'] = organizationCodes;
  2424. return map;
  2425. }
  2426. }
  2427. class ConfirmIdentityApplyRequest extends TokenRequest{
  2428. String? identityApplyCode;
  2429. ConfirmIdentityApplyRequest({
  2430. this.identityApplyCode,
  2431. String? token,
  2432. }) : super(
  2433. token: token,
  2434. );
  2435. factory ConfirmIdentityApplyRequest.fromJson(Map<String, dynamic> map) {
  2436. return ConfirmIdentityApplyRequest(
  2437. identityApplyCode: map['IdentityApplyCode'],
  2438. token: map['Token'],
  2439. );
  2440. }
  2441. Map<String, dynamic> toJson() {
  2442. final map = super.toJson();
  2443. if(identityApplyCode != null)
  2444. map['IdentityApplyCode'] = identityApplyCode;
  2445. return map;
  2446. }
  2447. }
  2448. class CreateThirdPartyTokenRequest extends TokenRequest{
  2449. String? code;
  2450. CreateThirdPartyTokenRequest({
  2451. this.code,
  2452. String? token,
  2453. }) : super(
  2454. token: token,
  2455. );
  2456. factory CreateThirdPartyTokenRequest.fromJson(Map<String, dynamic> map) {
  2457. return CreateThirdPartyTokenRequest(
  2458. code: map['Code'],
  2459. token: map['Token'],
  2460. );
  2461. }
  2462. Map<String, dynamic> toJson() {
  2463. final map = super.toJson();
  2464. if(code != null)
  2465. map['Code'] = code;
  2466. return map;
  2467. }
  2468. }
  2469. class DeleteAdminFeatureRequest extends TokenRequest{
  2470. String? adminFeatureCode;
  2471. DeleteAdminFeatureRequest({
  2472. this.adminFeatureCode,
  2473. String? token,
  2474. }) : super(
  2475. token: token,
  2476. );
  2477. factory DeleteAdminFeatureRequest.fromJson(Map<String, dynamic> map) {
  2478. return DeleteAdminFeatureRequest(
  2479. adminFeatureCode: map['AdminFeatureCode'],
  2480. token: map['Token'],
  2481. );
  2482. }
  2483. Map<String, dynamic> toJson() {
  2484. final map = super.toJson();
  2485. if(adminFeatureCode != null)
  2486. map['AdminFeatureCode'] = adminFeatureCode;
  2487. return map;
  2488. }
  2489. }
  2490. class DeleteAdminRoleRequest extends TokenRequest{
  2491. String? adminRoleCode;
  2492. DeleteAdminRoleRequest({
  2493. this.adminRoleCode,
  2494. String? token,
  2495. }) : super(
  2496. token: token,
  2497. );
  2498. factory DeleteAdminRoleRequest.fromJson(Map<String, dynamic> map) {
  2499. return DeleteAdminRoleRequest(
  2500. adminRoleCode: map['AdminRoleCode'],
  2501. token: map['Token'],
  2502. );
  2503. }
  2504. Map<String, dynamic> toJson() {
  2505. final map = super.toJson();
  2506. if(adminRoleCode != null)
  2507. map['AdminRoleCode'] = adminRoleCode;
  2508. return map;
  2509. }
  2510. }
  2511. class DeleteLogsRequest extends TokenRequest{
  2512. int daysAgo;
  2513. String? requestServerHost;
  2514. DeleteLogsRequest({
  2515. this.daysAgo = 0,
  2516. this.requestServerHost,
  2517. String? token,
  2518. }) : super(
  2519. token: token,
  2520. );
  2521. factory DeleteLogsRequest.fromJson(Map<String, dynamic> map) {
  2522. return DeleteLogsRequest(
  2523. daysAgo: map['DaysAgo'],
  2524. requestServerHost: map['RequestServerHost'],
  2525. token: map['Token'],
  2526. );
  2527. }
  2528. Map<String, dynamic> toJson() {
  2529. final map = super.toJson();
  2530. map['DaysAgo'] = daysAgo;
  2531. if(requestServerHost != null)
  2532. map['RequestServerHost'] = requestServerHost;
  2533. return map;
  2534. }
  2535. }
  2536. class QueryClearLogsRequest extends DeleteLogsRequest{
  2537. List<int >? dayAgoList;
  2538. QueryClearLogsRequest({
  2539. this.dayAgoList,
  2540. int daysAgo = 0,
  2541. String? requestServerHost,
  2542. String? token,
  2543. }) : super(
  2544. daysAgo: daysAgo,
  2545. requestServerHost: requestServerHost,
  2546. token: token,
  2547. );
  2548. factory QueryClearLogsRequest.fromJson(Map<String, dynamic> map) {
  2549. return QueryClearLogsRequest(
  2550. dayAgoList: map['DayAgoList'] != null ? map['DayAgoList'].cast<int>().toList() : null,
  2551. daysAgo: map['DaysAgo'],
  2552. requestServerHost: map['RequestServerHost'],
  2553. token: map['Token'],
  2554. );
  2555. }
  2556. Map<String, dynamic> toJson() {
  2557. final map = super.toJson();
  2558. if(dayAgoList != null)
  2559. map['DayAgoList'] = dayAgoList;
  2560. return map;
  2561. }
  2562. }
  2563. class DeleteRoleRequest extends TokenRequest{
  2564. String? roleCode;
  2565. DeleteRoleRequest({
  2566. this.roleCode,
  2567. String? token,
  2568. }) : super(
  2569. token: token,
  2570. );
  2571. factory DeleteRoleRequest.fromJson(Map<String, dynamic> map) {
  2572. return DeleteRoleRequest(
  2573. roleCode: map['RoleCode'],
  2574. token: map['Token'],
  2575. );
  2576. }
  2577. Map<String, dynamic> toJson() {
  2578. final map = super.toJson();
  2579. if(roleCode != null)
  2580. map['RoleCode'] = roleCode;
  2581. return map;
  2582. }
  2583. }
  2584. class DeleteThesaurusRequest extends TokenRequest{
  2585. String? thesaurusCode;
  2586. DeleteThesaurusRequest({
  2587. this.thesaurusCode,
  2588. String? token,
  2589. }) : super(
  2590. token: token,
  2591. );
  2592. factory DeleteThesaurusRequest.fromJson(Map<String, dynamic> map) {
  2593. return DeleteThesaurusRequest(
  2594. thesaurusCode: map['ThesaurusCode'],
  2595. token: map['Token'],
  2596. );
  2597. }
  2598. Map<String, dynamic> toJson() {
  2599. final map = super.toJson();
  2600. if(thesaurusCode != null)
  2601. map['ThesaurusCode'] = thesaurusCode;
  2602. return map;
  2603. }
  2604. }
  2605. class DeleteThirdPartyInfoRequest extends TokenRequest{
  2606. String? code;
  2607. DeleteThirdPartyInfoRequest({
  2608. this.code,
  2609. String? token,
  2610. }) : super(
  2611. token: token,
  2612. );
  2613. factory DeleteThirdPartyInfoRequest.fromJson(Map<String, dynamic> map) {
  2614. return DeleteThirdPartyInfoRequest(
  2615. code: map['Code'],
  2616. token: map['Token'],
  2617. );
  2618. }
  2619. Map<String, dynamic> toJson() {
  2620. final map = super.toJson();
  2621. if(code != null)
  2622. map['Code'] = code;
  2623. return map;
  2624. }
  2625. }
  2626. class DeleteUserFeatureRequest extends TokenRequest{
  2627. String? userFeatureCode;
  2628. DeleteUserFeatureRequest({
  2629. this.userFeatureCode,
  2630. String? token,
  2631. }) : super(
  2632. token: token,
  2633. );
  2634. factory DeleteUserFeatureRequest.fromJson(Map<String, dynamic> map) {
  2635. return DeleteUserFeatureRequest(
  2636. userFeatureCode: map['UserFeatureCode'],
  2637. token: map['Token'],
  2638. );
  2639. }
  2640. Map<String, dynamic> toJson() {
  2641. final map = super.toJson();
  2642. if(userFeatureCode != null)
  2643. map['UserFeatureCode'] = userFeatureCode;
  2644. return map;
  2645. }
  2646. }
  2647. enum DistributedServerTypeEnum {
  2648. Official,
  2649. Private,
  2650. }
  2651. class IPAddressInfoDTO {
  2652. String? startIp;
  2653. String? endIp;
  2654. int longStartIP;
  2655. int longEndIP;
  2656. IPAddressInfoDTO({
  2657. this.startIp,
  2658. this.endIp,
  2659. this.longStartIP = 0,
  2660. this.longEndIP = 0,
  2661. });
  2662. factory IPAddressInfoDTO.fromJson(Map<String, dynamic> map) {
  2663. return IPAddressInfoDTO(
  2664. startIp: map['StartIp'],
  2665. endIp: map['EndIp'],
  2666. longStartIP: map['LongStartIP'],
  2667. longEndIP: map['LongEndIP'],
  2668. );
  2669. }
  2670. Map<String, dynamic> toJson() {
  2671. final map = Map<String, dynamic>();
  2672. if(startIp != null)
  2673. map['StartIp'] = startIp;
  2674. if(endIp != null)
  2675. map['EndIp'] = endIp;
  2676. map['LongStartIP'] = longStartIP;
  2677. map['LongEndIP'] = longEndIP;
  2678. return map;
  2679. }
  2680. }
  2681. class DistributedServerInfoRequest extends TokenRequest{
  2682. String? code;
  2683. List<String >? codes;
  2684. bool isMaster;
  2685. String? name;
  2686. String? description;
  2687. bool enable;
  2688. DistributedServerTypeEnum serverType;
  2689. String? serverUrl;
  2690. String? lat;
  2691. String? lng;
  2692. List<IPAddressInfoDTO >? assignClientIPList;
  2693. int rTCStartingRoomId;
  2694. String? shareCodePrefix;
  2695. DistributedServerInfoRequest({
  2696. this.code,
  2697. this.codes,
  2698. this.isMaster = false,
  2699. this.name,
  2700. this.description,
  2701. this.enable = false,
  2702. this.serverType = DistributedServerTypeEnum.Official,
  2703. this.serverUrl,
  2704. this.lat,
  2705. this.lng,
  2706. this.assignClientIPList,
  2707. this.rTCStartingRoomId = 0,
  2708. this.shareCodePrefix,
  2709. String? token,
  2710. }) : super(
  2711. token: token,
  2712. );
  2713. factory DistributedServerInfoRequest.fromJson(Map<String, dynamic> map) {
  2714. return DistributedServerInfoRequest(
  2715. code: map['Code'],
  2716. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  2717. isMaster: map['IsMaster'],
  2718. name: map['Name'],
  2719. description: map['Description'],
  2720. enable: map['Enable'],
  2721. serverType: DistributedServerTypeEnum.values.firstWhere((e) => e.index == map['ServerType']),
  2722. serverUrl: map['ServerUrl'],
  2723. lat: map['Lat'],
  2724. lng: map['Lng'],
  2725. assignClientIPList: map['AssignClientIPList'] != null ? (map['AssignClientIPList'] as List).map((e)=>IPAddressInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2726. rTCStartingRoomId: map['RTCStartingRoomId'],
  2727. shareCodePrefix: map['ShareCodePrefix'],
  2728. token: map['Token'],
  2729. );
  2730. }
  2731. Map<String, dynamic> toJson() {
  2732. final map = super.toJson();
  2733. if(code != null)
  2734. map['Code'] = code;
  2735. if(codes != null)
  2736. map['Codes'] = codes;
  2737. map['IsMaster'] = isMaster;
  2738. if(name != null)
  2739. map['Name'] = name;
  2740. if(description != null)
  2741. map['Description'] = description;
  2742. map['Enable'] = enable;
  2743. map['ServerType'] = serverType.index;
  2744. if(serverUrl != null)
  2745. map['ServerUrl'] = serverUrl;
  2746. if(lat != null)
  2747. map['Lat'] = lat;
  2748. if(lng != null)
  2749. map['Lng'] = lng;
  2750. if(assignClientIPList != null)
  2751. map['AssignClientIPList'] = assignClientIPList;
  2752. map['RTCStartingRoomId'] = rTCStartingRoomId;
  2753. if(shareCodePrefix != null)
  2754. map['ShareCodePrefix'] = shareCodePrefix;
  2755. return map;
  2756. }
  2757. }
  2758. class SaveDistributedServerIpRequest extends TokenRequest{
  2759. String? startIp;
  2760. String? endIp;
  2761. String? code;
  2762. SaveDistributedServerIpRequest({
  2763. this.startIp,
  2764. this.endIp,
  2765. this.code,
  2766. String? token,
  2767. }) : super(
  2768. token: token,
  2769. );
  2770. factory SaveDistributedServerIpRequest.fromJson(Map<String, dynamic> map) {
  2771. return SaveDistributedServerIpRequest(
  2772. startIp: map['StartIp'],
  2773. endIp: map['EndIp'],
  2774. code: map['Code'],
  2775. token: map['Token'],
  2776. );
  2777. }
  2778. Map<String, dynamic> toJson() {
  2779. final map = super.toJson();
  2780. if(startIp != null)
  2781. map['StartIp'] = startIp;
  2782. if(endIp != null)
  2783. map['EndIp'] = endIp;
  2784. if(code != null)
  2785. map['Code'] = code;
  2786. return map;
  2787. }
  2788. }
  2789. class GetDistributedServerIpListRequest extends PageRequest{
  2790. String? code;
  2791. String? keyword;
  2792. GetDistributedServerIpListRequest({
  2793. this.code,
  2794. this.keyword,
  2795. int pageIndex = 0,
  2796. int pageSize = 0,
  2797. String? token,
  2798. }) : super(
  2799. pageIndex: pageIndex,
  2800. pageSize: pageSize,
  2801. token: token,
  2802. );
  2803. factory GetDistributedServerIpListRequest.fromJson(Map<String, dynamic> map) {
  2804. return GetDistributedServerIpListRequest(
  2805. code: map['Code'],
  2806. keyword: map['Keyword'],
  2807. pageIndex: map['PageIndex'],
  2808. pageSize: map['PageSize'],
  2809. token: map['Token'],
  2810. );
  2811. }
  2812. Map<String, dynamic> toJson() {
  2813. final map = super.toJson();
  2814. if(code != null)
  2815. map['Code'] = code;
  2816. if(keyword != null)
  2817. map['Keyword'] = keyword;
  2818. return map;
  2819. }
  2820. }
  2821. class FindAdminByCodeRequest extends TokenRequest{
  2822. String? adminCode;
  2823. FindAdminByCodeRequest({
  2824. this.adminCode,
  2825. String? token,
  2826. }) : super(
  2827. token: token,
  2828. );
  2829. factory FindAdminByCodeRequest.fromJson(Map<String, dynamic> map) {
  2830. return FindAdminByCodeRequest(
  2831. adminCode: map['AdminCode'],
  2832. token: map['Token'],
  2833. );
  2834. }
  2835. Map<String, dynamic> toJson() {
  2836. final map = super.toJson();
  2837. if(adminCode != null)
  2838. map['AdminCode'] = adminCode;
  2839. return map;
  2840. }
  2841. }
  2842. class FindAdminRoleByCodeRequest extends TokenRequest{
  2843. String? adminRoleCode;
  2844. FindAdminRoleByCodeRequest({
  2845. this.adminRoleCode,
  2846. String? token,
  2847. }) : super(
  2848. token: token,
  2849. );
  2850. factory FindAdminRoleByCodeRequest.fromJson(Map<String, dynamic> map) {
  2851. return FindAdminRoleByCodeRequest(
  2852. adminRoleCode: map['AdminRoleCode'],
  2853. token: map['Token'],
  2854. );
  2855. }
  2856. Map<String, dynamic> toJson() {
  2857. final map = super.toJson();
  2858. if(adminRoleCode != null)
  2859. map['AdminRoleCode'] = adminRoleCode;
  2860. return map;
  2861. }
  2862. }
  2863. class FindAdminStatisticRecordsRequest extends TokenRequest{
  2864. String? languageCode;
  2865. FindAdminStatisticRecordsRequest({
  2866. this.languageCode,
  2867. String? token,
  2868. }) : super(
  2869. token: token,
  2870. );
  2871. factory FindAdminStatisticRecordsRequest.fromJson(Map<String, dynamic> map) {
  2872. return FindAdminStatisticRecordsRequest(
  2873. languageCode: map['LanguageCode'],
  2874. token: map['Token'],
  2875. );
  2876. }
  2877. Map<String, dynamic> toJson() {
  2878. final map = super.toJson();
  2879. if(languageCode != null)
  2880. map['LanguageCode'] = languageCode;
  2881. return map;
  2882. }
  2883. }
  2884. class FindCMSStatisticRequest extends TokenRequest{
  2885. String? clientId;
  2886. FindCMSStatisticRequest({
  2887. this.clientId,
  2888. String? token,
  2889. }) : super(
  2890. token: token,
  2891. );
  2892. factory FindCMSStatisticRequest.fromJson(Map<String, dynamic> map) {
  2893. return FindCMSStatisticRequest(
  2894. clientId: map['ClientId'],
  2895. token: map['Token'],
  2896. );
  2897. }
  2898. Map<String, dynamic> toJson() {
  2899. final map = super.toJson();
  2900. if(clientId != null)
  2901. map['ClientId'] = clientId;
  2902. return map;
  2903. }
  2904. }
  2905. class FindCMSTemplateByUserRequest extends TokenRequest{
  2906. String? clientId;
  2907. FindCMSTemplateByUserRequest({
  2908. this.clientId,
  2909. String? token,
  2910. }) : super(
  2911. token: token,
  2912. );
  2913. factory FindCMSTemplateByUserRequest.fromJson(Map<String, dynamic> map) {
  2914. return FindCMSTemplateByUserRequest(
  2915. clientId: map['ClientId'],
  2916. token: map['Token'],
  2917. );
  2918. }
  2919. Map<String, dynamic> toJson() {
  2920. final map = super.toJson();
  2921. if(clientId != null)
  2922. map['ClientId'] = clientId;
  2923. return map;
  2924. }
  2925. }
  2926. class FindCMSTemplateDetailRequest extends TokenRequest{
  2927. String? cMSTemplateCode;
  2928. FindCMSTemplateDetailRequest({
  2929. this.cMSTemplateCode,
  2930. String? token,
  2931. }) : super(
  2932. token: token,
  2933. );
  2934. factory FindCMSTemplateDetailRequest.fromJson(Map<String, dynamic> map) {
  2935. return FindCMSTemplateDetailRequest(
  2936. cMSTemplateCode: map['CMSTemplateCode'],
  2937. token: map['Token'],
  2938. );
  2939. }
  2940. Map<String, dynamic> toJson() {
  2941. final map = super.toJson();
  2942. if(cMSTemplateCode != null)
  2943. map['CMSTemplateCode'] = cMSTemplateCode;
  2944. return map;
  2945. }
  2946. }
  2947. class FindCMSTemplatePageRequest extends PageRequest{
  2948. String? searchKey;
  2949. FindCMSTemplatePageRequest({
  2950. this.searchKey,
  2951. int pageIndex = 0,
  2952. int pageSize = 0,
  2953. String? token,
  2954. }) : super(
  2955. pageIndex: pageIndex,
  2956. pageSize: pageSize,
  2957. token: token,
  2958. );
  2959. factory FindCMSTemplatePageRequest.fromJson(Map<String, dynamic> map) {
  2960. return FindCMSTemplatePageRequest(
  2961. searchKey: map['SearchKey'],
  2962. pageIndex: map['PageIndex'],
  2963. pageSize: map['PageSize'],
  2964. token: map['Token'],
  2965. );
  2966. }
  2967. Map<String, dynamic> toJson() {
  2968. final map = super.toJson();
  2969. if(searchKey != null)
  2970. map['SearchKey'] = searchKey;
  2971. return map;
  2972. }
  2973. }
  2974. class FindContentConfigRequest extends TokenRequest{
  2975. int type;
  2976. String? parentCode;
  2977. FindContentConfigRequest({
  2978. this.type = 0,
  2979. this.parentCode,
  2980. String? token,
  2981. }) : super(
  2982. token: token,
  2983. );
  2984. factory FindContentConfigRequest.fromJson(Map<String, dynamic> map) {
  2985. return FindContentConfigRequest(
  2986. type: map['Type'],
  2987. parentCode: map['ParentCode'],
  2988. token: map['Token'],
  2989. );
  2990. }
  2991. Map<String, dynamic> toJson() {
  2992. final map = super.toJson();
  2993. map['Type'] = type;
  2994. if(parentCode != null)
  2995. map['ParentCode'] = parentCode;
  2996. return map;
  2997. }
  2998. }
  2999. class FindDeviceDiagnosisModulesRequest2 extends TokenRequest{
  3000. String? deviceCode;
  3001. FindDeviceDiagnosisModulesRequest2({
  3002. this.deviceCode,
  3003. String? token,
  3004. }) : super(
  3005. token: token,
  3006. );
  3007. factory FindDeviceDiagnosisModulesRequest2.fromJson(Map<String, dynamic> map) {
  3008. return FindDeviceDiagnosisModulesRequest2(
  3009. deviceCode: map['DeviceCode'],
  3010. token: map['Token'],
  3011. );
  3012. }
  3013. Map<String, dynamic> toJson() {
  3014. final map = super.toJson();
  3015. if(deviceCode != null)
  3016. map['DeviceCode'] = deviceCode;
  3017. return map;
  3018. }
  3019. }
  3020. class FindDiagnosisModuleByPageRequest extends PageRequest{
  3021. FindDiagnosisModuleByPageRequest({
  3022. int pageIndex = 0,
  3023. int pageSize = 0,
  3024. String? token,
  3025. }) : super(
  3026. pageIndex: pageIndex,
  3027. pageSize: pageSize,
  3028. token: token,
  3029. );
  3030. factory FindDiagnosisModuleByPageRequest.fromJson(Map<String, dynamic> map) {
  3031. return FindDiagnosisModuleByPageRequest(
  3032. pageIndex: map['PageIndex'],
  3033. pageSize: map['PageSize'],
  3034. token: map['Token'],
  3035. );
  3036. }
  3037. Map<String, dynamic> toJson() {
  3038. final map = super.toJson();
  3039. return map;
  3040. }
  3041. }
  3042. class FindGradingProtectionConfigByPageRequest extends PageRequest{
  3043. String? keyword;
  3044. FindGradingProtectionConfigByPageRequest({
  3045. this.keyword,
  3046. int pageIndex = 0,
  3047. int pageSize = 0,
  3048. String? token,
  3049. }) : super(
  3050. pageIndex: pageIndex,
  3051. pageSize: pageSize,
  3052. token: token,
  3053. );
  3054. factory FindGradingProtectionConfigByPageRequest.fromJson(Map<String, dynamic> map) {
  3055. return FindGradingProtectionConfigByPageRequest(
  3056. keyword: map['Keyword'],
  3057. pageIndex: map['PageIndex'],
  3058. pageSize: map['PageSize'],
  3059. token: map['Token'],
  3060. );
  3061. }
  3062. Map<String, dynamic> toJson() {
  3063. final map = super.toJson();
  3064. if(keyword != null)
  3065. map['Keyword'] = keyword;
  3066. return map;
  3067. }
  3068. }
  3069. class FindOrganizationDiagnosisModulesRequest extends TokenRequest{
  3070. String? organizationCode;
  3071. FindOrganizationDiagnosisModulesRequest({
  3072. this.organizationCode,
  3073. String? token,
  3074. }) : super(
  3075. token: token,
  3076. );
  3077. factory FindOrganizationDiagnosisModulesRequest.fromJson(Map<String, dynamic> map) {
  3078. return FindOrganizationDiagnosisModulesRequest(
  3079. organizationCode: map['OrganizationCode'],
  3080. token: map['Token'],
  3081. );
  3082. }
  3083. Map<String, dynamic> toJson() {
  3084. final map = super.toJson();
  3085. if(organizationCode != null)
  3086. map['OrganizationCode'] = organizationCode;
  3087. return map;
  3088. }
  3089. }
  3090. class FindReferralRecordSettingRequest extends TokenRequest{
  3091. FindReferralRecordSettingRequest({
  3092. String? token,
  3093. }) : super(
  3094. token: token,
  3095. );
  3096. factory FindReferralRecordSettingRequest.fromJson(Map<String, dynamic> map) {
  3097. return FindReferralRecordSettingRequest(
  3098. token: map['Token'],
  3099. );
  3100. }
  3101. Map<String, dynamic> toJson() {
  3102. final map = super.toJson();
  3103. return map;
  3104. }
  3105. }
  3106. class FindRelatedDeviceCodesRequest extends TokenRequest{
  3107. String? reportPosterCode;
  3108. FindRelatedDeviceCodesRequest({
  3109. this.reportPosterCode,
  3110. String? token,
  3111. }) : super(
  3112. token: token,
  3113. );
  3114. factory FindRelatedDeviceCodesRequest.fromJson(Map<String, dynamic> map) {
  3115. return FindRelatedDeviceCodesRequest(
  3116. reportPosterCode: map['ReportPosterCode'],
  3117. token: map['Token'],
  3118. );
  3119. }
  3120. Map<String, dynamic> toJson() {
  3121. final map = super.toJson();
  3122. if(reportPosterCode != null)
  3123. map['ReportPosterCode'] = reportPosterCode;
  3124. return map;
  3125. }
  3126. }
  3127. class FindReportLabelByCodeRequest extends TokenRequest{
  3128. String? reportLabelCode;
  3129. FindReportLabelByCodeRequest({
  3130. this.reportLabelCode,
  3131. String? token,
  3132. }) : super(
  3133. token: token,
  3134. );
  3135. factory FindReportLabelByCodeRequest.fromJson(Map<String, dynamic> map) {
  3136. return FindReportLabelByCodeRequest(
  3137. reportLabelCode: map['ReportLabelCode'],
  3138. token: map['Token'],
  3139. );
  3140. }
  3141. Map<String, dynamic> toJson() {
  3142. final map = super.toJson();
  3143. if(reportLabelCode != null)
  3144. map['ReportLabelCode'] = reportLabelCode;
  3145. return map;
  3146. }
  3147. }
  3148. class FindReportLabelByPageRequest extends PageRequest{
  3149. String? keyword;
  3150. FindReportLabelByPageRequest({
  3151. this.keyword,
  3152. int pageIndex = 0,
  3153. int pageSize = 0,
  3154. String? token,
  3155. }) : super(
  3156. pageIndex: pageIndex,
  3157. pageSize: pageSize,
  3158. token: token,
  3159. );
  3160. factory FindReportLabelByPageRequest.fromJson(Map<String, dynamic> map) {
  3161. return FindReportLabelByPageRequest(
  3162. keyword: map['Keyword'],
  3163. pageIndex: map['PageIndex'],
  3164. pageSize: map['PageSize'],
  3165. token: map['Token'],
  3166. );
  3167. }
  3168. Map<String, dynamic> toJson() {
  3169. final map = super.toJson();
  3170. if(keyword != null)
  3171. map['Keyword'] = keyword;
  3172. return map;
  3173. }
  3174. }
  3175. class FindReportPosterByCodeRequest extends TokenRequest{
  3176. String? reportPosterCode;
  3177. FindReportPosterByCodeRequest({
  3178. this.reportPosterCode,
  3179. String? token,
  3180. }) : super(
  3181. token: token,
  3182. );
  3183. factory FindReportPosterByCodeRequest.fromJson(Map<String, dynamic> map) {
  3184. return FindReportPosterByCodeRequest(
  3185. reportPosterCode: map['ReportPosterCode'],
  3186. token: map['Token'],
  3187. );
  3188. }
  3189. Map<String, dynamic> toJson() {
  3190. final map = super.toJson();
  3191. if(reportPosterCode != null)
  3192. map['ReportPosterCode'] = reportPosterCode;
  3193. return map;
  3194. }
  3195. }
  3196. class FindReportPosterByPageRequest extends PageRequest{
  3197. String? keyword;
  3198. FindReportPosterByPageRequest({
  3199. this.keyword,
  3200. int pageIndex = 0,
  3201. int pageSize = 0,
  3202. String? token,
  3203. }) : super(
  3204. pageIndex: pageIndex,
  3205. pageSize: pageSize,
  3206. token: token,
  3207. );
  3208. factory FindReportPosterByPageRequest.fromJson(Map<String, dynamic> map) {
  3209. return FindReportPosterByPageRequest(
  3210. keyword: map['Keyword'],
  3211. pageIndex: map['PageIndex'],
  3212. pageSize: map['PageSize'],
  3213. token: map['Token'],
  3214. );
  3215. }
  3216. Map<String, dynamic> toJson() {
  3217. final map = super.toJson();
  3218. if(keyword != null)
  3219. map['Keyword'] = keyword;
  3220. return map;
  3221. }
  3222. }
  3223. class FindReportPreviewUrlRequest extends TokenRequest{
  3224. String? reportCode;
  3225. String? languageCode;
  3226. FindReportPreviewUrlRequest({
  3227. this.reportCode,
  3228. this.languageCode,
  3229. String? token,
  3230. }) : super(
  3231. token: token,
  3232. );
  3233. factory FindReportPreviewUrlRequest.fromJson(Map<String, dynamic> map) {
  3234. return FindReportPreviewUrlRequest(
  3235. reportCode: map['ReportCode'],
  3236. languageCode: map['LanguageCode'],
  3237. token: map['Token'],
  3238. );
  3239. }
  3240. Map<String, dynamic> toJson() {
  3241. final map = super.toJson();
  3242. if(reportCode != null)
  3243. map['ReportCode'] = reportCode;
  3244. if(languageCode != null)
  3245. map['LanguageCode'] = languageCode;
  3246. return map;
  3247. }
  3248. }
  3249. enum PushDataStateEnum {
  3250. UnDo,
  3251. Successful,
  3252. Failed,
  3253. All,
  3254. }
  3255. class FindReportPushRecordsByPageRequest extends PageRequest{
  3256. String? keyword;
  3257. PushDataStateEnum queryState;
  3258. FindReportPushRecordsByPageRequest({
  3259. this.keyword,
  3260. this.queryState = PushDataStateEnum.UnDo,
  3261. int pageIndex = 0,
  3262. int pageSize = 0,
  3263. String? token,
  3264. }) : super(
  3265. pageIndex: pageIndex,
  3266. pageSize: pageSize,
  3267. token: token,
  3268. );
  3269. factory FindReportPushRecordsByPageRequest.fromJson(Map<String, dynamic> map) {
  3270. return FindReportPushRecordsByPageRequest(
  3271. keyword: map['Keyword'],
  3272. queryState: PushDataStateEnum.values.firstWhere((e) => e.index == map['QueryState']),
  3273. pageIndex: map['PageIndex'],
  3274. pageSize: map['PageSize'],
  3275. token: map['Token'],
  3276. );
  3277. }
  3278. Map<String, dynamic> toJson() {
  3279. final map = super.toJson();
  3280. if(keyword != null)
  3281. map['Keyword'] = keyword;
  3282. map['QueryState'] = queryState.index;
  3283. return map;
  3284. }
  3285. }
  3286. class FindReportShareConentRequest extends TokenRequest{
  3287. String? shortCode;
  3288. FindReportShareConentRequest({
  3289. this.shortCode,
  3290. String? token,
  3291. }) : super(
  3292. token: token,
  3293. );
  3294. factory FindReportShareConentRequest.fromJson(Map<String, dynamic> map) {
  3295. return FindReportShareConentRequest(
  3296. shortCode: map['ShortCode'],
  3297. token: map['Token'],
  3298. );
  3299. }
  3300. Map<String, dynamic> toJson() {
  3301. final map = super.toJson();
  3302. if(shortCode != null)
  3303. map['ShortCode'] = shortCode;
  3304. return map;
  3305. }
  3306. }
  3307. class FindReportTemplateUserPagesRequest extends PageRequest{
  3308. String? reportTemplateCode;
  3309. String? keyword;
  3310. FindReportTemplateUserPagesRequest({
  3311. this.reportTemplateCode,
  3312. this.keyword,
  3313. int pageIndex = 0,
  3314. int pageSize = 0,
  3315. String? token,
  3316. }) : super(
  3317. pageIndex: pageIndex,
  3318. pageSize: pageSize,
  3319. token: token,
  3320. );
  3321. factory FindReportTemplateUserPagesRequest.fromJson(Map<String, dynamic> map) {
  3322. return FindReportTemplateUserPagesRequest(
  3323. reportTemplateCode: map['ReportTemplateCode'],
  3324. keyword: map['Keyword'],
  3325. pageIndex: map['PageIndex'],
  3326. pageSize: map['PageSize'],
  3327. token: map['Token'],
  3328. );
  3329. }
  3330. Map<String, dynamic> toJson() {
  3331. final map = super.toJson();
  3332. if(reportTemplateCode != null)
  3333. map['ReportTemplateCode'] = reportTemplateCode;
  3334. if(keyword != null)
  3335. map['Keyword'] = keyword;
  3336. return map;
  3337. }
  3338. }
  3339. class FindRoleByCodeRequest extends TokenRequest{
  3340. String? roleCode;
  3341. FindRoleByCodeRequest({
  3342. this.roleCode,
  3343. String? token,
  3344. }) : super(
  3345. token: token,
  3346. );
  3347. factory FindRoleByCodeRequest.fromJson(Map<String, dynamic> map) {
  3348. return FindRoleByCodeRequest(
  3349. roleCode: map['RoleCode'],
  3350. token: map['Token'],
  3351. );
  3352. }
  3353. Map<String, dynamic> toJson() {
  3354. final map = super.toJson();
  3355. if(roleCode != null)
  3356. map['RoleCode'] = roleCode;
  3357. return map;
  3358. }
  3359. }
  3360. class FindThesaurusByCodeRequest extends TokenRequest{
  3361. String? thesaurusCode;
  3362. FindThesaurusByCodeRequest({
  3363. this.thesaurusCode,
  3364. String? token,
  3365. }) : super(
  3366. token: token,
  3367. );
  3368. factory FindThesaurusByCodeRequest.fromJson(Map<String, dynamic> map) {
  3369. return FindThesaurusByCodeRequest(
  3370. thesaurusCode: map['ThesaurusCode'],
  3371. token: map['Token'],
  3372. );
  3373. }
  3374. Map<String, dynamic> toJson() {
  3375. final map = super.toJson();
  3376. if(thesaurusCode != null)
  3377. map['ThesaurusCode'] = thesaurusCode;
  3378. return map;
  3379. }
  3380. }
  3381. class FindThesaurusPagesRequest extends PageRequest{
  3382. String? keyword;
  3383. FindThesaurusPagesRequest({
  3384. this.keyword,
  3385. int pageIndex = 0,
  3386. int pageSize = 0,
  3387. String? token,
  3388. }) : super(
  3389. pageIndex: pageIndex,
  3390. pageSize: pageSize,
  3391. token: token,
  3392. );
  3393. factory FindThesaurusPagesRequest.fromJson(Map<String, dynamic> map) {
  3394. return FindThesaurusPagesRequest(
  3395. keyword: map['Keyword'],
  3396. pageIndex: map['PageIndex'],
  3397. pageSize: map['PageSize'],
  3398. token: map['Token'],
  3399. );
  3400. }
  3401. Map<String, dynamic> toJson() {
  3402. final map = super.toJson();
  3403. if(keyword != null)
  3404. map['Keyword'] = keyword;
  3405. return map;
  3406. }
  3407. }
  3408. class FindThesaurusUserPagesRequest extends PageRequest{
  3409. String? thesaurusCode;
  3410. String? keyword;
  3411. FindThesaurusUserPagesRequest({
  3412. this.thesaurusCode,
  3413. this.keyword,
  3414. int pageIndex = 0,
  3415. int pageSize = 0,
  3416. String? token,
  3417. }) : super(
  3418. pageIndex: pageIndex,
  3419. pageSize: pageSize,
  3420. token: token,
  3421. );
  3422. factory FindThesaurusUserPagesRequest.fromJson(Map<String, dynamic> map) {
  3423. return FindThesaurusUserPagesRequest(
  3424. thesaurusCode: map['ThesaurusCode'],
  3425. keyword: map['Keyword'],
  3426. pageIndex: map['PageIndex'],
  3427. pageSize: map['PageSize'],
  3428. token: map['Token'],
  3429. );
  3430. }
  3431. Map<String, dynamic> toJson() {
  3432. final map = super.toJson();
  3433. if(thesaurusCode != null)
  3434. map['ThesaurusCode'] = thesaurusCode;
  3435. if(keyword != null)
  3436. map['Keyword'] = keyword;
  3437. return map;
  3438. }
  3439. }
  3440. class FindThirdPartyInfoByCodeRequest extends TokenRequest{
  3441. String? code;
  3442. FindThirdPartyInfoByCodeRequest({
  3443. this.code,
  3444. String? token,
  3445. }) : super(
  3446. token: token,
  3447. );
  3448. factory FindThirdPartyInfoByCodeRequest.fromJson(Map<String, dynamic> map) {
  3449. return FindThirdPartyInfoByCodeRequest(
  3450. code: map['Code'],
  3451. token: map['Token'],
  3452. );
  3453. }
  3454. Map<String, dynamic> toJson() {
  3455. final map = super.toJson();
  3456. if(code != null)
  3457. map['Code'] = code;
  3458. return map;
  3459. }
  3460. }
  3461. class FindUserByCodeRequest extends TokenRequest{
  3462. String? userCode;
  3463. FindUserByCodeRequest({
  3464. this.userCode,
  3465. String? token,
  3466. }) : super(
  3467. token: token,
  3468. );
  3469. factory FindUserByCodeRequest.fromJson(Map<String, dynamic> map) {
  3470. return FindUserByCodeRequest(
  3471. userCode: map['UserCode'],
  3472. token: map['Token'],
  3473. );
  3474. }
  3475. Map<String, dynamic> toJson() {
  3476. final map = super.toJson();
  3477. if(userCode != null)
  3478. map['UserCode'] = userCode;
  3479. return map;
  3480. }
  3481. }
  3482. class GetAdminPagesRequest extends PageRequest{
  3483. String? queryType;
  3484. String? keyWord;
  3485. String? roleCode;
  3486. bool isShowSuperRoleCode;
  3487. String? fatherCode;
  3488. GetAdminPagesRequest({
  3489. this.queryType,
  3490. this.keyWord,
  3491. this.roleCode,
  3492. this.isShowSuperRoleCode = false,
  3493. this.fatherCode,
  3494. int pageIndex = 0,
  3495. int pageSize = 0,
  3496. String? token,
  3497. }) : super(
  3498. pageIndex: pageIndex,
  3499. pageSize: pageSize,
  3500. token: token,
  3501. );
  3502. factory GetAdminPagesRequest.fromJson(Map<String, dynamic> map) {
  3503. return GetAdminPagesRequest(
  3504. queryType: map['QueryType'],
  3505. keyWord: map['KeyWord'],
  3506. roleCode: map['RoleCode'],
  3507. isShowSuperRoleCode: map['IsShowSuperRoleCode'],
  3508. fatherCode: map['FatherCode'],
  3509. pageIndex: map['PageIndex'],
  3510. pageSize: map['PageSize'],
  3511. token: map['Token'],
  3512. );
  3513. }
  3514. Map<String, dynamic> toJson() {
  3515. final map = super.toJson();
  3516. if(queryType != null)
  3517. map['QueryType'] = queryType;
  3518. if(keyWord != null)
  3519. map['KeyWord'] = keyWord;
  3520. if(roleCode != null)
  3521. map['RoleCode'] = roleCode;
  3522. map['IsShowSuperRoleCode'] = isShowSuperRoleCode;
  3523. if(fatherCode != null)
  3524. map['FatherCode'] = fatherCode;
  3525. return map;
  3526. }
  3527. }
  3528. class GetAdminRolePagesRequest extends PageRequest{
  3529. String? roleName;
  3530. GetAdminRolePagesRequest({
  3531. this.roleName,
  3532. int pageIndex = 0,
  3533. int pageSize = 0,
  3534. String? token,
  3535. }) : super(
  3536. pageIndex: pageIndex,
  3537. pageSize: pageSize,
  3538. token: token,
  3539. );
  3540. factory GetAdminRolePagesRequest.fromJson(Map<String, dynamic> map) {
  3541. return GetAdminRolePagesRequest(
  3542. roleName: map['RoleName'],
  3543. pageIndex: map['PageIndex'],
  3544. pageSize: map['PageSize'],
  3545. token: map['Token'],
  3546. );
  3547. }
  3548. Map<String, dynamic> toJson() {
  3549. final map = super.toJson();
  3550. if(roleName != null)
  3551. map['RoleName'] = roleName;
  3552. return map;
  3553. }
  3554. }
  3555. class GetDeviceModelSelectRequest extends TokenRequest{
  3556. String? parentCode;
  3557. GetDeviceModelSelectRequest({
  3558. this.parentCode,
  3559. String? token,
  3560. }) : super(
  3561. token: token,
  3562. );
  3563. factory GetDeviceModelSelectRequest.fromJson(Map<String, dynamic> map) {
  3564. return GetDeviceModelSelectRequest(
  3565. parentCode: map['ParentCode'],
  3566. token: map['Token'],
  3567. );
  3568. }
  3569. Map<String, dynamic> toJson() {
  3570. final map = super.toJson();
  3571. if(parentCode != null)
  3572. map['ParentCode'] = parentCode;
  3573. return map;
  3574. }
  3575. }
  3576. class GetDeviceOutputConfigRequest extends TokenRequest{
  3577. DeviceVideoOutputTypeEnum deviceVideoOutputType;
  3578. GetDeviceOutputConfigRequest({
  3579. this.deviceVideoOutputType = DeviceVideoOutputTypeEnum.MergedVideo,
  3580. String? token,
  3581. }) : super(
  3582. token: token,
  3583. );
  3584. factory GetDeviceOutputConfigRequest.fromJson(Map<String, dynamic> map) {
  3585. return GetDeviceOutputConfigRequest(
  3586. deviceVideoOutputType: DeviceVideoOutputTypeEnum.values.firstWhere((e) => e.index == map['DeviceVideoOutputType']),
  3587. token: map['Token'],
  3588. );
  3589. }
  3590. Map<String, dynamic> toJson() {
  3591. final map = super.toJson();
  3592. map['DeviceVideoOutputType'] = deviceVideoOutputType.index;
  3593. return map;
  3594. }
  3595. }
  3596. class GetDeviceBrandModelPageRequest extends PageRequest{
  3597. String? keyword;
  3598. GetDeviceBrandModelPageRequest({
  3599. this.keyword,
  3600. int pageIndex = 0,
  3601. int pageSize = 0,
  3602. String? token,
  3603. }) : super(
  3604. pageIndex: pageIndex,
  3605. pageSize: pageSize,
  3606. token: token,
  3607. );
  3608. factory GetDeviceBrandModelPageRequest.fromJson(Map<String, dynamic> map) {
  3609. return GetDeviceBrandModelPageRequest(
  3610. keyword: map['Keyword'],
  3611. pageIndex: map['PageIndex'],
  3612. pageSize: map['PageSize'],
  3613. token: map['Token'],
  3614. );
  3615. }
  3616. Map<String, dynamic> toJson() {
  3617. final map = super.toJson();
  3618. if(keyword != null)
  3619. map['Keyword'] = keyword;
  3620. return map;
  3621. }
  3622. }
  3623. class DeleteBrandModelOutputConfigRequest {
  3624. List<String >? brandModelCodes;
  3625. DeleteBrandModelOutputConfigRequest({
  3626. this.brandModelCodes,
  3627. });
  3628. factory DeleteBrandModelOutputConfigRequest.fromJson(Map<String, dynamic> map) {
  3629. return DeleteBrandModelOutputConfigRequest(
  3630. brandModelCodes: map['BrandModelCodes'] != null ? map['BrandModelCodes'].cast<String>().toList() : null,
  3631. );
  3632. }
  3633. Map<String, dynamic> toJson() {
  3634. final map = Map<String, dynamic>();
  3635. if(brandModelCodes != null)
  3636. map['BrandModelCodes'] = brandModelCodes;
  3637. return map;
  3638. }
  3639. }
  3640. class GetDevicePagesRequest extends PageRequest{
  3641. String? queryType;
  3642. String? keyword;
  3643. List<String >? hospitals;
  3644. String? adminName;
  3645. String? userName;
  3646. GetDevicePagesRequest({
  3647. this.queryType,
  3648. this.keyword,
  3649. this.hospitals,
  3650. this.adminName,
  3651. this.userName,
  3652. int pageIndex = 0,
  3653. int pageSize = 0,
  3654. String? token,
  3655. }) : super(
  3656. pageIndex: pageIndex,
  3657. pageSize: pageSize,
  3658. token: token,
  3659. );
  3660. factory GetDevicePagesRequest.fromJson(Map<String, dynamic> map) {
  3661. return GetDevicePagesRequest(
  3662. queryType: map['QueryType'],
  3663. keyword: map['Keyword'],
  3664. hospitals: map['Hospitals'] != null ? map['Hospitals'].cast<String>().toList() : null,
  3665. adminName: map['AdminName'],
  3666. userName: map['UserName'],
  3667. pageIndex: map['PageIndex'],
  3668. pageSize: map['PageSize'],
  3669. token: map['Token'],
  3670. );
  3671. }
  3672. Map<String, dynamic> toJson() {
  3673. final map = super.toJson();
  3674. if(queryType != null)
  3675. map['QueryType'] = queryType;
  3676. if(keyword != null)
  3677. map['Keyword'] = keyword;
  3678. if(hospitals != null)
  3679. map['Hospitals'] = hospitals;
  3680. if(adminName != null)
  3681. map['AdminName'] = adminName;
  3682. if(userName != null)
  3683. map['UserName'] = userName;
  3684. return map;
  3685. }
  3686. }
  3687. class GetDeviceTypePagesRequest extends PageRequest{
  3688. String? deviceType;
  3689. String? deviceModel;
  3690. GetDeviceTypePagesRequest({
  3691. this.deviceType,
  3692. this.deviceModel,
  3693. int pageIndex = 0,
  3694. int pageSize = 0,
  3695. String? token,
  3696. }) : super(
  3697. pageIndex: pageIndex,
  3698. pageSize: pageSize,
  3699. token: token,
  3700. );
  3701. factory GetDeviceTypePagesRequest.fromJson(Map<String, dynamic> map) {
  3702. return GetDeviceTypePagesRequest(
  3703. deviceType: map['DeviceType'],
  3704. deviceModel: map['DeviceModel'],
  3705. pageIndex: map['PageIndex'],
  3706. pageSize: map['PageSize'],
  3707. token: map['Token'],
  3708. );
  3709. }
  3710. Map<String, dynamic> toJson() {
  3711. final map = super.toJson();
  3712. if(deviceType != null)
  3713. map['DeviceType'] = deviceType;
  3714. if(deviceModel != null)
  3715. map['DeviceModel'] = deviceModel;
  3716. return map;
  3717. }
  3718. }
  3719. class GetDeviceUserPagesRequest extends PageRequest{
  3720. List<String >? deviceCodes;
  3721. String? queryType;
  3722. String? keyword;
  3723. int type;
  3724. GetDeviceUserPagesRequest({
  3725. this.deviceCodes,
  3726. this.queryType,
  3727. this.keyword,
  3728. this.type = 0,
  3729. int pageIndex = 0,
  3730. int pageSize = 0,
  3731. String? token,
  3732. }) : super(
  3733. pageIndex: pageIndex,
  3734. pageSize: pageSize,
  3735. token: token,
  3736. );
  3737. factory GetDeviceUserPagesRequest.fromJson(Map<String, dynamic> map) {
  3738. return GetDeviceUserPagesRequest(
  3739. deviceCodes: map['DeviceCodes'] != null ? map['DeviceCodes'].cast<String>().toList() : null,
  3740. queryType: map['QueryType'],
  3741. keyword: map['Keyword'],
  3742. type: map['Type'],
  3743. pageIndex: map['PageIndex'],
  3744. pageSize: map['PageSize'],
  3745. token: map['Token'],
  3746. );
  3747. }
  3748. Map<String, dynamic> toJson() {
  3749. final map = super.toJson();
  3750. if(deviceCodes != null)
  3751. map['DeviceCodes'] = deviceCodes;
  3752. if(queryType != null)
  3753. map['QueryType'] = queryType;
  3754. if(keyword != null)
  3755. map['Keyword'] = keyword;
  3756. map['Type'] = type;
  3757. return map;
  3758. }
  3759. }
  3760. class GetDistributedServerRequest extends PageRequest{
  3761. String? keyword;
  3762. GetDistributedServerRequest({
  3763. this.keyword,
  3764. int pageIndex = 0,
  3765. int pageSize = 0,
  3766. String? token,
  3767. }) : super(
  3768. pageIndex: pageIndex,
  3769. pageSize: pageSize,
  3770. token: token,
  3771. );
  3772. factory GetDistributedServerRequest.fromJson(Map<String, dynamic> map) {
  3773. return GetDistributedServerRequest(
  3774. keyword: map['Keyword'],
  3775. pageIndex: map['PageIndex'],
  3776. pageSize: map['PageSize'],
  3777. token: map['Token'],
  3778. );
  3779. }
  3780. Map<String, dynamic> toJson() {
  3781. final map = super.toJson();
  3782. if(keyword != null)
  3783. map['Keyword'] = keyword;
  3784. return map;
  3785. }
  3786. }
  3787. class GetLogPagesRequest extends PageRequest{
  3788. String? level;
  3789. String? keyWord;
  3790. String? exclude;
  3791. DateTime? startTime;
  3792. DateTime? endTime;
  3793. String? requestServerHost;
  3794. GetLogPagesRequest({
  3795. this.level,
  3796. this.keyWord,
  3797. this.exclude,
  3798. this.startTime,
  3799. this.endTime,
  3800. this.requestServerHost,
  3801. int pageIndex = 0,
  3802. int pageSize = 0,
  3803. String? token,
  3804. }) : super(
  3805. pageIndex: pageIndex,
  3806. pageSize: pageSize,
  3807. token: token,
  3808. );
  3809. factory GetLogPagesRequest.fromJson(Map<String, dynamic> map) {
  3810. return GetLogPagesRequest(
  3811. level: map['Level'],
  3812. keyWord: map['KeyWord'],
  3813. exclude: map['Exclude'],
  3814. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  3815. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  3816. requestServerHost: map['RequestServerHost'],
  3817. pageIndex: map['PageIndex'],
  3818. pageSize: map['PageSize'],
  3819. token: map['Token'],
  3820. );
  3821. }
  3822. Map<String, dynamic> toJson() {
  3823. final map = super.toJson();
  3824. if(level != null)
  3825. map['Level'] = level;
  3826. if(keyWord != null)
  3827. map['KeyWord'] = keyWord;
  3828. if(exclude != null)
  3829. map['Exclude'] = exclude;
  3830. if(startTime != null)
  3831. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  3832. if(endTime != null)
  3833. map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
  3834. if(requestServerHost != null)
  3835. map['RequestServerHost'] = requestServerHost;
  3836. return map;
  3837. }
  3838. }
  3839. class GetOrganizationCustomSettingRequest extends TokenRequest{
  3840. String? langugeKey;
  3841. String? settingModule;
  3842. String? organizationCode;
  3843. GetOrganizationCustomSettingRequest({
  3844. this.langugeKey,
  3845. this.settingModule,
  3846. this.organizationCode,
  3847. String? token,
  3848. }) : super(
  3849. token: token,
  3850. );
  3851. factory GetOrganizationCustomSettingRequest.fromJson(Map<String, dynamic> map) {
  3852. return GetOrganizationCustomSettingRequest(
  3853. langugeKey: map['LangugeKey'],
  3854. settingModule: map['SettingModule'],
  3855. organizationCode: map['OrganizationCode'],
  3856. token: map['Token'],
  3857. );
  3858. }
  3859. Map<String, dynamic> toJson() {
  3860. final map = super.toJson();
  3861. if(langugeKey != null)
  3862. map['LangugeKey'] = langugeKey;
  3863. if(settingModule != null)
  3864. map['SettingModule'] = settingModule;
  3865. if(organizationCode != null)
  3866. map['OrganizationCode'] = organizationCode;
  3867. return map;
  3868. }
  3869. }
  3870. class GetOrganizationPagesRequest extends PageRequest{
  3871. String? queryType;
  3872. String? keyword;
  3873. String? state;
  3874. String? isinvented;
  3875. GetOrganizationPagesRequest({
  3876. this.queryType,
  3877. this.keyword,
  3878. this.state,
  3879. this.isinvented,
  3880. int pageIndex = 0,
  3881. int pageSize = 0,
  3882. String? token,
  3883. }) : super(
  3884. pageIndex: pageIndex,
  3885. pageSize: pageSize,
  3886. token: token,
  3887. );
  3888. factory GetOrganizationPagesRequest.fromJson(Map<String, dynamic> map) {
  3889. return GetOrganizationPagesRequest(
  3890. queryType: map['QueryType'],
  3891. keyword: map['Keyword'],
  3892. state: map['State'],
  3893. isinvented: map['Isinvented'],
  3894. pageIndex: map['PageIndex'],
  3895. pageSize: map['PageSize'],
  3896. token: map['Token'],
  3897. );
  3898. }
  3899. Map<String, dynamic> toJson() {
  3900. final map = super.toJson();
  3901. if(queryType != null)
  3902. map['QueryType'] = queryType;
  3903. if(keyword != null)
  3904. map['Keyword'] = keyword;
  3905. if(state != null)
  3906. map['State'] = state;
  3907. if(isinvented != null)
  3908. map['Isinvented'] = isinvented;
  3909. return map;
  3910. }
  3911. }
  3912. class GetOrganizationRequest extends TokenRequest{
  3913. String? organizationCode;
  3914. GetOrganizationRequest({
  3915. this.organizationCode,
  3916. String? token,
  3917. }) : super(
  3918. token: token,
  3919. );
  3920. factory GetOrganizationRequest.fromJson(Map<String, dynamic> map) {
  3921. return GetOrganizationRequest(
  3922. organizationCode: map['OrganizationCode'],
  3923. token: map['Token'],
  3924. );
  3925. }
  3926. Map<String, dynamic> toJson() {
  3927. final map = super.toJson();
  3928. if(organizationCode != null)
  3929. map['OrganizationCode'] = organizationCode;
  3930. return map;
  3931. }
  3932. }
  3933. class GetOrganizationSettingRequest extends TokenRequest{
  3934. OrganizationSettingTypeEnum settingType;
  3935. String? organizationCode;
  3936. GetOrganizationSettingRequest({
  3937. this.settingType = OrganizationSettingTypeEnum.Patient,
  3938. this.organizationCode,
  3939. String? token,
  3940. }) : super(
  3941. token: token,
  3942. );
  3943. factory GetOrganizationSettingRequest.fromJson(Map<String, dynamic> map) {
  3944. return GetOrganizationSettingRequest(
  3945. settingType: OrganizationSettingTypeEnum.values.firstWhere((e) => e.index == map['SettingType']),
  3946. organizationCode: map['OrganizationCode'],
  3947. token: map['Token'],
  3948. );
  3949. }
  3950. Map<String, dynamic> toJson() {
  3951. final map = super.toJson();
  3952. map['SettingType'] = settingType.index;
  3953. if(organizationCode != null)
  3954. map['OrganizationCode'] = organizationCode;
  3955. return map;
  3956. }
  3957. }
  3958. class GetOrganizationUserPagesRequest extends PageRequest{
  3959. String? organizationCode;
  3960. String? queryType;
  3961. String? keyword;
  3962. GetOrganizationUserPagesRequest({
  3963. this.organizationCode,
  3964. this.queryType,
  3965. this.keyword,
  3966. int pageIndex = 0,
  3967. int pageSize = 0,
  3968. String? token,
  3969. }) : super(
  3970. pageIndex: pageIndex,
  3971. pageSize: pageSize,
  3972. token: token,
  3973. );
  3974. factory GetOrganizationUserPagesRequest.fromJson(Map<String, dynamic> map) {
  3975. return GetOrganizationUserPagesRequest(
  3976. organizationCode: map['OrganizationCode'],
  3977. queryType: map['QueryType'],
  3978. keyword: map['Keyword'],
  3979. pageIndex: map['PageIndex'],
  3980. pageSize: map['PageSize'],
  3981. token: map['Token'],
  3982. );
  3983. }
  3984. Map<String, dynamic> toJson() {
  3985. final map = super.toJson();
  3986. if(organizationCode != null)
  3987. map['OrganizationCode'] = organizationCode;
  3988. if(queryType != null)
  3989. map['QueryType'] = queryType;
  3990. if(keyword != null)
  3991. map['Keyword'] = keyword;
  3992. return map;
  3993. }
  3994. }
  3995. class GetRolePagesRequest extends PageRequest{
  3996. String? roleName;
  3997. GetRolePagesRequest({
  3998. this.roleName,
  3999. int pageIndex = 0,
  4000. int pageSize = 0,
  4001. String? token,
  4002. }) : super(
  4003. pageIndex: pageIndex,
  4004. pageSize: pageSize,
  4005. token: token,
  4006. );
  4007. factory GetRolePagesRequest.fromJson(Map<String, dynamic> map) {
  4008. return GetRolePagesRequest(
  4009. roleName: map['RoleName'],
  4010. pageIndex: map['PageIndex'],
  4011. pageSize: map['PageSize'],
  4012. token: map['Token'],
  4013. );
  4014. }
  4015. Map<String, dynamic> toJson() {
  4016. final map = super.toJson();
  4017. if(roleName != null)
  4018. map['RoleName'] = roleName;
  4019. return map;
  4020. }
  4021. }
  4022. class GetShareExamUrlRequest {
  4023. String? requestUrl;
  4024. String? languageCode;
  4025. GetShareExamUrlRequest({
  4026. this.requestUrl,
  4027. this.languageCode,
  4028. });
  4029. factory GetShareExamUrlRequest.fromJson(Map<String, dynamic> map) {
  4030. return GetShareExamUrlRequest(
  4031. requestUrl: map['RequestUrl'],
  4032. languageCode: map['LanguageCode'],
  4033. );
  4034. }
  4035. Map<String, dynamic> toJson() {
  4036. final map = Map<String, dynamic>();
  4037. if(requestUrl != null)
  4038. map['RequestUrl'] = requestUrl;
  4039. if(languageCode != null)
  4040. map['LanguageCode'] = languageCode;
  4041. return map;
  4042. }
  4043. }
  4044. class GetThesaurusItemRequest extends TokenRequest{
  4045. String? thesaurusCode;
  4046. String? thesaurusItemCode;
  4047. GetThesaurusItemRequest({
  4048. this.thesaurusCode,
  4049. this.thesaurusItemCode,
  4050. String? token,
  4051. }) : super(
  4052. token: token,
  4053. );
  4054. factory GetThesaurusItemRequest.fromJson(Map<String, dynamic> map) {
  4055. return GetThesaurusItemRequest(
  4056. thesaurusCode: map['ThesaurusCode'],
  4057. thesaurusItemCode: map['ThesaurusItemCode'],
  4058. token: map['Token'],
  4059. );
  4060. }
  4061. Map<String, dynamic> toJson() {
  4062. final map = super.toJson();
  4063. if(thesaurusCode != null)
  4064. map['ThesaurusCode'] = thesaurusCode;
  4065. if(thesaurusItemCode != null)
  4066. map['ThesaurusItemCode'] = thesaurusItemCode;
  4067. return map;
  4068. }
  4069. }
  4070. class GetThirdPartyInfoPagesRequest extends PageRequest{
  4071. String? name;
  4072. String? isValid;
  4073. GetThirdPartyInfoPagesRequest({
  4074. this.name,
  4075. this.isValid,
  4076. int pageIndex = 0,
  4077. int pageSize = 0,
  4078. String? token,
  4079. }) : super(
  4080. pageIndex: pageIndex,
  4081. pageSize: pageSize,
  4082. token: token,
  4083. );
  4084. factory GetThirdPartyInfoPagesRequest.fromJson(Map<String, dynamic> map) {
  4085. return GetThirdPartyInfoPagesRequest(
  4086. name: map['Name'],
  4087. isValid: map['IsValid'],
  4088. pageIndex: map['PageIndex'],
  4089. pageSize: map['PageSize'],
  4090. token: map['Token'],
  4091. );
  4092. }
  4093. Map<String, dynamic> toJson() {
  4094. final map = super.toJson();
  4095. if(name != null)
  4096. map['Name'] = name;
  4097. if(isValid != null)
  4098. map['IsValid'] = isValid;
  4099. return map;
  4100. }
  4101. }
  4102. class GetUserPagesRequest extends PageRequest{
  4103. String? queryType;
  4104. String? keyword;
  4105. String? queryState;
  4106. GetUserPagesRequest({
  4107. this.queryType,
  4108. this.keyword,
  4109. this.queryState,
  4110. int pageIndex = 0,
  4111. int pageSize = 0,
  4112. String? token,
  4113. }) : super(
  4114. pageIndex: pageIndex,
  4115. pageSize: pageSize,
  4116. token: token,
  4117. );
  4118. factory GetUserPagesRequest.fromJson(Map<String, dynamic> map) {
  4119. return GetUserPagesRequest(
  4120. queryType: map['QueryType'],
  4121. keyword: map['Keyword'],
  4122. queryState: map['QueryState'],
  4123. pageIndex: map['PageIndex'],
  4124. pageSize: map['PageSize'],
  4125. token: map['Token'],
  4126. );
  4127. }
  4128. Map<String, dynamic> toJson() {
  4129. final map = super.toJson();
  4130. if(queryType != null)
  4131. map['QueryType'] = queryType;
  4132. if(keyword != null)
  4133. map['Keyword'] = keyword;
  4134. if(queryState != null)
  4135. map['QueryState'] = queryState;
  4136. return map;
  4137. }
  4138. }
  4139. class ImitateLoginRequest {
  4140. String? account;
  4141. String? password;
  4142. AccountType accountType;
  4143. ImitateLoginRequest({
  4144. this.account,
  4145. this.password,
  4146. this.accountType = AccountType.Admin,
  4147. });
  4148. factory ImitateLoginRequest.fromJson(Map<String, dynamic> map) {
  4149. return ImitateLoginRequest(
  4150. account: map['Account'],
  4151. password: map['Password'],
  4152. accountType: AccountType.values.firstWhere((e) => e.index == map['AccountType']),
  4153. );
  4154. }
  4155. Map<String, dynamic> toJson() {
  4156. final map = Map<String, dynamic>();
  4157. if(account != null)
  4158. map['Account'] = account;
  4159. if(password != null)
  4160. map['Password'] = password;
  4161. map['AccountType'] = accountType.index;
  4162. return map;
  4163. }
  4164. }
  4165. class ImitateLoginResult {
  4166. String? clientId;
  4167. ImitateLoginResult({
  4168. this.clientId,
  4169. });
  4170. factory ImitateLoginResult.fromJson(Map<String, dynamic> map) {
  4171. return ImitateLoginResult(
  4172. clientId: map['ClientId'],
  4173. );
  4174. }
  4175. Map<String, dynamic> toJson() {
  4176. final map = Map<String, dynamic>();
  4177. if(clientId != null)
  4178. map['ClientId'] = clientId;
  4179. return map;
  4180. }
  4181. }
  4182. class LoginRequest {
  4183. String? adminName;
  4184. String? password;
  4185. LoginRequest({
  4186. this.adminName,
  4187. this.password,
  4188. });
  4189. factory LoginRequest.fromJson(Map<String, dynamic> map) {
  4190. return LoginRequest(
  4191. adminName: map['AdminName'],
  4192. password: map['Password'],
  4193. );
  4194. }
  4195. Map<String, dynamic> toJson() {
  4196. final map = Map<String, dynamic>();
  4197. if(adminName != null)
  4198. map['AdminName'] = adminName;
  4199. if(password != null)
  4200. map['Password'] = password;
  4201. return map;
  4202. }
  4203. }
  4204. enum ProductStatusEnum {
  4205. SoldOut,
  4206. Putaway,
  4207. }
  4208. enum ProductTypeEnum {
  4209. Course,
  4210. Other,
  4211. }
  4212. class ManageCreateProductRequest extends TokenRequest{
  4213. String? name;
  4214. String? headImage;
  4215. double price;
  4216. ProductStatusEnum status;
  4217. ProductTypeEnum productType;
  4218. String? belongerCode;
  4219. String? relationInfo;
  4220. ManageCreateProductRequest({
  4221. this.name,
  4222. this.headImage,
  4223. this.price = 0,
  4224. this.status = ProductStatusEnum.SoldOut,
  4225. this.productType = ProductTypeEnum.Course,
  4226. this.belongerCode,
  4227. this.relationInfo,
  4228. String? token,
  4229. }) : super(
  4230. token: token,
  4231. );
  4232. factory ManageCreateProductRequest.fromJson(Map<String, dynamic> map) {
  4233. return ManageCreateProductRequest(
  4234. name: map['Name'],
  4235. headImage: map['HeadImage'],
  4236. price: double.parse(map['Price'].toString()),
  4237. status: ProductStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  4238. productType: ProductTypeEnum.values.firstWhere((e) => e.index == map['ProductType']),
  4239. belongerCode: map['BelongerCode'],
  4240. relationInfo: map['RelationInfo'],
  4241. token: map['Token'],
  4242. );
  4243. }
  4244. Map<String, dynamic> toJson() {
  4245. final map = super.toJson();
  4246. if(name != null)
  4247. map['Name'] = name;
  4248. if(headImage != null)
  4249. map['HeadImage'] = headImage;
  4250. map['Price'] = price;
  4251. map['Status'] = status.index;
  4252. map['ProductType'] = productType.index;
  4253. if(belongerCode != null)
  4254. map['BelongerCode'] = belongerCode;
  4255. if(relationInfo != null)
  4256. map['RelationInfo'] = relationInfo;
  4257. return map;
  4258. }
  4259. }
  4260. class ManageGetOrderDetailRequest extends TokenRequest{
  4261. String? orderCode;
  4262. ManageGetOrderDetailRequest({
  4263. this.orderCode,
  4264. String? token,
  4265. }) : super(
  4266. token: token,
  4267. );
  4268. factory ManageGetOrderDetailRequest.fromJson(Map<String, dynamic> map) {
  4269. return ManageGetOrderDetailRequest(
  4270. orderCode: map['OrderCode'],
  4271. token: map['Token'],
  4272. );
  4273. }
  4274. Map<String, dynamic> toJson() {
  4275. final map = super.toJson();
  4276. if(orderCode != null)
  4277. map['OrderCode'] = orderCode;
  4278. return map;
  4279. }
  4280. }
  4281. class ManageGetOrderPagesRequest extends PageRequest{
  4282. String? keyWord;
  4283. ManageGetOrderPagesRequest({
  4284. this.keyWord,
  4285. int pageIndex = 0,
  4286. int pageSize = 0,
  4287. String? token,
  4288. }) : super(
  4289. pageIndex: pageIndex,
  4290. pageSize: pageSize,
  4291. token: token,
  4292. );
  4293. factory ManageGetOrderPagesRequest.fromJson(Map<String, dynamic> map) {
  4294. return ManageGetOrderPagesRequest(
  4295. keyWord: map['KeyWord'],
  4296. pageIndex: map['PageIndex'],
  4297. pageSize: map['PageSize'],
  4298. token: map['Token'],
  4299. );
  4300. }
  4301. Map<String, dynamic> toJson() {
  4302. final map = super.toJson();
  4303. if(keyWord != null)
  4304. map['KeyWord'] = keyWord;
  4305. return map;
  4306. }
  4307. }
  4308. class ManageGetPaymentRecordsRequest extends PageRequest{
  4309. String? keyword;
  4310. ManageGetPaymentRecordsRequest({
  4311. this.keyword,
  4312. int pageIndex = 0,
  4313. int pageSize = 0,
  4314. String? token,
  4315. }) : super(
  4316. pageIndex: pageIndex,
  4317. pageSize: pageSize,
  4318. token: token,
  4319. );
  4320. factory ManageGetPaymentRecordsRequest.fromJson(Map<String, dynamic> map) {
  4321. return ManageGetPaymentRecordsRequest(
  4322. keyword: map['Keyword'],
  4323. pageIndex: map['PageIndex'],
  4324. pageSize: map['PageSize'],
  4325. token: map['Token'],
  4326. );
  4327. }
  4328. Map<String, dynamic> toJson() {
  4329. final map = super.toJson();
  4330. if(keyword != null)
  4331. map['Keyword'] = keyword;
  4332. return map;
  4333. }
  4334. }
  4335. class ManageUpdateProductRequest extends TokenRequest{
  4336. String? code;
  4337. String? name;
  4338. String? headImage;
  4339. double price;
  4340. ProductStatusEnum status;
  4341. ProductTypeEnum productType;
  4342. String? belongerCode;
  4343. String? relationInfo;
  4344. ManageUpdateProductRequest({
  4345. this.code,
  4346. this.name,
  4347. this.headImage,
  4348. this.price = 0,
  4349. this.status = ProductStatusEnum.SoldOut,
  4350. this.productType = ProductTypeEnum.Course,
  4351. this.belongerCode,
  4352. this.relationInfo,
  4353. String? token,
  4354. }) : super(
  4355. token: token,
  4356. );
  4357. factory ManageUpdateProductRequest.fromJson(Map<String, dynamic> map) {
  4358. return ManageUpdateProductRequest(
  4359. code: map['Code'],
  4360. name: map['Name'],
  4361. headImage: map['HeadImage'],
  4362. price: double.parse(map['Price'].toString()),
  4363. status: ProductStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  4364. productType: ProductTypeEnum.values.firstWhere((e) => e.index == map['ProductType']),
  4365. belongerCode: map['BelongerCode'],
  4366. relationInfo: map['RelationInfo'],
  4367. token: map['Token'],
  4368. );
  4369. }
  4370. Map<String, dynamic> toJson() {
  4371. final map = super.toJson();
  4372. if(code != null)
  4373. map['Code'] = code;
  4374. if(name != null)
  4375. map['Name'] = name;
  4376. if(headImage != null)
  4377. map['HeadImage'] = headImage;
  4378. map['Price'] = price;
  4379. map['Status'] = status.index;
  4380. map['ProductType'] = productType.index;
  4381. if(belongerCode != null)
  4382. map['BelongerCode'] = belongerCode;
  4383. if(relationInfo != null)
  4384. map['RelationInfo'] = relationInfo;
  4385. return map;
  4386. }
  4387. }
  4388. class BaseFeatureInfoDTO extends BaseDTO{
  4389. String? featureCode;
  4390. String? featureName;
  4391. String? fatherCode;
  4392. String? uniqueCode;
  4393. BaseFeatureInfoDTO({
  4394. this.featureCode,
  4395. this.featureName,
  4396. this.fatherCode,
  4397. this.uniqueCode,
  4398. DateTime? createTime,
  4399. DateTime? updateTime,
  4400. }) : super(
  4401. createTime: createTime,
  4402. updateTime: updateTime,
  4403. );
  4404. factory BaseFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  4405. return BaseFeatureInfoDTO(
  4406. featureCode: map['FeatureCode'],
  4407. featureName: map['FeatureName'],
  4408. fatherCode: map['FatherCode'],
  4409. uniqueCode: map['UniqueCode'],
  4410. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4411. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4412. );
  4413. }
  4414. Map<String, dynamic> toJson() {
  4415. final map = super.toJson();
  4416. if(featureCode != null)
  4417. map['FeatureCode'] = featureCode;
  4418. if(featureName != null)
  4419. map['FeatureName'] = featureName;
  4420. if(fatherCode != null)
  4421. map['FatherCode'] = fatherCode;
  4422. if(uniqueCode != null)
  4423. map['UniqueCode'] = uniqueCode;
  4424. return map;
  4425. }
  4426. }
  4427. class AdminFeatureInfoDTO extends BaseFeatureInfoDTO{
  4428. AdminFeatureInfoDTO({
  4429. String? featureCode,
  4430. String? featureName,
  4431. String? fatherCode,
  4432. String? uniqueCode,
  4433. DateTime? createTime,
  4434. DateTime? updateTime,
  4435. }) : super(
  4436. featureCode: featureCode,
  4437. featureName: featureName,
  4438. fatherCode: fatherCode,
  4439. uniqueCode: uniqueCode,
  4440. createTime: createTime,
  4441. updateTime: updateTime,
  4442. );
  4443. factory AdminFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  4444. return AdminFeatureInfoDTO(
  4445. featureCode: map['FeatureCode'],
  4446. featureName: map['FeatureName'],
  4447. fatherCode: map['FatherCode'],
  4448. uniqueCode: map['UniqueCode'],
  4449. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4450. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4451. );
  4452. }
  4453. Map<String, dynamic> toJson() {
  4454. final map = super.toJson();
  4455. return map;
  4456. }
  4457. }
  4458. class ModifyAdminFeatureRequest extends AdminFeatureInfoDTO{
  4459. String? token;
  4460. ModifyAdminFeatureRequest({
  4461. this.token,
  4462. String? featureCode,
  4463. String? featureName,
  4464. String? fatherCode,
  4465. String? uniqueCode,
  4466. DateTime? createTime,
  4467. DateTime? updateTime,
  4468. }) : super(
  4469. featureCode: featureCode,
  4470. featureName: featureName,
  4471. fatherCode: fatherCode,
  4472. uniqueCode: uniqueCode,
  4473. createTime: createTime,
  4474. updateTime: updateTime,
  4475. );
  4476. factory ModifyAdminFeatureRequest.fromJson(Map<String, dynamic> map) {
  4477. return ModifyAdminFeatureRequest(
  4478. token: map['Token'],
  4479. featureCode: map['FeatureCode'],
  4480. featureName: map['FeatureName'],
  4481. fatherCode: map['FatherCode'],
  4482. uniqueCode: map['UniqueCode'],
  4483. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4484. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4485. );
  4486. }
  4487. Map<String, dynamic> toJson() {
  4488. final map = super.toJson();
  4489. if(token != null)
  4490. map['Token'] = token;
  4491. return map;
  4492. }
  4493. }
  4494. class ModifyAdminPasswordRequest extends TokenRequest{
  4495. String? adminCode;
  4496. String? oldPassword;
  4497. String? newPassword;
  4498. ModifyAdminPasswordRequest({
  4499. this.adminCode,
  4500. this.oldPassword,
  4501. this.newPassword,
  4502. String? token,
  4503. }) : super(
  4504. token: token,
  4505. );
  4506. factory ModifyAdminPasswordRequest.fromJson(Map<String, dynamic> map) {
  4507. return ModifyAdminPasswordRequest(
  4508. adminCode: map['AdminCode'],
  4509. oldPassword: map['OldPassword'],
  4510. newPassword: map['NewPassword'],
  4511. token: map['Token'],
  4512. );
  4513. }
  4514. Map<String, dynamic> toJson() {
  4515. final map = super.toJson();
  4516. if(adminCode != null)
  4517. map['AdminCode'] = adminCode;
  4518. if(oldPassword != null)
  4519. map['OldPassword'] = oldPassword;
  4520. if(newPassword != null)
  4521. map['NewPassword'] = newPassword;
  4522. return map;
  4523. }
  4524. }
  4525. class ClearLogOperateDTO {
  4526. String? serverHost;
  4527. DateTime? lastClearTime;
  4528. DateTime? lastClearOperateTime;
  4529. ClearLogOperateDTO({
  4530. this.serverHost,
  4531. this.lastClearTime,
  4532. this.lastClearOperateTime,
  4533. });
  4534. factory ClearLogOperateDTO.fromJson(Map<String, dynamic> map) {
  4535. return ClearLogOperateDTO(
  4536. serverHost: map['ServerHost'],
  4537. lastClearTime: map['LastClearTime'] != null ? DateTime.parse(map['LastClearTime']) : null,
  4538. lastClearOperateTime: map['LastClearOperateTime'] != null ? DateTime.parse(map['LastClearOperateTime']) : null,
  4539. );
  4540. }
  4541. Map<String, dynamic> toJson() {
  4542. final map = Map<String, dynamic>();
  4543. if(serverHost != null)
  4544. map['ServerHost'] = serverHost;
  4545. if(lastClearTime != null)
  4546. map['LastClearTime'] = JsonRpcUtils.dateFormat(lastClearTime!);
  4547. if(lastClearOperateTime != null)
  4548. map['LastClearOperateTime'] = JsonRpcUtils.dateFormat(lastClearOperateTime!);
  4549. return map;
  4550. }
  4551. }
  4552. class AdminInfoDTO extends BaseDTO{
  4553. String? adminCode;
  4554. String? fatherCode;
  4555. String? adminName;
  4556. String? fullName;
  4557. String? secretPassword;
  4558. String? headImageToken;
  4559. String? licenseKey;
  4560. String? lastIP;
  4561. String? phone;
  4562. String? email;
  4563. List<String >? roleCodes;
  4564. LoginLockInfoDTO? loginLockInfo;
  4565. DateTime? passwordUpdateTime;
  4566. List<String >? passwordRecords;
  4567. List<ClearLogOperateDTO >? clearLogOperateList;
  4568. AdminInfoDTO({
  4569. this.adminCode,
  4570. this.fatherCode,
  4571. this.adminName,
  4572. this.fullName,
  4573. this.secretPassword,
  4574. this.headImageToken,
  4575. this.licenseKey,
  4576. this.lastIP,
  4577. this.phone,
  4578. this.email,
  4579. this.roleCodes,
  4580. this.loginLockInfo,
  4581. this.passwordUpdateTime,
  4582. this.passwordRecords,
  4583. this.clearLogOperateList,
  4584. DateTime? createTime,
  4585. DateTime? updateTime,
  4586. }) : super(
  4587. createTime: createTime,
  4588. updateTime: updateTime,
  4589. );
  4590. factory AdminInfoDTO.fromJson(Map<String, dynamic> map) {
  4591. return AdminInfoDTO(
  4592. adminCode: map['AdminCode'],
  4593. fatherCode: map['FatherCode'],
  4594. adminName: map['AdminName'],
  4595. fullName: map['FullName'],
  4596. secretPassword: map['SecretPassword'],
  4597. headImageToken: map['HeadImageToken'],
  4598. licenseKey: map['LicenseKey'],
  4599. lastIP: map['LastIP'],
  4600. phone: map['Phone'],
  4601. email: map['Email'],
  4602. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  4603. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  4604. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  4605. passwordRecords: map['PasswordRecords'] != null ? map['PasswordRecords'].cast<String>().toList() : null,
  4606. clearLogOperateList: map['ClearLogOperateList'] != null ? (map['ClearLogOperateList'] as List).map((e)=>ClearLogOperateDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4607. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4608. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4609. );
  4610. }
  4611. Map<String, dynamic> toJson() {
  4612. final map = super.toJson();
  4613. if(adminCode != null)
  4614. map['AdminCode'] = adminCode;
  4615. if(fatherCode != null)
  4616. map['FatherCode'] = fatherCode;
  4617. if(adminName != null)
  4618. map['AdminName'] = adminName;
  4619. if(fullName != null)
  4620. map['FullName'] = fullName;
  4621. if(secretPassword != null)
  4622. map['SecretPassword'] = secretPassword;
  4623. if(headImageToken != null)
  4624. map['HeadImageToken'] = headImageToken;
  4625. if(licenseKey != null)
  4626. map['LicenseKey'] = licenseKey;
  4627. if(lastIP != null)
  4628. map['LastIP'] = lastIP;
  4629. if(phone != null)
  4630. map['Phone'] = phone;
  4631. if(email != null)
  4632. map['Email'] = email;
  4633. if(roleCodes != null)
  4634. map['RoleCodes'] = roleCodes;
  4635. if(loginLockInfo != null)
  4636. map['LoginLockInfo'] = loginLockInfo;
  4637. if(passwordUpdateTime != null)
  4638. map['PasswordUpdateTime'] = JsonRpcUtils.dateFormat(passwordUpdateTime!);
  4639. if(passwordRecords != null)
  4640. map['PasswordRecords'] = passwordRecords;
  4641. if(clearLogOperateList != null)
  4642. map['ClearLogOperateList'] = clearLogOperateList;
  4643. return map;
  4644. }
  4645. }
  4646. class ModifyAdminRequest extends AdminInfoDTO{
  4647. String? token;
  4648. ModifyAdminRequest({
  4649. this.token,
  4650. String? adminCode,
  4651. String? fatherCode,
  4652. String? adminName,
  4653. String? fullName,
  4654. String? secretPassword,
  4655. String? headImageToken,
  4656. String? licenseKey,
  4657. String? lastIP,
  4658. String? phone,
  4659. String? email,
  4660. List<String >? roleCodes,
  4661. LoginLockInfoDTO? loginLockInfo,
  4662. DateTime? passwordUpdateTime,
  4663. List<String >? passwordRecords,
  4664. List<ClearLogOperateDTO >? clearLogOperateList,
  4665. DateTime? createTime,
  4666. DateTime? updateTime,
  4667. }) : super(
  4668. adminCode: adminCode,
  4669. fatherCode: fatherCode,
  4670. adminName: adminName,
  4671. fullName: fullName,
  4672. secretPassword: secretPassword,
  4673. headImageToken: headImageToken,
  4674. licenseKey: licenseKey,
  4675. lastIP: lastIP,
  4676. phone: phone,
  4677. email: email,
  4678. roleCodes: roleCodes,
  4679. loginLockInfo: loginLockInfo,
  4680. passwordUpdateTime: passwordUpdateTime,
  4681. passwordRecords: passwordRecords,
  4682. clearLogOperateList: clearLogOperateList,
  4683. createTime: createTime,
  4684. updateTime: updateTime,
  4685. );
  4686. factory ModifyAdminRequest.fromJson(Map<String, dynamic> map) {
  4687. return ModifyAdminRequest(
  4688. token: map['Token'],
  4689. adminCode: map['AdminCode'],
  4690. fatherCode: map['FatherCode'],
  4691. adminName: map['AdminName'],
  4692. fullName: map['FullName'],
  4693. secretPassword: map['SecretPassword'],
  4694. headImageToken: map['HeadImageToken'],
  4695. licenseKey: map['LicenseKey'],
  4696. lastIP: map['LastIP'],
  4697. phone: map['Phone'],
  4698. email: map['Email'],
  4699. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  4700. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  4701. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  4702. passwordRecords: map['PasswordRecords'] != null ? map['PasswordRecords'].cast<String>().toList() : null,
  4703. clearLogOperateList: map['ClearLogOperateList'] != null ? (map['ClearLogOperateList'] as List).map((e)=>ClearLogOperateDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4704. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4705. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4706. );
  4707. }
  4708. Map<String, dynamic> toJson() {
  4709. final map = super.toJson();
  4710. if(token != null)
  4711. map['Token'] = token;
  4712. return map;
  4713. }
  4714. }
  4715. class AdminRoleDTO extends BaseRoleDTO{
  4716. String? adminGroupCode;
  4717. int adminNum;
  4718. AdminRoleDTO({
  4719. this.adminGroupCode,
  4720. this.adminNum = 0,
  4721. String? roleCode,
  4722. String? roleName,
  4723. String? description,
  4724. List<UserRoleLanguageConfigDTO >? languageConfigs,
  4725. DateTime? createTime,
  4726. DateTime? updateTime,
  4727. }) : super(
  4728. roleCode: roleCode,
  4729. roleName: roleName,
  4730. description: description,
  4731. languageConfigs: languageConfigs,
  4732. createTime: createTime,
  4733. updateTime: updateTime,
  4734. );
  4735. factory AdminRoleDTO.fromJson(Map<String, dynamic> map) {
  4736. return AdminRoleDTO(
  4737. adminGroupCode: map['AdminGroupCode'],
  4738. adminNum: map['AdminNum'],
  4739. roleCode: map['RoleCode'],
  4740. roleName: map['RoleName'],
  4741. description: map['Description'],
  4742. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4743. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4744. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4745. );
  4746. }
  4747. Map<String, dynamic> toJson() {
  4748. final map = super.toJson();
  4749. if(adminGroupCode != null)
  4750. map['AdminGroupCode'] = adminGroupCode;
  4751. map['AdminNum'] = adminNum;
  4752. return map;
  4753. }
  4754. }
  4755. class ModifyAdminRoleInfoRequest extends AdminRoleDTO{
  4756. String? token;
  4757. List<String >? featuresCodeList;
  4758. ModifyAdminRoleInfoRequest({
  4759. this.token,
  4760. this.featuresCodeList,
  4761. String? adminGroupCode,
  4762. int adminNum = 0,
  4763. String? roleCode,
  4764. String? roleName,
  4765. String? description,
  4766. List<UserRoleLanguageConfigDTO >? languageConfigs,
  4767. DateTime? createTime,
  4768. DateTime? updateTime,
  4769. }) : super(
  4770. adminGroupCode: adminGroupCode,
  4771. adminNum: adminNum,
  4772. roleCode: roleCode,
  4773. roleName: roleName,
  4774. description: description,
  4775. languageConfigs: languageConfigs,
  4776. createTime: createTime,
  4777. updateTime: updateTime,
  4778. );
  4779. factory ModifyAdminRoleInfoRequest.fromJson(Map<String, dynamic> map) {
  4780. return ModifyAdminRoleInfoRequest(
  4781. token: map['Token'],
  4782. featuresCodeList: map['FeaturesCodeList'] != null ? map['FeaturesCodeList'].cast<String>().toList() : null,
  4783. adminGroupCode: map['AdminGroupCode'],
  4784. adminNum: map['AdminNum'],
  4785. roleCode: map['RoleCode'],
  4786. roleName: map['RoleName'],
  4787. description: map['Description'],
  4788. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4789. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4790. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4791. );
  4792. }
  4793. Map<String, dynamic> toJson() {
  4794. final map = super.toJson();
  4795. if(token != null)
  4796. map['Token'] = token;
  4797. if(featuresCodeList != null)
  4798. map['FeaturesCodeList'] = featuresCodeList;
  4799. return map;
  4800. }
  4801. }
  4802. class ModifyAdminsRolesRequest {
  4803. String? token;
  4804. List<String >? adminCodes;
  4805. List<String >? adminRoleCodes;
  4806. ModifyAdminsRolesRequest({
  4807. this.token,
  4808. this.adminCodes,
  4809. this.adminRoleCodes,
  4810. });
  4811. factory ModifyAdminsRolesRequest.fromJson(Map<String, dynamic> map) {
  4812. return ModifyAdminsRolesRequest(
  4813. token: map['Token'],
  4814. adminCodes: map['AdminCodes'] != null ? map['AdminCodes'].cast<String>().toList() : null,
  4815. adminRoleCodes: map['AdminRoleCodes'] != null ? map['AdminRoleCodes'].cast<String>().toList() : null,
  4816. );
  4817. }
  4818. Map<String, dynamic> toJson() {
  4819. final map = Map<String, dynamic>();
  4820. if(token != null)
  4821. map['Token'] = token;
  4822. if(adminCodes != null)
  4823. map['AdminCodes'] = adminCodes;
  4824. if(adminRoleCodes != null)
  4825. map['AdminRoleCodes'] = adminRoleCodes;
  4826. return map;
  4827. }
  4828. }
  4829. class ModifyDeviceRequest2 extends DeviceInfoDTO{
  4830. String? token;
  4831. ModifyDeviceRequest2({
  4832. this.token,
  4833. String? deviceCode,
  4834. String? serialNumber,
  4835. String? password,
  4836. String? name,
  4837. String? description,
  4838. String? deviceModel,
  4839. String? deviceType,
  4840. String? headPicUrl,
  4841. String? deviceSoftwareVersion,
  4842. String? sDKSoftwareVersion,
  4843. String? organizationCode,
  4844. String? departmentCode,
  4845. String? shortCode,
  4846. bool isAutoShared = false,
  4847. bool isEncryptedShow = false,
  4848. DateTime? lastLoginTime,
  4849. String? systemVersion,
  4850. String? cPUModel,
  4851. String? systemLanguage,
  4852. List<String >? diagnosisModules,
  4853. List<String >? reportPosterCodes,
  4854. bool mergedChannel = false,
  4855. int mergedVideoOutputWidth = 0,
  4856. int mergedVideoOutputHeight = 0,
  4857. List<VideoDeviceDTO >? videoDeviceInfos,
  4858. DownloadModeSettingEnum downloadModeSetting = DownloadModeSettingEnum.Auto,
  4859. bool liveOpened = false,
  4860. DateTime? createTime,
  4861. DateTime? updateTime,
  4862. }) : super(
  4863. deviceCode: deviceCode,
  4864. serialNumber: serialNumber,
  4865. password: password,
  4866. name: name,
  4867. description: description,
  4868. deviceModel: deviceModel,
  4869. deviceType: deviceType,
  4870. headPicUrl: headPicUrl,
  4871. deviceSoftwareVersion: deviceSoftwareVersion,
  4872. sDKSoftwareVersion: sDKSoftwareVersion,
  4873. organizationCode: organizationCode,
  4874. departmentCode: departmentCode,
  4875. shortCode: shortCode,
  4876. isAutoShared: isAutoShared,
  4877. isEncryptedShow: isEncryptedShow,
  4878. lastLoginTime: lastLoginTime,
  4879. systemVersion: systemVersion,
  4880. cPUModel: cPUModel,
  4881. systemLanguage: systemLanguage,
  4882. diagnosisModules: diagnosisModules,
  4883. reportPosterCodes: reportPosterCodes,
  4884. mergedChannel: mergedChannel,
  4885. mergedVideoOutputWidth: mergedVideoOutputWidth,
  4886. mergedVideoOutputHeight: mergedVideoOutputHeight,
  4887. videoDeviceInfos: videoDeviceInfos,
  4888. downloadModeSetting: downloadModeSetting,
  4889. liveOpened: liveOpened,
  4890. createTime: createTime,
  4891. updateTime: updateTime,
  4892. );
  4893. factory ModifyDeviceRequest2.fromJson(Map<String, dynamic> map) {
  4894. return ModifyDeviceRequest2(
  4895. token: map['Token'],
  4896. deviceCode: map['DeviceCode'],
  4897. serialNumber: map['SerialNumber'],
  4898. password: map['Password'],
  4899. name: map['Name'],
  4900. description: map['Description'],
  4901. deviceModel: map['DeviceModel'],
  4902. deviceType: map['DeviceType'],
  4903. headPicUrl: map['HeadPicUrl'],
  4904. deviceSoftwareVersion: map['DeviceSoftwareVersion'],
  4905. sDKSoftwareVersion: map['SDKSoftwareVersion'],
  4906. organizationCode: map['OrganizationCode'],
  4907. departmentCode: map['DepartmentCode'],
  4908. shortCode: map['ShortCode'],
  4909. isAutoShared: map['IsAutoShared'],
  4910. isEncryptedShow: map['IsEncryptedShow'],
  4911. lastLoginTime: map['LastLoginTime'] != null ? DateTime.parse(map['LastLoginTime']) : null,
  4912. systemVersion: map['SystemVersion'],
  4913. cPUModel: map['CPUModel'],
  4914. systemLanguage: map['SystemLanguage'],
  4915. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  4916. reportPosterCodes: map['ReportPosterCodes'] != null ? map['ReportPosterCodes'].cast<String>().toList() : null,
  4917. mergedChannel: map['MergedChannel'],
  4918. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  4919. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  4920. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4921. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  4922. liveOpened: map['LiveOpened'],
  4923. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4924. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4925. );
  4926. }
  4927. Map<String, dynamic> toJson() {
  4928. final map = super.toJson();
  4929. if(token != null)
  4930. map['Token'] = token;
  4931. return map;
  4932. }
  4933. }
  4934. class ModifyDeviceDownloadModeRequest extends TokenRequest{
  4935. String? deviceCode;
  4936. DownloadModeSettingEnum downloadModeSetting;
  4937. ModifyDeviceDownloadModeRequest({
  4938. this.deviceCode,
  4939. this.downloadModeSetting = DownloadModeSettingEnum.Auto,
  4940. String? token,
  4941. }) : super(
  4942. token: token,
  4943. );
  4944. factory ModifyDeviceDownloadModeRequest.fromJson(Map<String, dynamic> map) {
  4945. return ModifyDeviceDownloadModeRequest(
  4946. deviceCode: map['DeviceCode'],
  4947. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  4948. token: map['Token'],
  4949. );
  4950. }
  4951. Map<String, dynamic> toJson() {
  4952. final map = super.toJson();
  4953. if(deviceCode != null)
  4954. map['DeviceCode'] = deviceCode;
  4955. map['DownloadModeSetting'] = downloadModeSetting.index;
  4956. return map;
  4957. }
  4958. }
  4959. class ModifyDeviceMergedVideoSizeRequest extends TokenRequest{
  4960. String? deviceCode;
  4961. bool mergedChannel;
  4962. int mergedVideoOutputWidth;
  4963. int mergedVideoOutputHeight;
  4964. List<VideoDeviceDTO >? videoDeviceInfos;
  4965. ModifyDeviceMergedVideoSizeRequest({
  4966. this.deviceCode,
  4967. this.mergedChannel = false,
  4968. this.mergedVideoOutputWidth = 0,
  4969. this.mergedVideoOutputHeight = 0,
  4970. this.videoDeviceInfos,
  4971. String? token,
  4972. }) : super(
  4973. token: token,
  4974. );
  4975. factory ModifyDeviceMergedVideoSizeRequest.fromJson(Map<String, dynamic> map) {
  4976. return ModifyDeviceMergedVideoSizeRequest(
  4977. deviceCode: map['DeviceCode'],
  4978. mergedChannel: map['MergedChannel'],
  4979. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  4980. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  4981. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4982. token: map['Token'],
  4983. );
  4984. }
  4985. Map<String, dynamic> toJson() {
  4986. final map = super.toJson();
  4987. if(deviceCode != null)
  4988. map['DeviceCode'] = deviceCode;
  4989. map['MergedChannel'] = mergedChannel;
  4990. map['MergedVideoOutputWidth'] = mergedVideoOutputWidth;
  4991. map['MergedVideoOutputHeight'] = mergedVideoOutputHeight;
  4992. if(videoDeviceInfos != null)
  4993. map['VideoDeviceInfos'] = videoDeviceInfos;
  4994. return map;
  4995. }
  4996. }
  4997. class DeviceModelClass {
  4998. String? deviceModelCode;
  4999. String? deviceModelName;
  5000. DeviceModelClass({
  5001. this.deviceModelCode,
  5002. this.deviceModelName,
  5003. });
  5004. factory DeviceModelClass.fromJson(Map<String, dynamic> map) {
  5005. return DeviceModelClass(
  5006. deviceModelCode: map['DeviceModelCode'],
  5007. deviceModelName: map['DeviceModelName'],
  5008. );
  5009. }
  5010. Map<String, dynamic> toJson() {
  5011. final map = Map<String, dynamic>();
  5012. if(deviceModelCode != null)
  5013. map['DeviceModelCode'] = deviceModelCode;
  5014. if(deviceModelName != null)
  5015. map['DeviceModelName'] = deviceModelName;
  5016. return map;
  5017. }
  5018. }
  5019. class ModifyDeviceTypeRequest extends TokenRequest{
  5020. String? deviceTypeCode;
  5021. List<DictionaryLanguageConfigDTO >? languageConfigs;
  5022. List<DeviceModelClass >? deviceModelList;
  5023. ModifyDeviceTypeRequest({
  5024. this.deviceTypeCode,
  5025. this.languageConfigs,
  5026. this.deviceModelList,
  5027. String? token,
  5028. }) : super(
  5029. token: token,
  5030. );
  5031. factory ModifyDeviceTypeRequest.fromJson(Map<String, dynamic> map) {
  5032. return ModifyDeviceTypeRequest(
  5033. deviceTypeCode: map['DeviceTypeCode'],
  5034. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>DictionaryLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  5035. deviceModelList: map['DeviceModelList'] != null ? (map['DeviceModelList'] as List).map((e)=>DeviceModelClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  5036. token: map['Token'],
  5037. );
  5038. }
  5039. Map<String, dynamic> toJson() {
  5040. final map = super.toJson();
  5041. if(deviceTypeCode != null)
  5042. map['DeviceTypeCode'] = deviceTypeCode;
  5043. if(languageConfigs != null)
  5044. map['LanguageConfigs'] = languageConfigs;
  5045. if(deviceModelList != null)
  5046. map['DeviceModelList'] = deviceModelList;
  5047. return map;
  5048. }
  5049. }
  5050. class ModifyDiagnosisModuleEnableStateRequest extends TokenRequest{
  5051. List<String >? diagnosisModules;
  5052. bool enabled;
  5053. ModifyDiagnosisModuleEnableStateRequest({
  5054. this.diagnosisModules,
  5055. this.enabled = false,
  5056. String? token,
  5057. }) : super(
  5058. token: token,
  5059. );
  5060. factory ModifyDiagnosisModuleEnableStateRequest.fromJson(Map<String, dynamic> map) {
  5061. return ModifyDiagnosisModuleEnableStateRequest(
  5062. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  5063. enabled: map['Enabled'],
  5064. token: map['Token'],
  5065. );
  5066. }
  5067. Map<String, dynamic> toJson() {
  5068. final map = super.toJson();
  5069. if(diagnosisModules != null)
  5070. map['DiagnosisModules'] = diagnosisModules;
  5071. map['Enabled'] = enabled;
  5072. return map;
  5073. }
  5074. }
  5075. class ModifyDiagnosisModulesRequest extends TokenRequest{
  5076. List<String >? diagnosisModules;
  5077. ModifyDiagnosisModulesRequest({
  5078. this.diagnosisModules,
  5079. String? token,
  5080. }) : super(
  5081. token: token,
  5082. );
  5083. factory ModifyDiagnosisModulesRequest.fromJson(Map<String, dynamic> map) {
  5084. return ModifyDiagnosisModulesRequest(
  5085. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  5086. token: map['Token'],
  5087. );
  5088. }
  5089. Map<String, dynamic> toJson() {
  5090. final map = super.toJson();
  5091. if(diagnosisModules != null)
  5092. map['DiagnosisModules'] = diagnosisModules;
  5093. return map;
  5094. }
  5095. }
  5096. class ModifyOrganizationCustomSettingRequest extends TokenRequest{
  5097. String? langugeKey;
  5098. String? settingModule;
  5099. String? settingJson;
  5100. String? organizationCode;
  5101. ModifyOrganizationCustomSettingRequest({
  5102. this.langugeKey,
  5103. this.settingModule,
  5104. this.settingJson,
  5105. this.organizationCode,
  5106. String? token,
  5107. }) : super(
  5108. token: token,
  5109. );
  5110. factory ModifyOrganizationCustomSettingRequest.fromJson(Map<String, dynamic> map) {
  5111. return ModifyOrganizationCustomSettingRequest(
  5112. langugeKey: map['LangugeKey'],
  5113. settingModule: map['SettingModule'],
  5114. settingJson: map['SettingJson'],
  5115. organizationCode: map['OrganizationCode'],
  5116. token: map['Token'],
  5117. );
  5118. }
  5119. Map<String, dynamic> toJson() {
  5120. final map = super.toJson();
  5121. if(langugeKey != null)
  5122. map['LangugeKey'] = langugeKey;
  5123. if(settingModule != null)
  5124. map['SettingModule'] = settingModule;
  5125. if(settingJson != null)
  5126. map['SettingJson'] = settingJson;
  5127. if(organizationCode != null)
  5128. map['OrganizationCode'] = organizationCode;
  5129. return map;
  5130. }
  5131. }
  5132. class ModifyOrganizationDiagnosisModulesRequest extends TokenRequest{
  5133. String? organizationCode;
  5134. List<String >? diagnosisModules;
  5135. ModifyOrganizationDiagnosisModulesRequest({
  5136. this.organizationCode,
  5137. this.diagnosisModules,
  5138. String? token,
  5139. }) : super(
  5140. token: token,
  5141. );
  5142. factory ModifyOrganizationDiagnosisModulesRequest.fromJson(Map<String, dynamic> map) {
  5143. return ModifyOrganizationDiagnosisModulesRequest(
  5144. organizationCode: map['OrganizationCode'],
  5145. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  5146. token: map['Token'],
  5147. );
  5148. }
  5149. Map<String, dynamic> toJson() {
  5150. final map = super.toJson();
  5151. if(organizationCode != null)
  5152. map['OrganizationCode'] = organizationCode;
  5153. if(diagnosisModules != null)
  5154. map['DiagnosisModules'] = diagnosisModules;
  5155. return map;
  5156. }
  5157. }
  5158. class ModifyOrganizationDirectorsRequest extends TokenRequest{
  5159. String? organizationCode;
  5160. List<String >? directors;
  5161. ModifyOrganizationDirectorsRequest({
  5162. this.organizationCode,
  5163. this.directors,
  5164. String? token,
  5165. }) : super(
  5166. token: token,
  5167. );
  5168. factory ModifyOrganizationDirectorsRequest.fromJson(Map<String, dynamic> map) {
  5169. return ModifyOrganizationDirectorsRequest(
  5170. organizationCode: map['OrganizationCode'],
  5171. directors: map['Directors'] != null ? map['Directors'].cast<String>().toList() : null,
  5172. token: map['Token'],
  5173. );
  5174. }
  5175. Map<String, dynamic> toJson() {
  5176. final map = super.toJson();
  5177. if(organizationCode != null)
  5178. map['OrganizationCode'] = organizationCode;
  5179. if(directors != null)
  5180. map['Directors'] = directors;
  5181. return map;
  5182. }
  5183. }
  5184. class ModifyOrganizationRequest extends OrganizationDTO{
  5185. String? token;
  5186. ModifyOrganizationRequest({
  5187. this.token,
  5188. String? description,
  5189. String? rootCode,
  5190. OrganizationTypeEnum organizationType = OrganizationTypeEnum.Corporation,
  5191. List<String >? authorityGroups,
  5192. String? nautica,
  5193. OrganizationStateEnum state = OrganizationStateEnum.WaitAudit,
  5194. List<String >? directors,
  5195. List<String >? assignedAdmins,
  5196. String? patientSettingJson,
  5197. String? examSettingJson,
  5198. String? consultationSettingJson,
  5199. String? patientSettingVersion,
  5200. String? examSettingVersion,
  5201. String? consultationSettingVersion,
  5202. String? parentOrganizationName,
  5203. String? regionCode,
  5204. String? parentCode,
  5205. String? logoUrl,
  5206. OrganizationPatientTypeEnum patientType = OrganizationPatientTypeEnum.Person,
  5207. bool isinvented = false,
  5208. List<SettingDTOClass >? settings,
  5209. List<String >? diagnosisModules,
  5210. bool isEncryptedShow = false,
  5211. double referralLimitHours = 0,
  5212. List<String >? referralOrganizationCodes,
  5213. List<ReferralOrganizationDTO >? referralOrganizations,
  5214. String? organizationCode,
  5215. String? organizationName,
  5216. DateTime? createTime,
  5217. DateTime? updateTime,
  5218. }) : super(
  5219. description: description,
  5220. rootCode: rootCode,
  5221. organizationType: organizationType,
  5222. authorityGroups: authorityGroups,
  5223. nautica: nautica,
  5224. state: state,
  5225. directors: directors,
  5226. assignedAdmins: assignedAdmins,
  5227. patientSettingJson: patientSettingJson,
  5228. examSettingJson: examSettingJson,
  5229. consultationSettingJson: consultationSettingJson,
  5230. patientSettingVersion: patientSettingVersion,
  5231. examSettingVersion: examSettingVersion,
  5232. consultationSettingVersion: consultationSettingVersion,
  5233. parentOrganizationName: parentOrganizationName,
  5234. regionCode: regionCode,
  5235. parentCode: parentCode,
  5236. logoUrl: logoUrl,
  5237. patientType: patientType,
  5238. isinvented: isinvented,
  5239. settings: settings,
  5240. diagnosisModules: diagnosisModules,
  5241. isEncryptedShow: isEncryptedShow,
  5242. referralLimitHours: referralLimitHours,
  5243. referralOrganizationCodes: referralOrganizationCodes,
  5244. referralOrganizations: referralOrganizations,
  5245. organizationCode: organizationCode,
  5246. organizationName: organizationName,
  5247. createTime: createTime,
  5248. updateTime: updateTime,
  5249. );
  5250. factory ModifyOrganizationRequest.fromJson(Map<String, dynamic> map) {
  5251. return ModifyOrganizationRequest(
  5252. token: map['Token'],
  5253. description: map['Description'],
  5254. rootCode: map['RootCode'],
  5255. organizationType: OrganizationTypeEnum.values.firstWhere((e) => e.index == map['OrganizationType']),
  5256. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  5257. nautica: map['Nautica'],
  5258. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  5259. directors: map['Directors'] != null ? map['Directors'].cast<String>().toList() : null,
  5260. assignedAdmins: map['AssignedAdmins'] != null ? map['AssignedAdmins'].cast<String>().toList() : null,
  5261. patientSettingJson: map['PatientSettingJson'],
  5262. examSettingJson: map['ExamSettingJson'],
  5263. consultationSettingJson: map['ConsultationSettingJson'],
  5264. patientSettingVersion: map['PatientSettingVersion'],
  5265. examSettingVersion: map['ExamSettingVersion'],
  5266. consultationSettingVersion: map['ConsultationSettingVersion'],
  5267. parentOrganizationName: map['ParentOrganizationName'],
  5268. regionCode: map['RegionCode'],
  5269. parentCode: map['ParentCode'],
  5270. logoUrl: map['LogoUrl'],
  5271. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  5272. isinvented: map['Isinvented'],
  5273. settings: map['Settings'] != null ? (map['Settings'] as List).map((e)=>SettingDTOClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  5274. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  5275. isEncryptedShow: map['IsEncryptedShow'],
  5276. referralLimitHours: double.parse(map['ReferralLimitHours'].toString()),
  5277. referralOrganizationCodes: map['ReferralOrganizationCodes'] != null ? map['ReferralOrganizationCodes'].cast<String>().toList() : null,
  5278. referralOrganizations: map['ReferralOrganizations'] != null ? (map['ReferralOrganizations'] as List).map((e)=>ReferralOrganizationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  5279. organizationCode: map['OrganizationCode'],
  5280. organizationName: map['OrganizationName'],
  5281. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5282. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5283. );
  5284. }
  5285. Map<String, dynamic> toJson() {
  5286. final map = super.toJson();
  5287. if(token != null)
  5288. map['Token'] = token;
  5289. return map;
  5290. }
  5291. }
  5292. class ModifyOrganizationSettingRequest extends TokenRequest{
  5293. OrganizationSettingTypeEnum settingType;
  5294. String? settingJson;
  5295. String? organizationCode;
  5296. String? cMSTemplateCode;
  5297. ModifyOrganizationSettingRequest({
  5298. this.settingType = OrganizationSettingTypeEnum.Patient,
  5299. this.settingJson,
  5300. this.organizationCode,
  5301. this.cMSTemplateCode,
  5302. String? token,
  5303. }) : super(
  5304. token: token,
  5305. );
  5306. factory ModifyOrganizationSettingRequest.fromJson(Map<String, dynamic> map) {
  5307. return ModifyOrganizationSettingRequest(
  5308. settingType: OrganizationSettingTypeEnum.values.firstWhere((e) => e.index == map['SettingType']),
  5309. settingJson: map['SettingJson'],
  5310. organizationCode: map['OrganizationCode'],
  5311. cMSTemplateCode: map['CMSTemplateCode'],
  5312. token: map['Token'],
  5313. );
  5314. }
  5315. Map<String, dynamic> toJson() {
  5316. final map = super.toJson();
  5317. map['SettingType'] = settingType.index;
  5318. if(settingJson != null)
  5319. map['SettingJson'] = settingJson;
  5320. if(organizationCode != null)
  5321. map['OrganizationCode'] = organizationCode;
  5322. if(cMSTemplateCode != null)
  5323. map['CMSTemplateCode'] = cMSTemplateCode;
  5324. return map;
  5325. }
  5326. }
  5327. class ConsultationBaseInfoItem {
  5328. String? name;
  5329. bool isDefult;
  5330. bool isShow;
  5331. bool required;
  5332. ConsultationBaseInfoItem({
  5333. this.name,
  5334. this.isDefult = false,
  5335. this.isShow = false,
  5336. this.required = false,
  5337. });
  5338. factory ConsultationBaseInfoItem.fromJson(Map<String, dynamic> map) {
  5339. return ConsultationBaseInfoItem(
  5340. name: map['Name'],
  5341. isDefult: map['IsDefult'],
  5342. isShow: map['IsShow'],
  5343. required: map['Required'],
  5344. );
  5345. }
  5346. Map<String, dynamic> toJson() {
  5347. final map = Map<String, dynamic>();
  5348. if(name != null)
  5349. map['Name'] = name;
  5350. map['IsDefult'] = isDefult;
  5351. map['IsShow'] = isShow;
  5352. map['Required'] = required;
  5353. return map;
  5354. }
  5355. }
  5356. class ModifycConsultationBaseInfoSettingRequest extends TokenRequest{
  5357. List<ConsultationBaseInfoItem >? consultationBaseInfoList;
  5358. String? organizationCode;
  5359. ModifycConsultationBaseInfoSettingRequest({
  5360. this.consultationBaseInfoList,
  5361. this.organizationCode,
  5362. String? token,
  5363. }) : super(
  5364. token: token,
  5365. );
  5366. factory ModifycConsultationBaseInfoSettingRequest.fromJson(Map<String, dynamic> map) {
  5367. return ModifycConsultationBaseInfoSettingRequest(
  5368. consultationBaseInfoList: map['ConsultationBaseInfoList'] != null ? (map['ConsultationBaseInfoList'] as List).map((e)=>ConsultationBaseInfoItem.fromJson(e as Map<String,dynamic>)).toList() : null,
  5369. organizationCode: map['OrganizationCode'],
  5370. token: map['Token'],
  5371. );
  5372. }
  5373. Map<String, dynamic> toJson() {
  5374. final map = super.toJson();
  5375. if(consultationBaseInfoList != null)
  5376. map['ConsultationBaseInfoList'] = consultationBaseInfoList;
  5377. if(organizationCode != null)
  5378. map['OrganizationCode'] = organizationCode;
  5379. return map;
  5380. }
  5381. }
  5382. class ModifyOrganizationStateRequest extends TokenRequest{
  5383. String? organizationCode;
  5384. OrganizationStateEnum state;
  5385. ModifyOrganizationStateRequest({
  5386. this.organizationCode,
  5387. this.state = OrganizationStateEnum.WaitAudit,
  5388. String? token,
  5389. }) : super(
  5390. token: token,
  5391. );
  5392. factory ModifyOrganizationStateRequest.fromJson(Map<String, dynamic> map) {
  5393. return ModifyOrganizationStateRequest(
  5394. organizationCode: map['OrganizationCode'],
  5395. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  5396. token: map['Token'],
  5397. );
  5398. }
  5399. Map<String, dynamic> toJson() {
  5400. final map = super.toJson();
  5401. if(organizationCode != null)
  5402. map['OrganizationCode'] = organizationCode;
  5403. map['State'] = state.index;
  5404. return map;
  5405. }
  5406. }
  5407. class ModifyReferralRecordSettingRequest extends TokenRequest{
  5408. double limitHours;
  5409. ModifyReferralRecordSettingRequest({
  5410. this.limitHours = 0,
  5411. String? token,
  5412. }) : super(
  5413. token: token,
  5414. );
  5415. factory ModifyReferralRecordSettingRequest.fromJson(Map<String, dynamic> map) {
  5416. return ModifyReferralRecordSettingRequest(
  5417. limitHours: double.parse(map['LimitHours'].toString()),
  5418. token: map['Token'],
  5419. );
  5420. }
  5421. Map<String, dynamic> toJson() {
  5422. final map = super.toJson();
  5423. map['LimitHours'] = limitHours;
  5424. return map;
  5425. }
  5426. }
  5427. class ModifyReportPosterDevicesRequest extends TokenRequest{
  5428. String? reportPosterCode;
  5429. List<String >? deviceIds;
  5430. ModifyReportPosterDevicesRequest({
  5431. this.reportPosterCode,
  5432. this.deviceIds,
  5433. String? token,
  5434. }) : super(
  5435. token: token,
  5436. );
  5437. factory ModifyReportPosterDevicesRequest.fromJson(Map<String, dynamic> map) {
  5438. return ModifyReportPosterDevicesRequest(
  5439. reportPosterCode: map['ReportPosterCode'],
  5440. deviceIds: map['DeviceIds'] != null ? map['DeviceIds'].cast<String>().toList() : null,
  5441. token: map['Token'],
  5442. );
  5443. }
  5444. Map<String, dynamic> toJson() {
  5445. final map = super.toJson();
  5446. if(reportPosterCode != null)
  5447. map['ReportPosterCode'] = reportPosterCode;
  5448. if(deviceIds != null)
  5449. map['DeviceIds'] = deviceIds;
  5450. return map;
  5451. }
  5452. }
  5453. class ModifyRoleInfoRequest extends RoleDTO{
  5454. String? token;
  5455. List<String >? featuresCodeList;
  5456. ModifyRoleInfoRequest({
  5457. this.token,
  5458. this.featuresCodeList,
  5459. RoleShowTypeEnum roleShowType = RoleShowTypeEnum.NotShow,
  5460. String? iConUrl,
  5461. String? colorStart,
  5462. String? colorEnd,
  5463. RoleQualificationEnum roleQualification = RoleQualificationEnum.NoNeed,
  5464. String? userGroupCode,
  5465. RoleShowTypeEnum fieldShowType = RoleShowTypeEnum.NotShow,
  5466. List<String >? fieldList,
  5467. String? roleCode,
  5468. String? roleName,
  5469. String? description,
  5470. List<UserRoleLanguageConfigDTO >? languageConfigs,
  5471. DateTime? createTime,
  5472. DateTime? updateTime,
  5473. }) : super(
  5474. roleShowType: roleShowType,
  5475. iConUrl: iConUrl,
  5476. colorStart: colorStart,
  5477. colorEnd: colorEnd,
  5478. roleQualification: roleQualification,
  5479. userGroupCode: userGroupCode,
  5480. fieldShowType: fieldShowType,
  5481. fieldList: fieldList,
  5482. roleCode: roleCode,
  5483. roleName: roleName,
  5484. description: description,
  5485. languageConfigs: languageConfigs,
  5486. createTime: createTime,
  5487. updateTime: updateTime,
  5488. );
  5489. factory ModifyRoleInfoRequest.fromJson(Map<String, dynamic> map) {
  5490. return ModifyRoleInfoRequest(
  5491. token: map['Token'],
  5492. featuresCodeList: map['FeaturesCodeList'] != null ? map['FeaturesCodeList'].cast<String>().toList() : null,
  5493. roleShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['RoleShowType']),
  5494. iConUrl: map['IConUrl'],
  5495. colorStart: map['ColorStart'],
  5496. colorEnd: map['ColorEnd'],
  5497. roleQualification: RoleQualificationEnum.values.firstWhere((e) => e.index == map['RoleQualification']),
  5498. userGroupCode: map['UserGroupCode'],
  5499. fieldShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['FieldShowType']),
  5500. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  5501. roleCode: map['RoleCode'],
  5502. roleName: map['RoleName'],
  5503. description: map['Description'],
  5504. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  5505. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5506. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5507. );
  5508. }
  5509. Map<String, dynamic> toJson() {
  5510. final map = super.toJson();
  5511. if(token != null)
  5512. map['Token'] = token;
  5513. if(featuresCodeList != null)
  5514. map['FeaturesCodeList'] = featuresCodeList;
  5515. return map;
  5516. }
  5517. }
  5518. class ThirdPartyInfoDTO extends BaseDTO{
  5519. String? code;
  5520. String? name;
  5521. String? contactPersonName;
  5522. String? contactPhone;
  5523. List<String >? allowedInterfaces;
  5524. bool isValid;
  5525. String? token;
  5526. ThirdPartyInfoDTO({
  5527. this.code,
  5528. this.name,
  5529. this.contactPersonName,
  5530. this.contactPhone,
  5531. this.allowedInterfaces,
  5532. this.isValid = false,
  5533. this.token,
  5534. DateTime? createTime,
  5535. DateTime? updateTime,
  5536. }) : super(
  5537. createTime: createTime,
  5538. updateTime: updateTime,
  5539. );
  5540. factory ThirdPartyInfoDTO.fromJson(Map<String, dynamic> map) {
  5541. return ThirdPartyInfoDTO(
  5542. code: map['Code'],
  5543. name: map['Name'],
  5544. contactPersonName: map['ContactPersonName'],
  5545. contactPhone: map['ContactPhone'],
  5546. allowedInterfaces: map['AllowedInterfaces'] != null ? map['AllowedInterfaces'].cast<String>().toList() : null,
  5547. isValid: map['IsValid'],
  5548. token: map['Token'],
  5549. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5550. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5551. );
  5552. }
  5553. Map<String, dynamic> toJson() {
  5554. final map = super.toJson();
  5555. if(code != null)
  5556. map['Code'] = code;
  5557. if(name != null)
  5558. map['Name'] = name;
  5559. if(contactPersonName != null)
  5560. map['ContactPersonName'] = contactPersonName;
  5561. if(contactPhone != null)
  5562. map['ContactPhone'] = contactPhone;
  5563. if(allowedInterfaces != null)
  5564. map['AllowedInterfaces'] = allowedInterfaces;
  5565. map['IsValid'] = isValid;
  5566. if(token != null)
  5567. map['Token'] = token;
  5568. return map;
  5569. }
  5570. }
  5571. class ModifyThirdPartyInfoRequest extends ThirdPartyInfoDTO{
  5572. ModifyThirdPartyInfoRequest({
  5573. String? token,
  5574. String? code,
  5575. String? name,
  5576. String? contactPersonName,
  5577. String? contactPhone,
  5578. List<String >? allowedInterfaces,
  5579. bool isValid = false,
  5580. DateTime? createTime,
  5581. DateTime? updateTime,
  5582. }) : super(
  5583. code: code,
  5584. name: name,
  5585. contactPersonName: contactPersonName,
  5586. contactPhone: contactPhone,
  5587. allowedInterfaces: allowedInterfaces,
  5588. isValid: isValid,
  5589. token: token,
  5590. createTime: createTime,
  5591. updateTime: updateTime,
  5592. );
  5593. factory ModifyThirdPartyInfoRequest.fromJson(Map<String, dynamic> map) {
  5594. return ModifyThirdPartyInfoRequest(
  5595. token: map['Token'],
  5596. code: map['Code'],
  5597. name: map['Name'],
  5598. contactPersonName: map['ContactPersonName'],
  5599. contactPhone: map['ContactPhone'],
  5600. allowedInterfaces: map['AllowedInterfaces'] != null ? map['AllowedInterfaces'].cast<String>().toList() : null,
  5601. isValid: map['IsValid'],
  5602. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5603. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5604. );
  5605. }
  5606. Map<String, dynamic> toJson() {
  5607. final map = super.toJson();
  5608. return map;
  5609. }
  5610. }
  5611. class UserFeatureInfoDTO extends BaseFeatureInfoDTO{
  5612. UserFeatureInfoDTO({
  5613. String? featureCode,
  5614. String? featureName,
  5615. String? fatherCode,
  5616. String? uniqueCode,
  5617. DateTime? createTime,
  5618. DateTime? updateTime,
  5619. }) : super(
  5620. featureCode: featureCode,
  5621. featureName: featureName,
  5622. fatherCode: fatherCode,
  5623. uniqueCode: uniqueCode,
  5624. createTime: createTime,
  5625. updateTime: updateTime,
  5626. );
  5627. factory UserFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  5628. return UserFeatureInfoDTO(
  5629. featureCode: map['FeatureCode'],
  5630. featureName: map['FeatureName'],
  5631. fatherCode: map['FatherCode'],
  5632. uniqueCode: map['UniqueCode'],
  5633. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5634. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5635. );
  5636. }
  5637. Map<String, dynamic> toJson() {
  5638. final map = super.toJson();
  5639. return map;
  5640. }
  5641. }
  5642. class ModifyUserFeatureRequest extends UserFeatureInfoDTO{
  5643. String? token;
  5644. ModifyUserFeatureRequest({
  5645. this.token,
  5646. String? featureCode,
  5647. String? featureName,
  5648. String? fatherCode,
  5649. String? uniqueCode,
  5650. DateTime? createTime,
  5651. DateTime? updateTime,
  5652. }) : super(
  5653. featureCode: featureCode,
  5654. featureName: featureName,
  5655. fatherCode: fatherCode,
  5656. uniqueCode: uniqueCode,
  5657. createTime: createTime,
  5658. updateTime: updateTime,
  5659. );
  5660. factory ModifyUserFeatureRequest.fromJson(Map<String, dynamic> map) {
  5661. return ModifyUserFeatureRequest(
  5662. token: map['Token'],
  5663. featureCode: map['FeatureCode'],
  5664. featureName: map['FeatureName'],
  5665. fatherCode: map['FatherCode'],
  5666. uniqueCode: map['UniqueCode'],
  5667. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5668. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5669. );
  5670. }
  5671. Map<String, dynamic> toJson() {
  5672. final map = super.toJson();
  5673. if(token != null)
  5674. map['Token'] = token;
  5675. return map;
  5676. }
  5677. }
  5678. enum ManagementUserInfoStateEnum {
  5679. Nonactivated,
  5680. Activated,
  5681. Locked,
  5682. }
  5683. class ManageUserInfoDTO extends UserDTO{
  5684. String? roleName;
  5685. String? departmentName;
  5686. String? hospitalName;
  5687. String? identityApplyCode;
  5688. List<String >? identityCard;
  5689. List<String >? licenseCard;
  5690. String? identityApplyRoleCode;
  5691. String? identityApplyRoleName;
  5692. ManagementUserInfoStateEnum managementUserState;
  5693. ManageUserInfoDTO({
  5694. this.roleName,
  5695. this.departmentName,
  5696. this.hospitalName,
  5697. this.identityApplyCode,
  5698. this.identityCard,
  5699. this.licenseCard,
  5700. this.identityApplyRoleCode,
  5701. this.identityApplyRoleName,
  5702. bool isBatchExportDiagnoseData = false,
  5703. List<String >? fieldList,
  5704. this.managementUserState = ManagementUserInfoStateEnum.Nonactivated,
  5705. String? phone,
  5706. String? email,
  5707. String? nickName,
  5708. String? fullName,
  5709. String? organizationCode,
  5710. String? organizationName,
  5711. String? rootOrganizationCode,
  5712. String? rootOrganizationName,
  5713. List<String >? authorityGroups,
  5714. List<String >? bindDevices,
  5715. String? lastIP,
  5716. int logintimes = 0,
  5717. UserInfoStateEnum userState = UserInfoStateEnum.Nonactivated,
  5718. List<String >? roleCodes,
  5719. List<String >? rankCodes,
  5720. List<String >? positionCodes,
  5721. ApplyStateEnum applyState = ApplyStateEnum.NotApply,
  5722. String? rankName,
  5723. String? positionName,
  5724. bool isDirector = false,
  5725. List<String >? deletePatientCodes,
  5726. String? bindAssistantUserCode,
  5727. String? bindAssistantDoctorUserCode,
  5728. LoginLockInfoDTO? loginLockInfo,
  5729. String? signature,
  5730. String? language,
  5731. bool enableReportLabel = false,
  5732. List<AssociatedInfoDTO >? associatedInfos,
  5733. String? commonPlatformUserId,
  5734. String? bindEmergencyDeviceCode,
  5735. String? bindEmergencyExpertCode,
  5736. String? userCode,
  5737. String? userName,
  5738. String? headImageUrl,
  5739. DateTime? createTime,
  5740. DateTime? updateTime,
  5741. }) : super(
  5742. phone: phone,
  5743. email: email,
  5744. nickName: nickName,
  5745. fullName: fullName,
  5746. organizationCode: organizationCode,
  5747. organizationName: organizationName,
  5748. rootOrganizationCode: rootOrganizationCode,
  5749. rootOrganizationName: rootOrganizationName,
  5750. authorityGroups: authorityGroups,
  5751. bindDevices: bindDevices,
  5752. lastIP: lastIP,
  5753. logintimes: logintimes,
  5754. userState: userState,
  5755. roleCodes: roleCodes,
  5756. rankCodes: rankCodes,
  5757. positionCodes: positionCodes,
  5758. applyState: applyState,
  5759. rankName: rankName,
  5760. positionName: positionName,
  5761. isDirector: isDirector,
  5762. fieldList: fieldList,
  5763. deletePatientCodes: deletePatientCodes,
  5764. isBatchExportDiagnoseData: isBatchExportDiagnoseData,
  5765. bindAssistantUserCode: bindAssistantUserCode,
  5766. bindAssistantDoctorUserCode: bindAssistantDoctorUserCode,
  5767. loginLockInfo: loginLockInfo,
  5768. signature: signature,
  5769. language: language,
  5770. enableReportLabel: enableReportLabel,
  5771. associatedInfos: associatedInfos,
  5772. commonPlatformUserId: commonPlatformUserId,
  5773. bindEmergencyDeviceCode: bindEmergencyDeviceCode,
  5774. bindEmergencyExpertCode: bindEmergencyExpertCode,
  5775. userCode: userCode,
  5776. userName: userName,
  5777. headImageUrl: headImageUrl,
  5778. createTime: createTime,
  5779. updateTime: updateTime,
  5780. );
  5781. factory ManageUserInfoDTO.fromJson(Map<String, dynamic> map) {
  5782. return ManageUserInfoDTO(
  5783. roleName: map['RoleName'],
  5784. departmentName: map['DepartmentName'],
  5785. hospitalName: map['HospitalName'],
  5786. identityApplyCode: map['IdentityApplyCode'],
  5787. identityCard: map['IdentityCard'] != null ? map['IdentityCard'].cast<String>().toList() : null,
  5788. licenseCard: map['LicenseCard'] != null ? map['LicenseCard'].cast<String>().toList() : null,
  5789. identityApplyRoleCode: map['IdentityApplyRoleCode'],
  5790. identityApplyRoleName: map['IdentityApplyRoleName'],
  5791. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  5792. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  5793. managementUserState: ManagementUserInfoStateEnum.values.firstWhere((e) => e.index == map['ManagementUserState']),
  5794. phone: map['Phone'],
  5795. email: map['Email'],
  5796. nickName: map['NickName'],
  5797. fullName: map['FullName'],
  5798. organizationCode: map['OrganizationCode'],
  5799. organizationName: map['OrganizationName'],
  5800. rootOrganizationCode: map['RootOrganizationCode'],
  5801. rootOrganizationName: map['RootOrganizationName'],
  5802. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  5803. bindDevices: map['BindDevices'] != null ? map['BindDevices'].cast<String>().toList() : null,
  5804. lastIP: map['LastIP'],
  5805. logintimes: map['Logintimes'],
  5806. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  5807. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  5808. rankCodes: map['RankCodes'] != null ? map['RankCodes'].cast<String>().toList() : null,
  5809. positionCodes: map['PositionCodes'] != null ? map['PositionCodes'].cast<String>().toList() : null,
  5810. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  5811. rankName: map['RankName'],
  5812. positionName: map['PositionName'],
  5813. isDirector: map['IsDirector'],
  5814. deletePatientCodes: map['DeletePatientCodes'] != null ? map['DeletePatientCodes'].cast<String>().toList() : null,
  5815. bindAssistantUserCode: map['BindAssistantUserCode'],
  5816. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  5817. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  5818. signature: map['Signature'],
  5819. language: map['Language'],
  5820. enableReportLabel: map['EnableReportLabel'],
  5821. associatedInfos: map['AssociatedInfos'] != null ? (map['AssociatedInfos'] as List).map((e)=>AssociatedInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  5822. commonPlatformUserId: map['CommonPlatformUserId'],
  5823. bindEmergencyDeviceCode: map['BindEmergencyDeviceCode'],
  5824. bindEmergencyExpertCode: map['BindEmergencyExpertCode'],
  5825. userCode: map['UserCode'],
  5826. userName: map['UserName'],
  5827. headImageUrl: map['HeadImageUrl'],
  5828. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5829. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5830. );
  5831. }
  5832. Map<String, dynamic> toJson() {
  5833. final map = super.toJson();
  5834. if(roleName != null)
  5835. map['RoleName'] = roleName;
  5836. if(departmentName != null)
  5837. map['DepartmentName'] = departmentName;
  5838. if(hospitalName != null)
  5839. map['HospitalName'] = hospitalName;
  5840. if(identityApplyCode != null)
  5841. map['IdentityApplyCode'] = identityApplyCode;
  5842. if(identityCard != null)
  5843. map['IdentityCard'] = identityCard;
  5844. if(licenseCard != null)
  5845. map['LicenseCard'] = licenseCard;
  5846. if(identityApplyRoleCode != null)
  5847. map['IdentityApplyRoleCode'] = identityApplyRoleCode;
  5848. if(identityApplyRoleName != null)
  5849. map['IdentityApplyRoleName'] = identityApplyRoleName;
  5850. map['ManagementUserState'] = managementUserState.index;
  5851. return map;
  5852. }
  5853. }
  5854. class ModifyUserRequest extends ManageUserInfoDTO{
  5855. String? token;
  5856. ModifyUserRequest({
  5857. this.token,
  5858. String? roleName,
  5859. String? departmentName,
  5860. String? hospitalName,
  5861. String? identityApplyCode,
  5862. List<String >? identityCard,
  5863. List<String >? licenseCard,
  5864. String? identityApplyRoleCode,
  5865. String? identityApplyRoleName,
  5866. bool isBatchExportDiagnoseData = false,
  5867. List<String >? fieldList,
  5868. ManagementUserInfoStateEnum managementUserState = ManagementUserInfoStateEnum.Nonactivated,
  5869. String? phone,
  5870. String? email,
  5871. String? nickName,
  5872. String? fullName,
  5873. String? organizationCode,
  5874. String? organizationName,
  5875. String? rootOrganizationCode,
  5876. String? rootOrganizationName,
  5877. List<String >? authorityGroups,
  5878. List<String >? bindDevices,
  5879. String? lastIP,
  5880. int logintimes = 0,
  5881. UserInfoStateEnum userState = UserInfoStateEnum.Nonactivated,
  5882. List<String >? roleCodes,
  5883. List<String >? rankCodes,
  5884. List<String >? positionCodes,
  5885. ApplyStateEnum applyState = ApplyStateEnum.NotApply,
  5886. String? rankName,
  5887. String? positionName,
  5888. bool isDirector = false,
  5889. List<String >? deletePatientCodes,
  5890. String? bindAssistantUserCode,
  5891. String? bindAssistantDoctorUserCode,
  5892. LoginLockInfoDTO? loginLockInfo,
  5893. String? signature,
  5894. String? language,
  5895. bool enableReportLabel = false,
  5896. List<AssociatedInfoDTO >? associatedInfos,
  5897. String? commonPlatformUserId,
  5898. String? bindEmergencyDeviceCode,
  5899. String? bindEmergencyExpertCode,
  5900. String? userCode,
  5901. String? userName,
  5902. String? headImageUrl,
  5903. DateTime? createTime,
  5904. DateTime? updateTime,
  5905. }) : super(
  5906. roleName: roleName,
  5907. departmentName: departmentName,
  5908. hospitalName: hospitalName,
  5909. identityApplyCode: identityApplyCode,
  5910. identityCard: identityCard,
  5911. licenseCard: licenseCard,
  5912. identityApplyRoleCode: identityApplyRoleCode,
  5913. identityApplyRoleName: identityApplyRoleName,
  5914. isBatchExportDiagnoseData: isBatchExportDiagnoseData,
  5915. fieldList: fieldList,
  5916. managementUserState: managementUserState,
  5917. phone: phone,
  5918. email: email,
  5919. nickName: nickName,
  5920. fullName: fullName,
  5921. organizationCode: organizationCode,
  5922. organizationName: organizationName,
  5923. rootOrganizationCode: rootOrganizationCode,
  5924. rootOrganizationName: rootOrganizationName,
  5925. authorityGroups: authorityGroups,
  5926. bindDevices: bindDevices,
  5927. lastIP: lastIP,
  5928. logintimes: logintimes,
  5929. userState: userState,
  5930. roleCodes: roleCodes,
  5931. rankCodes: rankCodes,
  5932. positionCodes: positionCodes,
  5933. applyState: applyState,
  5934. rankName: rankName,
  5935. positionName: positionName,
  5936. isDirector: isDirector,
  5937. deletePatientCodes: deletePatientCodes,
  5938. bindAssistantUserCode: bindAssistantUserCode,
  5939. bindAssistantDoctorUserCode: bindAssistantDoctorUserCode,
  5940. loginLockInfo: loginLockInfo,
  5941. signature: signature,
  5942. language: language,
  5943. enableReportLabel: enableReportLabel,
  5944. associatedInfos: associatedInfos,
  5945. commonPlatformUserId: commonPlatformUserId,
  5946. bindEmergencyDeviceCode: bindEmergencyDeviceCode,
  5947. bindEmergencyExpertCode: bindEmergencyExpertCode,
  5948. userCode: userCode,
  5949. userName: userName,
  5950. headImageUrl: headImageUrl,
  5951. createTime: createTime,
  5952. updateTime: updateTime,
  5953. );
  5954. factory ModifyUserRequest.fromJson(Map<String, dynamic> map) {
  5955. return ModifyUserRequest(
  5956. token: map['Token'],
  5957. roleName: map['RoleName'],
  5958. departmentName: map['DepartmentName'],
  5959. hospitalName: map['HospitalName'],
  5960. identityApplyCode: map['IdentityApplyCode'],
  5961. identityCard: map['IdentityCard'] != null ? map['IdentityCard'].cast<String>().toList() : null,
  5962. licenseCard: map['LicenseCard'] != null ? map['LicenseCard'].cast<String>().toList() : null,
  5963. identityApplyRoleCode: map['IdentityApplyRoleCode'],
  5964. identityApplyRoleName: map['IdentityApplyRoleName'],
  5965. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  5966. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  5967. managementUserState: ManagementUserInfoStateEnum.values.firstWhere((e) => e.index == map['ManagementUserState']),
  5968. phone: map['Phone'],
  5969. email: map['Email'],
  5970. nickName: map['NickName'],
  5971. fullName: map['FullName'],
  5972. organizationCode: map['OrganizationCode'],
  5973. organizationName: map['OrganizationName'],
  5974. rootOrganizationCode: map['RootOrganizationCode'],
  5975. rootOrganizationName: map['RootOrganizationName'],
  5976. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  5977. bindDevices: map['BindDevices'] != null ? map['BindDevices'].cast<String>().toList() : null,
  5978. lastIP: map['LastIP'],
  5979. logintimes: map['Logintimes'],
  5980. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  5981. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  5982. rankCodes: map['RankCodes'] != null ? map['RankCodes'].cast<String>().toList() : null,
  5983. positionCodes: map['PositionCodes'] != null ? map['PositionCodes'].cast<String>().toList() : null,
  5984. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  5985. rankName: map['RankName'],
  5986. positionName: map['PositionName'],
  5987. isDirector: map['IsDirector'],
  5988. deletePatientCodes: map['DeletePatientCodes'] != null ? map['DeletePatientCodes'].cast<String>().toList() : null,
  5989. bindAssistantUserCode: map['BindAssistantUserCode'],
  5990. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  5991. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  5992. signature: map['Signature'],
  5993. language: map['Language'],
  5994. enableReportLabel: map['EnableReportLabel'],
  5995. associatedInfos: map['AssociatedInfos'] != null ? (map['AssociatedInfos'] as List).map((e)=>AssociatedInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  5996. commonPlatformUserId: map['CommonPlatformUserId'],
  5997. bindEmergencyDeviceCode: map['BindEmergencyDeviceCode'],
  5998. bindEmergencyExpertCode: map['BindEmergencyExpertCode'],
  5999. userCode: map['UserCode'],
  6000. userName: map['UserName'],
  6001. headImageUrl: map['HeadImageUrl'],
  6002. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6003. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  6004. );
  6005. }
  6006. Map<String, dynamic> toJson() {
  6007. final map = super.toJson();
  6008. if(token != null)
  6009. map['Token'] = token;
  6010. return map;
  6011. }
  6012. }
  6013. class PublishReportTemplateRequest extends TokenRequest{
  6014. String? reportTemplateCode;
  6015. PublishReportTemplateRequest({
  6016. this.reportTemplateCode,
  6017. String? token,
  6018. }) : super(
  6019. token: token,
  6020. );
  6021. factory PublishReportTemplateRequest.fromJson(Map<String, dynamic> map) {
  6022. return PublishReportTemplateRequest(
  6023. reportTemplateCode: map['ReportTemplateCode'],
  6024. token: map['Token'],
  6025. );
  6026. }
  6027. Map<String, dynamic> toJson() {
  6028. final map = super.toJson();
  6029. if(reportTemplateCode != null)
  6030. map['ReportTemplateCode'] = reportTemplateCode;
  6031. return map;
  6032. }
  6033. }
  6034. class PublishThesaurusRequest extends TokenRequest{
  6035. String? thesaurusCode;
  6036. PublishThesaurusRequest({
  6037. this.thesaurusCode,
  6038. String? token,
  6039. }) : super(
  6040. token: token,
  6041. );
  6042. factory PublishThesaurusRequest.fromJson(Map<String, dynamic> map) {
  6043. return PublishThesaurusRequest(
  6044. thesaurusCode: map['ThesaurusCode'],
  6045. token: map['Token'],
  6046. );
  6047. }
  6048. Map<String, dynamic> toJson() {
  6049. final map = super.toJson();
  6050. if(thesaurusCode != null)
  6051. map['ThesaurusCode'] = thesaurusCode;
  6052. return map;
  6053. }
  6054. }
  6055. class QueryAnnouncementPageRequest extends PageRequest{
  6056. AnnouncementTypeEnum announcementType;
  6057. AnnouncementStatusEnum announcementStatus;
  6058. String? keyword;
  6059. DateTime? startTime;
  6060. DateTime? endTime;
  6061. QueryAnnouncementPageRequest({
  6062. this.announcementType = AnnouncementTypeEnum.Broadcast,
  6063. this.announcementStatus = AnnouncementStatusEnum.Released,
  6064. this.keyword,
  6065. this.startTime,
  6066. this.endTime,
  6067. int pageIndex = 0,
  6068. int pageSize = 0,
  6069. String? token,
  6070. }) : super(
  6071. pageIndex: pageIndex,
  6072. pageSize: pageSize,
  6073. token: token,
  6074. );
  6075. factory QueryAnnouncementPageRequest.fromJson(Map<String, dynamic> map) {
  6076. return QueryAnnouncementPageRequest(
  6077. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  6078. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  6079. keyword: map['Keyword'],
  6080. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  6081. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  6082. pageIndex: map['PageIndex'],
  6083. pageSize: map['PageSize'],
  6084. token: map['Token'],
  6085. );
  6086. }
  6087. Map<String, dynamic> toJson() {
  6088. final map = super.toJson();
  6089. map['AnnouncementType'] = announcementType.index;
  6090. map['AnnouncementStatus'] = announcementStatus.index;
  6091. if(keyword != null)
  6092. map['Keyword'] = keyword;
  6093. if(startTime != null)
  6094. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  6095. if(endTime != null)
  6096. map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
  6097. return map;
  6098. }
  6099. }
  6100. class QueryDeviceModelBindNumRequest extends TokenRequest{
  6101. String? deviceModelCode;
  6102. QueryDeviceModelBindNumRequest({
  6103. this.deviceModelCode,
  6104. String? token,
  6105. }) : super(
  6106. token: token,
  6107. );
  6108. factory QueryDeviceModelBindNumRequest.fromJson(Map<String, dynamic> map) {
  6109. return QueryDeviceModelBindNumRequest(
  6110. deviceModelCode: map['DeviceModelCode'],
  6111. token: map['Token'],
  6112. );
  6113. }
  6114. Map<String, dynamic> toJson() {
  6115. final map = super.toJson();
  6116. if(deviceModelCode != null)
  6117. map['DeviceModelCode'] = deviceModelCode;
  6118. return map;
  6119. }
  6120. }
  6121. class QueryRoleAdminNumRequest extends TokenRequest{
  6122. String? adminRoleCode;
  6123. QueryRoleAdminNumRequest({
  6124. this.adminRoleCode,
  6125. String? token,
  6126. }) : super(
  6127. token: token,
  6128. );
  6129. factory QueryRoleAdminNumRequest.fromJson(Map<String, dynamic> map) {
  6130. return QueryRoleAdminNumRequest(
  6131. adminRoleCode: map['AdminRoleCode'],
  6132. token: map['Token'],
  6133. );
  6134. }
  6135. Map<String, dynamic> toJson() {
  6136. final map = super.toJson();
  6137. if(adminRoleCode != null)
  6138. map['AdminRoleCode'] = adminRoleCode;
  6139. return map;
  6140. }
  6141. }
  6142. class QueryRoleUserNumRequest extends TokenRequest{
  6143. String? roleCode;
  6144. QueryRoleUserNumRequest({
  6145. this.roleCode,
  6146. String? token,
  6147. }) : super(
  6148. token: token,
  6149. );
  6150. factory QueryRoleUserNumRequest.fromJson(Map<String, dynamic> map) {
  6151. return QueryRoleUserNumRequest(
  6152. roleCode: map['RoleCode'],
  6153. token: map['Token'],
  6154. );
  6155. }
  6156. Map<String, dynamic> toJson() {
  6157. final map = super.toJson();
  6158. if(roleCode != null)
  6159. map['RoleCode'] = roleCode;
  6160. return map;
  6161. }
  6162. }
  6163. class QuerySystemConfigRequest extends TokenRequest{
  6164. String? code;
  6165. String? configKey;
  6166. QuerySystemConfigRequest({
  6167. this.code,
  6168. this.configKey,
  6169. String? token,
  6170. }) : super(
  6171. token: token,
  6172. );
  6173. factory QuerySystemConfigRequest.fromJson(Map<String, dynamic> map) {
  6174. return QuerySystemConfigRequest(
  6175. code: map['Code'],
  6176. configKey: map['ConfigKey'],
  6177. token: map['Token'],
  6178. );
  6179. }
  6180. Map<String, dynamic> toJson() {
  6181. final map = super.toJson();
  6182. if(code != null)
  6183. map['Code'] = code;
  6184. if(configKey != null)
  6185. map['ConfigKey'] = configKey;
  6186. return map;
  6187. }
  6188. }
  6189. class RejectIdentityApplyRequest extends TokenRequest{
  6190. String? identityApplyCode;
  6191. String? rejectReason;
  6192. RejectIdentityApplyRequest({
  6193. this.identityApplyCode,
  6194. this.rejectReason,
  6195. String? token,
  6196. }) : super(
  6197. token: token,
  6198. );
  6199. factory RejectIdentityApplyRequest.fromJson(Map<String, dynamic> map) {
  6200. return RejectIdentityApplyRequest(
  6201. identityApplyCode: map['IdentityApplyCode'],
  6202. rejectReason: map['RejectReason'],
  6203. token: map['Token'],
  6204. );
  6205. }
  6206. Map<String, dynamic> toJson() {
  6207. final map = super.toJson();
  6208. if(identityApplyCode != null)
  6209. map['IdentityApplyCode'] = identityApplyCode;
  6210. if(rejectReason != null)
  6211. map['RejectReason'] = rejectReason;
  6212. return map;
  6213. }
  6214. }
  6215. class RemoveAdminRequest extends TokenRequest{
  6216. String? adminCode;
  6217. RemoveAdminRequest({
  6218. this.adminCode,
  6219. String? token,
  6220. }) : super(
  6221. token: token,
  6222. );
  6223. factory RemoveAdminRequest.fromJson(Map<String, dynamic> map) {
  6224. return RemoveAdminRequest(
  6225. adminCode: map['AdminCode'],
  6226. token: map['Token'],
  6227. );
  6228. }
  6229. Map<String, dynamic> toJson() {
  6230. final map = super.toJson();
  6231. if(adminCode != null)
  6232. map['AdminCode'] = adminCode;
  6233. return map;
  6234. }
  6235. }
  6236. class RemoveOrganizationRequest extends TokenRequest{
  6237. String? organizationCode;
  6238. RemoveOrganizationRequest({
  6239. this.organizationCode,
  6240. String? token,
  6241. }) : super(
  6242. token: token,
  6243. );
  6244. factory RemoveOrganizationRequest.fromJson(Map<String, dynamic> map) {
  6245. return RemoveOrganizationRequest(
  6246. organizationCode: map['OrganizationCode'],
  6247. token: map['Token'],
  6248. );
  6249. }
  6250. Map<String, dynamic> toJson() {
  6251. final map = super.toJson();
  6252. if(organizationCode != null)
  6253. map['OrganizationCode'] = organizationCode;
  6254. return map;
  6255. }
  6256. }
  6257. class RemoveReportLabelRequest extends TokenRequest{
  6258. String? reportLabelCode;
  6259. RemoveReportLabelRequest({
  6260. this.reportLabelCode,
  6261. String? token,
  6262. }) : super(
  6263. token: token,
  6264. );
  6265. factory RemoveReportLabelRequest.fromJson(Map<String, dynamic> map) {
  6266. return RemoveReportLabelRequest(
  6267. reportLabelCode: map['ReportLabelCode'],
  6268. token: map['Token'],
  6269. );
  6270. }
  6271. Map<String, dynamic> toJson() {
  6272. final map = super.toJson();
  6273. if(reportLabelCode != null)
  6274. map['ReportLabelCode'] = reportLabelCode;
  6275. return map;
  6276. }
  6277. }
  6278. class RemoveReportPosterRequest extends TokenRequest{
  6279. String? reportPosterCode;
  6280. RemoveReportPosterRequest({
  6281. this.reportPosterCode,
  6282. String? token,
  6283. }) : super(
  6284. token: token,
  6285. );
  6286. factory RemoveReportPosterRequest.fromJson(Map<String, dynamic> map) {
  6287. return RemoveReportPosterRequest(
  6288. reportPosterCode: map['ReportPosterCode'],
  6289. token: map['Token'],
  6290. );
  6291. }
  6292. Map<String, dynamic> toJson() {
  6293. final map = super.toJson();
  6294. if(reportPosterCode != null)
  6295. map['ReportPosterCode'] = reportPosterCode;
  6296. return map;
  6297. }
  6298. }
  6299. class RemoveUserRequest extends TokenRequest{
  6300. String? userCode;
  6301. RemoveUserRequest({
  6302. this.userCode,
  6303. String? token,
  6304. }) : super(
  6305. token: token,
  6306. );
  6307. factory RemoveUserRequest.fromJson(Map<String, dynamic> map) {
  6308. return RemoveUserRequest(
  6309. userCode: map['UserCode'],
  6310. token: map['Token'],
  6311. );
  6312. }
  6313. Map<String, dynamic> toJson() {
  6314. final map = super.toJson();
  6315. if(userCode != null)
  6316. map['UserCode'] = userCode;
  6317. return map;
  6318. }
  6319. }
  6320. class UnlockAccountRequest extends TokenRequest{
  6321. String? userCode;
  6322. UnlockAccountRequest({
  6323. this.userCode,
  6324. String? token,
  6325. }) : super(
  6326. token: token,
  6327. );
  6328. factory UnlockAccountRequest.fromJson(Map<String, dynamic> map) {
  6329. return UnlockAccountRequest(
  6330. userCode: map['UserCode'],
  6331. token: map['Token'],
  6332. );
  6333. }
  6334. Map<String, dynamic> toJson() {
  6335. final map = super.toJson();
  6336. if(userCode != null)
  6337. map['UserCode'] = userCode;
  6338. return map;
  6339. }
  6340. }
  6341. class ResetUserPasswordRequest extends TokenRequest{
  6342. String? userCode;
  6343. String? passWord;
  6344. ResetUserPasswordRequest({
  6345. this.userCode,
  6346. this.passWord,
  6347. String? token,
  6348. }) : super(
  6349. token: token,
  6350. );
  6351. factory ResetUserPasswordRequest.fromJson(Map<String, dynamic> map) {
  6352. return ResetUserPasswordRequest(
  6353. userCode: map['UserCode'],
  6354. passWord: map['PassWord'],
  6355. token: map['Token'],
  6356. );
  6357. }
  6358. Map<String, dynamic> toJson() {
  6359. final map = super.toJson();
  6360. if(userCode != null)
  6361. map['UserCode'] = userCode;
  6362. if(passWord != null)
  6363. map['PassWord'] = passWord;
  6364. return map;
  6365. }
  6366. }
  6367. class RetryPushReportRecordsRequest extends TokenRequest{
  6368. List<String >? codes;
  6369. RetryPushReportRecordsRequest({
  6370. this.codes,
  6371. String? token,
  6372. }) : super(
  6373. token: token,
  6374. );
  6375. factory RetryPushReportRecordsRequest.fromJson(Map<String, dynamic> map) {
  6376. return RetryPushReportRecordsRequest(
  6377. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  6378. token: map['Token'],
  6379. );
  6380. }
  6381. Map<String, dynamic> toJson() {
  6382. final map = super.toJson();
  6383. if(codes != null)
  6384. map['Codes'] = codes;
  6385. return map;
  6386. }
  6387. }
  6388. class SaveCMSTemplateDetailRequest extends TokenRequest{
  6389. String? cMSTemplateCode;
  6390. String? cMSTemplateName;
  6391. CMSTemplateStatusTypeEnum cMSTemplateStateType;
  6392. String? cMSTemplateJson;
  6393. bool isDefault;
  6394. String? cMSBgColor;
  6395. String? cMSBgImg;
  6396. bool isShowTop;
  6397. String? cMSBorderColor;
  6398. int cMSBorderShadow;
  6399. SaveCMSTemplateDetailRequest({
  6400. this.cMSTemplateCode,
  6401. this.cMSTemplateName,
  6402. this.cMSTemplateStateType = CMSTemplateStatusTypeEnum.UnPublished,
  6403. this.cMSTemplateJson,
  6404. this.isDefault = false,
  6405. this.cMSBgColor,
  6406. this.cMSBgImg,
  6407. this.isShowTop = false,
  6408. this.cMSBorderColor,
  6409. this.cMSBorderShadow = 0,
  6410. String? token,
  6411. }) : super(
  6412. token: token,
  6413. );
  6414. factory SaveCMSTemplateDetailRequest.fromJson(Map<String, dynamic> map) {
  6415. return SaveCMSTemplateDetailRequest(
  6416. cMSTemplateCode: map['CMSTemplateCode'],
  6417. cMSTemplateName: map['CMSTemplateName'],
  6418. cMSTemplateStateType: CMSTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['CMSTemplateStateType']),
  6419. cMSTemplateJson: map['CMSTemplateJson'],
  6420. isDefault: map['IsDefault'],
  6421. cMSBgColor: map['CMSBgColor'],
  6422. cMSBgImg: map['CMSBgImg'],
  6423. isShowTop: map['IsShowTop'],
  6424. cMSBorderColor: map['CMSBorderColor'],
  6425. cMSBorderShadow: map['CMSBorderShadow'],
  6426. token: map['Token'],
  6427. );
  6428. }
  6429. Map<String, dynamic> toJson() {
  6430. final map = super.toJson();
  6431. if(cMSTemplateCode != null)
  6432. map['CMSTemplateCode'] = cMSTemplateCode;
  6433. if(cMSTemplateName != null)
  6434. map['CMSTemplateName'] = cMSTemplateName;
  6435. map['CMSTemplateStateType'] = cMSTemplateStateType.index;
  6436. if(cMSTemplateJson != null)
  6437. map['CMSTemplateJson'] = cMSTemplateJson;
  6438. map['IsDefault'] = isDefault;
  6439. if(cMSBgColor != null)
  6440. map['CMSBgColor'] = cMSBgColor;
  6441. if(cMSBgImg != null)
  6442. map['CMSBgImg'] = cMSBgImg;
  6443. map['IsShowTop'] = isShowTop;
  6444. if(cMSBorderColor != null)
  6445. map['CMSBorderColor'] = cMSBorderColor;
  6446. map['CMSBorderShadow'] = cMSBorderShadow;
  6447. return map;
  6448. }
  6449. }
  6450. class SaveReportLabelRequest extends TokenRequest{
  6451. String? reportLabelCode;
  6452. String? labelName;
  6453. String? languageCode;
  6454. ReportLabelUsageTypeEnum usageType;
  6455. List<String >? labelItems;
  6456. SaveReportLabelRequest({
  6457. this.reportLabelCode,
  6458. this.labelName,
  6459. this.languageCode,
  6460. this.usageType = ReportLabelUsageTypeEnum.People,
  6461. this.labelItems,
  6462. String? token,
  6463. }) : super(
  6464. token: token,
  6465. );
  6466. factory SaveReportLabelRequest.fromJson(Map<String, dynamic> map) {
  6467. return SaveReportLabelRequest(
  6468. reportLabelCode: map['ReportLabelCode'],
  6469. labelName: map['LabelName'],
  6470. languageCode: map['LanguageCode'],
  6471. usageType: ReportLabelUsageTypeEnum.values.firstWhere((e) => e.index == map['UsageType']),
  6472. labelItems: map['LabelItems'] != null ? map['LabelItems'].cast<String>().toList() : null,
  6473. token: map['Token'],
  6474. );
  6475. }
  6476. Map<String, dynamic> toJson() {
  6477. final map = super.toJson();
  6478. if(reportLabelCode != null)
  6479. map['ReportLabelCode'] = reportLabelCode;
  6480. if(labelName != null)
  6481. map['LabelName'] = labelName;
  6482. if(languageCode != null)
  6483. map['LanguageCode'] = languageCode;
  6484. map['UsageType'] = usageType.index;
  6485. if(labelItems != null)
  6486. map['LabelItems'] = labelItems;
  6487. return map;
  6488. }
  6489. }
  6490. enum ReportPosterTypeEnum {
  6491. Default,
  6492. BJAid,
  6493. }
  6494. enum ReportFormatEnum {
  6495. Json,
  6496. Xml,
  6497. Text,
  6498. }
  6499. class SaveReportPosterRequest extends TokenRequest{
  6500. String? reportPosterCode;
  6501. String? receiverName;
  6502. String? contact;
  6503. String? phone;
  6504. String? targetUrl;
  6505. String? template;
  6506. ReportPosterTypeEnum posterType;
  6507. ReportFormatEnum reportFormat;
  6508. int postTimeout;
  6509. SaveReportPosterRequest({
  6510. this.reportPosterCode,
  6511. this.receiverName,
  6512. this.contact,
  6513. this.phone,
  6514. this.targetUrl,
  6515. this.template,
  6516. this.posterType = ReportPosterTypeEnum.Default,
  6517. this.reportFormat = ReportFormatEnum.Json,
  6518. this.postTimeout = 0,
  6519. String? token,
  6520. }) : super(
  6521. token: token,
  6522. );
  6523. factory SaveReportPosterRequest.fromJson(Map<String, dynamic> map) {
  6524. return SaveReportPosterRequest(
  6525. reportPosterCode: map['ReportPosterCode'],
  6526. receiverName: map['ReceiverName'],
  6527. contact: map['Contact'],
  6528. phone: map['Phone'],
  6529. targetUrl: map['TargetUrl'],
  6530. template: map['Template'],
  6531. posterType: ReportPosterTypeEnum.values.firstWhere((e) => e.index == map['PosterType']),
  6532. reportFormat: ReportFormatEnum.values.firstWhere((e) => e.index == map['ReportFormat']),
  6533. postTimeout: map['PostTimeout'],
  6534. token: map['Token'],
  6535. );
  6536. }
  6537. Map<String, dynamic> toJson() {
  6538. final map = super.toJson();
  6539. if(reportPosterCode != null)
  6540. map['ReportPosterCode'] = reportPosterCode;
  6541. if(receiverName != null)
  6542. map['ReceiverName'] = receiverName;
  6543. if(contact != null)
  6544. map['Contact'] = contact;
  6545. if(phone != null)
  6546. map['Phone'] = phone;
  6547. if(targetUrl != null)
  6548. map['TargetUrl'] = targetUrl;
  6549. if(template != null)
  6550. map['Template'] = template;
  6551. map['PosterType'] = posterType.index;
  6552. map['ReportFormat'] = reportFormat.index;
  6553. map['PostTimeout'] = postTimeout;
  6554. return map;
  6555. }
  6556. }
  6557. class SaveThesaurusRequest extends ThesaurusDTO{
  6558. String? token;
  6559. SaveThesaurusRequest({
  6560. this.token,
  6561. String? thesaurusCode,
  6562. String? thesaurusName,
  6563. ThesaurusStatusTypeEnum thesaurusStateType = ThesaurusStatusTypeEnum.Unpublished,
  6564. ThesaurusTypeEnum thesaurusType = ThesaurusTypeEnum.Default,
  6565. ThesaurusUsageTypeEnum thesaurusUsageType = ThesaurusUsageTypeEnum.People,
  6566. String? organizationCode,
  6567. String? personalCode,
  6568. String? referenceThesaurusCode,
  6569. bool isDefault = false,
  6570. bool isUserDefault = false,
  6571. }) : super(
  6572. thesaurusCode: thesaurusCode,
  6573. thesaurusName: thesaurusName,
  6574. thesaurusStateType: thesaurusStateType,
  6575. thesaurusType: thesaurusType,
  6576. thesaurusUsageType: thesaurusUsageType,
  6577. organizationCode: organizationCode,
  6578. personalCode: personalCode,
  6579. referenceThesaurusCode: referenceThesaurusCode,
  6580. isDefault: isDefault,
  6581. isUserDefault: isUserDefault,
  6582. );
  6583. factory SaveThesaurusRequest.fromJson(Map<String, dynamic> map) {
  6584. return SaveThesaurusRequest(
  6585. token: map['Token'],
  6586. thesaurusCode: map['ThesaurusCode'],
  6587. thesaurusName: map['ThesaurusName'],
  6588. thesaurusStateType: ThesaurusStatusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusStateType']),
  6589. thesaurusType: ThesaurusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusType']),
  6590. thesaurusUsageType: ThesaurusUsageTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusUsageType']),
  6591. organizationCode: map['OrganizationCode'],
  6592. personalCode: map['PersonalCode'],
  6593. referenceThesaurusCode: map['ReferenceThesaurusCode'],
  6594. isDefault: map['IsDefault'],
  6595. isUserDefault: map['IsUserDefault'],
  6596. );
  6597. }
  6598. Map<String, dynamic> toJson() {
  6599. final map = super.toJson();
  6600. if(token != null)
  6601. map['Token'] = token;
  6602. return map;
  6603. }
  6604. }
  6605. class SettingReloadRequest extends TokenRequest{
  6606. String? settingKey;
  6607. SettingReloadRequest({
  6608. this.settingKey,
  6609. String? token,
  6610. }) : super(
  6611. token: token,
  6612. );
  6613. factory SettingReloadRequest.fromJson(Map<String, dynamic> map) {
  6614. return SettingReloadRequest(
  6615. settingKey: map['SettingKey'],
  6616. token: map['Token'],
  6617. );
  6618. }
  6619. Map<String, dynamic> toJson() {
  6620. final map = super.toJson();
  6621. if(settingKey != null)
  6622. map['SettingKey'] = settingKey;
  6623. return map;
  6624. }
  6625. }
  6626. class ShareDeviceRequest extends TokenRequest{
  6627. List<String >? userCodeList;
  6628. List<String >? deviceCodes;
  6629. ShareDeviceRequest({
  6630. this.userCodeList,
  6631. this.deviceCodes,
  6632. String? token,
  6633. }) : super(
  6634. token: token,
  6635. );
  6636. factory ShareDeviceRequest.fromJson(Map<String, dynamic> map) {
  6637. return ShareDeviceRequest(
  6638. userCodeList: map['UserCodeList'] != null ? map['UserCodeList'].cast<String>().toList() : null,
  6639. deviceCodes: map['DeviceCodes'] != null ? map['DeviceCodes'].cast<String>().toList() : null,
  6640. token: map['Token'],
  6641. );
  6642. }
  6643. Map<String, dynamic> toJson() {
  6644. final map = super.toJson();
  6645. if(userCodeList != null)
  6646. map['UserCodeList'] = userCodeList;
  6647. if(deviceCodes != null)
  6648. map['DeviceCodes'] = deviceCodes;
  6649. return map;
  6650. }
  6651. }
  6652. class ThesaurusItemRequest extends TokenRequest{
  6653. String? thesaurusItemCode;
  6654. ThesaurusItemTypeEnum thesaurusItemType;
  6655. String? thesaurusItemName;
  6656. String? parentItemCode;
  6657. String? thesaurusCode;
  6658. String? thesaurusItemDescription;
  6659. String? thesaurusItemConclusion;
  6660. ThesaurusItemRequest({
  6661. this.thesaurusItemCode,
  6662. this.thesaurusItemType = ThesaurusItemTypeEnum.Classification,
  6663. this.thesaurusItemName,
  6664. this.parentItemCode,
  6665. this.thesaurusCode,
  6666. this.thesaurusItemDescription,
  6667. this.thesaurusItemConclusion,
  6668. String? token,
  6669. }) : super(
  6670. token: token,
  6671. );
  6672. factory ThesaurusItemRequest.fromJson(Map<String, dynamic> map) {
  6673. return ThesaurusItemRequest(
  6674. thesaurusItemCode: map['ThesaurusItemCode'],
  6675. thesaurusItemType: ThesaurusItemTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusItemType']),
  6676. thesaurusItemName: map['ThesaurusItemName'],
  6677. parentItemCode: map['ParentItemCode'],
  6678. thesaurusCode: map['ThesaurusCode'],
  6679. thesaurusItemDescription: map['ThesaurusItemDescription'],
  6680. thesaurusItemConclusion: map['ThesaurusItemConclusion'],
  6681. token: map['Token'],
  6682. );
  6683. }
  6684. Map<String, dynamic> toJson() {
  6685. final map = super.toJson();
  6686. if(thesaurusItemCode != null)
  6687. map['ThesaurusItemCode'] = thesaurusItemCode;
  6688. map['ThesaurusItemType'] = thesaurusItemType.index;
  6689. if(thesaurusItemName != null)
  6690. map['ThesaurusItemName'] = thesaurusItemName;
  6691. if(parentItemCode != null)
  6692. map['ParentItemCode'] = parentItemCode;
  6693. if(thesaurusCode != null)
  6694. map['ThesaurusCode'] = thesaurusCode;
  6695. if(thesaurusItemDescription != null)
  6696. map['ThesaurusItemDescription'] = thesaurusItemDescription;
  6697. if(thesaurusItemConclusion != null)
  6698. map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
  6699. return map;
  6700. }
  6701. }
  6702. enum GradingConfigTypeEnum {
  6703. Switch,
  6704. Text,
  6705. }
  6706. class UpdateGradingProtectionConfigEnableRequest extends TokenRequest{
  6707. List<String >? codes;
  6708. GradingConfigTypeEnum configType;
  6709. String? value;
  6710. UpdateGradingProtectionConfigEnableRequest({
  6711. this.codes,
  6712. this.configType = GradingConfigTypeEnum.Switch,
  6713. this.value,
  6714. String? token,
  6715. }) : super(
  6716. token: token,
  6717. );
  6718. factory UpdateGradingProtectionConfigEnableRequest.fromJson(Map<String, dynamic> map) {
  6719. return UpdateGradingProtectionConfigEnableRequest(
  6720. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  6721. configType: GradingConfigTypeEnum.values.firstWhere((e) => e.index == map['ConfigType']),
  6722. value: map['Value'],
  6723. token: map['Token'],
  6724. );
  6725. }
  6726. Map<String, dynamic> toJson() {
  6727. final map = super.toJson();
  6728. if(codes != null)
  6729. map['Codes'] = codes;
  6730. map['ConfigType'] = configType.index;
  6731. if(value != null)
  6732. map['Value'] = value;
  6733. return map;
  6734. }
  6735. }
  6736. class FindVideosByCourseCodeRequest extends TokenRequest{
  6737. String? code;
  6738. String? courseCode;
  6739. FindVideosByCourseCodeRequest({
  6740. this.code,
  6741. this.courseCode,
  6742. String? token,
  6743. }) : super(
  6744. token: token,
  6745. );
  6746. factory FindVideosByCourseCodeRequest.fromJson(Map<String, dynamic> map) {
  6747. return FindVideosByCourseCodeRequest(
  6748. code: map['Code'],
  6749. courseCode: map['CourseCode'],
  6750. token: map['Token'],
  6751. );
  6752. }
  6753. Map<String, dynamic> toJson() {
  6754. final map = super.toJson();
  6755. if(code != null)
  6756. map['Code'] = code;
  6757. if(courseCode != null)
  6758. map['CourseCode'] = courseCode;
  6759. return map;
  6760. }
  6761. }
  6762. class GetOpLogsByCodesFormMasterRequest {
  6763. List<String >? codes;
  6764. GetOpLogsByCodesFormMasterRequest({
  6765. this.codes,
  6766. });
  6767. factory GetOpLogsByCodesFormMasterRequest.fromJson(Map<String, dynamic> map) {
  6768. return GetOpLogsByCodesFormMasterRequest(
  6769. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  6770. );
  6771. }
  6772. Map<String, dynamic> toJson() {
  6773. final map = Map<String, dynamic>();
  6774. if(codes != null)
  6775. map['Codes'] = codes;
  6776. return map;
  6777. }
  6778. }
  6779. class GetOpLogsFormMasterRequest {
  6780. int cursor;
  6781. String? sourceUrl;
  6782. GetOpLogsFormMasterRequest({
  6783. this.cursor = 0,
  6784. this.sourceUrl,
  6785. });
  6786. factory GetOpLogsFormMasterRequest.fromJson(Map<String, dynamic> map) {
  6787. return GetOpLogsFormMasterRequest(
  6788. cursor: map['Cursor'],
  6789. sourceUrl: map['SourceUrl'],
  6790. );
  6791. }
  6792. Map<String, dynamic> toJson() {
  6793. final map = Map<String, dynamic>();
  6794. map['Cursor'] = cursor;
  6795. if(sourceUrl != null)
  6796. map['SourceUrl'] = sourceUrl;
  6797. return map;
  6798. }
  6799. }
  6800. enum MongoDBActionTypeEnum {
  6801. InsertOne,
  6802. InsertOneAsync,
  6803. InsertMany,
  6804. InsertManyAsync,
  6805. DeleteOne,
  6806. DeleteOneAsync,
  6807. DeleteMany,
  6808. DeleteManyAsync,
  6809. FindOneAndDelete,
  6810. FindOneAndDeleteAsync,
  6811. ReplaceOne,
  6812. ReplaceOneAsync,
  6813. FindOneAndReplace,
  6814. FindOneAndReplaceAsync,
  6815. UpdateOne,
  6816. UpdateOneAsync,
  6817. UpdateMany,
  6818. UpdateManyAsync,
  6819. FindOneAndUpdate,
  6820. FindOneAndUpdateAsync,
  6821. }
  6822. class OperationLogDTO {
  6823. int id;
  6824. String? collectionName;
  6825. MongoDBActionTypeEnum actionType;
  6826. String? bsonContent;
  6827. String? filterContent;
  6828. DateTime? createTime;
  6829. String? code;
  6830. String? sourceUrl;
  6831. bool isSimple;
  6832. OperationLogDTO({
  6833. this.id = 0,
  6834. this.collectionName,
  6835. this.actionType = MongoDBActionTypeEnum.InsertOne,
  6836. this.bsonContent,
  6837. this.filterContent,
  6838. this.createTime,
  6839. this.code,
  6840. this.sourceUrl,
  6841. this.isSimple = false,
  6842. });
  6843. factory OperationLogDTO.fromJson(Map<String, dynamic> map) {
  6844. return OperationLogDTO(
  6845. id: map['Id'],
  6846. collectionName: map['CollectionName'],
  6847. actionType: MongoDBActionTypeEnum.values.firstWhere((e) => e.index == map['ActionType']),
  6848. bsonContent: map['BsonContent'],
  6849. filterContent: map['FilterContent'],
  6850. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6851. code: map['Code'],
  6852. sourceUrl: map['SourceUrl'],
  6853. isSimple: map['IsSimple'],
  6854. );
  6855. }
  6856. Map<String, dynamic> toJson() {
  6857. final map = Map<String, dynamic>();
  6858. map['Id'] = id;
  6859. if(collectionName != null)
  6860. map['CollectionName'] = collectionName;
  6861. map['ActionType'] = actionType.index;
  6862. if(bsonContent != null)
  6863. map['BsonContent'] = bsonContent;
  6864. if(filterContent != null)
  6865. map['FilterContent'] = filterContent;
  6866. if(createTime != null)
  6867. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  6868. if(code != null)
  6869. map['Code'] = code;
  6870. if(sourceUrl != null)
  6871. map['SourceUrl'] = sourceUrl;
  6872. map['IsSimple'] = isSimple;
  6873. return map;
  6874. }
  6875. }
  6876. class SyncCompleteOpLogsRequest {
  6877. List<OperationLogDTO >? oplogs;
  6878. SyncCompleteOpLogsRequest({
  6879. this.oplogs,
  6880. });
  6881. factory SyncCompleteOpLogsRequest.fromJson(Map<String, dynamic> map) {
  6882. return SyncCompleteOpLogsRequest(
  6883. oplogs: map['Oplogs'] != null ? (map['Oplogs'] as List).map((e)=>OperationLogDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6884. );
  6885. }
  6886. Map<String, dynamic> toJson() {
  6887. final map = Map<String, dynamic>();
  6888. if(oplogs != null)
  6889. map['Oplogs'] = oplogs;
  6890. return map;
  6891. }
  6892. }
  6893. class SyncOpLogToMasterRequest {
  6894. String? collectionName;
  6895. MongoDBActionTypeEnum actionType;
  6896. String? bsonContent;
  6897. String? filterContent;
  6898. DateTime? createTime;
  6899. String? sourceUrl;
  6900. String? code;
  6901. String? serverID;
  6902. bool isSimple;
  6903. SyncOpLogToMasterRequest({
  6904. this.collectionName,
  6905. this.actionType = MongoDBActionTypeEnum.InsertOne,
  6906. this.bsonContent,
  6907. this.filterContent,
  6908. this.createTime,
  6909. this.sourceUrl,
  6910. this.code,
  6911. this.serverID,
  6912. this.isSimple = false,
  6913. });
  6914. factory SyncOpLogToMasterRequest.fromJson(Map<String, dynamic> map) {
  6915. return SyncOpLogToMasterRequest(
  6916. collectionName: map['CollectionName'],
  6917. actionType: MongoDBActionTypeEnum.values.firstWhere((e) => e.index == map['ActionType']),
  6918. bsonContent: map['BsonContent'],
  6919. filterContent: map['FilterContent'],
  6920. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6921. sourceUrl: map['SourceUrl'],
  6922. code: map['Code'],
  6923. serverID: map['ServerID'],
  6924. isSimple: map['IsSimple'],
  6925. );
  6926. }
  6927. Map<String, dynamic> toJson() {
  6928. final map = Map<String, dynamic>();
  6929. if(collectionName != null)
  6930. map['CollectionName'] = collectionName;
  6931. map['ActionType'] = actionType.index;
  6932. if(bsonContent != null)
  6933. map['BsonContent'] = bsonContent;
  6934. if(filterContent != null)
  6935. map['FilterContent'] = filterContent;
  6936. if(createTime != null)
  6937. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  6938. if(sourceUrl != null)
  6939. map['SourceUrl'] = sourceUrl;
  6940. if(code != null)
  6941. map['Code'] = code;
  6942. if(serverID != null)
  6943. map['ServerID'] = serverID;
  6944. map['IsSimple'] = isSimple;
  6945. return map;
  6946. }
  6947. }
  6948. class NotificationClientInfo {
  6949. String? clientId;
  6950. String? loginServerUrl;
  6951. NotificationClientInfo({
  6952. this.clientId,
  6953. this.loginServerUrl,
  6954. });
  6955. factory NotificationClientInfo.fromJson(Map<String, dynamic> map) {
  6956. return NotificationClientInfo(
  6957. clientId: map['ClientId'],
  6958. loginServerUrl: map['LoginServerUrl'],
  6959. );
  6960. }
  6961. Map<String, dynamic> toJson() {
  6962. final map = Map<String, dynamic>();
  6963. if(clientId != null)
  6964. map['ClientId'] = clientId;
  6965. if(loginServerUrl != null)
  6966. map['LoginServerUrl'] = loginServerUrl;
  6967. return map;
  6968. }
  6969. }
  6970. class ChangeConsultationControllingStateRequest extends TokenRequest{
  6971. String? deviceCode;
  6972. String? userCode;
  6973. bool isControllingParameter;
  6974. ChangeConsultationControllingStateRequest({
  6975. this.deviceCode,
  6976. this.userCode,
  6977. this.isControllingParameter = false,
  6978. String? token,
  6979. }) : super(
  6980. token: token,
  6981. );
  6982. factory ChangeConsultationControllingStateRequest.fromJson(Map<String, dynamic> map) {
  6983. return ChangeConsultationControllingStateRequest(
  6984. deviceCode: map['DeviceCode'],
  6985. userCode: map['UserCode'],
  6986. isControllingParameter: map['IsControllingParameter'],
  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. if(userCode != null)
  6995. map['UserCode'] = userCode;
  6996. map['IsControllingParameter'] = isControllingParameter;
  6997. return map;
  6998. }
  6999. }
  7000. enum ConsultationMemeberAcceptStatus {
  7001. Default,
  7002. Accepted,
  7003. Rejected,
  7004. }
  7005. enum LiveConsultationRoleEnum {
  7006. Expert,
  7007. General,
  7008. OtherParticipant,
  7009. AssistantDoctor,
  7010. Assistant,
  7011. }
  7012. enum LiveConsultationRoomStatus {
  7013. Default,
  7014. Initiating,
  7015. Cancelled,
  7016. ConnectionTimeout,
  7017. Connected,
  7018. Closed,
  7019. }
  7020. enum VideoProtocol {
  7021. Rtmp,
  7022. Rtc,
  7023. }
  7024. class DeviceJoinLiveConsultationResult {
  7025. String? consultationCode;
  7026. String? deviceCode;
  7027. int roomNo;
  7028. int appId;
  7029. String? deviceSign;
  7030. List<LiveConsultationMember >? memberLiveDatas;
  7031. List<InteractiveBoardDataDTO >? interactiveBoardDatas;
  7032. DeviceJoinLiveConsultationResult({
  7033. this.consultationCode,
  7034. this.deviceCode,
  7035. this.roomNo = 0,
  7036. this.appId = 0,
  7037. this.deviceSign,
  7038. this.memberLiveDatas,
  7039. this.interactiveBoardDatas,
  7040. });
  7041. factory DeviceJoinLiveConsultationResult.fromJson(Map<String, dynamic> map) {
  7042. return DeviceJoinLiveConsultationResult(
  7043. consultationCode: map['ConsultationCode'],
  7044. deviceCode: map['DeviceCode'],
  7045. roomNo: map['RoomNo'],
  7046. appId: map['AppId'],
  7047. deviceSign: map['DeviceSign'],
  7048. memberLiveDatas: map['MemberLiveDatas'] != null ? (map['MemberLiveDatas'] as List).map((e)=>LiveConsultationMember.fromJson(e as Map<String,dynamic>)).toList() : null,
  7049. interactiveBoardDatas: map['InteractiveBoardDatas'] != null ? (map['InteractiveBoardDatas'] as List).map((e)=>InteractiveBoardDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  7050. );
  7051. }
  7052. Map<String, dynamic> toJson() {
  7053. final map = Map<String, dynamic>();
  7054. if(consultationCode != null)
  7055. map['ConsultationCode'] = consultationCode;
  7056. if(deviceCode != null)
  7057. map['DeviceCode'] = deviceCode;
  7058. map['RoomNo'] = roomNo;
  7059. map['AppId'] = appId;
  7060. if(deviceSign != null)
  7061. map['DeviceSign'] = deviceSign;
  7062. if(memberLiveDatas != null)
  7063. map['MemberLiveDatas'] = memberLiveDatas;
  7064. if(interactiveBoardDatas != null)
  7065. map['InteractiveBoardDatas'] = interactiveBoardDatas;
  7066. return map;
  7067. }
  7068. }
  7069. class LiveConsultationRoomDTO {
  7070. String? consultationCode;
  7071. LiveConsultationMember? initiator;
  7072. List<LiveConsultationMember >? members;
  7073. List<LiveConsultationMember >? devices;
  7074. LiveConsultationRoomStatus status;
  7075. int roomNo;
  7076. LiveConsultationRoomDTO({
  7077. this.consultationCode,
  7078. this.initiator,
  7079. this.members,
  7080. this.devices,
  7081. this.status = LiveConsultationRoomStatus.Default,
  7082. this.roomNo = 0,
  7083. });
  7084. factory LiveConsultationRoomDTO.fromJson(Map<String, dynamic> map) {
  7085. return LiveConsultationRoomDTO(
  7086. consultationCode: map['ConsultationCode'],
  7087. initiator: map['Initiator'] != null ? LiveConsultationMember.fromJson(map['Initiator']) : null,
  7088. members: map['Members'] != null ? (map['Members'] as List).map((e)=>LiveConsultationMember.fromJson(e as Map<String,dynamic>)).toList() : null,
  7089. devices: map['Devices'] != null ? (map['Devices'] as List).map((e)=>LiveConsultationMember.fromJson(e as Map<String,dynamic>)).toList() : null,
  7090. status: LiveConsultationRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  7091. roomNo: map['RoomNo'],
  7092. );
  7093. }
  7094. Map<String, dynamic> toJson() {
  7095. final map = Map<String, dynamic>();
  7096. if(consultationCode != null)
  7097. map['ConsultationCode'] = consultationCode;
  7098. if(initiator != null)
  7099. map['Initiator'] = initiator;
  7100. if(members != null)
  7101. map['Members'] = members;
  7102. if(devices != null)
  7103. map['Devices'] = devices;
  7104. map['Status'] = status.index;
  7105. map['RoomNo'] = roomNo;
  7106. return map;
  7107. }
  7108. }
  7109. enum BoardTypeEnum {
  7110. ReadOnly,
  7111. Ink,
  7112. Line,
  7113. Erase,
  7114. }
  7115. class FindConsultationSettingRequest extends TokenRequest{
  7116. String? version;
  7117. FindConsultationSettingRequest({
  7118. this.version,
  7119. String? token,
  7120. }) : super(
  7121. token: token,
  7122. );
  7123. factory FindConsultationSettingRequest.fromJson(Map<String, dynamic> map) {
  7124. return FindConsultationSettingRequest(
  7125. version: map['Version'],
  7126. token: map['Token'],
  7127. );
  7128. }
  7129. Map<String, dynamic> toJson() {
  7130. final map = super.toJson();
  7131. if(version != null)
  7132. map['Version'] = version;
  7133. return map;
  7134. }
  7135. }
  7136. class FindOrganizationBindExpertsRequest extends TokenRequest{
  7137. FindOrganizationBindExpertsRequest({
  7138. String? token,
  7139. }) : super(
  7140. token: token,
  7141. );
  7142. factory FindOrganizationBindExpertsRequest.fromJson(Map<String, dynamic> map) {
  7143. return FindOrganizationBindExpertsRequest(
  7144. token: map['Token'],
  7145. );
  7146. }
  7147. Map<String, dynamic> toJson() {
  7148. final map = super.toJson();
  7149. return map;
  7150. }
  7151. }
  7152. class GetEmergencyOrderRequest extends TokenRequest{
  7153. String? emergencySerialNumber;
  7154. GetEmergencyOrderRequest({
  7155. this.emergencySerialNumber,
  7156. String? token,
  7157. }) : super(
  7158. token: token,
  7159. );
  7160. factory GetEmergencyOrderRequest.fromJson(Map<String, dynamic> map) {
  7161. return GetEmergencyOrderRequest(
  7162. emergencySerialNumber: map['EmergencySerialNumber'],
  7163. token: map['Token'],
  7164. );
  7165. }
  7166. Map<String, dynamic> toJson() {
  7167. final map = super.toJson();
  7168. if(emergencySerialNumber != null)
  7169. map['EmergencySerialNumber'] = emergencySerialNumber;
  7170. return map;
  7171. }
  7172. }
  7173. enum AgeUnitsEnum {
  7174. Year,
  7175. YearAndMonth,
  7176. MonthAndWeek,
  7177. WeekAndDay,
  7178. }
  7179. enum AnnounceTypeEnum {
  7180. Broadcast,
  7181. Maintain,
  7182. }
  7183. enum MessageCategoryEnum {
  7184. Consultation,
  7185. Diagnosis,
  7186. Course,
  7187. }
  7188. enum UpgradeEnum {
  7189. Windows,
  7190. Android,
  7191. SonoPost,
  7192. Server,
  7193. FISSDK,
  7194. }
  7195. enum BusinessModuleEnum {
  7196. placeHolder_0,
  7197. RemoteDiagnosis,
  7198. LivingConsultation,
  7199. LivingCourse,
  7200. DeviceLiving,
  7201. RemoteControl,
  7202. }
  7203. enum QueryCMSTemplateStatusTypeEnum {
  7204. UnPublished,
  7205. Published,
  7206. }
  7207. enum QueryCMSMessageStatusEnum {
  7208. UnRead,
  7209. Read,
  7210. }
  7211. enum CMSMessageStatusEnum {
  7212. UnRead,
  7213. Read,
  7214. }
  7215. enum StatisticsPlatformEnum {
  7216. Management,
  7217. CMS,
  7218. }
  7219. enum StatisticsBannerTypeEnum {
  7220. PlatActivity,
  7221. Devices,
  7222. Download,
  7223. }
  7224. enum QueryStatisticsBannerTypeEnum {
  7225. PlatActivity,
  7226. Devices,
  7227. Download,
  7228. }
  7229. enum LogEventLevel {
  7230. Verbose,
  7231. Debug,
  7232. Information,
  7233. Warning,
  7234. Error,
  7235. Fatal,
  7236. }
  7237. enum DiagnosisLabelEnum {
  7238. BIRads1,
  7239. Lipomyoma,
  7240. BIRads2,
  7241. BIRads3,
  7242. BIRads4A,
  7243. BIRads4B,
  7244. BIRads4C,
  7245. BIRads5,
  7246. IntrahepaticHyperechoic,
  7247. HHE,
  7248. CYST,
  7249. PossibleCancer,
  7250. FattyLiver,
  7251. DiffuseLesions,
  7252. Cirrhosis,
  7253. PCLD,
  7254. }
  7255. enum DiagnosisBreastLabelEnum {
  7256. BIRads1,
  7257. Lipomyoma,
  7258. BIRads2,
  7259. BIRads3,
  7260. BIRads4A,
  7261. BIRads4B,
  7262. BIRads4C,
  7263. BIRads5,
  7264. }
  7265. enum DiagnosisLiverLabelEnum {
  7266. BIRads1,
  7267. Hyperechoic,
  7268. HHE,
  7269. CYST,
  7270. PossibleCancer,
  7271. FattyLiver,
  7272. DiffuseLesions,
  7273. Cirrhosis,
  7274. PCLD,
  7275. }
  7276. enum AIThyroidLabelEnum {
  7277. TIRADS0,
  7278. TIRADS2,
  7279. TIRADS3,
  7280. TIRADS4a,
  7281. TIRADS4b,
  7282. TIRADS4c,
  7283. TIRADS5,
  7284. DiffuseDisease,
  7285. }
  7286. enum FollowUpVisitStatusEnum {
  7287. Unknown,
  7288. PendingVisit,
  7289. VisitCompleted,
  7290. }
  7291. enum FunctionalityStatusEnum {
  7292. DemoMode,
  7293. Activity,
  7294. }
  7295. enum GestationalAgeOriginEnum {
  7296. GestationalAge,
  7297. IVF,
  7298. OospermForm,
  7299. BBT,
  7300. LMP,
  7301. }
  7302. enum GetUserListTypeEnum {
  7303. FullName,
  7304. Phone,
  7305. }
  7306. enum HeartbeatTypeEnum {
  7307. ClientToken,
  7308. TerminalToken,
  7309. ThirdpartyToken,
  7310. LiveState,
  7311. RTCState,
  7312. }
  7313. enum LabConvertStateEnum {
  7314. NotStarted,
  7315. Running,
  7316. Finish,
  7317. }
  7318. enum LabFileTypeEnum {
  7319. Media,
  7320. ZipFile,
  7321. }
  7322. enum LiveMemberStatusEnum {
  7323. Default,
  7324. Accepted,
  7325. Rejected,
  7326. Joined,
  7327. Left,
  7328. }
  7329. enum LiveProtocolEnum {
  7330. placeHolder_0,
  7331. RTMP,
  7332. RTC,
  7333. }
  7334. enum LiveRoomStatus {
  7335. Default,
  7336. Initiating,
  7337. Cancelled,
  7338. ConnectionTimeout,
  7339. Connected,
  7340. Closed,
  7341. }
  7342. enum LoginProcessorTypeEnum {
  7343. Official,
  7344. Wechat,
  7345. Phone,
  7346. Email,
  7347. placeHolder_4,
  7348. placeHolder_5,
  7349. placeHolder_6,
  7350. placeHolder_7,
  7351. placeHolder_8,
  7352. placeHolder_9,
  7353. placeHolder_10,
  7354. placeHolder_11,
  7355. placeHolder_12,
  7356. placeHolder_13,
  7357. placeHolder_14,
  7358. placeHolder_15,
  7359. placeHolder_16,
  7360. placeHolder_17,
  7361. placeHolder_18,
  7362. placeHolder_19,
  7363. placeHolder_20,
  7364. placeHolder_21,
  7365. placeHolder_22,
  7366. placeHolder_23,
  7367. placeHolder_24,
  7368. placeHolder_25,
  7369. placeHolder_26,
  7370. placeHolder_27,
  7371. placeHolder_28,
  7372. placeHolder_29,
  7373. placeHolder_30,
  7374. placeHolder_31,
  7375. placeHolder_32,
  7376. placeHolder_33,
  7377. placeHolder_34,
  7378. placeHolder_35,
  7379. placeHolder_36,
  7380. placeHolder_37,
  7381. placeHolder_38,
  7382. placeHolder_39,
  7383. placeHolder_40,
  7384. placeHolder_41,
  7385. placeHolder_42,
  7386. placeHolder_43,
  7387. placeHolder_44,
  7388. placeHolder_45,
  7389. placeHolder_46,
  7390. placeHolder_47,
  7391. placeHolder_48,
  7392. placeHolder_49,
  7393. placeHolder_50,
  7394. placeHolder_51,
  7395. placeHolder_52,
  7396. placeHolder_53,
  7397. placeHolder_54,
  7398. placeHolder_55,
  7399. placeHolder_56,
  7400. placeHolder_57,
  7401. placeHolder_58,
  7402. placeHolder_59,
  7403. placeHolder_60,
  7404. placeHolder_61,
  7405. placeHolder_62,
  7406. placeHolder_63,
  7407. placeHolder_64,
  7408. placeHolder_65,
  7409. placeHolder_66,
  7410. placeHolder_67,
  7411. placeHolder_68,
  7412. placeHolder_69,
  7413. placeHolder_70,
  7414. placeHolder_71,
  7415. placeHolder_72,
  7416. placeHolder_73,
  7417. placeHolder_74,
  7418. placeHolder_75,
  7419. placeHolder_76,
  7420. placeHolder_77,
  7421. placeHolder_78,
  7422. placeHolder_79,
  7423. placeHolder_80,
  7424. placeHolder_81,
  7425. placeHolder_82,
  7426. placeHolder_83,
  7427. placeHolder_84,
  7428. placeHolder_85,
  7429. placeHolder_86,
  7430. placeHolder_87,
  7431. placeHolder_88,
  7432. placeHolder_89,
  7433. placeHolder_90,
  7434. placeHolder_91,
  7435. placeHolder_92,
  7436. placeHolder_93,
  7437. placeHolder_94,
  7438. placeHolder_95,
  7439. placeHolder_96,
  7440. placeHolder_97,
  7441. placeHolder_98,
  7442. placeHolder_99,
  7443. placeHolder_100,
  7444. placeHolder_101,
  7445. placeHolder_102,
  7446. placeHolder_103,
  7447. placeHolder_104,
  7448. placeHolder_105,
  7449. placeHolder_106,
  7450. placeHolder_107,
  7451. placeHolder_108,
  7452. placeHolder_109,
  7453. placeHolder_110,
  7454. placeHolder_111,
  7455. placeHolder_112,
  7456. placeHolder_113,
  7457. placeHolder_114,
  7458. placeHolder_115,
  7459. placeHolder_116,
  7460. placeHolder_117,
  7461. placeHolder_118,
  7462. placeHolder_119,
  7463. placeHolder_120,
  7464. placeHolder_121,
  7465. placeHolder_122,
  7466. placeHolder_123,
  7467. placeHolder_124,
  7468. placeHolder_125,
  7469. placeHolder_126,
  7470. placeHolder_127,
  7471. placeHolder_128,
  7472. placeHolder_129,
  7473. placeHolder_130,
  7474. placeHolder_131,
  7475. placeHolder_132,
  7476. placeHolder_133,
  7477. placeHolder_134,
  7478. placeHolder_135,
  7479. placeHolder_136,
  7480. placeHolder_137,
  7481. placeHolder_138,
  7482. placeHolder_139,
  7483. placeHolder_140,
  7484. placeHolder_141,
  7485. placeHolder_142,
  7486. placeHolder_143,
  7487. placeHolder_144,
  7488. placeHolder_145,
  7489. placeHolder_146,
  7490. placeHolder_147,
  7491. placeHolder_148,
  7492. placeHolder_149,
  7493. placeHolder_150,
  7494. placeHolder_151,
  7495. placeHolder_152,
  7496. placeHolder_153,
  7497. placeHolder_154,
  7498. placeHolder_155,
  7499. placeHolder_156,
  7500. placeHolder_157,
  7501. placeHolder_158,
  7502. placeHolder_159,
  7503. placeHolder_160,
  7504. placeHolder_161,
  7505. placeHolder_162,
  7506. placeHolder_163,
  7507. placeHolder_164,
  7508. placeHolder_165,
  7509. placeHolder_166,
  7510. placeHolder_167,
  7511. placeHolder_168,
  7512. placeHolder_169,
  7513. placeHolder_170,
  7514. placeHolder_171,
  7515. placeHolder_172,
  7516. placeHolder_173,
  7517. placeHolder_174,
  7518. placeHolder_175,
  7519. placeHolder_176,
  7520. placeHolder_177,
  7521. placeHolder_178,
  7522. placeHolder_179,
  7523. placeHolder_180,
  7524. placeHolder_181,
  7525. placeHolder_182,
  7526. placeHolder_183,
  7527. placeHolder_184,
  7528. placeHolder_185,
  7529. placeHolder_186,
  7530. placeHolder_187,
  7531. placeHolder_188,
  7532. placeHolder_189,
  7533. placeHolder_190,
  7534. placeHolder_191,
  7535. placeHolder_192,
  7536. placeHolder_193,
  7537. placeHolder_194,
  7538. placeHolder_195,
  7539. placeHolder_196,
  7540. placeHolder_197,
  7541. placeHolder_198,
  7542. placeHolder_199,
  7543. placeHolder_200,
  7544. placeHolder_201,
  7545. placeHolder_202,
  7546. placeHolder_203,
  7547. placeHolder_204,
  7548. placeHolder_205,
  7549. placeHolder_206,
  7550. placeHolder_207,
  7551. placeHolder_208,
  7552. placeHolder_209,
  7553. placeHolder_210,
  7554. placeHolder_211,
  7555. placeHolder_212,
  7556. placeHolder_213,
  7557. placeHolder_214,
  7558. placeHolder_215,
  7559. placeHolder_216,
  7560. placeHolder_217,
  7561. placeHolder_218,
  7562. placeHolder_219,
  7563. placeHolder_220,
  7564. placeHolder_221,
  7565. placeHolder_222,
  7566. placeHolder_223,
  7567. placeHolder_224,
  7568. placeHolder_225,
  7569. placeHolder_226,
  7570. placeHolder_227,
  7571. placeHolder_228,
  7572. placeHolder_229,
  7573. placeHolder_230,
  7574. placeHolder_231,
  7575. placeHolder_232,
  7576. placeHolder_233,
  7577. placeHolder_234,
  7578. placeHolder_235,
  7579. placeHolder_236,
  7580. placeHolder_237,
  7581. placeHolder_238,
  7582. placeHolder_239,
  7583. placeHolder_240,
  7584. placeHolder_241,
  7585. placeHolder_242,
  7586. placeHolder_243,
  7587. placeHolder_244,
  7588. placeHolder_245,
  7589. placeHolder_246,
  7590. placeHolder_247,
  7591. placeHolder_248,
  7592. placeHolder_249,
  7593. placeHolder_250,
  7594. placeHolder_251,
  7595. placeHolder_252,
  7596. placeHolder_253,
  7597. placeHolder_254,
  7598. placeHolder_255,
  7599. placeHolder_256,
  7600. placeHolder_257,
  7601. placeHolder_258,
  7602. placeHolder_259,
  7603. placeHolder_260,
  7604. placeHolder_261,
  7605. placeHolder_262,
  7606. placeHolder_263,
  7607. placeHolder_264,
  7608. placeHolder_265,
  7609. placeHolder_266,
  7610. placeHolder_267,
  7611. placeHolder_268,
  7612. placeHolder_269,
  7613. placeHolder_270,
  7614. placeHolder_271,
  7615. placeHolder_272,
  7616. placeHolder_273,
  7617. placeHolder_274,
  7618. placeHolder_275,
  7619. placeHolder_276,
  7620. placeHolder_277,
  7621. placeHolder_278,
  7622. placeHolder_279,
  7623. placeHolder_280,
  7624. placeHolder_281,
  7625. placeHolder_282,
  7626. placeHolder_283,
  7627. placeHolder_284,
  7628. placeHolder_285,
  7629. placeHolder_286,
  7630. placeHolder_287,
  7631. placeHolder_288,
  7632. placeHolder_289,
  7633. placeHolder_290,
  7634. placeHolder_291,
  7635. placeHolder_292,
  7636. placeHolder_293,
  7637. placeHolder_294,
  7638. placeHolder_295,
  7639. placeHolder_296,
  7640. placeHolder_297,
  7641. placeHolder_298,
  7642. placeHolder_299,
  7643. placeHolder_300,
  7644. placeHolder_301,
  7645. placeHolder_302,
  7646. placeHolder_303,
  7647. placeHolder_304,
  7648. placeHolder_305,
  7649. placeHolder_306,
  7650. placeHolder_307,
  7651. placeHolder_308,
  7652. placeHolder_309,
  7653. placeHolder_310,
  7654. placeHolder_311,
  7655. placeHolder_312,
  7656. placeHolder_313,
  7657. placeHolder_314,
  7658. placeHolder_315,
  7659. placeHolder_316,
  7660. placeHolder_317,
  7661. placeHolder_318,
  7662. placeHolder_319,
  7663. placeHolder_320,
  7664. placeHolder_321,
  7665. placeHolder_322,
  7666. placeHolder_323,
  7667. placeHolder_324,
  7668. placeHolder_325,
  7669. placeHolder_326,
  7670. placeHolder_327,
  7671. placeHolder_328,
  7672. placeHolder_329,
  7673. placeHolder_330,
  7674. placeHolder_331,
  7675. placeHolder_332,
  7676. placeHolder_333,
  7677. placeHolder_334,
  7678. placeHolder_335,
  7679. placeHolder_336,
  7680. placeHolder_337,
  7681. placeHolder_338,
  7682. placeHolder_339,
  7683. placeHolder_340,
  7684. placeHolder_341,
  7685. placeHolder_342,
  7686. placeHolder_343,
  7687. placeHolder_344,
  7688. placeHolder_345,
  7689. placeHolder_346,
  7690. placeHolder_347,
  7691. placeHolder_348,
  7692. placeHolder_349,
  7693. placeHolder_350,
  7694. placeHolder_351,
  7695. placeHolder_352,
  7696. placeHolder_353,
  7697. placeHolder_354,
  7698. placeHolder_355,
  7699. placeHolder_356,
  7700. placeHolder_357,
  7701. placeHolder_358,
  7702. placeHolder_359,
  7703. placeHolder_360,
  7704. placeHolder_361,
  7705. placeHolder_362,
  7706. placeHolder_363,
  7707. placeHolder_364,
  7708. placeHolder_365,
  7709. placeHolder_366,
  7710. placeHolder_367,
  7711. placeHolder_368,
  7712. placeHolder_369,
  7713. placeHolder_370,
  7714. placeHolder_371,
  7715. placeHolder_372,
  7716. placeHolder_373,
  7717. placeHolder_374,
  7718. placeHolder_375,
  7719. placeHolder_376,
  7720. placeHolder_377,
  7721. placeHolder_378,
  7722. placeHolder_379,
  7723. placeHolder_380,
  7724. placeHolder_381,
  7725. placeHolder_382,
  7726. placeHolder_383,
  7727. placeHolder_384,
  7728. placeHolder_385,
  7729. placeHolder_386,
  7730. placeHolder_387,
  7731. placeHolder_388,
  7732. placeHolder_389,
  7733. placeHolder_390,
  7734. placeHolder_391,
  7735. placeHolder_392,
  7736. placeHolder_393,
  7737. placeHolder_394,
  7738. placeHolder_395,
  7739. placeHolder_396,
  7740. placeHolder_397,
  7741. placeHolder_398,
  7742. placeHolder_399,
  7743. placeHolder_400,
  7744. placeHolder_401,
  7745. placeHolder_402,
  7746. placeHolder_403,
  7747. placeHolder_404,
  7748. placeHolder_405,
  7749. placeHolder_406,
  7750. placeHolder_407,
  7751. placeHolder_408,
  7752. placeHolder_409,
  7753. placeHolder_410,
  7754. placeHolder_411,
  7755. placeHolder_412,
  7756. placeHolder_413,
  7757. placeHolder_414,
  7758. placeHolder_415,
  7759. placeHolder_416,
  7760. placeHolder_417,
  7761. placeHolder_418,
  7762. placeHolder_419,
  7763. placeHolder_420,
  7764. placeHolder_421,
  7765. placeHolder_422,
  7766. placeHolder_423,
  7767. placeHolder_424,
  7768. placeHolder_425,
  7769. placeHolder_426,
  7770. placeHolder_427,
  7771. placeHolder_428,
  7772. placeHolder_429,
  7773. placeHolder_430,
  7774. placeHolder_431,
  7775. placeHolder_432,
  7776. placeHolder_433,
  7777. placeHolder_434,
  7778. placeHolder_435,
  7779. placeHolder_436,
  7780. placeHolder_437,
  7781. placeHolder_438,
  7782. placeHolder_439,
  7783. placeHolder_440,
  7784. placeHolder_441,
  7785. placeHolder_442,
  7786. placeHolder_443,
  7787. placeHolder_444,
  7788. placeHolder_445,
  7789. placeHolder_446,
  7790. placeHolder_447,
  7791. placeHolder_448,
  7792. placeHolder_449,
  7793. placeHolder_450,
  7794. placeHolder_451,
  7795. placeHolder_452,
  7796. placeHolder_453,
  7797. placeHolder_454,
  7798. placeHolder_455,
  7799. placeHolder_456,
  7800. placeHolder_457,
  7801. placeHolder_458,
  7802. placeHolder_459,
  7803. placeHolder_460,
  7804. placeHolder_461,
  7805. placeHolder_462,
  7806. placeHolder_463,
  7807. placeHolder_464,
  7808. placeHolder_465,
  7809. placeHolder_466,
  7810. placeHolder_467,
  7811. placeHolder_468,
  7812. placeHolder_469,
  7813. placeHolder_470,
  7814. placeHolder_471,
  7815. placeHolder_472,
  7816. placeHolder_473,
  7817. placeHolder_474,
  7818. placeHolder_475,
  7819. placeHolder_476,
  7820. placeHolder_477,
  7821. placeHolder_478,
  7822. placeHolder_479,
  7823. placeHolder_480,
  7824. placeHolder_481,
  7825. placeHolder_482,
  7826. placeHolder_483,
  7827. placeHolder_484,
  7828. placeHolder_485,
  7829. placeHolder_486,
  7830. placeHolder_487,
  7831. placeHolder_488,
  7832. placeHolder_489,
  7833. placeHolder_490,
  7834. placeHolder_491,
  7835. placeHolder_492,
  7836. placeHolder_493,
  7837. placeHolder_494,
  7838. placeHolder_495,
  7839. placeHolder_496,
  7840. placeHolder_497,
  7841. placeHolder_498,
  7842. placeHolder_499,
  7843. placeHolder_500,
  7844. placeHolder_501,
  7845. placeHolder_502,
  7846. placeHolder_503,
  7847. placeHolder_504,
  7848. placeHolder_505,
  7849. placeHolder_506,
  7850. placeHolder_507,
  7851. placeHolder_508,
  7852. placeHolder_509,
  7853. placeHolder_510,
  7854. placeHolder_511,
  7855. placeHolder_512,
  7856. placeHolder_513,
  7857. placeHolder_514,
  7858. placeHolder_515,
  7859. placeHolder_516,
  7860. placeHolder_517,
  7861. placeHolder_518,
  7862. placeHolder_519,
  7863. placeHolder_520,
  7864. placeHolder_521,
  7865. placeHolder_522,
  7866. placeHolder_523,
  7867. placeHolder_524,
  7868. placeHolder_525,
  7869. placeHolder_526,
  7870. placeHolder_527,
  7871. placeHolder_528,
  7872. placeHolder_529,
  7873. placeHolder_530,
  7874. placeHolder_531,
  7875. placeHolder_532,
  7876. placeHolder_533,
  7877. placeHolder_534,
  7878. placeHolder_535,
  7879. placeHolder_536,
  7880. placeHolder_537,
  7881. placeHolder_538,
  7882. placeHolder_539,
  7883. placeHolder_540,
  7884. placeHolder_541,
  7885. placeHolder_542,
  7886. placeHolder_543,
  7887. placeHolder_544,
  7888. placeHolder_545,
  7889. placeHolder_546,
  7890. placeHolder_547,
  7891. placeHolder_548,
  7892. placeHolder_549,
  7893. placeHolder_550,
  7894. placeHolder_551,
  7895. placeHolder_552,
  7896. placeHolder_553,
  7897. placeHolder_554,
  7898. placeHolder_555,
  7899. placeHolder_556,
  7900. placeHolder_557,
  7901. placeHolder_558,
  7902. placeHolder_559,
  7903. placeHolder_560,
  7904. placeHolder_561,
  7905. placeHolder_562,
  7906. placeHolder_563,
  7907. placeHolder_564,
  7908. placeHolder_565,
  7909. placeHolder_566,
  7910. placeHolder_567,
  7911. placeHolder_568,
  7912. placeHolder_569,
  7913. placeHolder_570,
  7914. placeHolder_571,
  7915. placeHolder_572,
  7916. placeHolder_573,
  7917. placeHolder_574,
  7918. placeHolder_575,
  7919. placeHolder_576,
  7920. placeHolder_577,
  7921. placeHolder_578,
  7922. placeHolder_579,
  7923. placeHolder_580,
  7924. placeHolder_581,
  7925. placeHolder_582,
  7926. placeHolder_583,
  7927. placeHolder_584,
  7928. placeHolder_585,
  7929. placeHolder_586,
  7930. placeHolder_587,
  7931. placeHolder_588,
  7932. placeHolder_589,
  7933. placeHolder_590,
  7934. placeHolder_591,
  7935. placeHolder_592,
  7936. placeHolder_593,
  7937. placeHolder_594,
  7938. placeHolder_595,
  7939. placeHolder_596,
  7940. placeHolder_597,
  7941. placeHolder_598,
  7942. placeHolder_599,
  7943. placeHolder_600,
  7944. placeHolder_601,
  7945. placeHolder_602,
  7946. placeHolder_603,
  7947. placeHolder_604,
  7948. placeHolder_605,
  7949. placeHolder_606,
  7950. placeHolder_607,
  7951. placeHolder_608,
  7952. placeHolder_609,
  7953. placeHolder_610,
  7954. placeHolder_611,
  7955. placeHolder_612,
  7956. placeHolder_613,
  7957. placeHolder_614,
  7958. placeHolder_615,
  7959. placeHolder_616,
  7960. placeHolder_617,
  7961. placeHolder_618,
  7962. placeHolder_619,
  7963. placeHolder_620,
  7964. placeHolder_621,
  7965. placeHolder_622,
  7966. placeHolder_623,
  7967. placeHolder_624,
  7968. placeHolder_625,
  7969. placeHolder_626,
  7970. placeHolder_627,
  7971. placeHolder_628,
  7972. placeHolder_629,
  7973. placeHolder_630,
  7974. placeHolder_631,
  7975. placeHolder_632,
  7976. placeHolder_633,
  7977. placeHolder_634,
  7978. placeHolder_635,
  7979. placeHolder_636,
  7980. placeHolder_637,
  7981. placeHolder_638,
  7982. placeHolder_639,
  7983. placeHolder_640,
  7984. placeHolder_641,
  7985. placeHolder_642,
  7986. placeHolder_643,
  7987. placeHolder_644,
  7988. placeHolder_645,
  7989. placeHolder_646,
  7990. placeHolder_647,
  7991. placeHolder_648,
  7992. placeHolder_649,
  7993. placeHolder_650,
  7994. placeHolder_651,
  7995. placeHolder_652,
  7996. placeHolder_653,
  7997. placeHolder_654,
  7998. placeHolder_655,
  7999. placeHolder_656,
  8000. placeHolder_657,
  8001. placeHolder_658,
  8002. placeHolder_659,
  8003. placeHolder_660,
  8004. placeHolder_661,
  8005. placeHolder_662,
  8006. placeHolder_663,
  8007. placeHolder_664,
  8008. placeHolder_665,
  8009. placeHolder_666,
  8010. placeHolder_667,
  8011. placeHolder_668,
  8012. placeHolder_669,
  8013. placeHolder_670,
  8014. placeHolder_671,
  8015. placeHolder_672,
  8016. placeHolder_673,
  8017. placeHolder_674,
  8018. placeHolder_675,
  8019. placeHolder_676,
  8020. placeHolder_677,
  8021. placeHolder_678,
  8022. placeHolder_679,
  8023. placeHolder_680,
  8024. placeHolder_681,
  8025. placeHolder_682,
  8026. placeHolder_683,
  8027. placeHolder_684,
  8028. placeHolder_685,
  8029. placeHolder_686,
  8030. placeHolder_687,
  8031. placeHolder_688,
  8032. placeHolder_689,
  8033. placeHolder_690,
  8034. placeHolder_691,
  8035. placeHolder_692,
  8036. placeHolder_693,
  8037. placeHolder_694,
  8038. placeHolder_695,
  8039. placeHolder_696,
  8040. placeHolder_697,
  8041. placeHolder_698,
  8042. placeHolder_699,
  8043. placeHolder_700,
  8044. placeHolder_701,
  8045. placeHolder_702,
  8046. placeHolder_703,
  8047. placeHolder_704,
  8048. placeHolder_705,
  8049. placeHolder_706,
  8050. placeHolder_707,
  8051. placeHolder_708,
  8052. placeHolder_709,
  8053. placeHolder_710,
  8054. placeHolder_711,
  8055. placeHolder_712,
  8056. placeHolder_713,
  8057. placeHolder_714,
  8058. placeHolder_715,
  8059. placeHolder_716,
  8060. placeHolder_717,
  8061. placeHolder_718,
  8062. placeHolder_719,
  8063. placeHolder_720,
  8064. placeHolder_721,
  8065. placeHolder_722,
  8066. placeHolder_723,
  8067. placeHolder_724,
  8068. placeHolder_725,
  8069. placeHolder_726,
  8070. placeHolder_727,
  8071. placeHolder_728,
  8072. placeHolder_729,
  8073. placeHolder_730,
  8074. placeHolder_731,
  8075. placeHolder_732,
  8076. placeHolder_733,
  8077. placeHolder_734,
  8078. placeHolder_735,
  8079. placeHolder_736,
  8080. placeHolder_737,
  8081. placeHolder_738,
  8082. placeHolder_739,
  8083. placeHolder_740,
  8084. placeHolder_741,
  8085. placeHolder_742,
  8086. placeHolder_743,
  8087. placeHolder_744,
  8088. placeHolder_745,
  8089. placeHolder_746,
  8090. placeHolder_747,
  8091. placeHolder_748,
  8092. placeHolder_749,
  8093. placeHolder_750,
  8094. placeHolder_751,
  8095. placeHolder_752,
  8096. placeHolder_753,
  8097. placeHolder_754,
  8098. placeHolder_755,
  8099. placeHolder_756,
  8100. placeHolder_757,
  8101. placeHolder_758,
  8102. placeHolder_759,
  8103. placeHolder_760,
  8104. placeHolder_761,
  8105. placeHolder_762,
  8106. placeHolder_763,
  8107. placeHolder_764,
  8108. placeHolder_765,
  8109. placeHolder_766,
  8110. placeHolder_767,
  8111. placeHolder_768,
  8112. placeHolder_769,
  8113. placeHolder_770,
  8114. placeHolder_771,
  8115. placeHolder_772,
  8116. placeHolder_773,
  8117. placeHolder_774,
  8118. placeHolder_775,
  8119. placeHolder_776,
  8120. placeHolder_777,
  8121. placeHolder_778,
  8122. placeHolder_779,
  8123. placeHolder_780,
  8124. placeHolder_781,
  8125. placeHolder_782,
  8126. placeHolder_783,
  8127. placeHolder_784,
  8128. placeHolder_785,
  8129. placeHolder_786,
  8130. placeHolder_787,
  8131. placeHolder_788,
  8132. placeHolder_789,
  8133. placeHolder_790,
  8134. placeHolder_791,
  8135. placeHolder_792,
  8136. placeHolder_793,
  8137. placeHolder_794,
  8138. placeHolder_795,
  8139. placeHolder_796,
  8140. placeHolder_797,
  8141. placeHolder_798,
  8142. placeHolder_799,
  8143. placeHolder_800,
  8144. placeHolder_801,
  8145. placeHolder_802,
  8146. placeHolder_803,
  8147. placeHolder_804,
  8148. placeHolder_805,
  8149. placeHolder_806,
  8150. placeHolder_807,
  8151. placeHolder_808,
  8152. placeHolder_809,
  8153. placeHolder_810,
  8154. placeHolder_811,
  8155. placeHolder_812,
  8156. placeHolder_813,
  8157. placeHolder_814,
  8158. placeHolder_815,
  8159. placeHolder_816,
  8160. placeHolder_817,
  8161. placeHolder_818,
  8162. placeHolder_819,
  8163. placeHolder_820,
  8164. placeHolder_821,
  8165. placeHolder_822,
  8166. placeHolder_823,
  8167. placeHolder_824,
  8168. placeHolder_825,
  8169. placeHolder_826,
  8170. placeHolder_827,
  8171. placeHolder_828,
  8172. placeHolder_829,
  8173. placeHolder_830,
  8174. placeHolder_831,
  8175. placeHolder_832,
  8176. placeHolder_833,
  8177. placeHolder_834,
  8178. placeHolder_835,
  8179. placeHolder_836,
  8180. placeHolder_837,
  8181. placeHolder_838,
  8182. placeHolder_839,
  8183. placeHolder_840,
  8184. placeHolder_841,
  8185. placeHolder_842,
  8186. placeHolder_843,
  8187. placeHolder_844,
  8188. placeHolder_845,
  8189. placeHolder_846,
  8190. placeHolder_847,
  8191. placeHolder_848,
  8192. placeHolder_849,
  8193. placeHolder_850,
  8194. placeHolder_851,
  8195. placeHolder_852,
  8196. placeHolder_853,
  8197. placeHolder_854,
  8198. placeHolder_855,
  8199. placeHolder_856,
  8200. placeHolder_857,
  8201. placeHolder_858,
  8202. placeHolder_859,
  8203. placeHolder_860,
  8204. placeHolder_861,
  8205. placeHolder_862,
  8206. placeHolder_863,
  8207. placeHolder_864,
  8208. placeHolder_865,
  8209. placeHolder_866,
  8210. placeHolder_867,
  8211. placeHolder_868,
  8212. placeHolder_869,
  8213. placeHolder_870,
  8214. placeHolder_871,
  8215. placeHolder_872,
  8216. placeHolder_873,
  8217. placeHolder_874,
  8218. placeHolder_875,
  8219. placeHolder_876,
  8220. placeHolder_877,
  8221. placeHolder_878,
  8222. placeHolder_879,
  8223. placeHolder_880,
  8224. placeHolder_881,
  8225. placeHolder_882,
  8226. placeHolder_883,
  8227. placeHolder_884,
  8228. placeHolder_885,
  8229. placeHolder_886,
  8230. placeHolder_887,
  8231. placeHolder_888,
  8232. placeHolder_889,
  8233. placeHolder_890,
  8234. placeHolder_891,
  8235. placeHolder_892,
  8236. placeHolder_893,
  8237. placeHolder_894,
  8238. placeHolder_895,
  8239. placeHolder_896,
  8240. placeHolder_897,
  8241. placeHolder_898,
  8242. placeHolder_899,
  8243. placeHolder_900,
  8244. placeHolder_901,
  8245. placeHolder_902,
  8246. placeHolder_903,
  8247. placeHolder_904,
  8248. placeHolder_905,
  8249. placeHolder_906,
  8250. placeHolder_907,
  8251. placeHolder_908,
  8252. placeHolder_909,
  8253. placeHolder_910,
  8254. placeHolder_911,
  8255. placeHolder_912,
  8256. placeHolder_913,
  8257. placeHolder_914,
  8258. placeHolder_915,
  8259. placeHolder_916,
  8260. placeHolder_917,
  8261. placeHolder_918,
  8262. placeHolder_919,
  8263. placeHolder_920,
  8264. placeHolder_921,
  8265. placeHolder_922,
  8266. placeHolder_923,
  8267. placeHolder_924,
  8268. placeHolder_925,
  8269. placeHolder_926,
  8270. placeHolder_927,
  8271. placeHolder_928,
  8272. placeHolder_929,
  8273. placeHolder_930,
  8274. placeHolder_931,
  8275. placeHolder_932,
  8276. placeHolder_933,
  8277. placeHolder_934,
  8278. placeHolder_935,
  8279. placeHolder_936,
  8280. placeHolder_937,
  8281. placeHolder_938,
  8282. placeHolder_939,
  8283. placeHolder_940,
  8284. placeHolder_941,
  8285. placeHolder_942,
  8286. placeHolder_943,
  8287. placeHolder_944,
  8288. placeHolder_945,
  8289. placeHolder_946,
  8290. placeHolder_947,
  8291. placeHolder_948,
  8292. placeHolder_949,
  8293. placeHolder_950,
  8294. placeHolder_951,
  8295. placeHolder_952,
  8296. placeHolder_953,
  8297. placeHolder_954,
  8298. placeHolder_955,
  8299. placeHolder_956,
  8300. placeHolder_957,
  8301. placeHolder_958,
  8302. placeHolder_959,
  8303. placeHolder_960,
  8304. placeHolder_961,
  8305. placeHolder_962,
  8306. placeHolder_963,
  8307. placeHolder_964,
  8308. placeHolder_965,
  8309. placeHolder_966,
  8310. placeHolder_967,
  8311. placeHolder_968,
  8312. placeHolder_969,
  8313. placeHolder_970,
  8314. placeHolder_971,
  8315. placeHolder_972,
  8316. placeHolder_973,
  8317. placeHolder_974,
  8318. placeHolder_975,
  8319. placeHolder_976,
  8320. placeHolder_977,
  8321. placeHolder_978,
  8322. placeHolder_979,
  8323. placeHolder_980,
  8324. placeHolder_981,
  8325. placeHolder_982,
  8326. placeHolder_983,
  8327. placeHolder_984,
  8328. placeHolder_985,
  8329. placeHolder_986,
  8330. placeHolder_987,
  8331. placeHolder_988,
  8332. placeHolder_989,
  8333. placeHolder_990,
  8334. placeHolder_991,
  8335. placeHolder_992,
  8336. placeHolder_993,
  8337. placeHolder_994,
  8338. placeHolder_995,
  8339. placeHolder_996,
  8340. placeHolder_997,
  8341. placeHolder_998,
  8342. Unregistered,
  8343. }
  8344. enum PatientGenderEnum {
  8345. NotFilled,
  8346. Male,
  8347. Female,
  8348. }
  8349. enum AnimalGenderEnum {
  8350. AnimalInfoNotFilled,
  8351. AnimalInfoMale,
  8352. AnimalInfoFemale,
  8353. }
  8354. enum RegionGradeEnum {
  8355. Country,
  8356. Province,
  8357. City,
  8358. Area,
  8359. }
  8360. enum RelevanceTypeEnum {
  8361. Course,
  8362. }
  8363. enum RemedicalAIDiagnosisStatusEnum {
  8364. Null,
  8365. NoObviousLesion,
  8366. Benign,
  8367. Malignant,
  8368. BenignAndMalignant,
  8369. }
  8370. enum RemedicalApparatusTypeEnum {
  8371. BreastOuterUpper,
  8372. BreastInnerUpper,
  8373. BreastOuterLower,
  8374. BreastInnerLower,
  8375. Lobe,
  8376. LobeOfUnder,
  8377. LobeOfInter,
  8378. Thyroid,
  8379. Abdomen,
  8380. }
  8381. enum RemedicalImageLocationTypeEnum {
  8382. BreastImageLocation,
  8383. LiverImageLocation,
  8384. ThyroidImageLocation,
  8385. PositionImageLocation,
  8386. }
  8387. enum RemedicalImagePositionTypeEnum {
  8388. None,
  8389. Left,
  8390. Right,
  8391. Middle,
  8392. }
  8393. enum ReportTemplateQueryTypeEnum {
  8394. All,
  8395. Personal,
  8396. Organization,
  8397. }
  8398. enum SyncTypeEnum {
  8399. Initiate,
  8400. Accept,
  8401. Reject,
  8402. CancelInitiate,
  8403. HeartRateJoin,
  8404. NetworkErr,
  8405. HeartRateLeave,
  8406. Leave,
  8407. Close,
  8408. ChangeMuteState,
  8409. ChangeVideoOpenState,
  8410. InviteIn,
  8411. CancelInviteIn,
  8412. AcceptIn,
  8413. RejectIn,
  8414. ChangeConsultationStatus,
  8415. Agree,
  8416. Notification,
  8417. EmergencyAccept,
  8418. ChangeControllingParameter,
  8419. SendInteractiveBoardData,
  8420. ChangeRoom,
  8421. SaveViewer,
  8422. DeleteViewer,
  8423. DeviceAcceptIn,
  8424. SyncControllingParameter,
  8425. ApplyRemoteConnect,
  8426. AcceptRemoteConnect,
  8427. RejectRemoteConnect,
  8428. ApplyDisConnect,
  8429. AcceptDisConnect,
  8430. DeviceDisconnect,
  8431. DeviceRemoteConnectHeartRate,
  8432. UserRemoteConnectHeartRate,
  8433. DeviceRemoteConnectOutline,
  8434. UserRemoteConnectOutline,
  8435. ConsultionRemoteConnect,
  8436. ConsultionDisConnect,
  8437. RestartDevice,
  8438. }
  8439. enum SyncServiceEnum {
  8440. Live,
  8441. LiveConsultation,
  8442. Notification,
  8443. ScanLogin,
  8444. Device,
  8445. RemoteConnect,
  8446. }
  8447. enum WSConnectTypeEnum {
  8448. Default,
  8449. ConsultationSecondWindow,
  8450. EducationSecondWindow,
  8451. }
  8452. enum ASETypeEnum {
  8453. Off,
  8454. Max,
  8455. Mean,
  8456. Both,
  8457. }
  8458. enum StraightLineShapeEnum {
  8459. StraightLine,
  8460. HalfCircle,
  8461. AutoPWVSlope,
  8462. }
  8463. enum DefinitionMeasureItemsEnum {
  8464. Default,
  8465. UserDefined,
  8466. }
  8467. enum DefinitionPriorityEnum {
  8468. Notset,
  8469. Root,
  8470. Global,
  8471. GlobalCategory,
  8472. GlobalApp,
  8473. FactoryDefault,
  8474. OemDefault,
  8475. UserDefined,
  8476. }
  8477. enum MeasureTypeUnitEnum {
  8478. None,
  8479. AreaUnit,
  8480. VelocityUnit,
  8481. TimeUnit,
  8482. }
  8483. enum UnExecuteAction {
  8484. None,
  8485. OneStep,
  8486. AllSteps,
  8487. GeometryOnly,
  8488. }
  8489. class PriorityPair {
  8490. DefinitionPriorityEnum target;
  8491. DefinitionPriorityEnum? base;
  8492. PriorityPair({
  8493. this.target = DefinitionPriorityEnum.Notset,
  8494. this.base,
  8495. });
  8496. factory PriorityPair.fromJson(Map<String, dynamic> map) {
  8497. return PriorityPair(
  8498. target: DefinitionPriorityEnum.values.firstWhere((e) => e.index == map['Target']),
  8499. base: map['Base'] != null ? DefinitionPriorityEnum.values.firstWhere((e) => e.index == map['Base']) : null,
  8500. );
  8501. }
  8502. Map<String, dynamic> toJson() {
  8503. final map = Map<String, dynamic>();
  8504. map['Target'] = target.index;
  8505. if(base != null)
  8506. map['Base'] = base;
  8507. return map;
  8508. }
  8509. }
  8510. class DefinitionPriorityEnumExtension {
  8511. DefinitionPriorityEnumExtension();
  8512. factory DefinitionPriorityEnumExtension.fromJson(Map<String, dynamic> map) {
  8513. return DefinitionPriorityEnumExtension(
  8514. );
  8515. }
  8516. Map<String, dynamic> toJson() {
  8517. final map = Map<String, dynamic>();
  8518. return map;
  8519. }
  8520. }
  8521. enum TracePeakType {
  8522. Normal,
  8523. OnePeak,
  8524. TwoPeaks,
  8525. }
  8526. enum LineWeightType {
  8527. NormalWeight,
  8528. Thin,
  8529. }
  8530. enum IMTType {
  8531. placeHolder_0,
  8532. Post,
  8533. Ant,
  8534. Both,
  8535. }
  8536. enum MeasureSectionType {
  8537. None,
  8538. Root,
  8539. Application,
  8540. MeasureMode,
  8541. Group,
  8542. Folder,
  8543. Item,
  8544. Calculator,
  8545. OutPut,
  8546. Formular,
  8547. Processor,
  8548. TypeParams,
  8549. }
  8550. enum ModeTypeEnum {
  8551. Undefined,
  8552. Tissue,
  8553. Flow,
  8554. Doppler,
  8555. TissueTM,
  8556. }
  8557. enum ResourceDefPriorityEnum {
  8558. Root,
  8559. placeHolder_1,
  8560. placeHolder_2,
  8561. placeHolder_3,
  8562. placeHolder_4,
  8563. placeHolder_5,
  8564. placeHolder_6,
  8565. placeHolder_7,
  8566. placeHolder_8,
  8567. placeHolder_9,
  8568. placeHolder_10,
  8569. placeHolder_11,
  8570. placeHolder_12,
  8571. placeHolder_13,
  8572. placeHolder_14,
  8573. placeHolder_15,
  8574. placeHolder_16,
  8575. placeHolder_17,
  8576. placeHolder_18,
  8577. placeHolder_19,
  8578. placeHolder_20,
  8579. placeHolder_21,
  8580. placeHolder_22,
  8581. placeHolder_23,
  8582. placeHolder_24,
  8583. placeHolder_25,
  8584. placeHolder_26,
  8585. placeHolder_27,
  8586. placeHolder_28,
  8587. placeHolder_29,
  8588. placeHolder_30,
  8589. placeHolder_31,
  8590. placeHolder_32,
  8591. placeHolder_33,
  8592. placeHolder_34,
  8593. placeHolder_35,
  8594. placeHolder_36,
  8595. placeHolder_37,
  8596. placeHolder_38,
  8597. placeHolder_39,
  8598. FactoryDefault,
  8599. placeHolder_41,
  8600. placeHolder_42,
  8601. placeHolder_43,
  8602. placeHolder_44,
  8603. PackageDefault,
  8604. placeHolder_46,
  8605. placeHolder_47,
  8606. placeHolder_48,
  8607. placeHolder_49,
  8608. OemDefault,
  8609. placeHolder_51,
  8610. placeHolder_52,
  8611. placeHolder_53,
  8612. placeHolder_54,
  8613. placeHolder_55,
  8614. placeHolder_56,
  8615. placeHolder_57,
  8616. placeHolder_58,
  8617. placeHolder_59,
  8618. UserDefined,
  8619. }
  8620. enum Unit {
  8621. None,
  8622. percent,
  8623. fraction,
  8624. placeHolder_3,
  8625. placeHolder_4,
  8626. placeHolder_5,
  8627. placeHolder_6,
  8628. placeHolder_7,
  8629. placeHolder_8,
  8630. placeHolder_9,
  8631. cm,
  8632. mm,
  8633. inch,
  8634. ft,
  8635. placeHolder_14,
  8636. placeHolder_15,
  8637. placeHolder_16,
  8638. placeHolder_17,
  8639. placeHolder_18,
  8640. placeHolder_19,
  8641. s,
  8642. minute,
  8643. hour,
  8644. day,
  8645. week,
  8646. week_day,
  8647. Tick,
  8648. msec,
  8649. placeHolder_28,
  8650. placeHolder_29,
  8651. degree,
  8652. radian,
  8653. placeHolder_32,
  8654. placeHolder_33,
  8655. placeHolder_34,
  8656. placeHolder_35,
  8657. placeHolder_36,
  8658. placeHolder_37,
  8659. placeHolder_38,
  8660. placeHolder_39,
  8661. g,
  8662. mg,
  8663. ng,
  8664. kg,
  8665. oz,
  8666. lb,
  8667. lb_oz,
  8668. placeHolder_47,
  8669. placeHolder_48,
  8670. placeHolder_49,
  8671. cm2,
  8672. mm2,
  8673. m2,
  8674. placeHolder_53,
  8675. placeHolder_54,
  8676. placeHolder_55,
  8677. placeHolder_56,
  8678. placeHolder_57,
  8679. placeHolder_58,
  8680. placeHolder_59,
  8681. cm3,
  8682. mm3,
  8683. ml,
  8684. L,
  8685. placeHolder_64,
  8686. placeHolder_65,
  8687. placeHolder_66,
  8688. placeHolder_67,
  8689. placeHolder_68,
  8690. placeHolder_69,
  8691. cms,
  8692. mms,
  8693. ms,
  8694. placeHolder_73,
  8695. placeHolder_74,
  8696. placeHolder_75,
  8697. placeHolder_76,
  8698. placeHolder_77,
  8699. placeHolder_78,
  8700. placeHolder_79,
  8701. cms2,
  8702. mms2,
  8703. placeHolder_82,
  8704. placeHolder_83,
  8705. placeHolder_84,
  8706. placeHolder_85,
  8707. placeHolder_86,
  8708. placeHolder_87,
  8709. placeHolder_88,
  8710. placeHolder_89,
  8711. cm3s,
  8712. mls,
  8713. mlmin,
  8714. Lmin,
  8715. placeHolder_94,
  8716. placeHolder_95,
  8717. placeHolder_96,
  8718. placeHolder_97,
  8719. placeHolder_98,
  8720. placeHolder_99,
  8721. gcm3,
  8722. gml,
  8723. ngml,
  8724. placeHolder_103,
  8725. placeHolder_104,
  8726. placeHolder_105,
  8727. placeHolder_106,
  8728. placeHolder_107,
  8729. placeHolder_108,
  8730. placeHolder_109,
  8731. mmHg,
  8732. placeHolder_111,
  8733. placeHolder_112,
  8734. placeHolder_113,
  8735. placeHolder_114,
  8736. placeHolder_115,
  8737. placeHolder_116,
  8738. placeHolder_117,
  8739. placeHolder_118,
  8740. placeHolder_119,
  8741. mV,
  8742. placeHolder_121,
  8743. placeHolder_122,
  8744. placeHolder_123,
  8745. placeHolder_124,
  8746. placeHolder_125,
  8747. placeHolder_126,
  8748. placeHolder_127,
  8749. placeHolder_128,
  8750. placeHolder_129,
  8751. Hz,
  8752. KHz,
  8753. HR,
  8754. placeHolder_133,
  8755. placeHolder_134,
  8756. placeHolder_135,
  8757. placeHolder_136,
  8758. placeHolder_137,
  8759. placeHolder_138,
  8760. placeHolder_139,
  8761. cm3m2,
  8762. mlm2,
  8763. placeHolder_142,
  8764. placeHolder_143,
  8765. placeHolder_144,
  8766. placeHolder_145,
  8767. placeHolder_146,
  8768. placeHolder_147,
  8769. placeHolder_148,
  8770. placeHolder_149,
  8771. cm3sm2,
  8772. mlsm2,
  8773. placeHolder_152,
  8774. cm3minm2,
  8775. mlminm2,
  8776. Lminm2,
  8777. placeHolder_156,
  8778. placeHolder_157,
  8779. placeHolder_158,
  8780. placeHolder_159,
  8781. circs,
  8782. placeHolder_161,
  8783. placeHolder_162,
  8784. placeHolder_163,
  8785. placeHolder_164,
  8786. placeHolder_165,
  8787. placeHolder_166,
  8788. placeHolder_167,
  8789. placeHolder_168,
  8790. placeHolder_169,
  8791. mlbeat,
  8792. placeHolder_171,
  8793. placeHolder_172,
  8794. placeHolder_173,
  8795. placeHolder_174,
  8796. placeHolder_175,
  8797. placeHolder_176,
  8798. placeHolder_177,
  8799. placeHolder_178,
  8800. placeHolder_179,
  8801. mm2pa,
  8802. d1mpa,
  8803. kpa,
  8804. placeHolder_183,
  8805. placeHolder_184,
  8806. placeHolder_185,
  8807. placeHolder_186,
  8808. placeHolder_187,
  8809. placeHolder_188,
  8810. placeHolder_189,
  8811. mmHgs,
  8812. placeHolder_191,
  8813. placeHolder_192,
  8814. placeHolder_193,
  8815. placeHolder_194,
  8816. placeHolder_195,
  8817. placeHolder_196,
  8818. placeHolder_197,
  8819. placeHolder_198,
  8820. placeHolder_199,
  8821. gm2,
  8822. kgm2,
  8823. placeHolder_202,
  8824. placeHolder_203,
  8825. placeHolder_204,
  8826. placeHolder_205,
  8827. placeHolder_206,
  8828. placeHolder_207,
  8829. placeHolder_208,
  8830. placeHolder_209,
  8831. cm2m2,
  8832. placeHolder_211,
  8833. placeHolder_212,
  8834. placeHolder_213,
  8835. placeHolder_214,
  8836. placeHolder_215,
  8837. placeHolder_216,
  8838. placeHolder_217,
  8839. placeHolder_218,
  8840. placeHolder_219,
  8841. cmm2,
  8842. mmm2,
  8843. placeHolder_222,
  8844. placeHolder_223,
  8845. placeHolder_224,
  8846. placeHolder_225,
  8847. placeHolder_226,
  8848. placeHolder_227,
  8849. placeHolder_228,
  8850. placeHolder_229,
  8851. pers,
  8852. placeHolder_231,
  8853. placeHolder_232,
  8854. placeHolder_233,
  8855. placeHolder_234,
  8856. placeHolder_235,
  8857. placeHolder_236,
  8858. placeHolder_237,
  8859. placeHolder_238,
  8860. placeHolder_239,
  8861. placeHolder_240,
  8862. placeHolder_241,
  8863. placeHolder_242,
  8864. placeHolder_243,
  8865. placeHolder_244,
  8866. placeHolder_245,
  8867. placeHolder_246,
  8868. placeHolder_247,
  8869. placeHolder_248,
  8870. placeHolder_249,
  8871. Celsius,
  8872. Fahrenheit,
  8873. placeHolder_252,
  8874. placeHolder_253,
  8875. placeHolder_254,
  8876. placeHolder_255,
  8877. placeHolder_256,
  8878. placeHolder_257,
  8879. placeHolder_258,
  8880. placeHolder_259,
  8881. Ohm,
  8882. placeHolder_261,
  8883. placeHolder_262,
  8884. placeHolder_263,
  8885. placeHolder_264,
  8886. placeHolder_265,
  8887. placeHolder_266,
  8888. placeHolder_267,
  8889. placeHolder_268,
  8890. placeHolder_269,
  8891. mmHgml,
  8892. }
  8893. enum CourseAppearTypeEnum {
  8894. Unknown,
  8895. Independent,
  8896. Album,
  8897. }
  8898. enum ArrowOrientation {
  8899. Down,
  8900. Left,
  8901. Up,
  8902. Right,
  8903. }
  8904. class UserScanInfo {
  8905. String? scanCode;
  8906. ScanLoginSource scanLoginSource;
  8907. Platform platform;
  8908. DateTime? createTime;
  8909. DateTime? expireTime;
  8910. String? installVersion;
  8911. LoginResult? loginResult;
  8912. UserScanInfo({
  8913. this.scanCode,
  8914. this.scanLoginSource = ScanLoginSource.PC,
  8915. this.platform = Platform.Windows,
  8916. this.createTime,
  8917. this.expireTime,
  8918. this.installVersion,
  8919. this.loginResult,
  8920. });
  8921. factory UserScanInfo.fromJson(Map<String, dynamic> map) {
  8922. return UserScanInfo(
  8923. scanCode: map['ScanCode'],
  8924. scanLoginSource: ScanLoginSource.values.firstWhere((e) => e.index == map['ScanLoginSource']),
  8925. platform: Platform.values.firstWhere((e) => e.index == map['Platform']),
  8926. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  8927. expireTime: map['ExpireTime'] != null ? DateTime.parse(map['ExpireTime']) : null,
  8928. installVersion: map['InstallVersion'],
  8929. loginResult: map['LoginResult'] != null ? LoginResult.fromJson(map['LoginResult']) : null,
  8930. );
  8931. }
  8932. Map<String, dynamic> toJson() {
  8933. final map = Map<String, dynamic>();
  8934. if(scanCode != null)
  8935. map['ScanCode'] = scanCode;
  8936. map['ScanLoginSource'] = scanLoginSource.index;
  8937. map['Platform'] = platform.index;
  8938. if(createTime != null)
  8939. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  8940. if(expireTime != null)
  8941. map['ExpireTime'] = JsonRpcUtils.dateFormat(expireTime!);
  8942. if(installVersion != null)
  8943. map['InstallVersion'] = installVersion;
  8944. if(loginResult != null)
  8945. map['LoginResult'] = loginResult;
  8946. return map;
  8947. }
  8948. }
  8949. class UserCMSDTO {
  8950. String? cMSData;
  8951. UserCMSDTO({
  8952. this.cMSData,
  8953. });
  8954. factory UserCMSDTO.fromJson(Map<String, dynamic> map) {
  8955. return UserCMSDTO(
  8956. cMSData: map['CMSData'],
  8957. );
  8958. }
  8959. Map<String, dynamic> toJson() {
  8960. final map = Map<String, dynamic>();
  8961. if(cMSData != null)
  8962. map['CMSData'] = cMSData;
  8963. return map;
  8964. }
  8965. }
  8966. class UserPasswordDTO extends BaseDTO{
  8967. String? userCode;
  8968. String? userName;
  8969. String? secretPassword;
  8970. String? phone;
  8971. String? email;
  8972. String? nickName;
  8973. String? fullName;
  8974. String? headImageUrl;
  8975. String? organizationCode;
  8976. String? rootOrganizationCode;
  8977. List<String >? authorityGroups;
  8978. List<String >? bindDevices;
  8979. String? lastIP;
  8980. int logintimes;
  8981. UserInfoStateEnum userState;
  8982. List<String >? roleCodes;
  8983. List<String >? rankCodes;
  8984. List<String >? positionCodes;
  8985. ApplyStateEnum applyState;
  8986. List<String >? fieldList;
  8987. List<String >? deletePatientCodes;
  8988. bool isBatchExportDiagnoseData;
  8989. String? bindAssistantUserCode;
  8990. String? bindAssistantDoctorUserCode;
  8991. DateTime? passwordUpdateTime;
  8992. List<String >? passwordRecords;
  8993. String? signature;
  8994. String? language;
  8995. bool enableReportLabel;
  8996. UserPasswordDTO({
  8997. this.userCode,
  8998. this.userName,
  8999. this.secretPassword,
  9000. this.phone,
  9001. this.email,
  9002. this.nickName,
  9003. this.fullName,
  9004. this.headImageUrl,
  9005. this.organizationCode,
  9006. this.rootOrganizationCode,
  9007. this.authorityGroups,
  9008. this.bindDevices,
  9009. this.lastIP,
  9010. this.logintimes = 0,
  9011. this.userState = UserInfoStateEnum.Nonactivated,
  9012. this.roleCodes,
  9013. this.rankCodes,
  9014. this.positionCodes,
  9015. this.applyState = ApplyStateEnum.NotApply,
  9016. this.fieldList,
  9017. this.deletePatientCodes,
  9018. this.isBatchExportDiagnoseData = false,
  9019. this.bindAssistantUserCode,
  9020. this.bindAssistantDoctorUserCode,
  9021. this.passwordUpdateTime,
  9022. this.passwordRecords,
  9023. this.signature,
  9024. this.language,
  9025. this.enableReportLabel = false,
  9026. DateTime? createTime,
  9027. DateTime? updateTime,
  9028. }) : super(
  9029. createTime: createTime,
  9030. updateTime: updateTime,
  9031. );
  9032. factory UserPasswordDTO.fromJson(Map<String, dynamic> map) {
  9033. return UserPasswordDTO(
  9034. userCode: map['UserCode'],
  9035. userName: map['UserName'],
  9036. secretPassword: map['SecretPassword'],
  9037. phone: map['Phone'],
  9038. email: map['Email'],
  9039. nickName: map['NickName'],
  9040. fullName: map['FullName'],
  9041. headImageUrl: map['HeadImageUrl'],
  9042. organizationCode: map['OrganizationCode'],
  9043. rootOrganizationCode: map['RootOrganizationCode'],
  9044. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  9045. bindDevices: map['BindDevices'] != null ? map['BindDevices'].cast<String>().toList() : null,
  9046. lastIP: map['LastIP'],
  9047. logintimes: map['Logintimes'],
  9048. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  9049. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  9050. rankCodes: map['RankCodes'] != null ? map['RankCodes'].cast<String>().toList() : null,
  9051. positionCodes: map['PositionCodes'] != null ? map['PositionCodes'].cast<String>().toList() : null,
  9052. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  9053. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  9054. deletePatientCodes: map['DeletePatientCodes'] != null ? map['DeletePatientCodes'].cast<String>().toList() : null,
  9055. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  9056. bindAssistantUserCode: map['BindAssistantUserCode'],
  9057. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  9058. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  9059. passwordRecords: map['PasswordRecords'] != null ? map['PasswordRecords'].cast<String>().toList() : null,
  9060. signature: map['Signature'],
  9061. language: map['Language'],
  9062. enableReportLabel: map['EnableReportLabel'],
  9063. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9064. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9065. );
  9066. }
  9067. Map<String, dynamic> toJson() {
  9068. final map = super.toJson();
  9069. if(userCode != null)
  9070. map['UserCode'] = userCode;
  9071. if(userName != null)
  9072. map['UserName'] = userName;
  9073. if(secretPassword != null)
  9074. map['SecretPassword'] = secretPassword;
  9075. if(phone != null)
  9076. map['Phone'] = phone;
  9077. if(email != null)
  9078. map['Email'] = email;
  9079. if(nickName != null)
  9080. map['NickName'] = nickName;
  9081. if(fullName != null)
  9082. map['FullName'] = fullName;
  9083. if(headImageUrl != null)
  9084. map['HeadImageUrl'] = headImageUrl;
  9085. if(organizationCode != null)
  9086. map['OrganizationCode'] = organizationCode;
  9087. if(rootOrganizationCode != null)
  9088. map['RootOrganizationCode'] = rootOrganizationCode;
  9089. if(authorityGroups != null)
  9090. map['AuthorityGroups'] = authorityGroups;
  9091. if(bindDevices != null)
  9092. map['BindDevices'] = bindDevices;
  9093. if(lastIP != null)
  9094. map['LastIP'] = lastIP;
  9095. map['Logintimes'] = logintimes;
  9096. map['UserState'] = userState.index;
  9097. if(roleCodes != null)
  9098. map['RoleCodes'] = roleCodes;
  9099. if(rankCodes != null)
  9100. map['RankCodes'] = rankCodes;
  9101. if(positionCodes != null)
  9102. map['PositionCodes'] = positionCodes;
  9103. map['ApplyState'] = applyState.index;
  9104. if(fieldList != null)
  9105. map['FieldList'] = fieldList;
  9106. if(deletePatientCodes != null)
  9107. map['DeletePatientCodes'] = deletePatientCodes;
  9108. map['IsBatchExportDiagnoseData'] = isBatchExportDiagnoseData;
  9109. if(bindAssistantUserCode != null)
  9110. map['BindAssistantUserCode'] = bindAssistantUserCode;
  9111. if(bindAssistantDoctorUserCode != null)
  9112. map['BindAssistantDoctorUserCode'] = bindAssistantDoctorUserCode;
  9113. if(passwordUpdateTime != null)
  9114. map['PasswordUpdateTime'] = JsonRpcUtils.dateFormat(passwordUpdateTime!);
  9115. if(passwordRecords != null)
  9116. map['PasswordRecords'] = passwordRecords;
  9117. if(signature != null)
  9118. map['Signature'] = signature;
  9119. if(language != null)
  9120. map['Language'] = language;
  9121. map['EnableReportLabel'] = enableReportLabel;
  9122. return map;
  9123. }
  9124. }
  9125. class UserTokenDTO {
  9126. String? token;
  9127. bool passwordExpired;
  9128. UserTokenDTO({
  9129. this.token,
  9130. this.passwordExpired = false,
  9131. });
  9132. factory UserTokenDTO.fromJson(Map<String, dynamic> map) {
  9133. return UserTokenDTO(
  9134. token: map['Token'],
  9135. passwordExpired: map['PasswordExpired'],
  9136. );
  9137. }
  9138. Map<String, dynamic> toJson() {
  9139. final map = Map<String, dynamic>();
  9140. if(token != null)
  9141. map['Token'] = token;
  9142. map['PasswordExpired'] = passwordExpired;
  9143. return map;
  9144. }
  9145. }
  9146. class BaseFeatureItemBaseDTO<T> {
  9147. String? id;
  9148. String? label;
  9149. String? fatherCode;
  9150. String? uniqueCode;
  9151. List<T>? children;
  9152. BaseFeatureItemBaseDTO({
  9153. this.id,
  9154. this.label,
  9155. this.fatherCode,
  9156. this.uniqueCode,
  9157. this.children,
  9158. });
  9159. factory BaseFeatureItemBaseDTO.fromJson(Map<String, dynamic> map) {
  9160. List<T> childrenList = [];
  9161. if (map['Children'] != null) {
  9162. childrenList.addAll(
  9163. (map['Children'] as List).map((e) => FJsonConvert.fromJson<T>(e)!));
  9164. }
  9165. return BaseFeatureItemBaseDTO(
  9166. id: map['Id'],
  9167. label: map['Label'],
  9168. fatherCode: map['FatherCode'],
  9169. uniqueCode: map['UniqueCode'],
  9170. children: childrenList,
  9171. );
  9172. }
  9173. Map<String, dynamic> toJson() {
  9174. final map = Map<String, dynamic>();
  9175. if(id != null)
  9176. map['Id'] = id;
  9177. if(label != null)
  9178. map['Label'] = label;
  9179. if(fatherCode != null)
  9180. map['FatherCode'] = fatherCode;
  9181. if(uniqueCode != null)
  9182. map['UniqueCode'] = uniqueCode;
  9183. if(children != null)
  9184. map['Children'] = children;
  9185. return map;
  9186. }
  9187. }
  9188. class UserFeatureItemDTO extends BaseFeatureItemBaseDTO<UserFeatureItemDTO>{
  9189. UserFeatureItemDTO(
  9190. );
  9191. factory UserFeatureItemDTO.fromJson(Map<String, dynamic> map) {
  9192. return UserFeatureItemDTO(
  9193. );
  9194. }
  9195. Map<String, dynamic> toJson() {
  9196. final map = super.toJson();
  9197. return map;
  9198. }
  9199. }
  9200. class UserAuthorityGroupDTO extends BaseDTO{
  9201. String? userGroupCode;
  9202. String? description;
  9203. List<String >? adminCodes;
  9204. List<String >? features;
  9205. String? createAdmin;
  9206. UserAuthorityGroupDTO({
  9207. this.userGroupCode,
  9208. this.description,
  9209. this.adminCodes,
  9210. this.features,
  9211. this.createAdmin,
  9212. DateTime? createTime,
  9213. DateTime? updateTime,
  9214. }) : super(
  9215. createTime: createTime,
  9216. updateTime: updateTime,
  9217. );
  9218. factory UserAuthorityGroupDTO.fromJson(Map<String, dynamic> map) {
  9219. return UserAuthorityGroupDTO(
  9220. userGroupCode: map['UserGroupCode'],
  9221. description: map['Description'],
  9222. adminCodes: map['AdminCodes'] != null ? map['AdminCodes'].cast<String>().toList() : null,
  9223. features: map['Features'] != null ? map['Features'].cast<String>().toList() : null,
  9224. createAdmin: map['CreateAdmin'],
  9225. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9226. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9227. );
  9228. }
  9229. Map<String, dynamic> toJson() {
  9230. final map = super.toJson();
  9231. if(userGroupCode != null)
  9232. map['UserGroupCode'] = userGroupCode;
  9233. if(description != null)
  9234. map['Description'] = description;
  9235. if(adminCodes != null)
  9236. map['AdminCodes'] = adminCodes;
  9237. if(features != null)
  9238. map['Features'] = features;
  9239. if(createAdmin != null)
  9240. map['CreateAdmin'] = createAdmin;
  9241. return map;
  9242. }
  9243. }
  9244. class StorageInfoDTO extends BaseDTO{
  9245. String? token;
  9246. String? fileName;
  9247. String? storageRoute;
  9248. StorageInfoDTO({
  9249. this.token,
  9250. this.fileName,
  9251. this.storageRoute,
  9252. DateTime? createTime,
  9253. DateTime? updateTime,
  9254. }) : super(
  9255. createTime: createTime,
  9256. updateTime: updateTime,
  9257. );
  9258. factory StorageInfoDTO.fromJson(Map<String, dynamic> map) {
  9259. return StorageInfoDTO(
  9260. token: map['Token'],
  9261. fileName: map['FileName'],
  9262. storageRoute: map['StorageRoute'],
  9263. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9264. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9265. );
  9266. }
  9267. Map<String, dynamic> toJson() {
  9268. final map = super.toJson();
  9269. if(token != null)
  9270. map['Token'] = token;
  9271. if(fileName != null)
  9272. map['FileName'] = fileName;
  9273. if(storageRoute != null)
  9274. map['StorageRoute'] = storageRoute;
  9275. return map;
  9276. }
  9277. }
  9278. class StatisticDTO extends BaseDTO{
  9279. String? statisticCode;
  9280. String? name;
  9281. String? description;
  9282. String? intervalSetting;
  9283. bool enabled;
  9284. String? handleClass;
  9285. String? serverHost;
  9286. StatisticDTO({
  9287. this.statisticCode,
  9288. this.name,
  9289. this.description,
  9290. this.intervalSetting,
  9291. this.enabled = false,
  9292. this.handleClass,
  9293. this.serverHost,
  9294. DateTime? createTime,
  9295. DateTime? updateTime,
  9296. }) : super(
  9297. createTime: createTime,
  9298. updateTime: updateTime,
  9299. );
  9300. factory StatisticDTO.fromJson(Map<String, dynamic> map) {
  9301. return StatisticDTO(
  9302. statisticCode: map['StatisticCode'],
  9303. name: map['Name'],
  9304. description: map['Description'],
  9305. intervalSetting: map['IntervalSetting'],
  9306. enabled: map['Enabled'],
  9307. handleClass: map['HandleClass'],
  9308. serverHost: map['ServerHost'],
  9309. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9310. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9311. );
  9312. }
  9313. Map<String, dynamic> toJson() {
  9314. final map = super.toJson();
  9315. if(statisticCode != null)
  9316. map['StatisticCode'] = statisticCode;
  9317. if(name != null)
  9318. map['Name'] = name;
  9319. if(description != null)
  9320. map['Description'] = description;
  9321. if(intervalSetting != null)
  9322. map['IntervalSetting'] = intervalSetting;
  9323. map['Enabled'] = enabled;
  9324. if(handleClass != null)
  9325. map['HandleClass'] = handleClass;
  9326. if(serverHost != null)
  9327. map['ServerHost'] = serverHost;
  9328. return map;
  9329. }
  9330. }
  9331. class StatisticInfoDTO {
  9332. List<String >? xAxisDatas;
  9333. List<List<double> >? yAxisDatas;
  9334. List<StatisticInfoDTO >? children;
  9335. StatisticInfoDTO({
  9336. this.xAxisDatas,
  9337. this.yAxisDatas,
  9338. this.children,
  9339. });
  9340. factory StatisticInfoDTO.fromJson(Map<String, dynamic> map) {
  9341. return StatisticInfoDTO(
  9342. xAxisDatas: map['XAxisDatas'] != null ? map['XAxisDatas'].cast<String>().toList() : null,
  9343. yAxisDatas: map['YAxisDatas'] != null ? map['YAxisDatas'].cast<List<double>>().toList() : null,
  9344. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9345. );
  9346. }
  9347. Map<String, dynamic> toJson() {
  9348. final map = Map<String, dynamic>();
  9349. if(xAxisDatas != null)
  9350. map['XAxisDatas'] = xAxisDatas;
  9351. if(yAxisDatas != null)
  9352. map['YAxisDatas'] = yAxisDatas;
  9353. if(children != null)
  9354. map['Children'] = children;
  9355. return map;
  9356. }
  9357. }
  9358. class StatisticRecordDTO extends BaseDTO{
  9359. String? statisticRecordCode;
  9360. String? statisticCode;
  9361. String? statisticName;
  9362. String? userCode;
  9363. DateTime? lastestUpdateTime;
  9364. DateTime? nextHandleTime;
  9365. List<String >? xAxisDatas;
  9366. List<List<double> >? yAxisDatas;
  9367. List<StatisticInfoDTO >? children;
  9368. StatisticRecordDTO({
  9369. this.statisticRecordCode,
  9370. this.statisticCode,
  9371. this.statisticName,
  9372. this.userCode,
  9373. this.lastestUpdateTime,
  9374. this.nextHandleTime,
  9375. this.xAxisDatas,
  9376. this.yAxisDatas,
  9377. this.children,
  9378. DateTime? createTime,
  9379. DateTime? updateTime,
  9380. }) : super(
  9381. createTime: createTime,
  9382. updateTime: updateTime,
  9383. );
  9384. factory StatisticRecordDTO.fromJson(Map<String, dynamic> map) {
  9385. return StatisticRecordDTO(
  9386. statisticRecordCode: map['StatisticRecordCode'],
  9387. statisticCode: map['StatisticCode'],
  9388. statisticName: map['StatisticName'],
  9389. userCode: map['UserCode'],
  9390. lastestUpdateTime: map['LastestUpdateTime'] != null ? DateTime.parse(map['LastestUpdateTime']) : null,
  9391. nextHandleTime: map['NextHandleTime'] != null ? DateTime.parse(map['NextHandleTime']) : null,
  9392. xAxisDatas: map['XAxisDatas'] != null ? map['XAxisDatas'].cast<String>().toList() : null,
  9393. yAxisDatas: map['YAxisDatas'] != null ? map['YAxisDatas'].cast<List<double>>().toList() : null,
  9394. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9395. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9396. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9397. );
  9398. }
  9399. Map<String, dynamic> toJson() {
  9400. final map = super.toJson();
  9401. if(statisticRecordCode != null)
  9402. map['StatisticRecordCode'] = statisticRecordCode;
  9403. if(statisticCode != null)
  9404. map['StatisticCode'] = statisticCode;
  9405. if(statisticName != null)
  9406. map['StatisticName'] = statisticName;
  9407. if(userCode != null)
  9408. map['UserCode'] = userCode;
  9409. if(lastestUpdateTime != null)
  9410. map['LastestUpdateTime'] = JsonRpcUtils.dateFormat(lastestUpdateTime!);
  9411. if(nextHandleTime != null)
  9412. map['NextHandleTime'] = JsonRpcUtils.dateFormat(nextHandleTime!);
  9413. if(xAxisDatas != null)
  9414. map['XAxisDatas'] = xAxisDatas;
  9415. if(yAxisDatas != null)
  9416. map['YAxisDatas'] = yAxisDatas;
  9417. if(children != null)
  9418. map['Children'] = children;
  9419. return map;
  9420. }
  9421. }
  9422. class ServerListResult extends BaseServerResult{
  9423. bool isDistributed;
  9424. List<ServerInfoDTO >? serverList;
  9425. ServerListResult({
  9426. this.isDistributed = false,
  9427. this.serverList,
  9428. int code = 0,
  9429. }) : super(
  9430. code: code,
  9431. );
  9432. factory ServerListResult.fromJson(Map<String, dynamic> map) {
  9433. return ServerListResult(
  9434. isDistributed: map['IsDistributed'],
  9435. serverList: map['ServerList'] != null ? (map['ServerList'] as List).map((e)=>ServerInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9436. code: map['Code'],
  9437. );
  9438. }
  9439. Map<String, dynamic> toJson() {
  9440. final map = super.toJson();
  9441. map['IsDistributed'] = isDistributed;
  9442. if(serverList != null)
  9443. map['ServerList'] = serverList;
  9444. return map;
  9445. }
  9446. }
  9447. class LoginSuccessResult extends BaseServerResult{
  9448. LoginSuccessResult({
  9449. int code = 0,
  9450. }) : super(
  9451. code: code,
  9452. );
  9453. factory LoginSuccessResult.fromJson(Map<String, dynamic> map) {
  9454. return LoginSuccessResult(
  9455. code: map['Code'],
  9456. );
  9457. }
  9458. Map<String, dynamic> toJson() {
  9459. final map = super.toJson();
  9460. return map;
  9461. }
  9462. }
  9463. class ScheduleDTO extends ClientScheduleDTO{
  9464. List<String >? userCodes;
  9465. String? code;
  9466. ScheduleDTO({
  9467. this.userCodes,
  9468. this.code,
  9469. String? title,
  9470. TransactionStatusEnum status = TransactionStatusEnum.Applied,
  9471. ScheduleTypeEnum scheduleType = ScheduleTypeEnum.Consultation,
  9472. DateTime? startTime,
  9473. DateTime? endTime,
  9474. String? relevanceCode,
  9475. }) : super(
  9476. title: title,
  9477. status: status,
  9478. scheduleType: scheduleType,
  9479. startTime: startTime,
  9480. endTime: endTime,
  9481. relevanceCode: relevanceCode,
  9482. );
  9483. factory ScheduleDTO.fromJson(Map<String, dynamic> map) {
  9484. return ScheduleDTO(
  9485. userCodes: map['UserCodes'] != null ? map['UserCodes'].cast<String>().toList() : null,
  9486. code: map['Code'],
  9487. title: map['Title'],
  9488. status: TransactionStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  9489. scheduleType: ScheduleTypeEnum.values.firstWhere((e) => e.index == map['ScheduleType']),
  9490. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  9491. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  9492. relevanceCode: map['RelevanceCode'],
  9493. );
  9494. }
  9495. Map<String, dynamic> toJson() {
  9496. final map = super.toJson();
  9497. if(userCodes != null)
  9498. map['UserCodes'] = userCodes;
  9499. if(code != null)
  9500. map['Code'] = code;
  9501. return map;
  9502. }
  9503. }
  9504. class LiveMemberDTO {
  9505. String? code;
  9506. LiveMemberEnum memberType;
  9507. String? name;
  9508. String? headImageToken;
  9509. LiveMemberStatus status;
  9510. bool muteOpened;
  9511. bool videoOpened;
  9512. LiveDataDTO? liveData;
  9513. bool isControllingParameter;
  9514. DateTime? firstJoinTime;
  9515. int sortLevel;
  9516. List<VideoDeviceInfoDTO >? videoDeviceInfos;
  9517. LoginSource loginSource;
  9518. LiveMemberDTO({
  9519. this.code,
  9520. this.memberType = LiveMemberEnum.User,
  9521. this.name,
  9522. this.headImageToken,
  9523. this.status = LiveMemberStatus.Default,
  9524. this.muteOpened = false,
  9525. this.videoOpened = false,
  9526. this.liveData,
  9527. this.isControllingParameter = false,
  9528. this.firstJoinTime,
  9529. this.sortLevel = 0,
  9530. this.videoDeviceInfos,
  9531. this.loginSource = LoginSource.PC,
  9532. });
  9533. factory LiveMemberDTO.fromJson(Map<String, dynamic> map) {
  9534. return LiveMemberDTO(
  9535. code: map['Code'],
  9536. memberType: LiveMemberEnum.values.firstWhere((e) => e.index == map['MemberType']),
  9537. name: map['Name'],
  9538. headImageToken: map['HeadImageToken'],
  9539. status: LiveMemberStatus.values.firstWhere((e) => e.index == map['Status']),
  9540. muteOpened: map['MuteOpened'],
  9541. videoOpened: map['VideoOpened'],
  9542. liveData: map['LiveData'] != null ? LiveDataDTO.fromJson(map['LiveData']) : null,
  9543. isControllingParameter: map['IsControllingParameter'],
  9544. firstJoinTime: map['FirstJoinTime'] != null ? DateTime.parse(map['FirstJoinTime']) : null,
  9545. sortLevel: map['SortLevel'],
  9546. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9547. loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
  9548. );
  9549. }
  9550. Map<String, dynamic> toJson() {
  9551. final map = Map<String, dynamic>();
  9552. if(code != null)
  9553. map['Code'] = code;
  9554. map['MemberType'] = memberType.index;
  9555. if(name != null)
  9556. map['Name'] = name;
  9557. if(headImageToken != null)
  9558. map['HeadImageToken'] = headImageToken;
  9559. map['Status'] = status.index;
  9560. map['MuteOpened'] = muteOpened;
  9561. map['VideoOpened'] = videoOpened;
  9562. if(liveData != null)
  9563. map['LiveData'] = liveData;
  9564. map['IsControllingParameter'] = isControllingParameter;
  9565. if(firstJoinTime != null)
  9566. map['FirstJoinTime'] = JsonRpcUtils.dateFormat(firstJoinTime!);
  9567. map['SortLevel'] = sortLevel;
  9568. if(videoDeviceInfos != null)
  9569. map['VideoDeviceInfos'] = videoDeviceInfos;
  9570. map['LoginSource'] = loginSource.index;
  9571. return map;
  9572. }
  9573. }
  9574. class LiveViewerDTO {
  9575. String? userCode;
  9576. String? name;
  9577. DateTime? lastReportTime;
  9578. LiveViewerDTO({
  9579. this.userCode,
  9580. this.name,
  9581. this.lastReportTime,
  9582. });
  9583. factory LiveViewerDTO.fromJson(Map<String, dynamic> map) {
  9584. return LiveViewerDTO(
  9585. userCode: map['UserCode'],
  9586. name: map['Name'],
  9587. lastReportTime: map['LastReportTime'] != null ? DateTime.parse(map['LastReportTime']) : null,
  9588. );
  9589. }
  9590. Map<String, dynamic> toJson() {
  9591. final map = Map<String, dynamic>();
  9592. if(userCode != null)
  9593. map['UserCode'] = userCode;
  9594. if(name != null)
  9595. map['Name'] = name;
  9596. if(lastReportTime != null)
  9597. map['LastReportTime'] = JsonRpcUtils.dateFormat(lastReportTime!);
  9598. return map;
  9599. }
  9600. }
  9601. class LiveRoomInfoDTO {
  9602. String? roomId;
  9603. int roomNo;
  9604. String? msgQueueId;
  9605. List<LiveMemberDTO >? members;
  9606. List<LiveViewerDTO >? viewerInfos;
  9607. LiveMemberDTO? initiator;
  9608. List<LiveMemberDTO >? userInfos;
  9609. List<LiveMemberDTO >? deviceInfos;
  9610. List<LiveMemberDTO >? expertUserInfos;
  9611. List<LiveMemberDTO >? assistantsInfos;
  9612. LiveRoomStatus status;
  9613. String? name;
  9614. DateTime? liveTime;
  9615. int liveStatus;
  9616. List<InteractiveBoardDataDTO >? interactiveBoardDatas;
  9617. LiveRoomInfoDTO({
  9618. this.roomId,
  9619. this.roomNo = 0,
  9620. this.msgQueueId,
  9621. this.members,
  9622. this.viewerInfos,
  9623. this.initiator,
  9624. this.userInfos,
  9625. this.deviceInfos,
  9626. this.expertUserInfos,
  9627. this.assistantsInfos,
  9628. this.status = LiveRoomStatus.Default,
  9629. this.name,
  9630. this.liveTime,
  9631. this.liveStatus = 0,
  9632. this.interactiveBoardDatas,
  9633. });
  9634. factory LiveRoomInfoDTO.fromJson(Map<String, dynamic> map) {
  9635. return LiveRoomInfoDTO(
  9636. roomId: map['RoomId'],
  9637. roomNo: map['RoomNo'],
  9638. msgQueueId: map['MsgQueueId'],
  9639. members: map['Members'] != null ? (map['Members'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9640. viewerInfos: map['ViewerInfos'] != null ? (map['ViewerInfos'] as List).map((e)=>LiveViewerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9641. initiator: map['Initiator'] != null ? LiveMemberDTO.fromJson(map['Initiator']) : null,
  9642. userInfos: map['UserInfos'] != null ? (map['UserInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9643. deviceInfos: map['DeviceInfos'] != null ? (map['DeviceInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9644. expertUserInfos: map['ExpertUserInfos'] != null ? (map['ExpertUserInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9645. assistantsInfos: map['AssistantsInfos'] != null ? (map['AssistantsInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9646. status: LiveRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  9647. name: map['Name'],
  9648. liveTime: map['LiveTime'] != null ? DateTime.parse(map['LiveTime']) : null,
  9649. liveStatus: map['LiveStatus'],
  9650. interactiveBoardDatas: map['InteractiveBoardDatas'] != null ? (map['InteractiveBoardDatas'] as List).map((e)=>InteractiveBoardDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9651. );
  9652. }
  9653. Map<String, dynamic> toJson() {
  9654. final map = Map<String, dynamic>();
  9655. if(roomId != null)
  9656. map['RoomId'] = roomId;
  9657. map['RoomNo'] = roomNo;
  9658. if(msgQueueId != null)
  9659. map['MsgQueueId'] = msgQueueId;
  9660. if(members != null)
  9661. map['Members'] = members;
  9662. if(viewerInfos != null)
  9663. map['ViewerInfos'] = viewerInfos;
  9664. if(initiator != null)
  9665. map['Initiator'] = initiator;
  9666. if(userInfos != null)
  9667. map['UserInfos'] = userInfos;
  9668. if(deviceInfos != null)
  9669. map['DeviceInfos'] = deviceInfos;
  9670. if(expertUserInfos != null)
  9671. map['ExpertUserInfos'] = expertUserInfos;
  9672. if(assistantsInfos != null)
  9673. map['AssistantsInfos'] = assistantsInfos;
  9674. map['Status'] = status.index;
  9675. if(name != null)
  9676. map['Name'] = name;
  9677. if(liveTime != null)
  9678. map['LiveTime'] = JsonRpcUtils.dateFormat(liveTime!);
  9679. map['LiveStatus'] = liveStatus;
  9680. if(interactiveBoardDatas != null)
  9681. map['InteractiveBoardDatas'] = interactiveBoardDatas;
  9682. return map;
  9683. }
  9684. }
  9685. class RtcBoardDataDTO {
  9686. String? userCode;
  9687. String? boardData;
  9688. DateTime? interactiveTime;
  9689. RtcBoardDataDTO({
  9690. this.userCode,
  9691. this.boardData,
  9692. this.interactiveTime,
  9693. });
  9694. factory RtcBoardDataDTO.fromJson(Map<String, dynamic> map) {
  9695. return RtcBoardDataDTO(
  9696. userCode: map['UserCode'],
  9697. boardData: map['BoardData'],
  9698. interactiveTime: map['InteractiveTime'] != null ? DateTime.parse(map['InteractiveTime']) : null,
  9699. );
  9700. }
  9701. Map<String, dynamic> toJson() {
  9702. final map = Map<String, dynamic>();
  9703. if(userCode != null)
  9704. map['UserCode'] = userCode;
  9705. if(boardData != null)
  9706. map['BoardData'] = boardData;
  9707. if(interactiveTime != null)
  9708. map['InteractiveTime'] = JsonRpcUtils.dateFormat(interactiveTime!);
  9709. return map;
  9710. }
  9711. }
  9712. class RtcLiveDataDTO {
  9713. String? pullUrl;
  9714. RtcLiveDataDTO({
  9715. this.pullUrl,
  9716. });
  9717. factory RtcLiveDataDTO.fromJson(Map<String, dynamic> map) {
  9718. return RtcLiveDataDTO(
  9719. pullUrl: map['PullUrl'],
  9720. );
  9721. }
  9722. Map<String, dynamic> toJson() {
  9723. final map = Map<String, dynamic>();
  9724. if(pullUrl != null)
  9725. map['PullUrl'] = pullUrl;
  9726. return map;
  9727. }
  9728. }
  9729. class RtcMemberDTO {
  9730. String? id;
  9731. String? name;
  9732. String? avatarUrl;
  9733. LiveMemberEnum memberType;
  9734. LiveMemberStatus status;
  9735. bool muteOpened;
  9736. bool videoOpened;
  9737. bool isInitiator;
  9738. bool isControllingParameter;
  9739. RtcLiveDataDTO? rtcLiveData;
  9740. RtcMemberDTO({
  9741. this.id,
  9742. this.name,
  9743. this.avatarUrl,
  9744. this.memberType = LiveMemberEnum.User,
  9745. this.status = LiveMemberStatus.Default,
  9746. this.muteOpened = false,
  9747. this.videoOpened = false,
  9748. this.isInitiator = false,
  9749. this.isControllingParameter = false,
  9750. this.rtcLiveData,
  9751. });
  9752. factory RtcMemberDTO.fromJson(Map<String, dynamic> map) {
  9753. return RtcMemberDTO(
  9754. id: map['Id'],
  9755. name: map['Name'],
  9756. avatarUrl: map['AvatarUrl'],
  9757. memberType: LiveMemberEnum.values.firstWhere((e) => e.index == map['MemberType']),
  9758. status: LiveMemberStatus.values.firstWhere((e) => e.index == map['Status']),
  9759. muteOpened: map['MuteOpened'],
  9760. videoOpened: map['VideoOpened'],
  9761. isInitiator: map['IsInitiator'],
  9762. isControllingParameter: map['IsControllingParameter'],
  9763. rtcLiveData: map['RtcLiveData'] != null ? RtcLiveDataDTO.fromJson(map['RtcLiveData']) : null,
  9764. );
  9765. }
  9766. Map<String, dynamic> toJson() {
  9767. final map = Map<String, dynamic>();
  9768. if(id != null)
  9769. map['Id'] = id;
  9770. if(name != null)
  9771. map['Name'] = name;
  9772. if(avatarUrl != null)
  9773. map['AvatarUrl'] = avatarUrl;
  9774. map['MemberType'] = memberType.index;
  9775. map['Status'] = status.index;
  9776. map['MuteOpened'] = muteOpened;
  9777. map['VideoOpened'] = videoOpened;
  9778. map['IsInitiator'] = isInitiator;
  9779. map['IsControllingParameter'] = isControllingParameter;
  9780. if(rtcLiveData != null)
  9781. map['RtcLiveData'] = rtcLiveData;
  9782. return map;
  9783. }
  9784. }
  9785. class RtcViewerDTO {
  9786. String? userCode;
  9787. DateTime? lastReportTime;
  9788. RtcViewerDTO({
  9789. this.userCode,
  9790. this.lastReportTime,
  9791. });
  9792. factory RtcViewerDTO.fromJson(Map<String, dynamic> map) {
  9793. return RtcViewerDTO(
  9794. userCode: map['UserCode'],
  9795. lastReportTime: map['LastReportTime'] != null ? DateTime.parse(map['LastReportTime']) : null,
  9796. );
  9797. }
  9798. Map<String, dynamic> toJson() {
  9799. final map = Map<String, dynamic>();
  9800. if(userCode != null)
  9801. map['UserCode'] = userCode;
  9802. if(lastReportTime != null)
  9803. map['LastReportTime'] = JsonRpcUtils.dateFormat(lastReportTime!);
  9804. return map;
  9805. }
  9806. }
  9807. class RtcRoomDTO {
  9808. String? liveRoomCode;
  9809. String? name;
  9810. String? initiateCode;
  9811. int rtcRoomId;
  9812. int sdkAppId;
  9813. String? msgQueueId;
  9814. LiveRoomStatus status;
  9815. List<RtcMemberDTO >? members;
  9816. List<RtcViewerDTO >? viewers;
  9817. List<RtcBoardDataDTO >? interactiveBoardDatas;
  9818. RtcRoomDTO({
  9819. this.liveRoomCode,
  9820. this.name,
  9821. this.initiateCode,
  9822. this.rtcRoomId = 0,
  9823. this.sdkAppId = 0,
  9824. this.msgQueueId,
  9825. this.status = LiveRoomStatus.Default,
  9826. this.members,
  9827. this.viewers,
  9828. this.interactiveBoardDatas,
  9829. });
  9830. factory RtcRoomDTO.fromJson(Map<String, dynamic> map) {
  9831. return RtcRoomDTO(
  9832. liveRoomCode: map['LiveRoomCode'],
  9833. name: map['Name'],
  9834. initiateCode: map['InitiateCode'],
  9835. rtcRoomId: map['RtcRoomId'],
  9836. sdkAppId: map['SdkAppId'],
  9837. msgQueueId: map['MsgQueueId'],
  9838. status: LiveRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  9839. members: map['Members'] != null ? (map['Members'] as List).map((e)=>RtcMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9840. viewers: map['Viewers'] != null ? (map['Viewers'] as List).map((e)=>RtcViewerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9841. interactiveBoardDatas: map['InteractiveBoardDatas'] != null ? (map['InteractiveBoardDatas'] as List).map((e)=>RtcBoardDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9842. );
  9843. }
  9844. Map<String, dynamic> toJson() {
  9845. final map = Map<String, dynamic>();
  9846. if(liveRoomCode != null)
  9847. map['LiveRoomCode'] = liveRoomCode;
  9848. if(name != null)
  9849. map['Name'] = name;
  9850. if(initiateCode != null)
  9851. map['InitiateCode'] = initiateCode;
  9852. map['RtcRoomId'] = rtcRoomId;
  9853. map['SdkAppId'] = sdkAppId;
  9854. if(msgQueueId != null)
  9855. map['MsgQueueId'] = msgQueueId;
  9856. map['Status'] = status.index;
  9857. if(members != null)
  9858. map['Members'] = members;
  9859. if(viewers != null)
  9860. map['Viewers'] = viewers;
  9861. if(interactiveBoardDatas != null)
  9862. map['InteractiveBoardDatas'] = interactiveBoardDatas;
  9863. return map;
  9864. }
  9865. }
  9866. class ReportElementDTO {
  9867. String? key;
  9868. String? tagId;
  9869. String? name;
  9870. String? aILanguage;
  9871. ReportElementDTO({
  9872. this.key,
  9873. this.tagId,
  9874. this.name,
  9875. this.aILanguage,
  9876. });
  9877. factory ReportElementDTO.fromJson(Map<String, dynamic> map) {
  9878. return ReportElementDTO(
  9879. key: map['Key'],
  9880. tagId: map['TagId'],
  9881. name: map['Name'],
  9882. aILanguage: map['AILanguage'],
  9883. );
  9884. }
  9885. Map<String, dynamic> toJson() {
  9886. final map = Map<String, dynamic>();
  9887. if(key != null)
  9888. map['Key'] = key;
  9889. if(tagId != null)
  9890. map['TagId'] = tagId;
  9891. if(name != null)
  9892. map['Name'] = name;
  9893. if(aILanguage != null)
  9894. map['AILanguage'] = aILanguage;
  9895. return map;
  9896. }
  9897. }
  9898. class ReportPosterDTO extends BaseDTO{
  9899. String? reportPosterCode;
  9900. String? receiverName;
  9901. String? contact;
  9902. String? phone;
  9903. String? targetUrl;
  9904. String? template;
  9905. ReportPosterTypeEnum posterType;
  9906. ReportFormatEnum reportFormat;
  9907. int postTimeout;
  9908. List<String >? deviceIds;
  9909. ReportPosterDTO({
  9910. this.reportPosterCode,
  9911. this.receiverName,
  9912. this.contact,
  9913. this.phone,
  9914. this.targetUrl,
  9915. this.template,
  9916. this.posterType = ReportPosterTypeEnum.Default,
  9917. this.reportFormat = ReportFormatEnum.Json,
  9918. this.postTimeout = 0,
  9919. this.deviceIds,
  9920. DateTime? createTime,
  9921. DateTime? updateTime,
  9922. }) : super(
  9923. createTime: createTime,
  9924. updateTime: updateTime,
  9925. );
  9926. factory ReportPosterDTO.fromJson(Map<String, dynamic> map) {
  9927. return ReportPosterDTO(
  9928. reportPosterCode: map['ReportPosterCode'],
  9929. receiverName: map['ReceiverName'],
  9930. contact: map['Contact'],
  9931. phone: map['Phone'],
  9932. targetUrl: map['TargetUrl'],
  9933. template: map['Template'],
  9934. posterType: ReportPosterTypeEnum.values.firstWhere((e) => e.index == map['PosterType']),
  9935. reportFormat: ReportFormatEnum.values.firstWhere((e) => e.index == map['ReportFormat']),
  9936. postTimeout: map['PostTimeout'],
  9937. deviceIds: map['DeviceIds'] != null ? map['DeviceIds'].cast<String>().toList() : null,
  9938. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9939. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9940. );
  9941. }
  9942. Map<String, dynamic> toJson() {
  9943. final map = super.toJson();
  9944. if(reportPosterCode != null)
  9945. map['ReportPosterCode'] = reportPosterCode;
  9946. if(receiverName != null)
  9947. map['ReceiverName'] = receiverName;
  9948. if(contact != null)
  9949. map['Contact'] = contact;
  9950. if(phone != null)
  9951. map['Phone'] = phone;
  9952. if(targetUrl != null)
  9953. map['TargetUrl'] = targetUrl;
  9954. if(template != null)
  9955. map['Template'] = template;
  9956. map['PosterType'] = posterType.index;
  9957. map['ReportFormat'] = reportFormat.index;
  9958. map['PostTimeout'] = postTimeout;
  9959. if(deviceIds != null)
  9960. map['DeviceIds'] = deviceIds;
  9961. return map;
  9962. }
  9963. }
  9964. class ReportPushRecordDTO extends BaseDTO{
  9965. String? pushRecordCode;
  9966. String? patientId;
  9967. String? patientName;
  9968. String? poseterConfigId;
  9969. PushDataStateEnum state;
  9970. String? poseterConfigName;
  9971. String? reportId;
  9972. String? patientRecordId;
  9973. String? pushResultToken;
  9974. String? pushResponse;
  9975. ReportPushRecordDTO({
  9976. this.pushRecordCode,
  9977. this.patientId,
  9978. this.patientName,
  9979. this.poseterConfigId,
  9980. this.state = PushDataStateEnum.UnDo,
  9981. this.poseterConfigName,
  9982. this.reportId,
  9983. this.patientRecordId,
  9984. this.pushResultToken,
  9985. this.pushResponse,
  9986. DateTime? createTime,
  9987. DateTime? updateTime,
  9988. }) : super(
  9989. createTime: createTime,
  9990. updateTime: updateTime,
  9991. );
  9992. factory ReportPushRecordDTO.fromJson(Map<String, dynamic> map) {
  9993. return ReportPushRecordDTO(
  9994. pushRecordCode: map['PushRecordCode'],
  9995. patientId: map['PatientId'],
  9996. patientName: map['PatientName'],
  9997. poseterConfigId: map['PoseterConfigId'],
  9998. state: PushDataStateEnum.values.firstWhere((e) => e.index == map['State']),
  9999. poseterConfigName: map['PoseterConfigName'],
  10000. reportId: map['ReportId'],
  10001. patientRecordId: map['PatientRecordId'],
  10002. pushResultToken: map['PushResultToken'],
  10003. pushResponse: map['PushResponse'],
  10004. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  10005. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  10006. );
  10007. }
  10008. Map<String, dynamic> toJson() {
  10009. final map = super.toJson();
  10010. if(pushRecordCode != null)
  10011. map['PushRecordCode'] = pushRecordCode;
  10012. if(patientId != null)
  10013. map['PatientId'] = patientId;
  10014. if(patientName != null)
  10015. map['PatientName'] = patientName;
  10016. if(poseterConfigId != null)
  10017. map['PoseterConfigId'] = poseterConfigId;
  10018. map['State'] = state.index;
  10019. if(poseterConfigName != null)
  10020. map['PoseterConfigName'] = poseterConfigName;
  10021. if(reportId != null)
  10022. map['ReportId'] = reportId;
  10023. if(patientRecordId != null)
  10024. map['PatientRecordId'] = patientRecordId;
  10025. if(pushResultToken != null)
  10026. map['PushResultToken'] = pushResultToken;
  10027. if(pushResponse != null)
  10028. map['PushResponse'] = pushResponse;
  10029. return map;
  10030. }
  10031. }
  10032. class RegionItemDTO {
  10033. String? c;
  10034. String? g;
  10035. String? f;
  10036. String? n;
  10037. RegionItemDTO({
  10038. this.c,
  10039. this.g,
  10040. this.f,
  10041. this.n,
  10042. });
  10043. factory RegionItemDTO.fromJson(Map<String, dynamic> map) {
  10044. return RegionItemDTO(
  10045. c: map['c'],
  10046. g: map['g'],
  10047. f: map['f'],
  10048. n: map['n'],
  10049. );
  10050. }
  10051. Map<String, dynamic> toJson() {
  10052. final map = Map<String, dynamic>();
  10053. if(c != null)
  10054. map['c'] = c;
  10055. if(g != null)
  10056. map['g'] = g;
  10057. if(f != null)
  10058. map['f'] = f;
  10059. if(n != null)
  10060. map['n'] = n;
  10061. return map;
  10062. }
  10063. }
  10064. class RegionDataDTO {
  10065. String? lang;
  10066. List<RegionItemDTO >? datas;
  10067. RegionDataDTO({
  10068. this.lang,
  10069. this.datas,
  10070. });
  10071. factory RegionDataDTO.fromJson(Map<String, dynamic> map) {
  10072. return RegionDataDTO(
  10073. lang: map['lang'],
  10074. datas: map['datas'] != null ? (map['datas'] as List).map((e)=>RegionItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10075. );
  10076. }
  10077. Map<String, dynamic> toJson() {
  10078. final map = Map<String, dynamic>();
  10079. if(lang != null)
  10080. map['lang'] = lang;
  10081. if(datas != null)
  10082. map['datas'] = datas;
  10083. return map;
  10084. }
  10085. }
  10086. class ReferralRecordSettingDTO extends BaseDTO{
  10087. String? referralRecordSettingCode;
  10088. double limitHours;
  10089. ReferralRecordSettingDTO({
  10090. this.referralRecordSettingCode,
  10091. this.limitHours = 0,
  10092. DateTime? createTime,
  10093. DateTime? updateTime,
  10094. }) : super(
  10095. createTime: createTime,
  10096. updateTime: updateTime,
  10097. );
  10098. factory ReferralRecordSettingDTO.fromJson(Map<String, dynamic> map) {
  10099. return ReferralRecordSettingDTO(
  10100. referralRecordSettingCode: map['ReferralRecordSettingCode'],
  10101. limitHours: double.parse(map['LimitHours'].toString()),
  10102. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  10103. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  10104. );
  10105. }
  10106. Map<String, dynamic> toJson() {
  10107. final map = super.toJson();
  10108. if(referralRecordSettingCode != null)
  10109. map['ReferralRecordSettingCode'] = referralRecordSettingCode;
  10110. map['LimitHours'] = limitHours;
  10111. return map;
  10112. }
  10113. }
  10114. class CreatePaymentRecordResultDTO {
  10115. String? paymentRecordCode;
  10116. CreatePaymentRecordResultDTO({
  10117. this.paymentRecordCode,
  10118. });
  10119. factory CreatePaymentRecordResultDTO.fromJson(Map<String, dynamic> map) {
  10120. return CreatePaymentRecordResultDTO(
  10121. paymentRecordCode: map['PaymentRecordCode'],
  10122. );
  10123. }
  10124. Map<String, dynamic> toJson() {
  10125. final map = Map<String, dynamic>();
  10126. if(paymentRecordCode != null)
  10127. map['PaymentRecordCode'] = paymentRecordCode;
  10128. return map;
  10129. }
  10130. }
  10131. class CreateProductDTO extends BaseDTO{
  10132. String? productCode;
  10133. CreateProductDTO({
  10134. this.productCode,
  10135. DateTime? createTime,
  10136. DateTime? updateTime,
  10137. }) : super(
  10138. createTime: createTime,
  10139. updateTime: updateTime,
  10140. );
  10141. factory CreateProductDTO.fromJson(Map<String, dynamic> map) {
  10142. return CreateProductDTO(
  10143. productCode: map['ProductCode'],
  10144. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  10145. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  10146. );
  10147. }
  10148. Map<String, dynamic> toJson() {
  10149. final map = super.toJson();
  10150. if(productCode != null)
  10151. map['ProductCode'] = productCode;
  10152. return map;
  10153. }
  10154. }
  10155. class PaymentRecordDTO extends BaseDTO{
  10156. String? orderCode;
  10157. double payAmount;
  10158. DateTime? payTime;
  10159. PayStatusEnum payStatus;
  10160. PayTypeEnum payType;
  10161. String? payReqContent;
  10162. String? payResContent;
  10163. PaymentRecordDTO({
  10164. this.orderCode,
  10165. this.payAmount = 0,
  10166. this.payTime,
  10167. this.payStatus = PayStatusEnum.NoPay,
  10168. this.payType = PayTypeEnum.Alipay_PAGE,
  10169. this.payReqContent,
  10170. this.payResContent,
  10171. DateTime? createTime,
  10172. DateTime? updateTime,
  10173. }) : super(
  10174. createTime: createTime,
  10175. updateTime: updateTime,
  10176. );
  10177. factory PaymentRecordDTO.fromJson(Map<String, dynamic> map) {
  10178. return PaymentRecordDTO(
  10179. orderCode: map['OrderCode'],
  10180. payAmount: double.parse(map['PayAmount'].toString()),
  10181. payTime: map['PayTime'] != null ? DateTime.parse(map['PayTime']) : null,
  10182. payStatus: PayStatusEnum.values.firstWhere((e) => e.index == map['PayStatus']),
  10183. payType: PayTypeEnum.values.firstWhere((e) => e.index == map['PayType']),
  10184. payReqContent: map['PayReqContent'],
  10185. payResContent: map['PayResContent'],
  10186. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  10187. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  10188. );
  10189. }
  10190. Map<String, dynamic> toJson() {
  10191. final map = super.toJson();
  10192. if(orderCode != null)
  10193. map['OrderCode'] = orderCode;
  10194. map['PayAmount'] = payAmount;
  10195. if(payTime != null)
  10196. map['PayTime'] = JsonRpcUtils.dateFormat(payTime!);
  10197. map['PayStatus'] = payStatus.index;
  10198. map['PayType'] = payType.index;
  10199. if(payReqContent != null)
  10200. map['PayReqContent'] = payReqContent;
  10201. if(payResContent != null)
  10202. map['PayResContent'] = payResContent;
  10203. return map;
  10204. }
  10205. }
  10206. class ProductDetailDTO extends BaseDTO{
  10207. String? code;
  10208. String? name;
  10209. String? headImage;
  10210. double price;
  10211. ProductStatusEnum status;
  10212. ProductTypeEnum productType;
  10213. String? belongerCode;
  10214. String? relationInfo;
  10215. ProductDetailDTO({
  10216. this.code,
  10217. this.name,
  10218. this.headImage,
  10219. this.price = 0,
  10220. this.status = ProductStatusEnum.SoldOut,
  10221. this.productType = ProductTypeEnum.Course,
  10222. this.belongerCode,
  10223. this.relationInfo,
  10224. DateTime? createTime,
  10225. DateTime? updateTime,
  10226. }) : super(
  10227. createTime: createTime,
  10228. updateTime: updateTime,
  10229. );
  10230. factory ProductDetailDTO.fromJson(Map<String, dynamic> map) {
  10231. return ProductDetailDTO(
  10232. code: map['Code'],
  10233. name: map['Name'],
  10234. headImage: map['HeadImage'],
  10235. price: double.parse(map['Price'].toString()),
  10236. status: ProductStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  10237. productType: ProductTypeEnum.values.firstWhere((e) => e.index == map['ProductType']),
  10238. belongerCode: map['BelongerCode'],
  10239. relationInfo: map['RelationInfo'],
  10240. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  10241. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  10242. );
  10243. }
  10244. Map<String, dynamic> toJson() {
  10245. final map = super.toJson();
  10246. if(code != null)
  10247. map['Code'] = code;
  10248. if(name != null)
  10249. map['Name'] = name;
  10250. if(headImage != null)
  10251. map['HeadImage'] = headImage;
  10252. map['Price'] = price;
  10253. map['Status'] = status.index;
  10254. map['ProductType'] = productType.index;
  10255. if(belongerCode != null)
  10256. map['BelongerCode'] = belongerCode;
  10257. if(relationInfo != null)
  10258. map['RelationInfo'] = relationInfo;
  10259. return map;
  10260. }
  10261. }
  10262. class UpdateOrderResultDTO {
  10263. bool isSuccess;
  10264. UpdateOrderResultDTO({
  10265. this.isSuccess = false,
  10266. });
  10267. factory UpdateOrderResultDTO.fromJson(Map<String, dynamic> map) {
  10268. return UpdateOrderResultDTO(
  10269. isSuccess: map['IsSuccess'],
  10270. );
  10271. }
  10272. Map<String, dynamic> toJson() {
  10273. final map = Map<String, dynamic>();
  10274. map['IsSuccess'] = isSuccess;
  10275. return map;
  10276. }
  10277. }
  10278. class UpdatePaymentRecordResultDTO {
  10279. bool isSuccess;
  10280. UpdatePaymentRecordResultDTO({
  10281. this.isSuccess = false,
  10282. });
  10283. factory UpdatePaymentRecordResultDTO.fromJson(Map<String, dynamic> map) {
  10284. return UpdatePaymentRecordResultDTO(
  10285. isSuccess: map['IsSuccess'],
  10286. );
  10287. }
  10288. Map<String, dynamic> toJson() {
  10289. final map = Map<String, dynamic>();
  10290. map['IsSuccess'] = isSuccess;
  10291. return map;
  10292. }
  10293. }
  10294. class UpdateProductDTO {
  10295. bool isSuccess;
  10296. UpdateProductDTO({
  10297. this.isSuccess = false,
  10298. });
  10299. factory UpdateProductDTO.fromJson(Map<String, dynamic> map) {
  10300. return UpdateProductDTO(
  10301. isSuccess: map['IsSuccess'],
  10302. );
  10303. }
  10304. Map<String, dynamic> toJson() {
  10305. final map = Map<String, dynamic>();
  10306. map['IsSuccess'] = isSuccess;
  10307. return map;
  10308. }
  10309. }
  10310. class StatisticDetailSettingDTO {
  10311. String? cMSTemplateCode;
  10312. StatisticDetailSettingDTO({
  10313. this.cMSTemplateCode,
  10314. });
  10315. factory StatisticDetailSettingDTO.fromJson(Map<String, dynamic> map) {
  10316. return StatisticDetailSettingDTO(
  10317. cMSTemplateCode: map['CMSTemplateCode'],
  10318. );
  10319. }
  10320. Map<String, dynamic> toJson() {
  10321. final map = Map<String, dynamic>();
  10322. if(cMSTemplateCode != null)
  10323. map['CMSTemplateCode'] = cMSTemplateCode;
  10324. return map;
  10325. }
  10326. }
  10327. class ClientInfoDTO {
  10328. String? clientId;
  10329. String? name;
  10330. bool isReaded;
  10331. DateTime? deliveryTime;
  10332. DateTime? readTime;
  10333. ClientInfoDTO({
  10334. this.clientId,
  10335. this.name,
  10336. this.isReaded = false,
  10337. this.deliveryTime,
  10338. this.readTime,
  10339. });
  10340. factory ClientInfoDTO.fromJson(Map<String, dynamic> map) {
  10341. return ClientInfoDTO(
  10342. clientId: map['ClientId'],
  10343. name: map['Name'],
  10344. isReaded: map['IsReaded'],
  10345. deliveryTime: map['DeliveryTime'] != null ? DateTime.parse(map['DeliveryTime']) : null,
  10346. readTime: map['ReadTime'] != null ? DateTime.parse(map['ReadTime']) : null,
  10347. );
  10348. }
  10349. Map<String, dynamic> toJson() {
  10350. final map = Map<String, dynamic>();
  10351. if(clientId != null)
  10352. map['ClientId'] = clientId;
  10353. if(name != null)
  10354. map['Name'] = name;
  10355. map['IsReaded'] = isReaded;
  10356. if(deliveryTime != null)
  10357. map['DeliveryTime'] = JsonRpcUtils.dateFormat(deliveryTime!);
  10358. if(readTime != null)
  10359. map['ReadTime'] = JsonRpcUtils.dateFormat(readTime!);
  10360. return map;
  10361. }
  10362. }
  10363. class MessageInfoDTO extends BaseDTO{
  10364. String? code;
  10365. NotificationTypeEnum notificationType;
  10366. String? content;
  10367. String? serverHost;
  10368. DateTime? notifyTime;
  10369. ApplicantTypeEnum receiverType;
  10370. TransactionTypeEnum transactionType;
  10371. String? relevanceCode;
  10372. List<ClientInfoDTO >? clientInfos;
  10373. MessageInfoDTO({
  10374. this.code,
  10375. this.notificationType = NotificationTypeEnum.Unknown,
  10376. this.content,
  10377. this.serverHost,
  10378. this.notifyTime,
  10379. this.receiverType = ApplicantTypeEnum.Client,
  10380. this.transactionType = TransactionTypeEnum.Consultion,
  10381. this.relevanceCode,
  10382. this.clientInfos,
  10383. DateTime? createTime,
  10384. DateTime? updateTime,
  10385. }) : super(
  10386. createTime: createTime,
  10387. updateTime: updateTime,
  10388. );
  10389. factory MessageInfoDTO.fromJson(Map<String, dynamic> map) {
  10390. return MessageInfoDTO(
  10391. code: map['Code'],
  10392. notificationType: NotificationTypeEnum.values.firstWhere((e) => e.index == map['NotificationType']),
  10393. content: map['Content'],
  10394. serverHost: map['ServerHost'],
  10395. notifyTime: map['NotifyTime'] != null ? DateTime.parse(map['NotifyTime']) : null,
  10396. receiverType: ApplicantTypeEnum.values.firstWhere((e) => e.index == map['ReceiverType']),
  10397. transactionType: TransactionTypeEnum.values.firstWhere((e) => e.index == map['TransactionType']),
  10398. relevanceCode: map['RelevanceCode'],
  10399. clientInfos: map['ClientInfos'] != null ? (map['ClientInfos'] as List).map((e)=>ClientInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10400. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  10401. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  10402. );
  10403. }
  10404. Map<String, dynamic> toJson() {
  10405. final map = super.toJson();
  10406. if(code != null)
  10407. map['Code'] = code;
  10408. map['NotificationType'] = notificationType.index;
  10409. if(content != null)
  10410. map['Content'] = content;
  10411. if(serverHost != null)
  10412. map['ServerHost'] = serverHost;
  10413. if(notifyTime != null)
  10414. map['NotifyTime'] = JsonRpcUtils.dateFormat(notifyTime!);
  10415. map['ReceiverType'] = receiverType.index;
  10416. map['TransactionType'] = transactionType.index;
  10417. if(relevanceCode != null)
  10418. map['RelevanceCode'] = relevanceCode;
  10419. if(clientInfos != null)
  10420. map['ClientInfos'] = clientInfos;
  10421. return map;
  10422. }
  10423. }
  10424. class OutputUnitDTO {
  10425. int unit;
  10426. OutputUnitDTO({
  10427. this.unit = 0,
  10428. });
  10429. factory OutputUnitDTO.fromJson(Map<String, dynamic> map) {
  10430. return OutputUnitDTO(
  10431. unit: map['Unit'],
  10432. );
  10433. }
  10434. Map<String, dynamic> toJson() {
  10435. final map = Map<String, dynamic>();
  10436. map['Unit'] = unit;
  10437. return map;
  10438. }
  10439. }
  10440. class FormularMetaDTO {
  10441. String? name;
  10442. FormularMetaDTO({
  10443. this.name,
  10444. });
  10445. factory FormularMetaDTO.fromJson(Map<String, dynamic> map) {
  10446. return FormularMetaDTO(
  10447. name: map['Name'],
  10448. );
  10449. }
  10450. Map<String, dynamic> toJson() {
  10451. final map = Map<String, dynamic>();
  10452. if(name != null)
  10453. map['Name'] = name;
  10454. return map;
  10455. }
  10456. }
  10457. class MeasuredValueDTO {
  10458. String? typeName;
  10459. String? name;
  10460. String? description;
  10461. bool worksheetAffinity;
  10462. String? briefDescription;
  10463. String? value;
  10464. Unit unit;
  10465. Unit targetUnit;
  10466. MeasuredValueDTO({
  10467. this.typeName,
  10468. this.name,
  10469. this.description,
  10470. this.worksheetAffinity = false,
  10471. this.briefDescription,
  10472. this.value,
  10473. this.unit = Unit.None,
  10474. this.targetUnit = Unit.None,
  10475. });
  10476. factory MeasuredValueDTO.fromJson(Map<String, dynamic> map) {
  10477. return MeasuredValueDTO(
  10478. typeName: map['TypeName'],
  10479. name: map['Name'],
  10480. description: map['Description'],
  10481. worksheetAffinity: map['WorksheetAffinity'],
  10482. briefDescription: map['BriefDescription'],
  10483. value: map['Value'],
  10484. unit: Unit.values.firstWhere((e) => e.index == map['Unit']),
  10485. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  10486. );
  10487. }
  10488. Map<String, dynamic> toJson() {
  10489. final map = Map<String, dynamic>();
  10490. if(typeName != null)
  10491. map['TypeName'] = typeName;
  10492. if(name != null)
  10493. map['Name'] = name;
  10494. if(description != null)
  10495. map['Description'] = description;
  10496. map['WorksheetAffinity'] = worksheetAffinity;
  10497. if(briefDescription != null)
  10498. map['BriefDescription'] = briefDescription;
  10499. if(value != null)
  10500. map['Value'] = value;
  10501. map['Unit'] = unit.index;
  10502. map['TargetUnit'] = targetUnit.index;
  10503. return map;
  10504. }
  10505. }
  10506. class MeasuredFeatureDTO {
  10507. String? typeName;
  10508. String? creator;
  10509. String? guid;
  10510. bool showChildFeatures;
  10511. DateTime? timeStamp;
  10512. bool isAutoCalculated;
  10513. List<MeasuredValueDTO >? values;
  10514. List<MeasuredFeatureDTO >? childFeatures;
  10515. MeasuredFeatureDTO({
  10516. this.typeName,
  10517. this.creator,
  10518. this.guid,
  10519. this.showChildFeatures = false,
  10520. this.timeStamp,
  10521. this.isAutoCalculated = false,
  10522. this.values,
  10523. this.childFeatures,
  10524. });
  10525. factory MeasuredFeatureDTO.fromJson(Map<String, dynamic> map) {
  10526. return MeasuredFeatureDTO(
  10527. typeName: map['TypeName'],
  10528. creator: map['Creator'],
  10529. guid: map['Guid'],
  10530. showChildFeatures: map['ShowChildFeatures'],
  10531. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  10532. isAutoCalculated: map['IsAutoCalculated'],
  10533. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10534. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10535. );
  10536. }
  10537. Map<String, dynamic> toJson() {
  10538. final map = Map<String, dynamic>();
  10539. if(typeName != null)
  10540. map['TypeName'] = typeName;
  10541. if(creator != null)
  10542. map['Creator'] = creator;
  10543. if(guid != null)
  10544. map['Guid'] = guid;
  10545. map['ShowChildFeatures'] = showChildFeatures;
  10546. if(timeStamp != null)
  10547. map['TimeStamp'] = JsonRpcUtils.dateFormat(timeStamp!);
  10548. map['IsAutoCalculated'] = isAutoCalculated;
  10549. if(values != null)
  10550. map['Values'] = values;
  10551. if(childFeatures != null)
  10552. map['ChildFeatures'] = childFeatures;
  10553. return map;
  10554. }
  10555. }
  10556. class MeasureExportRecordDTO {
  10557. String? languageCode;
  10558. List<MeasureExportDetailDTO >? remedicalMeasuredInfoCodes;
  10559. String? exportFileToken;
  10560. DateTime? createTime;
  10561. DateTime? updateTime;
  10562. MeasureExportRecordDTO({
  10563. this.languageCode,
  10564. this.remedicalMeasuredInfoCodes,
  10565. this.exportFileToken,
  10566. this.createTime,
  10567. this.updateTime,
  10568. });
  10569. factory MeasureExportRecordDTO.fromJson(Map<String, dynamic> map) {
  10570. return MeasureExportRecordDTO(
  10571. languageCode: map['LanguageCode'],
  10572. remedicalMeasuredInfoCodes: map['RemedicalMeasuredInfoCodes'] != null ? (map['RemedicalMeasuredInfoCodes'] as List).map((e)=>MeasureExportDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10573. exportFileToken: map['ExportFileToken'],
  10574. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  10575. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  10576. );
  10577. }
  10578. Map<String, dynamic> toJson() {
  10579. final map = Map<String, dynamic>();
  10580. if(languageCode != null)
  10581. map['LanguageCode'] = languageCode;
  10582. if(remedicalMeasuredInfoCodes != null)
  10583. map['RemedicalMeasuredInfoCodes'] = remedicalMeasuredInfoCodes;
  10584. if(exportFileToken != null)
  10585. map['ExportFileToken'] = exportFileToken;
  10586. if(createTime != null)
  10587. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  10588. if(updateTime != null)
  10589. map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
  10590. return map;
  10591. }
  10592. }
  10593. class MeasureItemDTO {
  10594. String? name;
  10595. String? description;
  10596. String? briefAnnotation;
  10597. String? typeName;
  10598. MeasureItemDTO({
  10599. this.name,
  10600. this.description,
  10601. this.briefAnnotation,
  10602. this.typeName,
  10603. });
  10604. factory MeasureItemDTO.fromJson(Map<String, dynamic> map) {
  10605. return MeasureItemDTO(
  10606. name: map['Name'],
  10607. description: map['Description'],
  10608. briefAnnotation: map['BriefAnnotation'],
  10609. typeName: map['TypeName'],
  10610. );
  10611. }
  10612. Map<String, dynamic> toJson() {
  10613. final map = Map<String, dynamic>();
  10614. if(name != null)
  10615. map['Name'] = name;
  10616. if(description != null)
  10617. map['Description'] = description;
  10618. if(briefAnnotation != null)
  10619. map['BriefAnnotation'] = briefAnnotation;
  10620. if(typeName != null)
  10621. map['TypeName'] = typeName;
  10622. return map;
  10623. }
  10624. }
  10625. class MeasureResultExcelDTO {
  10626. String? number;
  10627. String? measureItem;
  10628. String? measureResult;
  10629. MeasureResultExcelDTO({
  10630. this.number,
  10631. this.measureItem,
  10632. this.measureResult,
  10633. });
  10634. factory MeasureResultExcelDTO.fromJson(Map<String, dynamic> map) {
  10635. return MeasureResultExcelDTO(
  10636. number: map['Number'],
  10637. measureItem: map['MeasureItem'],
  10638. measureResult: map['MeasureResult'],
  10639. );
  10640. }
  10641. Map<String, dynamic> toJson() {
  10642. final map = Map<String, dynamic>();
  10643. if(number != null)
  10644. map['Number'] = number;
  10645. if(measureItem != null)
  10646. map['MeasureItem'] = measureItem;
  10647. if(measureResult != null)
  10648. map['MeasureResult'] = measureResult;
  10649. return map;
  10650. }
  10651. }
  10652. class MultiMethodItemDTO extends MeasureItemDTO{
  10653. MultiMethodItemDTO({
  10654. String? name,
  10655. String? description,
  10656. String? briefAnnotation,
  10657. String? typeName,
  10658. }) : super(
  10659. name: name,
  10660. description: description,
  10661. briefAnnotation: briefAnnotation,
  10662. typeName: typeName,
  10663. );
  10664. factory MultiMethodItemDTO.fromJson(Map<String, dynamic> map) {
  10665. return MultiMethodItemDTO(
  10666. name: map['Name'],
  10667. description: map['Description'],
  10668. briefAnnotation: map['BriefAnnotation'],
  10669. typeName: map['TypeName'],
  10670. );
  10671. }
  10672. Map<String, dynamic> toJson() {
  10673. final map = super.toJson();
  10674. return map;
  10675. }
  10676. }
  10677. class UserDefinedMeasureApplicationDTO {
  10678. String? version;
  10679. String? id;
  10680. String? categoryName;
  10681. List<UserDefinedMeasureModeDTO >? modes;
  10682. UserDefinedMeasureApplicationDTO({
  10683. this.version,
  10684. this.id,
  10685. this.categoryName,
  10686. this.modes,
  10687. });
  10688. factory UserDefinedMeasureApplicationDTO.fromJson(Map<String, dynamic> map) {
  10689. return UserDefinedMeasureApplicationDTO(
  10690. version: map['Version'],
  10691. id: map['Id'],
  10692. categoryName: map['CategoryName'],
  10693. modes: map['Modes'] != null ? (map['Modes'] as List).map((e)=>UserDefinedMeasureModeDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10694. );
  10695. }
  10696. Map<String, dynamic> toJson() {
  10697. final map = Map<String, dynamic>();
  10698. if(version != null)
  10699. map['Version'] = version;
  10700. if(id != null)
  10701. map['Id'] = id;
  10702. if(categoryName != null)
  10703. map['CategoryName'] = categoryName;
  10704. if(modes != null)
  10705. map['Modes'] = modes;
  10706. return map;
  10707. }
  10708. }
  10709. class UserDefinedCommentDataDTO {
  10710. String? version;
  10711. String? languageCode;
  10712. String? categoryName;
  10713. String? applicationName;
  10714. List<CommentItemDTO >? commentItems;
  10715. UserDefinedCommentDataDTO({
  10716. this.version,
  10717. this.languageCode,
  10718. this.categoryName,
  10719. this.applicationName,
  10720. this.commentItems,
  10721. });
  10722. factory UserDefinedCommentDataDTO.fromJson(Map<String, dynamic> map) {
  10723. return UserDefinedCommentDataDTO(
  10724. version: map['Version'],
  10725. languageCode: map['LanguageCode'],
  10726. categoryName: map['CategoryName'],
  10727. applicationName: map['ApplicationName'],
  10728. commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>CommentItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10729. );
  10730. }
  10731. Map<String, dynamic> toJson() {
  10732. final map = Map<String, dynamic>();
  10733. if(version != null)
  10734. map['Version'] = version;
  10735. if(languageCode != null)
  10736. map['LanguageCode'] = languageCode;
  10737. if(categoryName != null)
  10738. map['CategoryName'] = categoryName;
  10739. if(applicationName != null)
  10740. map['ApplicationName'] = applicationName;
  10741. if(commentItems != null)
  10742. map['CommentItems'] = commentItems;
  10743. return map;
  10744. }
  10745. }
  10746. class UserDefinedMeasureInfoDTO {
  10747. String? userId;
  10748. Map<String,String>? systemSettings;
  10749. List<UserDefinedMeasureApplicationDTO >? measureApplications;
  10750. List<UserDefinedCommentDataDTO >? commentItems;
  10751. UserDefinedMeasureInfoDTO({
  10752. this.userId,
  10753. this.systemSettings,
  10754. this.measureApplications,
  10755. this.commentItems,
  10756. });
  10757. factory UserDefinedMeasureInfoDTO.fromJson(Map<String, dynamic> map) {
  10758. return UserDefinedMeasureInfoDTO(
  10759. userId: map['UserId'],
  10760. systemSettings: map['SystemSettings'] != null ? map['SystemSettings'].cast<String,String>() : null,
  10761. measureApplications: map['MeasureApplications'] != null ? (map['MeasureApplications'] as List).map((e)=>UserDefinedMeasureApplicationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10762. commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>UserDefinedCommentDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10763. );
  10764. }
  10765. Map<String, dynamic> toJson() {
  10766. final map = Map<String, dynamic>();
  10767. if(userId != null)
  10768. map['UserId'] = userId;
  10769. if(systemSettings != null)
  10770. map['SystemSettings'] = systemSettings;
  10771. if(measureApplications != null)
  10772. map['MeasureApplications'] = measureApplications;
  10773. if(commentItems != null)
  10774. map['CommentItems'] = commentItems;
  10775. return map;
  10776. }
  10777. }
  10778. class AbRatioDTO extends MultiMethodItemDTO{
  10779. AbRatioDTO({
  10780. String? name,
  10781. String? description,
  10782. String? briefAnnotation,
  10783. String? typeName,
  10784. }) : super(
  10785. name: name,
  10786. description: description,
  10787. briefAnnotation: briefAnnotation,
  10788. typeName: typeName,
  10789. );
  10790. factory AbRatioDTO.fromJson(Map<String, dynamic> map) {
  10791. return AbRatioDTO(
  10792. name: map['Name'],
  10793. description: map['Description'],
  10794. briefAnnotation: map['BriefAnnotation'],
  10795. typeName: map['TypeName'],
  10796. );
  10797. }
  10798. Map<String, dynamic> toJson() {
  10799. final map = super.toJson();
  10800. return map;
  10801. }
  10802. }
  10803. class AngleDTO extends MeasureItemDTO{
  10804. AngleDTO({
  10805. String? name,
  10806. String? description,
  10807. String? briefAnnotation,
  10808. String? typeName,
  10809. }) : super(
  10810. name: name,
  10811. description: description,
  10812. briefAnnotation: briefAnnotation,
  10813. typeName: typeName,
  10814. );
  10815. factory AngleDTO.fromJson(Map<String, dynamic> map) {
  10816. return AngleDTO(
  10817. name: map['Name'],
  10818. description: map['Description'],
  10819. briefAnnotation: map['BriefAnnotation'],
  10820. typeName: map['TypeName'],
  10821. );
  10822. }
  10823. Map<String, dynamic> toJson() {
  10824. final map = super.toJson();
  10825. return map;
  10826. }
  10827. }
  10828. class AreaPerimeterDTO extends MultiMethodItemDTO{
  10829. AreaPerimeterDTO({
  10830. String? name,
  10831. String? description,
  10832. String? briefAnnotation,
  10833. String? typeName,
  10834. }) : super(
  10835. name: name,
  10836. description: description,
  10837. briefAnnotation: briefAnnotation,
  10838. typeName: typeName,
  10839. );
  10840. factory AreaPerimeterDTO.fromJson(Map<String, dynamic> map) {
  10841. return AreaPerimeterDTO(
  10842. name: map['Name'],
  10843. description: map['Description'],
  10844. briefAnnotation: map['BriefAnnotation'],
  10845. typeName: map['TypeName'],
  10846. );
  10847. }
  10848. Map<String, dynamic> toJson() {
  10849. final map = super.toJson();
  10850. return map;
  10851. }
  10852. }
  10853. class CircleDTO extends MeasureItemDTO{
  10854. CircleDTO({
  10855. String? name,
  10856. String? description,
  10857. String? briefAnnotation,
  10858. String? typeName,
  10859. }) : super(
  10860. name: name,
  10861. description: description,
  10862. briefAnnotation: briefAnnotation,
  10863. typeName: typeName,
  10864. );
  10865. factory CircleDTO.fromJson(Map<String, dynamic> map) {
  10866. return CircleDTO(
  10867. name: map['Name'],
  10868. description: map['Description'],
  10869. briefAnnotation: map['BriefAnnotation'],
  10870. typeName: map['TypeName'],
  10871. );
  10872. }
  10873. Map<String, dynamic> toJson() {
  10874. final map = super.toJson();
  10875. return map;
  10876. }
  10877. }
  10878. class CurveLengthDTO extends MultiMethodItemDTO{
  10879. CurveLengthDTO({
  10880. String? name,
  10881. String? description,
  10882. String? briefAnnotation,
  10883. String? typeName,
  10884. }) : super(
  10885. name: name,
  10886. description: description,
  10887. briefAnnotation: briefAnnotation,
  10888. typeName: typeName,
  10889. );
  10890. factory CurveLengthDTO.fromJson(Map<String, dynamic> map) {
  10891. return CurveLengthDTO(
  10892. name: map['Name'],
  10893. description: map['Description'],
  10894. briefAnnotation: map['BriefAnnotation'],
  10895. typeName: map['TypeName'],
  10896. );
  10897. }
  10898. Map<String, dynamic> toJson() {
  10899. final map = super.toJson();
  10900. return map;
  10901. }
  10902. }
  10903. class EllipseDTO extends MeasureItemDTO{
  10904. EllipseDTO({
  10905. String? name,
  10906. String? description,
  10907. String? briefAnnotation,
  10908. String? typeName,
  10909. }) : super(
  10910. name: name,
  10911. description: description,
  10912. briefAnnotation: briefAnnotation,
  10913. typeName: typeName,
  10914. );
  10915. factory EllipseDTO.fromJson(Map<String, dynamic> map) {
  10916. return EllipseDTO(
  10917. name: map['Name'],
  10918. description: map['Description'],
  10919. briefAnnotation: map['BriefAnnotation'],
  10920. typeName: map['TypeName'],
  10921. );
  10922. }
  10923. Map<String, dynamic> toJson() {
  10924. final map = super.toJson();
  10925. return map;
  10926. }
  10927. }
  10928. class LocationDTO extends MeasureItemDTO{
  10929. LocationDTO({
  10930. String? name,
  10931. String? description,
  10932. String? briefAnnotation,
  10933. String? typeName,
  10934. }) : super(
  10935. name: name,
  10936. description: description,
  10937. briefAnnotation: briefAnnotation,
  10938. typeName: typeName,
  10939. );
  10940. factory LocationDTO.fromJson(Map<String, dynamic> map) {
  10941. return LocationDTO(
  10942. name: map['Name'],
  10943. description: map['Description'],
  10944. briefAnnotation: map['BriefAnnotation'],
  10945. typeName: map['TypeName'],
  10946. );
  10947. }
  10948. Map<String, dynamic> toJson() {
  10949. final map = super.toJson();
  10950. return map;
  10951. }
  10952. }
  10953. class LWHStraightLineDTO extends MeasureItemDTO{
  10954. LWHStraightLineDTO({
  10955. String? name,
  10956. String? description,
  10957. String? briefAnnotation,
  10958. String? typeName,
  10959. }) : super(
  10960. name: name,
  10961. description: description,
  10962. briefAnnotation: briefAnnotation,
  10963. typeName: typeName,
  10964. );
  10965. factory LWHStraightLineDTO.fromJson(Map<String, dynamic> map) {
  10966. return LWHStraightLineDTO(
  10967. name: map['Name'],
  10968. description: map['Description'],
  10969. briefAnnotation: map['BriefAnnotation'],
  10970. typeName: map['TypeName'],
  10971. );
  10972. }
  10973. Map<String, dynamic> toJson() {
  10974. final map = super.toJson();
  10975. return map;
  10976. }
  10977. }
  10978. class PolylineDTO extends MeasureItemDTO{
  10979. PolylineDTO({
  10980. String? name,
  10981. String? description,
  10982. String? briefAnnotation,
  10983. String? typeName,
  10984. }) : super(
  10985. name: name,
  10986. description: description,
  10987. briefAnnotation: briefAnnotation,
  10988. typeName: typeName,
  10989. );
  10990. factory PolylineDTO.fromJson(Map<String, dynamic> map) {
  10991. return PolylineDTO(
  10992. name: map['Name'],
  10993. description: map['Description'],
  10994. briefAnnotation: map['BriefAnnotation'],
  10995. typeName: map['TypeName'],
  10996. );
  10997. }
  10998. Map<String, dynamic> toJson() {
  10999. final map = super.toJson();
  11000. return map;
  11001. }
  11002. }
  11003. class RectDTO extends MeasureItemDTO{
  11004. RectDTO({
  11005. String? name,
  11006. String? description,
  11007. String? briefAnnotation,
  11008. String? typeName,
  11009. }) : super(
  11010. name: name,
  11011. description: description,
  11012. briefAnnotation: briefAnnotation,
  11013. typeName: typeName,
  11014. );
  11015. factory RectDTO.fromJson(Map<String, dynamic> map) {
  11016. return RectDTO(
  11017. name: map['Name'],
  11018. description: map['Description'],
  11019. briefAnnotation: map['BriefAnnotation'],
  11020. typeName: map['TypeName'],
  11021. );
  11022. }
  11023. Map<String, dynamic> toJson() {
  11024. final map = super.toJson();
  11025. return map;
  11026. }
  11027. }
  11028. class StenosisDTO extends MultiMethodItemDTO{
  11029. StenosisDTO({
  11030. String? name,
  11031. String? description,
  11032. String? briefAnnotation,
  11033. String? typeName,
  11034. }) : super(
  11035. name: name,
  11036. description: description,
  11037. briefAnnotation: briefAnnotation,
  11038. typeName: typeName,
  11039. );
  11040. factory StenosisDTO.fromJson(Map<String, dynamic> map) {
  11041. return StenosisDTO(
  11042. name: map['Name'],
  11043. description: map['Description'],
  11044. briefAnnotation: map['BriefAnnotation'],
  11045. typeName: map['TypeName'],
  11046. );
  11047. }
  11048. Map<String, dynamic> toJson() {
  11049. final map = super.toJson();
  11050. return map;
  11051. }
  11052. }
  11053. class StraightLineDTO extends MeasureItemDTO{
  11054. StraightLineDTO({
  11055. String? name,
  11056. String? description,
  11057. String? briefAnnotation,
  11058. String? typeName,
  11059. }) : super(
  11060. name: name,
  11061. description: description,
  11062. briefAnnotation: briefAnnotation,
  11063. typeName: typeName,
  11064. );
  11065. factory StraightLineDTO.fromJson(Map<String, dynamic> map) {
  11066. return StraightLineDTO(
  11067. name: map['Name'],
  11068. description: map['Description'],
  11069. briefAnnotation: map['BriefAnnotation'],
  11070. typeName: map['TypeName'],
  11071. );
  11072. }
  11073. Map<String, dynamic> toJson() {
  11074. final map = super.toJson();
  11075. return map;
  11076. }
  11077. }
  11078. class VolumeDTO extends MultiMethodItemDTO{
  11079. VolumeDTO({
  11080. String? name,
  11081. String? description,
  11082. String? briefAnnotation,
  11083. String? typeName,
  11084. }) : super(
  11085. name: name,
  11086. description: description,
  11087. briefAnnotation: briefAnnotation,
  11088. typeName: typeName,
  11089. );
  11090. factory VolumeDTO.fromJson(Map<String, dynamic> map) {
  11091. return VolumeDTO(
  11092. name: map['Name'],
  11093. description: map['Description'],
  11094. briefAnnotation: map['BriefAnnotation'],
  11095. typeName: map['TypeName'],
  11096. );
  11097. }
  11098. Map<String, dynamic> toJson() {
  11099. final map = super.toJson();
  11100. return map;
  11101. }
  11102. }
  11103. class CardiacAxisFeatureDTO extends MeasuredFeatureDTO{
  11104. String? logicalName;
  11105. String? logicalMode;
  11106. CardiacAxisFeatureDTO({
  11107. String? typeName,
  11108. this.logicalName,
  11109. this.logicalMode,
  11110. String? creator,
  11111. String? guid,
  11112. bool showChildFeatures = false,
  11113. DateTime? timeStamp,
  11114. bool isAutoCalculated = false,
  11115. List<MeasuredValueDTO >? values,
  11116. List<MeasuredFeatureDTO >? childFeatures,
  11117. }) : super(
  11118. typeName: typeName,
  11119. creator: creator,
  11120. guid: guid,
  11121. showChildFeatures: showChildFeatures,
  11122. timeStamp: timeStamp,
  11123. isAutoCalculated: isAutoCalculated,
  11124. values: values,
  11125. childFeatures: childFeatures,
  11126. );
  11127. factory CardiacAxisFeatureDTO.fromJson(Map<String, dynamic> map) {
  11128. return CardiacAxisFeatureDTO(
  11129. typeName: map['TypeName'],
  11130. logicalName: map['LogicalName'],
  11131. logicalMode: map['LogicalMode'],
  11132. creator: map['Creator'],
  11133. guid: map['Guid'],
  11134. showChildFeatures: map['ShowChildFeatures'],
  11135. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11136. isAutoCalculated: map['IsAutoCalculated'],
  11137. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11138. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11139. );
  11140. }
  11141. Map<String, dynamic> toJson() {
  11142. final map = super.toJson();
  11143. if(logicalName != null)
  11144. map['LogicalName'] = logicalName;
  11145. if(logicalMode != null)
  11146. map['LogicalMode'] = logicalMode;
  11147. return map;
  11148. }
  11149. }
  11150. class CustomCalculatorFeatureDTO extends MeasuredFeatureDTO{
  11151. String? logicalName;
  11152. String? logicalMode;
  11153. CustomCalculatorFeatureDTO({
  11154. String? typeName,
  11155. this.logicalName,
  11156. this.logicalMode,
  11157. String? creator,
  11158. String? guid,
  11159. bool showChildFeatures = false,
  11160. DateTime? timeStamp,
  11161. bool isAutoCalculated = false,
  11162. List<MeasuredValueDTO >? values,
  11163. List<MeasuredFeatureDTO >? childFeatures,
  11164. }) : super(
  11165. typeName: typeName,
  11166. creator: creator,
  11167. guid: guid,
  11168. showChildFeatures: showChildFeatures,
  11169. timeStamp: timeStamp,
  11170. isAutoCalculated: isAutoCalculated,
  11171. values: values,
  11172. childFeatures: childFeatures,
  11173. );
  11174. factory CustomCalculatorFeatureDTO.fromJson(Map<String, dynamic> map) {
  11175. return CustomCalculatorFeatureDTO(
  11176. typeName: map['TypeName'],
  11177. logicalName: map['LogicalName'],
  11178. logicalMode: map['LogicalMode'],
  11179. creator: map['Creator'],
  11180. guid: map['Guid'],
  11181. showChildFeatures: map['ShowChildFeatures'],
  11182. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11183. isAutoCalculated: map['IsAutoCalculated'],
  11184. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11185. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11186. );
  11187. }
  11188. Map<String, dynamic> toJson() {
  11189. final map = super.toJson();
  11190. if(logicalName != null)
  11191. map['LogicalName'] = logicalName;
  11192. if(logicalMode != null)
  11193. map['LogicalMode'] = logicalMode;
  11194. return map;
  11195. }
  11196. }
  11197. class GeometryFeatureDTO extends MeasuredFeatureDTO{
  11198. bool isVisible;
  11199. String? annotation;
  11200. String? briefAnnotation;
  11201. Unit xUnit;
  11202. Unit yUnit;
  11203. bool showAnnotation;
  11204. bool showCalliper;
  11205. List<PointDTO >? points;
  11206. GeometryFeatureDTO({
  11207. this.isVisible = false,
  11208. this.annotation,
  11209. this.briefAnnotation,
  11210. this.xUnit = Unit.None,
  11211. this.yUnit = Unit.None,
  11212. this.showAnnotation = false,
  11213. this.showCalliper = false,
  11214. this.points,
  11215. String? typeName,
  11216. String? creator,
  11217. String? guid,
  11218. bool showChildFeatures = false,
  11219. DateTime? timeStamp,
  11220. bool isAutoCalculated = false,
  11221. List<MeasuredValueDTO >? values,
  11222. List<MeasuredFeatureDTO >? childFeatures,
  11223. }) : super(
  11224. typeName: typeName,
  11225. creator: creator,
  11226. guid: guid,
  11227. showChildFeatures: showChildFeatures,
  11228. timeStamp: timeStamp,
  11229. isAutoCalculated: isAutoCalculated,
  11230. values: values,
  11231. childFeatures: childFeatures,
  11232. );
  11233. factory GeometryFeatureDTO.fromJson(Map<String, dynamic> map) {
  11234. return GeometryFeatureDTO(
  11235. isVisible: map['IsVisible'],
  11236. annotation: map['Annotation'],
  11237. briefAnnotation: map['BriefAnnotation'],
  11238. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11239. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11240. showAnnotation: map['ShowAnnotation'],
  11241. showCalliper: map['ShowCalliper'],
  11242. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11243. typeName: map['TypeName'],
  11244. creator: map['Creator'],
  11245. guid: map['Guid'],
  11246. showChildFeatures: map['ShowChildFeatures'],
  11247. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11248. isAutoCalculated: map['IsAutoCalculated'],
  11249. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11250. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11251. );
  11252. }
  11253. Map<String, dynamic> toJson() {
  11254. final map = super.toJson();
  11255. map['IsVisible'] = isVisible;
  11256. if(annotation != null)
  11257. map['Annotation'] = annotation;
  11258. if(briefAnnotation != null)
  11259. map['BriefAnnotation'] = briefAnnotation;
  11260. map['XUnit'] = xUnit.index;
  11261. map['YUnit'] = yUnit.index;
  11262. map['ShowAnnotation'] = showAnnotation;
  11263. map['ShowCalliper'] = showCalliper;
  11264. if(points != null)
  11265. map['Points'] = points;
  11266. return map;
  11267. }
  11268. }
  11269. class CardiacCycleDTO {
  11270. int index;
  11271. PointDTO? systoleStart;
  11272. PointDTO? diastoleEnd;
  11273. PointDTO? peakSystolic;
  11274. PointDTO? minimumAbsoluteVelocity;
  11275. CardiacCycleDTO({
  11276. this.index = 0,
  11277. this.systoleStart,
  11278. this.diastoleEnd,
  11279. this.peakSystolic,
  11280. this.minimumAbsoluteVelocity,
  11281. });
  11282. factory CardiacCycleDTO.fromJson(Map<String, dynamic> map) {
  11283. return CardiacCycleDTO(
  11284. index: map['Index'],
  11285. systoleStart: map['SystoleStart'] != null ? PointDTO.fromJson(map['SystoleStart']) : null,
  11286. diastoleEnd: map['DiastoleEnd'] != null ? PointDTO.fromJson(map['DiastoleEnd']) : null,
  11287. peakSystolic: map['PeakSystolic'] != null ? PointDTO.fromJson(map['PeakSystolic']) : null,
  11288. minimumAbsoluteVelocity: map['MinimumAbsoluteVelocity'] != null ? PointDTO.fromJson(map['MinimumAbsoluteVelocity']) : null,
  11289. );
  11290. }
  11291. Map<String, dynamic> toJson() {
  11292. final map = Map<String, dynamic>();
  11293. map['Index'] = index;
  11294. if(systoleStart != null)
  11295. map['SystoleStart'] = systoleStart;
  11296. if(diastoleEnd != null)
  11297. map['DiastoleEnd'] = diastoleEnd;
  11298. if(peakSystolic != null)
  11299. map['PeakSystolic'] = peakSystolic;
  11300. if(minimumAbsoluteVelocity != null)
  11301. map['MinimumAbsoluteVelocity'] = minimumAbsoluteVelocity;
  11302. return map;
  11303. }
  11304. }
  11305. class GrowthPercentileDTO {
  11306. int oBTableCategory;
  11307. String? tableAuthor;
  11308. String? measureItem;
  11309. int gAinDays;
  11310. int status;
  11311. double value;
  11312. double tableDataLimitation;
  11313. double zScoreValue;
  11314. int zScoreStatus;
  11315. GrowthPercentileDTO({
  11316. this.oBTableCategory = 0,
  11317. this.tableAuthor,
  11318. this.measureItem,
  11319. this.gAinDays = 0,
  11320. this.status = 0,
  11321. this.value = 0,
  11322. this.tableDataLimitation = 0,
  11323. this.zScoreValue = 0,
  11324. this.zScoreStatus = 0,
  11325. });
  11326. factory GrowthPercentileDTO.fromJson(Map<String, dynamic> map) {
  11327. return GrowthPercentileDTO(
  11328. oBTableCategory: map['OBTableCategory'],
  11329. tableAuthor: map['TableAuthor'],
  11330. measureItem: map['MeasureItem'],
  11331. gAinDays: map['GAinDays'],
  11332. status: map['Status'],
  11333. value: double.parse(map['Value'].toString()),
  11334. tableDataLimitation: double.parse(map['TableDataLimitation'].toString()),
  11335. zScoreValue: double.parse(map['ZScoreValue'].toString()),
  11336. zScoreStatus: map['ZScoreStatus'],
  11337. );
  11338. }
  11339. Map<String, dynamic> toJson() {
  11340. final map = Map<String, dynamic>();
  11341. map['OBTableCategory'] = oBTableCategory;
  11342. if(tableAuthor != null)
  11343. map['TableAuthor'] = tableAuthor;
  11344. if(measureItem != null)
  11345. map['MeasureItem'] = measureItem;
  11346. map['GAinDays'] = gAinDays;
  11347. map['Status'] = status;
  11348. map['Value'] = value;
  11349. map['TableDataLimitation'] = tableDataLimitation;
  11350. map['ZScoreValue'] = zScoreValue;
  11351. map['ZScoreStatus'] = zScoreStatus;
  11352. return map;
  11353. }
  11354. }
  11355. class GrowthAgeDTO {
  11356. int oBTableCategory;
  11357. String? tableAuthor;
  11358. String? measureItem;
  11359. int days;
  11360. int status;
  11361. int minDays;
  11362. int maxDays;
  11363. GrowthAgeDTO({
  11364. this.oBTableCategory = 0,
  11365. this.tableAuthor,
  11366. this.measureItem,
  11367. this.days = 0,
  11368. this.status = 0,
  11369. this.minDays = 0,
  11370. this.maxDays = 0,
  11371. });
  11372. factory GrowthAgeDTO.fromJson(Map<String, dynamic> map) {
  11373. return GrowthAgeDTO(
  11374. oBTableCategory: map['OBTableCategory'],
  11375. tableAuthor: map['TableAuthor'],
  11376. measureItem: map['MeasureItem'],
  11377. days: map['Days'],
  11378. status: map['Status'],
  11379. minDays: map['MinDays'],
  11380. maxDays: map['MaxDays'],
  11381. );
  11382. }
  11383. Map<String, dynamic> toJson() {
  11384. final map = Map<String, dynamic>();
  11385. map['OBTableCategory'] = oBTableCategory;
  11386. if(tableAuthor != null)
  11387. map['TableAuthor'] = tableAuthor;
  11388. if(measureItem != null)
  11389. map['MeasureItem'] = measureItem;
  11390. map['Days'] = days;
  11391. map['Status'] = status;
  11392. map['MinDays'] = minDays;
  11393. map['MaxDays'] = maxDays;
  11394. return map;
  11395. }
  11396. }
  11397. class FetalGrowthIndexDTO {
  11398. GrowthPercentileDTO? percentile;
  11399. GrowthAgeDTO? growthAge;
  11400. DateTime? estimateDueDate;
  11401. FetalGrowthIndexDTO({
  11402. this.percentile,
  11403. this.growthAge,
  11404. this.estimateDueDate,
  11405. });
  11406. factory FetalGrowthIndexDTO.fromJson(Map<String, dynamic> map) {
  11407. return FetalGrowthIndexDTO(
  11408. percentile: map['Percentile'] != null ? GrowthPercentileDTO.fromJson(map['Percentile']) : null,
  11409. growthAge: map['GrowthAge'] != null ? GrowthAgeDTO.fromJson(map['GrowthAge']) : null,
  11410. estimateDueDate: map['EstimateDueDate'] != null ? DateTime.parse(map['EstimateDueDate']) : null,
  11411. );
  11412. }
  11413. Map<String, dynamic> toJson() {
  11414. final map = Map<String, dynamic>();
  11415. if(percentile != null)
  11416. map['Percentile'] = percentile;
  11417. if(growthAge != null)
  11418. map['GrowthAge'] = growthAge;
  11419. if(estimateDueDate != null)
  11420. map['EstimateDueDate'] = JsonRpcUtils.dateFormat(estimateDueDate!);
  11421. return map;
  11422. }
  11423. }
  11424. class FloatValueDTO extends MeasuredValueDTO{
  11425. FetalGrowthIndexDTO? fetalGrowthIndex;
  11426. String? typeName;
  11427. String? name;
  11428. String? description;
  11429. bool worksheetAffinity;
  11430. String? briefDescription;
  11431. String? value;
  11432. Unit unit;
  11433. Unit targetUnit;
  11434. FloatValueDTO({
  11435. this.fetalGrowthIndex,
  11436. this.typeName,
  11437. this.name,
  11438. this.description,
  11439. this.worksheetAffinity = false,
  11440. this.briefDescription,
  11441. this.value,
  11442. this.unit = Unit.None,
  11443. this.targetUnit = Unit.None,
  11444. });
  11445. factory FloatValueDTO.fromJson(Map<String, dynamic> map) {
  11446. return FloatValueDTO(
  11447. fetalGrowthIndex: map['FetalGrowthIndex'] != null ? FetalGrowthIndexDTO.fromJson(map['FetalGrowthIndex']) : null,
  11448. typeName: map['TypeName'],
  11449. name: map['Name'],
  11450. description: map['Description'],
  11451. worksheetAffinity: map['WorksheetAffinity'],
  11452. briefDescription: map['BriefDescription'],
  11453. value: map['Value'],
  11454. unit: Unit.values.firstWhere((e) => e.index == map['Unit']),
  11455. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  11456. );
  11457. }
  11458. Map<String, dynamic> toJson() {
  11459. final map = super.toJson();
  11460. return map;
  11461. }
  11462. }
  11463. class DopplerTraceFeatureDTO extends GeometryFeatureDTO{
  11464. int avgHeartCycle;
  11465. ASETypeEnum traceType;
  11466. List<PointDTO >? maxTraceLine;
  11467. List<CardiacCycleDTO >? cardiacCycles;
  11468. List<FloatValueDTO >? autoMeasureValues;
  11469. DopplerTraceFeatureDTO({
  11470. String? typeName,
  11471. this.avgHeartCycle = 0,
  11472. this.traceType = ASETypeEnum.Off,
  11473. this.maxTraceLine,
  11474. this.cardiacCycles,
  11475. this.autoMeasureValues,
  11476. bool isVisible = false,
  11477. String? annotation,
  11478. String? briefAnnotation,
  11479. Unit xUnit = Unit.None,
  11480. Unit yUnit = Unit.None,
  11481. bool showAnnotation = false,
  11482. bool showCalliper = false,
  11483. List<PointDTO >? points,
  11484. String? creator,
  11485. String? guid,
  11486. bool showChildFeatures = false,
  11487. DateTime? timeStamp,
  11488. bool isAutoCalculated = false,
  11489. List<MeasuredValueDTO >? values,
  11490. List<MeasuredFeatureDTO >? childFeatures,
  11491. }) : super(
  11492. isVisible: isVisible,
  11493. annotation: annotation,
  11494. briefAnnotation: briefAnnotation,
  11495. xUnit: xUnit,
  11496. yUnit: yUnit,
  11497. showAnnotation: showAnnotation,
  11498. showCalliper: showCalliper,
  11499. points: points,
  11500. typeName: typeName,
  11501. creator: creator,
  11502. guid: guid,
  11503. showChildFeatures: showChildFeatures,
  11504. timeStamp: timeStamp,
  11505. isAutoCalculated: isAutoCalculated,
  11506. values: values,
  11507. childFeatures: childFeatures,
  11508. );
  11509. factory DopplerTraceFeatureDTO.fromJson(Map<String, dynamic> map) {
  11510. return DopplerTraceFeatureDTO(
  11511. typeName: map['TypeName'],
  11512. avgHeartCycle: map['AvgHeartCycle'],
  11513. traceType: ASETypeEnum.values.firstWhere((e) => e.index == map['TraceType']),
  11514. maxTraceLine: map['MaxTraceLine'] != null ? (map['MaxTraceLine'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11515. cardiacCycles: map['CardiacCycles'] != null ? (map['CardiacCycles'] as List).map((e)=>CardiacCycleDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11516. autoMeasureValues: map['AutoMeasureValues'] != null ? (map['AutoMeasureValues'] as List).map((e)=>FloatValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11517. isVisible: map['IsVisible'],
  11518. annotation: map['Annotation'],
  11519. briefAnnotation: map['BriefAnnotation'],
  11520. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11521. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11522. showAnnotation: map['ShowAnnotation'],
  11523. showCalliper: map['ShowCalliper'],
  11524. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11525. creator: map['Creator'],
  11526. guid: map['Guid'],
  11527. showChildFeatures: map['ShowChildFeatures'],
  11528. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11529. isAutoCalculated: map['IsAutoCalculated'],
  11530. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11531. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11532. );
  11533. }
  11534. Map<String, dynamic> toJson() {
  11535. final map = super.toJson();
  11536. map['AvgHeartCycle'] = avgHeartCycle;
  11537. map['TraceType'] = traceType.index;
  11538. if(maxTraceLine != null)
  11539. map['MaxTraceLine'] = maxTraceLine;
  11540. if(cardiacCycles != null)
  11541. map['CardiacCycles'] = cardiacCycles;
  11542. if(autoMeasureValues != null)
  11543. map['AutoMeasureValues'] = autoMeasureValues;
  11544. return map;
  11545. }
  11546. }
  11547. class EllipseFeatureDTO extends GeometryFeatureDTO{
  11548. double angle;
  11549. EllipseFeatureDTO({
  11550. String? typeName,
  11551. this.angle = 0,
  11552. bool isVisible = false,
  11553. String? annotation,
  11554. String? briefAnnotation,
  11555. Unit xUnit = Unit.None,
  11556. Unit yUnit = Unit.None,
  11557. bool showAnnotation = false,
  11558. bool showCalliper = false,
  11559. List<PointDTO >? points,
  11560. String? creator,
  11561. String? guid,
  11562. bool showChildFeatures = false,
  11563. DateTime? timeStamp,
  11564. bool isAutoCalculated = false,
  11565. List<MeasuredValueDTO >? values,
  11566. List<MeasuredFeatureDTO >? childFeatures,
  11567. }) : super(
  11568. isVisible: isVisible,
  11569. annotation: annotation,
  11570. briefAnnotation: briefAnnotation,
  11571. xUnit: xUnit,
  11572. yUnit: yUnit,
  11573. showAnnotation: showAnnotation,
  11574. showCalliper: showCalliper,
  11575. points: points,
  11576. typeName: typeName,
  11577. creator: creator,
  11578. guid: guid,
  11579. showChildFeatures: showChildFeatures,
  11580. timeStamp: timeStamp,
  11581. isAutoCalculated: isAutoCalculated,
  11582. values: values,
  11583. childFeatures: childFeatures,
  11584. );
  11585. factory EllipseFeatureDTO.fromJson(Map<String, dynamic> map) {
  11586. return EllipseFeatureDTO(
  11587. typeName: map['TypeName'],
  11588. angle: double.parse(map['Angle'].toString()),
  11589. isVisible: map['IsVisible'],
  11590. annotation: map['Annotation'],
  11591. briefAnnotation: map['BriefAnnotation'],
  11592. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11593. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11594. showAnnotation: map['ShowAnnotation'],
  11595. showCalliper: map['ShowCalliper'],
  11596. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11597. creator: map['Creator'],
  11598. guid: map['Guid'],
  11599. showChildFeatures: map['ShowChildFeatures'],
  11600. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11601. isAutoCalculated: map['IsAutoCalculated'],
  11602. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11603. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11604. );
  11605. }
  11606. Map<String, dynamic> toJson() {
  11607. final map = super.toJson();
  11608. map['Angle'] = angle;
  11609. return map;
  11610. }
  11611. }
  11612. class AutoMeasureGeometryDTO {
  11613. int index;
  11614. List<PointDTO >? points;
  11615. AutoMeasureGeometryDTO({
  11616. this.index = 0,
  11617. this.points,
  11618. });
  11619. factory AutoMeasureGeometryDTO.fromJson(Map<String, dynamic> map) {
  11620. return AutoMeasureGeometryDTO(
  11621. index: map['Index'],
  11622. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11623. );
  11624. }
  11625. Map<String, dynamic> toJson() {
  11626. final map = Map<String, dynamic>();
  11627. map['Index'] = index;
  11628. if(points != null)
  11629. map['Points'] = points;
  11630. return map;
  11631. }
  11632. }
  11633. class FollicleShapeFeatureDTO extends GeometryFeatureDTO{
  11634. List<AutoMeasureGeometryDTO >? geometries;
  11635. FollicleShapeFeatureDTO({
  11636. String? typeName,
  11637. this.geometries,
  11638. bool isVisible = false,
  11639. String? annotation,
  11640. String? briefAnnotation,
  11641. Unit xUnit = Unit.None,
  11642. Unit yUnit = Unit.None,
  11643. bool showAnnotation = false,
  11644. bool showCalliper = false,
  11645. List<PointDTO >? points,
  11646. String? creator,
  11647. String? guid,
  11648. bool showChildFeatures = false,
  11649. DateTime? timeStamp,
  11650. bool isAutoCalculated = false,
  11651. List<MeasuredValueDTO >? values,
  11652. List<MeasuredFeatureDTO >? childFeatures,
  11653. }) : super(
  11654. isVisible: isVisible,
  11655. annotation: annotation,
  11656. briefAnnotation: briefAnnotation,
  11657. xUnit: xUnit,
  11658. yUnit: yUnit,
  11659. showAnnotation: showAnnotation,
  11660. showCalliper: showCalliper,
  11661. points: points,
  11662. typeName: typeName,
  11663. creator: creator,
  11664. guid: guid,
  11665. showChildFeatures: showChildFeatures,
  11666. timeStamp: timeStamp,
  11667. isAutoCalculated: isAutoCalculated,
  11668. values: values,
  11669. childFeatures: childFeatures,
  11670. );
  11671. factory FollicleShapeFeatureDTO.fromJson(Map<String, dynamic> map) {
  11672. return FollicleShapeFeatureDTO(
  11673. typeName: map['TypeName'],
  11674. geometries: map['Geometries'] != null ? (map['Geometries'] as List).map((e)=>AutoMeasureGeometryDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11675. isVisible: map['IsVisible'],
  11676. annotation: map['Annotation'],
  11677. briefAnnotation: map['BriefAnnotation'],
  11678. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11679. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11680. showAnnotation: map['ShowAnnotation'],
  11681. showCalliper: map['ShowCalliper'],
  11682. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11683. creator: map['Creator'],
  11684. guid: map['Guid'],
  11685. showChildFeatures: map['ShowChildFeatures'],
  11686. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11687. isAutoCalculated: map['IsAutoCalculated'],
  11688. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11689. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11690. );
  11691. }
  11692. Map<String, dynamic> toJson() {
  11693. final map = super.toJson();
  11694. if(geometries != null)
  11695. map['Geometries'] = geometries;
  11696. return map;
  11697. }
  11698. }
  11699. class LocationFeatureDTO extends GeometryFeatureDTO{
  11700. LocationFeatureDTO({
  11701. String? typeName,
  11702. bool isVisible = false,
  11703. String? annotation,
  11704. String? briefAnnotation,
  11705. Unit xUnit = Unit.None,
  11706. Unit yUnit = Unit.None,
  11707. bool showAnnotation = false,
  11708. bool showCalliper = false,
  11709. List<PointDTO >? points,
  11710. String? creator,
  11711. String? guid,
  11712. bool showChildFeatures = false,
  11713. DateTime? timeStamp,
  11714. bool isAutoCalculated = false,
  11715. List<MeasuredValueDTO >? values,
  11716. List<MeasuredFeatureDTO >? childFeatures,
  11717. }) : super(
  11718. isVisible: isVisible,
  11719. annotation: annotation,
  11720. briefAnnotation: briefAnnotation,
  11721. xUnit: xUnit,
  11722. yUnit: yUnit,
  11723. showAnnotation: showAnnotation,
  11724. showCalliper: showCalliper,
  11725. points: points,
  11726. typeName: typeName,
  11727. creator: creator,
  11728. guid: guid,
  11729. showChildFeatures: showChildFeatures,
  11730. timeStamp: timeStamp,
  11731. isAutoCalculated: isAutoCalculated,
  11732. values: values,
  11733. childFeatures: childFeatures,
  11734. );
  11735. factory LocationFeatureDTO.fromJson(Map<String, dynamic> map) {
  11736. return LocationFeatureDTO(
  11737. typeName: map['TypeName'],
  11738. isVisible: map['IsVisible'],
  11739. annotation: map['Annotation'],
  11740. briefAnnotation: map['BriefAnnotation'],
  11741. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11742. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11743. showAnnotation: map['ShowAnnotation'],
  11744. showCalliper: map['ShowCalliper'],
  11745. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11746. creator: map['Creator'],
  11747. guid: map['Guid'],
  11748. showChildFeatures: map['ShowChildFeatures'],
  11749. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11750. isAutoCalculated: map['IsAutoCalculated'],
  11751. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11752. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11753. );
  11754. }
  11755. Map<String, dynamic> toJson() {
  11756. final map = super.toJson();
  11757. return map;
  11758. }
  11759. }
  11760. class RayFeatureDTO extends LocationFeatureDTO{
  11761. bool isReverse;
  11762. double angle;
  11763. RayFeatureDTO({
  11764. String? typeName,
  11765. this.isReverse = false,
  11766. this.angle = 0,
  11767. bool isVisible = false,
  11768. String? annotation,
  11769. String? briefAnnotation,
  11770. Unit xUnit = Unit.None,
  11771. Unit yUnit = Unit.None,
  11772. bool showAnnotation = false,
  11773. bool showCalliper = false,
  11774. List<PointDTO >? points,
  11775. String? creator,
  11776. String? guid,
  11777. bool showChildFeatures = false,
  11778. DateTime? timeStamp,
  11779. bool isAutoCalculated = false,
  11780. List<MeasuredValueDTO >? values,
  11781. List<MeasuredFeatureDTO >? childFeatures,
  11782. }) : super(
  11783. typeName: typeName,
  11784. isVisible: isVisible,
  11785. annotation: annotation,
  11786. briefAnnotation: briefAnnotation,
  11787. xUnit: xUnit,
  11788. yUnit: yUnit,
  11789. showAnnotation: showAnnotation,
  11790. showCalliper: showCalliper,
  11791. points: points,
  11792. creator: creator,
  11793. guid: guid,
  11794. showChildFeatures: showChildFeatures,
  11795. timeStamp: timeStamp,
  11796. isAutoCalculated: isAutoCalculated,
  11797. values: values,
  11798. childFeatures: childFeatures,
  11799. );
  11800. factory RayFeatureDTO.fromJson(Map<String, dynamic> map) {
  11801. return RayFeatureDTO(
  11802. typeName: map['TypeName'],
  11803. isReverse: map['IsReverse'],
  11804. angle: double.parse(map['Angle'].toString()),
  11805. isVisible: map['IsVisible'],
  11806. annotation: map['Annotation'],
  11807. briefAnnotation: map['BriefAnnotation'],
  11808. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11809. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11810. showAnnotation: map['ShowAnnotation'],
  11811. showCalliper: map['ShowCalliper'],
  11812. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11813. creator: map['Creator'],
  11814. guid: map['Guid'],
  11815. showChildFeatures: map['ShowChildFeatures'],
  11816. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11817. isAutoCalculated: map['IsAutoCalculated'],
  11818. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11819. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11820. );
  11821. }
  11822. Map<String, dynamic> toJson() {
  11823. final map = super.toJson();
  11824. map['IsReverse'] = isReverse;
  11825. map['Angle'] = angle;
  11826. return map;
  11827. }
  11828. }
  11829. class ManualTraceFeatureDTO extends GeometryFeatureDTO{
  11830. ManualTraceFeatureDTO({
  11831. String? typeName,
  11832. bool isVisible = false,
  11833. String? annotation,
  11834. String? briefAnnotation,
  11835. Unit xUnit = Unit.None,
  11836. Unit yUnit = Unit.None,
  11837. bool showAnnotation = false,
  11838. bool showCalliper = false,
  11839. List<PointDTO >? points,
  11840. String? creator,
  11841. String? guid,
  11842. bool showChildFeatures = false,
  11843. DateTime? timeStamp,
  11844. bool isAutoCalculated = false,
  11845. List<MeasuredValueDTO >? values,
  11846. List<MeasuredFeatureDTO >? childFeatures,
  11847. }) : super(
  11848. isVisible: isVisible,
  11849. annotation: annotation,
  11850. briefAnnotation: briefAnnotation,
  11851. xUnit: xUnit,
  11852. yUnit: yUnit,
  11853. showAnnotation: showAnnotation,
  11854. showCalliper: showCalliper,
  11855. points: points,
  11856. typeName: typeName,
  11857. creator: creator,
  11858. guid: guid,
  11859. showChildFeatures: showChildFeatures,
  11860. timeStamp: timeStamp,
  11861. isAutoCalculated: isAutoCalculated,
  11862. values: values,
  11863. childFeatures: childFeatures,
  11864. );
  11865. factory ManualTraceFeatureDTO.fromJson(Map<String, dynamic> map) {
  11866. return ManualTraceFeatureDTO(
  11867. typeName: map['TypeName'],
  11868. isVisible: map['IsVisible'],
  11869. annotation: map['Annotation'],
  11870. briefAnnotation: map['BriefAnnotation'],
  11871. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11872. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11873. showAnnotation: map['ShowAnnotation'],
  11874. showCalliper: map['ShowCalliper'],
  11875. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11876. creator: map['Creator'],
  11877. guid: map['Guid'],
  11878. showChildFeatures: map['ShowChildFeatures'],
  11879. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11880. isAutoCalculated: map['IsAutoCalculated'],
  11881. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11882. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11883. );
  11884. }
  11885. Map<String, dynamic> toJson() {
  11886. final map = super.toJson();
  11887. return map;
  11888. }
  11889. }
  11890. class PolyLineFeatureDTO extends MeasuredFeatureDTO{
  11891. bool isClosed;
  11892. double splineTension;
  11893. PolyLineFeatureDTO({
  11894. String? typeName,
  11895. this.isClosed = false,
  11896. this.splineTension = 0,
  11897. String? creator,
  11898. String? guid,
  11899. bool showChildFeatures = false,
  11900. DateTime? timeStamp,
  11901. bool isAutoCalculated = false,
  11902. List<MeasuredValueDTO >? values,
  11903. List<MeasuredFeatureDTO >? childFeatures,
  11904. }) : super(
  11905. typeName: typeName,
  11906. creator: creator,
  11907. guid: guid,
  11908. showChildFeatures: showChildFeatures,
  11909. timeStamp: timeStamp,
  11910. isAutoCalculated: isAutoCalculated,
  11911. values: values,
  11912. childFeatures: childFeatures,
  11913. );
  11914. factory PolyLineFeatureDTO.fromJson(Map<String, dynamic> map) {
  11915. return PolyLineFeatureDTO(
  11916. typeName: map['TypeName'],
  11917. isClosed: map['IsClosed'],
  11918. splineTension: double.parse(map['SplineTension'].toString()),
  11919. creator: map['Creator'],
  11920. guid: map['Guid'],
  11921. showChildFeatures: map['ShowChildFeatures'],
  11922. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11923. isAutoCalculated: map['IsAutoCalculated'],
  11924. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11925. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11926. );
  11927. }
  11928. Map<String, dynamic> toJson() {
  11929. final map = super.toJson();
  11930. map['IsClosed'] = isClosed;
  11931. map['SplineTension'] = splineTension;
  11932. return map;
  11933. }
  11934. }
  11935. class TraceLineFeatureDTO extends PolyLineFeatureDTO{
  11936. TraceLineFeatureDTO({
  11937. String? typeName,
  11938. bool isClosed = false,
  11939. double splineTension = 0,
  11940. String? creator,
  11941. String? guid,
  11942. bool showChildFeatures = false,
  11943. DateTime? timeStamp,
  11944. bool isAutoCalculated = false,
  11945. List<MeasuredValueDTO >? values,
  11946. List<MeasuredFeatureDTO >? childFeatures,
  11947. }) : super(
  11948. typeName: typeName,
  11949. isClosed: isClosed,
  11950. splineTension: splineTension,
  11951. creator: creator,
  11952. guid: guid,
  11953. showChildFeatures: showChildFeatures,
  11954. timeStamp: timeStamp,
  11955. isAutoCalculated: isAutoCalculated,
  11956. values: values,
  11957. childFeatures: childFeatures,
  11958. );
  11959. factory TraceLineFeatureDTO.fromJson(Map<String, dynamic> map) {
  11960. return TraceLineFeatureDTO(
  11961. typeName: map['TypeName'],
  11962. isClosed: map['IsClosed'],
  11963. splineTension: double.parse(map['SplineTension'].toString()),
  11964. creator: map['Creator'],
  11965. guid: map['Guid'],
  11966. showChildFeatures: map['ShowChildFeatures'],
  11967. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11968. isAutoCalculated: map['IsAutoCalculated'],
  11969. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11970. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11971. );
  11972. }
  11973. Map<String, dynamic> toJson() {
  11974. final map = super.toJson();
  11975. return map;
  11976. }
  11977. }
  11978. class SimpsonPathFeatureDTO extends TraceLineFeatureDTO{
  11979. PointDTO? centerLineMovablePoint;
  11980. SimpsonPathFeatureDTO({
  11981. String? typeName,
  11982. this.centerLineMovablePoint,
  11983. bool isClosed = false,
  11984. double splineTension = 0,
  11985. String? creator,
  11986. String? guid,
  11987. bool showChildFeatures = false,
  11988. DateTime? timeStamp,
  11989. bool isAutoCalculated = false,
  11990. List<MeasuredValueDTO >? values,
  11991. List<MeasuredFeatureDTO >? childFeatures,
  11992. }) : super(
  11993. typeName: typeName,
  11994. isClosed: isClosed,
  11995. splineTension: splineTension,
  11996. creator: creator,
  11997. guid: guid,
  11998. showChildFeatures: showChildFeatures,
  11999. timeStamp: timeStamp,
  12000. isAutoCalculated: isAutoCalculated,
  12001. values: values,
  12002. childFeatures: childFeatures,
  12003. );
  12004. factory SimpsonPathFeatureDTO.fromJson(Map<String, dynamic> map) {
  12005. return SimpsonPathFeatureDTO(
  12006. typeName: map['TypeName'],
  12007. centerLineMovablePoint: map['CenterLineMovablePoint'] != null ? PointDTO.fromJson(map['CenterLineMovablePoint']) : null,
  12008. isClosed: map['IsClosed'],
  12009. splineTension: double.parse(map['SplineTension'].toString()),
  12010. creator: map['Creator'],
  12011. guid: map['Guid'],
  12012. showChildFeatures: map['ShowChildFeatures'],
  12013. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  12014. isAutoCalculated: map['IsAutoCalculated'],
  12015. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12016. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12017. );
  12018. }
  12019. Map<String, dynamic> toJson() {
  12020. final map = super.toJson();
  12021. if(centerLineMovablePoint != null)
  12022. map['CenterLineMovablePoint'] = centerLineMovablePoint;
  12023. return map;
  12024. }
  12025. }
  12026. class RectFeatureDTO extends GeometryFeatureDTO{
  12027. bool showRootFeature;
  12028. List<MeasuredFeatureDTO >? autoLines;
  12029. RectFeatureDTO({
  12030. String? typeName,
  12031. this.showRootFeature = false,
  12032. this.autoLines,
  12033. bool isVisible = false,
  12034. String? annotation,
  12035. String? briefAnnotation,
  12036. Unit xUnit = Unit.None,
  12037. Unit yUnit = Unit.None,
  12038. bool showAnnotation = false,
  12039. bool showCalliper = false,
  12040. List<PointDTO >? points,
  12041. String? creator,
  12042. String? guid,
  12043. bool showChildFeatures = false,
  12044. DateTime? timeStamp,
  12045. bool isAutoCalculated = false,
  12046. List<MeasuredValueDTO >? values,
  12047. List<MeasuredFeatureDTO >? childFeatures,
  12048. }) : super(
  12049. isVisible: isVisible,
  12050. annotation: annotation,
  12051. briefAnnotation: briefAnnotation,
  12052. xUnit: xUnit,
  12053. yUnit: yUnit,
  12054. showAnnotation: showAnnotation,
  12055. showCalliper: showCalliper,
  12056. points: points,
  12057. typeName: typeName,
  12058. creator: creator,
  12059. guid: guid,
  12060. showChildFeatures: showChildFeatures,
  12061. timeStamp: timeStamp,
  12062. isAutoCalculated: isAutoCalculated,
  12063. values: values,
  12064. childFeatures: childFeatures,
  12065. );
  12066. factory RectFeatureDTO.fromJson(Map<String, dynamic> map) {
  12067. return RectFeatureDTO(
  12068. typeName: map['TypeName'],
  12069. showRootFeature: map['ShowRootFeature'],
  12070. autoLines: map['AutoLines'] != null ? (map['AutoLines'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12071. isVisible: map['IsVisible'],
  12072. annotation: map['Annotation'],
  12073. briefAnnotation: map['BriefAnnotation'],
  12074. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  12075. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  12076. showAnnotation: map['ShowAnnotation'],
  12077. showCalliper: map['ShowCalliper'],
  12078. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12079. creator: map['Creator'],
  12080. guid: map['Guid'],
  12081. showChildFeatures: map['ShowChildFeatures'],
  12082. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  12083. isAutoCalculated: map['IsAutoCalculated'],
  12084. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12085. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12086. );
  12087. }
  12088. Map<String, dynamic> toJson() {
  12089. final map = super.toJson();
  12090. map['ShowRootFeature'] = showRootFeature;
  12091. if(autoLines != null)
  12092. map['AutoLines'] = autoLines;
  12093. return map;
  12094. }
  12095. }
  12096. class FollicleRectFeatureDTO extends RectFeatureDTO{
  12097. FollicleRectFeatureDTO({
  12098. String? typeName,
  12099. bool showRootFeature = false,
  12100. List<MeasuredFeatureDTO >? autoLines,
  12101. bool isVisible = false,
  12102. String? annotation,
  12103. String? briefAnnotation,
  12104. Unit xUnit = Unit.None,
  12105. Unit yUnit = Unit.None,
  12106. bool showAnnotation = false,
  12107. bool showCalliper = false,
  12108. List<PointDTO >? points,
  12109. String? creator,
  12110. String? guid,
  12111. bool showChildFeatures = false,
  12112. DateTime? timeStamp,
  12113. bool isAutoCalculated = false,
  12114. List<MeasuredValueDTO >? values,
  12115. List<MeasuredFeatureDTO >? childFeatures,
  12116. }) : super(
  12117. typeName: typeName,
  12118. showRootFeature: showRootFeature,
  12119. autoLines: autoLines,
  12120. isVisible: isVisible,
  12121. annotation: annotation,
  12122. briefAnnotation: briefAnnotation,
  12123. xUnit: xUnit,
  12124. yUnit: yUnit,
  12125. showAnnotation: showAnnotation,
  12126. showCalliper: showCalliper,
  12127. points: points,
  12128. creator: creator,
  12129. guid: guid,
  12130. showChildFeatures: showChildFeatures,
  12131. timeStamp: timeStamp,
  12132. isAutoCalculated: isAutoCalculated,
  12133. values: values,
  12134. childFeatures: childFeatures,
  12135. );
  12136. factory FollicleRectFeatureDTO.fromJson(Map<String, dynamic> map) {
  12137. return FollicleRectFeatureDTO(
  12138. typeName: map['TypeName'],
  12139. showRootFeature: map['ShowRootFeature'],
  12140. autoLines: map['AutoLines'] != null ? (map['AutoLines'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12141. isVisible: map['IsVisible'],
  12142. annotation: map['Annotation'],
  12143. briefAnnotation: map['BriefAnnotation'],
  12144. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  12145. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  12146. showAnnotation: map['ShowAnnotation'],
  12147. showCalliper: map['ShowCalliper'],
  12148. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12149. creator: map['Creator'],
  12150. guid: map['Guid'],
  12151. showChildFeatures: map['ShowChildFeatures'],
  12152. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  12153. isAutoCalculated: map['IsAutoCalculated'],
  12154. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12155. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12156. );
  12157. }
  12158. Map<String, dynamic> toJson() {
  12159. final map = super.toJson();
  12160. return map;
  12161. }
  12162. }
  12163. class StraightLineFeatureDTO extends GeometryFeatureDTO{
  12164. StraightLineShapeEnum shapeType;
  12165. bool useDashLine;
  12166. StraightLineFeatureDTO({
  12167. String? typeName,
  12168. this.shapeType = StraightLineShapeEnum.StraightLine,
  12169. this.useDashLine = false,
  12170. bool isVisible = false,
  12171. String? annotation,
  12172. String? briefAnnotation,
  12173. Unit xUnit = Unit.None,
  12174. Unit yUnit = Unit.None,
  12175. bool showAnnotation = false,
  12176. bool showCalliper = false,
  12177. List<PointDTO >? points,
  12178. String? creator,
  12179. String? guid,
  12180. bool showChildFeatures = false,
  12181. DateTime? timeStamp,
  12182. bool isAutoCalculated = false,
  12183. List<MeasuredValueDTO >? values,
  12184. List<MeasuredFeatureDTO >? childFeatures,
  12185. }) : super(
  12186. isVisible: isVisible,
  12187. annotation: annotation,
  12188. briefAnnotation: briefAnnotation,
  12189. xUnit: xUnit,
  12190. yUnit: yUnit,
  12191. showAnnotation: showAnnotation,
  12192. showCalliper: showCalliper,
  12193. points: points,
  12194. typeName: typeName,
  12195. creator: creator,
  12196. guid: guid,
  12197. showChildFeatures: showChildFeatures,
  12198. timeStamp: timeStamp,
  12199. isAutoCalculated: isAutoCalculated,
  12200. values: values,
  12201. childFeatures: childFeatures,
  12202. );
  12203. factory StraightLineFeatureDTO.fromJson(Map<String, dynamic> map) {
  12204. return StraightLineFeatureDTO(
  12205. typeName: map['TypeName'],
  12206. shapeType: StraightLineShapeEnum.values.firstWhere((e) => e.index == map['ShapeType']),
  12207. useDashLine: map['UseDashLine'],
  12208. isVisible: map['IsVisible'],
  12209. annotation: map['Annotation'],
  12210. briefAnnotation: map['BriefAnnotation'],
  12211. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  12212. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  12213. showAnnotation: map['ShowAnnotation'],
  12214. showCalliper: map['ShowCalliper'],
  12215. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12216. creator: map['Creator'],
  12217. guid: map['Guid'],
  12218. showChildFeatures: map['ShowChildFeatures'],
  12219. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  12220. isAutoCalculated: map['IsAutoCalculated'],
  12221. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12222. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12223. );
  12224. }
  12225. Map<String, dynamic> toJson() {
  12226. final map = super.toJson();
  12227. map['ShapeType'] = shapeType.index;
  12228. map['UseDashLine'] = useDashLine;
  12229. return map;
  12230. }
  12231. }
  12232. class VasPlaqueSplitterFeatureDTO extends GeometryFeatureDTO{
  12233. int maxZoneCount;
  12234. int currentZoneCount;
  12235. int angle;
  12236. List<PointDTO >? splitterLinesPoints;
  12237. VasPlaqueSplitterFeatureDTO({
  12238. String? typeName,
  12239. this.maxZoneCount = 0,
  12240. this.currentZoneCount = 0,
  12241. this.angle = 0,
  12242. bool isVisible = false,
  12243. this.splitterLinesPoints,
  12244. String? annotation,
  12245. String? briefAnnotation,
  12246. Unit xUnit = Unit.None,
  12247. Unit yUnit = Unit.None,
  12248. bool showAnnotation = false,
  12249. bool showCalliper = false,
  12250. List<PointDTO >? points,
  12251. String? creator,
  12252. String? guid,
  12253. bool showChildFeatures = false,
  12254. DateTime? timeStamp,
  12255. bool isAutoCalculated = false,
  12256. List<MeasuredValueDTO >? values,
  12257. List<MeasuredFeatureDTO >? childFeatures,
  12258. }) : super(
  12259. isVisible: isVisible,
  12260. annotation: annotation,
  12261. briefAnnotation: briefAnnotation,
  12262. xUnit: xUnit,
  12263. yUnit: yUnit,
  12264. showAnnotation: showAnnotation,
  12265. showCalliper: showCalliper,
  12266. points: points,
  12267. typeName: typeName,
  12268. creator: creator,
  12269. guid: guid,
  12270. showChildFeatures: showChildFeatures,
  12271. timeStamp: timeStamp,
  12272. isAutoCalculated: isAutoCalculated,
  12273. values: values,
  12274. childFeatures: childFeatures,
  12275. );
  12276. factory VasPlaqueSplitterFeatureDTO.fromJson(Map<String, dynamic> map) {
  12277. return VasPlaqueSplitterFeatureDTO(
  12278. typeName: map['TypeName'],
  12279. maxZoneCount: map['MaxZoneCount'],
  12280. currentZoneCount: map['CurrentZoneCount'],
  12281. angle: map['Angle'],
  12282. isVisible: map['IsVisible'],
  12283. splitterLinesPoints: map['SplitterLinesPoints'] != null ? (map['SplitterLinesPoints'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12284. annotation: map['Annotation'],
  12285. briefAnnotation: map['BriefAnnotation'],
  12286. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  12287. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  12288. showAnnotation: map['ShowAnnotation'],
  12289. showCalliper: map['ShowCalliper'],
  12290. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12291. creator: map['Creator'],
  12292. guid: map['Guid'],
  12293. showChildFeatures: map['ShowChildFeatures'],
  12294. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  12295. isAutoCalculated: map['IsAutoCalculated'],
  12296. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12297. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12298. );
  12299. }
  12300. Map<String, dynamic> toJson() {
  12301. final map = super.toJson();
  12302. map['MaxZoneCount'] = maxZoneCount;
  12303. map['CurrentZoneCount'] = currentZoneCount;
  12304. map['Angle'] = angle;
  12305. if(splitterLinesPoints != null)
  12306. map['SplitterLinesPoints'] = splitterLinesPoints;
  12307. return map;
  12308. }
  12309. }
  12310. class GrowthNormalRangeDTO {
  12311. String? typeName;
  12312. String? tableAuthor;
  12313. String? measureItem;
  12314. int gAinDays;
  12315. int status;
  12316. double value;
  12317. double minValue;
  12318. double maxValue;
  12319. Unit valueUnit;
  12320. Unit targetUnit;
  12321. GrowthNormalRangeDTO({
  12322. this.typeName,
  12323. this.tableAuthor,
  12324. this.measureItem,
  12325. this.gAinDays = 0,
  12326. this.status = 0,
  12327. this.value = 0,
  12328. this.minValue = 0,
  12329. this.maxValue = 0,
  12330. this.valueUnit = Unit.None,
  12331. this.targetUnit = Unit.None,
  12332. });
  12333. factory GrowthNormalRangeDTO.fromJson(Map<String, dynamic> map) {
  12334. return GrowthNormalRangeDTO(
  12335. typeName: map['TypeName'],
  12336. tableAuthor: map['TableAuthor'],
  12337. measureItem: map['MeasureItem'],
  12338. gAinDays: map['GAinDays'],
  12339. status: map['Status'],
  12340. value: double.parse(map['Value'].toString()),
  12341. minValue: double.parse(map['MinValue'].toString()),
  12342. maxValue: double.parse(map['MaxValue'].toString()),
  12343. valueUnit: Unit.values.firstWhere((e) => e.index == map['ValueUnit']),
  12344. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  12345. );
  12346. }
  12347. Map<String, dynamic> toJson() {
  12348. final map = Map<String, dynamic>();
  12349. if(typeName != null)
  12350. map['TypeName'] = typeName;
  12351. if(tableAuthor != null)
  12352. map['TableAuthor'] = tableAuthor;
  12353. if(measureItem != null)
  12354. map['MeasureItem'] = measureItem;
  12355. map['GAinDays'] = gAinDays;
  12356. map['Status'] = status;
  12357. map['Value'] = value;
  12358. map['MinValue'] = minValue;
  12359. map['MaxValue'] = maxValue;
  12360. map['ValueUnit'] = valueUnit.index;
  12361. map['TargetUnit'] = targetUnit.index;
  12362. return map;
  12363. }
  12364. }
  12365. class EFWRepresentationDTO extends FloatValueDTO{
  12366. EFWRepresentationDTO({
  12367. FetalGrowthIndexDTO? fetalGrowthIndex,
  12368. String? typeName,
  12369. String? name,
  12370. String? description,
  12371. bool worksheetAffinity = false,
  12372. String? briefDescription,
  12373. String? value,
  12374. Unit unit = Unit.None,
  12375. Unit targetUnit = Unit.None,
  12376. }) : super(
  12377. fetalGrowthIndex: fetalGrowthIndex,
  12378. typeName: typeName,
  12379. name: name,
  12380. description: description,
  12381. worksheetAffinity: worksheetAffinity,
  12382. briefDescription: briefDescription,
  12383. value: value,
  12384. unit: unit,
  12385. targetUnit: targetUnit,
  12386. );
  12387. factory EFWRepresentationDTO.fromJson(Map<String, dynamic> map) {
  12388. return EFWRepresentationDTO(
  12389. fetalGrowthIndex: map['FetalGrowthIndex'] != null ? FetalGrowthIndexDTO.fromJson(map['FetalGrowthIndex']) : null,
  12390. typeName: map['TypeName'],
  12391. name: map['Name'],
  12392. description: map['Description'],
  12393. worksheetAffinity: map['WorksheetAffinity'],
  12394. briefDescription: map['BriefDescription'],
  12395. value: map['Value'],
  12396. unit: Unit.values.firstWhere((e) => e.index == map['Unit']),
  12397. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  12398. );
  12399. }
  12400. Map<String, dynamic> toJson() {
  12401. final map = super.toJson();
  12402. return map;
  12403. }
  12404. }
  12405. class AdminExtendInfoDTO extends AdminInfoDTO{
  12406. List<String >? roleNames;
  12407. String? defaultRoleCode;
  12408. String? defaultRoleName;
  12409. bool isLocked;
  12410. AdminExtendInfoDTO({
  12411. this.roleNames,
  12412. this.defaultRoleCode,
  12413. this.defaultRoleName,
  12414. this.isLocked = false,
  12415. String? adminCode,
  12416. String? fatherCode,
  12417. String? adminName,
  12418. String? fullName,
  12419. String? secretPassword,
  12420. String? headImageToken,
  12421. String? licenseKey,
  12422. String? lastIP,
  12423. String? phone,
  12424. String? email,
  12425. List<String >? roleCodes,
  12426. LoginLockInfoDTO? loginLockInfo,
  12427. DateTime? passwordUpdateTime,
  12428. List<String >? passwordRecords,
  12429. List<ClearLogOperateDTO >? clearLogOperateList,
  12430. DateTime? createTime,
  12431. DateTime? updateTime,
  12432. }) : super(
  12433. adminCode: adminCode,
  12434. fatherCode: fatherCode,
  12435. adminName: adminName,
  12436. fullName: fullName,
  12437. secretPassword: secretPassword,
  12438. headImageToken: headImageToken,
  12439. licenseKey: licenseKey,
  12440. lastIP: lastIP,
  12441. phone: phone,
  12442. email: email,
  12443. roleCodes: roleCodes,
  12444. loginLockInfo: loginLockInfo,
  12445. passwordUpdateTime: passwordUpdateTime,
  12446. passwordRecords: passwordRecords,
  12447. clearLogOperateList: clearLogOperateList,
  12448. createTime: createTime,
  12449. updateTime: updateTime,
  12450. );
  12451. factory AdminExtendInfoDTO.fromJson(Map<String, dynamic> map) {
  12452. return AdminExtendInfoDTO(
  12453. roleNames: map['RoleNames'] != null ? map['RoleNames'].cast<String>().toList() : null,
  12454. defaultRoleCode: map['DefaultRoleCode'],
  12455. defaultRoleName: map['DefaultRoleName'],
  12456. isLocked: map['IsLocked'],
  12457. adminCode: map['AdminCode'],
  12458. fatherCode: map['FatherCode'],
  12459. adminName: map['AdminName'],
  12460. fullName: map['FullName'],
  12461. secretPassword: map['SecretPassword'],
  12462. headImageToken: map['HeadImageToken'],
  12463. licenseKey: map['LicenseKey'],
  12464. lastIP: map['LastIP'],
  12465. phone: map['Phone'],
  12466. email: map['Email'],
  12467. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  12468. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  12469. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  12470. passwordRecords: map['PasswordRecords'] != null ? map['PasswordRecords'].cast<String>().toList() : null,
  12471. clearLogOperateList: map['ClearLogOperateList'] != null ? (map['ClearLogOperateList'] as List).map((e)=>ClearLogOperateDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12472. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12473. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12474. );
  12475. }
  12476. Map<String, dynamic> toJson() {
  12477. final map = super.toJson();
  12478. if(roleNames != null)
  12479. map['RoleNames'] = roleNames;
  12480. if(defaultRoleCode != null)
  12481. map['DefaultRoleCode'] = defaultRoleCode;
  12482. if(defaultRoleName != null)
  12483. map['DefaultRoleName'] = defaultRoleName;
  12484. map['IsLocked'] = isLocked;
  12485. return map;
  12486. }
  12487. }
  12488. class AdminLoginResult {
  12489. LoginStateEnum loginState;
  12490. String? token;
  12491. int? lockRemainingTimes;
  12492. bool isDistributedServer;
  12493. bool passwordExpired;
  12494. String? adminName;
  12495. AdminLoginResult({
  12496. this.loginState = LoginStateEnum.Succeed,
  12497. this.token,
  12498. this.lockRemainingTimes,
  12499. this.isDistributedServer = false,
  12500. this.passwordExpired = false,
  12501. this.adminName,
  12502. });
  12503. factory AdminLoginResult.fromJson(Map<String, dynamic> map) {
  12504. return AdminLoginResult(
  12505. loginState: LoginStateEnum.values.firstWhere((e) => e.index == map['LoginState']),
  12506. token: map['Token'],
  12507. lockRemainingTimes: map['LockRemainingTimes'],
  12508. isDistributedServer: map['IsDistributedServer'],
  12509. passwordExpired: map['PasswordExpired'],
  12510. adminName: map['AdminName'],
  12511. );
  12512. }
  12513. Map<String, dynamic> toJson() {
  12514. final map = Map<String, dynamic>();
  12515. map['LoginState'] = loginState.index;
  12516. if(token != null)
  12517. map['Token'] = token;
  12518. if(lockRemainingTimes != null)
  12519. map['LockRemainingTimes'] = lockRemainingTimes;
  12520. map['IsDistributedServer'] = isDistributedServer;
  12521. map['PasswordExpired'] = passwordExpired;
  12522. if(adminName != null)
  12523. map['AdminName'] = adminName;
  12524. return map;
  12525. }
  12526. }
  12527. class WaitDeleteLogBaseDTO {
  12528. int daysAgoList;
  12529. int waitDeleteLogCount;
  12530. WaitDeleteLogBaseDTO({
  12531. this.daysAgoList = 0,
  12532. this.waitDeleteLogCount = 0,
  12533. });
  12534. factory WaitDeleteLogBaseDTO.fromJson(Map<String, dynamic> map) {
  12535. return WaitDeleteLogBaseDTO(
  12536. daysAgoList: map['DaysAgoList'],
  12537. waitDeleteLogCount: map['WaitDeleteLogCount'],
  12538. );
  12539. }
  12540. Map<String, dynamic> toJson() {
  12541. final map = Map<String, dynamic>();
  12542. map['DaysAgoList'] = daysAgoList;
  12543. map['WaitDeleteLogCount'] = waitDeleteLogCount;
  12544. return map;
  12545. }
  12546. }
  12547. class WaitDeleteLogsDTO {
  12548. List<WaitDeleteLogBaseDTO >? waitDeleteLogs;
  12549. int daysAgo;
  12550. String? requestServerHost;
  12551. DateTime? lastClearTime;
  12552. DateTime? lastClearOperateTime;
  12553. WaitDeleteLogsDTO({
  12554. this.waitDeleteLogs,
  12555. this.daysAgo = 0,
  12556. this.requestServerHost,
  12557. this.lastClearTime,
  12558. this.lastClearOperateTime,
  12559. });
  12560. factory WaitDeleteLogsDTO.fromJson(Map<String, dynamic> map) {
  12561. return WaitDeleteLogsDTO(
  12562. waitDeleteLogs: map['WaitDeleteLogs'] != null ? (map['WaitDeleteLogs'] as List).map((e)=>WaitDeleteLogBaseDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12563. daysAgo: map['DaysAgo'],
  12564. requestServerHost: map['RequestServerHost'],
  12565. lastClearTime: map['LastClearTime'] != null ? DateTime.parse(map['LastClearTime']) : null,
  12566. lastClearOperateTime: map['LastClearOperateTime'] != null ? DateTime.parse(map['LastClearOperateTime']) : null,
  12567. );
  12568. }
  12569. Map<String, dynamic> toJson() {
  12570. final map = Map<String, dynamic>();
  12571. if(waitDeleteLogs != null)
  12572. map['WaitDeleteLogs'] = waitDeleteLogs;
  12573. map['DaysAgo'] = daysAgo;
  12574. if(requestServerHost != null)
  12575. map['RequestServerHost'] = requestServerHost;
  12576. if(lastClearTime != null)
  12577. map['LastClearTime'] = JsonRpcUtils.dateFormat(lastClearTime!);
  12578. if(lastClearOperateTime != null)
  12579. map['LastClearOperateTime'] = JsonRpcUtils.dateFormat(lastClearOperateTime!);
  12580. return map;
  12581. }
  12582. }
  12583. class ManageAdminFeatureInfoDTO {
  12584. List<String >? featureCodeList;
  12585. ManageAdminFeatureInfoDTO({
  12586. this.featureCodeList,
  12587. });
  12588. factory ManageAdminFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  12589. return ManageAdminFeatureInfoDTO(
  12590. featureCodeList: map['FeatureCodeList'] != null ? map['FeatureCodeList'].cast<String>().toList() : null,
  12591. );
  12592. }
  12593. Map<String, dynamic> toJson() {
  12594. final map = Map<String, dynamic>();
  12595. if(featureCodeList != null)
  12596. map['FeatureCodeList'] = featureCodeList;
  12597. return map;
  12598. }
  12599. }
  12600. class FeatureDetail {
  12601. String? id;
  12602. FeatureDetail({
  12603. this.id,
  12604. });
  12605. factory FeatureDetail.fromJson(Map<String, dynamic> map) {
  12606. return FeatureDetail(
  12607. id: map['Id'],
  12608. );
  12609. }
  12610. Map<String, dynamic> toJson() {
  12611. final map = Map<String, dynamic>();
  12612. if(id != null)
  12613. map['Id'] = id;
  12614. return map;
  12615. }
  12616. }
  12617. class ManageAdminRoleInfoDTO extends AdminRoleDTO{
  12618. List<FeatureDetail >? featureList;
  12619. ManageAdminRoleInfoDTO({
  12620. this.featureList,
  12621. String? adminGroupCode,
  12622. int adminNum = 0,
  12623. String? roleCode,
  12624. String? roleName,
  12625. String? description,
  12626. List<UserRoleLanguageConfigDTO >? languageConfigs,
  12627. DateTime? createTime,
  12628. DateTime? updateTime,
  12629. }) : super(
  12630. adminGroupCode: adminGroupCode,
  12631. adminNum: adminNum,
  12632. roleCode: roleCode,
  12633. roleName: roleName,
  12634. description: description,
  12635. languageConfigs: languageConfigs,
  12636. createTime: createTime,
  12637. updateTime: updateTime,
  12638. );
  12639. factory ManageAdminRoleInfoDTO.fromJson(Map<String, dynamic> map) {
  12640. return ManageAdminRoleInfoDTO(
  12641. featureList: map['FeatureList'] != null ? (map['FeatureList'] as List).map((e)=>FeatureDetail.fromJson(e as Map<String,dynamic>)).toList() : null,
  12642. adminGroupCode: map['AdminGroupCode'],
  12643. adminNum: map['AdminNum'],
  12644. roleCode: map['RoleCode'],
  12645. roleName: map['RoleName'],
  12646. description: map['Description'],
  12647. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12648. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12649. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12650. );
  12651. }
  12652. Map<String, dynamic> toJson() {
  12653. final map = super.toJson();
  12654. if(featureList != null)
  12655. map['FeatureList'] = featureList;
  12656. return map;
  12657. }
  12658. }
  12659. class ManageCreateProductDTO extends CreateProductDTO{
  12660. ManageCreateProductDTO({
  12661. String? productCode,
  12662. DateTime? createTime,
  12663. DateTime? updateTime,
  12664. }) : super(
  12665. productCode: productCode,
  12666. createTime: createTime,
  12667. updateTime: updateTime,
  12668. );
  12669. factory ManageCreateProductDTO.fromJson(Map<String, dynamic> map) {
  12670. return ManageCreateProductDTO(
  12671. productCode: map['ProductCode'],
  12672. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12673. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12674. );
  12675. }
  12676. Map<String, dynamic> toJson() {
  12677. final map = super.toJson();
  12678. return map;
  12679. }
  12680. }
  12681. class ManageDeviceInfoDTO extends DeviceInfoDTO{
  12682. String? hospitalName;
  12683. String? departmentName;
  12684. String? directorName;
  12685. String? adminName;
  12686. String? shareUserNum;
  12687. String? deviceModelName;
  12688. List<DictionaryLanguageConfigDTO >? languageConfigs;
  12689. ManageDeviceInfoDTO({
  12690. this.hospitalName,
  12691. this.departmentName,
  12692. this.directorName,
  12693. this.adminName,
  12694. this.shareUserNum,
  12695. this.deviceModelName,
  12696. this.languageConfigs,
  12697. String? deviceCode,
  12698. String? serialNumber,
  12699. String? password,
  12700. String? name,
  12701. String? description,
  12702. String? deviceModel,
  12703. String? deviceType,
  12704. String? headPicUrl,
  12705. String? deviceSoftwareVersion,
  12706. String? sDKSoftwareVersion,
  12707. String? organizationCode,
  12708. String? departmentCode,
  12709. String? shortCode,
  12710. bool isAutoShared = false,
  12711. bool isEncryptedShow = false,
  12712. DateTime? lastLoginTime,
  12713. String? systemVersion,
  12714. String? cPUModel,
  12715. String? systemLanguage,
  12716. List<String >? diagnosisModules,
  12717. List<String >? reportPosterCodes,
  12718. bool mergedChannel = false,
  12719. int mergedVideoOutputWidth = 0,
  12720. int mergedVideoOutputHeight = 0,
  12721. List<VideoDeviceDTO >? videoDeviceInfos,
  12722. DownloadModeSettingEnum downloadModeSetting = DownloadModeSettingEnum.Auto,
  12723. bool liveOpened = false,
  12724. DateTime? createTime,
  12725. DateTime? updateTime,
  12726. }) : super(
  12727. deviceCode: deviceCode,
  12728. serialNumber: serialNumber,
  12729. password: password,
  12730. name: name,
  12731. description: description,
  12732. deviceModel: deviceModel,
  12733. deviceType: deviceType,
  12734. headPicUrl: headPicUrl,
  12735. deviceSoftwareVersion: deviceSoftwareVersion,
  12736. sDKSoftwareVersion: sDKSoftwareVersion,
  12737. organizationCode: organizationCode,
  12738. departmentCode: departmentCode,
  12739. shortCode: shortCode,
  12740. isAutoShared: isAutoShared,
  12741. isEncryptedShow: isEncryptedShow,
  12742. lastLoginTime: lastLoginTime,
  12743. systemVersion: systemVersion,
  12744. cPUModel: cPUModel,
  12745. systemLanguage: systemLanguage,
  12746. diagnosisModules: diagnosisModules,
  12747. reportPosterCodes: reportPosterCodes,
  12748. mergedChannel: mergedChannel,
  12749. mergedVideoOutputWidth: mergedVideoOutputWidth,
  12750. mergedVideoOutputHeight: mergedVideoOutputHeight,
  12751. videoDeviceInfos: videoDeviceInfos,
  12752. downloadModeSetting: downloadModeSetting,
  12753. liveOpened: liveOpened,
  12754. createTime: createTime,
  12755. updateTime: updateTime,
  12756. );
  12757. factory ManageDeviceInfoDTO.fromJson(Map<String, dynamic> map) {
  12758. return ManageDeviceInfoDTO(
  12759. hospitalName: map['HospitalName'],
  12760. departmentName: map['DepartmentName'],
  12761. directorName: map['DirectorName'],
  12762. adminName: map['AdminName'],
  12763. shareUserNum: map['ShareUserNum'],
  12764. deviceModelName: map['DeviceModelName'],
  12765. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>DictionaryLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12766. deviceCode: map['DeviceCode'],
  12767. serialNumber: map['SerialNumber'],
  12768. password: map['Password'],
  12769. name: map['Name'],
  12770. description: map['Description'],
  12771. deviceModel: map['DeviceModel'],
  12772. deviceType: map['DeviceType'],
  12773. headPicUrl: map['HeadPicUrl'],
  12774. deviceSoftwareVersion: map['DeviceSoftwareVersion'],
  12775. sDKSoftwareVersion: map['SDKSoftwareVersion'],
  12776. organizationCode: map['OrganizationCode'],
  12777. departmentCode: map['DepartmentCode'],
  12778. shortCode: map['ShortCode'],
  12779. isAutoShared: map['IsAutoShared'],
  12780. isEncryptedShow: map['IsEncryptedShow'],
  12781. lastLoginTime: map['LastLoginTime'] != null ? DateTime.parse(map['LastLoginTime']) : null,
  12782. systemVersion: map['SystemVersion'],
  12783. cPUModel: map['CPUModel'],
  12784. systemLanguage: map['SystemLanguage'],
  12785. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  12786. reportPosterCodes: map['ReportPosterCodes'] != null ? map['ReportPosterCodes'].cast<String>().toList() : null,
  12787. mergedChannel: map['MergedChannel'],
  12788. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  12789. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  12790. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12791. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  12792. liveOpened: map['LiveOpened'],
  12793. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12794. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12795. );
  12796. }
  12797. Map<String, dynamic> toJson() {
  12798. final map = super.toJson();
  12799. if(hospitalName != null)
  12800. map['HospitalName'] = hospitalName;
  12801. if(departmentName != null)
  12802. map['DepartmentName'] = departmentName;
  12803. if(directorName != null)
  12804. map['DirectorName'] = directorName;
  12805. if(adminName != null)
  12806. map['AdminName'] = adminName;
  12807. if(shareUserNum != null)
  12808. map['ShareUserNum'] = shareUserNum;
  12809. if(deviceModelName != null)
  12810. map['DeviceModelName'] = deviceModelName;
  12811. if(languageConfigs != null)
  12812. map['LanguageConfigs'] = languageConfigs;
  12813. return map;
  12814. }
  12815. }
  12816. class ManageDeviceTypeDTO {
  12817. String? dictionaryCode;
  12818. String? value;
  12819. List<DictionaryLanguageConfigDTO >? languageConfigs;
  12820. List<DictionaryDTO >? dictionaryList;
  12821. ManageDeviceTypeDTO({
  12822. this.dictionaryCode,
  12823. this.value,
  12824. this.languageConfigs,
  12825. this.dictionaryList,
  12826. });
  12827. factory ManageDeviceTypeDTO.fromJson(Map<String, dynamic> map) {
  12828. return ManageDeviceTypeDTO(
  12829. dictionaryCode: map['DictionaryCode'],
  12830. value: map['Value'],
  12831. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>DictionaryLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12832. dictionaryList: map['DictionaryList'] != null ? (map['DictionaryList'] as List).map((e)=>DictionaryDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12833. );
  12834. }
  12835. Map<String, dynamic> toJson() {
  12836. final map = Map<String, dynamic>();
  12837. if(dictionaryCode != null)
  12838. map['DictionaryCode'] = dictionaryCode;
  12839. if(value != null)
  12840. map['Value'] = value;
  12841. if(languageConfigs != null)
  12842. map['LanguageConfigs'] = languageConfigs;
  12843. if(dictionaryList != null)
  12844. map['DictionaryList'] = dictionaryList;
  12845. return map;
  12846. }
  12847. }
  12848. class ManageDeviceUserDTO {
  12849. String? userCode;
  12850. String? userName;
  12851. String? phone;
  12852. String? email;
  12853. String? nickName;
  12854. String? fullName;
  12855. String? hospitalName;
  12856. ManageDeviceUserDTO({
  12857. this.userCode,
  12858. this.userName,
  12859. this.phone,
  12860. this.email,
  12861. this.nickName,
  12862. this.fullName,
  12863. this.hospitalName,
  12864. });
  12865. factory ManageDeviceUserDTO.fromJson(Map<String, dynamic> map) {
  12866. return ManageDeviceUserDTO(
  12867. userCode: map['UserCode'],
  12868. userName: map['UserName'],
  12869. phone: map['Phone'],
  12870. email: map['Email'],
  12871. nickName: map['NickName'],
  12872. fullName: map['FullName'],
  12873. hospitalName: map['HospitalName'],
  12874. );
  12875. }
  12876. Map<String, dynamic> toJson() {
  12877. final map = Map<String, dynamic>();
  12878. if(userCode != null)
  12879. map['UserCode'] = userCode;
  12880. if(userName != null)
  12881. map['UserName'] = userName;
  12882. if(phone != null)
  12883. map['Phone'] = phone;
  12884. if(email != null)
  12885. map['Email'] = email;
  12886. if(nickName != null)
  12887. map['NickName'] = nickName;
  12888. if(fullName != null)
  12889. map['FullName'] = fullName;
  12890. if(hospitalName != null)
  12891. map['HospitalName'] = hospitalName;
  12892. return map;
  12893. }
  12894. }
  12895. class ManageOrderDetailDTO extends OrderDetailDTO{
  12896. ManageOrderDetailDTO({
  12897. String? code,
  12898. String? orderUserName,
  12899. String? orderUserCode,
  12900. String? productCode,
  12901. String? tPORderCode,
  12902. String? orderTitle,
  12903. OrderTypeEnum orderType = OrderTypeEnum.General,
  12904. double orderAmount = 0,
  12905. DateTime? payTime,
  12906. PayStatusEnum payStatus = PayStatusEnum.NoPay,
  12907. DateTime? createTime,
  12908. DateTime? updateTime,
  12909. }) : super(
  12910. code: code,
  12911. orderUserName: orderUserName,
  12912. orderUserCode: orderUserCode,
  12913. productCode: productCode,
  12914. tPORderCode: tPORderCode,
  12915. orderTitle: orderTitle,
  12916. orderType: orderType,
  12917. orderAmount: orderAmount,
  12918. payTime: payTime,
  12919. payStatus: payStatus,
  12920. createTime: createTime,
  12921. updateTime: updateTime,
  12922. );
  12923. factory ManageOrderDetailDTO.fromJson(Map<String, dynamic> map) {
  12924. return ManageOrderDetailDTO(
  12925. code: map['Code'],
  12926. orderUserName: map['OrderUserName'],
  12927. orderUserCode: map['OrderUserCode'],
  12928. productCode: map['ProductCode'],
  12929. tPORderCode: map['TPORderCode'],
  12930. orderTitle: map['OrderTitle'],
  12931. orderType: OrderTypeEnum.values.firstWhere((e) => e.index == map['OrderType']),
  12932. orderAmount: double.parse(map['OrderAmount'].toString()),
  12933. payTime: map['PayTime'] != null ? DateTime.parse(map['PayTime']) : null,
  12934. payStatus: PayStatusEnum.values.firstWhere((e) => e.index == map['PayStatus']),
  12935. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12936. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12937. );
  12938. }
  12939. Map<String, dynamic> toJson() {
  12940. final map = super.toJson();
  12941. return map;
  12942. }
  12943. }
  12944. class ManageOrganizationDTO extends OrganizationDTO{
  12945. String? countryName;
  12946. String? provinceName;
  12947. String? cityName;
  12948. String? countryCode;
  12949. String? provinceCode;
  12950. String? cityCode;
  12951. String? directorName;
  12952. String? adminFullName;
  12953. ManageOrganizationDTO({
  12954. this.countryName,
  12955. this.provinceName,
  12956. this.cityName,
  12957. this.countryCode,
  12958. this.provinceCode,
  12959. this.cityCode,
  12960. this.directorName,
  12961. this.adminFullName,
  12962. String? description,
  12963. String? rootCode,
  12964. OrganizationTypeEnum organizationType = OrganizationTypeEnum.Corporation,
  12965. List<String >? authorityGroups,
  12966. String? nautica,
  12967. OrganizationStateEnum state = OrganizationStateEnum.WaitAudit,
  12968. List<String >? directors,
  12969. List<String >? assignedAdmins,
  12970. String? patientSettingJson,
  12971. String? examSettingJson,
  12972. String? consultationSettingJson,
  12973. String? patientSettingVersion,
  12974. String? examSettingVersion,
  12975. String? consultationSettingVersion,
  12976. String? parentOrganizationName,
  12977. String? regionCode,
  12978. String? parentCode,
  12979. String? logoUrl,
  12980. OrganizationPatientTypeEnum patientType = OrganizationPatientTypeEnum.Person,
  12981. bool isinvented = false,
  12982. List<SettingDTOClass >? settings,
  12983. List<String >? diagnosisModules,
  12984. bool isEncryptedShow = false,
  12985. double referralLimitHours = 0,
  12986. List<String >? referralOrganizationCodes,
  12987. List<ReferralOrganizationDTO >? referralOrganizations,
  12988. String? organizationCode,
  12989. String? organizationName,
  12990. DateTime? createTime,
  12991. DateTime? updateTime,
  12992. }) : super(
  12993. description: description,
  12994. rootCode: rootCode,
  12995. organizationType: organizationType,
  12996. authorityGroups: authorityGroups,
  12997. nautica: nautica,
  12998. state: state,
  12999. directors: directors,
  13000. assignedAdmins: assignedAdmins,
  13001. patientSettingJson: patientSettingJson,
  13002. examSettingJson: examSettingJson,
  13003. consultationSettingJson: consultationSettingJson,
  13004. patientSettingVersion: patientSettingVersion,
  13005. examSettingVersion: examSettingVersion,
  13006. consultationSettingVersion: consultationSettingVersion,
  13007. parentOrganizationName: parentOrganizationName,
  13008. regionCode: regionCode,
  13009. parentCode: parentCode,
  13010. logoUrl: logoUrl,
  13011. patientType: patientType,
  13012. isinvented: isinvented,
  13013. settings: settings,
  13014. diagnosisModules: diagnosisModules,
  13015. isEncryptedShow: isEncryptedShow,
  13016. referralLimitHours: referralLimitHours,
  13017. referralOrganizationCodes: referralOrganizationCodes,
  13018. referralOrganizations: referralOrganizations,
  13019. organizationCode: organizationCode,
  13020. organizationName: organizationName,
  13021. createTime: createTime,
  13022. updateTime: updateTime,
  13023. );
  13024. factory ManageOrganizationDTO.fromJson(Map<String, dynamic> map) {
  13025. return ManageOrganizationDTO(
  13026. countryName: map['CountryName'],
  13027. provinceName: map['ProvinceName'],
  13028. cityName: map['CityName'],
  13029. countryCode: map['CountryCode'],
  13030. provinceCode: map['ProvinceCode'],
  13031. cityCode: map['CityCode'],
  13032. directorName: map['DirectorName'],
  13033. adminFullName: map['AdminFullName'],
  13034. description: map['Description'],
  13035. rootCode: map['RootCode'],
  13036. organizationType: OrganizationTypeEnum.values.firstWhere((e) => e.index == map['OrganizationType']),
  13037. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  13038. nautica: map['Nautica'],
  13039. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  13040. directors: map['Directors'] != null ? map['Directors'].cast<String>().toList() : null,
  13041. assignedAdmins: map['AssignedAdmins'] != null ? map['AssignedAdmins'].cast<String>().toList() : null,
  13042. patientSettingJson: map['PatientSettingJson'],
  13043. examSettingJson: map['ExamSettingJson'],
  13044. consultationSettingJson: map['ConsultationSettingJson'],
  13045. patientSettingVersion: map['PatientSettingVersion'],
  13046. examSettingVersion: map['ExamSettingVersion'],
  13047. consultationSettingVersion: map['ConsultationSettingVersion'],
  13048. parentOrganizationName: map['ParentOrganizationName'],
  13049. regionCode: map['RegionCode'],
  13050. parentCode: map['ParentCode'],
  13051. logoUrl: map['LogoUrl'],
  13052. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  13053. isinvented: map['Isinvented'],
  13054. settings: map['Settings'] != null ? (map['Settings'] as List).map((e)=>SettingDTOClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  13055. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  13056. isEncryptedShow: map['IsEncryptedShow'],
  13057. referralLimitHours: double.parse(map['ReferralLimitHours'].toString()),
  13058. referralOrganizationCodes: map['ReferralOrganizationCodes'] != null ? map['ReferralOrganizationCodes'].cast<String>().toList() : null,
  13059. referralOrganizations: map['ReferralOrganizations'] != null ? (map['ReferralOrganizations'] as List).map((e)=>ReferralOrganizationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13060. organizationCode: map['OrganizationCode'],
  13061. organizationName: map['OrganizationName'],
  13062. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13063. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13064. );
  13065. }
  13066. Map<String, dynamic> toJson() {
  13067. final map = super.toJson();
  13068. if(countryName != null)
  13069. map['CountryName'] = countryName;
  13070. if(provinceName != null)
  13071. map['ProvinceName'] = provinceName;
  13072. if(cityName != null)
  13073. map['CityName'] = cityName;
  13074. if(countryCode != null)
  13075. map['CountryCode'] = countryCode;
  13076. if(provinceCode != null)
  13077. map['ProvinceCode'] = provinceCode;
  13078. if(cityCode != null)
  13079. map['CityCode'] = cityCode;
  13080. if(directorName != null)
  13081. map['DirectorName'] = directorName;
  13082. if(adminFullName != null)
  13083. map['AdminFullName'] = adminFullName;
  13084. return map;
  13085. }
  13086. }
  13087. class ManageOrganizationUserDTO {
  13088. String? userCode;
  13089. String? userName;
  13090. String? phone;
  13091. String? email;
  13092. String? nickName;
  13093. String? fullName;
  13094. String? hospitalName;
  13095. ManageOrganizationUserDTO({
  13096. this.userCode,
  13097. this.userName,
  13098. this.phone,
  13099. this.email,
  13100. this.nickName,
  13101. this.fullName,
  13102. this.hospitalName,
  13103. });
  13104. factory ManageOrganizationUserDTO.fromJson(Map<String, dynamic> map) {
  13105. return ManageOrganizationUserDTO(
  13106. userCode: map['UserCode'],
  13107. userName: map['UserName'],
  13108. phone: map['Phone'],
  13109. email: map['Email'],
  13110. nickName: map['NickName'],
  13111. fullName: map['FullName'],
  13112. hospitalName: map['HospitalName'],
  13113. );
  13114. }
  13115. Map<String, dynamic> toJson() {
  13116. final map = Map<String, dynamic>();
  13117. if(userCode != null)
  13118. map['UserCode'] = userCode;
  13119. if(userName != null)
  13120. map['UserName'] = userName;
  13121. if(phone != null)
  13122. map['Phone'] = phone;
  13123. if(email != null)
  13124. map['Email'] = email;
  13125. if(nickName != null)
  13126. map['NickName'] = nickName;
  13127. if(fullName != null)
  13128. map['FullName'] = fullName;
  13129. if(hospitalName != null)
  13130. map['HospitalName'] = hospitalName;
  13131. return map;
  13132. }
  13133. }
  13134. class ManagePaymentRecordDTO extends PaymentRecordDTO{
  13135. ManagePaymentRecordDTO({
  13136. String? orderCode,
  13137. double payAmount = 0,
  13138. DateTime? payTime,
  13139. PayStatusEnum payStatus = PayStatusEnum.NoPay,
  13140. PayTypeEnum payType = PayTypeEnum.Alipay_PAGE,
  13141. String? payReqContent,
  13142. String? payResContent,
  13143. DateTime? createTime,
  13144. DateTime? updateTime,
  13145. }) : super(
  13146. orderCode: orderCode,
  13147. payAmount: payAmount,
  13148. payTime: payTime,
  13149. payStatus: payStatus,
  13150. payType: payType,
  13151. payReqContent: payReqContent,
  13152. payResContent: payResContent,
  13153. createTime: createTime,
  13154. updateTime: updateTime,
  13155. );
  13156. factory ManagePaymentRecordDTO.fromJson(Map<String, dynamic> map) {
  13157. return ManagePaymentRecordDTO(
  13158. orderCode: map['OrderCode'],
  13159. payAmount: double.parse(map['PayAmount'].toString()),
  13160. payTime: map['PayTime'] != null ? DateTime.parse(map['PayTime']) : null,
  13161. payStatus: PayStatusEnum.values.firstWhere((e) => e.index == map['PayStatus']),
  13162. payType: PayTypeEnum.values.firstWhere((e) => e.index == map['PayType']),
  13163. payReqContent: map['PayReqContent'],
  13164. payResContent: map['PayResContent'],
  13165. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13166. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13167. );
  13168. }
  13169. Map<String, dynamic> toJson() {
  13170. final map = super.toJson();
  13171. return map;
  13172. }
  13173. }
  13174. class ManageRoleInfoDTO extends RoleDTO{
  13175. List<FeatureDetail >? featureList;
  13176. ManageRoleInfoDTO({
  13177. this.featureList,
  13178. RoleShowTypeEnum roleShowType = RoleShowTypeEnum.NotShow,
  13179. String? iConUrl,
  13180. String? colorStart,
  13181. String? colorEnd,
  13182. RoleQualificationEnum roleQualification = RoleQualificationEnum.NoNeed,
  13183. String? userGroupCode,
  13184. RoleShowTypeEnum fieldShowType = RoleShowTypeEnum.NotShow,
  13185. List<String >? fieldList,
  13186. String? roleCode,
  13187. String? roleName,
  13188. String? description,
  13189. List<UserRoleLanguageConfigDTO >? languageConfigs,
  13190. DateTime? createTime,
  13191. DateTime? updateTime,
  13192. }) : super(
  13193. roleShowType: roleShowType,
  13194. iConUrl: iConUrl,
  13195. colorStart: colorStart,
  13196. colorEnd: colorEnd,
  13197. roleQualification: roleQualification,
  13198. userGroupCode: userGroupCode,
  13199. fieldShowType: fieldShowType,
  13200. fieldList: fieldList,
  13201. roleCode: roleCode,
  13202. roleName: roleName,
  13203. description: description,
  13204. languageConfigs: languageConfigs,
  13205. createTime: createTime,
  13206. updateTime: updateTime,
  13207. );
  13208. factory ManageRoleInfoDTO.fromJson(Map<String, dynamic> map) {
  13209. return ManageRoleInfoDTO(
  13210. featureList: map['FeatureList'] != null ? (map['FeatureList'] as List).map((e)=>FeatureDetail.fromJson(e as Map<String,dynamic>)).toList() : null,
  13211. roleShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['RoleShowType']),
  13212. iConUrl: map['IConUrl'],
  13213. colorStart: map['ColorStart'],
  13214. colorEnd: map['ColorEnd'],
  13215. roleQualification: RoleQualificationEnum.values.firstWhere((e) => e.index == map['RoleQualification']),
  13216. userGroupCode: map['UserGroupCode'],
  13217. fieldShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['FieldShowType']),
  13218. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  13219. roleCode: map['RoleCode'],
  13220. roleName: map['RoleName'],
  13221. description: map['Description'],
  13222. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13223. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13224. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13225. );
  13226. }
  13227. Map<String, dynamic> toJson() {
  13228. final map = super.toJson();
  13229. if(featureList != null)
  13230. map['FeatureList'] = featureList;
  13231. return map;
  13232. }
  13233. }
  13234. class BaseThesaurusItemBaseDTO<T> {
  13235. String? id;
  13236. String? label;
  13237. String? fatherCode;
  13238. String? thesaurusItemDescription;
  13239. String? thesaurusItemConclusion;
  13240. ThesaurusItemTypeEnum type;
  13241. List<T>? children;
  13242. bool isExistThesaurusItem;
  13243. BaseThesaurusItemBaseDTO({
  13244. this.id,
  13245. this.label,
  13246. this.fatherCode,
  13247. this.thesaurusItemDescription,
  13248. this.thesaurusItemConclusion,
  13249. this.type = ThesaurusItemTypeEnum.Classification,
  13250. this.children,
  13251. this.isExistThesaurusItem = false,
  13252. });
  13253. factory BaseThesaurusItemBaseDTO.fromJson(Map<String, dynamic> map) {
  13254. List<T> childrenList = [];
  13255. if (map['Children'] != null) {
  13256. childrenList.addAll(
  13257. (map['Children'] as List).map((e) => FJsonConvert.fromJson<T>(e)!));
  13258. }
  13259. return BaseThesaurusItemBaseDTO(
  13260. id: map['Id'],
  13261. label: map['Label'],
  13262. fatherCode: map['FatherCode'],
  13263. thesaurusItemDescription: map['ThesaurusItemDescription'],
  13264. thesaurusItemConclusion: map['ThesaurusItemConclusion'],
  13265. type: ThesaurusItemTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  13266. children: childrenList,
  13267. isExistThesaurusItem: map['IsExistThesaurusItem'],
  13268. );
  13269. }
  13270. Map<String, dynamic> toJson() {
  13271. final map = Map<String, dynamic>();
  13272. if(id != null)
  13273. map['Id'] = id;
  13274. if(label != null)
  13275. map['Label'] = label;
  13276. if(fatherCode != null)
  13277. map['FatherCode'] = fatherCode;
  13278. if(thesaurusItemDescription != null)
  13279. map['ThesaurusItemDescription'] = thesaurusItemDescription;
  13280. if(thesaurusItemConclusion != null)
  13281. map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
  13282. map['Type'] = type.index;
  13283. if(children != null)
  13284. map['Children'] = children;
  13285. map['IsExistThesaurusItem'] = isExistThesaurusItem;
  13286. return map;
  13287. }
  13288. }
  13289. class ManageThesaurusItemDTO extends BaseThesaurusItemBaseDTO<ManageThesaurusItemDTO>{
  13290. ManageThesaurusItemDTO(
  13291. );
  13292. factory ManageThesaurusItemDTO.fromJson(Map<String, dynamic> map) {
  13293. return ManageThesaurusItemDTO(
  13294. );
  13295. }
  13296. Map<String, dynamic> toJson() {
  13297. final map = super.toJson();
  13298. return map;
  13299. }
  13300. }
  13301. class ManageUpdateProductDTO extends UpdateProductDTO{
  13302. ManageUpdateProductDTO({
  13303. bool isSuccess = false,
  13304. }) : super(
  13305. isSuccess: isSuccess,
  13306. );
  13307. factory ManageUpdateProductDTO.fromJson(Map<String, dynamic> map) {
  13308. return ManageUpdateProductDTO(
  13309. isSuccess: map['IsSuccess'],
  13310. );
  13311. }
  13312. Map<String, dynamic> toJson() {
  13313. final map = super.toJson();
  13314. return map;
  13315. }
  13316. }
  13317. class OnlineTokenDTO extends TokenDTO{
  13318. String? ipAddress;
  13319. OnlineTokenDTO({
  13320. this.ipAddress,
  13321. int version = 0,
  13322. String? code,
  13323. AccountType accountType = AccountType.Admin,
  13324. String? accountName,
  13325. Platform platform = Platform.Windows,
  13326. LoginSource loginSource = LoginSource.PC,
  13327. String? clientId,
  13328. String? loginServer,
  13329. DateTime? createTime,
  13330. DateTime? expiration,
  13331. int ipValue = 0,
  13332. bool isOnline = false,
  13333. String? installVersion,
  13334. }) : super(
  13335. version: version,
  13336. code: code,
  13337. accountType: accountType,
  13338. accountName: accountName,
  13339. platform: platform,
  13340. loginSource: loginSource,
  13341. clientId: clientId,
  13342. loginServer: loginServer,
  13343. createTime: createTime,
  13344. expiration: expiration,
  13345. ipValue: ipValue,
  13346. isOnline: isOnline,
  13347. installVersion: installVersion,
  13348. );
  13349. factory OnlineTokenDTO.fromJson(Map<String, dynamic> map) {
  13350. return OnlineTokenDTO(
  13351. ipAddress: map['IpAddress'],
  13352. version: map['Version'],
  13353. code: map['Code'],
  13354. accountType: AccountType.values.firstWhere((e) => e.index == map['AccountType']),
  13355. accountName: map['AccountName'],
  13356. platform: Platform.values.firstWhere((e) => e.index == map['Platform']),
  13357. loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
  13358. clientId: map['ClientId'],
  13359. loginServer: map['LoginServer'],
  13360. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13361. expiration: map['Expiration'] != null ? DateTime.parse(map['Expiration']) : null,
  13362. ipValue: map['IpValue'],
  13363. isOnline: map['IsOnline'],
  13364. installVersion: map['InstallVersion'],
  13365. );
  13366. }
  13367. Map<String, dynamic> toJson() {
  13368. final map = super.toJson();
  13369. if(ipAddress != null)
  13370. map['IpAddress'] = ipAddress;
  13371. return map;
  13372. }
  13373. }
  13374. class SelectParentItemDTO extends SelectItemDTO{
  13375. String? parentCode;
  13376. SelectParentItemDTO({
  13377. this.parentCode,
  13378. String? key,
  13379. String? value,
  13380. }) : super(
  13381. key: key,
  13382. value: value,
  13383. );
  13384. factory SelectParentItemDTO.fromJson(Map<String, dynamic> map) {
  13385. return SelectParentItemDTO(
  13386. parentCode: map['ParentCode'],
  13387. key: map['Key'],
  13388. value: map['Value'],
  13389. );
  13390. }
  13391. Map<String, dynamic> toJson() {
  13392. final map = super.toJson();
  13393. if(parentCode != null)
  13394. map['ParentCode'] = parentCode;
  13395. return map;
  13396. }
  13397. }
  13398. class SystemConfigDTO extends BaseDTO{
  13399. String? code;
  13400. String? configKey;
  13401. String? configContent;
  13402. String? configPageControls;
  13403. SystemConfigDTO({
  13404. this.code,
  13405. this.configKey,
  13406. this.configContent,
  13407. this.configPageControls,
  13408. DateTime? createTime,
  13409. DateTime? updateTime,
  13410. }) : super(
  13411. createTime: createTime,
  13412. updateTime: updateTime,
  13413. );
  13414. factory SystemConfigDTO.fromJson(Map<String, dynamic> map) {
  13415. return SystemConfigDTO(
  13416. code: map['Code'],
  13417. configKey: map['ConfigKey'],
  13418. configContent: map['ConfigContent'],
  13419. configPageControls: map['ConfigPageControls'],
  13420. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13421. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13422. );
  13423. }
  13424. Map<String, dynamic> toJson() {
  13425. final map = super.toJson();
  13426. if(code != null)
  13427. map['Code'] = code;
  13428. if(configKey != null)
  13429. map['ConfigKey'] = configKey;
  13430. if(configContent != null)
  13431. map['ConfigContent'] = configContent;
  13432. if(configPageControls != null)
  13433. map['ConfigPageControls'] = configPageControls;
  13434. return map;
  13435. }
  13436. }
  13437. class LiveBoardDataDTO {
  13438. String? userCode;
  13439. String? boardData;
  13440. DateTime? interactiveTime;
  13441. LiveBoardDataDTO({
  13442. this.userCode,
  13443. this.boardData,
  13444. this.interactiveTime,
  13445. });
  13446. factory LiveBoardDataDTO.fromJson(Map<String, dynamic> map) {
  13447. return LiveBoardDataDTO(
  13448. userCode: map['UserCode'],
  13449. boardData: map['BoardData'],
  13450. interactiveTime: map['InteractiveTime'] != null ? DateTime.parse(map['InteractiveTime']) : null,
  13451. );
  13452. }
  13453. Map<String, dynamic> toJson() {
  13454. final map = Map<String, dynamic>();
  13455. if(userCode != null)
  13456. map['UserCode'] = userCode;
  13457. if(boardData != null)
  13458. map['BoardData'] = boardData;
  13459. if(interactiveTime != null)
  13460. map['InteractiveTime'] = JsonRpcUtils.dateFormat(interactiveTime!);
  13461. return map;
  13462. }
  13463. }
  13464. class LiveMemberStatusDTO {
  13465. String? code;
  13466. String? liveRoomCode;
  13467. LiveMemberStatus status;
  13468. UserStatusEnum userStatusType;
  13469. String? loginServerUrl;
  13470. LoginSource loginSource;
  13471. LiveMemberStatusDTO({
  13472. this.code,
  13473. this.liveRoomCode,
  13474. this.status = LiveMemberStatus.Default,
  13475. this.userStatusType = UserStatusEnum.NotOnline,
  13476. this.loginServerUrl,
  13477. this.loginSource = LoginSource.PC,
  13478. });
  13479. factory LiveMemberStatusDTO.fromJson(Map<String, dynamic> map) {
  13480. return LiveMemberStatusDTO(
  13481. code: map['Code'],
  13482. liveRoomCode: map['LiveRoomCode'],
  13483. status: LiveMemberStatus.values.firstWhere((e) => e.index == map['Status']),
  13484. userStatusType: UserStatusEnum.values.firstWhere((e) => e.index == map['UserStatusType']),
  13485. loginServerUrl: map['LoginServerUrl'],
  13486. loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
  13487. );
  13488. }
  13489. Map<String, dynamic> toJson() {
  13490. final map = Map<String, dynamic>();
  13491. if(code != null)
  13492. map['Code'] = code;
  13493. if(liveRoomCode != null)
  13494. map['LiveRoomCode'] = liveRoomCode;
  13495. map['Status'] = status.index;
  13496. map['UserStatusType'] = userStatusType.index;
  13497. if(loginServerUrl != null)
  13498. map['LoginServerUrl'] = loginServerUrl;
  13499. map['LoginSource'] = loginSource.index;
  13500. return map;
  13501. }
  13502. }
  13503. class LiveRoomDTO {
  13504. String? liveRoomCode;
  13505. String? name;
  13506. String? relatedCode;
  13507. String? initiatorCode;
  13508. int rtcRoomId;
  13509. int sdkAppId;
  13510. BusinessModuleEnum businessModule;
  13511. LiveRoomStatus status;
  13512. List<LiveMemberDTO >? deviceInfos;
  13513. List<LiveMemberDTO >? userInfos;
  13514. List<LiveViewerDTO >? viewerInfos;
  13515. LiveRoomDTO({
  13516. this.liveRoomCode,
  13517. this.name,
  13518. this.relatedCode,
  13519. this.initiatorCode,
  13520. this.rtcRoomId = 0,
  13521. this.sdkAppId = 0,
  13522. this.businessModule = BusinessModuleEnum.RemoteDiagnosis,
  13523. this.status = LiveRoomStatus.Default,
  13524. this.deviceInfos,
  13525. this.userInfos,
  13526. this.viewerInfos,
  13527. });
  13528. factory LiveRoomDTO.fromJson(Map<String, dynamic> map) {
  13529. return LiveRoomDTO(
  13530. liveRoomCode: map['LiveRoomCode'],
  13531. name: map['Name'],
  13532. relatedCode: map['RelatedCode'],
  13533. initiatorCode: map['InitiatorCode'],
  13534. rtcRoomId: map['RtcRoomId'],
  13535. sdkAppId: map['SdkAppId'],
  13536. businessModule: BusinessModuleEnum.values.firstWhere((e) => e.index == map['BusinessModule']),
  13537. status: LiveRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  13538. deviceInfos: map['DeviceInfos'] != null ? (map['DeviceInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13539. userInfos: map['UserInfos'] != null ? (map['UserInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13540. viewerInfos: map['ViewerInfos'] != null ? (map['ViewerInfos'] as List).map((e)=>LiveViewerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13541. );
  13542. }
  13543. Map<String, dynamic> toJson() {
  13544. final map = Map<String, dynamic>();
  13545. if(liveRoomCode != null)
  13546. map['LiveRoomCode'] = liveRoomCode;
  13547. if(name != null)
  13548. map['Name'] = name;
  13549. if(relatedCode != null)
  13550. map['RelatedCode'] = relatedCode;
  13551. if(initiatorCode != null)
  13552. map['InitiatorCode'] = initiatorCode;
  13553. map['RtcRoomId'] = rtcRoomId;
  13554. map['SdkAppId'] = sdkAppId;
  13555. map['BusinessModule'] = businessModule.index;
  13556. map['Status'] = status.index;
  13557. if(deviceInfos != null)
  13558. map['DeviceInfos'] = deviceInfos;
  13559. if(userInfos != null)
  13560. map['UserInfos'] = userInfos;
  13561. if(viewerInfos != null)
  13562. map['ViewerInfos'] = viewerInfos;
  13563. return map;
  13564. }
  13565. }
  13566. class DownloadFileInfoDTO {
  13567. List<FileUploadInfoDTO >? fileUploadInfos;
  13568. String? folderCode;
  13569. String? fileName;
  13570. DownloadFileInfoDTO({
  13571. this.fileUploadInfos,
  13572. this.folderCode,
  13573. this.fileName,
  13574. });
  13575. factory DownloadFileInfoDTO.fromJson(Map<String, dynamic> map) {
  13576. return DownloadFileInfoDTO(
  13577. fileUploadInfos: map['FileUploadInfos'] != null ? (map['FileUploadInfos'] as List).map((e)=>FileUploadInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13578. folderCode: map['FolderCode'],
  13579. fileName: map['FileName'],
  13580. );
  13581. }
  13582. Map<String, dynamic> toJson() {
  13583. final map = Map<String, dynamic>();
  13584. if(fileUploadInfos != null)
  13585. map['FileUploadInfos'] = fileUploadInfos;
  13586. if(folderCode != null)
  13587. map['FolderCode'] = folderCode;
  13588. if(fileName != null)
  13589. map['FileName'] = fileName;
  13590. return map;
  13591. }
  13592. }
  13593. class ConvertFileInfoDTO {
  13594. String? recordCode;
  13595. String? filePath;
  13596. String? folderCode;
  13597. UploadFileTypeEnum fileType;
  13598. ConvertFileInfoDTO({
  13599. this.recordCode,
  13600. this.filePath,
  13601. this.folderCode,
  13602. this.fileType = UploadFileTypeEnum.Unknown,
  13603. });
  13604. factory ConvertFileInfoDTO.fromJson(Map<String, dynamic> map) {
  13605. return ConvertFileInfoDTO(
  13606. recordCode: map['RecordCode'],
  13607. filePath: map['FilePath'],
  13608. folderCode: map['FolderCode'],
  13609. fileType: UploadFileTypeEnum.values.firstWhere((e) => e.index == map['FileType']),
  13610. );
  13611. }
  13612. Map<String, dynamic> toJson() {
  13613. final map = Map<String, dynamic>();
  13614. if(recordCode != null)
  13615. map['RecordCode'] = recordCode;
  13616. if(filePath != null)
  13617. map['FilePath'] = filePath;
  13618. if(folderCode != null)
  13619. map['FolderCode'] = folderCode;
  13620. map['FileType'] = fileType.index;
  13621. return map;
  13622. }
  13623. }
  13624. class LabConvertStateDTO {
  13625. String? code;
  13626. String? creatorCode;
  13627. String? recordCode;
  13628. bool isTemplate;
  13629. DateTime? lastExecuteTime;
  13630. int errorCount;
  13631. List<DownloadFileInfoDTO >? downloadErrorFiles;
  13632. List<ConvertFileInfoDTO >? convertErrorFiles;
  13633. LabConvertStateDTO({
  13634. this.code,
  13635. this.creatorCode,
  13636. this.recordCode,
  13637. this.isTemplate = false,
  13638. this.lastExecuteTime,
  13639. this.errorCount = 0,
  13640. this.downloadErrorFiles,
  13641. this.convertErrorFiles,
  13642. });
  13643. factory LabConvertStateDTO.fromJson(Map<String, dynamic> map) {
  13644. return LabConvertStateDTO(
  13645. code: map['Code'],
  13646. creatorCode: map['CreatorCode'],
  13647. recordCode: map['RecordCode'],
  13648. isTemplate: map['IsTemplate'],
  13649. lastExecuteTime: map['LastExecuteTime'] != null ? DateTime.parse(map['LastExecuteTime']) : null,
  13650. errorCount: map['ErrorCount'],
  13651. downloadErrorFiles: map['DownloadErrorFiles'] != null ? (map['DownloadErrorFiles'] as List).map((e)=>DownloadFileInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13652. convertErrorFiles: map['ConvertErrorFiles'] != null ? (map['ConvertErrorFiles'] as List).map((e)=>ConvertFileInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13653. );
  13654. }
  13655. Map<String, dynamic> toJson() {
  13656. final map = Map<String, dynamic>();
  13657. if(code != null)
  13658. map['Code'] = code;
  13659. if(creatorCode != null)
  13660. map['CreatorCode'] = creatorCode;
  13661. if(recordCode != null)
  13662. map['RecordCode'] = recordCode;
  13663. map['IsTemplate'] = isTemplate;
  13664. if(lastExecuteTime != null)
  13665. map['LastExecuteTime'] = JsonRpcUtils.dateFormat(lastExecuteTime!);
  13666. map['ErrorCount'] = errorCount;
  13667. if(downloadErrorFiles != null)
  13668. map['DownloadErrorFiles'] = downloadErrorFiles;
  13669. if(convertErrorFiles != null)
  13670. map['ConvertErrorFiles'] = convertErrorFiles;
  13671. return map;
  13672. }
  13673. }
  13674. class GradingProtectionConfigDTO extends BaseDTO{
  13675. String? moduleCode;
  13676. String? name;
  13677. String? description;
  13678. GradingConfigTypeEnum configType;
  13679. String? value;
  13680. GradingProtectionConfigDTO({
  13681. this.moduleCode,
  13682. this.name,
  13683. this.description,
  13684. this.configType = GradingConfigTypeEnum.Switch,
  13685. this.value,
  13686. DateTime? createTime,
  13687. DateTime? updateTime,
  13688. }) : super(
  13689. createTime: createTime,
  13690. updateTime: updateTime,
  13691. );
  13692. factory GradingProtectionConfigDTO.fromJson(Map<String, dynamic> map) {
  13693. return GradingProtectionConfigDTO(
  13694. moduleCode: map['ModuleCode'],
  13695. name: map['Name'],
  13696. description: map['Description'],
  13697. configType: GradingConfigTypeEnum.values.firstWhere((e) => e.index == map['ConfigType']),
  13698. value: map['Value'],
  13699. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13700. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13701. );
  13702. }
  13703. Map<String, dynamic> toJson() {
  13704. final map = super.toJson();
  13705. if(moduleCode != null)
  13706. map['ModuleCode'] = moduleCode;
  13707. if(name != null)
  13708. map['Name'] = name;
  13709. if(description != null)
  13710. map['Description'] = description;
  13711. map['ConfigType'] = configType.index;
  13712. if(value != null)
  13713. map['Value'] = value;
  13714. return map;
  13715. }
  13716. }
  13717. class ExaminationPaperDTO {
  13718. String? code;
  13719. String? name;
  13720. double totalScore;
  13721. List<QuestionDetailDTO >? questionList;
  13722. List<String >? caseLabelCodes;
  13723. List<String >? courseLabelCodes;
  13724. DateTime? createTime;
  13725. DateTime? updateTime;
  13726. ExaminationPaperDTO({
  13727. this.code,
  13728. this.name,
  13729. this.totalScore = 0,
  13730. this.questionList,
  13731. this.caseLabelCodes,
  13732. this.courseLabelCodes,
  13733. this.createTime,
  13734. this.updateTime,
  13735. });
  13736. factory ExaminationPaperDTO.fromJson(Map<String, dynamic> map) {
  13737. return ExaminationPaperDTO(
  13738. code: map['Code'],
  13739. name: map['Name'],
  13740. totalScore: double.parse(map['TotalScore'].toString()),
  13741. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>QuestionDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13742. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  13743. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  13744. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13745. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13746. );
  13747. }
  13748. Map<String, dynamic> toJson() {
  13749. final map = Map<String, dynamic>();
  13750. if(code != null)
  13751. map['Code'] = code;
  13752. if(name != null)
  13753. map['Name'] = name;
  13754. map['TotalScore'] = totalScore;
  13755. if(questionList != null)
  13756. map['QuestionList'] = questionList;
  13757. if(caseLabelCodes != null)
  13758. map['CaseLabelCodes'] = caseLabelCodes;
  13759. if(courseLabelCodes != null)
  13760. map['CourseLabelCodes'] = courseLabelCodes;
  13761. if(createTime != null)
  13762. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  13763. if(updateTime != null)
  13764. map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
  13765. return map;
  13766. }
  13767. }
  13768. class ExaminationQuestionDTO extends BaseDTO{
  13769. String? code;
  13770. String? stem;
  13771. QuestionTypeEnum questionType;
  13772. List<QuestionOptionDTO >? questionOptionList;
  13773. List<QuestionFileDTO >? fileList;
  13774. List<String >? caseLabelCodes;
  13775. List<String >? courseLabelCodes;
  13776. bool trueOrFalse;
  13777. ExaminationQuestionDTO({
  13778. this.code,
  13779. this.stem,
  13780. this.questionType = QuestionTypeEnum.Judge,
  13781. this.questionOptionList,
  13782. this.fileList,
  13783. this.caseLabelCodes,
  13784. this.courseLabelCodes,
  13785. this.trueOrFalse = false,
  13786. DateTime? createTime,
  13787. DateTime? updateTime,
  13788. }) : super(
  13789. createTime: createTime,
  13790. updateTime: updateTime,
  13791. );
  13792. factory ExaminationQuestionDTO.fromJson(Map<String, dynamic> map) {
  13793. return ExaminationQuestionDTO(
  13794. code: map['Code'],
  13795. stem: map['Stem'],
  13796. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  13797. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13798. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13799. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  13800. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  13801. trueOrFalse: map['TrueOrFalse'],
  13802. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13803. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13804. );
  13805. }
  13806. Map<String, dynamic> toJson() {
  13807. final map = super.toJson();
  13808. if(code != null)
  13809. map['Code'] = code;
  13810. if(stem != null)
  13811. map['Stem'] = stem;
  13812. map['QuestionType'] = questionType.index;
  13813. if(questionOptionList != null)
  13814. map['QuestionOptionList'] = questionOptionList;
  13815. if(fileList != null)
  13816. map['FileList'] = fileList;
  13817. if(caseLabelCodes != null)
  13818. map['CaseLabelCodes'] = caseLabelCodes;
  13819. if(courseLabelCodes != null)
  13820. map['CourseLabelCodes'] = courseLabelCodes;
  13821. map['TrueOrFalse'] = trueOrFalse;
  13822. return map;
  13823. }
  13824. }
  13825. class StudentExaminationDTO extends BaseStudentExaminationDTO{
  13826. RelevanceTypeEnum relevanceType;
  13827. String? relevanceCode;
  13828. List<ExaminationAnswerDTO >? studentAnswers;
  13829. int submitCount;
  13830. StudentExaminationDTO({
  13831. this.relevanceType = RelevanceTypeEnum.Course,
  13832. this.relevanceCode,
  13833. this.studentAnswers,
  13834. this.submitCount = 0,
  13835. String? code,
  13836. String? examinationCode,
  13837. String? studentCode,
  13838. String? studentName,
  13839. double totalScore = 0,
  13840. }) : super(
  13841. code: code,
  13842. examinationCode: examinationCode,
  13843. studentCode: studentCode,
  13844. studentName: studentName,
  13845. totalScore: totalScore,
  13846. );
  13847. factory StudentExaminationDTO.fromJson(Map<String, dynamic> map) {
  13848. return StudentExaminationDTO(
  13849. relevanceType: RelevanceTypeEnum.values.firstWhere((e) => e.index == map['RelevanceType']),
  13850. relevanceCode: map['RelevanceCode'],
  13851. studentAnswers: map['StudentAnswers'] != null ? (map['StudentAnswers'] as List).map((e)=>ExaminationAnswerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13852. submitCount: map['SubmitCount'],
  13853. code: map['Code'],
  13854. examinationCode: map['ExaminationCode'],
  13855. studentCode: map['StudentCode'],
  13856. studentName: map['StudentName'],
  13857. totalScore: double.parse(map['TotalScore'].toString()),
  13858. );
  13859. }
  13860. Map<String, dynamic> toJson() {
  13861. final map = super.toJson();
  13862. map['RelevanceType'] = relevanceType.index;
  13863. if(relevanceCode != null)
  13864. map['RelevanceCode'] = relevanceCode;
  13865. if(studentAnswers != null)
  13866. map['StudentAnswers'] = studentAnswers;
  13867. map['SubmitCount'] = submitCount;
  13868. return map;
  13869. }
  13870. }
  13871. class DistributedServerInfoDTO extends BaseDTO{
  13872. String? serverCode;
  13873. bool isMaster;
  13874. String? name;
  13875. String? description;
  13876. bool enable;
  13877. DistributedServerTypeEnum serverType;
  13878. String? serverUrl;
  13879. String? lat;
  13880. String? lng;
  13881. List<IPAddressInfoDTO >? assignClientIPList;
  13882. int rTCStartingRoomId;
  13883. String? shareCodePrefix;
  13884. DistributedServerInfoDTO({
  13885. this.serverCode,
  13886. this.isMaster = false,
  13887. this.name,
  13888. this.description,
  13889. this.enable = false,
  13890. this.serverType = DistributedServerTypeEnum.Official,
  13891. this.serverUrl,
  13892. this.lat,
  13893. this.lng,
  13894. this.assignClientIPList,
  13895. this.rTCStartingRoomId = 0,
  13896. this.shareCodePrefix,
  13897. DateTime? createTime,
  13898. DateTime? updateTime,
  13899. }) : super(
  13900. createTime: createTime,
  13901. updateTime: updateTime,
  13902. );
  13903. factory DistributedServerInfoDTO.fromJson(Map<String, dynamic> map) {
  13904. return DistributedServerInfoDTO(
  13905. serverCode: map['ServerCode'],
  13906. isMaster: map['IsMaster'],
  13907. name: map['Name'],
  13908. description: map['Description'],
  13909. enable: map['Enable'],
  13910. serverType: DistributedServerTypeEnum.values.firstWhere((e) => e.index == map['ServerType']),
  13911. serverUrl: map['ServerUrl'],
  13912. lat: map['Lat'],
  13913. lng: map['Lng'],
  13914. assignClientIPList: map['AssignClientIPList'] != null ? (map['AssignClientIPList'] as List).map((e)=>IPAddressInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13915. rTCStartingRoomId: map['RTCStartingRoomId'],
  13916. shareCodePrefix: map['ShareCodePrefix'],
  13917. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13918. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13919. );
  13920. }
  13921. Map<String, dynamic> toJson() {
  13922. final map = super.toJson();
  13923. if(serverCode != null)
  13924. map['ServerCode'] = serverCode;
  13925. map['IsMaster'] = isMaster;
  13926. if(name != null)
  13927. map['Name'] = name;
  13928. if(description != null)
  13929. map['Description'] = description;
  13930. map['Enable'] = enable;
  13931. map['ServerType'] = serverType.index;
  13932. if(serverUrl != null)
  13933. map['ServerUrl'] = serverUrl;
  13934. if(lat != null)
  13935. map['Lat'] = lat;
  13936. if(lng != null)
  13937. map['Lng'] = lng;
  13938. if(assignClientIPList != null)
  13939. map['AssignClientIPList'] = assignClientIPList;
  13940. map['RTCStartingRoomId'] = rTCStartingRoomId;
  13941. if(shareCodePrefix != null)
  13942. map['ShareCodePrefix'] = shareCodePrefix;
  13943. return map;
  13944. }
  13945. }
  13946. class DiagnosisResultDTO {
  13947. int index;
  13948. String? diagnosisResult;
  13949. DiagnosisResultDTO({
  13950. this.index = 0,
  13951. this.diagnosisResult,
  13952. });
  13953. factory DiagnosisResultDTO.fromJson(Map<String, dynamic> map) {
  13954. return DiagnosisResultDTO(
  13955. index: map['Index'],
  13956. diagnosisResult: map['DiagnosisResult'],
  13957. );
  13958. }
  13959. Map<String, dynamic> toJson() {
  13960. final map = Map<String, dynamic>();
  13961. map['Index'] = index;
  13962. if(diagnosisResult != null)
  13963. map['DiagnosisResult'] = diagnosisResult;
  13964. return map;
  13965. }
  13966. }
  13967. class DeviceOutputConfigDTO {
  13968. String? code;
  13969. String? name;
  13970. DeviceVideoOutputTypeEnum deviceVideoOutputType;
  13971. int videoWidth;
  13972. int videoHeight;
  13973. DeviceOutputConfigDTO({
  13974. this.code,
  13975. this.name,
  13976. this.deviceVideoOutputType = DeviceVideoOutputTypeEnum.MergedVideo,
  13977. this.videoWidth = 0,
  13978. this.videoHeight = 0,
  13979. });
  13980. factory DeviceOutputConfigDTO.fromJson(Map<String, dynamic> map) {
  13981. return DeviceOutputConfigDTO(
  13982. code: map['Code'],
  13983. name: map['Name'],
  13984. deviceVideoOutputType: DeviceVideoOutputTypeEnum.values.firstWhere((e) => e.index == map['DeviceVideoOutputType']),
  13985. videoWidth: map['VideoWidth'],
  13986. videoHeight: map['VideoHeight'],
  13987. );
  13988. }
  13989. Map<String, dynamic> toJson() {
  13990. final map = Map<String, dynamic>();
  13991. if(code != null)
  13992. map['Code'] = code;
  13993. if(name != null)
  13994. map['Name'] = name;
  13995. map['DeviceVideoOutputType'] = deviceVideoOutputType.index;
  13996. map['VideoWidth'] = videoWidth;
  13997. map['VideoHeight'] = videoHeight;
  13998. return map;
  13999. }
  14000. }
  14001. class ResolutionDTO {
  14002. String? shortCode;
  14003. int videoWidth;
  14004. int videoHeight;
  14005. ResolutionDTO({
  14006. this.shortCode,
  14007. this.videoWidth = 0,
  14008. this.videoHeight = 0,
  14009. });
  14010. factory ResolutionDTO.fromJson(Map<String, dynamic> map) {
  14011. return ResolutionDTO(
  14012. shortCode: map['ShortCode'],
  14013. videoWidth: map['VideoWidth'],
  14014. videoHeight: map['VideoHeight'],
  14015. );
  14016. }
  14017. Map<String, dynamic> toJson() {
  14018. final map = Map<String, dynamic>();
  14019. if(shortCode != null)
  14020. map['ShortCode'] = shortCode;
  14021. map['VideoWidth'] = videoWidth;
  14022. map['VideoHeight'] = videoHeight;
  14023. return map;
  14024. }
  14025. }
  14026. class BrandModelDetailDTO {
  14027. String? code;
  14028. String? brand;
  14029. String? model;
  14030. List<ResolutionDTO >? resolutions;
  14031. BrandModelDetailDTO({
  14032. this.code,
  14033. this.brand,
  14034. this.model,
  14035. this.resolutions,
  14036. });
  14037. factory BrandModelDetailDTO.fromJson(Map<String, dynamic> map) {
  14038. return BrandModelDetailDTO(
  14039. code: map['Code'],
  14040. brand: map['Brand'],
  14041. model: map['Model'],
  14042. resolutions: map['Resolutions'] != null ? (map['Resolutions'] as List).map((e)=>ResolutionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14043. );
  14044. }
  14045. Map<String, dynamic> toJson() {
  14046. final map = Map<String, dynamic>();
  14047. if(code != null)
  14048. map['Code'] = code;
  14049. if(brand != null)
  14050. map['Brand'] = brand;
  14051. if(model != null)
  14052. map['Model'] = model;
  14053. if(resolutions != null)
  14054. map['Resolutions'] = resolutions;
  14055. return map;
  14056. }
  14057. }
  14058. class DeviceLiveShareInfoDTO {
  14059. String? deviceCode;
  14060. String? shareUserCode;
  14061. String? shareUserName;
  14062. DateTime? shareTime;
  14063. DeviceLiveShareInfoDTO({
  14064. this.deviceCode,
  14065. this.shareUserCode,
  14066. this.shareUserName,
  14067. this.shareTime,
  14068. });
  14069. factory DeviceLiveShareInfoDTO.fromJson(Map<String, dynamic> map) {
  14070. return DeviceLiveShareInfoDTO(
  14071. deviceCode: map['DeviceCode'],
  14072. shareUserCode: map['ShareUserCode'],
  14073. shareUserName: map['ShareUserName'],
  14074. shareTime: map['ShareTime'] != null ? DateTime.parse(map['ShareTime']) : null,
  14075. );
  14076. }
  14077. Map<String, dynamic> toJson() {
  14078. final map = Map<String, dynamic>();
  14079. if(deviceCode != null)
  14080. map['DeviceCode'] = deviceCode;
  14081. if(shareUserCode != null)
  14082. map['ShareUserCode'] = shareUserCode;
  14083. if(shareUserName != null)
  14084. map['ShareUserName'] = shareUserName;
  14085. if(shareTime != null)
  14086. map['ShareTime'] = JsonRpcUtils.dateFormat(shareTime!);
  14087. return map;
  14088. }
  14089. }
  14090. class NameItemSettingInfoDTO {
  14091. String? name;
  14092. String? key;
  14093. NameItemSettingInfoDTO({
  14094. this.name,
  14095. this.key,
  14096. });
  14097. factory NameItemSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  14098. return NameItemSettingInfoDTO(
  14099. name: map['Name'],
  14100. key: map['Key'],
  14101. );
  14102. }
  14103. Map<String, dynamic> toJson() {
  14104. final map = Map<String, dynamic>();
  14105. if(name != null)
  14106. map['Name'] = name;
  14107. if(key != null)
  14108. map['Key'] = key;
  14109. return map;
  14110. }
  14111. }
  14112. class GroupSettingInfoDTO extends NameItemSettingInfoDTO{
  14113. List<NameItemSettingInfoDTO >? items;
  14114. GroupSettingInfoDTO({
  14115. this.items,
  14116. String? name,
  14117. String? key,
  14118. }) : super(
  14119. name: name,
  14120. key: key,
  14121. );
  14122. factory GroupSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  14123. return GroupSettingInfoDTO(
  14124. items: map['Items'] != null ? (map['Items'] as List).map((e)=>NameItemSettingInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14125. name: map['Name'],
  14126. key: map['Key'],
  14127. );
  14128. }
  14129. Map<String, dynamic> toJson() {
  14130. final map = super.toJson();
  14131. if(items != null)
  14132. map['Items'] = items;
  14133. return map;
  14134. }
  14135. }
  14136. class ListPageSettingInfoDTO extends NameItemSettingInfoDTO{
  14137. List<GroupSettingInfoDTO >? groups;
  14138. ListPageSettingInfoDTO({
  14139. this.groups,
  14140. String? name,
  14141. String? key,
  14142. }) : super(
  14143. name: name,
  14144. key: key,
  14145. );
  14146. factory ListPageSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  14147. return ListPageSettingInfoDTO(
  14148. groups: map['Groups'] != null ? (map['Groups'] as List).map((e)=>GroupSettingInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14149. name: map['Name'],
  14150. key: map['Key'],
  14151. );
  14152. }
  14153. Map<String, dynamic> toJson() {
  14154. final map = super.toJson();
  14155. if(groups != null)
  14156. map['Groups'] = groups;
  14157. return map;
  14158. }
  14159. }
  14160. class SystemSettingInfoDTO {
  14161. String? selectedListPageKey;
  14162. String? selectedGroupKey;
  14163. List<ListPageSettingInfoDTO >? listPages;
  14164. String? applyLicenseResult;
  14165. SystemSettingInfoDTO({
  14166. this.selectedListPageKey,
  14167. this.selectedGroupKey,
  14168. this.listPages,
  14169. this.applyLicenseResult,
  14170. });
  14171. factory SystemSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  14172. return SystemSettingInfoDTO(
  14173. selectedListPageKey: map['SelectedListPageKey'],
  14174. selectedGroupKey: map['SelectedGroupKey'],
  14175. listPages: map['ListPages'] != null ? (map['ListPages'] as List).map((e)=>ListPageSettingInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14176. applyLicenseResult: map['ApplyLicenseResult'],
  14177. );
  14178. }
  14179. Map<String, dynamic> toJson() {
  14180. final map = Map<String, dynamic>();
  14181. if(selectedListPageKey != null)
  14182. map['SelectedListPageKey'] = selectedListPageKey;
  14183. if(selectedGroupKey != null)
  14184. map['SelectedGroupKey'] = selectedGroupKey;
  14185. if(listPages != null)
  14186. map['ListPages'] = listPages;
  14187. if(applyLicenseResult != null)
  14188. map['ApplyLicenseResult'] = applyLicenseResult;
  14189. return map;
  14190. }
  14191. }
  14192. class CommandSettingInfoDTO extends NameItemSettingInfoDTO{
  14193. String? commandDescription;
  14194. CommandSettingInfoDTO({
  14195. this.commandDescription,
  14196. String? name,
  14197. String? key,
  14198. }) : super(
  14199. name: name,
  14200. key: key,
  14201. );
  14202. factory CommandSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  14203. return CommandSettingInfoDTO(
  14204. commandDescription: map['CommandDescription'],
  14205. name: map['Name'],
  14206. key: map['Key'],
  14207. );
  14208. }
  14209. Map<String, dynamic> toJson() {
  14210. final map = super.toJson();
  14211. if(commandDescription != null)
  14212. map['CommandDescription'] = commandDescription;
  14213. return map;
  14214. }
  14215. }
  14216. class ExtendCommandSettingInfoDTO extends CommandSettingInfoDTO{
  14217. String? additionalDescription;
  14218. String? value;
  14219. ExtendCommandSettingInfoDTO({
  14220. this.additionalDescription,
  14221. this.value,
  14222. String? commandDescription,
  14223. String? name,
  14224. String? key,
  14225. }) : super(
  14226. commandDescription: commandDescription,
  14227. name: name,
  14228. key: key,
  14229. );
  14230. factory ExtendCommandSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  14231. return ExtendCommandSettingInfoDTO(
  14232. additionalDescription: map['AdditionalDescription'],
  14233. value: map['Value'],
  14234. commandDescription: map['CommandDescription'],
  14235. name: map['Name'],
  14236. key: map['Key'],
  14237. );
  14238. }
  14239. Map<String, dynamic> toJson() {
  14240. final map = super.toJson();
  14241. if(additionalDescription != null)
  14242. map['AdditionalDescription'] = additionalDescription;
  14243. if(value != null)
  14244. map['Value'] = value;
  14245. return map;
  14246. }
  14247. }
  14248. class CommandResultInfoDTO extends NameItemSettingInfoDTO{
  14249. String? result;
  14250. CommandResultInfoDTO({
  14251. this.result,
  14252. String? name,
  14253. String? key,
  14254. }) : super(
  14255. name: name,
  14256. key: key,
  14257. );
  14258. factory CommandResultInfoDTO.fromJson(Map<String, dynamic> map) {
  14259. return CommandResultInfoDTO(
  14260. result: map['Result'],
  14261. name: map['Name'],
  14262. key: map['Key'],
  14263. );
  14264. }
  14265. Map<String, dynamic> toJson() {
  14266. final map = super.toJson();
  14267. if(result != null)
  14268. map['Result'] = result;
  14269. return map;
  14270. }
  14271. }
  14272. class FeatureItemInfoDTO extends NameItemSettingInfoDTO{
  14273. String? details;
  14274. String? status;
  14275. FeatureItemInfoDTO({
  14276. this.details,
  14277. this.status,
  14278. String? name,
  14279. String? key,
  14280. }) : super(
  14281. name: name,
  14282. key: key,
  14283. );
  14284. factory FeatureItemInfoDTO.fromJson(Map<String, dynamic> map) {
  14285. return FeatureItemInfoDTO(
  14286. details: map['Details'],
  14287. status: map['Status'],
  14288. name: map['Name'],
  14289. key: map['Key'],
  14290. );
  14291. }
  14292. Map<String, dynamic> toJson() {
  14293. final map = super.toJson();
  14294. if(details != null)
  14295. map['Details'] = details;
  14296. if(status != null)
  14297. map['Status'] = status;
  14298. return map;
  14299. }
  14300. }
  14301. class ApplyLicenseInfoDTO extends NameItemSettingInfoDTO{
  14302. String? applyLicenseDescription;
  14303. ApplyLicenseInfoDTO({
  14304. this.applyLicenseDescription,
  14305. String? name,
  14306. String? key,
  14307. }) : super(
  14308. name: name,
  14309. key: key,
  14310. );
  14311. factory ApplyLicenseInfoDTO.fromJson(Map<String, dynamic> map) {
  14312. return ApplyLicenseInfoDTO(
  14313. applyLicenseDescription: map['ApplyLicenseDescription'],
  14314. name: map['Name'],
  14315. key: map['Key'],
  14316. );
  14317. }
  14318. Map<String, dynamic> toJson() {
  14319. final map = super.toJson();
  14320. if(applyLicenseDescription != null)
  14321. map['ApplyLicenseDescription'] = applyLicenseDescription;
  14322. return map;
  14323. }
  14324. }
  14325. class BoolParameterInfoDTO extends NameItemSettingInfoDTO{
  14326. bool value;
  14327. BoolParameterInfoDTO({
  14328. this.value = false,
  14329. String? name,
  14330. String? key,
  14331. }) : super(
  14332. name: name,
  14333. key: key,
  14334. );
  14335. factory BoolParameterInfoDTO.fromJson(Map<String, dynamic> map) {
  14336. return BoolParameterInfoDTO(
  14337. value: map['Value'],
  14338. name: map['Name'],
  14339. key: map['Key'],
  14340. );
  14341. }
  14342. Map<String, dynamic> toJson() {
  14343. final map = super.toJson();
  14344. map['Value'] = value;
  14345. return map;
  14346. }
  14347. }
  14348. class StringParameterInfoDTO extends NameItemSettingInfoDTO{
  14349. String? value;
  14350. StringParameterInfoDTO({
  14351. this.value,
  14352. String? name,
  14353. String? key,
  14354. }) : super(
  14355. name: name,
  14356. key: key,
  14357. );
  14358. factory StringParameterInfoDTO.fromJson(Map<String, dynamic> map) {
  14359. return StringParameterInfoDTO(
  14360. value: map['Value'],
  14361. name: map['Name'],
  14362. key: map['Key'],
  14363. );
  14364. }
  14365. Map<String, dynamic> toJson() {
  14366. final map = super.toJson();
  14367. if(value != null)
  14368. map['Value'] = value;
  14369. return map;
  14370. }
  14371. }
  14372. class ChoiceParameterInfoDTO extends NameItemSettingInfoDTO{
  14373. String? value;
  14374. List<String >? items;
  14375. ChoiceParameterInfoDTO({
  14376. this.value,
  14377. this.items,
  14378. String? name,
  14379. String? key,
  14380. }) : super(
  14381. name: name,
  14382. key: key,
  14383. );
  14384. factory ChoiceParameterInfoDTO.fromJson(Map<String, dynamic> map) {
  14385. return ChoiceParameterInfoDTO(
  14386. value: map['Value'],
  14387. items: map['Items'] != null ? map['Items'].cast<String>().toList() : null,
  14388. name: map['Name'],
  14389. key: map['Key'],
  14390. );
  14391. }
  14392. Map<String, dynamic> toJson() {
  14393. final map = super.toJson();
  14394. if(value != null)
  14395. map['Value'] = value;
  14396. if(items != null)
  14397. map['Items'] = items;
  14398. return map;
  14399. }
  14400. }
  14401. class CommandResultPageSettingInfoDTO extends ListPageSettingInfoDTO{
  14402. String? result;
  14403. CommandResultPageSettingInfoDTO({
  14404. this.result,
  14405. List<GroupSettingInfoDTO >? groups,
  14406. String? name,
  14407. String? key,
  14408. }) : super(
  14409. groups: groups,
  14410. name: name,
  14411. key: key,
  14412. );
  14413. factory CommandResultPageSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  14414. return CommandResultPageSettingInfoDTO(
  14415. result: map['Result'],
  14416. groups: map['Groups'] != null ? (map['Groups'] as List).map((e)=>GroupSettingInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14417. name: map['Name'],
  14418. key: map['Key'],
  14419. );
  14420. }
  14421. Map<String, dynamic> toJson() {
  14422. final map = super.toJson();
  14423. if(result != null)
  14424. map['Result'] = result;
  14425. return map;
  14426. }
  14427. }
  14428. class CourseAlbumDTO {
  14429. String? code;
  14430. List<String >? courseCodes;
  14431. String? cover;
  14432. String? introduction;
  14433. List<String >? courseLabelCodes;
  14434. CourseAlbumDTO({
  14435. this.code,
  14436. this.courseCodes,
  14437. this.cover,
  14438. this.introduction,
  14439. this.courseLabelCodes,
  14440. });
  14441. factory CourseAlbumDTO.fromJson(Map<String, dynamic> map) {
  14442. return CourseAlbumDTO(
  14443. code: map['Code'],
  14444. courseCodes: map['CourseCodes'] != null ? map['CourseCodes'].cast<String>().toList() : null,
  14445. cover: map['Cover'],
  14446. introduction: map['Introduction'],
  14447. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  14448. );
  14449. }
  14450. Map<String, dynamic> toJson() {
  14451. final map = Map<String, dynamic>();
  14452. if(code != null)
  14453. map['Code'] = code;
  14454. if(courseCodes != null)
  14455. map['CourseCodes'] = courseCodes;
  14456. if(cover != null)
  14457. map['Cover'] = cover;
  14458. if(introduction != null)
  14459. map['Introduction'] = introduction;
  14460. if(courseLabelCodes != null)
  14461. map['CourseLabelCodes'] = courseLabelCodes;
  14462. return map;
  14463. }
  14464. }
  14465. class BoardPointDTO {
  14466. double x;
  14467. double y;
  14468. BoardPointDTO({
  14469. this.x = 0,
  14470. this.y = 0,
  14471. });
  14472. factory BoardPointDTO.fromJson(Map<String, dynamic> map) {
  14473. return BoardPointDTO(
  14474. x: double.parse(map['X'].toString()),
  14475. y: double.parse(map['Y'].toString()),
  14476. );
  14477. }
  14478. Map<String, dynamic> toJson() {
  14479. final map = Map<String, dynamic>();
  14480. map['X'] = x;
  14481. map['Y'] = y;
  14482. return map;
  14483. }
  14484. }
  14485. class ConsultationExpertDTO extends UserBaseDTO{
  14486. ConsultationExpertDTO({
  14487. String? userCode,
  14488. String? userName,
  14489. String? headImageUrl,
  14490. DateTime? createTime,
  14491. DateTime? updateTime,
  14492. }) : super(
  14493. userCode: userCode,
  14494. userName: userName,
  14495. headImageUrl: headImageUrl,
  14496. createTime: createTime,
  14497. updateTime: updateTime,
  14498. );
  14499. factory ConsultationExpertDTO.fromJson(Map<String, dynamic> map) {
  14500. return ConsultationExpertDTO(
  14501. userCode: map['UserCode'],
  14502. userName: map['UserName'],
  14503. headImageUrl: map['HeadImageUrl'],
  14504. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  14505. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  14506. );
  14507. }
  14508. Map<String, dynamic> toJson() {
  14509. final map = super.toJson();
  14510. return map;
  14511. }
  14512. }
  14513. class AdminStatisticRecordDTO extends BaseDTO{
  14514. String? adminStatisticRecordCode;
  14515. String? adminStatisticCode;
  14516. String? adminStatisticName;
  14517. String? adminCode;
  14518. String? serverHost;
  14519. DateTime? lastestUpdateTime;
  14520. DateTime? nextHandleTime;
  14521. List<String >? xAxisDatas;
  14522. List<List<double> >? yAxisDatas;
  14523. List<StatisticInfoDTO >? children;
  14524. String? statisticJsonData;
  14525. StatisticsPlatformEnum statisticsPlatform;
  14526. AdminStatisticRecordDTO({
  14527. this.adminStatisticRecordCode,
  14528. this.adminStatisticCode,
  14529. this.adminStatisticName,
  14530. this.adminCode,
  14531. this.serverHost,
  14532. this.lastestUpdateTime,
  14533. this.nextHandleTime,
  14534. this.xAxisDatas,
  14535. this.yAxisDatas,
  14536. this.children,
  14537. this.statisticJsonData,
  14538. this.statisticsPlatform = StatisticsPlatformEnum.Management,
  14539. DateTime? createTime,
  14540. DateTime? updateTime,
  14541. }) : super(
  14542. createTime: createTime,
  14543. updateTime: updateTime,
  14544. );
  14545. factory AdminStatisticRecordDTO.fromJson(Map<String, dynamic> map) {
  14546. return AdminStatisticRecordDTO(
  14547. adminStatisticRecordCode: map['AdminStatisticRecordCode'],
  14548. adminStatisticCode: map['AdminStatisticCode'],
  14549. adminStatisticName: map['AdminStatisticName'],
  14550. adminCode: map['AdminCode'],
  14551. serverHost: map['ServerHost'],
  14552. lastestUpdateTime: map['LastestUpdateTime'] != null ? DateTime.parse(map['LastestUpdateTime']) : null,
  14553. nextHandleTime: map['NextHandleTime'] != null ? DateTime.parse(map['NextHandleTime']) : null,
  14554. xAxisDatas: map['XAxisDatas'] != null ? map['XAxisDatas'].cast<String>().toList() : null,
  14555. yAxisDatas: map['YAxisDatas'] != null ? map['YAxisDatas'].cast<List<double>>().toList() : null,
  14556. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14557. statisticJsonData: map['StatisticJsonData'],
  14558. statisticsPlatform: StatisticsPlatformEnum.values.firstWhere((e) => e.index == map['StatisticsPlatform']),
  14559. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  14560. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  14561. );
  14562. }
  14563. Map<String, dynamic> toJson() {
  14564. final map = super.toJson();
  14565. if(adminStatisticRecordCode != null)
  14566. map['AdminStatisticRecordCode'] = adminStatisticRecordCode;
  14567. if(adminStatisticCode != null)
  14568. map['AdminStatisticCode'] = adminStatisticCode;
  14569. if(adminStatisticName != null)
  14570. map['AdminStatisticName'] = adminStatisticName;
  14571. if(adminCode != null)
  14572. map['AdminCode'] = adminCode;
  14573. if(serverHost != null)
  14574. map['ServerHost'] = serverHost;
  14575. if(lastestUpdateTime != null)
  14576. map['LastestUpdateTime'] = JsonRpcUtils.dateFormat(lastestUpdateTime!);
  14577. if(nextHandleTime != null)
  14578. map['NextHandleTime'] = JsonRpcUtils.dateFormat(nextHandleTime!);
  14579. if(xAxisDatas != null)
  14580. map['XAxisDatas'] = xAxisDatas;
  14581. if(yAxisDatas != null)
  14582. map['YAxisDatas'] = yAxisDatas;
  14583. if(children != null)
  14584. map['Children'] = children;
  14585. if(statisticJsonData != null)
  14586. map['StatisticJsonData'] = statisticJsonData;
  14587. map['StatisticsPlatform'] = statisticsPlatform.index;
  14588. return map;
  14589. }
  14590. }
  14591. class CMSStatisticRecordDTO extends AdminStatisticRecordDTO{
  14592. CMSStatisticRecordDTO({
  14593. String? statisticJsonData,
  14594. String? adminStatisticRecordCode,
  14595. String? adminStatisticCode,
  14596. String? adminStatisticName,
  14597. String? adminCode,
  14598. String? serverHost,
  14599. DateTime? lastestUpdateTime,
  14600. DateTime? nextHandleTime,
  14601. List<String >? xAxisDatas,
  14602. List<List<double> >? yAxisDatas,
  14603. List<StatisticInfoDTO >? children,
  14604. StatisticsPlatformEnum statisticsPlatform = StatisticsPlatformEnum.Management,
  14605. DateTime? createTime,
  14606. DateTime? updateTime,
  14607. }) : super(
  14608. adminStatisticRecordCode: adminStatisticRecordCode,
  14609. adminStatisticCode: adminStatisticCode,
  14610. adminStatisticName: adminStatisticName,
  14611. adminCode: adminCode,
  14612. serverHost: serverHost,
  14613. lastestUpdateTime: lastestUpdateTime,
  14614. nextHandleTime: nextHandleTime,
  14615. xAxisDatas: xAxisDatas,
  14616. yAxisDatas: yAxisDatas,
  14617. children: children,
  14618. statisticJsonData: statisticJsonData,
  14619. statisticsPlatform: statisticsPlatform,
  14620. createTime: createTime,
  14621. updateTime: updateTime,
  14622. );
  14623. factory CMSStatisticRecordDTO.fromJson(Map<String, dynamic> map) {
  14624. return CMSStatisticRecordDTO(
  14625. statisticJsonData: map['StatisticJsonData'],
  14626. adminStatisticRecordCode: map['AdminStatisticRecordCode'],
  14627. adminStatisticCode: map['AdminStatisticCode'],
  14628. adminStatisticName: map['AdminStatisticName'],
  14629. adminCode: map['AdminCode'],
  14630. serverHost: map['ServerHost'],
  14631. lastestUpdateTime: map['LastestUpdateTime'] != null ? DateTime.parse(map['LastestUpdateTime']) : null,
  14632. nextHandleTime: map['NextHandleTime'] != null ? DateTime.parse(map['NextHandleTime']) : null,
  14633. xAxisDatas: map['XAxisDatas'] != null ? map['XAxisDatas'].cast<String>().toList() : null,
  14634. yAxisDatas: map['YAxisDatas'] != null ? map['YAxisDatas'].cast<List<double>>().toList() : null,
  14635. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14636. statisticsPlatform: StatisticsPlatformEnum.values.firstWhere((e) => e.index == map['StatisticsPlatform']),
  14637. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  14638. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  14639. );
  14640. }
  14641. Map<String, dynamic> toJson() {
  14642. final map = super.toJson();
  14643. return map;
  14644. }
  14645. }
  14646. class CMSTemplateDTO extends BaseDTO{
  14647. String? cMSTemplateCode;
  14648. String? cMSTemplateName;
  14649. CMSTemplateStatusTypeEnum cMSTemplateStateType;
  14650. String? cMSTemplateJson;
  14651. bool isDefault;
  14652. List<String >? organizationCodes;
  14653. String? cMSBgColor;
  14654. String? cMSBgImg;
  14655. bool isShowTop;
  14656. String? cMSBorderColor;
  14657. int cMSBorderShadow;
  14658. CMSTemplateDTO({
  14659. this.cMSTemplateCode,
  14660. this.cMSTemplateName,
  14661. this.cMSTemplateStateType = CMSTemplateStatusTypeEnum.UnPublished,
  14662. this.cMSTemplateJson,
  14663. this.isDefault = false,
  14664. this.organizationCodes,
  14665. this.cMSBgColor,
  14666. this.cMSBgImg,
  14667. this.isShowTop = false,
  14668. this.cMSBorderColor,
  14669. this.cMSBorderShadow = 0,
  14670. DateTime? createTime,
  14671. DateTime? updateTime,
  14672. }) : super(
  14673. createTime: createTime,
  14674. updateTime: updateTime,
  14675. );
  14676. factory CMSTemplateDTO.fromJson(Map<String, dynamic> map) {
  14677. return CMSTemplateDTO(
  14678. cMSTemplateCode: map['CMSTemplateCode'],
  14679. cMSTemplateName: map['CMSTemplateName'],
  14680. cMSTemplateStateType: CMSTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['CMSTemplateStateType']),
  14681. cMSTemplateJson: map['CMSTemplateJson'],
  14682. isDefault: map['IsDefault'],
  14683. organizationCodes: map['OrganizationCodes'] != null ? map['OrganizationCodes'].cast<String>().toList() : null,
  14684. cMSBgColor: map['CMSBgColor'],
  14685. cMSBgImg: map['CMSBgImg'],
  14686. isShowTop: map['IsShowTop'],
  14687. cMSBorderColor: map['CMSBorderColor'],
  14688. cMSBorderShadow: map['CMSBorderShadow'],
  14689. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  14690. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  14691. );
  14692. }
  14693. Map<String, dynamic> toJson() {
  14694. final map = super.toJson();
  14695. if(cMSTemplateCode != null)
  14696. map['CMSTemplateCode'] = cMSTemplateCode;
  14697. if(cMSTemplateName != null)
  14698. map['CMSTemplateName'] = cMSTemplateName;
  14699. map['CMSTemplateStateType'] = cMSTemplateStateType.index;
  14700. if(cMSTemplateJson != null)
  14701. map['CMSTemplateJson'] = cMSTemplateJson;
  14702. map['IsDefault'] = isDefault;
  14703. if(organizationCodes != null)
  14704. map['OrganizationCodes'] = organizationCodes;
  14705. if(cMSBgColor != null)
  14706. map['CMSBgColor'] = cMSBgColor;
  14707. if(cMSBgImg != null)
  14708. map['CMSBgImg'] = cMSBgImg;
  14709. map['IsShowTop'] = isShowTop;
  14710. if(cMSBorderColor != null)
  14711. map['CMSBorderColor'] = cMSBorderColor;
  14712. map['CMSBorderShadow'] = cMSBorderShadow;
  14713. return map;
  14714. }
  14715. }
  14716. class StatisticAnnouncesDTO {
  14717. AnnouncementTypeEnum announcementType;
  14718. DateTime? contentTime;
  14719. String? content;
  14720. CMSMessageStatusEnum status;
  14721. StatisticAnnouncesDTO({
  14722. this.announcementType = AnnouncementTypeEnum.Broadcast,
  14723. this.contentTime,
  14724. this.content,
  14725. this.status = CMSMessageStatusEnum.UnRead,
  14726. });
  14727. factory StatisticAnnouncesDTO.fromJson(Map<String, dynamic> map) {
  14728. return StatisticAnnouncesDTO(
  14729. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  14730. contentTime: map['ContentTime'] != null ? DateTime.parse(map['ContentTime']) : null,
  14731. content: map['Content'],
  14732. status: CMSMessageStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  14733. );
  14734. }
  14735. Map<String, dynamic> toJson() {
  14736. final map = Map<String, dynamic>();
  14737. map['AnnouncementType'] = announcementType.index;
  14738. if(contentTime != null)
  14739. map['ContentTime'] = JsonRpcUtils.dateFormat(contentTime!);
  14740. if(content != null)
  14741. map['Content'] = content;
  14742. map['Status'] = status.index;
  14743. return map;
  14744. }
  14745. }
  14746. class StatisticDevicesDTO {
  14747. String? imgUrl;
  14748. String? name;
  14749. String? transferUrl;
  14750. StatisticDevicesDTO({
  14751. this.imgUrl,
  14752. this.name,
  14753. this.transferUrl,
  14754. });
  14755. factory StatisticDevicesDTO.fromJson(Map<String, dynamic> map) {
  14756. return StatisticDevicesDTO(
  14757. imgUrl: map['ImgUrl'],
  14758. name: map['Name'],
  14759. transferUrl: map['TransferUrl'],
  14760. );
  14761. }
  14762. Map<String, dynamic> toJson() {
  14763. final map = Map<String, dynamic>();
  14764. if(imgUrl != null)
  14765. map['ImgUrl'] = imgUrl;
  14766. if(name != null)
  14767. map['Name'] = name;
  14768. if(transferUrl != null)
  14769. map['TransferUrl'] = transferUrl;
  14770. return map;
  14771. }
  14772. }
  14773. class StatisticDownloadDTO {
  14774. String? imgUrl;
  14775. String? transferUrl;
  14776. StatisticDownloadDTO({
  14777. this.imgUrl,
  14778. this.transferUrl,
  14779. });
  14780. factory StatisticDownloadDTO.fromJson(Map<String, dynamic> map) {
  14781. return StatisticDownloadDTO(
  14782. imgUrl: map['ImgUrl'],
  14783. transferUrl: map['TransferUrl'],
  14784. );
  14785. }
  14786. Map<String, dynamic> toJson() {
  14787. final map = Map<String, dynamic>();
  14788. if(imgUrl != null)
  14789. map['ImgUrl'] = imgUrl;
  14790. if(transferUrl != null)
  14791. map['TransferUrl'] = transferUrl;
  14792. return map;
  14793. }
  14794. }
  14795. class StatisticMessagesDTO {
  14796. String? content;
  14797. DateTime? time;
  14798. String? transferUrl;
  14799. CMSMessageStatusEnum status;
  14800. StatisticMessagesDTO({
  14801. this.content,
  14802. this.time,
  14803. this.transferUrl,
  14804. this.status = CMSMessageStatusEnum.UnRead,
  14805. });
  14806. factory StatisticMessagesDTO.fromJson(Map<String, dynamic> map) {
  14807. return StatisticMessagesDTO(
  14808. content: map['Content'],
  14809. time: map['Time'] != null ? DateTime.parse(map['Time']) : null,
  14810. transferUrl: map['TransferUrl'],
  14811. status: CMSMessageStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  14812. );
  14813. }
  14814. Map<String, dynamic> toJson() {
  14815. final map = Map<String, dynamic>();
  14816. if(content != null)
  14817. map['Content'] = content;
  14818. if(time != null)
  14819. map['Time'] = JsonRpcUtils.dateFormat(time!);
  14820. if(transferUrl != null)
  14821. map['TransferUrl'] = transferUrl;
  14822. map['Status'] = status.index;
  14823. return map;
  14824. }
  14825. }
  14826. class StatisticMessageInfoDTO extends StatisticMessagesDTO{
  14827. String? userCode;
  14828. String? messageCode;
  14829. StatisticMessageInfoDTO({
  14830. this.userCode,
  14831. this.messageCode,
  14832. String? content,
  14833. DateTime? time,
  14834. String? transferUrl,
  14835. CMSMessageStatusEnum status = CMSMessageStatusEnum.UnRead,
  14836. }) : super(
  14837. content: content,
  14838. time: time,
  14839. transferUrl: transferUrl,
  14840. status: status,
  14841. );
  14842. factory StatisticMessageInfoDTO.fromJson(Map<String, dynamic> map) {
  14843. return StatisticMessageInfoDTO(
  14844. userCode: map['UserCode'],
  14845. messageCode: map['MessageCode'],
  14846. content: map['Content'],
  14847. time: map['Time'] != null ? DateTime.parse(map['Time']) : null,
  14848. transferUrl: map['TransferUrl'],
  14849. status: CMSMessageStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  14850. );
  14851. }
  14852. Map<String, dynamic> toJson() {
  14853. final map = super.toJson();
  14854. if(userCode != null)
  14855. map['UserCode'] = userCode;
  14856. if(messageCode != null)
  14857. map['MessageCode'] = messageCode;
  14858. return map;
  14859. }
  14860. }
  14861. class StatisticMyPendingDTO {
  14862. String? title;
  14863. double rate;
  14864. StatisticMyPendingDTO({
  14865. this.title,
  14866. this.rate = 0,
  14867. });
  14868. factory StatisticMyPendingDTO.fromJson(Map<String, dynamic> map) {
  14869. return StatisticMyPendingDTO(
  14870. title: map['Title'],
  14871. rate: double.parse(map['Rate'].toString()),
  14872. );
  14873. }
  14874. Map<String, dynamic> toJson() {
  14875. final map = Map<String, dynamic>();
  14876. if(title != null)
  14877. map['Title'] = title;
  14878. map['Rate'] = rate;
  14879. return map;
  14880. }
  14881. }
  14882. class StatisticMyStandingDTO {
  14883. String? title;
  14884. int data;
  14885. String? unit;
  14886. String? transferUrl;
  14887. StatisticMyStandingDTO({
  14888. this.title,
  14889. this.data = 0,
  14890. this.unit,
  14891. this.transferUrl,
  14892. });
  14893. factory StatisticMyStandingDTO.fromJson(Map<String, dynamic> map) {
  14894. return StatisticMyStandingDTO(
  14895. title: map['Title'],
  14896. data: map['Data'],
  14897. unit: map['Unit'],
  14898. transferUrl: map['TransferUrl'],
  14899. );
  14900. }
  14901. Map<String, dynamic> toJson() {
  14902. final map = Map<String, dynamic>();
  14903. if(title != null)
  14904. map['Title'] = title;
  14905. map['Data'] = data;
  14906. if(unit != null)
  14907. map['Unit'] = unit;
  14908. if(transferUrl != null)
  14909. map['TransferUrl'] = transferUrl;
  14910. return map;
  14911. }
  14912. }
  14913. class StatisticPlatActivityDTO {
  14914. String? imgUrl;
  14915. String? transferUrl;
  14916. StatisticPlatActivityDTO({
  14917. this.imgUrl,
  14918. this.transferUrl,
  14919. });
  14920. factory StatisticPlatActivityDTO.fromJson(Map<String, dynamic> map) {
  14921. return StatisticPlatActivityDTO(
  14922. imgUrl: map['ImgUrl'],
  14923. transferUrl: map['TransferUrl'],
  14924. );
  14925. }
  14926. Map<String, dynamic> toJson() {
  14927. final map = Map<String, dynamic>();
  14928. if(imgUrl != null)
  14929. map['ImgUrl'] = imgUrl;
  14930. if(transferUrl != null)
  14931. map['TransferUrl'] = transferUrl;
  14932. return map;
  14933. }
  14934. }
  14935. class StatisticUpdateCourseDTO {
  14936. String? title;
  14937. String? teacher;
  14938. String? thumbnail;
  14939. String? transferUrl;
  14940. StatisticUpdateCourseDTO({
  14941. this.title,
  14942. this.teacher,
  14943. this.thumbnail,
  14944. this.transferUrl,
  14945. });
  14946. factory StatisticUpdateCourseDTO.fromJson(Map<String, dynamic> map) {
  14947. return StatisticUpdateCourseDTO(
  14948. title: map['Title'],
  14949. teacher: map['Teacher'],
  14950. thumbnail: map['Thumbnail'],
  14951. transferUrl: map['TransferUrl'],
  14952. );
  14953. }
  14954. Map<String, dynamic> toJson() {
  14955. final map = Map<String, dynamic>();
  14956. if(title != null)
  14957. map['Title'] = title;
  14958. if(teacher != null)
  14959. map['Teacher'] = teacher;
  14960. if(thumbnail != null)
  14961. map['Thumbnail'] = thumbnail;
  14962. if(transferUrl != null)
  14963. map['TransferUrl'] = transferUrl;
  14964. return map;
  14965. }
  14966. }
  14967. class BaseFeatureItemDTO extends BaseFeatureItemBaseDTO<BaseFeatureItemDTO>{
  14968. BaseFeatureItemDTO(
  14969. );
  14970. factory BaseFeatureItemDTO.fromJson(Map<String, dynamic> map) {
  14971. return BaseFeatureItemDTO(
  14972. );
  14973. }
  14974. Map<String, dynamic> toJson() {
  14975. final map = super.toJson();
  14976. return map;
  14977. }
  14978. }
  14979. class ArrowCommentItemDTO {
  14980. ArrowOrientation arrowOrientation;
  14981. String? text;
  14982. ArrowCommentItemDTO({
  14983. this.arrowOrientation = ArrowOrientation.Down,
  14984. this.text,
  14985. });
  14986. factory ArrowCommentItemDTO.fromJson(Map<String, dynamic> map) {
  14987. return ArrowCommentItemDTO(
  14988. arrowOrientation: ArrowOrientation.values.firstWhere((e) => e.index == map['ArrowOrientation']),
  14989. text: map['Text'],
  14990. );
  14991. }
  14992. Map<String, dynamic> toJson() {
  14993. final map = Map<String, dynamic>();
  14994. map['ArrowOrientation'] = arrowOrientation.index;
  14995. if(text != null)
  14996. map['Text'] = text;
  14997. return map;
  14998. }
  14999. }
  15000. class UserDefinedCommentsDTO {
  15001. String? userId;
  15002. List<UserDefinedCommentDataDTO >? commentItems;
  15003. UserDefinedCommentsDTO({
  15004. this.userId,
  15005. this.commentItems,
  15006. });
  15007. factory UserDefinedCommentsDTO.fromJson(Map<String, dynamic> map) {
  15008. return UserDefinedCommentsDTO(
  15009. userId: map['UserId'],
  15010. commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>UserDefinedCommentDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  15011. );
  15012. }
  15013. Map<String, dynamic> toJson() {
  15014. final map = Map<String, dynamic>();
  15015. if(userId != null)
  15016. map['UserId'] = userId;
  15017. if(commentItems != null)
  15018. map['CommentItems'] = commentItems;
  15019. return map;
  15020. }
  15021. }
  15022. class FunctionalityInfo {
  15023. String? functionalityName;
  15024. FunctionalityStatusEnum functionalityStatus;
  15025. FunctionalityInfo({
  15026. this.functionalityName,
  15027. this.functionalityStatus = FunctionalityStatusEnum.DemoMode,
  15028. });
  15029. factory FunctionalityInfo.fromJson(Map<String, dynamic> map) {
  15030. return FunctionalityInfo(
  15031. functionalityName: map['FunctionalityName'],
  15032. functionalityStatus: FunctionalityStatusEnum.values.firstWhere((e) => e.index == map['FunctionalityStatus']),
  15033. );
  15034. }
  15035. Map<String, dynamic> toJson() {
  15036. final map = Map<String, dynamic>();
  15037. if(functionalityName != null)
  15038. map['FunctionalityName'] = functionalityName;
  15039. map['FunctionalityStatus'] = functionalityStatus.index;
  15040. return map;
  15041. }
  15042. }
  15043. class AdminStatisticDTO extends BaseDTO{
  15044. String? adminStatisticCode;
  15045. String? name;
  15046. String? description;
  15047. String? intervalSetting;
  15048. bool enabled;
  15049. String? handleClass;
  15050. String? serverHost;
  15051. AdminStatisticDTO({
  15052. this.adminStatisticCode,
  15053. this.name,
  15054. this.description,
  15055. this.intervalSetting,
  15056. this.enabled = false,
  15057. this.handleClass,
  15058. this.serverHost,
  15059. DateTime? createTime,
  15060. DateTime? updateTime,
  15061. }) : super(
  15062. createTime: createTime,
  15063. updateTime: updateTime,
  15064. );
  15065. factory AdminStatisticDTO.fromJson(Map<String, dynamic> map) {
  15066. return AdminStatisticDTO(
  15067. adminStatisticCode: map['AdminStatisticCode'],
  15068. name: map['Name'],
  15069. description: map['Description'],
  15070. intervalSetting: map['IntervalSetting'],
  15071. enabled: map['Enabled'],
  15072. handleClass: map['HandleClass'],
  15073. serverHost: map['ServerHost'],
  15074. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  15075. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  15076. );
  15077. }
  15078. Map<String, dynamic> toJson() {
  15079. final map = super.toJson();
  15080. if(adminStatisticCode != null)
  15081. map['AdminStatisticCode'] = adminStatisticCode;
  15082. if(name != null)
  15083. map['Name'] = name;
  15084. if(description != null)
  15085. map['Description'] = description;
  15086. if(intervalSetting != null)
  15087. map['IntervalSetting'] = intervalSetting;
  15088. map['Enabled'] = enabled;
  15089. if(handleClass != null)
  15090. map['HandleClass'] = handleClass;
  15091. if(serverHost != null)
  15092. map['ServerHost'] = serverHost;
  15093. return map;
  15094. }
  15095. }
  15096. class AdminFeatureItemDTO extends BaseFeatureItemBaseDTO<AdminFeatureItemDTO>{
  15097. AdminFeatureItemDTO(
  15098. );
  15099. factory AdminFeatureItemDTO.fromJson(Map<String, dynamic> map) {
  15100. return AdminFeatureItemDTO(
  15101. );
  15102. }
  15103. Map<String, dynamic> toJson() {
  15104. final map = super.toJson();
  15105. return map;
  15106. }
  15107. }
  15108. class AdminAuthorityGroupDTO extends BaseDTO{
  15109. String? adminGroupCode;
  15110. String? description;
  15111. List<String >? adminCodes;
  15112. List<String >? features;
  15113. String? createAdmin;
  15114. AdminAuthorityGroupDTO({
  15115. this.adminGroupCode,
  15116. this.description,
  15117. this.adminCodes,
  15118. this.features,
  15119. this.createAdmin,
  15120. DateTime? createTime,
  15121. DateTime? updateTime,
  15122. }) : super(
  15123. createTime: createTime,
  15124. updateTime: updateTime,
  15125. );
  15126. factory AdminAuthorityGroupDTO.fromJson(Map<String, dynamic> map) {
  15127. return AdminAuthorityGroupDTO(
  15128. adminGroupCode: map['AdminGroupCode'],
  15129. description: map['Description'],
  15130. adminCodes: map['AdminCodes'] != null ? map['AdminCodes'].cast<String>().toList() : null,
  15131. features: map['Features'] != null ? map['Features'].cast<String>().toList() : null,
  15132. createAdmin: map['CreateAdmin'],
  15133. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  15134. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  15135. );
  15136. }
  15137. Map<String, dynamic> toJson() {
  15138. final map = super.toJson();
  15139. if(adminGroupCode != null)
  15140. map['AdminGroupCode'] = adminGroupCode;
  15141. if(description != null)
  15142. map['Description'] = description;
  15143. if(adminCodes != null)
  15144. map['AdminCodes'] = adminCodes;
  15145. if(features != null)
  15146. map['Features'] = features;
  15147. if(createAdmin != null)
  15148. map['CreateAdmin'] = createAdmin;
  15149. return map;
  15150. }
  15151. }