other.m.dart 390 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513
  1. import 'authentication.m.dart';
  2. import 'notification.m.dart';
  3. import 'upgrade.m.dart';
  4. import 'user.m.dart';
  5. import 'liveConsultation.m.dart';
  6. import 'patient.m.dart';
  7. import 'remedical.m.dart';
  8. import 'recordInfo.m.dart';
  9. import 'organization.m.dart';
  10. import 'device.m.dart';
  11. import 'education.m.dart';
  12. import 'connect.m.dart';
  13. import 'aIDiagnosis.m.dart';
  14. import 'storage.m.dart';
  15. import 'report.m.dart';
  16. import 'payment.m.dart';
  17. import 'vinnoServer.m.dart';
  18. import 'position.m.dart';
  19. import 'rank.m.dart';
  20. import 'identityApply.m.dart';
  21. import 'login.m.dart';
  22. import 'role.m.dart';
  23. import 'region.m.dart';
  24. import 'aSR.m.dart';
  25. import 'deployPlatform.m.dart';
  26. import 'package:fis_jsonrpc/utils.dart';
  27. import 'package:fis_common/json_convert.dart';
  28. class GenerateRoomUrlRequest {
  29. int roomId;
  30. String? uniqueId;
  31. GenerateRoomUrlRequest({
  32. this.roomId = 0,
  33. this.uniqueId,
  34. });
  35. factory GenerateRoomUrlRequest.fromJson(Map<String, dynamic> map) {
  36. return GenerateRoomUrlRequest(
  37. roomId: map['RoomId'],
  38. uniqueId: map['UniqueId'],
  39. );
  40. }
  41. Map<String, dynamic> toJson() {
  42. final map = Map<String, dynamic>();
  43. map['RoomId'] = roomId;
  44. if(uniqueId != null)
  45. map['UniqueId'] = uniqueId;
  46. return map;
  47. }
  48. }
  49. class GenerateRoomUrlResult {
  50. String? rtmpUrl;
  51. String? hlsUrl;
  52. String? flvUrl;
  53. GenerateRoomUrlResult({
  54. this.rtmpUrl,
  55. this.hlsUrl,
  56. this.flvUrl,
  57. });
  58. factory GenerateRoomUrlResult.fromJson(Map<String, dynamic> map) {
  59. return GenerateRoomUrlResult(
  60. rtmpUrl: map['RtmpUrl'],
  61. hlsUrl: map['HlsUrl'],
  62. flvUrl: map['FlvUrl'],
  63. );
  64. }
  65. Map<String, dynamic> toJson() {
  66. final map = Map<String, dynamic>();
  67. if(rtmpUrl != null)
  68. map['RtmpUrl'] = rtmpUrl;
  69. if(hlsUrl != null)
  70. map['HlsUrl'] = hlsUrl;
  71. if(flvUrl != null)
  72. map['FlvUrl'] = flvUrl;
  73. return map;
  74. }
  75. }
  76. class GetRoomIdRequest {
  77. String? uniqueId;
  78. GetRoomIdRequest({
  79. this.uniqueId,
  80. });
  81. factory GetRoomIdRequest.fromJson(Map<String, dynamic> map) {
  82. return GetRoomIdRequest(
  83. uniqueId: map['UniqueId'],
  84. );
  85. }
  86. Map<String, dynamic> toJson() {
  87. final map = Map<String, dynamic>();
  88. if(uniqueId != null)
  89. map['UniqueId'] = uniqueId;
  90. return map;
  91. }
  92. }
  93. class GetRoomIdResult {
  94. int roomId;
  95. GetRoomIdResult({
  96. this.roomId = 0,
  97. });
  98. factory GetRoomIdResult.fromJson(Map<String, dynamic> map) {
  99. return GetRoomIdResult(
  100. roomId: map['RoomId'],
  101. );
  102. }
  103. Map<String, dynamic> toJson() {
  104. final map = Map<String, dynamic>();
  105. map['RoomId'] = roomId;
  106. return map;
  107. }
  108. }
  109. class GetRtcSettingRequest {
  110. GetRtcSettingRequest();
  111. factory GetRtcSettingRequest.fromJson(Map<String, dynamic> map) {
  112. return GetRtcSettingRequest(
  113. );
  114. }
  115. Map<String, dynamic> toJson() {
  116. final map = Map<String, dynamic>();
  117. return map;
  118. }
  119. }
  120. class GetRtcSettingResult {
  121. int appId;
  122. GetRtcSettingResult({
  123. this.appId = 0,
  124. });
  125. factory GetRtcSettingResult.fromJson(Map<String, dynamic> map) {
  126. return GetRtcSettingResult(
  127. appId: map['AppId'],
  128. );
  129. }
  130. Map<String, dynamic> toJson() {
  131. final map = Map<String, dynamic>();
  132. map['AppId'] = appId;
  133. return map;
  134. }
  135. }
  136. class GetUserSignRequest {
  137. String? userId;
  138. GetUserSignRequest({
  139. this.userId,
  140. });
  141. factory GetUserSignRequest.fromJson(Map<String, dynamic> map) {
  142. return GetUserSignRequest(
  143. userId: map['UserId'],
  144. );
  145. }
  146. Map<String, dynamic> toJson() {
  147. final map = Map<String, dynamic>();
  148. if(userId != null)
  149. map['UserId'] = userId;
  150. return map;
  151. }
  152. }
  153. class GetUserSignResult {
  154. String? userSign;
  155. GetUserSignResult({
  156. this.userSign,
  157. });
  158. factory GetUserSignResult.fromJson(Map<String, dynamic> map) {
  159. return GetUserSignResult(
  160. userSign: map['UserSign'],
  161. );
  162. }
  163. Map<String, dynamic> toJson() {
  164. final map = Map<String, dynamic>();
  165. if(userSign != null)
  166. map['UserSign'] = userSign;
  167. return map;
  168. }
  169. }
  170. class StorageInfoResult {
  171. int code;
  172. bool isSuccess;
  173. String? message;
  174. StorageInfoResult({
  175. this.code = 0,
  176. this.isSuccess = false,
  177. this.message,
  178. });
  179. factory StorageInfoResult.fromJson(Map<String, dynamic> map) {
  180. return StorageInfoResult(
  181. code: map['Code'],
  182. isSuccess: map['IsSuccess'],
  183. message: map['Message'],
  184. );
  185. }
  186. Map<String, dynamic> toJson() {
  187. final map = Map<String, dynamic>();
  188. map['Code'] = code;
  189. map['IsSuccess'] = isSuccess;
  190. if(message != null)
  191. map['Message'] = message;
  192. return map;
  193. }
  194. }
  195. class MeasureItemsResult {
  196. MeasureItemsResult();
  197. factory MeasureItemsResult.fromJson(Map<String, dynamic> map) {
  198. return MeasureItemsResult(
  199. );
  200. }
  201. Map<String, dynamic> toJson() {
  202. final map = Map<String, dynamic>();
  203. return map;
  204. }
  205. }
  206. class WaitClearLogResult {
  207. int daysAgo;
  208. int waitDelCount;
  209. WaitClearLogResult({
  210. this.daysAgo = 0,
  211. this.waitDelCount = 0,
  212. });
  213. factory WaitClearLogResult.fromJson(Map<String, dynamic> map) {
  214. return WaitClearLogResult(
  215. daysAgo: map['DaysAgo'],
  216. waitDelCount: map['WaitDelCount'],
  217. );
  218. }
  219. Map<String, dynamic> toJson() {
  220. final map = Map<String, dynamic>();
  221. map['DaysAgo'] = daysAgo;
  222. map['WaitDelCount'] = waitDelCount;
  223. return map;
  224. }
  225. }
  226. class ClearSystemLogRecordResult {
  227. int daysAgo;
  228. String? requestServerHost;
  229. String? clearTime;
  230. List<WaitClearLogResult >? waitClearLogs;
  231. ClearSystemLogRecordResult({
  232. this.daysAgo = 0,
  233. this.requestServerHost,
  234. this.clearTime,
  235. this.waitClearLogs,
  236. });
  237. factory ClearSystemLogRecordResult.fromJson(Map<String, dynamic> map) {
  238. return ClearSystemLogRecordResult(
  239. daysAgo: map['DaysAgo'],
  240. requestServerHost: map['RequestServerHost'],
  241. clearTime: map['ClearTime'],
  242. waitClearLogs: map['WaitClearLogs'] != null ? (map['WaitClearLogs'] as List).map((e)=>WaitClearLogResult.fromJson(e as Map<String,dynamic>)).toList() : null,
  243. );
  244. }
  245. Map<String, dynamic> toJson() {
  246. final map = Map<String, dynamic>();
  247. map['DaysAgo'] = daysAgo;
  248. if(requestServerHost != null)
  249. map['RequestServerHost'] = requestServerHost;
  250. if(clearTime != null)
  251. map['ClearTime'] = clearTime;
  252. if(waitClearLogs != null)
  253. map['WaitClearLogs'] = waitClearLogs;
  254. return map;
  255. }
  256. }
  257. enum CMSTemplateStatusTypeEnum {
  258. UnPublished,
  259. Published,
  260. }
  261. class CMSTemplateResult {
  262. String? cMSTemplateCode;
  263. String? cMSTemplateName;
  264. CMSTemplateStatusTypeEnum cMSTemplateStateType;
  265. String? cMSTemplateJson;
  266. bool isDefault;
  267. DateTime? createTime;
  268. CMSTemplateResult({
  269. this.cMSTemplateCode,
  270. this.cMSTemplateName,
  271. this.cMSTemplateStateType = CMSTemplateStatusTypeEnum.UnPublished,
  272. this.cMSTemplateJson,
  273. this.isDefault = false,
  274. this.createTime,
  275. });
  276. factory CMSTemplateResult.fromJson(Map<String, dynamic> map) {
  277. return CMSTemplateResult(
  278. cMSTemplateCode: map['CMSTemplateCode'],
  279. cMSTemplateName: map['CMSTemplateName'],
  280. cMSTemplateStateType: CMSTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['CMSTemplateStateType']),
  281. cMSTemplateJson: map['CMSTemplateJson'],
  282. isDefault: map['IsDefault'],
  283. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  284. );
  285. }
  286. Map<String, dynamic> toJson() {
  287. final map = Map<String, dynamic>();
  288. if(cMSTemplateCode != null)
  289. map['CMSTemplateCode'] = cMSTemplateCode;
  290. if(cMSTemplateName != null)
  291. map['CMSTemplateName'] = cMSTemplateName;
  292. map['CMSTemplateStateType'] = cMSTemplateStateType.index;
  293. if(cMSTemplateJson != null)
  294. map['CMSTemplateJson'] = cMSTemplateJson;
  295. map['IsDefault'] = isDefault;
  296. if(createTime != null)
  297. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  298. return map;
  299. }
  300. }
  301. class OrganizationBindQueryResult {
  302. int bindDeviceNum;
  303. int bindUserNum;
  304. OrganizationBindQueryResult({
  305. this.bindDeviceNum = 0,
  306. this.bindUserNum = 0,
  307. });
  308. factory OrganizationBindQueryResult.fromJson(Map<String, dynamic> map) {
  309. return OrganizationBindQueryResult(
  310. bindDeviceNum: map['BindDeviceNum'],
  311. bindUserNum: map['BindUserNum'],
  312. );
  313. }
  314. Map<String, dynamic> toJson() {
  315. final map = Map<String, dynamic>();
  316. map['BindDeviceNum'] = bindDeviceNum;
  317. map['BindUserNum'] = bindUserNum;
  318. return map;
  319. }
  320. }
  321. class ShareExamUrlResult {
  322. String? posterUrl;
  323. String? videoUrl;
  324. ShareExamUrlResult({
  325. this.posterUrl,
  326. this.videoUrl,
  327. });
  328. factory ShareExamUrlResult.fromJson(Map<String, dynamic> map) {
  329. return ShareExamUrlResult(
  330. posterUrl: map['PosterUrl'],
  331. videoUrl: map['VideoUrl'],
  332. );
  333. }
  334. Map<String, dynamic> toJson() {
  335. final map = Map<String, dynamic>();
  336. if(posterUrl != null)
  337. map['PosterUrl'] = posterUrl;
  338. if(videoUrl != null)
  339. map['VideoUrl'] = videoUrl;
  340. return map;
  341. }
  342. }
  343. class ApplyLockResult {
  344. bool isSuccess;
  345. String? lockUniqueCode;
  346. ApplyLockResult({
  347. this.isSuccess = false,
  348. this.lockUniqueCode,
  349. });
  350. factory ApplyLockResult.fromJson(Map<String, dynamic> map) {
  351. return ApplyLockResult(
  352. isSuccess: map['IsSuccess'],
  353. lockUniqueCode: map['LockUniqueCode'],
  354. );
  355. }
  356. Map<String, dynamic> toJson() {
  357. final map = Map<String, dynamic>();
  358. map['IsSuccess'] = isSuccess;
  359. if(lockUniqueCode != null)
  360. map['LockUniqueCode'] = lockUniqueCode;
  361. return map;
  362. }
  363. }
  364. class ReleaseLockResult {
  365. bool isSuccess;
  366. ReleaseLockResult({
  367. this.isSuccess = false,
  368. });
  369. factory ReleaseLockResult.fromJson(Map<String, dynamic> map) {
  370. return ReleaseLockResult(
  371. isSuccess: map['IsSuccess'],
  372. );
  373. }
  374. Map<String, dynamic> toJson() {
  375. final map = Map<String, dynamic>();
  376. map['IsSuccess'] = isSuccess;
  377. return map;
  378. }
  379. }
  380. class MarshalByRefObject {
  381. MarshalByRefObject();
  382. factory MarshalByRefObject.fromJson(Map<String, dynamic> map) {
  383. return MarshalByRefObject(
  384. );
  385. }
  386. Map<String, dynamic> toJson() {
  387. final map = Map<String, dynamic>();
  388. return map;
  389. }
  390. }
  391. class Stream extends MarshalByRefObject{
  392. bool canRead;
  393. bool canWrite;
  394. bool canSeek;
  395. bool canTimeout;
  396. int length;
  397. int position;
  398. int readTimeout;
  399. int writeTimeout;
  400. Stream({
  401. this.canRead = false,
  402. this.canWrite = false,
  403. this.canSeek = false,
  404. this.canTimeout = false,
  405. this.length = 0,
  406. this.position = 0,
  407. this.readTimeout = 0,
  408. this.writeTimeout = 0,
  409. }) : super(
  410. );
  411. factory Stream.fromJson(Map<String, dynamic> map) {
  412. return Stream(
  413. canRead: map['CanRead'],
  414. canWrite: map['CanWrite'],
  415. canSeek: map['CanSeek'],
  416. canTimeout: map['CanTimeout'],
  417. length: map['Length'],
  418. position: map['Position'],
  419. readTimeout: map['ReadTimeout'],
  420. writeTimeout: map['WriteTimeout'],
  421. );
  422. }
  423. Map<String, dynamic> toJson() {
  424. final map = super.toJson();
  425. map['CanRead'] = canRead;
  426. map['CanWrite'] = canWrite;
  427. map['CanSeek'] = canSeek;
  428. map['CanTimeout'] = canTimeout;
  429. map['Length'] = length;
  430. map['Position'] = position;
  431. map['ReadTimeout'] = readTimeout;
  432. map['WriteTimeout'] = writeTimeout;
  433. return map;
  434. }
  435. }
  436. class DownloadFileResult {
  437. Stream? merageFileStream;
  438. int fileSize;
  439. DownloadFileResult({
  440. this.merageFileStream,
  441. this.fileSize = 0,
  442. });
  443. factory DownloadFileResult.fromJson(Map<String, dynamic> map) {
  444. return DownloadFileResult(
  445. merageFileStream: map['MerageFileStream'] != null ? Stream.fromJson(map['MerageFileStream']) : null,
  446. fileSize: map['FileSize'],
  447. );
  448. }
  449. Map<String, dynamic> toJson() {
  450. final map = Map<String, dynamic>();
  451. if(merageFileStream != null)
  452. map['MerageFileStream'] = merageFileStream;
  453. map['FileSize'] = fileSize;
  454. return map;
  455. }
  456. }
  457. class BaseLiveResult {
  458. String? roomCode;
  459. int integerRoomId;
  460. String? rtcMessageJson;
  461. BaseLiveResult({
  462. this.roomCode,
  463. this.integerRoomId = 0,
  464. this.rtcMessageJson,
  465. });
  466. factory BaseLiveResult.fromJson(Map<String, dynamic> map) {
  467. return BaseLiveResult(
  468. roomCode: map['RoomCode'],
  469. integerRoomId: map['IntegerRoomId'],
  470. rtcMessageJson: map['RtcMessageJson'],
  471. );
  472. }
  473. Map<String, dynamic> toJson() {
  474. final map = Map<String, dynamic>();
  475. if(roomCode != null)
  476. map['RoomCode'] = roomCode;
  477. map['IntegerRoomId'] = integerRoomId;
  478. if(rtcMessageJson != null)
  479. map['RtcMessageJson'] = rtcMessageJson;
  480. return map;
  481. }
  482. }
  483. class MuteLiveResult extends BaseLiveResult{
  484. bool mute;
  485. MuteLiveResult({
  486. this.mute = false,
  487. String? roomCode,
  488. int integerRoomId = 0,
  489. String? rtcMessageJson,
  490. }) : super(
  491. roomCode: roomCode,
  492. integerRoomId: integerRoomId,
  493. rtcMessageJson: rtcMessageJson,
  494. );
  495. factory MuteLiveResult.fromJson(Map<String, dynamic> map) {
  496. return MuteLiveResult(
  497. mute: map['Mute'],
  498. roomCode: map['RoomCode'],
  499. integerRoomId: map['IntegerRoomId'],
  500. rtcMessageJson: map['RtcMessageJson'],
  501. );
  502. }
  503. Map<String, dynamic> toJson() {
  504. final map = super.toJson();
  505. map['Mute'] = mute;
  506. return map;
  507. }
  508. }
  509. class OpenedVideoLiveResult extends BaseLiveResult{
  510. bool videoOpend;
  511. OpenedVideoLiveResult({
  512. this.videoOpend = false,
  513. String? roomCode,
  514. int integerRoomId = 0,
  515. String? rtcMessageJson,
  516. }) : super(
  517. roomCode: roomCode,
  518. integerRoomId: integerRoomId,
  519. rtcMessageJson: rtcMessageJson,
  520. );
  521. factory OpenedVideoLiveResult.fromJson(Map<String, dynamic> map) {
  522. return OpenedVideoLiveResult(
  523. videoOpend: map['VideoOpend'],
  524. roomCode: map['RoomCode'],
  525. integerRoomId: map['IntegerRoomId'],
  526. rtcMessageJson: map['RtcMessageJson'],
  527. );
  528. }
  529. Map<String, dynamic> toJson() {
  530. final map = super.toJson();
  531. map['VideoOpend'] = videoOpend;
  532. return map;
  533. }
  534. }
  535. class ControllingParameterLiveResult extends BaseLiveResult{
  536. bool isControllingParameter;
  537. ControllingParameterLiveResult({
  538. this.isControllingParameter = false,
  539. String? roomCode,
  540. int integerRoomId = 0,
  541. String? rtcMessageJson,
  542. }) : super(
  543. roomCode: roomCode,
  544. integerRoomId: integerRoomId,
  545. rtcMessageJson: rtcMessageJson,
  546. );
  547. factory ControllingParameterLiveResult.fromJson(Map<String, dynamic> map) {
  548. return ControllingParameterLiveResult(
  549. isControllingParameter: map['IsControllingParameter'],
  550. roomCode: map['RoomCode'],
  551. integerRoomId: map['IntegerRoomId'],
  552. rtcMessageJson: map['RtcMessageJson'],
  553. );
  554. }
  555. Map<String, dynamic> toJson() {
  556. final map = super.toJson();
  557. map['IsControllingParameter'] = isControllingParameter;
  558. return map;
  559. }
  560. }
  561. class ChangeCourseStatusResult extends BaseLiveResult{
  562. CourseStatusEnum status;
  563. ChangeCourseStatusResult({
  564. this.status = CourseStatusEnum.Unknown,
  565. String? roomCode,
  566. int integerRoomId = 0,
  567. String? rtcMessageJson,
  568. }) : super(
  569. roomCode: roomCode,
  570. integerRoomId: integerRoomId,
  571. rtcMessageJson: rtcMessageJson,
  572. );
  573. factory ChangeCourseStatusResult.fromJson(Map<String, dynamic> map) {
  574. return ChangeCourseStatusResult(
  575. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  576. roomCode: map['RoomCode'],
  577. integerRoomId: map['IntegerRoomId'],
  578. rtcMessageJson: map['RtcMessageJson'],
  579. );
  580. }
  581. Map<String, dynamic> toJson() {
  582. final map = super.toJson();
  583. map['Status'] = status.index;
  584. return map;
  585. }
  586. }
  587. class FindConsultationSettingResult {
  588. String? version;
  589. String? settingData;
  590. FindConsultationSettingResult({
  591. this.version,
  592. this.settingData,
  593. });
  594. factory FindConsultationSettingResult.fromJson(Map<String, dynamic> map) {
  595. return FindConsultationSettingResult(
  596. version: map['Version'],
  597. settingData: map['SettingData'],
  598. );
  599. }
  600. Map<String, dynamic> toJson() {
  601. final map = Map<String, dynamic>();
  602. if(version != null)
  603. map['Version'] = version;
  604. if(settingData != null)
  605. map['SettingData'] = settingData;
  606. return map;
  607. }
  608. }
  609. class AddCacheReportPosterRequest extends TokenRequest{
  610. String? reportPosterCode;
  611. AddCacheReportPosterRequest({
  612. this.reportPosterCode,
  613. String? token,
  614. }) : super(
  615. token: token,
  616. );
  617. factory AddCacheReportPosterRequest.fromJson(Map<String, dynamic> map) {
  618. return AddCacheReportPosterRequest(
  619. reportPosterCode: map['ReportPosterCode'],
  620. token: map['Token'],
  621. );
  622. }
  623. Map<String, dynamic> toJson() {
  624. final map = super.toJson();
  625. if(reportPosterCode != null)
  626. map['ReportPosterCode'] = reportPosterCode;
  627. return map;
  628. }
  629. }
  630. class DeleteThesaurusUserCodeRequest extends TokenRequest{
  631. String? thesaurusCode;
  632. DeleteThesaurusUserCodeRequest({
  633. this.thesaurusCode,
  634. String? token,
  635. }) : super(
  636. token: token,
  637. );
  638. factory DeleteThesaurusUserCodeRequest.fromJson(Map<String, dynamic> map) {
  639. return DeleteThesaurusUserCodeRequest(
  640. thesaurusCode: map['ThesaurusCode'],
  641. token: map['Token'],
  642. );
  643. }
  644. Map<String, dynamic> toJson() {
  645. final map = super.toJson();
  646. if(thesaurusCode != null)
  647. map['ThesaurusCode'] = thesaurusCode;
  648. return map;
  649. }
  650. }
  651. class RemoveCacheReportPosterRequest extends TokenRequest{
  652. String? reportPosterCode;
  653. RemoveCacheReportPosterRequest({
  654. this.reportPosterCode,
  655. String? token,
  656. }) : super(
  657. token: token,
  658. );
  659. factory RemoveCacheReportPosterRequest.fromJson(Map<String, dynamic> map) {
  660. return RemoveCacheReportPosterRequest(
  661. reportPosterCode: map['ReportPosterCode'],
  662. token: map['Token'],
  663. );
  664. }
  665. Map<String, dynamic> toJson() {
  666. final map = super.toJson();
  667. if(reportPosterCode != null)
  668. map['ReportPosterCode'] = reportPosterCode;
  669. return map;
  670. }
  671. }
  672. class UpdateThesaurusUserCodeRequest extends TokenRequest{
  673. String? thesaurusCode;
  674. UpdateThesaurusUserCodeRequest({
  675. this.thesaurusCode,
  676. String? token,
  677. }) : super(
  678. token: token,
  679. );
  680. factory UpdateThesaurusUserCodeRequest.fromJson(Map<String, dynamic> map) {
  681. return UpdateThesaurusUserCodeRequest(
  682. thesaurusCode: map['ThesaurusCode'],
  683. token: map['Token'],
  684. );
  685. }
  686. Map<String, dynamic> toJson() {
  687. final map = super.toJson();
  688. if(thesaurusCode != null)
  689. map['ThesaurusCode'] = thesaurusCode;
  690. return map;
  691. }
  692. }
  693. class PushRecordCodesToDeviceRequest extends TokenRequest{
  694. List<String >? recordCodes;
  695. String? deviceCode;
  696. PushRecordCodesToDeviceRequest({
  697. this.recordCodes,
  698. this.deviceCode,
  699. String? token,
  700. }) : super(
  701. token: token,
  702. );
  703. factory PushRecordCodesToDeviceRequest.fromJson(Map<String, dynamic> map) {
  704. return PushRecordCodesToDeviceRequest(
  705. recordCodes: map['RecordCodes'] != null ? map['RecordCodes'].cast<String>().toList() : null,
  706. deviceCode: map['DeviceCode'],
  707. token: map['Token'],
  708. );
  709. }
  710. Map<String, dynamic> toJson() {
  711. final map = super.toJson();
  712. if(recordCodes != null)
  713. map['RecordCodes'] = recordCodes;
  714. if(deviceCode != null)
  715. map['DeviceCode'] = deviceCode;
  716. return map;
  717. }
  718. }
  719. class PayCallbackRequest {
  720. String? keyWord;
  721. PayCallbackRequest({
  722. this.keyWord,
  723. });
  724. factory PayCallbackRequest.fromJson(Map<String, dynamic> map) {
  725. return PayCallbackRequest(
  726. keyWord: map['KeyWord'],
  727. );
  728. }
  729. Map<String, dynamic> toJson() {
  730. final map = Map<String, dynamic>();
  731. if(keyWord != null)
  732. map['KeyWord'] = keyWord;
  733. return map;
  734. }
  735. }
  736. class CloseNotifyQueueRequest {
  737. String? msgQueueId;
  738. CloseNotifyQueueRequest({
  739. this.msgQueueId,
  740. });
  741. factory CloseNotifyQueueRequest.fromJson(Map<String, dynamic> map) {
  742. return CloseNotifyQueueRequest(
  743. msgQueueId: map['MsgQueueId'],
  744. );
  745. }
  746. Map<String, dynamic> toJson() {
  747. final map = Map<String, dynamic>();
  748. if(msgQueueId != null)
  749. map['MsgQueueId'] = msgQueueId;
  750. return map;
  751. }
  752. }
  753. class OpenNotifyQueueRequest {
  754. String? module;
  755. OpenNotifyQueueRequest({
  756. this.module,
  757. });
  758. factory OpenNotifyQueueRequest.fromJson(Map<String, dynamic> map) {
  759. return OpenNotifyQueueRequest(
  760. module: map['Module'],
  761. );
  762. }
  763. Map<String, dynamic> toJson() {
  764. final map = Map<String, dynamic>();
  765. if(module != null)
  766. map['Module'] = module;
  767. return map;
  768. }
  769. }
  770. class ApplyLockRequest {
  771. String? lockKey;
  772. ApplyLockRequest({
  773. this.lockKey,
  774. });
  775. factory ApplyLockRequest.fromJson(Map<String, dynamic> map) {
  776. return ApplyLockRequest(
  777. lockKey: map['LockKey'],
  778. );
  779. }
  780. Map<String, dynamic> toJson() {
  781. final map = Map<String, dynamic>();
  782. if(lockKey != null)
  783. map['LockKey'] = lockKey;
  784. return map;
  785. }
  786. }
  787. class ReleaseLockRequest {
  788. String? lockUniqueCode;
  789. ReleaseLockRequest({
  790. this.lockUniqueCode,
  791. });
  792. factory ReleaseLockRequest.fromJson(Map<String, dynamic> map) {
  793. return ReleaseLockRequest(
  794. lockUniqueCode: map['LockUniqueCode'],
  795. );
  796. }
  797. Map<String, dynamic> toJson() {
  798. final map = Map<String, dynamic>();
  799. if(lockUniqueCode != null)
  800. map['LockUniqueCode'] = lockUniqueCode;
  801. return map;
  802. }
  803. }
  804. class AssignPatientToUsersRequest extends TokenRequest{
  805. String? patientCode;
  806. List<String >? userCodes;
  807. AssignPatientToUsersRequest({
  808. this.patientCode,
  809. this.userCodes,
  810. String? token,
  811. }) : super(
  812. token: token,
  813. );
  814. factory AssignPatientToUsersRequest.fromJson(Map<String, dynamic> map) {
  815. return AssignPatientToUsersRequest(
  816. patientCode: map['PatientCode'],
  817. userCodes: map['UserCodes'] != null ? map['UserCodes'].cast<String>().toList() : null,
  818. token: map['Token'],
  819. );
  820. }
  821. Map<String, dynamic> toJson() {
  822. final map = super.toJson();
  823. if(patientCode != null)
  824. map['PatientCode'] = patientCode;
  825. if(userCodes != null)
  826. map['UserCodes'] = userCodes;
  827. return map;
  828. }
  829. }
  830. class QuestionDetailDTO extends BaseDTO{
  831. String? code;
  832. double score;
  833. QuestionDetailDTO({
  834. this.code,
  835. this.score = 0,
  836. DateTime? createTime,
  837. DateTime? updateTime,
  838. }) : super(
  839. createTime: createTime,
  840. updateTime: updateTime,
  841. );
  842. factory QuestionDetailDTO.fromJson(Map<String, dynamic> map) {
  843. return QuestionDetailDTO(
  844. code: map['Code'],
  845. score: double.parse(map['Score'].toString()),
  846. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  847. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  848. );
  849. }
  850. Map<String, dynamic> toJson() {
  851. final map = super.toJson();
  852. if(code != null)
  853. map['Code'] = code;
  854. map['Score'] = score;
  855. return map;
  856. }
  857. }
  858. class AddExaminationPaperRequest extends TokenRequest{
  859. String? name;
  860. double totalScore;
  861. List<QuestionDetailDTO >? questionList;
  862. List<String >? caseLabelCodes;
  863. List<String >? courseLabelCodes;
  864. AddExaminationPaperRequest({
  865. this.name,
  866. this.totalScore = 0,
  867. this.questionList,
  868. this.caseLabelCodes,
  869. this.courseLabelCodes,
  870. String? token,
  871. }) : super(
  872. token: token,
  873. );
  874. factory AddExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  875. return AddExaminationPaperRequest(
  876. name: map['Name'],
  877. totalScore: double.parse(map['TotalScore'].toString()),
  878. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>QuestionDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  879. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  880. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  881. token: map['Token'],
  882. );
  883. }
  884. Map<String, dynamic> toJson() {
  885. final map = super.toJson();
  886. if(name != null)
  887. map['Name'] = name;
  888. map['TotalScore'] = totalScore;
  889. if(questionList != null)
  890. map['QuestionList'] = questionList;
  891. if(caseLabelCodes != null)
  892. map['CaseLabelCodes'] = caseLabelCodes;
  893. if(courseLabelCodes != null)
  894. map['CourseLabelCodes'] = courseLabelCodes;
  895. return map;
  896. }
  897. }
  898. class CourseLabelRequest extends TokenRequest{
  899. String? code;
  900. List<LabelLanguageConfigDTO >? labelLanguageConfigs;
  901. OrganizationPatientTypeEnum useObjectType;
  902. LabelTypeEnum type;
  903. String? parentCode;
  904. CourseLabelRequest({
  905. this.code,
  906. this.labelLanguageConfigs,
  907. this.useObjectType = OrganizationPatientTypeEnum.Person,
  908. this.type = LabelTypeEnum.Unknown,
  909. this.parentCode,
  910. String? token,
  911. }) : super(
  912. token: token,
  913. );
  914. factory CourseLabelRequest.fromJson(Map<String, dynamic> map) {
  915. return CourseLabelRequest(
  916. code: map['Code'],
  917. labelLanguageConfigs: map['LabelLanguageConfigs'] != null ? (map['LabelLanguageConfigs'] as List).map((e)=>LabelLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  918. useObjectType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['UseObjectType']),
  919. type: LabelTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  920. parentCode: map['ParentCode'],
  921. token: map['Token'],
  922. );
  923. }
  924. Map<String, dynamic> toJson() {
  925. final map = super.toJson();
  926. if(code != null)
  927. map['Code'] = code;
  928. if(labelLanguageConfigs != null)
  929. map['LabelLanguageConfigs'] = labelLanguageConfigs;
  930. map['UseObjectType'] = useObjectType.index;
  931. map['Type'] = type.index;
  932. if(parentCode != null)
  933. map['ParentCode'] = parentCode;
  934. return map;
  935. }
  936. }
  937. class DeleteExaminationPaperRequest extends TokenRequest{
  938. String? examinationPaperCode;
  939. DeleteExaminationPaperRequest({
  940. this.examinationPaperCode,
  941. String? token,
  942. }) : super(
  943. token: token,
  944. );
  945. factory DeleteExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  946. return DeleteExaminationPaperRequest(
  947. examinationPaperCode: map['ExaminationPaperCode'],
  948. token: map['Token'],
  949. );
  950. }
  951. Map<String, dynamic> toJson() {
  952. final map = super.toJson();
  953. if(examinationPaperCode != null)
  954. map['ExaminationPaperCode'] = examinationPaperCode;
  955. return map;
  956. }
  957. }
  958. class FindExaminationQuestionPagesRequest extends PageRequest{
  959. String? searchKey;
  960. List<String >? caseLabelCodes;
  961. List<String >? courseLabelCodes;
  962. List<String >? codes;
  963. List<String >? notInCodes;
  964. FindExaminationQuestionPagesRequest({
  965. this.searchKey,
  966. this.caseLabelCodes,
  967. this.courseLabelCodes,
  968. this.codes,
  969. this.notInCodes,
  970. int pageIndex = 0,
  971. int pageSize = 0,
  972. String? token,
  973. }) : super(
  974. pageIndex: pageIndex,
  975. pageSize: pageSize,
  976. token: token,
  977. );
  978. factory FindExaminationQuestionPagesRequest.fromJson(Map<String, dynamic> map) {
  979. return FindExaminationQuestionPagesRequest(
  980. searchKey: map['SearchKey'],
  981. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  982. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  983. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  984. notInCodes: map['NotInCodes'] != null ? map['NotInCodes'].cast<String>().toList() : null,
  985. pageIndex: map['PageIndex'],
  986. pageSize: map['PageSize'],
  987. token: map['Token'],
  988. );
  989. }
  990. Map<String, dynamic> toJson() {
  991. final map = super.toJson();
  992. if(searchKey != null)
  993. map['SearchKey'] = searchKey;
  994. if(caseLabelCodes != null)
  995. map['CaseLabelCodes'] = caseLabelCodes;
  996. if(courseLabelCodes != null)
  997. map['CourseLabelCodes'] = courseLabelCodes;
  998. if(codes != null)
  999. map['Codes'] = codes;
  1000. if(notInCodes != null)
  1001. map['NotInCodes'] = notInCodes;
  1002. return map;
  1003. }
  1004. }
  1005. class FindExaminationQuestionsByCodesRequest extends TokenRequest{
  1006. List<String >? codes;
  1007. FindExaminationQuestionsByCodesRequest({
  1008. this.codes,
  1009. String? token,
  1010. }) : super(
  1011. token: token,
  1012. );
  1013. factory FindExaminationQuestionsByCodesRequest.fromJson(Map<String, dynamic> map) {
  1014. return FindExaminationQuestionsByCodesRequest(
  1015. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  1016. token: map['Token'],
  1017. );
  1018. }
  1019. Map<String, dynamic> toJson() {
  1020. final map = super.toJson();
  1021. if(codes != null)
  1022. map['Codes'] = codes;
  1023. return map;
  1024. }
  1025. }
  1026. class CreateExaminationQuestionRequest extends TokenRequest{
  1027. String? stem;
  1028. QuestionTypeEnum questionType;
  1029. List<QuestionOptionDTO >? questionOptionList;
  1030. List<QuestionFileDTO >? fileList;
  1031. List<String >? caseLabelCodes;
  1032. List<String >? courseLabelCodes;
  1033. bool trueOrFalse;
  1034. CreateExaminationQuestionRequest({
  1035. this.stem,
  1036. this.questionType = QuestionTypeEnum.Judge,
  1037. this.questionOptionList,
  1038. this.fileList,
  1039. this.caseLabelCodes,
  1040. this.courseLabelCodes,
  1041. this.trueOrFalse = false,
  1042. String? token,
  1043. }) : super(
  1044. token: token,
  1045. );
  1046. factory CreateExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1047. return CreateExaminationQuestionRequest(
  1048. stem: map['Stem'],
  1049. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  1050. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1051. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1052. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  1053. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  1054. trueOrFalse: map['TrueOrFalse'],
  1055. token: map['Token'],
  1056. );
  1057. }
  1058. Map<String, dynamic> toJson() {
  1059. final map = super.toJson();
  1060. if(stem != null)
  1061. map['Stem'] = stem;
  1062. map['QuestionType'] = questionType.index;
  1063. if(questionOptionList != null)
  1064. map['QuestionOptionList'] = questionOptionList;
  1065. if(fileList != null)
  1066. map['FileList'] = fileList;
  1067. if(caseLabelCodes != null)
  1068. map['CaseLabelCodes'] = caseLabelCodes;
  1069. if(courseLabelCodes != null)
  1070. map['CourseLabelCodes'] = courseLabelCodes;
  1071. map['TrueOrFalse'] = trueOrFalse;
  1072. return map;
  1073. }
  1074. }
  1075. class GetExaminationQuestionRequest extends TokenRequest{
  1076. String? code;
  1077. GetExaminationQuestionRequest({
  1078. this.code,
  1079. String? token,
  1080. }) : super(
  1081. token: token,
  1082. );
  1083. factory GetExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1084. return GetExaminationQuestionRequest(
  1085. code: map['Code'],
  1086. token: map['Token'],
  1087. );
  1088. }
  1089. Map<String, dynamic> toJson() {
  1090. final map = super.toJson();
  1091. if(code != null)
  1092. map['Code'] = code;
  1093. return map;
  1094. }
  1095. }
  1096. class UpdateExaminationQuestionRequest extends TokenRequest{
  1097. String? code;
  1098. String? stem;
  1099. QuestionTypeEnum questionType;
  1100. List<QuestionOptionDTO >? questionOptionList;
  1101. List<QuestionFileDTO >? fileList;
  1102. List<String >? caseLabelCodes;
  1103. List<String >? courseLabelCodes;
  1104. bool trueOrFalse;
  1105. UpdateExaminationQuestionRequest({
  1106. this.code,
  1107. this.stem,
  1108. this.questionType = QuestionTypeEnum.Judge,
  1109. this.questionOptionList,
  1110. this.fileList,
  1111. this.caseLabelCodes,
  1112. this.courseLabelCodes,
  1113. this.trueOrFalse = false,
  1114. String? token,
  1115. }) : super(
  1116. token: token,
  1117. );
  1118. factory UpdateExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1119. return UpdateExaminationQuestionRequest(
  1120. code: map['Code'],
  1121. stem: map['Stem'],
  1122. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  1123. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1124. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1125. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  1126. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  1127. trueOrFalse: map['TrueOrFalse'],
  1128. token: map['Token'],
  1129. );
  1130. }
  1131. Map<String, dynamic> toJson() {
  1132. final map = super.toJson();
  1133. if(code != null)
  1134. map['Code'] = code;
  1135. if(stem != null)
  1136. map['Stem'] = stem;
  1137. map['QuestionType'] = questionType.index;
  1138. if(questionOptionList != null)
  1139. map['QuestionOptionList'] = questionOptionList;
  1140. if(fileList != null)
  1141. map['FileList'] = fileList;
  1142. if(caseLabelCodes != null)
  1143. map['CaseLabelCodes'] = caseLabelCodes;
  1144. if(courseLabelCodes != null)
  1145. map['CourseLabelCodes'] = courseLabelCodes;
  1146. map['TrueOrFalse'] = trueOrFalse;
  1147. return map;
  1148. }
  1149. }
  1150. class DeleteExaminationQuestionRequest extends TokenRequest{
  1151. String? code;
  1152. DeleteExaminationQuestionRequest({
  1153. this.code,
  1154. String? token,
  1155. }) : super(
  1156. token: token,
  1157. );
  1158. factory DeleteExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1159. return DeleteExaminationQuestionRequest(
  1160. code: map['Code'],
  1161. token: map['Token'],
  1162. );
  1163. }
  1164. Map<String, dynamic> toJson() {
  1165. final map = super.toJson();
  1166. if(code != null)
  1167. map['Code'] = code;
  1168. return map;
  1169. }
  1170. }
  1171. class GetExaminationPaperPagesRequest extends PageRequest{
  1172. String? keyword;
  1173. List<String >? caseLabelCodes;
  1174. List<String >? courseLabelCodes;
  1175. GetExaminationPaperPagesRequest({
  1176. this.keyword,
  1177. this.caseLabelCodes,
  1178. this.courseLabelCodes,
  1179. int pageIndex = 0,
  1180. int pageSize = 0,
  1181. String? token,
  1182. }) : super(
  1183. pageIndex: pageIndex,
  1184. pageSize: pageSize,
  1185. token: token,
  1186. );
  1187. factory GetExaminationPaperPagesRequest.fromJson(Map<String, dynamic> map) {
  1188. return GetExaminationPaperPagesRequest(
  1189. keyword: map['Keyword'],
  1190. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  1191. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  1192. pageIndex: map['PageIndex'],
  1193. pageSize: map['PageSize'],
  1194. token: map['Token'],
  1195. );
  1196. }
  1197. Map<String, dynamic> toJson() {
  1198. final map = super.toJson();
  1199. if(keyword != null)
  1200. map['Keyword'] = keyword;
  1201. if(caseLabelCodes != null)
  1202. map['CaseLabelCodes'] = caseLabelCodes;
  1203. if(courseLabelCodes != null)
  1204. map['CourseLabelCodes'] = courseLabelCodes;
  1205. return map;
  1206. }
  1207. }
  1208. class GetExaminationPaperRequest extends TokenRequest{
  1209. String? examinationPaperCode;
  1210. GetExaminationPaperRequest({
  1211. this.examinationPaperCode,
  1212. String? token,
  1213. }) : super(
  1214. token: token,
  1215. );
  1216. factory GetExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  1217. return GetExaminationPaperRequest(
  1218. examinationPaperCode: map['ExaminationPaperCode'],
  1219. token: map['Token'],
  1220. );
  1221. }
  1222. Map<String, dynamic> toJson() {
  1223. final map = super.toJson();
  1224. if(examinationPaperCode != null)
  1225. map['ExaminationPaperCode'] = examinationPaperCode;
  1226. return map;
  1227. }
  1228. }
  1229. class QueryUserGroupPageRequest extends PageRequest{
  1230. String? keyword;
  1231. QueryUserGroupPageRequest({
  1232. this.keyword,
  1233. int pageIndex = 0,
  1234. int pageSize = 0,
  1235. String? token,
  1236. }) : super(
  1237. pageIndex: pageIndex,
  1238. pageSize: pageSize,
  1239. token: token,
  1240. );
  1241. factory QueryUserGroupPageRequest.fromJson(Map<String, dynamic> map) {
  1242. return QueryUserGroupPageRequest(
  1243. keyword: map['Keyword'],
  1244. pageIndex: map['PageIndex'],
  1245. pageSize: map['PageSize'],
  1246. token: map['Token'],
  1247. );
  1248. }
  1249. Map<String, dynamic> toJson() {
  1250. final map = super.toJson();
  1251. if(keyword != null)
  1252. map['Keyword'] = keyword;
  1253. return map;
  1254. }
  1255. }
  1256. class UpdateExaminationPaperRequest extends TokenRequest{
  1257. String? examinationPaperCode;
  1258. String? name;
  1259. double totalScore;
  1260. List<QuestionDetailDTO >? questionList;
  1261. List<String >? caseLabelCodes;
  1262. List<String >? courseLabelCodes;
  1263. UpdateExaminationPaperRequest({
  1264. this.examinationPaperCode,
  1265. this.name,
  1266. this.totalScore = 0,
  1267. this.questionList,
  1268. this.caseLabelCodes,
  1269. this.courseLabelCodes,
  1270. String? token,
  1271. }) : super(
  1272. token: token,
  1273. );
  1274. factory UpdateExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  1275. return UpdateExaminationPaperRequest(
  1276. examinationPaperCode: map['ExaminationPaperCode'],
  1277. name: map['Name'],
  1278. totalScore: double.parse(map['TotalScore'].toString()),
  1279. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>QuestionDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1280. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  1281. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  1282. token: map['Token'],
  1283. );
  1284. }
  1285. Map<String, dynamic> toJson() {
  1286. final map = super.toJson();
  1287. if(examinationPaperCode != null)
  1288. map['ExaminationPaperCode'] = examinationPaperCode;
  1289. if(name != null)
  1290. map['Name'] = name;
  1291. map['TotalScore'] = totalScore;
  1292. if(questionList != null)
  1293. map['QuestionList'] = questionList;
  1294. if(caseLabelCodes != null)
  1295. map['CaseLabelCodes'] = caseLabelCodes;
  1296. if(courseLabelCodes != null)
  1297. map['CourseLabelCodes'] = courseLabelCodes;
  1298. return map;
  1299. }
  1300. }
  1301. class QueryCourseLabelPageRequest extends PageRequest{
  1302. String? name;
  1303. String? languageCode;
  1304. LabelTypeEnum type;
  1305. String? parentCode;
  1306. QueryCourseLabelPageRequest({
  1307. this.name,
  1308. this.languageCode,
  1309. this.type = LabelTypeEnum.Unknown,
  1310. this.parentCode,
  1311. int pageIndex = 0,
  1312. int pageSize = 0,
  1313. String? token,
  1314. }) : super(
  1315. pageIndex: pageIndex,
  1316. pageSize: pageSize,
  1317. token: token,
  1318. );
  1319. factory QueryCourseLabelPageRequest.fromJson(Map<String, dynamic> map) {
  1320. return QueryCourseLabelPageRequest(
  1321. name: map['Name'],
  1322. languageCode: map['LanguageCode'],
  1323. type: LabelTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  1324. parentCode: map['ParentCode'],
  1325. pageIndex: map['PageIndex'],
  1326. pageSize: map['PageSize'],
  1327. token: map['Token'],
  1328. );
  1329. }
  1330. Map<String, dynamic> toJson() {
  1331. final map = super.toJson();
  1332. if(name != null)
  1333. map['Name'] = name;
  1334. if(languageCode != null)
  1335. map['LanguageCode'] = languageCode;
  1336. map['Type'] = type.index;
  1337. if(parentCode != null)
  1338. map['ParentCode'] = parentCode;
  1339. return map;
  1340. }
  1341. }
  1342. class AlterDeviceRequest extends TokenRequest{
  1343. String? deviceCode;
  1344. String? serialNumber;
  1345. String? name;
  1346. String? description;
  1347. String? headPicUrl;
  1348. String? organizationCode;
  1349. String? departmentCode;
  1350. bool isAutoShared;
  1351. AlterDeviceRequest({
  1352. this.deviceCode,
  1353. this.serialNumber,
  1354. this.name,
  1355. this.description,
  1356. this.headPicUrl,
  1357. this.organizationCode,
  1358. this.departmentCode,
  1359. this.isAutoShared = false,
  1360. String? token,
  1361. }) : super(
  1362. token: token,
  1363. );
  1364. factory AlterDeviceRequest.fromJson(Map<String, dynamic> map) {
  1365. return AlterDeviceRequest(
  1366. deviceCode: map['DeviceCode'],
  1367. serialNumber: map['SerialNumber'],
  1368. name: map['Name'],
  1369. description: map['Description'],
  1370. headPicUrl: map['HeadPicUrl'],
  1371. organizationCode: map['OrganizationCode'],
  1372. departmentCode: map['DepartmentCode'],
  1373. isAutoShared: map['IsAutoShared'],
  1374. token: map['Token'],
  1375. );
  1376. }
  1377. Map<String, dynamic> toJson() {
  1378. final map = super.toJson();
  1379. if(deviceCode != null)
  1380. map['DeviceCode'] = deviceCode;
  1381. if(serialNumber != null)
  1382. map['SerialNumber'] = serialNumber;
  1383. if(name != null)
  1384. map['Name'] = name;
  1385. if(description != null)
  1386. map['Description'] = description;
  1387. if(headPicUrl != null)
  1388. map['HeadPicUrl'] = headPicUrl;
  1389. if(organizationCode != null)
  1390. map['OrganizationCode'] = organizationCode;
  1391. if(departmentCode != null)
  1392. map['DepartmentCode'] = departmentCode;
  1393. map['IsAutoShared'] = isAutoShared;
  1394. return map;
  1395. }
  1396. }
  1397. class CleanDeviceCacheRequest {
  1398. String? deviceCode;
  1399. CleanDeviceCacheRequest({
  1400. this.deviceCode,
  1401. });
  1402. factory CleanDeviceCacheRequest.fromJson(Map<String, dynamic> map) {
  1403. return CleanDeviceCacheRequest(
  1404. deviceCode: map['DeviceCode'],
  1405. );
  1406. }
  1407. Map<String, dynamic> toJson() {
  1408. final map = Map<String, dynamic>();
  1409. if(deviceCode != null)
  1410. map['DeviceCode'] = deviceCode;
  1411. return map;
  1412. }
  1413. }
  1414. class DeviceDiagnosisChangedNotification extends TokenRequest{
  1415. String? diagnosisModule;
  1416. String? organizationCode;
  1417. String? deviceCode;
  1418. DeviceDiagnosisChangedNotification({
  1419. this.diagnosisModule,
  1420. this.organizationCode,
  1421. this.deviceCode,
  1422. String? token,
  1423. }) : super(
  1424. token: token,
  1425. );
  1426. factory DeviceDiagnosisChangedNotification.fromJson(Map<String, dynamic> map) {
  1427. return DeviceDiagnosisChangedNotification(
  1428. diagnosisModule: map['DiagnosisModule'],
  1429. organizationCode: map['OrganizationCode'],
  1430. deviceCode: map['DeviceCode'],
  1431. token: map['Token'],
  1432. );
  1433. }
  1434. Map<String, dynamic> toJson() {
  1435. final map = super.toJson();
  1436. if(diagnosisModule != null)
  1437. map['DiagnosisModule'] = diagnosisModule;
  1438. if(organizationCode != null)
  1439. map['OrganizationCode'] = organizationCode;
  1440. if(deviceCode != null)
  1441. map['DeviceCode'] = deviceCode;
  1442. return map;
  1443. }
  1444. }
  1445. class DeviceLeaveLiveConsultationRequest extends TokenRequest{
  1446. String? consultationCode;
  1447. DeviceLeaveLiveConsultationRequest({
  1448. this.consultationCode,
  1449. String? token,
  1450. }) : super(
  1451. token: token,
  1452. );
  1453. factory DeviceLeaveLiveConsultationRequest.fromJson(Map<String, dynamic> map) {
  1454. return DeviceLeaveLiveConsultationRequest(
  1455. consultationCode: map['ConsultationCode'],
  1456. token: map['Token'],
  1457. );
  1458. }
  1459. Map<String, dynamic> toJson() {
  1460. final map = super.toJson();
  1461. if(consultationCode != null)
  1462. map['ConsultationCode'] = consultationCode;
  1463. return map;
  1464. }
  1465. }
  1466. class DeviceLeaveLiveConsultationResult {
  1467. bool success;
  1468. DeviceLeaveLiveConsultationResult({
  1469. this.success = false,
  1470. });
  1471. factory DeviceLeaveLiveConsultationResult.fromJson(Map<String, dynamic> map) {
  1472. return DeviceLeaveLiveConsultationResult(
  1473. success: map['Success'],
  1474. );
  1475. }
  1476. Map<String, dynamic> toJson() {
  1477. final map = Map<String, dynamic>();
  1478. map['Success'] = success;
  1479. return map;
  1480. }
  1481. }
  1482. class FindDeviceDiagnosisRequest extends TokenRequest{
  1483. String? deviceCode;
  1484. FindDeviceDiagnosisRequest({
  1485. this.deviceCode,
  1486. String? token,
  1487. }) : super(
  1488. token: token,
  1489. );
  1490. factory FindDeviceDiagnosisRequest.fromJson(Map<String, dynamic> map) {
  1491. return FindDeviceDiagnosisRequest(
  1492. deviceCode: map['DeviceCode'],
  1493. token: map['Token'],
  1494. );
  1495. }
  1496. Map<String, dynamic> toJson() {
  1497. final map = super.toJson();
  1498. if(deviceCode != null)
  1499. map['DeviceCode'] = deviceCode;
  1500. return map;
  1501. }
  1502. }
  1503. class ReportLiveStateResult {
  1504. ReportLiveStateResult();
  1505. factory ReportLiveStateResult.fromJson(Map<String, dynamic> map) {
  1506. return ReportLiveStateResult(
  1507. );
  1508. }
  1509. Map<String, dynamic> toJson() {
  1510. final map = Map<String, dynamic>();
  1511. return map;
  1512. }
  1513. }
  1514. class DeleteThesaurusCodeRequest extends TokenRequest{
  1515. String? thesaurusCode;
  1516. DeleteThesaurusCodeRequest({
  1517. this.thesaurusCode,
  1518. String? token,
  1519. }) : super(
  1520. token: token,
  1521. );
  1522. factory DeleteThesaurusCodeRequest.fromJson(Map<String, dynamic> map) {
  1523. return DeleteThesaurusCodeRequest(
  1524. thesaurusCode: map['ThesaurusCode'],
  1525. token: map['Token'],
  1526. );
  1527. }
  1528. Map<String, dynamic> toJson() {
  1529. final map = super.toJson();
  1530. if(thesaurusCode != null)
  1531. map['ThesaurusCode'] = thesaurusCode;
  1532. return map;
  1533. }
  1534. }
  1535. class SignUpRequest extends UserDTO{
  1536. SignUpRequest({
  1537. String? phone,
  1538. String? email,
  1539. String? nickName,
  1540. String? fullName,
  1541. String? organizationCode,
  1542. String? organizationName,
  1543. String? rootOrganizationCode,
  1544. String? rootOrganizationName,
  1545. List<String >? authorityGroups,
  1546. List<String >? bindDevices,
  1547. String? lastIP,
  1548. int logintimes = 0,
  1549. UserInfoStateEnum userState = UserInfoStateEnum.Nonactivated,
  1550. List<String >? roleCodes,
  1551. List<String >? rankCodes,
  1552. List<String >? positionCodes,
  1553. ApplyStateEnum applyState = ApplyStateEnum.NotApply,
  1554. String? rankName,
  1555. String? positionName,
  1556. bool isDirector = false,
  1557. List<String >? fieldList,
  1558. List<String >? deletePatientCodes,
  1559. bool isBatchExportDiagnoseData = false,
  1560. String? bindAssistantUserCode,
  1561. String? bindAssistantDoctorUserCode,
  1562. LoginLockInfoDTO? loginLockInfo,
  1563. String? signature,
  1564. String? language,
  1565. bool enableReportLabel = false,
  1566. String? userCode,
  1567. String? userName,
  1568. String? headImageUrl,
  1569. DateTime? createTime,
  1570. DateTime? updateTime,
  1571. }) : super(
  1572. phone: phone,
  1573. email: email,
  1574. nickName: nickName,
  1575. fullName: fullName,
  1576. organizationCode: organizationCode,
  1577. organizationName: organizationName,
  1578. rootOrganizationCode: rootOrganizationCode,
  1579. rootOrganizationName: rootOrganizationName,
  1580. authorityGroups: authorityGroups,
  1581. bindDevices: bindDevices,
  1582. lastIP: lastIP,
  1583. logintimes: logintimes,
  1584. userState: userState,
  1585. roleCodes: roleCodes,
  1586. rankCodes: rankCodes,
  1587. positionCodes: positionCodes,
  1588. applyState: applyState,
  1589. rankName: rankName,
  1590. positionName: positionName,
  1591. isDirector: isDirector,
  1592. fieldList: fieldList,
  1593. deletePatientCodes: deletePatientCodes,
  1594. isBatchExportDiagnoseData: isBatchExportDiagnoseData,
  1595. bindAssistantUserCode: bindAssistantUserCode,
  1596. bindAssistantDoctorUserCode: bindAssistantDoctorUserCode,
  1597. loginLockInfo: loginLockInfo,
  1598. signature: signature,
  1599. language: language,
  1600. enableReportLabel: enableReportLabel,
  1601. userCode: userCode,
  1602. userName: userName,
  1603. headImageUrl: headImageUrl,
  1604. createTime: createTime,
  1605. updateTime: updateTime,
  1606. );
  1607. factory SignUpRequest.fromJson(Map<String, dynamic> map) {
  1608. return SignUpRequest(
  1609. phone: map['Phone'],
  1610. email: map['Email'],
  1611. nickName: map['NickName'],
  1612. fullName: map['FullName'],
  1613. organizationCode: map['OrganizationCode'],
  1614. organizationName: map['OrganizationName'],
  1615. rootOrganizationCode: map['RootOrganizationCode'],
  1616. rootOrganizationName: map['RootOrganizationName'],
  1617. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  1618. bindDevices: map['BindDevices'] != null ? map['BindDevices'].cast<String>().toList() : null,
  1619. lastIP: map['LastIP'],
  1620. logintimes: map['Logintimes'],
  1621. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  1622. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  1623. rankCodes: map['RankCodes'] != null ? map['RankCodes'].cast<String>().toList() : null,
  1624. positionCodes: map['PositionCodes'] != null ? map['PositionCodes'].cast<String>().toList() : null,
  1625. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  1626. rankName: map['RankName'],
  1627. positionName: map['PositionName'],
  1628. isDirector: map['IsDirector'],
  1629. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  1630. deletePatientCodes: map['DeletePatientCodes'] != null ? map['DeletePatientCodes'].cast<String>().toList() : null,
  1631. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  1632. bindAssistantUserCode: map['BindAssistantUserCode'],
  1633. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  1634. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  1635. signature: map['Signature'],
  1636. language: map['Language'],
  1637. enableReportLabel: map['EnableReportLabel'],
  1638. userCode: map['UserCode'],
  1639. userName: map['UserName'],
  1640. headImageUrl: map['HeadImageUrl'],
  1641. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  1642. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  1643. );
  1644. }
  1645. Map<String, dynamic> toJson() {
  1646. final map = super.toJson();
  1647. return map;
  1648. }
  1649. }
  1650. class UpdateThesaurusCodeRequest extends TokenRequest{
  1651. String? thesaurusCode;
  1652. UpdateThesaurusCodeRequest({
  1653. this.thesaurusCode,
  1654. String? token,
  1655. }) : super(
  1656. token: token,
  1657. );
  1658. factory UpdateThesaurusCodeRequest.fromJson(Map<String, dynamic> map) {
  1659. return UpdateThesaurusCodeRequest(
  1660. thesaurusCode: map['ThesaurusCode'],
  1661. token: map['Token'],
  1662. );
  1663. }
  1664. Map<String, dynamic> toJson() {
  1665. final map = super.toJson();
  1666. if(thesaurusCode != null)
  1667. map['ThesaurusCode'] = thesaurusCode;
  1668. return map;
  1669. }
  1670. }
  1671. enum AnnouncementStatusEnum {
  1672. placeHolder_0,
  1673. Released,
  1674. Pending,
  1675. }
  1676. class AnnouncementInfoDTO extends BaseDTO{
  1677. String? code;
  1678. AnnouncementTypeEnum announcementType;
  1679. AnnouncementStatusEnum announcementStatus;
  1680. List<AnnouncementLanguageConfigDTO >? languageConfigs;
  1681. AnnouncementInfoDTO({
  1682. this.code,
  1683. this.announcementType = AnnouncementTypeEnum.Broadcast,
  1684. this.announcementStatus = AnnouncementStatusEnum.Released,
  1685. this.languageConfigs,
  1686. DateTime? createTime,
  1687. DateTime? updateTime,
  1688. }) : super(
  1689. createTime: createTime,
  1690. updateTime: updateTime,
  1691. );
  1692. factory AnnouncementInfoDTO.fromJson(Map<String, dynamic> map) {
  1693. return AnnouncementInfoDTO(
  1694. code: map['Code'],
  1695. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  1696. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  1697. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>AnnouncementLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1698. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  1699. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  1700. );
  1701. }
  1702. Map<String, dynamic> toJson() {
  1703. final map = super.toJson();
  1704. if(code != null)
  1705. map['Code'] = code;
  1706. map['AnnouncementType'] = announcementType.index;
  1707. map['AnnouncementStatus'] = announcementStatus.index;
  1708. if(languageConfigs != null)
  1709. map['LanguageConfigs'] = languageConfigs;
  1710. return map;
  1711. }
  1712. }
  1713. class AddAnnouncementRequest extends AnnouncementInfoDTO{
  1714. AddAnnouncementRequest({
  1715. String? code,
  1716. AnnouncementTypeEnum announcementType = AnnouncementTypeEnum.Broadcast,
  1717. AnnouncementStatusEnum announcementStatus = AnnouncementStatusEnum.Released,
  1718. List<AnnouncementLanguageConfigDTO >? languageConfigs,
  1719. DateTime? createTime,
  1720. DateTime? updateTime,
  1721. }) : super(
  1722. code: code,
  1723. announcementType: announcementType,
  1724. announcementStatus: announcementStatus,
  1725. languageConfigs: languageConfigs,
  1726. createTime: createTime,
  1727. updateTime: updateTime,
  1728. );
  1729. factory AddAnnouncementRequest.fromJson(Map<String, dynamic> map) {
  1730. return AddAnnouncementRequest(
  1731. code: map['Code'],
  1732. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  1733. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  1734. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>AnnouncementLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1735. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  1736. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  1737. );
  1738. }
  1739. Map<String, dynamic> toJson() {
  1740. final map = super.toJson();
  1741. return map;
  1742. }
  1743. }
  1744. class UpdateAnnouncementRequest extends AnnouncementInfoDTO{
  1745. UpdateAnnouncementRequest({
  1746. String? code,
  1747. AnnouncementTypeEnum announcementType = AnnouncementTypeEnum.Broadcast,
  1748. AnnouncementStatusEnum announcementStatus = AnnouncementStatusEnum.Released,
  1749. List<AnnouncementLanguageConfigDTO >? languageConfigs,
  1750. DateTime? createTime,
  1751. DateTime? updateTime,
  1752. }) : super(
  1753. code: code,
  1754. announcementType: announcementType,
  1755. announcementStatus: announcementStatus,
  1756. languageConfigs: languageConfigs,
  1757. createTime: createTime,
  1758. updateTime: updateTime,
  1759. );
  1760. factory UpdateAnnouncementRequest.fromJson(Map<String, dynamic> map) {
  1761. return UpdateAnnouncementRequest(
  1762. code: map['Code'],
  1763. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  1764. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  1765. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>AnnouncementLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1766. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  1767. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  1768. );
  1769. }
  1770. Map<String, dynamic> toJson() {
  1771. final map = super.toJson();
  1772. return map;
  1773. }
  1774. }
  1775. class AddContentConfigRequest extends TokenRequest{
  1776. String? bindTypeKey;
  1777. String? bindTypeValue;
  1778. String? bindContentKey;
  1779. String? bindContentValue;
  1780. AddContentConfigRequest({
  1781. this.bindTypeKey,
  1782. this.bindTypeValue,
  1783. this.bindContentKey,
  1784. this.bindContentValue,
  1785. String? token,
  1786. }) : super(
  1787. token: token,
  1788. );
  1789. factory AddContentConfigRequest.fromJson(Map<String, dynamic> map) {
  1790. return AddContentConfigRequest(
  1791. bindTypeKey: map['BindTypeKey'],
  1792. bindTypeValue: map['BindTypeValue'],
  1793. bindContentKey: map['BindContentKey'],
  1794. bindContentValue: map['BindContentValue'],
  1795. token: map['Token'],
  1796. );
  1797. }
  1798. Map<String, dynamic> toJson() {
  1799. final map = super.toJson();
  1800. if(bindTypeKey != null)
  1801. map['BindTypeKey'] = bindTypeKey;
  1802. if(bindTypeValue != null)
  1803. map['BindTypeValue'] = bindTypeValue;
  1804. if(bindContentKey != null)
  1805. map['BindContentKey'] = bindContentKey;
  1806. if(bindContentValue != null)
  1807. map['BindContentValue'] = bindContentValue;
  1808. return map;
  1809. }
  1810. }
  1811. enum DeviceVideoOutputTypeEnum {
  1812. MergedVideo,
  1813. Desktop,
  1814. Camera,
  1815. }
  1816. class AddDeviceOutputConfigRequest extends TokenRequest{
  1817. DeviceVideoOutputTypeEnum deviceVideoOutputType;
  1818. int videoWidth;
  1819. int videoHeight;
  1820. AddDeviceOutputConfigRequest({
  1821. this.deviceVideoOutputType = DeviceVideoOutputTypeEnum.MergedVideo,
  1822. this.videoWidth = 0,
  1823. this.videoHeight = 0,
  1824. String? token,
  1825. }) : super(
  1826. token: token,
  1827. );
  1828. factory AddDeviceOutputConfigRequest.fromJson(Map<String, dynamic> map) {
  1829. return AddDeviceOutputConfigRequest(
  1830. deviceVideoOutputType: DeviceVideoOutputTypeEnum.values.firstWhere((e) => e.index == map['DeviceVideoOutputType']),
  1831. videoWidth: map['VideoWidth'],
  1832. videoHeight: map['VideoHeight'],
  1833. token: map['Token'],
  1834. );
  1835. }
  1836. Map<String, dynamic> toJson() {
  1837. final map = super.toJson();
  1838. map['DeviceVideoOutputType'] = deviceVideoOutputType.index;
  1839. map['VideoWidth'] = videoWidth;
  1840. map['VideoHeight'] = videoHeight;
  1841. return map;
  1842. }
  1843. }
  1844. class AdminApplyCourseRequest extends TokenRequest{
  1845. String? name;
  1846. String? courseIntro;
  1847. String? teacherCode;
  1848. String? poster;
  1849. DateTime? startTime;
  1850. int duration;
  1851. CourseTypeEnum courseType;
  1852. CourseAudienceTypeEnum audienceType;
  1853. String? coursewareToken;
  1854. String? teacherName;
  1855. CourseViewRangeEnum viewRange;
  1856. List<String >? caseLabelCodes;
  1857. List<String >? courseLabelCodes;
  1858. List<String >? userGroupCodes;
  1859. Decimal? price;
  1860. List<String >? courseVideoCodes;
  1861. List<CourseExaminationDTO >? bindExams;
  1862. List<String >? assistants;
  1863. List<String >? experts;
  1864. bool isAgentCourse;
  1865. AdminApplyCourseRequest({
  1866. this.name,
  1867. this.courseIntro,
  1868. this.teacherCode,
  1869. this.poster,
  1870. this.startTime,
  1871. this.duration = 0,
  1872. this.courseType = CourseTypeEnum.Unknown,
  1873. this.audienceType = CourseAudienceTypeEnum.Unknown,
  1874. this.coursewareToken,
  1875. this.teacherName,
  1876. this.viewRange = CourseViewRangeEnum.All,
  1877. this.caseLabelCodes,
  1878. this.courseLabelCodes,
  1879. this.userGroupCodes,
  1880. this.price,
  1881. this.courseVideoCodes,
  1882. this.bindExams,
  1883. this.assistants,
  1884. this.experts,
  1885. this.isAgentCourse = false,
  1886. String? token,
  1887. }) : super(
  1888. token: token,
  1889. );
  1890. factory AdminApplyCourseRequest.fromJson(Map<String, dynamic> map) {
  1891. return AdminApplyCourseRequest(
  1892. name: map['Name'],
  1893. courseIntro: map['CourseIntro'],
  1894. teacherCode: map['TeacherCode'],
  1895. poster: map['Poster'],
  1896. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  1897. duration: map['Duration'],
  1898. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  1899. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  1900. coursewareToken: map['CoursewareToken'],
  1901. teacherName: map['TeacherName'],
  1902. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  1903. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  1904. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  1905. userGroupCodes: map['UserGroupCodes'] != null ? map['UserGroupCodes'].cast<String>().toList() : null,
  1906. price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
  1907. courseVideoCodes: map['CourseVideoCodes'] != null ? map['CourseVideoCodes'].cast<String>().toList() : null,
  1908. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1909. assistants: map['Assistants'] != null ? map['Assistants'].cast<String>().toList() : null,
  1910. experts: map['Experts'] != null ? map['Experts'].cast<String>().toList() : null,
  1911. isAgentCourse: map['IsAgentCourse'],
  1912. token: map['Token'],
  1913. );
  1914. }
  1915. Map<String, dynamic> toJson() {
  1916. final map = super.toJson();
  1917. if(name != null)
  1918. map['Name'] = name;
  1919. if(courseIntro != null)
  1920. map['CourseIntro'] = courseIntro;
  1921. if(teacherCode != null)
  1922. map['TeacherCode'] = teacherCode;
  1923. if(poster != null)
  1924. map['Poster'] = poster;
  1925. if(startTime != null)
  1926. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  1927. map['Duration'] = duration;
  1928. map['CourseType'] = courseType.index;
  1929. map['AudienceType'] = audienceType.index;
  1930. if(coursewareToken != null)
  1931. map['CoursewareToken'] = coursewareToken;
  1932. if(teacherName != null)
  1933. map['TeacherName'] = teacherName;
  1934. map['ViewRange'] = viewRange.index;
  1935. if(caseLabelCodes != null)
  1936. map['CaseLabelCodes'] = caseLabelCodes;
  1937. if(courseLabelCodes != null)
  1938. map['CourseLabelCodes'] = courseLabelCodes;
  1939. if(userGroupCodes != null)
  1940. map['UserGroupCodes'] = userGroupCodes;
  1941. if(price != null)
  1942. map['Price'] = price;
  1943. if(courseVideoCodes != null)
  1944. map['CourseVideoCodes'] = courseVideoCodes;
  1945. if(bindExams != null)
  1946. map['BindExams'] = bindExams;
  1947. if(assistants != null)
  1948. map['Assistants'] = assistants;
  1949. if(experts != null)
  1950. map['Experts'] = experts;
  1951. map['IsAgentCourse'] = isAgentCourse;
  1952. return map;
  1953. }
  1954. }
  1955. class AdminApprovalCourseRequest extends TokenRequest{
  1956. String? code;
  1957. CourseStatusEnum status;
  1958. AdminApprovalCourseRequest({
  1959. this.code,
  1960. this.status = CourseStatusEnum.Unknown,
  1961. String? token,
  1962. }) : super(
  1963. token: token,
  1964. );
  1965. factory AdminApprovalCourseRequest.fromJson(Map<String, dynamic> map) {
  1966. return AdminApprovalCourseRequest(
  1967. code: map['Code'],
  1968. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  1969. token: map['Token'],
  1970. );
  1971. }
  1972. Map<String, dynamic> toJson() {
  1973. final map = super.toJson();
  1974. if(code != null)
  1975. map['Code'] = code;
  1976. map['Status'] = status.index;
  1977. return map;
  1978. }
  1979. }
  1980. class AdminDeleteCourseByCodeRequest extends TokenRequest{
  1981. String? code;
  1982. AdminDeleteCourseByCodeRequest({
  1983. this.code,
  1984. String? token,
  1985. }) : super(
  1986. token: token,
  1987. );
  1988. factory AdminDeleteCourseByCodeRequest.fromJson(Map<String, dynamic> map) {
  1989. return AdminDeleteCourseByCodeRequest(
  1990. code: map['Code'],
  1991. token: map['Token'],
  1992. );
  1993. }
  1994. Map<String, dynamic> toJson() {
  1995. final map = super.toJson();
  1996. if(code != null)
  1997. map['Code'] = code;
  1998. return map;
  1999. }
  2000. }
  2001. class AdminFindCoursePagesRequest extends PageRequest{
  2002. String? keyword;
  2003. CourseStatusEnum status;
  2004. String? languageCode;
  2005. CourseTypeEnum courseType;
  2006. CourseAudienceTypeEnum audienceType;
  2007. AdminFindCoursePagesRequest({
  2008. this.keyword,
  2009. this.status = CourseStatusEnum.Unknown,
  2010. this.languageCode,
  2011. this.courseType = CourseTypeEnum.Unknown,
  2012. this.audienceType = CourseAudienceTypeEnum.Unknown,
  2013. int pageIndex = 0,
  2014. int pageSize = 0,
  2015. String? token,
  2016. }) : super(
  2017. pageIndex: pageIndex,
  2018. pageSize: pageSize,
  2019. token: token,
  2020. );
  2021. factory AdminFindCoursePagesRequest.fromJson(Map<String, dynamic> map) {
  2022. return AdminFindCoursePagesRequest(
  2023. keyword: map['Keyword'],
  2024. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  2025. languageCode: map['LanguageCode'],
  2026. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  2027. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  2028. pageIndex: map['PageIndex'],
  2029. pageSize: map['PageSize'],
  2030. token: map['Token'],
  2031. );
  2032. }
  2033. Map<String, dynamic> toJson() {
  2034. final map = super.toJson();
  2035. if(keyword != null)
  2036. map['Keyword'] = keyword;
  2037. map['Status'] = status.index;
  2038. if(languageCode != null)
  2039. map['LanguageCode'] = languageCode;
  2040. map['CourseType'] = courseType.index;
  2041. map['AudienceType'] = audienceType.index;
  2042. return map;
  2043. }
  2044. }
  2045. class AdminUpdateCourseRequest extends TokenRequest{
  2046. String? code;
  2047. String? name;
  2048. String? courseIntro;
  2049. String? teacherCode;
  2050. String? poster;
  2051. DateTime? startTime;
  2052. int duration;
  2053. CourseTypeEnum courseType;
  2054. CourseAudienceTypeEnum audienceType;
  2055. String? coursewareToken;
  2056. String? teacherName;
  2057. CourseViewRangeEnum viewRange;
  2058. List<String >? caseLabelCodes;
  2059. List<String >? courseLabelCodes;
  2060. List<String >? userGroupCodes;
  2061. Decimal? price;
  2062. List<String >? courseVideoCodes;
  2063. List<CourseExaminationDTO >? bindExams;
  2064. List<String >? assistants;
  2065. List<String >? experts;
  2066. bool isAgentCourse;
  2067. AdminUpdateCourseRequest({
  2068. this.code,
  2069. this.name,
  2070. this.courseIntro,
  2071. this.teacherCode,
  2072. this.poster,
  2073. this.startTime,
  2074. this.duration = 0,
  2075. this.courseType = CourseTypeEnum.Unknown,
  2076. this.audienceType = CourseAudienceTypeEnum.Unknown,
  2077. this.coursewareToken,
  2078. this.teacherName,
  2079. this.viewRange = CourseViewRangeEnum.All,
  2080. this.caseLabelCodes,
  2081. this.courseLabelCodes,
  2082. this.userGroupCodes,
  2083. this.price,
  2084. this.courseVideoCodes,
  2085. this.bindExams,
  2086. this.assistants,
  2087. this.experts,
  2088. this.isAgentCourse = false,
  2089. String? token,
  2090. }) : super(
  2091. token: token,
  2092. );
  2093. factory AdminUpdateCourseRequest.fromJson(Map<String, dynamic> map) {
  2094. return AdminUpdateCourseRequest(
  2095. code: map['Code'],
  2096. name: map['Name'],
  2097. courseIntro: map['CourseIntro'],
  2098. teacherCode: map['TeacherCode'],
  2099. poster: map['Poster'],
  2100. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  2101. duration: map['Duration'],
  2102. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  2103. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  2104. coursewareToken: map['CoursewareToken'],
  2105. teacherName: map['TeacherName'],
  2106. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  2107. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  2108. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  2109. userGroupCodes: map['UserGroupCodes'] != null ? map['UserGroupCodes'].cast<String>().toList() : null,
  2110. price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
  2111. courseVideoCodes: map['CourseVideoCodes'] != null ? map['CourseVideoCodes'].cast<String>().toList() : null,
  2112. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2113. assistants: map['Assistants'] != null ? map['Assistants'].cast<String>().toList() : null,
  2114. experts: map['Experts'] != null ? map['Experts'].cast<String>().toList() : null,
  2115. isAgentCourse: map['IsAgentCourse'],
  2116. token: map['Token'],
  2117. );
  2118. }
  2119. Map<String, dynamic> toJson() {
  2120. final map = super.toJson();
  2121. if(code != null)
  2122. map['Code'] = code;
  2123. if(name != null)
  2124. map['Name'] = name;
  2125. if(courseIntro != null)
  2126. map['CourseIntro'] = courseIntro;
  2127. if(teacherCode != null)
  2128. map['TeacherCode'] = teacherCode;
  2129. if(poster != null)
  2130. map['Poster'] = poster;
  2131. if(startTime != null)
  2132. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  2133. map['Duration'] = duration;
  2134. map['CourseType'] = courseType.index;
  2135. map['AudienceType'] = audienceType.index;
  2136. if(coursewareToken != null)
  2137. map['CoursewareToken'] = coursewareToken;
  2138. if(teacherName != null)
  2139. map['TeacherName'] = teacherName;
  2140. map['ViewRange'] = viewRange.index;
  2141. if(caseLabelCodes != null)
  2142. map['CaseLabelCodes'] = caseLabelCodes;
  2143. if(courseLabelCodes != null)
  2144. map['CourseLabelCodes'] = courseLabelCodes;
  2145. if(userGroupCodes != null)
  2146. map['UserGroupCodes'] = userGroupCodes;
  2147. if(price != null)
  2148. map['Price'] = price;
  2149. if(courseVideoCodes != null)
  2150. map['CourseVideoCodes'] = courseVideoCodes;
  2151. if(bindExams != null)
  2152. map['BindExams'] = bindExams;
  2153. if(assistants != null)
  2154. map['Assistants'] = assistants;
  2155. if(experts != null)
  2156. map['Experts'] = experts;
  2157. map['IsAgentCourse'] = isAgentCourse;
  2158. return map;
  2159. }
  2160. }
  2161. class AdminUpdateCourseBindExamsRequest extends TokenRequest{
  2162. String? code;
  2163. List<CourseExaminationDTO >? bindExams;
  2164. AdminUpdateCourseBindExamsRequest({
  2165. this.code,
  2166. this.bindExams,
  2167. String? token,
  2168. }) : super(
  2169. token: token,
  2170. );
  2171. factory AdminUpdateCourseBindExamsRequest.fromJson(Map<String, dynamic> map) {
  2172. return AdminUpdateCourseBindExamsRequest(
  2173. code: map['Code'],
  2174. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2175. token: map['Token'],
  2176. );
  2177. }
  2178. Map<String, dynamic> toJson() {
  2179. final map = super.toJson();
  2180. if(code != null)
  2181. map['Code'] = code;
  2182. if(bindExams != null)
  2183. map['BindExams'] = bindExams;
  2184. return map;
  2185. }
  2186. }
  2187. class AssignedAdminsToOrganizationsRequest extends TokenRequest{
  2188. List<String >? assignedAdmins;
  2189. List<String >? organizationCodes;
  2190. AssignedAdminsToOrganizationsRequest({
  2191. this.assignedAdmins,
  2192. this.organizationCodes,
  2193. String? token,
  2194. }) : super(
  2195. token: token,
  2196. );
  2197. factory AssignedAdminsToOrganizationsRequest.fromJson(Map<String, dynamic> map) {
  2198. return AssignedAdminsToOrganizationsRequest(
  2199. assignedAdmins: map['AssignedAdmins'] != null ? map['AssignedAdmins'].cast<String>().toList() : null,
  2200. organizationCodes: map['OrganizationCodes'] != null ? map['OrganizationCodes'].cast<String>().toList() : null,
  2201. token: map['Token'],
  2202. );
  2203. }
  2204. Map<String, dynamic> toJson() {
  2205. final map = super.toJson();
  2206. if(assignedAdmins != null)
  2207. map['AssignedAdmins'] = assignedAdmins;
  2208. if(organizationCodes != null)
  2209. map['OrganizationCodes'] = organizationCodes;
  2210. return map;
  2211. }
  2212. }
  2213. class ConfirmIdentityApplyRequest extends TokenRequest{
  2214. String? identityApplyCode;
  2215. ConfirmIdentityApplyRequest({
  2216. this.identityApplyCode,
  2217. String? token,
  2218. }) : super(
  2219. token: token,
  2220. );
  2221. factory ConfirmIdentityApplyRequest.fromJson(Map<String, dynamic> map) {
  2222. return ConfirmIdentityApplyRequest(
  2223. identityApplyCode: map['IdentityApplyCode'],
  2224. token: map['Token'],
  2225. );
  2226. }
  2227. Map<String, dynamic> toJson() {
  2228. final map = super.toJson();
  2229. if(identityApplyCode != null)
  2230. map['IdentityApplyCode'] = identityApplyCode;
  2231. return map;
  2232. }
  2233. }
  2234. class CreateThirdPartyTokenRequest extends TokenRequest{
  2235. String? code;
  2236. CreateThirdPartyTokenRequest({
  2237. this.code,
  2238. String? token,
  2239. }) : super(
  2240. token: token,
  2241. );
  2242. factory CreateThirdPartyTokenRequest.fromJson(Map<String, dynamic> map) {
  2243. return CreateThirdPartyTokenRequest(
  2244. code: map['Code'],
  2245. token: map['Token'],
  2246. );
  2247. }
  2248. Map<String, dynamic> toJson() {
  2249. final map = super.toJson();
  2250. if(code != null)
  2251. map['Code'] = code;
  2252. return map;
  2253. }
  2254. }
  2255. class DeleteAdminFeatureRequest extends TokenRequest{
  2256. String? adminFeatureCode;
  2257. DeleteAdminFeatureRequest({
  2258. this.adminFeatureCode,
  2259. String? token,
  2260. }) : super(
  2261. token: token,
  2262. );
  2263. factory DeleteAdminFeatureRequest.fromJson(Map<String, dynamic> map) {
  2264. return DeleteAdminFeatureRequest(
  2265. adminFeatureCode: map['AdminFeatureCode'],
  2266. token: map['Token'],
  2267. );
  2268. }
  2269. Map<String, dynamic> toJson() {
  2270. final map = super.toJson();
  2271. if(adminFeatureCode != null)
  2272. map['AdminFeatureCode'] = adminFeatureCode;
  2273. return map;
  2274. }
  2275. }
  2276. class DeleteAdminRoleRequest extends TokenRequest{
  2277. String? adminRoleCode;
  2278. DeleteAdminRoleRequest({
  2279. this.adminRoleCode,
  2280. String? token,
  2281. }) : super(
  2282. token: token,
  2283. );
  2284. factory DeleteAdminRoleRequest.fromJson(Map<String, dynamic> map) {
  2285. return DeleteAdminRoleRequest(
  2286. adminRoleCode: map['AdminRoleCode'],
  2287. token: map['Token'],
  2288. );
  2289. }
  2290. Map<String, dynamic> toJson() {
  2291. final map = super.toJson();
  2292. if(adminRoleCode != null)
  2293. map['AdminRoleCode'] = adminRoleCode;
  2294. return map;
  2295. }
  2296. }
  2297. class DeleteLogsRequest extends TokenRequest{
  2298. int daysAgo;
  2299. String? requestServerHost;
  2300. DeleteLogsRequest({
  2301. this.daysAgo = 0,
  2302. this.requestServerHost,
  2303. String? token,
  2304. }) : super(
  2305. token: token,
  2306. );
  2307. factory DeleteLogsRequest.fromJson(Map<String, dynamic> map) {
  2308. return DeleteLogsRequest(
  2309. daysAgo: map['DaysAgo'],
  2310. requestServerHost: map['RequestServerHost'],
  2311. token: map['Token'],
  2312. );
  2313. }
  2314. Map<String, dynamic> toJson() {
  2315. final map = super.toJson();
  2316. map['DaysAgo'] = daysAgo;
  2317. if(requestServerHost != null)
  2318. map['RequestServerHost'] = requestServerHost;
  2319. return map;
  2320. }
  2321. }
  2322. class QueryClearLogsRequest extends DeleteLogsRequest{
  2323. List<int >? dayAgoList;
  2324. QueryClearLogsRequest({
  2325. this.dayAgoList,
  2326. int daysAgo = 0,
  2327. String? requestServerHost,
  2328. String? token,
  2329. }) : super(
  2330. daysAgo: daysAgo,
  2331. requestServerHost: requestServerHost,
  2332. token: token,
  2333. );
  2334. factory QueryClearLogsRequest.fromJson(Map<String, dynamic> map) {
  2335. return QueryClearLogsRequest(
  2336. dayAgoList: map['DayAgoList'] != null ? map['DayAgoList'].cast<int>().toList() : null,
  2337. daysAgo: map['DaysAgo'],
  2338. requestServerHost: map['RequestServerHost'],
  2339. token: map['Token'],
  2340. );
  2341. }
  2342. Map<String, dynamic> toJson() {
  2343. final map = super.toJson();
  2344. if(dayAgoList != null)
  2345. map['DayAgoList'] = dayAgoList;
  2346. return map;
  2347. }
  2348. }
  2349. class DeleteRoleRequest extends TokenRequest{
  2350. String? roleCode;
  2351. DeleteRoleRequest({
  2352. this.roleCode,
  2353. String? token,
  2354. }) : super(
  2355. token: token,
  2356. );
  2357. factory DeleteRoleRequest.fromJson(Map<String, dynamic> map) {
  2358. return DeleteRoleRequest(
  2359. roleCode: map['RoleCode'],
  2360. token: map['Token'],
  2361. );
  2362. }
  2363. Map<String, dynamic> toJson() {
  2364. final map = super.toJson();
  2365. if(roleCode != null)
  2366. map['RoleCode'] = roleCode;
  2367. return map;
  2368. }
  2369. }
  2370. class DeleteThesaurusRequest extends TokenRequest{
  2371. String? thesaurusCode;
  2372. DeleteThesaurusRequest({
  2373. this.thesaurusCode,
  2374. String? token,
  2375. }) : super(
  2376. token: token,
  2377. );
  2378. factory DeleteThesaurusRequest.fromJson(Map<String, dynamic> map) {
  2379. return DeleteThesaurusRequest(
  2380. thesaurusCode: map['ThesaurusCode'],
  2381. token: map['Token'],
  2382. );
  2383. }
  2384. Map<String, dynamic> toJson() {
  2385. final map = super.toJson();
  2386. if(thesaurusCode != null)
  2387. map['ThesaurusCode'] = thesaurusCode;
  2388. return map;
  2389. }
  2390. }
  2391. class DeleteThirdPartyInfoRequest extends TokenRequest{
  2392. String? code;
  2393. DeleteThirdPartyInfoRequest({
  2394. this.code,
  2395. String? token,
  2396. }) : super(
  2397. token: token,
  2398. );
  2399. factory DeleteThirdPartyInfoRequest.fromJson(Map<String, dynamic> map) {
  2400. return DeleteThirdPartyInfoRequest(
  2401. code: map['Code'],
  2402. token: map['Token'],
  2403. );
  2404. }
  2405. Map<String, dynamic> toJson() {
  2406. final map = super.toJson();
  2407. if(code != null)
  2408. map['Code'] = code;
  2409. return map;
  2410. }
  2411. }
  2412. class DeleteUserFeatureRequest extends TokenRequest{
  2413. String? userFeatureCode;
  2414. DeleteUserFeatureRequest({
  2415. this.userFeatureCode,
  2416. String? token,
  2417. }) : super(
  2418. token: token,
  2419. );
  2420. factory DeleteUserFeatureRequest.fromJson(Map<String, dynamic> map) {
  2421. return DeleteUserFeatureRequest(
  2422. userFeatureCode: map['UserFeatureCode'],
  2423. token: map['Token'],
  2424. );
  2425. }
  2426. Map<String, dynamic> toJson() {
  2427. final map = super.toJson();
  2428. if(userFeatureCode != null)
  2429. map['UserFeatureCode'] = userFeatureCode;
  2430. return map;
  2431. }
  2432. }
  2433. enum DistributedServerTypeEnum {
  2434. Official,
  2435. Private,
  2436. }
  2437. class IPAddressInfoDTO {
  2438. String? startIp;
  2439. String? endIp;
  2440. int longStartIP;
  2441. int longEndIP;
  2442. IPAddressInfoDTO({
  2443. this.startIp,
  2444. this.endIp,
  2445. this.longStartIP = 0,
  2446. this.longEndIP = 0,
  2447. });
  2448. factory IPAddressInfoDTO.fromJson(Map<String, dynamic> map) {
  2449. return IPAddressInfoDTO(
  2450. startIp: map['StartIp'],
  2451. endIp: map['EndIp'],
  2452. longStartIP: map['LongStartIP'],
  2453. longEndIP: map['LongEndIP'],
  2454. );
  2455. }
  2456. Map<String, dynamic> toJson() {
  2457. final map = Map<String, dynamic>();
  2458. if(startIp != null)
  2459. map['StartIp'] = startIp;
  2460. if(endIp != null)
  2461. map['EndIp'] = endIp;
  2462. map['LongStartIP'] = longStartIP;
  2463. map['LongEndIP'] = longEndIP;
  2464. return map;
  2465. }
  2466. }
  2467. class DistributedServerInfoRequest extends TokenRequest{
  2468. String? code;
  2469. List<String >? codes;
  2470. bool isMaster;
  2471. String? name;
  2472. String? description;
  2473. bool enable;
  2474. DistributedServerTypeEnum serverType;
  2475. String? serverUrl;
  2476. String? lat;
  2477. String? lng;
  2478. List<IPAddressInfoDTO >? assignClientIPList;
  2479. DistributedServerInfoRequest({
  2480. this.code,
  2481. this.codes,
  2482. this.isMaster = false,
  2483. this.name,
  2484. this.description,
  2485. this.enable = false,
  2486. this.serverType = DistributedServerTypeEnum.Official,
  2487. this.serverUrl,
  2488. this.lat,
  2489. this.lng,
  2490. this.assignClientIPList,
  2491. String? token,
  2492. }) : super(
  2493. token: token,
  2494. );
  2495. factory DistributedServerInfoRequest.fromJson(Map<String, dynamic> map) {
  2496. return DistributedServerInfoRequest(
  2497. code: map['Code'],
  2498. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  2499. isMaster: map['IsMaster'],
  2500. name: map['Name'],
  2501. description: map['Description'],
  2502. enable: map['Enable'],
  2503. serverType: DistributedServerTypeEnum.values.firstWhere((e) => e.index == map['ServerType']),
  2504. serverUrl: map['ServerUrl'],
  2505. lat: map['Lat'],
  2506. lng: map['Lng'],
  2507. assignClientIPList: map['AssignClientIPList'] != null ? (map['AssignClientIPList'] as List).map((e)=>IPAddressInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2508. token: map['Token'],
  2509. );
  2510. }
  2511. Map<String, dynamic> toJson() {
  2512. final map = super.toJson();
  2513. if(code != null)
  2514. map['Code'] = code;
  2515. if(codes != null)
  2516. map['Codes'] = codes;
  2517. map['IsMaster'] = isMaster;
  2518. if(name != null)
  2519. map['Name'] = name;
  2520. if(description != null)
  2521. map['Description'] = description;
  2522. map['Enable'] = enable;
  2523. map['ServerType'] = serverType.index;
  2524. if(serverUrl != null)
  2525. map['ServerUrl'] = serverUrl;
  2526. if(lat != null)
  2527. map['Lat'] = lat;
  2528. if(lng != null)
  2529. map['Lng'] = lng;
  2530. if(assignClientIPList != null)
  2531. map['AssignClientIPList'] = assignClientIPList;
  2532. return map;
  2533. }
  2534. }
  2535. class SaveDistributedServerIpRequest extends TokenRequest{
  2536. String? startIp;
  2537. String? endIp;
  2538. String? code;
  2539. SaveDistributedServerIpRequest({
  2540. this.startIp,
  2541. this.endIp,
  2542. this.code,
  2543. String? token,
  2544. }) : super(
  2545. token: token,
  2546. );
  2547. factory SaveDistributedServerIpRequest.fromJson(Map<String, dynamic> map) {
  2548. return SaveDistributedServerIpRequest(
  2549. startIp: map['StartIp'],
  2550. endIp: map['EndIp'],
  2551. code: map['Code'],
  2552. token: map['Token'],
  2553. );
  2554. }
  2555. Map<String, dynamic> toJson() {
  2556. final map = super.toJson();
  2557. if(startIp != null)
  2558. map['StartIp'] = startIp;
  2559. if(endIp != null)
  2560. map['EndIp'] = endIp;
  2561. if(code != null)
  2562. map['Code'] = code;
  2563. return map;
  2564. }
  2565. }
  2566. class GetDistributedServerIpListRequest extends PageRequest{
  2567. String? code;
  2568. String? keyword;
  2569. GetDistributedServerIpListRequest({
  2570. this.code,
  2571. this.keyword,
  2572. int pageIndex = 0,
  2573. int pageSize = 0,
  2574. String? token,
  2575. }) : super(
  2576. pageIndex: pageIndex,
  2577. pageSize: pageSize,
  2578. token: token,
  2579. );
  2580. factory GetDistributedServerIpListRequest.fromJson(Map<String, dynamic> map) {
  2581. return GetDistributedServerIpListRequest(
  2582. code: map['Code'],
  2583. keyword: map['Keyword'],
  2584. pageIndex: map['PageIndex'],
  2585. pageSize: map['PageSize'],
  2586. token: map['Token'],
  2587. );
  2588. }
  2589. Map<String, dynamic> toJson() {
  2590. final map = super.toJson();
  2591. if(code != null)
  2592. map['Code'] = code;
  2593. if(keyword != null)
  2594. map['Keyword'] = keyword;
  2595. return map;
  2596. }
  2597. }
  2598. class FindAdminByCodeRequest extends TokenRequest{
  2599. String? adminCode;
  2600. FindAdminByCodeRequest({
  2601. this.adminCode,
  2602. String? token,
  2603. }) : super(
  2604. token: token,
  2605. );
  2606. factory FindAdminByCodeRequest.fromJson(Map<String, dynamic> map) {
  2607. return FindAdminByCodeRequest(
  2608. adminCode: map['AdminCode'],
  2609. token: map['Token'],
  2610. );
  2611. }
  2612. Map<String, dynamic> toJson() {
  2613. final map = super.toJson();
  2614. if(adminCode != null)
  2615. map['AdminCode'] = adminCode;
  2616. return map;
  2617. }
  2618. }
  2619. class FindAdminRoleByCodeRequest extends TokenRequest{
  2620. String? adminRoleCode;
  2621. FindAdminRoleByCodeRequest({
  2622. this.adminRoleCode,
  2623. String? token,
  2624. }) : super(
  2625. token: token,
  2626. );
  2627. factory FindAdminRoleByCodeRequest.fromJson(Map<String, dynamic> map) {
  2628. return FindAdminRoleByCodeRequest(
  2629. adminRoleCode: map['AdminRoleCode'],
  2630. token: map['Token'],
  2631. );
  2632. }
  2633. Map<String, dynamic> toJson() {
  2634. final map = super.toJson();
  2635. if(adminRoleCode != null)
  2636. map['AdminRoleCode'] = adminRoleCode;
  2637. return map;
  2638. }
  2639. }
  2640. class FindAdminStatisticRecordsRequest extends TokenRequest{
  2641. String? languageCode;
  2642. FindAdminStatisticRecordsRequest({
  2643. this.languageCode,
  2644. String? token,
  2645. }) : super(
  2646. token: token,
  2647. );
  2648. factory FindAdminStatisticRecordsRequest.fromJson(Map<String, dynamic> map) {
  2649. return FindAdminStatisticRecordsRequest(
  2650. languageCode: map['LanguageCode'],
  2651. token: map['Token'],
  2652. );
  2653. }
  2654. Map<String, dynamic> toJson() {
  2655. final map = super.toJson();
  2656. if(languageCode != null)
  2657. map['LanguageCode'] = languageCode;
  2658. return map;
  2659. }
  2660. }
  2661. class FindCMSStatisticRequest extends TokenRequest{
  2662. String? clientId;
  2663. FindCMSStatisticRequest({
  2664. this.clientId,
  2665. String? token,
  2666. }) : super(
  2667. token: token,
  2668. );
  2669. factory FindCMSStatisticRequest.fromJson(Map<String, dynamic> map) {
  2670. return FindCMSStatisticRequest(
  2671. clientId: map['ClientId'],
  2672. token: map['Token'],
  2673. );
  2674. }
  2675. Map<String, dynamic> toJson() {
  2676. final map = super.toJson();
  2677. if(clientId != null)
  2678. map['ClientId'] = clientId;
  2679. return map;
  2680. }
  2681. }
  2682. class FindCMSTemplateByUserRequest extends TokenRequest{
  2683. String? clientId;
  2684. FindCMSTemplateByUserRequest({
  2685. this.clientId,
  2686. String? token,
  2687. }) : super(
  2688. token: token,
  2689. );
  2690. factory FindCMSTemplateByUserRequest.fromJson(Map<String, dynamic> map) {
  2691. return FindCMSTemplateByUserRequest(
  2692. clientId: map['ClientId'],
  2693. token: map['Token'],
  2694. );
  2695. }
  2696. Map<String, dynamic> toJson() {
  2697. final map = super.toJson();
  2698. if(clientId != null)
  2699. map['ClientId'] = clientId;
  2700. return map;
  2701. }
  2702. }
  2703. class FindCMSTemplateDetailRequest extends TokenRequest{
  2704. String? cMSTemplateCode;
  2705. FindCMSTemplateDetailRequest({
  2706. this.cMSTemplateCode,
  2707. String? token,
  2708. }) : super(
  2709. token: token,
  2710. );
  2711. factory FindCMSTemplateDetailRequest.fromJson(Map<String, dynamic> map) {
  2712. return FindCMSTemplateDetailRequest(
  2713. cMSTemplateCode: map['CMSTemplateCode'],
  2714. token: map['Token'],
  2715. );
  2716. }
  2717. Map<String, dynamic> toJson() {
  2718. final map = super.toJson();
  2719. if(cMSTemplateCode != null)
  2720. map['CMSTemplateCode'] = cMSTemplateCode;
  2721. return map;
  2722. }
  2723. }
  2724. class FindCMSTemplatePageRequest extends PageRequest{
  2725. String? searchKey;
  2726. FindCMSTemplatePageRequest({
  2727. this.searchKey,
  2728. int pageIndex = 0,
  2729. int pageSize = 0,
  2730. String? token,
  2731. }) : super(
  2732. pageIndex: pageIndex,
  2733. pageSize: pageSize,
  2734. token: token,
  2735. );
  2736. factory FindCMSTemplatePageRequest.fromJson(Map<String, dynamic> map) {
  2737. return FindCMSTemplatePageRequest(
  2738. searchKey: map['SearchKey'],
  2739. pageIndex: map['PageIndex'],
  2740. pageSize: map['PageSize'],
  2741. token: map['Token'],
  2742. );
  2743. }
  2744. Map<String, dynamic> toJson() {
  2745. final map = super.toJson();
  2746. if(searchKey != null)
  2747. map['SearchKey'] = searchKey;
  2748. return map;
  2749. }
  2750. }
  2751. class FindContentConfigRequest extends TokenRequest{
  2752. int type;
  2753. String? parentCode;
  2754. FindContentConfigRequest({
  2755. this.type = 0,
  2756. this.parentCode,
  2757. String? token,
  2758. }) : super(
  2759. token: token,
  2760. );
  2761. factory FindContentConfigRequest.fromJson(Map<String, dynamic> map) {
  2762. return FindContentConfigRequest(
  2763. type: map['Type'],
  2764. parentCode: map['ParentCode'],
  2765. token: map['Token'],
  2766. );
  2767. }
  2768. Map<String, dynamic> toJson() {
  2769. final map = super.toJson();
  2770. map['Type'] = type;
  2771. if(parentCode != null)
  2772. map['ParentCode'] = parentCode;
  2773. return map;
  2774. }
  2775. }
  2776. class FindDeviceDiagnosisModulesRequest2 extends TokenRequest{
  2777. String? deviceCode;
  2778. FindDeviceDiagnosisModulesRequest2({
  2779. this.deviceCode,
  2780. String? token,
  2781. }) : super(
  2782. token: token,
  2783. );
  2784. factory FindDeviceDiagnosisModulesRequest2.fromJson(Map<String, dynamic> map) {
  2785. return FindDeviceDiagnosisModulesRequest2(
  2786. deviceCode: map['DeviceCode'],
  2787. token: map['Token'],
  2788. );
  2789. }
  2790. Map<String, dynamic> toJson() {
  2791. final map = super.toJson();
  2792. if(deviceCode != null)
  2793. map['DeviceCode'] = deviceCode;
  2794. return map;
  2795. }
  2796. }
  2797. class FindDiagnosisModuleByPageRequest extends PageRequest{
  2798. FindDiagnosisModuleByPageRequest({
  2799. int pageIndex = 0,
  2800. int pageSize = 0,
  2801. String? token,
  2802. }) : super(
  2803. pageIndex: pageIndex,
  2804. pageSize: pageSize,
  2805. token: token,
  2806. );
  2807. factory FindDiagnosisModuleByPageRequest.fromJson(Map<String, dynamic> map) {
  2808. return FindDiagnosisModuleByPageRequest(
  2809. pageIndex: map['PageIndex'],
  2810. pageSize: map['PageSize'],
  2811. token: map['Token'],
  2812. );
  2813. }
  2814. Map<String, dynamic> toJson() {
  2815. final map = super.toJson();
  2816. return map;
  2817. }
  2818. }
  2819. class FindGradingProtectionConfigByPageRequest extends PageRequest{
  2820. String? keyword;
  2821. FindGradingProtectionConfigByPageRequest({
  2822. this.keyword,
  2823. int pageIndex = 0,
  2824. int pageSize = 0,
  2825. String? token,
  2826. }) : super(
  2827. pageIndex: pageIndex,
  2828. pageSize: pageSize,
  2829. token: token,
  2830. );
  2831. factory FindGradingProtectionConfigByPageRequest.fromJson(Map<String, dynamic> map) {
  2832. return FindGradingProtectionConfigByPageRequest(
  2833. keyword: map['Keyword'],
  2834. pageIndex: map['PageIndex'],
  2835. pageSize: map['PageSize'],
  2836. token: map['Token'],
  2837. );
  2838. }
  2839. Map<String, dynamic> toJson() {
  2840. final map = super.toJson();
  2841. if(keyword != null)
  2842. map['Keyword'] = keyword;
  2843. return map;
  2844. }
  2845. }
  2846. class FindOrganizationDiagnosisModulesRequest extends TokenRequest{
  2847. String? organizationCode;
  2848. FindOrganizationDiagnosisModulesRequest({
  2849. this.organizationCode,
  2850. String? token,
  2851. }) : super(
  2852. token: token,
  2853. );
  2854. factory FindOrganizationDiagnosisModulesRequest.fromJson(Map<String, dynamic> map) {
  2855. return FindOrganizationDiagnosisModulesRequest(
  2856. organizationCode: map['OrganizationCode'],
  2857. token: map['Token'],
  2858. );
  2859. }
  2860. Map<String, dynamic> toJson() {
  2861. final map = super.toJson();
  2862. if(organizationCode != null)
  2863. map['OrganizationCode'] = organizationCode;
  2864. return map;
  2865. }
  2866. }
  2867. class FindReferralRecordSettingRequest extends TokenRequest{
  2868. FindReferralRecordSettingRequest({
  2869. String? token,
  2870. }) : super(
  2871. token: token,
  2872. );
  2873. factory FindReferralRecordSettingRequest.fromJson(Map<String, dynamic> map) {
  2874. return FindReferralRecordSettingRequest(
  2875. token: map['Token'],
  2876. );
  2877. }
  2878. Map<String, dynamic> toJson() {
  2879. final map = super.toJson();
  2880. return map;
  2881. }
  2882. }
  2883. class FindRelatedDeviceCodesRequest extends TokenRequest{
  2884. String? reportPosterCode;
  2885. FindRelatedDeviceCodesRequest({
  2886. this.reportPosterCode,
  2887. String? token,
  2888. }) : super(
  2889. token: token,
  2890. );
  2891. factory FindRelatedDeviceCodesRequest.fromJson(Map<String, dynamic> map) {
  2892. return FindRelatedDeviceCodesRequest(
  2893. reportPosterCode: map['ReportPosterCode'],
  2894. token: map['Token'],
  2895. );
  2896. }
  2897. Map<String, dynamic> toJson() {
  2898. final map = super.toJson();
  2899. if(reportPosterCode != null)
  2900. map['ReportPosterCode'] = reportPosterCode;
  2901. return map;
  2902. }
  2903. }
  2904. class FindReportLabelByCodeRequest extends TokenRequest{
  2905. String? reportLabelCode;
  2906. FindReportLabelByCodeRequest({
  2907. this.reportLabelCode,
  2908. String? token,
  2909. }) : super(
  2910. token: token,
  2911. );
  2912. factory FindReportLabelByCodeRequest.fromJson(Map<String, dynamic> map) {
  2913. return FindReportLabelByCodeRequest(
  2914. reportLabelCode: map['ReportLabelCode'],
  2915. token: map['Token'],
  2916. );
  2917. }
  2918. Map<String, dynamic> toJson() {
  2919. final map = super.toJson();
  2920. if(reportLabelCode != null)
  2921. map['ReportLabelCode'] = reportLabelCode;
  2922. return map;
  2923. }
  2924. }
  2925. class FindReportLabelByPageRequest extends PageRequest{
  2926. String? keyword;
  2927. FindReportLabelByPageRequest({
  2928. this.keyword,
  2929. int pageIndex = 0,
  2930. int pageSize = 0,
  2931. String? token,
  2932. }) : super(
  2933. pageIndex: pageIndex,
  2934. pageSize: pageSize,
  2935. token: token,
  2936. );
  2937. factory FindReportLabelByPageRequest.fromJson(Map<String, dynamic> map) {
  2938. return FindReportLabelByPageRequest(
  2939. keyword: map['Keyword'],
  2940. pageIndex: map['PageIndex'],
  2941. pageSize: map['PageSize'],
  2942. token: map['Token'],
  2943. );
  2944. }
  2945. Map<String, dynamic> toJson() {
  2946. final map = super.toJson();
  2947. if(keyword != null)
  2948. map['Keyword'] = keyword;
  2949. return map;
  2950. }
  2951. }
  2952. class FindReportPosterByCodeRequest extends TokenRequest{
  2953. String? reportPosterCode;
  2954. FindReportPosterByCodeRequest({
  2955. this.reportPosterCode,
  2956. String? token,
  2957. }) : super(
  2958. token: token,
  2959. );
  2960. factory FindReportPosterByCodeRequest.fromJson(Map<String, dynamic> map) {
  2961. return FindReportPosterByCodeRequest(
  2962. reportPosterCode: map['ReportPosterCode'],
  2963. token: map['Token'],
  2964. );
  2965. }
  2966. Map<String, dynamic> toJson() {
  2967. final map = super.toJson();
  2968. if(reportPosterCode != null)
  2969. map['ReportPosterCode'] = reportPosterCode;
  2970. return map;
  2971. }
  2972. }
  2973. class FindReportPosterByPageRequest extends PageRequest{
  2974. String? keyword;
  2975. FindReportPosterByPageRequest({
  2976. this.keyword,
  2977. int pageIndex = 0,
  2978. int pageSize = 0,
  2979. String? token,
  2980. }) : super(
  2981. pageIndex: pageIndex,
  2982. pageSize: pageSize,
  2983. token: token,
  2984. );
  2985. factory FindReportPosterByPageRequest.fromJson(Map<String, dynamic> map) {
  2986. return FindReportPosterByPageRequest(
  2987. keyword: map['Keyword'],
  2988. pageIndex: map['PageIndex'],
  2989. pageSize: map['PageSize'],
  2990. token: map['Token'],
  2991. );
  2992. }
  2993. Map<String, dynamic> toJson() {
  2994. final map = super.toJson();
  2995. if(keyword != null)
  2996. map['Keyword'] = keyword;
  2997. return map;
  2998. }
  2999. }
  3000. class FindReportPreviewUrlRequest extends TokenRequest{
  3001. String? reportCode;
  3002. String? languageCode;
  3003. FindReportPreviewUrlRequest({
  3004. this.reportCode,
  3005. this.languageCode,
  3006. String? token,
  3007. }) : super(
  3008. token: token,
  3009. );
  3010. factory FindReportPreviewUrlRequest.fromJson(Map<String, dynamic> map) {
  3011. return FindReportPreviewUrlRequest(
  3012. reportCode: map['ReportCode'],
  3013. languageCode: map['LanguageCode'],
  3014. token: map['Token'],
  3015. );
  3016. }
  3017. Map<String, dynamic> toJson() {
  3018. final map = super.toJson();
  3019. if(reportCode != null)
  3020. map['ReportCode'] = reportCode;
  3021. if(languageCode != null)
  3022. map['LanguageCode'] = languageCode;
  3023. return map;
  3024. }
  3025. }
  3026. enum PushDataStateEnum {
  3027. UnDo,
  3028. Successful,
  3029. Failed,
  3030. All,
  3031. }
  3032. class FindReportPushRecordsByPageRequest extends PageRequest{
  3033. String? keyword;
  3034. PushDataStateEnum queryState;
  3035. FindReportPushRecordsByPageRequest({
  3036. this.keyword,
  3037. this.queryState = PushDataStateEnum.UnDo,
  3038. int pageIndex = 0,
  3039. int pageSize = 0,
  3040. String? token,
  3041. }) : super(
  3042. pageIndex: pageIndex,
  3043. pageSize: pageSize,
  3044. token: token,
  3045. );
  3046. factory FindReportPushRecordsByPageRequest.fromJson(Map<String, dynamic> map) {
  3047. return FindReportPushRecordsByPageRequest(
  3048. keyword: map['Keyword'],
  3049. queryState: PushDataStateEnum.values.firstWhere((e) => e.index == map['QueryState']),
  3050. pageIndex: map['PageIndex'],
  3051. pageSize: map['PageSize'],
  3052. token: map['Token'],
  3053. );
  3054. }
  3055. Map<String, dynamic> toJson() {
  3056. final map = super.toJson();
  3057. if(keyword != null)
  3058. map['Keyword'] = keyword;
  3059. map['QueryState'] = queryState.index;
  3060. return map;
  3061. }
  3062. }
  3063. class FindReportShareConentRequest extends TokenRequest{
  3064. String? shortCode;
  3065. FindReportShareConentRequest({
  3066. this.shortCode,
  3067. String? token,
  3068. }) : super(
  3069. token: token,
  3070. );
  3071. factory FindReportShareConentRequest.fromJson(Map<String, dynamic> map) {
  3072. return FindReportShareConentRequest(
  3073. shortCode: map['ShortCode'],
  3074. token: map['Token'],
  3075. );
  3076. }
  3077. Map<String, dynamic> toJson() {
  3078. final map = super.toJson();
  3079. if(shortCode != null)
  3080. map['ShortCode'] = shortCode;
  3081. return map;
  3082. }
  3083. }
  3084. class FindReportTemplateUserPagesRequest extends PageRequest{
  3085. String? reportTemplateCode;
  3086. String? keyword;
  3087. FindReportTemplateUserPagesRequest({
  3088. this.reportTemplateCode,
  3089. this.keyword,
  3090. int pageIndex = 0,
  3091. int pageSize = 0,
  3092. String? token,
  3093. }) : super(
  3094. pageIndex: pageIndex,
  3095. pageSize: pageSize,
  3096. token: token,
  3097. );
  3098. factory FindReportTemplateUserPagesRequest.fromJson(Map<String, dynamic> map) {
  3099. return FindReportTemplateUserPagesRequest(
  3100. reportTemplateCode: map['ReportTemplateCode'],
  3101. keyword: map['Keyword'],
  3102. pageIndex: map['PageIndex'],
  3103. pageSize: map['PageSize'],
  3104. token: map['Token'],
  3105. );
  3106. }
  3107. Map<String, dynamic> toJson() {
  3108. final map = super.toJson();
  3109. if(reportTemplateCode != null)
  3110. map['ReportTemplateCode'] = reportTemplateCode;
  3111. if(keyword != null)
  3112. map['Keyword'] = keyword;
  3113. return map;
  3114. }
  3115. }
  3116. class FindRoleByCodeRequest extends TokenRequest{
  3117. String? roleCode;
  3118. FindRoleByCodeRequest({
  3119. this.roleCode,
  3120. String? token,
  3121. }) : super(
  3122. token: token,
  3123. );
  3124. factory FindRoleByCodeRequest.fromJson(Map<String, dynamic> map) {
  3125. return FindRoleByCodeRequest(
  3126. roleCode: map['RoleCode'],
  3127. token: map['Token'],
  3128. );
  3129. }
  3130. Map<String, dynamic> toJson() {
  3131. final map = super.toJson();
  3132. if(roleCode != null)
  3133. map['RoleCode'] = roleCode;
  3134. return map;
  3135. }
  3136. }
  3137. class FindThesaurusByCodeRequest extends TokenRequest{
  3138. String? thesaurusCode;
  3139. FindThesaurusByCodeRequest({
  3140. this.thesaurusCode,
  3141. String? token,
  3142. }) : super(
  3143. token: token,
  3144. );
  3145. factory FindThesaurusByCodeRequest.fromJson(Map<String, dynamic> map) {
  3146. return FindThesaurusByCodeRequest(
  3147. thesaurusCode: map['ThesaurusCode'],
  3148. token: map['Token'],
  3149. );
  3150. }
  3151. Map<String, dynamic> toJson() {
  3152. final map = super.toJson();
  3153. if(thesaurusCode != null)
  3154. map['ThesaurusCode'] = thesaurusCode;
  3155. return map;
  3156. }
  3157. }
  3158. class FindThesaurusPagesRequest extends PageRequest{
  3159. String? keyword;
  3160. FindThesaurusPagesRequest({
  3161. this.keyword,
  3162. int pageIndex = 0,
  3163. int pageSize = 0,
  3164. String? token,
  3165. }) : super(
  3166. pageIndex: pageIndex,
  3167. pageSize: pageSize,
  3168. token: token,
  3169. );
  3170. factory FindThesaurusPagesRequest.fromJson(Map<String, dynamic> map) {
  3171. return FindThesaurusPagesRequest(
  3172. keyword: map['Keyword'],
  3173. pageIndex: map['PageIndex'],
  3174. pageSize: map['PageSize'],
  3175. token: map['Token'],
  3176. );
  3177. }
  3178. Map<String, dynamic> toJson() {
  3179. final map = super.toJson();
  3180. if(keyword != null)
  3181. map['Keyword'] = keyword;
  3182. return map;
  3183. }
  3184. }
  3185. class FindThesaurusUserPagesRequest extends PageRequest{
  3186. String? thesaurusCode;
  3187. String? keyword;
  3188. FindThesaurusUserPagesRequest({
  3189. this.thesaurusCode,
  3190. this.keyword,
  3191. int pageIndex = 0,
  3192. int pageSize = 0,
  3193. String? token,
  3194. }) : super(
  3195. pageIndex: pageIndex,
  3196. pageSize: pageSize,
  3197. token: token,
  3198. );
  3199. factory FindThesaurusUserPagesRequest.fromJson(Map<String, dynamic> map) {
  3200. return FindThesaurusUserPagesRequest(
  3201. thesaurusCode: map['ThesaurusCode'],
  3202. keyword: map['Keyword'],
  3203. pageIndex: map['PageIndex'],
  3204. pageSize: map['PageSize'],
  3205. token: map['Token'],
  3206. );
  3207. }
  3208. Map<String, dynamic> toJson() {
  3209. final map = super.toJson();
  3210. if(thesaurusCode != null)
  3211. map['ThesaurusCode'] = thesaurusCode;
  3212. if(keyword != null)
  3213. map['Keyword'] = keyword;
  3214. return map;
  3215. }
  3216. }
  3217. class FindThirdPartyInfoByCodeRequest extends TokenRequest{
  3218. String? code;
  3219. FindThirdPartyInfoByCodeRequest({
  3220. this.code,
  3221. String? token,
  3222. }) : super(
  3223. token: token,
  3224. );
  3225. factory FindThirdPartyInfoByCodeRequest.fromJson(Map<String, dynamic> map) {
  3226. return FindThirdPartyInfoByCodeRequest(
  3227. code: map['Code'],
  3228. token: map['Token'],
  3229. );
  3230. }
  3231. Map<String, dynamic> toJson() {
  3232. final map = super.toJson();
  3233. if(code != null)
  3234. map['Code'] = code;
  3235. return map;
  3236. }
  3237. }
  3238. class FindUserByCodeRequest extends TokenRequest{
  3239. String? userCode;
  3240. FindUserByCodeRequest({
  3241. this.userCode,
  3242. String? token,
  3243. }) : super(
  3244. token: token,
  3245. );
  3246. factory FindUserByCodeRequest.fromJson(Map<String, dynamic> map) {
  3247. return FindUserByCodeRequest(
  3248. userCode: map['UserCode'],
  3249. token: map['Token'],
  3250. );
  3251. }
  3252. Map<String, dynamic> toJson() {
  3253. final map = super.toJson();
  3254. if(userCode != null)
  3255. map['UserCode'] = userCode;
  3256. return map;
  3257. }
  3258. }
  3259. class GetAdminPagesRequest extends PageRequest{
  3260. String? queryType;
  3261. String? keyWord;
  3262. String? roleCode;
  3263. bool isShowSuperRoleCode;
  3264. String? fatherCode;
  3265. GetAdminPagesRequest({
  3266. this.queryType,
  3267. this.keyWord,
  3268. this.roleCode,
  3269. this.isShowSuperRoleCode = false,
  3270. this.fatherCode,
  3271. int pageIndex = 0,
  3272. int pageSize = 0,
  3273. String? token,
  3274. }) : super(
  3275. pageIndex: pageIndex,
  3276. pageSize: pageSize,
  3277. token: token,
  3278. );
  3279. factory GetAdminPagesRequest.fromJson(Map<String, dynamic> map) {
  3280. return GetAdminPagesRequest(
  3281. queryType: map['QueryType'],
  3282. keyWord: map['KeyWord'],
  3283. roleCode: map['RoleCode'],
  3284. isShowSuperRoleCode: map['IsShowSuperRoleCode'],
  3285. fatherCode: map['FatherCode'],
  3286. pageIndex: map['PageIndex'],
  3287. pageSize: map['PageSize'],
  3288. token: map['Token'],
  3289. );
  3290. }
  3291. Map<String, dynamic> toJson() {
  3292. final map = super.toJson();
  3293. if(queryType != null)
  3294. map['QueryType'] = queryType;
  3295. if(keyWord != null)
  3296. map['KeyWord'] = keyWord;
  3297. if(roleCode != null)
  3298. map['RoleCode'] = roleCode;
  3299. map['IsShowSuperRoleCode'] = isShowSuperRoleCode;
  3300. if(fatherCode != null)
  3301. map['FatherCode'] = fatherCode;
  3302. return map;
  3303. }
  3304. }
  3305. class GetAdminRolePagesRequest extends PageRequest{
  3306. String? roleName;
  3307. GetAdminRolePagesRequest({
  3308. this.roleName,
  3309. int pageIndex = 0,
  3310. int pageSize = 0,
  3311. String? token,
  3312. }) : super(
  3313. pageIndex: pageIndex,
  3314. pageSize: pageSize,
  3315. token: token,
  3316. );
  3317. factory GetAdminRolePagesRequest.fromJson(Map<String, dynamic> map) {
  3318. return GetAdminRolePagesRequest(
  3319. roleName: map['RoleName'],
  3320. pageIndex: map['PageIndex'],
  3321. pageSize: map['PageSize'],
  3322. token: map['Token'],
  3323. );
  3324. }
  3325. Map<String, dynamic> toJson() {
  3326. final map = super.toJson();
  3327. if(roleName != null)
  3328. map['RoleName'] = roleName;
  3329. return map;
  3330. }
  3331. }
  3332. class GetDeviceModelSelectRequest extends TokenRequest{
  3333. String? parentCode;
  3334. GetDeviceModelSelectRequest({
  3335. this.parentCode,
  3336. String? token,
  3337. }) : super(
  3338. token: token,
  3339. );
  3340. factory GetDeviceModelSelectRequest.fromJson(Map<String, dynamic> map) {
  3341. return GetDeviceModelSelectRequest(
  3342. parentCode: map['ParentCode'],
  3343. token: map['Token'],
  3344. );
  3345. }
  3346. Map<String, dynamic> toJson() {
  3347. final map = super.toJson();
  3348. if(parentCode != null)
  3349. map['ParentCode'] = parentCode;
  3350. return map;
  3351. }
  3352. }
  3353. class GetDeviceOutputConfigRequest extends TokenRequest{
  3354. DeviceVideoOutputTypeEnum deviceVideoOutputType;
  3355. GetDeviceOutputConfigRequest({
  3356. this.deviceVideoOutputType = DeviceVideoOutputTypeEnum.MergedVideo,
  3357. String? token,
  3358. }) : super(
  3359. token: token,
  3360. );
  3361. factory GetDeviceOutputConfigRequest.fromJson(Map<String, dynamic> map) {
  3362. return GetDeviceOutputConfigRequest(
  3363. deviceVideoOutputType: DeviceVideoOutputTypeEnum.values.firstWhere((e) => e.index == map['DeviceVideoOutputType']),
  3364. token: map['Token'],
  3365. );
  3366. }
  3367. Map<String, dynamic> toJson() {
  3368. final map = super.toJson();
  3369. map['DeviceVideoOutputType'] = deviceVideoOutputType.index;
  3370. return map;
  3371. }
  3372. }
  3373. class GetDevicePagesRequest extends PageRequest{
  3374. String? queryType;
  3375. String? keyword;
  3376. List<String >? hospitals;
  3377. String? adminName;
  3378. String? userName;
  3379. GetDevicePagesRequest({
  3380. this.queryType,
  3381. this.keyword,
  3382. this.hospitals,
  3383. this.adminName,
  3384. this.userName,
  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 GetDevicePagesRequest.fromJson(Map<String, dynamic> map) {
  3394. return GetDevicePagesRequest(
  3395. queryType: map['QueryType'],
  3396. keyword: map['Keyword'],
  3397. hospitals: map['Hospitals'] != null ? map['Hospitals'].cast<String>().toList() : null,
  3398. adminName: map['AdminName'],
  3399. userName: map['UserName'],
  3400. pageIndex: map['PageIndex'],
  3401. pageSize: map['PageSize'],
  3402. token: map['Token'],
  3403. );
  3404. }
  3405. Map<String, dynamic> toJson() {
  3406. final map = super.toJson();
  3407. if(queryType != null)
  3408. map['QueryType'] = queryType;
  3409. if(keyword != null)
  3410. map['Keyword'] = keyword;
  3411. if(hospitals != null)
  3412. map['Hospitals'] = hospitals;
  3413. if(adminName != null)
  3414. map['AdminName'] = adminName;
  3415. if(userName != null)
  3416. map['UserName'] = userName;
  3417. return map;
  3418. }
  3419. }
  3420. class GetDeviceTypePagesRequest extends PageRequest{
  3421. String? deviceType;
  3422. String? deviceModel;
  3423. GetDeviceTypePagesRequest({
  3424. this.deviceType,
  3425. this.deviceModel,
  3426. int pageIndex = 0,
  3427. int pageSize = 0,
  3428. String? token,
  3429. }) : super(
  3430. pageIndex: pageIndex,
  3431. pageSize: pageSize,
  3432. token: token,
  3433. );
  3434. factory GetDeviceTypePagesRequest.fromJson(Map<String, dynamic> map) {
  3435. return GetDeviceTypePagesRequest(
  3436. deviceType: map['DeviceType'],
  3437. deviceModel: map['DeviceModel'],
  3438. pageIndex: map['PageIndex'],
  3439. pageSize: map['PageSize'],
  3440. token: map['Token'],
  3441. );
  3442. }
  3443. Map<String, dynamic> toJson() {
  3444. final map = super.toJson();
  3445. if(deviceType != null)
  3446. map['DeviceType'] = deviceType;
  3447. if(deviceModel != null)
  3448. map['DeviceModel'] = deviceModel;
  3449. return map;
  3450. }
  3451. }
  3452. class GetDeviceUserPagesRequest extends PageRequest{
  3453. List<String >? deviceCodes;
  3454. String? queryType;
  3455. String? keyword;
  3456. int type;
  3457. GetDeviceUserPagesRequest({
  3458. this.deviceCodes,
  3459. this.queryType,
  3460. this.keyword,
  3461. this.type = 0,
  3462. int pageIndex = 0,
  3463. int pageSize = 0,
  3464. String? token,
  3465. }) : super(
  3466. pageIndex: pageIndex,
  3467. pageSize: pageSize,
  3468. token: token,
  3469. );
  3470. factory GetDeviceUserPagesRequest.fromJson(Map<String, dynamic> map) {
  3471. return GetDeviceUserPagesRequest(
  3472. deviceCodes: map['DeviceCodes'] != null ? map['DeviceCodes'].cast<String>().toList() : null,
  3473. queryType: map['QueryType'],
  3474. keyword: map['Keyword'],
  3475. type: map['Type'],
  3476. pageIndex: map['PageIndex'],
  3477. pageSize: map['PageSize'],
  3478. token: map['Token'],
  3479. );
  3480. }
  3481. Map<String, dynamic> toJson() {
  3482. final map = super.toJson();
  3483. if(deviceCodes != null)
  3484. map['DeviceCodes'] = deviceCodes;
  3485. if(queryType != null)
  3486. map['QueryType'] = queryType;
  3487. if(keyword != null)
  3488. map['Keyword'] = keyword;
  3489. map['Type'] = type;
  3490. return map;
  3491. }
  3492. }
  3493. class GetDistributedServerRequest extends PageRequest{
  3494. String? keyword;
  3495. GetDistributedServerRequest({
  3496. this.keyword,
  3497. int pageIndex = 0,
  3498. int pageSize = 0,
  3499. String? token,
  3500. }) : super(
  3501. pageIndex: pageIndex,
  3502. pageSize: pageSize,
  3503. token: token,
  3504. );
  3505. factory GetDistributedServerRequest.fromJson(Map<String, dynamic> map) {
  3506. return GetDistributedServerRequest(
  3507. keyword: map['Keyword'],
  3508. pageIndex: map['PageIndex'],
  3509. pageSize: map['PageSize'],
  3510. token: map['Token'],
  3511. );
  3512. }
  3513. Map<String, dynamic> toJson() {
  3514. final map = super.toJson();
  3515. if(keyword != null)
  3516. map['Keyword'] = keyword;
  3517. return map;
  3518. }
  3519. }
  3520. class GetLogPagesRequest extends PageRequest{
  3521. String? level;
  3522. String? keyWord;
  3523. String? exclude;
  3524. DateTime? startTime;
  3525. DateTime? endTime;
  3526. String? requestServerHost;
  3527. GetLogPagesRequest({
  3528. this.level,
  3529. this.keyWord,
  3530. this.exclude,
  3531. this.startTime,
  3532. this.endTime,
  3533. this.requestServerHost,
  3534. int pageIndex = 0,
  3535. int pageSize = 0,
  3536. String? token,
  3537. }) : super(
  3538. pageIndex: pageIndex,
  3539. pageSize: pageSize,
  3540. token: token,
  3541. );
  3542. factory GetLogPagesRequest.fromJson(Map<String, dynamic> map) {
  3543. return GetLogPagesRequest(
  3544. level: map['Level'],
  3545. keyWord: map['KeyWord'],
  3546. exclude: map['Exclude'],
  3547. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  3548. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  3549. requestServerHost: map['RequestServerHost'],
  3550. pageIndex: map['PageIndex'],
  3551. pageSize: map['PageSize'],
  3552. token: map['Token'],
  3553. );
  3554. }
  3555. Map<String, dynamic> toJson() {
  3556. final map = super.toJson();
  3557. if(level != null)
  3558. map['Level'] = level;
  3559. if(keyWord != null)
  3560. map['KeyWord'] = keyWord;
  3561. if(exclude != null)
  3562. map['Exclude'] = exclude;
  3563. if(startTime != null)
  3564. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  3565. if(endTime != null)
  3566. map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
  3567. if(requestServerHost != null)
  3568. map['RequestServerHost'] = requestServerHost;
  3569. return map;
  3570. }
  3571. }
  3572. class GetOrganizationCustomSettingRequest extends TokenRequest{
  3573. String? langugeKey;
  3574. String? settingModule;
  3575. String? organizationCode;
  3576. GetOrganizationCustomSettingRequest({
  3577. this.langugeKey,
  3578. this.settingModule,
  3579. this.organizationCode,
  3580. String? token,
  3581. }) : super(
  3582. token: token,
  3583. );
  3584. factory GetOrganizationCustomSettingRequest.fromJson(Map<String, dynamic> map) {
  3585. return GetOrganizationCustomSettingRequest(
  3586. langugeKey: map['LangugeKey'],
  3587. settingModule: map['SettingModule'],
  3588. organizationCode: map['OrganizationCode'],
  3589. token: map['Token'],
  3590. );
  3591. }
  3592. Map<String, dynamic> toJson() {
  3593. final map = super.toJson();
  3594. if(langugeKey != null)
  3595. map['LangugeKey'] = langugeKey;
  3596. if(settingModule != null)
  3597. map['SettingModule'] = settingModule;
  3598. if(organizationCode != null)
  3599. map['OrganizationCode'] = organizationCode;
  3600. return map;
  3601. }
  3602. }
  3603. class GetOrganizationPagesRequest extends PageRequest{
  3604. String? queryType;
  3605. String? keyword;
  3606. String? state;
  3607. String? isinvented;
  3608. GetOrganizationPagesRequest({
  3609. this.queryType,
  3610. this.keyword,
  3611. this.state,
  3612. this.isinvented,
  3613. int pageIndex = 0,
  3614. int pageSize = 0,
  3615. String? token,
  3616. }) : super(
  3617. pageIndex: pageIndex,
  3618. pageSize: pageSize,
  3619. token: token,
  3620. );
  3621. factory GetOrganizationPagesRequest.fromJson(Map<String, dynamic> map) {
  3622. return GetOrganizationPagesRequest(
  3623. queryType: map['QueryType'],
  3624. keyword: map['Keyword'],
  3625. state: map['State'],
  3626. isinvented: map['Isinvented'],
  3627. pageIndex: map['PageIndex'],
  3628. pageSize: map['PageSize'],
  3629. token: map['Token'],
  3630. );
  3631. }
  3632. Map<String, dynamic> toJson() {
  3633. final map = super.toJson();
  3634. if(queryType != null)
  3635. map['QueryType'] = queryType;
  3636. if(keyword != null)
  3637. map['Keyword'] = keyword;
  3638. if(state != null)
  3639. map['State'] = state;
  3640. if(isinvented != null)
  3641. map['Isinvented'] = isinvented;
  3642. return map;
  3643. }
  3644. }
  3645. class GetOrganizationRequest extends TokenRequest{
  3646. String? organizationCode;
  3647. GetOrganizationRequest({
  3648. this.organizationCode,
  3649. String? token,
  3650. }) : super(
  3651. token: token,
  3652. );
  3653. factory GetOrganizationRequest.fromJson(Map<String, dynamic> map) {
  3654. return GetOrganizationRequest(
  3655. organizationCode: map['OrganizationCode'],
  3656. token: map['Token'],
  3657. );
  3658. }
  3659. Map<String, dynamic> toJson() {
  3660. final map = super.toJson();
  3661. if(organizationCode != null)
  3662. map['OrganizationCode'] = organizationCode;
  3663. return map;
  3664. }
  3665. }
  3666. class GetOrganizationSettingRequest extends TokenRequest{
  3667. OrganizationSettingTypeEnum settingType;
  3668. String? organizationCode;
  3669. GetOrganizationSettingRequest({
  3670. this.settingType = OrganizationSettingTypeEnum.Patient,
  3671. this.organizationCode,
  3672. String? token,
  3673. }) : super(
  3674. token: token,
  3675. );
  3676. factory GetOrganizationSettingRequest.fromJson(Map<String, dynamic> map) {
  3677. return GetOrganizationSettingRequest(
  3678. settingType: OrganizationSettingTypeEnum.values.firstWhere((e) => e.index == map['SettingType']),
  3679. organizationCode: map['OrganizationCode'],
  3680. token: map['Token'],
  3681. );
  3682. }
  3683. Map<String, dynamic> toJson() {
  3684. final map = super.toJson();
  3685. map['SettingType'] = settingType.index;
  3686. if(organizationCode != null)
  3687. map['OrganizationCode'] = organizationCode;
  3688. return map;
  3689. }
  3690. }
  3691. class GetOrganizationUserPagesRequest extends PageRequest{
  3692. String? organizationCode;
  3693. String? queryType;
  3694. String? keyword;
  3695. GetOrganizationUserPagesRequest({
  3696. this.organizationCode,
  3697. this.queryType,
  3698. this.keyword,
  3699. int pageIndex = 0,
  3700. int pageSize = 0,
  3701. String? token,
  3702. }) : super(
  3703. pageIndex: pageIndex,
  3704. pageSize: pageSize,
  3705. token: token,
  3706. );
  3707. factory GetOrganizationUserPagesRequest.fromJson(Map<String, dynamic> map) {
  3708. return GetOrganizationUserPagesRequest(
  3709. organizationCode: map['OrganizationCode'],
  3710. queryType: map['QueryType'],
  3711. keyword: map['Keyword'],
  3712. pageIndex: map['PageIndex'],
  3713. pageSize: map['PageSize'],
  3714. token: map['Token'],
  3715. );
  3716. }
  3717. Map<String, dynamic> toJson() {
  3718. final map = super.toJson();
  3719. if(organizationCode != null)
  3720. map['OrganizationCode'] = organizationCode;
  3721. if(queryType != null)
  3722. map['QueryType'] = queryType;
  3723. if(keyword != null)
  3724. map['Keyword'] = keyword;
  3725. return map;
  3726. }
  3727. }
  3728. class GetRolePagesRequest extends PageRequest{
  3729. String? roleName;
  3730. GetRolePagesRequest({
  3731. this.roleName,
  3732. int pageIndex = 0,
  3733. int pageSize = 0,
  3734. String? token,
  3735. }) : super(
  3736. pageIndex: pageIndex,
  3737. pageSize: pageSize,
  3738. token: token,
  3739. );
  3740. factory GetRolePagesRequest.fromJson(Map<String, dynamic> map) {
  3741. return GetRolePagesRequest(
  3742. roleName: map['RoleName'],
  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(roleName != null)
  3751. map['RoleName'] = roleName;
  3752. return map;
  3753. }
  3754. }
  3755. class GetShareExamUrlRequest {
  3756. String? requestUrl;
  3757. String? languageCode;
  3758. GetShareExamUrlRequest({
  3759. this.requestUrl,
  3760. this.languageCode,
  3761. });
  3762. factory GetShareExamUrlRequest.fromJson(Map<String, dynamic> map) {
  3763. return GetShareExamUrlRequest(
  3764. requestUrl: map['RequestUrl'],
  3765. languageCode: map['LanguageCode'],
  3766. );
  3767. }
  3768. Map<String, dynamic> toJson() {
  3769. final map = Map<String, dynamic>();
  3770. if(requestUrl != null)
  3771. map['RequestUrl'] = requestUrl;
  3772. if(languageCode != null)
  3773. map['LanguageCode'] = languageCode;
  3774. return map;
  3775. }
  3776. }
  3777. class GetThesaurusItemRequest extends TokenRequest{
  3778. String? thesaurusCode;
  3779. String? thesaurusItemCode;
  3780. GetThesaurusItemRequest({
  3781. this.thesaurusCode,
  3782. this.thesaurusItemCode,
  3783. String? token,
  3784. }) : super(
  3785. token: token,
  3786. );
  3787. factory GetThesaurusItemRequest.fromJson(Map<String, dynamic> map) {
  3788. return GetThesaurusItemRequest(
  3789. thesaurusCode: map['ThesaurusCode'],
  3790. thesaurusItemCode: map['ThesaurusItemCode'],
  3791. token: map['Token'],
  3792. );
  3793. }
  3794. Map<String, dynamic> toJson() {
  3795. final map = super.toJson();
  3796. if(thesaurusCode != null)
  3797. map['ThesaurusCode'] = thesaurusCode;
  3798. if(thesaurusItemCode != null)
  3799. map['ThesaurusItemCode'] = thesaurusItemCode;
  3800. return map;
  3801. }
  3802. }
  3803. class GetThirdPartyInfoPagesRequest extends PageRequest{
  3804. String? name;
  3805. String? isValid;
  3806. GetThirdPartyInfoPagesRequest({
  3807. this.name,
  3808. this.isValid,
  3809. int pageIndex = 0,
  3810. int pageSize = 0,
  3811. String? token,
  3812. }) : super(
  3813. pageIndex: pageIndex,
  3814. pageSize: pageSize,
  3815. token: token,
  3816. );
  3817. factory GetThirdPartyInfoPagesRequest.fromJson(Map<String, dynamic> map) {
  3818. return GetThirdPartyInfoPagesRequest(
  3819. name: map['Name'],
  3820. isValid: map['IsValid'],
  3821. pageIndex: map['PageIndex'],
  3822. pageSize: map['PageSize'],
  3823. token: map['Token'],
  3824. );
  3825. }
  3826. Map<String, dynamic> toJson() {
  3827. final map = super.toJson();
  3828. if(name != null)
  3829. map['Name'] = name;
  3830. if(isValid != null)
  3831. map['IsValid'] = isValid;
  3832. return map;
  3833. }
  3834. }
  3835. class GetUserPagesRequest extends PageRequest{
  3836. String? queryType;
  3837. String? keyword;
  3838. String? queryState;
  3839. GetUserPagesRequest({
  3840. this.queryType,
  3841. this.keyword,
  3842. this.queryState,
  3843. int pageIndex = 0,
  3844. int pageSize = 0,
  3845. String? token,
  3846. }) : super(
  3847. pageIndex: pageIndex,
  3848. pageSize: pageSize,
  3849. token: token,
  3850. );
  3851. factory GetUserPagesRequest.fromJson(Map<String, dynamic> map) {
  3852. return GetUserPagesRequest(
  3853. queryType: map['QueryType'],
  3854. keyword: map['Keyword'],
  3855. queryState: map['QueryState'],
  3856. pageIndex: map['PageIndex'],
  3857. pageSize: map['PageSize'],
  3858. token: map['Token'],
  3859. );
  3860. }
  3861. Map<String, dynamic> toJson() {
  3862. final map = super.toJson();
  3863. if(queryType != null)
  3864. map['QueryType'] = queryType;
  3865. if(keyword != null)
  3866. map['Keyword'] = keyword;
  3867. if(queryState != null)
  3868. map['QueryState'] = queryState;
  3869. return map;
  3870. }
  3871. }
  3872. class ImitateLoginRequest {
  3873. String? account;
  3874. String? password;
  3875. AccountType accountType;
  3876. ImitateLoginRequest({
  3877. this.account,
  3878. this.password,
  3879. this.accountType = AccountType.Admin,
  3880. });
  3881. factory ImitateLoginRequest.fromJson(Map<String, dynamic> map) {
  3882. return ImitateLoginRequest(
  3883. account: map['Account'],
  3884. password: map['Password'],
  3885. accountType: AccountType.values.firstWhere((e) => e.index == map['AccountType']),
  3886. );
  3887. }
  3888. Map<String, dynamic> toJson() {
  3889. final map = Map<String, dynamic>();
  3890. if(account != null)
  3891. map['Account'] = account;
  3892. if(password != null)
  3893. map['Password'] = password;
  3894. map['AccountType'] = accountType.index;
  3895. return map;
  3896. }
  3897. }
  3898. class ImitateLoginResult {
  3899. String? clientId;
  3900. ImitateLoginResult({
  3901. this.clientId,
  3902. });
  3903. factory ImitateLoginResult.fromJson(Map<String, dynamic> map) {
  3904. return ImitateLoginResult(
  3905. clientId: map['ClientId'],
  3906. );
  3907. }
  3908. Map<String, dynamic> toJson() {
  3909. final map = Map<String, dynamic>();
  3910. if(clientId != null)
  3911. map['ClientId'] = clientId;
  3912. return map;
  3913. }
  3914. }
  3915. class LoginRequest {
  3916. String? adminName;
  3917. String? password;
  3918. LoginRequest({
  3919. this.adminName,
  3920. this.password,
  3921. });
  3922. factory LoginRequest.fromJson(Map<String, dynamic> map) {
  3923. return LoginRequest(
  3924. adminName: map['AdminName'],
  3925. password: map['Password'],
  3926. );
  3927. }
  3928. Map<String, dynamic> toJson() {
  3929. final map = Map<String, dynamic>();
  3930. if(adminName != null)
  3931. map['AdminName'] = adminName;
  3932. if(password != null)
  3933. map['Password'] = password;
  3934. return map;
  3935. }
  3936. }
  3937. enum ProductStatusEnum {
  3938. SoldOut,
  3939. Putaway,
  3940. }
  3941. enum ProductTypeEnum {
  3942. Course,
  3943. Other,
  3944. }
  3945. class ManageCreateProductRequest extends TokenRequest{
  3946. String? name;
  3947. String? headImage;
  3948. double price;
  3949. ProductStatusEnum status;
  3950. ProductTypeEnum productType;
  3951. String? belongerCode;
  3952. String? relationInfo;
  3953. ManageCreateProductRequest({
  3954. this.name,
  3955. this.headImage,
  3956. this.price = 0,
  3957. this.status = ProductStatusEnum.SoldOut,
  3958. this.productType = ProductTypeEnum.Course,
  3959. this.belongerCode,
  3960. this.relationInfo,
  3961. String? token,
  3962. }) : super(
  3963. token: token,
  3964. );
  3965. factory ManageCreateProductRequest.fromJson(Map<String, dynamic> map) {
  3966. return ManageCreateProductRequest(
  3967. name: map['Name'],
  3968. headImage: map['HeadImage'],
  3969. price: double.parse(map['Price'].toString()),
  3970. status: ProductStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  3971. productType: ProductTypeEnum.values.firstWhere((e) => e.index == map['ProductType']),
  3972. belongerCode: map['BelongerCode'],
  3973. relationInfo: map['RelationInfo'],
  3974. token: map['Token'],
  3975. );
  3976. }
  3977. Map<String, dynamic> toJson() {
  3978. final map = super.toJson();
  3979. if(name != null)
  3980. map['Name'] = name;
  3981. if(headImage != null)
  3982. map['HeadImage'] = headImage;
  3983. map['Price'] = price;
  3984. map['Status'] = status.index;
  3985. map['ProductType'] = productType.index;
  3986. if(belongerCode != null)
  3987. map['BelongerCode'] = belongerCode;
  3988. if(relationInfo != null)
  3989. map['RelationInfo'] = relationInfo;
  3990. return map;
  3991. }
  3992. }
  3993. class ManageGetOrderDetailRequest extends TokenRequest{
  3994. String? orderCode;
  3995. ManageGetOrderDetailRequest({
  3996. this.orderCode,
  3997. String? token,
  3998. }) : super(
  3999. token: token,
  4000. );
  4001. factory ManageGetOrderDetailRequest.fromJson(Map<String, dynamic> map) {
  4002. return ManageGetOrderDetailRequest(
  4003. orderCode: map['OrderCode'],
  4004. token: map['Token'],
  4005. );
  4006. }
  4007. Map<String, dynamic> toJson() {
  4008. final map = super.toJson();
  4009. if(orderCode != null)
  4010. map['OrderCode'] = orderCode;
  4011. return map;
  4012. }
  4013. }
  4014. class ManageGetOrderPagesRequest extends PageRequest{
  4015. String? keyWord;
  4016. ManageGetOrderPagesRequest({
  4017. this.keyWord,
  4018. int pageIndex = 0,
  4019. int pageSize = 0,
  4020. String? token,
  4021. }) : super(
  4022. pageIndex: pageIndex,
  4023. pageSize: pageSize,
  4024. token: token,
  4025. );
  4026. factory ManageGetOrderPagesRequest.fromJson(Map<String, dynamic> map) {
  4027. return ManageGetOrderPagesRequest(
  4028. keyWord: map['KeyWord'],
  4029. pageIndex: map['PageIndex'],
  4030. pageSize: map['PageSize'],
  4031. token: map['Token'],
  4032. );
  4033. }
  4034. Map<String, dynamic> toJson() {
  4035. final map = super.toJson();
  4036. if(keyWord != null)
  4037. map['KeyWord'] = keyWord;
  4038. return map;
  4039. }
  4040. }
  4041. class ManageGetPaymentRecordsRequest extends PageRequest{
  4042. String? keyword;
  4043. ManageGetPaymentRecordsRequest({
  4044. this.keyword,
  4045. int pageIndex = 0,
  4046. int pageSize = 0,
  4047. String? token,
  4048. }) : super(
  4049. pageIndex: pageIndex,
  4050. pageSize: pageSize,
  4051. token: token,
  4052. );
  4053. factory ManageGetPaymentRecordsRequest.fromJson(Map<String, dynamic> map) {
  4054. return ManageGetPaymentRecordsRequest(
  4055. keyword: map['Keyword'],
  4056. pageIndex: map['PageIndex'],
  4057. pageSize: map['PageSize'],
  4058. token: map['Token'],
  4059. );
  4060. }
  4061. Map<String, dynamic> toJson() {
  4062. final map = super.toJson();
  4063. if(keyword != null)
  4064. map['Keyword'] = keyword;
  4065. return map;
  4066. }
  4067. }
  4068. class ManageUpdateProductRequest extends TokenRequest{
  4069. String? code;
  4070. String? name;
  4071. String? headImage;
  4072. double price;
  4073. ProductStatusEnum status;
  4074. ProductTypeEnum productType;
  4075. String? belongerCode;
  4076. String? relationInfo;
  4077. ManageUpdateProductRequest({
  4078. this.code,
  4079. this.name,
  4080. this.headImage,
  4081. this.price = 0,
  4082. this.status = ProductStatusEnum.SoldOut,
  4083. this.productType = ProductTypeEnum.Course,
  4084. this.belongerCode,
  4085. this.relationInfo,
  4086. String? token,
  4087. }) : super(
  4088. token: token,
  4089. );
  4090. factory ManageUpdateProductRequest.fromJson(Map<String, dynamic> map) {
  4091. return ManageUpdateProductRequest(
  4092. code: map['Code'],
  4093. name: map['Name'],
  4094. headImage: map['HeadImage'],
  4095. price: double.parse(map['Price'].toString()),
  4096. status: ProductStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  4097. productType: ProductTypeEnum.values.firstWhere((e) => e.index == map['ProductType']),
  4098. belongerCode: map['BelongerCode'],
  4099. relationInfo: map['RelationInfo'],
  4100. token: map['Token'],
  4101. );
  4102. }
  4103. Map<String, dynamic> toJson() {
  4104. final map = super.toJson();
  4105. if(code != null)
  4106. map['Code'] = code;
  4107. if(name != null)
  4108. map['Name'] = name;
  4109. if(headImage != null)
  4110. map['HeadImage'] = headImage;
  4111. map['Price'] = price;
  4112. map['Status'] = status.index;
  4113. map['ProductType'] = productType.index;
  4114. if(belongerCode != null)
  4115. map['BelongerCode'] = belongerCode;
  4116. if(relationInfo != null)
  4117. map['RelationInfo'] = relationInfo;
  4118. return map;
  4119. }
  4120. }
  4121. class BaseFeatureInfoDTO extends BaseDTO{
  4122. String? featureCode;
  4123. String? featureName;
  4124. String? fatherCode;
  4125. String? uniqueCode;
  4126. BaseFeatureInfoDTO({
  4127. this.featureCode,
  4128. this.featureName,
  4129. this.fatherCode,
  4130. this.uniqueCode,
  4131. DateTime? createTime,
  4132. DateTime? updateTime,
  4133. }) : super(
  4134. createTime: createTime,
  4135. updateTime: updateTime,
  4136. );
  4137. factory BaseFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  4138. return BaseFeatureInfoDTO(
  4139. featureCode: map['FeatureCode'],
  4140. featureName: map['FeatureName'],
  4141. fatherCode: map['FatherCode'],
  4142. uniqueCode: map['UniqueCode'],
  4143. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4144. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4145. );
  4146. }
  4147. Map<String, dynamic> toJson() {
  4148. final map = super.toJson();
  4149. if(featureCode != null)
  4150. map['FeatureCode'] = featureCode;
  4151. if(featureName != null)
  4152. map['FeatureName'] = featureName;
  4153. if(fatherCode != null)
  4154. map['FatherCode'] = fatherCode;
  4155. if(uniqueCode != null)
  4156. map['UniqueCode'] = uniqueCode;
  4157. return map;
  4158. }
  4159. }
  4160. class AdminFeatureInfoDTO extends BaseFeatureInfoDTO{
  4161. AdminFeatureInfoDTO({
  4162. String? featureCode,
  4163. String? featureName,
  4164. String? fatherCode,
  4165. String? uniqueCode,
  4166. DateTime? createTime,
  4167. DateTime? updateTime,
  4168. }) : super(
  4169. featureCode: featureCode,
  4170. featureName: featureName,
  4171. fatherCode: fatherCode,
  4172. uniqueCode: uniqueCode,
  4173. createTime: createTime,
  4174. updateTime: updateTime,
  4175. );
  4176. factory AdminFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  4177. return AdminFeatureInfoDTO(
  4178. featureCode: map['FeatureCode'],
  4179. featureName: map['FeatureName'],
  4180. fatherCode: map['FatherCode'],
  4181. uniqueCode: map['UniqueCode'],
  4182. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4183. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4184. );
  4185. }
  4186. Map<String, dynamic> toJson() {
  4187. final map = super.toJson();
  4188. return map;
  4189. }
  4190. }
  4191. class ModifyAdminFeatureRequest extends AdminFeatureInfoDTO{
  4192. String? token;
  4193. ModifyAdminFeatureRequest({
  4194. this.token,
  4195. String? featureCode,
  4196. String? featureName,
  4197. String? fatherCode,
  4198. String? uniqueCode,
  4199. DateTime? createTime,
  4200. DateTime? updateTime,
  4201. }) : super(
  4202. featureCode: featureCode,
  4203. featureName: featureName,
  4204. fatherCode: fatherCode,
  4205. uniqueCode: uniqueCode,
  4206. createTime: createTime,
  4207. updateTime: updateTime,
  4208. );
  4209. factory ModifyAdminFeatureRequest.fromJson(Map<String, dynamic> map) {
  4210. return ModifyAdminFeatureRequest(
  4211. token: map['Token'],
  4212. featureCode: map['FeatureCode'],
  4213. featureName: map['FeatureName'],
  4214. fatherCode: map['FatherCode'],
  4215. uniqueCode: map['UniqueCode'],
  4216. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4217. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4218. );
  4219. }
  4220. Map<String, dynamic> toJson() {
  4221. final map = super.toJson();
  4222. if(token != null)
  4223. map['Token'] = token;
  4224. return map;
  4225. }
  4226. }
  4227. class ModifyAdminPasswordRequest extends TokenRequest{
  4228. String? adminCode;
  4229. String? oldPassword;
  4230. String? newPassword;
  4231. ModifyAdminPasswordRequest({
  4232. this.adminCode,
  4233. this.oldPassword,
  4234. this.newPassword,
  4235. String? token,
  4236. }) : super(
  4237. token: token,
  4238. );
  4239. factory ModifyAdminPasswordRequest.fromJson(Map<String, dynamic> map) {
  4240. return ModifyAdminPasswordRequest(
  4241. adminCode: map['AdminCode'],
  4242. oldPassword: map['OldPassword'],
  4243. newPassword: map['NewPassword'],
  4244. token: map['Token'],
  4245. );
  4246. }
  4247. Map<String, dynamic> toJson() {
  4248. final map = super.toJson();
  4249. if(adminCode != null)
  4250. map['AdminCode'] = adminCode;
  4251. if(oldPassword != null)
  4252. map['OldPassword'] = oldPassword;
  4253. if(newPassword != null)
  4254. map['NewPassword'] = newPassword;
  4255. return map;
  4256. }
  4257. }
  4258. class ClearLogOperateDTO {
  4259. String? serverHost;
  4260. DateTime? lastClearTime;
  4261. DateTime? lastClearOperateTime;
  4262. ClearLogOperateDTO({
  4263. this.serverHost,
  4264. this.lastClearTime,
  4265. this.lastClearOperateTime,
  4266. });
  4267. factory ClearLogOperateDTO.fromJson(Map<String, dynamic> map) {
  4268. return ClearLogOperateDTO(
  4269. serverHost: map['ServerHost'],
  4270. lastClearTime: map['LastClearTime'] != null ? DateTime.parse(map['LastClearTime']) : null,
  4271. lastClearOperateTime: map['LastClearOperateTime'] != null ? DateTime.parse(map['LastClearOperateTime']) : null,
  4272. );
  4273. }
  4274. Map<String, dynamic> toJson() {
  4275. final map = Map<String, dynamic>();
  4276. if(serverHost != null)
  4277. map['ServerHost'] = serverHost;
  4278. if(lastClearTime != null)
  4279. map['LastClearTime'] = JsonRpcUtils.dateFormat(lastClearTime!);
  4280. if(lastClearOperateTime != null)
  4281. map['LastClearOperateTime'] = JsonRpcUtils.dateFormat(lastClearOperateTime!);
  4282. return map;
  4283. }
  4284. }
  4285. class AdminInfoDTO extends BaseDTO{
  4286. String? adminCode;
  4287. String? fatherCode;
  4288. String? adminName;
  4289. String? fullName;
  4290. String? secretPassword;
  4291. String? headImageToken;
  4292. String? licenseKey;
  4293. String? lastIP;
  4294. String? phone;
  4295. String? email;
  4296. List<String >? roleCodes;
  4297. LoginLockInfoDTO? loginLockInfo;
  4298. DateTime? passwordUpdateTime;
  4299. List<String >? passwordRecords;
  4300. List<ClearLogOperateDTO >? clearLogOperateList;
  4301. AdminInfoDTO({
  4302. this.adminCode,
  4303. this.fatherCode,
  4304. this.adminName,
  4305. this.fullName,
  4306. this.secretPassword,
  4307. this.headImageToken,
  4308. this.licenseKey,
  4309. this.lastIP,
  4310. this.phone,
  4311. this.email,
  4312. this.roleCodes,
  4313. this.loginLockInfo,
  4314. this.passwordUpdateTime,
  4315. this.passwordRecords,
  4316. this.clearLogOperateList,
  4317. DateTime? createTime,
  4318. DateTime? updateTime,
  4319. }) : super(
  4320. createTime: createTime,
  4321. updateTime: updateTime,
  4322. );
  4323. factory AdminInfoDTO.fromJson(Map<String, dynamic> map) {
  4324. return AdminInfoDTO(
  4325. adminCode: map['AdminCode'],
  4326. fatherCode: map['FatherCode'],
  4327. adminName: map['AdminName'],
  4328. fullName: map['FullName'],
  4329. secretPassword: map['SecretPassword'],
  4330. headImageToken: map['HeadImageToken'],
  4331. licenseKey: map['LicenseKey'],
  4332. lastIP: map['LastIP'],
  4333. phone: map['Phone'],
  4334. email: map['Email'],
  4335. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  4336. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  4337. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  4338. passwordRecords: map['PasswordRecords'] != null ? map['PasswordRecords'].cast<String>().toList() : null,
  4339. clearLogOperateList: map['ClearLogOperateList'] != null ? (map['ClearLogOperateList'] as List).map((e)=>ClearLogOperateDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4340. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4341. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4342. );
  4343. }
  4344. Map<String, dynamic> toJson() {
  4345. final map = super.toJson();
  4346. if(adminCode != null)
  4347. map['AdminCode'] = adminCode;
  4348. if(fatherCode != null)
  4349. map['FatherCode'] = fatherCode;
  4350. if(adminName != null)
  4351. map['AdminName'] = adminName;
  4352. if(fullName != null)
  4353. map['FullName'] = fullName;
  4354. if(secretPassword != null)
  4355. map['SecretPassword'] = secretPassword;
  4356. if(headImageToken != null)
  4357. map['HeadImageToken'] = headImageToken;
  4358. if(licenseKey != null)
  4359. map['LicenseKey'] = licenseKey;
  4360. if(lastIP != null)
  4361. map['LastIP'] = lastIP;
  4362. if(phone != null)
  4363. map['Phone'] = phone;
  4364. if(email != null)
  4365. map['Email'] = email;
  4366. if(roleCodes != null)
  4367. map['RoleCodes'] = roleCodes;
  4368. if(loginLockInfo != null)
  4369. map['LoginLockInfo'] = loginLockInfo;
  4370. if(passwordUpdateTime != null)
  4371. map['PasswordUpdateTime'] = JsonRpcUtils.dateFormat(passwordUpdateTime!);
  4372. if(passwordRecords != null)
  4373. map['PasswordRecords'] = passwordRecords;
  4374. if(clearLogOperateList != null)
  4375. map['ClearLogOperateList'] = clearLogOperateList;
  4376. return map;
  4377. }
  4378. }
  4379. class ModifyAdminRequest extends AdminInfoDTO{
  4380. String? token;
  4381. ModifyAdminRequest({
  4382. this.token,
  4383. String? adminCode,
  4384. String? fatherCode,
  4385. String? adminName,
  4386. String? fullName,
  4387. String? secretPassword,
  4388. String? headImageToken,
  4389. String? licenseKey,
  4390. String? lastIP,
  4391. String? phone,
  4392. String? email,
  4393. List<String >? roleCodes,
  4394. LoginLockInfoDTO? loginLockInfo,
  4395. DateTime? passwordUpdateTime,
  4396. List<String >? passwordRecords,
  4397. List<ClearLogOperateDTO >? clearLogOperateList,
  4398. DateTime? createTime,
  4399. DateTime? updateTime,
  4400. }) : super(
  4401. adminCode: adminCode,
  4402. fatherCode: fatherCode,
  4403. adminName: adminName,
  4404. fullName: fullName,
  4405. secretPassword: secretPassword,
  4406. headImageToken: headImageToken,
  4407. licenseKey: licenseKey,
  4408. lastIP: lastIP,
  4409. phone: phone,
  4410. email: email,
  4411. roleCodes: roleCodes,
  4412. loginLockInfo: loginLockInfo,
  4413. passwordUpdateTime: passwordUpdateTime,
  4414. passwordRecords: passwordRecords,
  4415. clearLogOperateList: clearLogOperateList,
  4416. createTime: createTime,
  4417. updateTime: updateTime,
  4418. );
  4419. factory ModifyAdminRequest.fromJson(Map<String, dynamic> map) {
  4420. return ModifyAdminRequest(
  4421. token: map['Token'],
  4422. adminCode: map['AdminCode'],
  4423. fatherCode: map['FatherCode'],
  4424. adminName: map['AdminName'],
  4425. fullName: map['FullName'],
  4426. secretPassword: map['SecretPassword'],
  4427. headImageToken: map['HeadImageToken'],
  4428. licenseKey: map['LicenseKey'],
  4429. lastIP: map['LastIP'],
  4430. phone: map['Phone'],
  4431. email: map['Email'],
  4432. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  4433. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  4434. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  4435. passwordRecords: map['PasswordRecords'] != null ? map['PasswordRecords'].cast<String>().toList() : null,
  4436. clearLogOperateList: map['ClearLogOperateList'] != null ? (map['ClearLogOperateList'] as List).map((e)=>ClearLogOperateDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4437. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4438. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4439. );
  4440. }
  4441. Map<String, dynamic> toJson() {
  4442. final map = super.toJson();
  4443. if(token != null)
  4444. map['Token'] = token;
  4445. return map;
  4446. }
  4447. }
  4448. class AdminRoleDTO extends BaseRoleDTO{
  4449. String? adminGroupCode;
  4450. int adminNum;
  4451. AdminRoleDTO({
  4452. this.adminGroupCode,
  4453. this.adminNum = 0,
  4454. String? roleCode,
  4455. String? roleName,
  4456. String? description,
  4457. List<UserRoleLanguageConfigDTO >? languageConfigs,
  4458. DateTime? createTime,
  4459. DateTime? updateTime,
  4460. }) : super(
  4461. roleCode: roleCode,
  4462. roleName: roleName,
  4463. description: description,
  4464. languageConfigs: languageConfigs,
  4465. createTime: createTime,
  4466. updateTime: updateTime,
  4467. );
  4468. factory AdminRoleDTO.fromJson(Map<String, dynamic> map) {
  4469. return AdminRoleDTO(
  4470. adminGroupCode: map['AdminGroupCode'],
  4471. adminNum: map['AdminNum'],
  4472. roleCode: map['RoleCode'],
  4473. roleName: map['RoleName'],
  4474. description: map['Description'],
  4475. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4476. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4477. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4478. );
  4479. }
  4480. Map<String, dynamic> toJson() {
  4481. final map = super.toJson();
  4482. if(adminGroupCode != null)
  4483. map['AdminGroupCode'] = adminGroupCode;
  4484. map['AdminNum'] = adminNum;
  4485. return map;
  4486. }
  4487. }
  4488. class ModifyAdminRoleInfoRequest extends AdminRoleDTO{
  4489. String? token;
  4490. List<String >? featuresCodeList;
  4491. ModifyAdminRoleInfoRequest({
  4492. this.token,
  4493. this.featuresCodeList,
  4494. String? adminGroupCode,
  4495. int adminNum = 0,
  4496. String? roleCode,
  4497. String? roleName,
  4498. String? description,
  4499. List<UserRoleLanguageConfigDTO >? languageConfigs,
  4500. DateTime? createTime,
  4501. DateTime? updateTime,
  4502. }) : super(
  4503. adminGroupCode: adminGroupCode,
  4504. adminNum: adminNum,
  4505. roleCode: roleCode,
  4506. roleName: roleName,
  4507. description: description,
  4508. languageConfigs: languageConfigs,
  4509. createTime: createTime,
  4510. updateTime: updateTime,
  4511. );
  4512. factory ModifyAdminRoleInfoRequest.fromJson(Map<String, dynamic> map) {
  4513. return ModifyAdminRoleInfoRequest(
  4514. token: map['Token'],
  4515. featuresCodeList: map['FeaturesCodeList'] != null ? map['FeaturesCodeList'].cast<String>().toList() : null,
  4516. adminGroupCode: map['AdminGroupCode'],
  4517. adminNum: map['AdminNum'],
  4518. roleCode: map['RoleCode'],
  4519. roleName: map['RoleName'],
  4520. description: map['Description'],
  4521. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4522. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4523. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4524. );
  4525. }
  4526. Map<String, dynamic> toJson() {
  4527. final map = super.toJson();
  4528. if(token != null)
  4529. map['Token'] = token;
  4530. if(featuresCodeList != null)
  4531. map['FeaturesCodeList'] = featuresCodeList;
  4532. return map;
  4533. }
  4534. }
  4535. class ModifyAdminsRolesRequest {
  4536. String? token;
  4537. List<String >? adminCodes;
  4538. List<String >? adminRoleCodes;
  4539. ModifyAdminsRolesRequest({
  4540. this.token,
  4541. this.adminCodes,
  4542. this.adminRoleCodes,
  4543. });
  4544. factory ModifyAdminsRolesRequest.fromJson(Map<String, dynamic> map) {
  4545. return ModifyAdminsRolesRequest(
  4546. token: map['Token'],
  4547. adminCodes: map['AdminCodes'] != null ? map['AdminCodes'].cast<String>().toList() : null,
  4548. adminRoleCodes: map['AdminRoleCodes'] != null ? map['AdminRoleCodes'].cast<String>().toList() : null,
  4549. );
  4550. }
  4551. Map<String, dynamic> toJson() {
  4552. final map = Map<String, dynamic>();
  4553. if(token != null)
  4554. map['Token'] = token;
  4555. if(adminCodes != null)
  4556. map['AdminCodes'] = adminCodes;
  4557. if(adminRoleCodes != null)
  4558. map['AdminRoleCodes'] = adminRoleCodes;
  4559. return map;
  4560. }
  4561. }
  4562. class ModifyDeviceRequest2 extends DeviceInfoDTO{
  4563. String? token;
  4564. ModifyDeviceRequest2({
  4565. this.token,
  4566. String? deviceCode,
  4567. String? serialNumber,
  4568. String? password,
  4569. String? name,
  4570. String? description,
  4571. String? deviceModel,
  4572. String? deviceType,
  4573. String? headPicUrl,
  4574. String? deviceSoftwareVersion,
  4575. String? sDKSoftwareVersion,
  4576. String? organizationCode,
  4577. String? departmentCode,
  4578. String? shortCode,
  4579. bool isAutoShared = false,
  4580. bool isEncryptedShow = false,
  4581. DateTime? lastLoginTime,
  4582. String? systemVersion,
  4583. String? cPUModel,
  4584. String? systemLanguage,
  4585. List<String >? diagnosisModules,
  4586. List<String >? reportPosterCodes,
  4587. bool mergedChannel = false,
  4588. int mergedVideoOutputWidth = 0,
  4589. int mergedVideoOutputHeight = 0,
  4590. List<VideoDeviceDTO >? videoDeviceInfos,
  4591. DownloadModeSettingEnum downloadModeSetting = DownloadModeSettingEnum.Auto,
  4592. bool liveOpened = false,
  4593. DateTime? createTime,
  4594. DateTime? updateTime,
  4595. }) : super(
  4596. deviceCode: deviceCode,
  4597. serialNumber: serialNumber,
  4598. password: password,
  4599. name: name,
  4600. description: description,
  4601. deviceModel: deviceModel,
  4602. deviceType: deviceType,
  4603. headPicUrl: headPicUrl,
  4604. deviceSoftwareVersion: deviceSoftwareVersion,
  4605. sDKSoftwareVersion: sDKSoftwareVersion,
  4606. organizationCode: organizationCode,
  4607. departmentCode: departmentCode,
  4608. shortCode: shortCode,
  4609. isAutoShared: isAutoShared,
  4610. isEncryptedShow: isEncryptedShow,
  4611. lastLoginTime: lastLoginTime,
  4612. systemVersion: systemVersion,
  4613. cPUModel: cPUModel,
  4614. systemLanguage: systemLanguage,
  4615. diagnosisModules: diagnosisModules,
  4616. reportPosterCodes: reportPosterCodes,
  4617. mergedChannel: mergedChannel,
  4618. mergedVideoOutputWidth: mergedVideoOutputWidth,
  4619. mergedVideoOutputHeight: mergedVideoOutputHeight,
  4620. videoDeviceInfos: videoDeviceInfos,
  4621. downloadModeSetting: downloadModeSetting,
  4622. liveOpened: liveOpened,
  4623. createTime: createTime,
  4624. updateTime: updateTime,
  4625. );
  4626. factory ModifyDeviceRequest2.fromJson(Map<String, dynamic> map) {
  4627. return ModifyDeviceRequest2(
  4628. token: map['Token'],
  4629. deviceCode: map['DeviceCode'],
  4630. serialNumber: map['SerialNumber'],
  4631. password: map['Password'],
  4632. name: map['Name'],
  4633. description: map['Description'],
  4634. deviceModel: map['DeviceModel'],
  4635. deviceType: map['DeviceType'],
  4636. headPicUrl: map['HeadPicUrl'],
  4637. deviceSoftwareVersion: map['DeviceSoftwareVersion'],
  4638. sDKSoftwareVersion: map['SDKSoftwareVersion'],
  4639. organizationCode: map['OrganizationCode'],
  4640. departmentCode: map['DepartmentCode'],
  4641. shortCode: map['ShortCode'],
  4642. isAutoShared: map['IsAutoShared'],
  4643. isEncryptedShow: map['IsEncryptedShow'],
  4644. lastLoginTime: map['LastLoginTime'] != null ? DateTime.parse(map['LastLoginTime']) : null,
  4645. systemVersion: map['SystemVersion'],
  4646. cPUModel: map['CPUModel'],
  4647. systemLanguage: map['SystemLanguage'],
  4648. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  4649. reportPosterCodes: map['ReportPosterCodes'] != null ? map['ReportPosterCodes'].cast<String>().toList() : null,
  4650. mergedChannel: map['MergedChannel'],
  4651. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  4652. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  4653. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4654. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  4655. liveOpened: map['LiveOpened'],
  4656. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4657. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4658. );
  4659. }
  4660. Map<String, dynamic> toJson() {
  4661. final map = super.toJson();
  4662. if(token != null)
  4663. map['Token'] = token;
  4664. return map;
  4665. }
  4666. }
  4667. class ModifyDeviceDownloadModeRequest extends TokenRequest{
  4668. String? deviceCode;
  4669. DownloadModeSettingEnum downloadModeSetting;
  4670. ModifyDeviceDownloadModeRequest({
  4671. this.deviceCode,
  4672. this.downloadModeSetting = DownloadModeSettingEnum.Auto,
  4673. String? token,
  4674. }) : super(
  4675. token: token,
  4676. );
  4677. factory ModifyDeviceDownloadModeRequest.fromJson(Map<String, dynamic> map) {
  4678. return ModifyDeviceDownloadModeRequest(
  4679. deviceCode: map['DeviceCode'],
  4680. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  4681. token: map['Token'],
  4682. );
  4683. }
  4684. Map<String, dynamic> toJson() {
  4685. final map = super.toJson();
  4686. if(deviceCode != null)
  4687. map['DeviceCode'] = deviceCode;
  4688. map['DownloadModeSetting'] = downloadModeSetting.index;
  4689. return map;
  4690. }
  4691. }
  4692. class ModifyDeviceMergedVideoSizeRequest extends TokenRequest{
  4693. String? deviceCode;
  4694. bool mergedChannel;
  4695. int mergedVideoOutputWidth;
  4696. int mergedVideoOutputHeight;
  4697. List<VideoDeviceDTO >? videoDeviceInfos;
  4698. ModifyDeviceMergedVideoSizeRequest({
  4699. this.deviceCode,
  4700. this.mergedChannel = false,
  4701. this.mergedVideoOutputWidth = 0,
  4702. this.mergedVideoOutputHeight = 0,
  4703. this.videoDeviceInfos,
  4704. String? token,
  4705. }) : super(
  4706. token: token,
  4707. );
  4708. factory ModifyDeviceMergedVideoSizeRequest.fromJson(Map<String, dynamic> map) {
  4709. return ModifyDeviceMergedVideoSizeRequest(
  4710. deviceCode: map['DeviceCode'],
  4711. mergedChannel: map['MergedChannel'],
  4712. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  4713. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  4714. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4715. token: map['Token'],
  4716. );
  4717. }
  4718. Map<String, dynamic> toJson() {
  4719. final map = super.toJson();
  4720. if(deviceCode != null)
  4721. map['DeviceCode'] = deviceCode;
  4722. map['MergedChannel'] = mergedChannel;
  4723. map['MergedVideoOutputWidth'] = mergedVideoOutputWidth;
  4724. map['MergedVideoOutputHeight'] = mergedVideoOutputHeight;
  4725. if(videoDeviceInfos != null)
  4726. map['VideoDeviceInfos'] = videoDeviceInfos;
  4727. return map;
  4728. }
  4729. }
  4730. class DeviceModelClass {
  4731. String? deviceModelCode;
  4732. String? deviceModelName;
  4733. DeviceModelClass({
  4734. this.deviceModelCode,
  4735. this.deviceModelName,
  4736. });
  4737. factory DeviceModelClass.fromJson(Map<String, dynamic> map) {
  4738. return DeviceModelClass(
  4739. deviceModelCode: map['DeviceModelCode'],
  4740. deviceModelName: map['DeviceModelName'],
  4741. );
  4742. }
  4743. Map<String, dynamic> toJson() {
  4744. final map = Map<String, dynamic>();
  4745. if(deviceModelCode != null)
  4746. map['DeviceModelCode'] = deviceModelCode;
  4747. if(deviceModelName != null)
  4748. map['DeviceModelName'] = deviceModelName;
  4749. return map;
  4750. }
  4751. }
  4752. class ModifyDeviceTypeRequest extends TokenRequest{
  4753. String? deviceTypeCode;
  4754. List<DictionaryLanguageConfigDTO >? languageConfigs;
  4755. List<DeviceModelClass >? deviceModelList;
  4756. ModifyDeviceTypeRequest({
  4757. this.deviceTypeCode,
  4758. this.languageConfigs,
  4759. this.deviceModelList,
  4760. String? token,
  4761. }) : super(
  4762. token: token,
  4763. );
  4764. factory ModifyDeviceTypeRequest.fromJson(Map<String, dynamic> map) {
  4765. return ModifyDeviceTypeRequest(
  4766. deviceTypeCode: map['DeviceTypeCode'],
  4767. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>DictionaryLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4768. deviceModelList: map['DeviceModelList'] != null ? (map['DeviceModelList'] as List).map((e)=>DeviceModelClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  4769. token: map['Token'],
  4770. );
  4771. }
  4772. Map<String, dynamic> toJson() {
  4773. final map = super.toJson();
  4774. if(deviceTypeCode != null)
  4775. map['DeviceTypeCode'] = deviceTypeCode;
  4776. if(languageConfigs != null)
  4777. map['LanguageConfigs'] = languageConfigs;
  4778. if(deviceModelList != null)
  4779. map['DeviceModelList'] = deviceModelList;
  4780. return map;
  4781. }
  4782. }
  4783. class ModifyDiagnosisModuleEnableStateRequest extends TokenRequest{
  4784. List<String >? diagnosisModules;
  4785. bool enabled;
  4786. ModifyDiagnosisModuleEnableStateRequest({
  4787. this.diagnosisModules,
  4788. this.enabled = false,
  4789. String? token,
  4790. }) : super(
  4791. token: token,
  4792. );
  4793. factory ModifyDiagnosisModuleEnableStateRequest.fromJson(Map<String, dynamic> map) {
  4794. return ModifyDiagnosisModuleEnableStateRequest(
  4795. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  4796. enabled: map['Enabled'],
  4797. token: map['Token'],
  4798. );
  4799. }
  4800. Map<String, dynamic> toJson() {
  4801. final map = super.toJson();
  4802. if(diagnosisModules != null)
  4803. map['DiagnosisModules'] = diagnosisModules;
  4804. map['Enabled'] = enabled;
  4805. return map;
  4806. }
  4807. }
  4808. class ModifyDiagnosisModulesRequest extends TokenRequest{
  4809. List<String >? diagnosisModules;
  4810. ModifyDiagnosisModulesRequest({
  4811. this.diagnosisModules,
  4812. String? token,
  4813. }) : super(
  4814. token: token,
  4815. );
  4816. factory ModifyDiagnosisModulesRequest.fromJson(Map<String, dynamic> map) {
  4817. return ModifyDiagnosisModulesRequest(
  4818. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  4819. token: map['Token'],
  4820. );
  4821. }
  4822. Map<String, dynamic> toJson() {
  4823. final map = super.toJson();
  4824. if(diagnosisModules != null)
  4825. map['DiagnosisModules'] = diagnosisModules;
  4826. return map;
  4827. }
  4828. }
  4829. class ModifyOrganizationCustomSettingRequest extends TokenRequest{
  4830. String? langugeKey;
  4831. String? settingModule;
  4832. String? settingJson;
  4833. String? organizationCode;
  4834. ModifyOrganizationCustomSettingRequest({
  4835. this.langugeKey,
  4836. this.settingModule,
  4837. this.settingJson,
  4838. this.organizationCode,
  4839. String? token,
  4840. }) : super(
  4841. token: token,
  4842. );
  4843. factory ModifyOrganizationCustomSettingRequest.fromJson(Map<String, dynamic> map) {
  4844. return ModifyOrganizationCustomSettingRequest(
  4845. langugeKey: map['LangugeKey'],
  4846. settingModule: map['SettingModule'],
  4847. settingJson: map['SettingJson'],
  4848. organizationCode: map['OrganizationCode'],
  4849. token: map['Token'],
  4850. );
  4851. }
  4852. Map<String, dynamic> toJson() {
  4853. final map = super.toJson();
  4854. if(langugeKey != null)
  4855. map['LangugeKey'] = langugeKey;
  4856. if(settingModule != null)
  4857. map['SettingModule'] = settingModule;
  4858. if(settingJson != null)
  4859. map['SettingJson'] = settingJson;
  4860. if(organizationCode != null)
  4861. map['OrganizationCode'] = organizationCode;
  4862. return map;
  4863. }
  4864. }
  4865. class ModifyOrganizationDiagnosisModulesRequest extends TokenRequest{
  4866. String? organizationCode;
  4867. List<String >? diagnosisModules;
  4868. ModifyOrganizationDiagnosisModulesRequest({
  4869. this.organizationCode,
  4870. this.diagnosisModules,
  4871. String? token,
  4872. }) : super(
  4873. token: token,
  4874. );
  4875. factory ModifyOrganizationDiagnosisModulesRequest.fromJson(Map<String, dynamic> map) {
  4876. return ModifyOrganizationDiagnosisModulesRequest(
  4877. organizationCode: map['OrganizationCode'],
  4878. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  4879. token: map['Token'],
  4880. );
  4881. }
  4882. Map<String, dynamic> toJson() {
  4883. final map = super.toJson();
  4884. if(organizationCode != null)
  4885. map['OrganizationCode'] = organizationCode;
  4886. if(diagnosisModules != null)
  4887. map['DiagnosisModules'] = diagnosisModules;
  4888. return map;
  4889. }
  4890. }
  4891. class ModifyOrganizationDirectorsRequest extends TokenRequest{
  4892. String? organizationCode;
  4893. List<String >? directors;
  4894. ModifyOrganizationDirectorsRequest({
  4895. this.organizationCode,
  4896. this.directors,
  4897. String? token,
  4898. }) : super(
  4899. token: token,
  4900. );
  4901. factory ModifyOrganizationDirectorsRequest.fromJson(Map<String, dynamic> map) {
  4902. return ModifyOrganizationDirectorsRequest(
  4903. organizationCode: map['OrganizationCode'],
  4904. directors: map['Directors'] != null ? map['Directors'].cast<String>().toList() : null,
  4905. token: map['Token'],
  4906. );
  4907. }
  4908. Map<String, dynamic> toJson() {
  4909. final map = super.toJson();
  4910. if(organizationCode != null)
  4911. map['OrganizationCode'] = organizationCode;
  4912. if(directors != null)
  4913. map['Directors'] = directors;
  4914. return map;
  4915. }
  4916. }
  4917. class ModifyOrganizationRequest extends OrganizationDTO{
  4918. String? token;
  4919. ModifyOrganizationRequest({
  4920. this.token,
  4921. String? description,
  4922. String? rootCode,
  4923. OrganizationTypeEnum organizationType = OrganizationTypeEnum.Corporation,
  4924. List<String >? authorityGroups,
  4925. String? nautica,
  4926. OrganizationStateEnum state = OrganizationStateEnum.WaitAudit,
  4927. List<String >? directors,
  4928. List<String >? assignedAdmins,
  4929. String? patientSettingJson,
  4930. String? examSettingJson,
  4931. String? consultationSettingJson,
  4932. String? patientSettingVersion,
  4933. String? examSettingVersion,
  4934. String? consultationSettingVersion,
  4935. String? parentOrganizationName,
  4936. String? regionCode,
  4937. String? parentCode,
  4938. String? logoUrl,
  4939. OrganizationPatientTypeEnum patientType = OrganizationPatientTypeEnum.Person,
  4940. bool isinvented = false,
  4941. List<SettingDTOClass >? settings,
  4942. List<String >? diagnosisModules,
  4943. bool isEncryptedShow = false,
  4944. double referralLimitHours = 0,
  4945. List<String >? referralOrganizationCodes,
  4946. List<ReferralOrganizationDTO >? referralOrganizations,
  4947. String? organizationCode,
  4948. String? organizationName,
  4949. DateTime? createTime,
  4950. DateTime? updateTime,
  4951. }) : super(
  4952. description: description,
  4953. rootCode: rootCode,
  4954. organizationType: organizationType,
  4955. authorityGroups: authorityGroups,
  4956. nautica: nautica,
  4957. state: state,
  4958. directors: directors,
  4959. assignedAdmins: assignedAdmins,
  4960. patientSettingJson: patientSettingJson,
  4961. examSettingJson: examSettingJson,
  4962. consultationSettingJson: consultationSettingJson,
  4963. patientSettingVersion: patientSettingVersion,
  4964. examSettingVersion: examSettingVersion,
  4965. consultationSettingVersion: consultationSettingVersion,
  4966. parentOrganizationName: parentOrganizationName,
  4967. regionCode: regionCode,
  4968. parentCode: parentCode,
  4969. logoUrl: logoUrl,
  4970. patientType: patientType,
  4971. isinvented: isinvented,
  4972. settings: settings,
  4973. diagnosisModules: diagnosisModules,
  4974. isEncryptedShow: isEncryptedShow,
  4975. referralLimitHours: referralLimitHours,
  4976. referralOrganizationCodes: referralOrganizationCodes,
  4977. referralOrganizations: referralOrganizations,
  4978. organizationCode: organizationCode,
  4979. organizationName: organizationName,
  4980. createTime: createTime,
  4981. updateTime: updateTime,
  4982. );
  4983. factory ModifyOrganizationRequest.fromJson(Map<String, dynamic> map) {
  4984. return ModifyOrganizationRequest(
  4985. token: map['Token'],
  4986. description: map['Description'],
  4987. rootCode: map['RootCode'],
  4988. organizationType: OrganizationTypeEnum.values.firstWhere((e) => e.index == map['OrganizationType']),
  4989. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  4990. nautica: map['Nautica'],
  4991. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  4992. directors: map['Directors'] != null ? map['Directors'].cast<String>().toList() : null,
  4993. assignedAdmins: map['AssignedAdmins'] != null ? map['AssignedAdmins'].cast<String>().toList() : null,
  4994. patientSettingJson: map['PatientSettingJson'],
  4995. examSettingJson: map['ExamSettingJson'],
  4996. consultationSettingJson: map['ConsultationSettingJson'],
  4997. patientSettingVersion: map['PatientSettingVersion'],
  4998. examSettingVersion: map['ExamSettingVersion'],
  4999. consultationSettingVersion: map['ConsultationSettingVersion'],
  5000. parentOrganizationName: map['ParentOrganizationName'],
  5001. regionCode: map['RegionCode'],
  5002. parentCode: map['ParentCode'],
  5003. logoUrl: map['LogoUrl'],
  5004. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  5005. isinvented: map['Isinvented'],
  5006. settings: map['Settings'] != null ? (map['Settings'] as List).map((e)=>SettingDTOClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  5007. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  5008. isEncryptedShow: map['IsEncryptedShow'],
  5009. referralLimitHours: double.parse(map['ReferralLimitHours'].toString()),
  5010. referralOrganizationCodes: map['ReferralOrganizationCodes'] != null ? map['ReferralOrganizationCodes'].cast<String>().toList() : null,
  5011. referralOrganizations: map['ReferralOrganizations'] != null ? (map['ReferralOrganizations'] as List).map((e)=>ReferralOrganizationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  5012. organizationCode: map['OrganizationCode'],
  5013. organizationName: map['OrganizationName'],
  5014. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5015. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5016. );
  5017. }
  5018. Map<String, dynamic> toJson() {
  5019. final map = super.toJson();
  5020. if(token != null)
  5021. map['Token'] = token;
  5022. return map;
  5023. }
  5024. }
  5025. class ModifyOrganizationSettingRequest extends TokenRequest{
  5026. OrganizationSettingTypeEnum settingType;
  5027. String? settingJson;
  5028. String? organizationCode;
  5029. String? cMSTemplateCode;
  5030. ModifyOrganizationSettingRequest({
  5031. this.settingType = OrganizationSettingTypeEnum.Patient,
  5032. this.settingJson,
  5033. this.organizationCode,
  5034. this.cMSTemplateCode,
  5035. String? token,
  5036. }) : super(
  5037. token: token,
  5038. );
  5039. factory ModifyOrganizationSettingRequest.fromJson(Map<String, dynamic> map) {
  5040. return ModifyOrganizationSettingRequest(
  5041. settingType: OrganizationSettingTypeEnum.values.firstWhere((e) => e.index == map['SettingType']),
  5042. settingJson: map['SettingJson'],
  5043. organizationCode: map['OrganizationCode'],
  5044. cMSTemplateCode: map['CMSTemplateCode'],
  5045. token: map['Token'],
  5046. );
  5047. }
  5048. Map<String, dynamic> toJson() {
  5049. final map = super.toJson();
  5050. map['SettingType'] = settingType.index;
  5051. if(settingJson != null)
  5052. map['SettingJson'] = settingJson;
  5053. if(organizationCode != null)
  5054. map['OrganizationCode'] = organizationCode;
  5055. if(cMSTemplateCode != null)
  5056. map['CMSTemplateCode'] = cMSTemplateCode;
  5057. return map;
  5058. }
  5059. }
  5060. class ConsultationBaseInfoItem {
  5061. String? name;
  5062. bool isDefult;
  5063. bool isShow;
  5064. bool required;
  5065. ConsultationBaseInfoItem({
  5066. this.name,
  5067. this.isDefult = false,
  5068. this.isShow = false,
  5069. this.required = false,
  5070. });
  5071. factory ConsultationBaseInfoItem.fromJson(Map<String, dynamic> map) {
  5072. return ConsultationBaseInfoItem(
  5073. name: map['Name'],
  5074. isDefult: map['IsDefult'],
  5075. isShow: map['IsShow'],
  5076. required: map['Required'],
  5077. );
  5078. }
  5079. Map<String, dynamic> toJson() {
  5080. final map = Map<String, dynamic>();
  5081. if(name != null)
  5082. map['Name'] = name;
  5083. map['IsDefult'] = isDefult;
  5084. map['IsShow'] = isShow;
  5085. map['Required'] = required;
  5086. return map;
  5087. }
  5088. }
  5089. class ModifycConsultationBaseInfoSettingRequest extends TokenRequest{
  5090. List<ConsultationBaseInfoItem >? consultationBaseInfoList;
  5091. String? organizationCode;
  5092. ModifycConsultationBaseInfoSettingRequest({
  5093. this.consultationBaseInfoList,
  5094. this.organizationCode,
  5095. String? token,
  5096. }) : super(
  5097. token: token,
  5098. );
  5099. factory ModifycConsultationBaseInfoSettingRequest.fromJson(Map<String, dynamic> map) {
  5100. return ModifycConsultationBaseInfoSettingRequest(
  5101. consultationBaseInfoList: map['ConsultationBaseInfoList'] != null ? (map['ConsultationBaseInfoList'] as List).map((e)=>ConsultationBaseInfoItem.fromJson(e as Map<String,dynamic>)).toList() : null,
  5102. organizationCode: map['OrganizationCode'],
  5103. token: map['Token'],
  5104. );
  5105. }
  5106. Map<String, dynamic> toJson() {
  5107. final map = super.toJson();
  5108. if(consultationBaseInfoList != null)
  5109. map['ConsultationBaseInfoList'] = consultationBaseInfoList;
  5110. if(organizationCode != null)
  5111. map['OrganizationCode'] = organizationCode;
  5112. return map;
  5113. }
  5114. }
  5115. class ModifyOrganizationStateRequest extends TokenRequest{
  5116. String? organizationCode;
  5117. OrganizationStateEnum state;
  5118. ModifyOrganizationStateRequest({
  5119. this.organizationCode,
  5120. this.state = OrganizationStateEnum.WaitAudit,
  5121. String? token,
  5122. }) : super(
  5123. token: token,
  5124. );
  5125. factory ModifyOrganizationStateRequest.fromJson(Map<String, dynamic> map) {
  5126. return ModifyOrganizationStateRequest(
  5127. organizationCode: map['OrganizationCode'],
  5128. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  5129. token: map['Token'],
  5130. );
  5131. }
  5132. Map<String, dynamic> toJson() {
  5133. final map = super.toJson();
  5134. if(organizationCode != null)
  5135. map['OrganizationCode'] = organizationCode;
  5136. map['State'] = state.index;
  5137. return map;
  5138. }
  5139. }
  5140. class ModifyReferralRecordSettingRequest extends TokenRequest{
  5141. double limitHours;
  5142. ModifyReferralRecordSettingRequest({
  5143. this.limitHours = 0,
  5144. String? token,
  5145. }) : super(
  5146. token: token,
  5147. );
  5148. factory ModifyReferralRecordSettingRequest.fromJson(Map<String, dynamic> map) {
  5149. return ModifyReferralRecordSettingRequest(
  5150. limitHours: double.parse(map['LimitHours'].toString()),
  5151. token: map['Token'],
  5152. );
  5153. }
  5154. Map<String, dynamic> toJson() {
  5155. final map = super.toJson();
  5156. map['LimitHours'] = limitHours;
  5157. return map;
  5158. }
  5159. }
  5160. class ModifyReportPosterDevicesRequest extends TokenRequest{
  5161. String? reportPosterCode;
  5162. List<String >? deviceIds;
  5163. ModifyReportPosterDevicesRequest({
  5164. this.reportPosterCode,
  5165. this.deviceIds,
  5166. String? token,
  5167. }) : super(
  5168. token: token,
  5169. );
  5170. factory ModifyReportPosterDevicesRequest.fromJson(Map<String, dynamic> map) {
  5171. return ModifyReportPosterDevicesRequest(
  5172. reportPosterCode: map['ReportPosterCode'],
  5173. deviceIds: map['DeviceIds'] != null ? map['DeviceIds'].cast<String>().toList() : null,
  5174. token: map['Token'],
  5175. );
  5176. }
  5177. Map<String, dynamic> toJson() {
  5178. final map = super.toJson();
  5179. if(reportPosterCode != null)
  5180. map['ReportPosterCode'] = reportPosterCode;
  5181. if(deviceIds != null)
  5182. map['DeviceIds'] = deviceIds;
  5183. return map;
  5184. }
  5185. }
  5186. class ModifyRoleInfoRequest extends RoleDTO{
  5187. String? token;
  5188. List<String >? featuresCodeList;
  5189. ModifyRoleInfoRequest({
  5190. this.token,
  5191. this.featuresCodeList,
  5192. RoleShowTypeEnum roleShowType = RoleShowTypeEnum.NotShow,
  5193. String? iConUrl,
  5194. String? colorStart,
  5195. String? colorEnd,
  5196. RoleQualificationEnum roleQualification = RoleQualificationEnum.NoNeed,
  5197. String? userGroupCode,
  5198. RoleShowTypeEnum fieldShowType = RoleShowTypeEnum.NotShow,
  5199. List<String >? fieldList,
  5200. String? roleCode,
  5201. String? roleName,
  5202. String? description,
  5203. List<UserRoleLanguageConfigDTO >? languageConfigs,
  5204. DateTime? createTime,
  5205. DateTime? updateTime,
  5206. }) : super(
  5207. roleShowType: roleShowType,
  5208. iConUrl: iConUrl,
  5209. colorStart: colorStart,
  5210. colorEnd: colorEnd,
  5211. roleQualification: roleQualification,
  5212. userGroupCode: userGroupCode,
  5213. fieldShowType: fieldShowType,
  5214. fieldList: fieldList,
  5215. roleCode: roleCode,
  5216. roleName: roleName,
  5217. description: description,
  5218. languageConfigs: languageConfigs,
  5219. createTime: createTime,
  5220. updateTime: updateTime,
  5221. );
  5222. factory ModifyRoleInfoRequest.fromJson(Map<String, dynamic> map) {
  5223. return ModifyRoleInfoRequest(
  5224. token: map['Token'],
  5225. featuresCodeList: map['FeaturesCodeList'] != null ? map['FeaturesCodeList'].cast<String>().toList() : null,
  5226. roleShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['RoleShowType']),
  5227. iConUrl: map['IConUrl'],
  5228. colorStart: map['ColorStart'],
  5229. colorEnd: map['ColorEnd'],
  5230. roleQualification: RoleQualificationEnum.values.firstWhere((e) => e.index == map['RoleQualification']),
  5231. userGroupCode: map['UserGroupCode'],
  5232. fieldShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['FieldShowType']),
  5233. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  5234. roleCode: map['RoleCode'],
  5235. roleName: map['RoleName'],
  5236. description: map['Description'],
  5237. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  5238. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5239. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5240. );
  5241. }
  5242. Map<String, dynamic> toJson() {
  5243. final map = super.toJson();
  5244. if(token != null)
  5245. map['Token'] = token;
  5246. if(featuresCodeList != null)
  5247. map['FeaturesCodeList'] = featuresCodeList;
  5248. return map;
  5249. }
  5250. }
  5251. class ThirdPartyInfoDTO extends BaseDTO{
  5252. String? code;
  5253. String? name;
  5254. String? contactPersonName;
  5255. String? contactPhone;
  5256. List<String >? allowedInterfaces;
  5257. bool isValid;
  5258. String? token;
  5259. ThirdPartyInfoDTO({
  5260. this.code,
  5261. this.name,
  5262. this.contactPersonName,
  5263. this.contactPhone,
  5264. this.allowedInterfaces,
  5265. this.isValid = false,
  5266. this.token,
  5267. DateTime? createTime,
  5268. DateTime? updateTime,
  5269. }) : super(
  5270. createTime: createTime,
  5271. updateTime: updateTime,
  5272. );
  5273. factory ThirdPartyInfoDTO.fromJson(Map<String, dynamic> map) {
  5274. return ThirdPartyInfoDTO(
  5275. code: map['Code'],
  5276. name: map['Name'],
  5277. contactPersonName: map['ContactPersonName'],
  5278. contactPhone: map['ContactPhone'],
  5279. allowedInterfaces: map['AllowedInterfaces'] != null ? map['AllowedInterfaces'].cast<String>().toList() : null,
  5280. isValid: map['IsValid'],
  5281. token: map['Token'],
  5282. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5283. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5284. );
  5285. }
  5286. Map<String, dynamic> toJson() {
  5287. final map = super.toJson();
  5288. if(code != null)
  5289. map['Code'] = code;
  5290. if(name != null)
  5291. map['Name'] = name;
  5292. if(contactPersonName != null)
  5293. map['ContactPersonName'] = contactPersonName;
  5294. if(contactPhone != null)
  5295. map['ContactPhone'] = contactPhone;
  5296. if(allowedInterfaces != null)
  5297. map['AllowedInterfaces'] = allowedInterfaces;
  5298. map['IsValid'] = isValid;
  5299. if(token != null)
  5300. map['Token'] = token;
  5301. return map;
  5302. }
  5303. }
  5304. class ModifyThirdPartyInfoRequest extends ThirdPartyInfoDTO{
  5305. ModifyThirdPartyInfoRequest({
  5306. String? token,
  5307. String? code,
  5308. String? name,
  5309. String? contactPersonName,
  5310. String? contactPhone,
  5311. List<String >? allowedInterfaces,
  5312. bool isValid = false,
  5313. DateTime? createTime,
  5314. DateTime? updateTime,
  5315. }) : super(
  5316. code: code,
  5317. name: name,
  5318. contactPersonName: contactPersonName,
  5319. contactPhone: contactPhone,
  5320. allowedInterfaces: allowedInterfaces,
  5321. isValid: isValid,
  5322. token: token,
  5323. createTime: createTime,
  5324. updateTime: updateTime,
  5325. );
  5326. factory ModifyThirdPartyInfoRequest.fromJson(Map<String, dynamic> map) {
  5327. return ModifyThirdPartyInfoRequest(
  5328. token: map['Token'],
  5329. code: map['Code'],
  5330. name: map['Name'],
  5331. contactPersonName: map['ContactPersonName'],
  5332. contactPhone: map['ContactPhone'],
  5333. allowedInterfaces: map['AllowedInterfaces'] != null ? map['AllowedInterfaces'].cast<String>().toList() : null,
  5334. isValid: map['IsValid'],
  5335. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5336. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5337. );
  5338. }
  5339. Map<String, dynamic> toJson() {
  5340. final map = super.toJson();
  5341. return map;
  5342. }
  5343. }
  5344. class UserFeatureInfoDTO extends BaseFeatureInfoDTO{
  5345. UserFeatureInfoDTO({
  5346. String? featureCode,
  5347. String? featureName,
  5348. String? fatherCode,
  5349. String? uniqueCode,
  5350. DateTime? createTime,
  5351. DateTime? updateTime,
  5352. }) : super(
  5353. featureCode: featureCode,
  5354. featureName: featureName,
  5355. fatherCode: fatherCode,
  5356. uniqueCode: uniqueCode,
  5357. createTime: createTime,
  5358. updateTime: updateTime,
  5359. );
  5360. factory UserFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  5361. return UserFeatureInfoDTO(
  5362. featureCode: map['FeatureCode'],
  5363. featureName: map['FeatureName'],
  5364. fatherCode: map['FatherCode'],
  5365. uniqueCode: map['UniqueCode'],
  5366. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5367. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5368. );
  5369. }
  5370. Map<String, dynamic> toJson() {
  5371. final map = super.toJson();
  5372. return map;
  5373. }
  5374. }
  5375. class ModifyUserFeatureRequest extends UserFeatureInfoDTO{
  5376. String? token;
  5377. ModifyUserFeatureRequest({
  5378. this.token,
  5379. String? featureCode,
  5380. String? featureName,
  5381. String? fatherCode,
  5382. String? uniqueCode,
  5383. DateTime? createTime,
  5384. DateTime? updateTime,
  5385. }) : super(
  5386. featureCode: featureCode,
  5387. featureName: featureName,
  5388. fatherCode: fatherCode,
  5389. uniqueCode: uniqueCode,
  5390. createTime: createTime,
  5391. updateTime: updateTime,
  5392. );
  5393. factory ModifyUserFeatureRequest.fromJson(Map<String, dynamic> map) {
  5394. return ModifyUserFeatureRequest(
  5395. token: map['Token'],
  5396. featureCode: map['FeatureCode'],
  5397. featureName: map['FeatureName'],
  5398. fatherCode: map['FatherCode'],
  5399. uniqueCode: map['UniqueCode'],
  5400. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5401. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5402. );
  5403. }
  5404. Map<String, dynamic> toJson() {
  5405. final map = super.toJson();
  5406. if(token != null)
  5407. map['Token'] = token;
  5408. return map;
  5409. }
  5410. }
  5411. enum ManagementUserInfoStateEnum {
  5412. Nonactivated,
  5413. Activated,
  5414. Locked,
  5415. }
  5416. class ManageUserInfoDTO extends UserDTO{
  5417. String? roleName;
  5418. String? departmentName;
  5419. String? hospitalName;
  5420. String? identityApplyCode;
  5421. List<String >? identityCard;
  5422. List<String >? licenseCard;
  5423. String? identityApplyRoleCode;
  5424. String? identityApplyRoleName;
  5425. ManagementUserInfoStateEnum managementUserState;
  5426. ManageUserInfoDTO({
  5427. this.roleName,
  5428. this.departmentName,
  5429. this.hospitalName,
  5430. this.identityApplyCode,
  5431. this.identityCard,
  5432. this.licenseCard,
  5433. this.identityApplyRoleCode,
  5434. this.identityApplyRoleName,
  5435. bool isBatchExportDiagnoseData = false,
  5436. List<String >? fieldList,
  5437. this.managementUserState = ManagementUserInfoStateEnum.Nonactivated,
  5438. String? phone,
  5439. String? email,
  5440. String? nickName,
  5441. String? fullName,
  5442. String? organizationCode,
  5443. String? organizationName,
  5444. String? rootOrganizationCode,
  5445. String? rootOrganizationName,
  5446. List<String >? authorityGroups,
  5447. List<String >? bindDevices,
  5448. String? lastIP,
  5449. int logintimes = 0,
  5450. UserInfoStateEnum userState = UserInfoStateEnum.Nonactivated,
  5451. List<String >? roleCodes,
  5452. List<String >? rankCodes,
  5453. List<String >? positionCodes,
  5454. ApplyStateEnum applyState = ApplyStateEnum.NotApply,
  5455. String? rankName,
  5456. String? positionName,
  5457. bool isDirector = false,
  5458. List<String >? deletePatientCodes,
  5459. String? bindAssistantUserCode,
  5460. String? bindAssistantDoctorUserCode,
  5461. LoginLockInfoDTO? loginLockInfo,
  5462. String? signature,
  5463. String? language,
  5464. bool enableReportLabel = false,
  5465. String? userCode,
  5466. String? userName,
  5467. String? headImageUrl,
  5468. DateTime? createTime,
  5469. DateTime? updateTime,
  5470. }) : super(
  5471. phone: phone,
  5472. email: email,
  5473. nickName: nickName,
  5474. fullName: fullName,
  5475. organizationCode: organizationCode,
  5476. organizationName: organizationName,
  5477. rootOrganizationCode: rootOrganizationCode,
  5478. rootOrganizationName: rootOrganizationName,
  5479. authorityGroups: authorityGroups,
  5480. bindDevices: bindDevices,
  5481. lastIP: lastIP,
  5482. logintimes: logintimes,
  5483. userState: userState,
  5484. roleCodes: roleCodes,
  5485. rankCodes: rankCodes,
  5486. positionCodes: positionCodes,
  5487. applyState: applyState,
  5488. rankName: rankName,
  5489. positionName: positionName,
  5490. isDirector: isDirector,
  5491. fieldList: fieldList,
  5492. deletePatientCodes: deletePatientCodes,
  5493. isBatchExportDiagnoseData: isBatchExportDiagnoseData,
  5494. bindAssistantUserCode: bindAssistantUserCode,
  5495. bindAssistantDoctorUserCode: bindAssistantDoctorUserCode,
  5496. loginLockInfo: loginLockInfo,
  5497. signature: signature,
  5498. language: language,
  5499. enableReportLabel: enableReportLabel,
  5500. userCode: userCode,
  5501. userName: userName,
  5502. headImageUrl: headImageUrl,
  5503. createTime: createTime,
  5504. updateTime: updateTime,
  5505. );
  5506. factory ManageUserInfoDTO.fromJson(Map<String, dynamic> map) {
  5507. return ManageUserInfoDTO(
  5508. roleName: map['RoleName'],
  5509. departmentName: map['DepartmentName'],
  5510. hospitalName: map['HospitalName'],
  5511. identityApplyCode: map['IdentityApplyCode'],
  5512. identityCard: map['IdentityCard'] != null ? map['IdentityCard'].cast<String>().toList() : null,
  5513. licenseCard: map['LicenseCard'] != null ? map['LicenseCard'].cast<String>().toList() : null,
  5514. identityApplyRoleCode: map['IdentityApplyRoleCode'],
  5515. identityApplyRoleName: map['IdentityApplyRoleName'],
  5516. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  5517. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  5518. managementUserState: ManagementUserInfoStateEnum.values.firstWhere((e) => e.index == map['ManagementUserState']),
  5519. phone: map['Phone'],
  5520. email: map['Email'],
  5521. nickName: map['NickName'],
  5522. fullName: map['FullName'],
  5523. organizationCode: map['OrganizationCode'],
  5524. organizationName: map['OrganizationName'],
  5525. rootOrganizationCode: map['RootOrganizationCode'],
  5526. rootOrganizationName: map['RootOrganizationName'],
  5527. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  5528. bindDevices: map['BindDevices'] != null ? map['BindDevices'].cast<String>().toList() : null,
  5529. lastIP: map['LastIP'],
  5530. logintimes: map['Logintimes'],
  5531. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  5532. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  5533. rankCodes: map['RankCodes'] != null ? map['RankCodes'].cast<String>().toList() : null,
  5534. positionCodes: map['PositionCodes'] != null ? map['PositionCodes'].cast<String>().toList() : null,
  5535. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  5536. rankName: map['RankName'],
  5537. positionName: map['PositionName'],
  5538. isDirector: map['IsDirector'],
  5539. deletePatientCodes: map['DeletePatientCodes'] != null ? map['DeletePatientCodes'].cast<String>().toList() : null,
  5540. bindAssistantUserCode: map['BindAssistantUserCode'],
  5541. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  5542. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  5543. signature: map['Signature'],
  5544. language: map['Language'],
  5545. enableReportLabel: map['EnableReportLabel'],
  5546. userCode: map['UserCode'],
  5547. userName: map['UserName'],
  5548. headImageUrl: map['HeadImageUrl'],
  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(roleName != null)
  5556. map['RoleName'] = roleName;
  5557. if(departmentName != null)
  5558. map['DepartmentName'] = departmentName;
  5559. if(hospitalName != null)
  5560. map['HospitalName'] = hospitalName;
  5561. if(identityApplyCode != null)
  5562. map['IdentityApplyCode'] = identityApplyCode;
  5563. if(identityCard != null)
  5564. map['IdentityCard'] = identityCard;
  5565. if(licenseCard != null)
  5566. map['LicenseCard'] = licenseCard;
  5567. if(identityApplyRoleCode != null)
  5568. map['IdentityApplyRoleCode'] = identityApplyRoleCode;
  5569. if(identityApplyRoleName != null)
  5570. map['IdentityApplyRoleName'] = identityApplyRoleName;
  5571. map['ManagementUserState'] = managementUserState.index;
  5572. return map;
  5573. }
  5574. }
  5575. class ModifyUserRequest extends ManageUserInfoDTO{
  5576. String? token;
  5577. ModifyUserRequest({
  5578. this.token,
  5579. String? roleName,
  5580. String? departmentName,
  5581. String? hospitalName,
  5582. String? identityApplyCode,
  5583. List<String >? identityCard,
  5584. List<String >? licenseCard,
  5585. String? identityApplyRoleCode,
  5586. String? identityApplyRoleName,
  5587. bool isBatchExportDiagnoseData = false,
  5588. List<String >? fieldList,
  5589. ManagementUserInfoStateEnum managementUserState = ManagementUserInfoStateEnum.Nonactivated,
  5590. String? phone,
  5591. String? email,
  5592. String? nickName,
  5593. String? fullName,
  5594. String? organizationCode,
  5595. String? organizationName,
  5596. String? rootOrganizationCode,
  5597. String? rootOrganizationName,
  5598. List<String >? authorityGroups,
  5599. List<String >? bindDevices,
  5600. String? lastIP,
  5601. int logintimes = 0,
  5602. UserInfoStateEnum userState = UserInfoStateEnum.Nonactivated,
  5603. List<String >? roleCodes,
  5604. List<String >? rankCodes,
  5605. List<String >? positionCodes,
  5606. ApplyStateEnum applyState = ApplyStateEnum.NotApply,
  5607. String? rankName,
  5608. String? positionName,
  5609. bool isDirector = false,
  5610. List<String >? deletePatientCodes,
  5611. String? bindAssistantUserCode,
  5612. String? bindAssistantDoctorUserCode,
  5613. LoginLockInfoDTO? loginLockInfo,
  5614. String? signature,
  5615. String? language,
  5616. bool enableReportLabel = false,
  5617. String? userCode,
  5618. String? userName,
  5619. String? headImageUrl,
  5620. DateTime? createTime,
  5621. DateTime? updateTime,
  5622. }) : super(
  5623. roleName: roleName,
  5624. departmentName: departmentName,
  5625. hospitalName: hospitalName,
  5626. identityApplyCode: identityApplyCode,
  5627. identityCard: identityCard,
  5628. licenseCard: licenseCard,
  5629. identityApplyRoleCode: identityApplyRoleCode,
  5630. identityApplyRoleName: identityApplyRoleName,
  5631. isBatchExportDiagnoseData: isBatchExportDiagnoseData,
  5632. fieldList: fieldList,
  5633. managementUserState: managementUserState,
  5634. phone: phone,
  5635. email: email,
  5636. nickName: nickName,
  5637. fullName: fullName,
  5638. organizationCode: organizationCode,
  5639. organizationName: organizationName,
  5640. rootOrganizationCode: rootOrganizationCode,
  5641. rootOrganizationName: rootOrganizationName,
  5642. authorityGroups: authorityGroups,
  5643. bindDevices: bindDevices,
  5644. lastIP: lastIP,
  5645. logintimes: logintimes,
  5646. userState: userState,
  5647. roleCodes: roleCodes,
  5648. rankCodes: rankCodes,
  5649. positionCodes: positionCodes,
  5650. applyState: applyState,
  5651. rankName: rankName,
  5652. positionName: positionName,
  5653. isDirector: isDirector,
  5654. deletePatientCodes: deletePatientCodes,
  5655. bindAssistantUserCode: bindAssistantUserCode,
  5656. bindAssistantDoctorUserCode: bindAssistantDoctorUserCode,
  5657. loginLockInfo: loginLockInfo,
  5658. signature: signature,
  5659. language: language,
  5660. enableReportLabel: enableReportLabel,
  5661. userCode: userCode,
  5662. userName: userName,
  5663. headImageUrl: headImageUrl,
  5664. createTime: createTime,
  5665. updateTime: updateTime,
  5666. );
  5667. factory ModifyUserRequest.fromJson(Map<String, dynamic> map) {
  5668. return ModifyUserRequest(
  5669. token: map['Token'],
  5670. roleName: map['RoleName'],
  5671. departmentName: map['DepartmentName'],
  5672. hospitalName: map['HospitalName'],
  5673. identityApplyCode: map['IdentityApplyCode'],
  5674. identityCard: map['IdentityCard'] != null ? map['IdentityCard'].cast<String>().toList() : null,
  5675. licenseCard: map['LicenseCard'] != null ? map['LicenseCard'].cast<String>().toList() : null,
  5676. identityApplyRoleCode: map['IdentityApplyRoleCode'],
  5677. identityApplyRoleName: map['IdentityApplyRoleName'],
  5678. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  5679. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  5680. managementUserState: ManagementUserInfoStateEnum.values.firstWhere((e) => e.index == map['ManagementUserState']),
  5681. phone: map['Phone'],
  5682. email: map['Email'],
  5683. nickName: map['NickName'],
  5684. fullName: map['FullName'],
  5685. organizationCode: map['OrganizationCode'],
  5686. organizationName: map['OrganizationName'],
  5687. rootOrganizationCode: map['RootOrganizationCode'],
  5688. rootOrganizationName: map['RootOrganizationName'],
  5689. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  5690. bindDevices: map['BindDevices'] != null ? map['BindDevices'].cast<String>().toList() : null,
  5691. lastIP: map['LastIP'],
  5692. logintimes: map['Logintimes'],
  5693. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  5694. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  5695. rankCodes: map['RankCodes'] != null ? map['RankCodes'].cast<String>().toList() : null,
  5696. positionCodes: map['PositionCodes'] != null ? map['PositionCodes'].cast<String>().toList() : null,
  5697. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  5698. rankName: map['RankName'],
  5699. positionName: map['PositionName'],
  5700. isDirector: map['IsDirector'],
  5701. deletePatientCodes: map['DeletePatientCodes'] != null ? map['DeletePatientCodes'].cast<String>().toList() : null,
  5702. bindAssistantUserCode: map['BindAssistantUserCode'],
  5703. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  5704. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  5705. signature: map['Signature'],
  5706. language: map['Language'],
  5707. enableReportLabel: map['EnableReportLabel'],
  5708. userCode: map['UserCode'],
  5709. userName: map['UserName'],
  5710. headImageUrl: map['HeadImageUrl'],
  5711. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5712. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5713. );
  5714. }
  5715. Map<String, dynamic> toJson() {
  5716. final map = super.toJson();
  5717. if(token != null)
  5718. map['Token'] = token;
  5719. return map;
  5720. }
  5721. }
  5722. class PublishReportTemplateRequest extends TokenRequest{
  5723. String? reportTemplateCode;
  5724. PublishReportTemplateRequest({
  5725. this.reportTemplateCode,
  5726. String? token,
  5727. }) : super(
  5728. token: token,
  5729. );
  5730. factory PublishReportTemplateRequest.fromJson(Map<String, dynamic> map) {
  5731. return PublishReportTemplateRequest(
  5732. reportTemplateCode: map['ReportTemplateCode'],
  5733. token: map['Token'],
  5734. );
  5735. }
  5736. Map<String, dynamic> toJson() {
  5737. final map = super.toJson();
  5738. if(reportTemplateCode != null)
  5739. map['ReportTemplateCode'] = reportTemplateCode;
  5740. return map;
  5741. }
  5742. }
  5743. class PublishThesaurusRequest extends TokenRequest{
  5744. String? thesaurusCode;
  5745. PublishThesaurusRequest({
  5746. this.thesaurusCode,
  5747. String? token,
  5748. }) : super(
  5749. token: token,
  5750. );
  5751. factory PublishThesaurusRequest.fromJson(Map<String, dynamic> map) {
  5752. return PublishThesaurusRequest(
  5753. thesaurusCode: map['ThesaurusCode'],
  5754. token: map['Token'],
  5755. );
  5756. }
  5757. Map<String, dynamic> toJson() {
  5758. final map = super.toJson();
  5759. if(thesaurusCode != null)
  5760. map['ThesaurusCode'] = thesaurusCode;
  5761. return map;
  5762. }
  5763. }
  5764. class QueryAnnouncementPageRequest extends PageRequest{
  5765. AnnouncementTypeEnum announcementType;
  5766. AnnouncementStatusEnum announcementStatus;
  5767. String? keyword;
  5768. DateTime? startTime;
  5769. DateTime? endTime;
  5770. QueryAnnouncementPageRequest({
  5771. this.announcementType = AnnouncementTypeEnum.Broadcast,
  5772. this.announcementStatus = AnnouncementStatusEnum.Released,
  5773. this.keyword,
  5774. this.startTime,
  5775. this.endTime,
  5776. int pageIndex = 0,
  5777. int pageSize = 0,
  5778. String? token,
  5779. }) : super(
  5780. pageIndex: pageIndex,
  5781. pageSize: pageSize,
  5782. token: token,
  5783. );
  5784. factory QueryAnnouncementPageRequest.fromJson(Map<String, dynamic> map) {
  5785. return QueryAnnouncementPageRequest(
  5786. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  5787. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  5788. keyword: map['Keyword'],
  5789. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  5790. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  5791. pageIndex: map['PageIndex'],
  5792. pageSize: map['PageSize'],
  5793. token: map['Token'],
  5794. );
  5795. }
  5796. Map<String, dynamic> toJson() {
  5797. final map = super.toJson();
  5798. map['AnnouncementType'] = announcementType.index;
  5799. map['AnnouncementStatus'] = announcementStatus.index;
  5800. if(keyword != null)
  5801. map['Keyword'] = keyword;
  5802. if(startTime != null)
  5803. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  5804. if(endTime != null)
  5805. map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
  5806. return map;
  5807. }
  5808. }
  5809. class QueryDeviceModelBindNumRequest extends TokenRequest{
  5810. String? deviceModelCode;
  5811. QueryDeviceModelBindNumRequest({
  5812. this.deviceModelCode,
  5813. String? token,
  5814. }) : super(
  5815. token: token,
  5816. );
  5817. factory QueryDeviceModelBindNumRequest.fromJson(Map<String, dynamic> map) {
  5818. return QueryDeviceModelBindNumRequest(
  5819. deviceModelCode: map['DeviceModelCode'],
  5820. token: map['Token'],
  5821. );
  5822. }
  5823. Map<String, dynamic> toJson() {
  5824. final map = super.toJson();
  5825. if(deviceModelCode != null)
  5826. map['DeviceModelCode'] = deviceModelCode;
  5827. return map;
  5828. }
  5829. }
  5830. class QueryRoleAdminNumRequest extends TokenRequest{
  5831. String? adminRoleCode;
  5832. QueryRoleAdminNumRequest({
  5833. this.adminRoleCode,
  5834. String? token,
  5835. }) : super(
  5836. token: token,
  5837. );
  5838. factory QueryRoleAdminNumRequest.fromJson(Map<String, dynamic> map) {
  5839. return QueryRoleAdminNumRequest(
  5840. adminRoleCode: map['AdminRoleCode'],
  5841. token: map['Token'],
  5842. );
  5843. }
  5844. Map<String, dynamic> toJson() {
  5845. final map = super.toJson();
  5846. if(adminRoleCode != null)
  5847. map['AdminRoleCode'] = adminRoleCode;
  5848. return map;
  5849. }
  5850. }
  5851. class QueryRoleUserNumRequest extends TokenRequest{
  5852. String? roleCode;
  5853. QueryRoleUserNumRequest({
  5854. this.roleCode,
  5855. String? token,
  5856. }) : super(
  5857. token: token,
  5858. );
  5859. factory QueryRoleUserNumRequest.fromJson(Map<String, dynamic> map) {
  5860. return QueryRoleUserNumRequest(
  5861. roleCode: map['RoleCode'],
  5862. token: map['Token'],
  5863. );
  5864. }
  5865. Map<String, dynamic> toJson() {
  5866. final map = super.toJson();
  5867. if(roleCode != null)
  5868. map['RoleCode'] = roleCode;
  5869. return map;
  5870. }
  5871. }
  5872. class RejectIdentityApplyRequest extends TokenRequest{
  5873. String? identityApplyCode;
  5874. String? rejectReason;
  5875. RejectIdentityApplyRequest({
  5876. this.identityApplyCode,
  5877. this.rejectReason,
  5878. String? token,
  5879. }) : super(
  5880. token: token,
  5881. );
  5882. factory RejectIdentityApplyRequest.fromJson(Map<String, dynamic> map) {
  5883. return RejectIdentityApplyRequest(
  5884. identityApplyCode: map['IdentityApplyCode'],
  5885. rejectReason: map['RejectReason'],
  5886. token: map['Token'],
  5887. );
  5888. }
  5889. Map<String, dynamic> toJson() {
  5890. final map = super.toJson();
  5891. if(identityApplyCode != null)
  5892. map['IdentityApplyCode'] = identityApplyCode;
  5893. if(rejectReason != null)
  5894. map['RejectReason'] = rejectReason;
  5895. return map;
  5896. }
  5897. }
  5898. class RemoveAdminRequest extends TokenRequest{
  5899. String? adminCode;
  5900. RemoveAdminRequest({
  5901. this.adminCode,
  5902. String? token,
  5903. }) : super(
  5904. token: token,
  5905. );
  5906. factory RemoveAdminRequest.fromJson(Map<String, dynamic> map) {
  5907. return RemoveAdminRequest(
  5908. adminCode: map['AdminCode'],
  5909. token: map['Token'],
  5910. );
  5911. }
  5912. Map<String, dynamic> toJson() {
  5913. final map = super.toJson();
  5914. if(adminCode != null)
  5915. map['AdminCode'] = adminCode;
  5916. return map;
  5917. }
  5918. }
  5919. class RemoveOrganizationRequest extends TokenRequest{
  5920. String? organizationCode;
  5921. RemoveOrganizationRequest({
  5922. this.organizationCode,
  5923. String? token,
  5924. }) : super(
  5925. token: token,
  5926. );
  5927. factory RemoveOrganizationRequest.fromJson(Map<String, dynamic> map) {
  5928. return RemoveOrganizationRequest(
  5929. organizationCode: map['OrganizationCode'],
  5930. token: map['Token'],
  5931. );
  5932. }
  5933. Map<String, dynamic> toJson() {
  5934. final map = super.toJson();
  5935. if(organizationCode != null)
  5936. map['OrganizationCode'] = organizationCode;
  5937. return map;
  5938. }
  5939. }
  5940. class RemoveReportLabelRequest extends TokenRequest{
  5941. String? reportLabelCode;
  5942. RemoveReportLabelRequest({
  5943. this.reportLabelCode,
  5944. String? token,
  5945. }) : super(
  5946. token: token,
  5947. );
  5948. factory RemoveReportLabelRequest.fromJson(Map<String, dynamic> map) {
  5949. return RemoveReportLabelRequest(
  5950. reportLabelCode: map['ReportLabelCode'],
  5951. token: map['Token'],
  5952. );
  5953. }
  5954. Map<String, dynamic> toJson() {
  5955. final map = super.toJson();
  5956. if(reportLabelCode != null)
  5957. map['ReportLabelCode'] = reportLabelCode;
  5958. return map;
  5959. }
  5960. }
  5961. class RemoveReportPosterRequest extends TokenRequest{
  5962. String? reportPosterCode;
  5963. RemoveReportPosterRequest({
  5964. this.reportPosterCode,
  5965. String? token,
  5966. }) : super(
  5967. token: token,
  5968. );
  5969. factory RemoveReportPosterRequest.fromJson(Map<String, dynamic> map) {
  5970. return RemoveReportPosterRequest(
  5971. reportPosterCode: map['ReportPosterCode'],
  5972. token: map['Token'],
  5973. );
  5974. }
  5975. Map<String, dynamic> toJson() {
  5976. final map = super.toJson();
  5977. if(reportPosterCode != null)
  5978. map['ReportPosterCode'] = reportPosterCode;
  5979. return map;
  5980. }
  5981. }
  5982. class RemoveUserRequest extends TokenRequest{
  5983. String? userCode;
  5984. RemoveUserRequest({
  5985. this.userCode,
  5986. String? token,
  5987. }) : super(
  5988. token: token,
  5989. );
  5990. factory RemoveUserRequest.fromJson(Map<String, dynamic> map) {
  5991. return RemoveUserRequest(
  5992. userCode: map['UserCode'],
  5993. token: map['Token'],
  5994. );
  5995. }
  5996. Map<String, dynamic> toJson() {
  5997. final map = super.toJson();
  5998. if(userCode != null)
  5999. map['UserCode'] = userCode;
  6000. return map;
  6001. }
  6002. }
  6003. class UnlockAccountRequest extends TokenRequest{
  6004. String? userCode;
  6005. UnlockAccountRequest({
  6006. this.userCode,
  6007. String? token,
  6008. }) : super(
  6009. token: token,
  6010. );
  6011. factory UnlockAccountRequest.fromJson(Map<String, dynamic> map) {
  6012. return UnlockAccountRequest(
  6013. userCode: map['UserCode'],
  6014. token: map['Token'],
  6015. );
  6016. }
  6017. Map<String, dynamic> toJson() {
  6018. final map = super.toJson();
  6019. if(userCode != null)
  6020. map['UserCode'] = userCode;
  6021. return map;
  6022. }
  6023. }
  6024. class ResetUserPasswordRequest extends TokenRequest{
  6025. String? userCode;
  6026. String? passWord;
  6027. ResetUserPasswordRequest({
  6028. this.userCode,
  6029. this.passWord,
  6030. String? token,
  6031. }) : super(
  6032. token: token,
  6033. );
  6034. factory ResetUserPasswordRequest.fromJson(Map<String, dynamic> map) {
  6035. return ResetUserPasswordRequest(
  6036. userCode: map['UserCode'],
  6037. passWord: map['PassWord'],
  6038. token: map['Token'],
  6039. );
  6040. }
  6041. Map<String, dynamic> toJson() {
  6042. final map = super.toJson();
  6043. if(userCode != null)
  6044. map['UserCode'] = userCode;
  6045. if(passWord != null)
  6046. map['PassWord'] = passWord;
  6047. return map;
  6048. }
  6049. }
  6050. class RetryPushReportRecordsRequest extends TokenRequest{
  6051. List<String >? codes;
  6052. RetryPushReportRecordsRequest({
  6053. this.codes,
  6054. String? token,
  6055. }) : super(
  6056. token: token,
  6057. );
  6058. factory RetryPushReportRecordsRequest.fromJson(Map<String, dynamic> map) {
  6059. return RetryPushReportRecordsRequest(
  6060. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  6061. token: map['Token'],
  6062. );
  6063. }
  6064. Map<String, dynamic> toJson() {
  6065. final map = super.toJson();
  6066. if(codes != null)
  6067. map['Codes'] = codes;
  6068. return map;
  6069. }
  6070. }
  6071. class SaveCMSTemplateDetailRequest extends TokenRequest{
  6072. String? cMSTemplateCode;
  6073. String? cMSTemplateName;
  6074. CMSTemplateStatusTypeEnum cMSTemplateStateType;
  6075. String? cMSTemplateJson;
  6076. bool isDefault;
  6077. SaveCMSTemplateDetailRequest({
  6078. this.cMSTemplateCode,
  6079. this.cMSTemplateName,
  6080. this.cMSTemplateStateType = CMSTemplateStatusTypeEnum.UnPublished,
  6081. this.cMSTemplateJson,
  6082. this.isDefault = false,
  6083. String? token,
  6084. }) : super(
  6085. token: token,
  6086. );
  6087. factory SaveCMSTemplateDetailRequest.fromJson(Map<String, dynamic> map) {
  6088. return SaveCMSTemplateDetailRequest(
  6089. cMSTemplateCode: map['CMSTemplateCode'],
  6090. cMSTemplateName: map['CMSTemplateName'],
  6091. cMSTemplateStateType: CMSTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['CMSTemplateStateType']),
  6092. cMSTemplateJson: map['CMSTemplateJson'],
  6093. isDefault: map['IsDefault'],
  6094. token: map['Token'],
  6095. );
  6096. }
  6097. Map<String, dynamic> toJson() {
  6098. final map = super.toJson();
  6099. if(cMSTemplateCode != null)
  6100. map['CMSTemplateCode'] = cMSTemplateCode;
  6101. if(cMSTemplateName != null)
  6102. map['CMSTemplateName'] = cMSTemplateName;
  6103. map['CMSTemplateStateType'] = cMSTemplateStateType.index;
  6104. if(cMSTemplateJson != null)
  6105. map['CMSTemplateJson'] = cMSTemplateJson;
  6106. map['IsDefault'] = isDefault;
  6107. return map;
  6108. }
  6109. }
  6110. class SaveReportLabelRequest extends TokenRequest{
  6111. String? reportLabelCode;
  6112. String? labelName;
  6113. String? languageCode;
  6114. ReportLabelUsageTypeEnum usageType;
  6115. List<String >? labelItems;
  6116. SaveReportLabelRequest({
  6117. this.reportLabelCode,
  6118. this.labelName,
  6119. this.languageCode,
  6120. this.usageType = ReportLabelUsageTypeEnum.People,
  6121. this.labelItems,
  6122. String? token,
  6123. }) : super(
  6124. token: token,
  6125. );
  6126. factory SaveReportLabelRequest.fromJson(Map<String, dynamic> map) {
  6127. return SaveReportLabelRequest(
  6128. reportLabelCode: map['ReportLabelCode'],
  6129. labelName: map['LabelName'],
  6130. languageCode: map['LanguageCode'],
  6131. usageType: ReportLabelUsageTypeEnum.values.firstWhere((e) => e.index == map['UsageType']),
  6132. labelItems: map['LabelItems'] != null ? map['LabelItems'].cast<String>().toList() : null,
  6133. token: map['Token'],
  6134. );
  6135. }
  6136. Map<String, dynamic> toJson() {
  6137. final map = super.toJson();
  6138. if(reportLabelCode != null)
  6139. map['ReportLabelCode'] = reportLabelCode;
  6140. if(labelName != null)
  6141. map['LabelName'] = labelName;
  6142. if(languageCode != null)
  6143. map['LanguageCode'] = languageCode;
  6144. map['UsageType'] = usageType.index;
  6145. if(labelItems != null)
  6146. map['LabelItems'] = labelItems;
  6147. return map;
  6148. }
  6149. }
  6150. enum ReportPosterTypeEnum {
  6151. Default,
  6152. BJAid,
  6153. }
  6154. enum ReportFormatEnum {
  6155. Json,
  6156. Xml,
  6157. }
  6158. class SaveReportPosterRequest extends TokenRequest{
  6159. String? reportPosterCode;
  6160. String? receiverName;
  6161. String? contact;
  6162. String? phone;
  6163. String? targetUrl;
  6164. String? template;
  6165. ReportPosterTypeEnum posterType;
  6166. ReportFormatEnum reportFormat;
  6167. int postTimeout;
  6168. SaveReportPosterRequest({
  6169. this.reportPosterCode,
  6170. this.receiverName,
  6171. this.contact,
  6172. this.phone,
  6173. this.targetUrl,
  6174. this.template,
  6175. this.posterType = ReportPosterTypeEnum.Default,
  6176. this.reportFormat = ReportFormatEnum.Json,
  6177. this.postTimeout = 0,
  6178. String? token,
  6179. }) : super(
  6180. token: token,
  6181. );
  6182. factory SaveReportPosterRequest.fromJson(Map<String, dynamic> map) {
  6183. return SaveReportPosterRequest(
  6184. reportPosterCode: map['ReportPosterCode'],
  6185. receiverName: map['ReceiverName'],
  6186. contact: map['Contact'],
  6187. phone: map['Phone'],
  6188. targetUrl: map['TargetUrl'],
  6189. template: map['Template'],
  6190. posterType: ReportPosterTypeEnum.values.firstWhere((e) => e.index == map['PosterType']),
  6191. reportFormat: ReportFormatEnum.values.firstWhere((e) => e.index == map['ReportFormat']),
  6192. postTimeout: map['PostTimeout'],
  6193. token: map['Token'],
  6194. );
  6195. }
  6196. Map<String, dynamic> toJson() {
  6197. final map = super.toJson();
  6198. if(reportPosterCode != null)
  6199. map['ReportPosterCode'] = reportPosterCode;
  6200. if(receiverName != null)
  6201. map['ReceiverName'] = receiverName;
  6202. if(contact != null)
  6203. map['Contact'] = contact;
  6204. if(phone != null)
  6205. map['Phone'] = phone;
  6206. if(targetUrl != null)
  6207. map['TargetUrl'] = targetUrl;
  6208. if(template != null)
  6209. map['Template'] = template;
  6210. map['PosterType'] = posterType.index;
  6211. map['ReportFormat'] = reportFormat.index;
  6212. map['PostTimeout'] = postTimeout;
  6213. return map;
  6214. }
  6215. }
  6216. class SaveThesaurusRequest extends ThesaurusDTO{
  6217. String? token;
  6218. SaveThesaurusRequest({
  6219. this.token,
  6220. String? thesaurusCode,
  6221. String? thesaurusName,
  6222. ThesaurusStatusTypeEnum thesaurusStateType = ThesaurusStatusTypeEnum.Unpublished,
  6223. ThesaurusTypeEnum thesaurusType = ThesaurusTypeEnum.Default,
  6224. ThesaurusUsageTypeEnum thesaurusUsageType = ThesaurusUsageTypeEnum.People,
  6225. String? organizationCode,
  6226. String? personalCode,
  6227. String? referenceThesaurusCode,
  6228. bool isDefault = false,
  6229. bool isUserDefault = false,
  6230. }) : super(
  6231. thesaurusCode: thesaurusCode,
  6232. thesaurusName: thesaurusName,
  6233. thesaurusStateType: thesaurusStateType,
  6234. thesaurusType: thesaurusType,
  6235. thesaurusUsageType: thesaurusUsageType,
  6236. organizationCode: organizationCode,
  6237. personalCode: personalCode,
  6238. referenceThesaurusCode: referenceThesaurusCode,
  6239. isDefault: isDefault,
  6240. isUserDefault: isUserDefault,
  6241. );
  6242. factory SaveThesaurusRequest.fromJson(Map<String, dynamic> map) {
  6243. return SaveThesaurusRequest(
  6244. token: map['Token'],
  6245. thesaurusCode: map['ThesaurusCode'],
  6246. thesaurusName: map['ThesaurusName'],
  6247. thesaurusStateType: ThesaurusStatusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusStateType']),
  6248. thesaurusType: ThesaurusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusType']),
  6249. thesaurusUsageType: ThesaurusUsageTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusUsageType']),
  6250. organizationCode: map['OrganizationCode'],
  6251. personalCode: map['PersonalCode'],
  6252. referenceThesaurusCode: map['ReferenceThesaurusCode'],
  6253. isDefault: map['IsDefault'],
  6254. isUserDefault: map['IsUserDefault'],
  6255. );
  6256. }
  6257. Map<String, dynamic> toJson() {
  6258. final map = super.toJson();
  6259. if(token != null)
  6260. map['Token'] = token;
  6261. return map;
  6262. }
  6263. }
  6264. class SettingReloadRequest extends TokenRequest{
  6265. String? settingKey;
  6266. SettingReloadRequest({
  6267. this.settingKey,
  6268. String? token,
  6269. }) : super(
  6270. token: token,
  6271. );
  6272. factory SettingReloadRequest.fromJson(Map<String, dynamic> map) {
  6273. return SettingReloadRequest(
  6274. settingKey: map['SettingKey'],
  6275. token: map['Token'],
  6276. );
  6277. }
  6278. Map<String, dynamic> toJson() {
  6279. final map = super.toJson();
  6280. if(settingKey != null)
  6281. map['SettingKey'] = settingKey;
  6282. return map;
  6283. }
  6284. }
  6285. class ShareDeviceRequest extends TokenRequest{
  6286. List<String >? userCodeList;
  6287. List<String >? deviceCodes;
  6288. ShareDeviceRequest({
  6289. this.userCodeList,
  6290. this.deviceCodes,
  6291. String? token,
  6292. }) : super(
  6293. token: token,
  6294. );
  6295. factory ShareDeviceRequest.fromJson(Map<String, dynamic> map) {
  6296. return ShareDeviceRequest(
  6297. userCodeList: map['UserCodeList'] != null ? map['UserCodeList'].cast<String>().toList() : null,
  6298. deviceCodes: map['DeviceCodes'] != null ? map['DeviceCodes'].cast<String>().toList() : null,
  6299. token: map['Token'],
  6300. );
  6301. }
  6302. Map<String, dynamic> toJson() {
  6303. final map = super.toJson();
  6304. if(userCodeList != null)
  6305. map['UserCodeList'] = userCodeList;
  6306. if(deviceCodes != null)
  6307. map['DeviceCodes'] = deviceCodes;
  6308. return map;
  6309. }
  6310. }
  6311. class ThesaurusItemRequest extends TokenRequest{
  6312. String? thesaurusItemCode;
  6313. ThesaurusItemTypeEnum thesaurusItemType;
  6314. String? thesaurusItemName;
  6315. String? parentItemCode;
  6316. String? thesaurusCode;
  6317. String? thesaurusItemDescription;
  6318. String? thesaurusItemConclusion;
  6319. ThesaurusItemRequest({
  6320. this.thesaurusItemCode,
  6321. this.thesaurusItemType = ThesaurusItemTypeEnum.Classification,
  6322. this.thesaurusItemName,
  6323. this.parentItemCode,
  6324. this.thesaurusCode,
  6325. this.thesaurusItemDescription,
  6326. this.thesaurusItemConclusion,
  6327. String? token,
  6328. }) : super(
  6329. token: token,
  6330. );
  6331. factory ThesaurusItemRequest.fromJson(Map<String, dynamic> map) {
  6332. return ThesaurusItemRequest(
  6333. thesaurusItemCode: map['ThesaurusItemCode'],
  6334. thesaurusItemType: ThesaurusItemTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusItemType']),
  6335. thesaurusItemName: map['ThesaurusItemName'],
  6336. parentItemCode: map['ParentItemCode'],
  6337. thesaurusCode: map['ThesaurusCode'],
  6338. thesaurusItemDescription: map['ThesaurusItemDescription'],
  6339. thesaurusItemConclusion: map['ThesaurusItemConclusion'],
  6340. token: map['Token'],
  6341. );
  6342. }
  6343. Map<String, dynamic> toJson() {
  6344. final map = super.toJson();
  6345. if(thesaurusItemCode != null)
  6346. map['ThesaurusItemCode'] = thesaurusItemCode;
  6347. map['ThesaurusItemType'] = thesaurusItemType.index;
  6348. if(thesaurusItemName != null)
  6349. map['ThesaurusItemName'] = thesaurusItemName;
  6350. if(parentItemCode != null)
  6351. map['ParentItemCode'] = parentItemCode;
  6352. if(thesaurusCode != null)
  6353. map['ThesaurusCode'] = thesaurusCode;
  6354. if(thesaurusItemDescription != null)
  6355. map['ThesaurusItemDescription'] = thesaurusItemDescription;
  6356. if(thesaurusItemConclusion != null)
  6357. map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
  6358. return map;
  6359. }
  6360. }
  6361. enum GradingConfigTypeEnum {
  6362. Switch,
  6363. Text,
  6364. }
  6365. class UpdateGradingProtectionConfigEnableRequest extends TokenRequest{
  6366. List<String >? codes;
  6367. GradingConfigTypeEnum configType;
  6368. String? value;
  6369. UpdateGradingProtectionConfigEnableRequest({
  6370. this.codes,
  6371. this.configType = GradingConfigTypeEnum.Switch,
  6372. this.value,
  6373. String? token,
  6374. }) : super(
  6375. token: token,
  6376. );
  6377. factory UpdateGradingProtectionConfigEnableRequest.fromJson(Map<String, dynamic> map) {
  6378. return UpdateGradingProtectionConfigEnableRequest(
  6379. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  6380. configType: GradingConfigTypeEnum.values.firstWhere((e) => e.index == map['ConfigType']),
  6381. value: map['Value'],
  6382. token: map['Token'],
  6383. );
  6384. }
  6385. Map<String, dynamic> toJson() {
  6386. final map = super.toJson();
  6387. if(codes != null)
  6388. map['Codes'] = codes;
  6389. map['ConfigType'] = configType.index;
  6390. if(value != null)
  6391. map['Value'] = value;
  6392. return map;
  6393. }
  6394. }
  6395. class FindVideosByCourseCodeRequest extends TokenRequest{
  6396. String? code;
  6397. String? courseCode;
  6398. FindVideosByCourseCodeRequest({
  6399. this.code,
  6400. this.courseCode,
  6401. String? token,
  6402. }) : super(
  6403. token: token,
  6404. );
  6405. factory FindVideosByCourseCodeRequest.fromJson(Map<String, dynamic> map) {
  6406. return FindVideosByCourseCodeRequest(
  6407. code: map['Code'],
  6408. courseCode: map['CourseCode'],
  6409. token: map['Token'],
  6410. );
  6411. }
  6412. Map<String, dynamic> toJson() {
  6413. final map = super.toJson();
  6414. if(code != null)
  6415. map['Code'] = code;
  6416. if(courseCode != null)
  6417. map['CourseCode'] = courseCode;
  6418. return map;
  6419. }
  6420. }
  6421. class GetOpLogsByCodesFormMasterRequest {
  6422. List<String >? codes;
  6423. GetOpLogsByCodesFormMasterRequest({
  6424. this.codes,
  6425. });
  6426. factory GetOpLogsByCodesFormMasterRequest.fromJson(Map<String, dynamic> map) {
  6427. return GetOpLogsByCodesFormMasterRequest(
  6428. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  6429. );
  6430. }
  6431. Map<String, dynamic> toJson() {
  6432. final map = Map<String, dynamic>();
  6433. if(codes != null)
  6434. map['Codes'] = codes;
  6435. return map;
  6436. }
  6437. }
  6438. class GetOpLogsFormMasterRequest {
  6439. int cursor;
  6440. String? sourceUrl;
  6441. GetOpLogsFormMasterRequest({
  6442. this.cursor = 0,
  6443. this.sourceUrl,
  6444. });
  6445. factory GetOpLogsFormMasterRequest.fromJson(Map<String, dynamic> map) {
  6446. return GetOpLogsFormMasterRequest(
  6447. cursor: map['Cursor'],
  6448. sourceUrl: map['SourceUrl'],
  6449. );
  6450. }
  6451. Map<String, dynamic> toJson() {
  6452. final map = Map<String, dynamic>();
  6453. map['Cursor'] = cursor;
  6454. if(sourceUrl != null)
  6455. map['SourceUrl'] = sourceUrl;
  6456. return map;
  6457. }
  6458. }
  6459. enum MongoDBActionTypeEnum {
  6460. InsertOne,
  6461. InsertOneAsync,
  6462. InsertMany,
  6463. InsertManyAsync,
  6464. DeleteOne,
  6465. DeleteOneAsync,
  6466. DeleteMany,
  6467. DeleteManyAsync,
  6468. FindOneAndDelete,
  6469. FindOneAndDeleteAsync,
  6470. ReplaceOne,
  6471. ReplaceOneAsync,
  6472. FindOneAndReplace,
  6473. FindOneAndReplaceAsync,
  6474. UpdateOne,
  6475. UpdateOneAsync,
  6476. UpdateMany,
  6477. UpdateManyAsync,
  6478. FindOneAndUpdate,
  6479. FindOneAndUpdateAsync,
  6480. }
  6481. class OperationLogDTO {
  6482. int id;
  6483. String? collectionName;
  6484. MongoDBActionTypeEnum actionType;
  6485. String? bsonContent;
  6486. String? filterContent;
  6487. DateTime? createTime;
  6488. String? code;
  6489. String? sourceUrl;
  6490. bool isSimple;
  6491. OperationLogDTO({
  6492. this.id = 0,
  6493. this.collectionName,
  6494. this.actionType = MongoDBActionTypeEnum.InsertOne,
  6495. this.bsonContent,
  6496. this.filterContent,
  6497. this.createTime,
  6498. this.code,
  6499. this.sourceUrl,
  6500. this.isSimple = false,
  6501. });
  6502. factory OperationLogDTO.fromJson(Map<String, dynamic> map) {
  6503. return OperationLogDTO(
  6504. id: map['Id'],
  6505. collectionName: map['CollectionName'],
  6506. actionType: MongoDBActionTypeEnum.values.firstWhere((e) => e.index == map['ActionType']),
  6507. bsonContent: map['BsonContent'],
  6508. filterContent: map['FilterContent'],
  6509. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6510. code: map['Code'],
  6511. sourceUrl: map['SourceUrl'],
  6512. isSimple: map['IsSimple'],
  6513. );
  6514. }
  6515. Map<String, dynamic> toJson() {
  6516. final map = Map<String, dynamic>();
  6517. map['Id'] = id;
  6518. if(collectionName != null)
  6519. map['CollectionName'] = collectionName;
  6520. map['ActionType'] = actionType.index;
  6521. if(bsonContent != null)
  6522. map['BsonContent'] = bsonContent;
  6523. if(filterContent != null)
  6524. map['FilterContent'] = filterContent;
  6525. if(createTime != null)
  6526. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  6527. if(code != null)
  6528. map['Code'] = code;
  6529. if(sourceUrl != null)
  6530. map['SourceUrl'] = sourceUrl;
  6531. map['IsSimple'] = isSimple;
  6532. return map;
  6533. }
  6534. }
  6535. class SyncCompleteOpLogsRequest {
  6536. List<OperationLogDTO >? oplogs;
  6537. SyncCompleteOpLogsRequest({
  6538. this.oplogs,
  6539. });
  6540. factory SyncCompleteOpLogsRequest.fromJson(Map<String, dynamic> map) {
  6541. return SyncCompleteOpLogsRequest(
  6542. oplogs: map['Oplogs'] != null ? (map['Oplogs'] as List).map((e)=>OperationLogDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6543. );
  6544. }
  6545. Map<String, dynamic> toJson() {
  6546. final map = Map<String, dynamic>();
  6547. if(oplogs != null)
  6548. map['Oplogs'] = oplogs;
  6549. return map;
  6550. }
  6551. }
  6552. class SyncOpLogToMasterRequest {
  6553. String? collectionName;
  6554. MongoDBActionTypeEnum actionType;
  6555. String? bsonContent;
  6556. String? filterContent;
  6557. DateTime? createTime;
  6558. String? sourceUrl;
  6559. String? code;
  6560. String? serverID;
  6561. bool isSimple;
  6562. SyncOpLogToMasterRequest({
  6563. this.collectionName,
  6564. this.actionType = MongoDBActionTypeEnum.InsertOne,
  6565. this.bsonContent,
  6566. this.filterContent,
  6567. this.createTime,
  6568. this.sourceUrl,
  6569. this.code,
  6570. this.serverID,
  6571. this.isSimple = false,
  6572. });
  6573. factory SyncOpLogToMasterRequest.fromJson(Map<String, dynamic> map) {
  6574. return SyncOpLogToMasterRequest(
  6575. collectionName: map['CollectionName'],
  6576. actionType: MongoDBActionTypeEnum.values.firstWhere((e) => e.index == map['ActionType']),
  6577. bsonContent: map['BsonContent'],
  6578. filterContent: map['FilterContent'],
  6579. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6580. sourceUrl: map['SourceUrl'],
  6581. code: map['Code'],
  6582. serverID: map['ServerID'],
  6583. isSimple: map['IsSimple'],
  6584. );
  6585. }
  6586. Map<String, dynamic> toJson() {
  6587. final map = Map<String, dynamic>();
  6588. if(collectionName != null)
  6589. map['CollectionName'] = collectionName;
  6590. map['ActionType'] = actionType.index;
  6591. if(bsonContent != null)
  6592. map['BsonContent'] = bsonContent;
  6593. if(filterContent != null)
  6594. map['FilterContent'] = filterContent;
  6595. if(createTime != null)
  6596. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  6597. if(sourceUrl != null)
  6598. map['SourceUrl'] = sourceUrl;
  6599. if(code != null)
  6600. map['Code'] = code;
  6601. if(serverID != null)
  6602. map['ServerID'] = serverID;
  6603. map['IsSimple'] = isSimple;
  6604. return map;
  6605. }
  6606. }
  6607. class NotificationClientInfo {
  6608. String? clientId;
  6609. String? loginServerUrl;
  6610. NotificationClientInfo({
  6611. this.clientId,
  6612. this.loginServerUrl,
  6613. });
  6614. factory NotificationClientInfo.fromJson(Map<String, dynamic> map) {
  6615. return NotificationClientInfo(
  6616. clientId: map['ClientId'],
  6617. loginServerUrl: map['LoginServerUrl'],
  6618. );
  6619. }
  6620. Map<String, dynamic> toJson() {
  6621. final map = Map<String, dynamic>();
  6622. if(clientId != null)
  6623. map['ClientId'] = clientId;
  6624. if(loginServerUrl != null)
  6625. map['LoginServerUrl'] = loginServerUrl;
  6626. return map;
  6627. }
  6628. }
  6629. enum ConsultationMemeberAcceptStatus {
  6630. Default,
  6631. Accepted,
  6632. Rejected,
  6633. }
  6634. enum LiveConsultationRoleEnum {
  6635. Expert,
  6636. General,
  6637. OtherParticipant,
  6638. AssistantDoctor,
  6639. Assistant,
  6640. }
  6641. enum LiveConsultationRoomStatus {
  6642. Default,
  6643. Initiating,
  6644. Cancelled,
  6645. ConnectionTimeout,
  6646. Connected,
  6647. Closed,
  6648. }
  6649. enum VideoProtocol {
  6650. Rtmp,
  6651. Rtc,
  6652. }
  6653. class DeviceJoinLiveConsultationResult {
  6654. String? consultationCode;
  6655. String? deviceCode;
  6656. int roomNo;
  6657. int appId;
  6658. String? deviceSign;
  6659. List<LiveConsultationMember >? memberLiveDatas;
  6660. List<InteractiveBoardDataDTO >? interactiveBoardDatas;
  6661. DeviceJoinLiveConsultationResult({
  6662. this.consultationCode,
  6663. this.deviceCode,
  6664. this.roomNo = 0,
  6665. this.appId = 0,
  6666. this.deviceSign,
  6667. this.memberLiveDatas,
  6668. this.interactiveBoardDatas,
  6669. });
  6670. factory DeviceJoinLiveConsultationResult.fromJson(Map<String, dynamic> map) {
  6671. return DeviceJoinLiveConsultationResult(
  6672. consultationCode: map['ConsultationCode'],
  6673. deviceCode: map['DeviceCode'],
  6674. roomNo: map['RoomNo'],
  6675. appId: map['AppId'],
  6676. deviceSign: map['DeviceSign'],
  6677. memberLiveDatas: map['MemberLiveDatas'] != null ? (map['MemberLiveDatas'] as List).map((e)=>LiveConsultationMember.fromJson(e as Map<String,dynamic>)).toList() : null,
  6678. interactiveBoardDatas: map['InteractiveBoardDatas'] != null ? (map['InteractiveBoardDatas'] as List).map((e)=>InteractiveBoardDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6679. );
  6680. }
  6681. Map<String, dynamic> toJson() {
  6682. final map = Map<String, dynamic>();
  6683. if(consultationCode != null)
  6684. map['ConsultationCode'] = consultationCode;
  6685. if(deviceCode != null)
  6686. map['DeviceCode'] = deviceCode;
  6687. map['RoomNo'] = roomNo;
  6688. map['AppId'] = appId;
  6689. if(deviceSign != null)
  6690. map['DeviceSign'] = deviceSign;
  6691. if(memberLiveDatas != null)
  6692. map['MemberLiveDatas'] = memberLiveDatas;
  6693. if(interactiveBoardDatas != null)
  6694. map['InteractiveBoardDatas'] = interactiveBoardDatas;
  6695. return map;
  6696. }
  6697. }
  6698. class LiveConsultationRoomDTO {
  6699. String? consultationCode;
  6700. LiveConsultationMember? initiator;
  6701. List<LiveConsultationMember >? members;
  6702. List<LiveConsultationMember >? devices;
  6703. LiveConsultationRoomStatus status;
  6704. int roomNo;
  6705. LiveConsultationRoomDTO({
  6706. this.consultationCode,
  6707. this.initiator,
  6708. this.members,
  6709. this.devices,
  6710. this.status = LiveConsultationRoomStatus.Default,
  6711. this.roomNo = 0,
  6712. });
  6713. factory LiveConsultationRoomDTO.fromJson(Map<String, dynamic> map) {
  6714. return LiveConsultationRoomDTO(
  6715. consultationCode: map['ConsultationCode'],
  6716. initiator: map['Initiator'] != null ? LiveConsultationMember.fromJson(map['Initiator']) : null,
  6717. members: map['Members'] != null ? (map['Members'] as List).map((e)=>LiveConsultationMember.fromJson(e as Map<String,dynamic>)).toList() : null,
  6718. devices: map['Devices'] != null ? (map['Devices'] as List).map((e)=>LiveConsultationMember.fromJson(e as Map<String,dynamic>)).toList() : null,
  6719. status: LiveConsultationRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  6720. roomNo: map['RoomNo'],
  6721. );
  6722. }
  6723. Map<String, dynamic> toJson() {
  6724. final map = Map<String, dynamic>();
  6725. if(consultationCode != null)
  6726. map['ConsultationCode'] = consultationCode;
  6727. if(initiator != null)
  6728. map['Initiator'] = initiator;
  6729. if(members != null)
  6730. map['Members'] = members;
  6731. if(devices != null)
  6732. map['Devices'] = devices;
  6733. map['Status'] = status.index;
  6734. map['RoomNo'] = roomNo;
  6735. return map;
  6736. }
  6737. }
  6738. enum BoardTypeEnum {
  6739. ReadOnly,
  6740. Ink,
  6741. Line,
  6742. Erase,
  6743. }
  6744. class FindConsultationSettingRequest extends TokenRequest{
  6745. String? version;
  6746. FindConsultationSettingRequest({
  6747. this.version,
  6748. String? token,
  6749. }) : super(
  6750. token: token,
  6751. );
  6752. factory FindConsultationSettingRequest.fromJson(Map<String, dynamic> map) {
  6753. return FindConsultationSettingRequest(
  6754. version: map['Version'],
  6755. token: map['Token'],
  6756. );
  6757. }
  6758. Map<String, dynamic> toJson() {
  6759. final map = super.toJson();
  6760. if(version != null)
  6761. map['Version'] = version;
  6762. return map;
  6763. }
  6764. }
  6765. class FindOrganizationBindExpertsRequest extends TokenRequest{
  6766. FindOrganizationBindExpertsRequest({
  6767. String? token,
  6768. }) : super(
  6769. token: token,
  6770. );
  6771. factory FindOrganizationBindExpertsRequest.fromJson(Map<String, dynamic> map) {
  6772. return FindOrganizationBindExpertsRequest(
  6773. token: map['Token'],
  6774. );
  6775. }
  6776. Map<String, dynamic> toJson() {
  6777. final map = super.toJson();
  6778. return map;
  6779. }
  6780. }
  6781. class GetEmergencyOrderRequest extends TokenRequest{
  6782. String? emergencySerialNumber;
  6783. GetEmergencyOrderRequest({
  6784. this.emergencySerialNumber,
  6785. String? token,
  6786. }) : super(
  6787. token: token,
  6788. );
  6789. factory GetEmergencyOrderRequest.fromJson(Map<String, dynamic> map) {
  6790. return GetEmergencyOrderRequest(
  6791. emergencySerialNumber: map['EmergencySerialNumber'],
  6792. token: map['Token'],
  6793. );
  6794. }
  6795. Map<String, dynamic> toJson() {
  6796. final map = super.toJson();
  6797. if(emergencySerialNumber != null)
  6798. map['EmergencySerialNumber'] = emergencySerialNumber;
  6799. return map;
  6800. }
  6801. }
  6802. enum AgeUnitsEnum {
  6803. Year,
  6804. YearAndMonth,
  6805. MonthAndWeek,
  6806. WeekAndDay,
  6807. }
  6808. enum AnnounceTypeEnum {
  6809. Broadcast,
  6810. Maintain,
  6811. }
  6812. enum MessageCategoryEnum {
  6813. Consultation,
  6814. Diagnosis,
  6815. Course,
  6816. }
  6817. enum BusinessModuleEnum {
  6818. placeHolder_0,
  6819. RemoteDiagnosis,
  6820. LivingConsultation,
  6821. LivingCourse,
  6822. DeviceLiving,
  6823. RemoteControl,
  6824. }
  6825. enum QueryCMSTemplateStatusTypeEnum {
  6826. UnPublished,
  6827. Published,
  6828. }
  6829. enum QueryCMSMessageStatusEnum {
  6830. UnRead,
  6831. Read,
  6832. }
  6833. enum CMSMessageStatusEnum {
  6834. UnRead,
  6835. Read,
  6836. }
  6837. enum StatisticsPlatformEnum {
  6838. Management,
  6839. CMS,
  6840. }
  6841. enum StatisticsBannerTypeEnum {
  6842. PlatActivity,
  6843. Devices,
  6844. Download,
  6845. }
  6846. enum QueryStatisticsBannerTypeEnum {
  6847. PlatActivity,
  6848. Devices,
  6849. Download,
  6850. }
  6851. enum LogEventLevel {
  6852. Verbose,
  6853. Debug,
  6854. Information,
  6855. Warning,
  6856. Error,
  6857. Fatal,
  6858. }
  6859. enum DiagnosisLabelEnum {
  6860. BIRads1,
  6861. Lipomyoma,
  6862. BIRads2,
  6863. BIRads3,
  6864. BIRads4A,
  6865. BIRads4B,
  6866. BIRads4C,
  6867. BIRads5,
  6868. IntrahepaticHyperechoic,
  6869. HHE,
  6870. CYST,
  6871. PossibleCancer,
  6872. FattyLiver,
  6873. DiffuseLesions,
  6874. Cirrhosis,
  6875. PCLD,
  6876. }
  6877. enum DiagnosisLiverLabelEnum {
  6878. BIRads1,
  6879. Hyperechoic,
  6880. HHE,
  6881. CYST,
  6882. PossibleCancer,
  6883. FattyLiver,
  6884. DiffuseLesions,
  6885. Cirrhosis,
  6886. PCLD,
  6887. }
  6888. enum FollowUpVisitStatusEnum {
  6889. Unknown,
  6890. PendingVisit,
  6891. VisitCompleted,
  6892. }
  6893. enum GestationalAgeOriginEnum {
  6894. GestationalAge,
  6895. IVF,
  6896. OospermForm,
  6897. BBT,
  6898. LMP,
  6899. }
  6900. enum GetUserListTypeEnum {
  6901. FullName,
  6902. Phone,
  6903. }
  6904. enum HeartbeatTypeEnum {
  6905. ClientToken,
  6906. TerminalToken,
  6907. ThirdpartyToken,
  6908. LiveState,
  6909. RTCState,
  6910. }
  6911. enum LiveMemberStatusEnum {
  6912. Default,
  6913. Accepted,
  6914. Rejected,
  6915. Joined,
  6916. Left,
  6917. }
  6918. enum LiveProtocolEnum {
  6919. placeHolder_0,
  6920. RTMP,
  6921. RTC,
  6922. }
  6923. enum LiveRoomStatus {
  6924. Default,
  6925. Initiating,
  6926. Cancelled,
  6927. ConnectionTimeout,
  6928. Connected,
  6929. Closed,
  6930. }
  6931. enum LoginProcessorTypeEnum {
  6932. Official,
  6933. Wechat,
  6934. Phone,
  6935. Email,
  6936. placeHolder_4,
  6937. placeHolder_5,
  6938. placeHolder_6,
  6939. placeHolder_7,
  6940. placeHolder_8,
  6941. placeHolder_9,
  6942. placeHolder_10,
  6943. placeHolder_11,
  6944. placeHolder_12,
  6945. placeHolder_13,
  6946. placeHolder_14,
  6947. placeHolder_15,
  6948. placeHolder_16,
  6949. placeHolder_17,
  6950. placeHolder_18,
  6951. placeHolder_19,
  6952. placeHolder_20,
  6953. placeHolder_21,
  6954. placeHolder_22,
  6955. placeHolder_23,
  6956. placeHolder_24,
  6957. placeHolder_25,
  6958. placeHolder_26,
  6959. placeHolder_27,
  6960. placeHolder_28,
  6961. placeHolder_29,
  6962. placeHolder_30,
  6963. placeHolder_31,
  6964. placeHolder_32,
  6965. placeHolder_33,
  6966. placeHolder_34,
  6967. placeHolder_35,
  6968. placeHolder_36,
  6969. placeHolder_37,
  6970. placeHolder_38,
  6971. placeHolder_39,
  6972. placeHolder_40,
  6973. placeHolder_41,
  6974. placeHolder_42,
  6975. placeHolder_43,
  6976. placeHolder_44,
  6977. placeHolder_45,
  6978. placeHolder_46,
  6979. placeHolder_47,
  6980. placeHolder_48,
  6981. placeHolder_49,
  6982. placeHolder_50,
  6983. placeHolder_51,
  6984. placeHolder_52,
  6985. placeHolder_53,
  6986. placeHolder_54,
  6987. placeHolder_55,
  6988. placeHolder_56,
  6989. placeHolder_57,
  6990. placeHolder_58,
  6991. placeHolder_59,
  6992. placeHolder_60,
  6993. placeHolder_61,
  6994. placeHolder_62,
  6995. placeHolder_63,
  6996. placeHolder_64,
  6997. placeHolder_65,
  6998. placeHolder_66,
  6999. placeHolder_67,
  7000. placeHolder_68,
  7001. placeHolder_69,
  7002. placeHolder_70,
  7003. placeHolder_71,
  7004. placeHolder_72,
  7005. placeHolder_73,
  7006. placeHolder_74,
  7007. placeHolder_75,
  7008. placeHolder_76,
  7009. placeHolder_77,
  7010. placeHolder_78,
  7011. placeHolder_79,
  7012. placeHolder_80,
  7013. placeHolder_81,
  7014. placeHolder_82,
  7015. placeHolder_83,
  7016. placeHolder_84,
  7017. placeHolder_85,
  7018. placeHolder_86,
  7019. placeHolder_87,
  7020. placeHolder_88,
  7021. placeHolder_89,
  7022. placeHolder_90,
  7023. placeHolder_91,
  7024. placeHolder_92,
  7025. placeHolder_93,
  7026. placeHolder_94,
  7027. placeHolder_95,
  7028. placeHolder_96,
  7029. placeHolder_97,
  7030. placeHolder_98,
  7031. placeHolder_99,
  7032. placeHolder_100,
  7033. placeHolder_101,
  7034. placeHolder_102,
  7035. placeHolder_103,
  7036. placeHolder_104,
  7037. placeHolder_105,
  7038. placeHolder_106,
  7039. placeHolder_107,
  7040. placeHolder_108,
  7041. placeHolder_109,
  7042. placeHolder_110,
  7043. placeHolder_111,
  7044. placeHolder_112,
  7045. placeHolder_113,
  7046. placeHolder_114,
  7047. placeHolder_115,
  7048. placeHolder_116,
  7049. placeHolder_117,
  7050. placeHolder_118,
  7051. placeHolder_119,
  7052. placeHolder_120,
  7053. placeHolder_121,
  7054. placeHolder_122,
  7055. placeHolder_123,
  7056. placeHolder_124,
  7057. placeHolder_125,
  7058. placeHolder_126,
  7059. placeHolder_127,
  7060. placeHolder_128,
  7061. placeHolder_129,
  7062. placeHolder_130,
  7063. placeHolder_131,
  7064. placeHolder_132,
  7065. placeHolder_133,
  7066. placeHolder_134,
  7067. placeHolder_135,
  7068. placeHolder_136,
  7069. placeHolder_137,
  7070. placeHolder_138,
  7071. placeHolder_139,
  7072. placeHolder_140,
  7073. placeHolder_141,
  7074. placeHolder_142,
  7075. placeHolder_143,
  7076. placeHolder_144,
  7077. placeHolder_145,
  7078. placeHolder_146,
  7079. placeHolder_147,
  7080. placeHolder_148,
  7081. placeHolder_149,
  7082. placeHolder_150,
  7083. placeHolder_151,
  7084. placeHolder_152,
  7085. placeHolder_153,
  7086. placeHolder_154,
  7087. placeHolder_155,
  7088. placeHolder_156,
  7089. placeHolder_157,
  7090. placeHolder_158,
  7091. placeHolder_159,
  7092. placeHolder_160,
  7093. placeHolder_161,
  7094. placeHolder_162,
  7095. placeHolder_163,
  7096. placeHolder_164,
  7097. placeHolder_165,
  7098. placeHolder_166,
  7099. placeHolder_167,
  7100. placeHolder_168,
  7101. placeHolder_169,
  7102. placeHolder_170,
  7103. placeHolder_171,
  7104. placeHolder_172,
  7105. placeHolder_173,
  7106. placeHolder_174,
  7107. placeHolder_175,
  7108. placeHolder_176,
  7109. placeHolder_177,
  7110. placeHolder_178,
  7111. placeHolder_179,
  7112. placeHolder_180,
  7113. placeHolder_181,
  7114. placeHolder_182,
  7115. placeHolder_183,
  7116. placeHolder_184,
  7117. placeHolder_185,
  7118. placeHolder_186,
  7119. placeHolder_187,
  7120. placeHolder_188,
  7121. placeHolder_189,
  7122. placeHolder_190,
  7123. placeHolder_191,
  7124. placeHolder_192,
  7125. placeHolder_193,
  7126. placeHolder_194,
  7127. placeHolder_195,
  7128. placeHolder_196,
  7129. placeHolder_197,
  7130. placeHolder_198,
  7131. placeHolder_199,
  7132. placeHolder_200,
  7133. placeHolder_201,
  7134. placeHolder_202,
  7135. placeHolder_203,
  7136. placeHolder_204,
  7137. placeHolder_205,
  7138. placeHolder_206,
  7139. placeHolder_207,
  7140. placeHolder_208,
  7141. placeHolder_209,
  7142. placeHolder_210,
  7143. placeHolder_211,
  7144. placeHolder_212,
  7145. placeHolder_213,
  7146. placeHolder_214,
  7147. placeHolder_215,
  7148. placeHolder_216,
  7149. placeHolder_217,
  7150. placeHolder_218,
  7151. placeHolder_219,
  7152. placeHolder_220,
  7153. placeHolder_221,
  7154. placeHolder_222,
  7155. placeHolder_223,
  7156. placeHolder_224,
  7157. placeHolder_225,
  7158. placeHolder_226,
  7159. placeHolder_227,
  7160. placeHolder_228,
  7161. placeHolder_229,
  7162. placeHolder_230,
  7163. placeHolder_231,
  7164. placeHolder_232,
  7165. placeHolder_233,
  7166. placeHolder_234,
  7167. placeHolder_235,
  7168. placeHolder_236,
  7169. placeHolder_237,
  7170. placeHolder_238,
  7171. placeHolder_239,
  7172. placeHolder_240,
  7173. placeHolder_241,
  7174. placeHolder_242,
  7175. placeHolder_243,
  7176. placeHolder_244,
  7177. placeHolder_245,
  7178. placeHolder_246,
  7179. placeHolder_247,
  7180. placeHolder_248,
  7181. placeHolder_249,
  7182. placeHolder_250,
  7183. placeHolder_251,
  7184. placeHolder_252,
  7185. placeHolder_253,
  7186. placeHolder_254,
  7187. placeHolder_255,
  7188. placeHolder_256,
  7189. placeHolder_257,
  7190. placeHolder_258,
  7191. placeHolder_259,
  7192. placeHolder_260,
  7193. placeHolder_261,
  7194. placeHolder_262,
  7195. placeHolder_263,
  7196. placeHolder_264,
  7197. placeHolder_265,
  7198. placeHolder_266,
  7199. placeHolder_267,
  7200. placeHolder_268,
  7201. placeHolder_269,
  7202. placeHolder_270,
  7203. placeHolder_271,
  7204. placeHolder_272,
  7205. placeHolder_273,
  7206. placeHolder_274,
  7207. placeHolder_275,
  7208. placeHolder_276,
  7209. placeHolder_277,
  7210. placeHolder_278,
  7211. placeHolder_279,
  7212. placeHolder_280,
  7213. placeHolder_281,
  7214. placeHolder_282,
  7215. placeHolder_283,
  7216. placeHolder_284,
  7217. placeHolder_285,
  7218. placeHolder_286,
  7219. placeHolder_287,
  7220. placeHolder_288,
  7221. placeHolder_289,
  7222. placeHolder_290,
  7223. placeHolder_291,
  7224. placeHolder_292,
  7225. placeHolder_293,
  7226. placeHolder_294,
  7227. placeHolder_295,
  7228. placeHolder_296,
  7229. placeHolder_297,
  7230. placeHolder_298,
  7231. placeHolder_299,
  7232. placeHolder_300,
  7233. placeHolder_301,
  7234. placeHolder_302,
  7235. placeHolder_303,
  7236. placeHolder_304,
  7237. placeHolder_305,
  7238. placeHolder_306,
  7239. placeHolder_307,
  7240. placeHolder_308,
  7241. placeHolder_309,
  7242. placeHolder_310,
  7243. placeHolder_311,
  7244. placeHolder_312,
  7245. placeHolder_313,
  7246. placeHolder_314,
  7247. placeHolder_315,
  7248. placeHolder_316,
  7249. placeHolder_317,
  7250. placeHolder_318,
  7251. placeHolder_319,
  7252. placeHolder_320,
  7253. placeHolder_321,
  7254. placeHolder_322,
  7255. placeHolder_323,
  7256. placeHolder_324,
  7257. placeHolder_325,
  7258. placeHolder_326,
  7259. placeHolder_327,
  7260. placeHolder_328,
  7261. placeHolder_329,
  7262. placeHolder_330,
  7263. placeHolder_331,
  7264. placeHolder_332,
  7265. placeHolder_333,
  7266. placeHolder_334,
  7267. placeHolder_335,
  7268. placeHolder_336,
  7269. placeHolder_337,
  7270. placeHolder_338,
  7271. placeHolder_339,
  7272. placeHolder_340,
  7273. placeHolder_341,
  7274. placeHolder_342,
  7275. placeHolder_343,
  7276. placeHolder_344,
  7277. placeHolder_345,
  7278. placeHolder_346,
  7279. placeHolder_347,
  7280. placeHolder_348,
  7281. placeHolder_349,
  7282. placeHolder_350,
  7283. placeHolder_351,
  7284. placeHolder_352,
  7285. placeHolder_353,
  7286. placeHolder_354,
  7287. placeHolder_355,
  7288. placeHolder_356,
  7289. placeHolder_357,
  7290. placeHolder_358,
  7291. placeHolder_359,
  7292. placeHolder_360,
  7293. placeHolder_361,
  7294. placeHolder_362,
  7295. placeHolder_363,
  7296. placeHolder_364,
  7297. placeHolder_365,
  7298. placeHolder_366,
  7299. placeHolder_367,
  7300. placeHolder_368,
  7301. placeHolder_369,
  7302. placeHolder_370,
  7303. placeHolder_371,
  7304. placeHolder_372,
  7305. placeHolder_373,
  7306. placeHolder_374,
  7307. placeHolder_375,
  7308. placeHolder_376,
  7309. placeHolder_377,
  7310. placeHolder_378,
  7311. placeHolder_379,
  7312. placeHolder_380,
  7313. placeHolder_381,
  7314. placeHolder_382,
  7315. placeHolder_383,
  7316. placeHolder_384,
  7317. placeHolder_385,
  7318. placeHolder_386,
  7319. placeHolder_387,
  7320. placeHolder_388,
  7321. placeHolder_389,
  7322. placeHolder_390,
  7323. placeHolder_391,
  7324. placeHolder_392,
  7325. placeHolder_393,
  7326. placeHolder_394,
  7327. placeHolder_395,
  7328. placeHolder_396,
  7329. placeHolder_397,
  7330. placeHolder_398,
  7331. placeHolder_399,
  7332. placeHolder_400,
  7333. placeHolder_401,
  7334. placeHolder_402,
  7335. placeHolder_403,
  7336. placeHolder_404,
  7337. placeHolder_405,
  7338. placeHolder_406,
  7339. placeHolder_407,
  7340. placeHolder_408,
  7341. placeHolder_409,
  7342. placeHolder_410,
  7343. placeHolder_411,
  7344. placeHolder_412,
  7345. placeHolder_413,
  7346. placeHolder_414,
  7347. placeHolder_415,
  7348. placeHolder_416,
  7349. placeHolder_417,
  7350. placeHolder_418,
  7351. placeHolder_419,
  7352. placeHolder_420,
  7353. placeHolder_421,
  7354. placeHolder_422,
  7355. placeHolder_423,
  7356. placeHolder_424,
  7357. placeHolder_425,
  7358. placeHolder_426,
  7359. placeHolder_427,
  7360. placeHolder_428,
  7361. placeHolder_429,
  7362. placeHolder_430,
  7363. placeHolder_431,
  7364. placeHolder_432,
  7365. placeHolder_433,
  7366. placeHolder_434,
  7367. placeHolder_435,
  7368. placeHolder_436,
  7369. placeHolder_437,
  7370. placeHolder_438,
  7371. placeHolder_439,
  7372. placeHolder_440,
  7373. placeHolder_441,
  7374. placeHolder_442,
  7375. placeHolder_443,
  7376. placeHolder_444,
  7377. placeHolder_445,
  7378. placeHolder_446,
  7379. placeHolder_447,
  7380. placeHolder_448,
  7381. placeHolder_449,
  7382. placeHolder_450,
  7383. placeHolder_451,
  7384. placeHolder_452,
  7385. placeHolder_453,
  7386. placeHolder_454,
  7387. placeHolder_455,
  7388. placeHolder_456,
  7389. placeHolder_457,
  7390. placeHolder_458,
  7391. placeHolder_459,
  7392. placeHolder_460,
  7393. placeHolder_461,
  7394. placeHolder_462,
  7395. placeHolder_463,
  7396. placeHolder_464,
  7397. placeHolder_465,
  7398. placeHolder_466,
  7399. placeHolder_467,
  7400. placeHolder_468,
  7401. placeHolder_469,
  7402. placeHolder_470,
  7403. placeHolder_471,
  7404. placeHolder_472,
  7405. placeHolder_473,
  7406. placeHolder_474,
  7407. placeHolder_475,
  7408. placeHolder_476,
  7409. placeHolder_477,
  7410. placeHolder_478,
  7411. placeHolder_479,
  7412. placeHolder_480,
  7413. placeHolder_481,
  7414. placeHolder_482,
  7415. placeHolder_483,
  7416. placeHolder_484,
  7417. placeHolder_485,
  7418. placeHolder_486,
  7419. placeHolder_487,
  7420. placeHolder_488,
  7421. placeHolder_489,
  7422. placeHolder_490,
  7423. placeHolder_491,
  7424. placeHolder_492,
  7425. placeHolder_493,
  7426. placeHolder_494,
  7427. placeHolder_495,
  7428. placeHolder_496,
  7429. placeHolder_497,
  7430. placeHolder_498,
  7431. placeHolder_499,
  7432. placeHolder_500,
  7433. placeHolder_501,
  7434. placeHolder_502,
  7435. placeHolder_503,
  7436. placeHolder_504,
  7437. placeHolder_505,
  7438. placeHolder_506,
  7439. placeHolder_507,
  7440. placeHolder_508,
  7441. placeHolder_509,
  7442. placeHolder_510,
  7443. placeHolder_511,
  7444. placeHolder_512,
  7445. placeHolder_513,
  7446. placeHolder_514,
  7447. placeHolder_515,
  7448. placeHolder_516,
  7449. placeHolder_517,
  7450. placeHolder_518,
  7451. placeHolder_519,
  7452. placeHolder_520,
  7453. placeHolder_521,
  7454. placeHolder_522,
  7455. placeHolder_523,
  7456. placeHolder_524,
  7457. placeHolder_525,
  7458. placeHolder_526,
  7459. placeHolder_527,
  7460. placeHolder_528,
  7461. placeHolder_529,
  7462. placeHolder_530,
  7463. placeHolder_531,
  7464. placeHolder_532,
  7465. placeHolder_533,
  7466. placeHolder_534,
  7467. placeHolder_535,
  7468. placeHolder_536,
  7469. placeHolder_537,
  7470. placeHolder_538,
  7471. placeHolder_539,
  7472. placeHolder_540,
  7473. placeHolder_541,
  7474. placeHolder_542,
  7475. placeHolder_543,
  7476. placeHolder_544,
  7477. placeHolder_545,
  7478. placeHolder_546,
  7479. placeHolder_547,
  7480. placeHolder_548,
  7481. placeHolder_549,
  7482. placeHolder_550,
  7483. placeHolder_551,
  7484. placeHolder_552,
  7485. placeHolder_553,
  7486. placeHolder_554,
  7487. placeHolder_555,
  7488. placeHolder_556,
  7489. placeHolder_557,
  7490. placeHolder_558,
  7491. placeHolder_559,
  7492. placeHolder_560,
  7493. placeHolder_561,
  7494. placeHolder_562,
  7495. placeHolder_563,
  7496. placeHolder_564,
  7497. placeHolder_565,
  7498. placeHolder_566,
  7499. placeHolder_567,
  7500. placeHolder_568,
  7501. placeHolder_569,
  7502. placeHolder_570,
  7503. placeHolder_571,
  7504. placeHolder_572,
  7505. placeHolder_573,
  7506. placeHolder_574,
  7507. placeHolder_575,
  7508. placeHolder_576,
  7509. placeHolder_577,
  7510. placeHolder_578,
  7511. placeHolder_579,
  7512. placeHolder_580,
  7513. placeHolder_581,
  7514. placeHolder_582,
  7515. placeHolder_583,
  7516. placeHolder_584,
  7517. placeHolder_585,
  7518. placeHolder_586,
  7519. placeHolder_587,
  7520. placeHolder_588,
  7521. placeHolder_589,
  7522. placeHolder_590,
  7523. placeHolder_591,
  7524. placeHolder_592,
  7525. placeHolder_593,
  7526. placeHolder_594,
  7527. placeHolder_595,
  7528. placeHolder_596,
  7529. placeHolder_597,
  7530. placeHolder_598,
  7531. placeHolder_599,
  7532. placeHolder_600,
  7533. placeHolder_601,
  7534. placeHolder_602,
  7535. placeHolder_603,
  7536. placeHolder_604,
  7537. placeHolder_605,
  7538. placeHolder_606,
  7539. placeHolder_607,
  7540. placeHolder_608,
  7541. placeHolder_609,
  7542. placeHolder_610,
  7543. placeHolder_611,
  7544. placeHolder_612,
  7545. placeHolder_613,
  7546. placeHolder_614,
  7547. placeHolder_615,
  7548. placeHolder_616,
  7549. placeHolder_617,
  7550. placeHolder_618,
  7551. placeHolder_619,
  7552. placeHolder_620,
  7553. placeHolder_621,
  7554. placeHolder_622,
  7555. placeHolder_623,
  7556. placeHolder_624,
  7557. placeHolder_625,
  7558. placeHolder_626,
  7559. placeHolder_627,
  7560. placeHolder_628,
  7561. placeHolder_629,
  7562. placeHolder_630,
  7563. placeHolder_631,
  7564. placeHolder_632,
  7565. placeHolder_633,
  7566. placeHolder_634,
  7567. placeHolder_635,
  7568. placeHolder_636,
  7569. placeHolder_637,
  7570. placeHolder_638,
  7571. placeHolder_639,
  7572. placeHolder_640,
  7573. placeHolder_641,
  7574. placeHolder_642,
  7575. placeHolder_643,
  7576. placeHolder_644,
  7577. placeHolder_645,
  7578. placeHolder_646,
  7579. placeHolder_647,
  7580. placeHolder_648,
  7581. placeHolder_649,
  7582. placeHolder_650,
  7583. placeHolder_651,
  7584. placeHolder_652,
  7585. placeHolder_653,
  7586. placeHolder_654,
  7587. placeHolder_655,
  7588. placeHolder_656,
  7589. placeHolder_657,
  7590. placeHolder_658,
  7591. placeHolder_659,
  7592. placeHolder_660,
  7593. placeHolder_661,
  7594. placeHolder_662,
  7595. placeHolder_663,
  7596. placeHolder_664,
  7597. placeHolder_665,
  7598. placeHolder_666,
  7599. placeHolder_667,
  7600. placeHolder_668,
  7601. placeHolder_669,
  7602. placeHolder_670,
  7603. placeHolder_671,
  7604. placeHolder_672,
  7605. placeHolder_673,
  7606. placeHolder_674,
  7607. placeHolder_675,
  7608. placeHolder_676,
  7609. placeHolder_677,
  7610. placeHolder_678,
  7611. placeHolder_679,
  7612. placeHolder_680,
  7613. placeHolder_681,
  7614. placeHolder_682,
  7615. placeHolder_683,
  7616. placeHolder_684,
  7617. placeHolder_685,
  7618. placeHolder_686,
  7619. placeHolder_687,
  7620. placeHolder_688,
  7621. placeHolder_689,
  7622. placeHolder_690,
  7623. placeHolder_691,
  7624. placeHolder_692,
  7625. placeHolder_693,
  7626. placeHolder_694,
  7627. placeHolder_695,
  7628. placeHolder_696,
  7629. placeHolder_697,
  7630. placeHolder_698,
  7631. placeHolder_699,
  7632. placeHolder_700,
  7633. placeHolder_701,
  7634. placeHolder_702,
  7635. placeHolder_703,
  7636. placeHolder_704,
  7637. placeHolder_705,
  7638. placeHolder_706,
  7639. placeHolder_707,
  7640. placeHolder_708,
  7641. placeHolder_709,
  7642. placeHolder_710,
  7643. placeHolder_711,
  7644. placeHolder_712,
  7645. placeHolder_713,
  7646. placeHolder_714,
  7647. placeHolder_715,
  7648. placeHolder_716,
  7649. placeHolder_717,
  7650. placeHolder_718,
  7651. placeHolder_719,
  7652. placeHolder_720,
  7653. placeHolder_721,
  7654. placeHolder_722,
  7655. placeHolder_723,
  7656. placeHolder_724,
  7657. placeHolder_725,
  7658. placeHolder_726,
  7659. placeHolder_727,
  7660. placeHolder_728,
  7661. placeHolder_729,
  7662. placeHolder_730,
  7663. placeHolder_731,
  7664. placeHolder_732,
  7665. placeHolder_733,
  7666. placeHolder_734,
  7667. placeHolder_735,
  7668. placeHolder_736,
  7669. placeHolder_737,
  7670. placeHolder_738,
  7671. placeHolder_739,
  7672. placeHolder_740,
  7673. placeHolder_741,
  7674. placeHolder_742,
  7675. placeHolder_743,
  7676. placeHolder_744,
  7677. placeHolder_745,
  7678. placeHolder_746,
  7679. placeHolder_747,
  7680. placeHolder_748,
  7681. placeHolder_749,
  7682. placeHolder_750,
  7683. placeHolder_751,
  7684. placeHolder_752,
  7685. placeHolder_753,
  7686. placeHolder_754,
  7687. placeHolder_755,
  7688. placeHolder_756,
  7689. placeHolder_757,
  7690. placeHolder_758,
  7691. placeHolder_759,
  7692. placeHolder_760,
  7693. placeHolder_761,
  7694. placeHolder_762,
  7695. placeHolder_763,
  7696. placeHolder_764,
  7697. placeHolder_765,
  7698. placeHolder_766,
  7699. placeHolder_767,
  7700. placeHolder_768,
  7701. placeHolder_769,
  7702. placeHolder_770,
  7703. placeHolder_771,
  7704. placeHolder_772,
  7705. placeHolder_773,
  7706. placeHolder_774,
  7707. placeHolder_775,
  7708. placeHolder_776,
  7709. placeHolder_777,
  7710. placeHolder_778,
  7711. placeHolder_779,
  7712. placeHolder_780,
  7713. placeHolder_781,
  7714. placeHolder_782,
  7715. placeHolder_783,
  7716. placeHolder_784,
  7717. placeHolder_785,
  7718. placeHolder_786,
  7719. placeHolder_787,
  7720. placeHolder_788,
  7721. placeHolder_789,
  7722. placeHolder_790,
  7723. placeHolder_791,
  7724. placeHolder_792,
  7725. placeHolder_793,
  7726. placeHolder_794,
  7727. placeHolder_795,
  7728. placeHolder_796,
  7729. placeHolder_797,
  7730. placeHolder_798,
  7731. placeHolder_799,
  7732. placeHolder_800,
  7733. placeHolder_801,
  7734. placeHolder_802,
  7735. placeHolder_803,
  7736. placeHolder_804,
  7737. placeHolder_805,
  7738. placeHolder_806,
  7739. placeHolder_807,
  7740. placeHolder_808,
  7741. placeHolder_809,
  7742. placeHolder_810,
  7743. placeHolder_811,
  7744. placeHolder_812,
  7745. placeHolder_813,
  7746. placeHolder_814,
  7747. placeHolder_815,
  7748. placeHolder_816,
  7749. placeHolder_817,
  7750. placeHolder_818,
  7751. placeHolder_819,
  7752. placeHolder_820,
  7753. placeHolder_821,
  7754. placeHolder_822,
  7755. placeHolder_823,
  7756. placeHolder_824,
  7757. placeHolder_825,
  7758. placeHolder_826,
  7759. placeHolder_827,
  7760. placeHolder_828,
  7761. placeHolder_829,
  7762. placeHolder_830,
  7763. placeHolder_831,
  7764. placeHolder_832,
  7765. placeHolder_833,
  7766. placeHolder_834,
  7767. placeHolder_835,
  7768. placeHolder_836,
  7769. placeHolder_837,
  7770. placeHolder_838,
  7771. placeHolder_839,
  7772. placeHolder_840,
  7773. placeHolder_841,
  7774. placeHolder_842,
  7775. placeHolder_843,
  7776. placeHolder_844,
  7777. placeHolder_845,
  7778. placeHolder_846,
  7779. placeHolder_847,
  7780. placeHolder_848,
  7781. placeHolder_849,
  7782. placeHolder_850,
  7783. placeHolder_851,
  7784. placeHolder_852,
  7785. placeHolder_853,
  7786. placeHolder_854,
  7787. placeHolder_855,
  7788. placeHolder_856,
  7789. placeHolder_857,
  7790. placeHolder_858,
  7791. placeHolder_859,
  7792. placeHolder_860,
  7793. placeHolder_861,
  7794. placeHolder_862,
  7795. placeHolder_863,
  7796. placeHolder_864,
  7797. placeHolder_865,
  7798. placeHolder_866,
  7799. placeHolder_867,
  7800. placeHolder_868,
  7801. placeHolder_869,
  7802. placeHolder_870,
  7803. placeHolder_871,
  7804. placeHolder_872,
  7805. placeHolder_873,
  7806. placeHolder_874,
  7807. placeHolder_875,
  7808. placeHolder_876,
  7809. placeHolder_877,
  7810. placeHolder_878,
  7811. placeHolder_879,
  7812. placeHolder_880,
  7813. placeHolder_881,
  7814. placeHolder_882,
  7815. placeHolder_883,
  7816. placeHolder_884,
  7817. placeHolder_885,
  7818. placeHolder_886,
  7819. placeHolder_887,
  7820. placeHolder_888,
  7821. placeHolder_889,
  7822. placeHolder_890,
  7823. placeHolder_891,
  7824. placeHolder_892,
  7825. placeHolder_893,
  7826. placeHolder_894,
  7827. placeHolder_895,
  7828. placeHolder_896,
  7829. placeHolder_897,
  7830. placeHolder_898,
  7831. placeHolder_899,
  7832. placeHolder_900,
  7833. placeHolder_901,
  7834. placeHolder_902,
  7835. placeHolder_903,
  7836. placeHolder_904,
  7837. placeHolder_905,
  7838. placeHolder_906,
  7839. placeHolder_907,
  7840. placeHolder_908,
  7841. placeHolder_909,
  7842. placeHolder_910,
  7843. placeHolder_911,
  7844. placeHolder_912,
  7845. placeHolder_913,
  7846. placeHolder_914,
  7847. placeHolder_915,
  7848. placeHolder_916,
  7849. placeHolder_917,
  7850. placeHolder_918,
  7851. placeHolder_919,
  7852. placeHolder_920,
  7853. placeHolder_921,
  7854. placeHolder_922,
  7855. placeHolder_923,
  7856. placeHolder_924,
  7857. placeHolder_925,
  7858. placeHolder_926,
  7859. placeHolder_927,
  7860. placeHolder_928,
  7861. placeHolder_929,
  7862. placeHolder_930,
  7863. placeHolder_931,
  7864. placeHolder_932,
  7865. placeHolder_933,
  7866. placeHolder_934,
  7867. placeHolder_935,
  7868. placeHolder_936,
  7869. placeHolder_937,
  7870. placeHolder_938,
  7871. placeHolder_939,
  7872. placeHolder_940,
  7873. placeHolder_941,
  7874. placeHolder_942,
  7875. placeHolder_943,
  7876. placeHolder_944,
  7877. placeHolder_945,
  7878. placeHolder_946,
  7879. placeHolder_947,
  7880. placeHolder_948,
  7881. placeHolder_949,
  7882. placeHolder_950,
  7883. placeHolder_951,
  7884. placeHolder_952,
  7885. placeHolder_953,
  7886. placeHolder_954,
  7887. placeHolder_955,
  7888. placeHolder_956,
  7889. placeHolder_957,
  7890. placeHolder_958,
  7891. placeHolder_959,
  7892. placeHolder_960,
  7893. placeHolder_961,
  7894. placeHolder_962,
  7895. placeHolder_963,
  7896. placeHolder_964,
  7897. placeHolder_965,
  7898. placeHolder_966,
  7899. placeHolder_967,
  7900. placeHolder_968,
  7901. placeHolder_969,
  7902. placeHolder_970,
  7903. placeHolder_971,
  7904. placeHolder_972,
  7905. placeHolder_973,
  7906. placeHolder_974,
  7907. placeHolder_975,
  7908. placeHolder_976,
  7909. placeHolder_977,
  7910. placeHolder_978,
  7911. placeHolder_979,
  7912. placeHolder_980,
  7913. placeHolder_981,
  7914. placeHolder_982,
  7915. placeHolder_983,
  7916. placeHolder_984,
  7917. placeHolder_985,
  7918. placeHolder_986,
  7919. placeHolder_987,
  7920. placeHolder_988,
  7921. placeHolder_989,
  7922. placeHolder_990,
  7923. placeHolder_991,
  7924. placeHolder_992,
  7925. placeHolder_993,
  7926. placeHolder_994,
  7927. placeHolder_995,
  7928. placeHolder_996,
  7929. placeHolder_997,
  7930. placeHolder_998,
  7931. Unregistered,
  7932. }
  7933. enum PatientGenderEnum {
  7934. NotFilled,
  7935. Male,
  7936. Female,
  7937. }
  7938. enum AnimalGenderEnum {
  7939. AnimalInfoNotFilled,
  7940. AnimalInfoMale,
  7941. AnimalInfoFemale,
  7942. }
  7943. enum RegionGradeEnum {
  7944. Country,
  7945. Province,
  7946. City,
  7947. Area,
  7948. }
  7949. enum RelevanceTypeEnum {
  7950. Course,
  7951. }
  7952. enum RemedicalAIDiagnosisStatusEnum {
  7953. Null,
  7954. NoObviousLesion,
  7955. Benign,
  7956. Malignant,
  7957. BenignAndMalignant,
  7958. }
  7959. enum RemedicalApparatusTypeEnum {
  7960. BreastOuterUpper,
  7961. BreastInnerUpper,
  7962. BreastOuterLower,
  7963. BreastInnerLower,
  7964. Lobe,
  7965. LobeOfUnder,
  7966. LobeOfInter,
  7967. Thyroid,
  7968. Abdomen,
  7969. }
  7970. enum RemedicalImageLocationTypeEnum {
  7971. BreastImageLocation,
  7972. LiverImageLocation,
  7973. ThyroidImageLocation,
  7974. PositionImageLocation,
  7975. }
  7976. enum RemedicalImagePositionTypeEnum {
  7977. None,
  7978. Left,
  7979. Right,
  7980. Middle,
  7981. }
  7982. enum ReportTemplateQueryTypeEnum {
  7983. All,
  7984. Personal,
  7985. Organization,
  7986. }
  7987. enum SyncTypeEnum {
  7988. Initiate,
  7989. Accept,
  7990. Reject,
  7991. CancelInitiate,
  7992. HeartRateJoin,
  7993. NetworkErr,
  7994. HeartRateLeave,
  7995. Leave,
  7996. Close,
  7997. ChangeMuteState,
  7998. ChangeVideoOpenState,
  7999. InviteIn,
  8000. CancelInviteIn,
  8001. AcceptIn,
  8002. RejectIn,
  8003. ChangeConsultationStatus,
  8004. Agree,
  8005. Notification,
  8006. EmergencyAccept,
  8007. ChangeControllingParameter,
  8008. SendInteractiveBoardData,
  8009. ChangeRoom,
  8010. SaveViewer,
  8011. DeleteViewer,
  8012. }
  8013. enum SyncServiceEnum {
  8014. Live,
  8015. LiveConsultation,
  8016. Notification,
  8017. }
  8018. enum WSConnectTypeEnum {
  8019. Default,
  8020. ConsultationSecondWindow,
  8021. EducationSecondWindow,
  8022. }
  8023. enum ASETypeEnum {
  8024. Off,
  8025. Max,
  8026. Mean,
  8027. Both,
  8028. }
  8029. enum StraightLineShapeEnum {
  8030. StraightLine,
  8031. HalfCircle,
  8032. AutoPWVSlope,
  8033. }
  8034. enum DefinitionMeasureItemsEnum {
  8035. Default,
  8036. UserDefined,
  8037. }
  8038. enum DefinitionPriorityEnum {
  8039. Notset,
  8040. Root,
  8041. Global,
  8042. GlobalCategory,
  8043. GlobalApp,
  8044. FactoryDefault,
  8045. OemDefault,
  8046. UserDefined,
  8047. }
  8048. enum MeasureTypeUnitEnum {
  8049. None,
  8050. AreaUnit,
  8051. VelocityUnit,
  8052. TimeUnit,
  8053. }
  8054. enum UnExecuteAction {
  8055. None,
  8056. OneStep,
  8057. AllSteps,
  8058. GeometryOnly,
  8059. }
  8060. class PriorityPair {
  8061. DefinitionPriorityEnum target;
  8062. DefinitionPriorityEnum? base;
  8063. PriorityPair({
  8064. this.target = DefinitionPriorityEnum.Notset,
  8065. this.base,
  8066. });
  8067. factory PriorityPair.fromJson(Map<String, dynamic> map) {
  8068. return PriorityPair(
  8069. target: DefinitionPriorityEnum.values.firstWhere((e) => e.index == map['Target']),
  8070. base: map['Base'] != null ? DefinitionPriorityEnum.values.firstWhere((e) => e.index == map['Base']) : null,
  8071. );
  8072. }
  8073. Map<String, dynamic> toJson() {
  8074. final map = Map<String, dynamic>();
  8075. map['Target'] = target.index;
  8076. if(base != null)
  8077. map['Base'] = base;
  8078. return map;
  8079. }
  8080. }
  8081. class DefinitionPriorityEnumExtension {
  8082. DefinitionPriorityEnumExtension();
  8083. factory DefinitionPriorityEnumExtension.fromJson(Map<String, dynamic> map) {
  8084. return DefinitionPriorityEnumExtension(
  8085. );
  8086. }
  8087. Map<String, dynamic> toJson() {
  8088. final map = Map<String, dynamic>();
  8089. return map;
  8090. }
  8091. }
  8092. enum TracePeakType {
  8093. Normal,
  8094. OnePeak,
  8095. TwoPeaks,
  8096. }
  8097. enum LineWeightType {
  8098. NormalWeight,
  8099. Thin,
  8100. }
  8101. enum IMTType {
  8102. placeHolder_0,
  8103. Post,
  8104. Ant,
  8105. Both,
  8106. }
  8107. enum MeasureSectionType {
  8108. None,
  8109. Root,
  8110. Application,
  8111. MeasureMode,
  8112. Group,
  8113. Folder,
  8114. Item,
  8115. Calculator,
  8116. OutPut,
  8117. Formular,
  8118. Processor,
  8119. TypeParams,
  8120. }
  8121. enum ModeTypeEnum {
  8122. Undefined,
  8123. Tissue,
  8124. Flow,
  8125. Doppler,
  8126. TissueTM,
  8127. }
  8128. enum ResourceDefPriorityEnum {
  8129. Root,
  8130. placeHolder_1,
  8131. placeHolder_2,
  8132. placeHolder_3,
  8133. placeHolder_4,
  8134. placeHolder_5,
  8135. placeHolder_6,
  8136. placeHolder_7,
  8137. placeHolder_8,
  8138. placeHolder_9,
  8139. placeHolder_10,
  8140. placeHolder_11,
  8141. placeHolder_12,
  8142. placeHolder_13,
  8143. placeHolder_14,
  8144. placeHolder_15,
  8145. placeHolder_16,
  8146. placeHolder_17,
  8147. placeHolder_18,
  8148. placeHolder_19,
  8149. placeHolder_20,
  8150. placeHolder_21,
  8151. placeHolder_22,
  8152. placeHolder_23,
  8153. placeHolder_24,
  8154. placeHolder_25,
  8155. placeHolder_26,
  8156. placeHolder_27,
  8157. placeHolder_28,
  8158. placeHolder_29,
  8159. placeHolder_30,
  8160. placeHolder_31,
  8161. placeHolder_32,
  8162. placeHolder_33,
  8163. placeHolder_34,
  8164. placeHolder_35,
  8165. placeHolder_36,
  8166. placeHolder_37,
  8167. placeHolder_38,
  8168. placeHolder_39,
  8169. FactoryDefault,
  8170. placeHolder_41,
  8171. placeHolder_42,
  8172. placeHolder_43,
  8173. placeHolder_44,
  8174. PackageDefault,
  8175. placeHolder_46,
  8176. placeHolder_47,
  8177. placeHolder_48,
  8178. placeHolder_49,
  8179. OemDefault,
  8180. placeHolder_51,
  8181. placeHolder_52,
  8182. placeHolder_53,
  8183. placeHolder_54,
  8184. placeHolder_55,
  8185. placeHolder_56,
  8186. placeHolder_57,
  8187. placeHolder_58,
  8188. placeHolder_59,
  8189. UserDefined,
  8190. }
  8191. enum Unit {
  8192. None,
  8193. percent,
  8194. fraction,
  8195. placeHolder_3,
  8196. placeHolder_4,
  8197. placeHolder_5,
  8198. placeHolder_6,
  8199. placeHolder_7,
  8200. placeHolder_8,
  8201. placeHolder_9,
  8202. cm,
  8203. mm,
  8204. inch,
  8205. ft,
  8206. placeHolder_14,
  8207. placeHolder_15,
  8208. placeHolder_16,
  8209. placeHolder_17,
  8210. placeHolder_18,
  8211. placeHolder_19,
  8212. s,
  8213. minute,
  8214. hour,
  8215. day,
  8216. week,
  8217. week_day,
  8218. Tick,
  8219. msec,
  8220. placeHolder_28,
  8221. placeHolder_29,
  8222. degree,
  8223. radian,
  8224. placeHolder_32,
  8225. placeHolder_33,
  8226. placeHolder_34,
  8227. placeHolder_35,
  8228. placeHolder_36,
  8229. placeHolder_37,
  8230. placeHolder_38,
  8231. placeHolder_39,
  8232. g,
  8233. mg,
  8234. ng,
  8235. kg,
  8236. oz,
  8237. lb,
  8238. lb_oz,
  8239. placeHolder_47,
  8240. placeHolder_48,
  8241. placeHolder_49,
  8242. cm2,
  8243. mm2,
  8244. m2,
  8245. placeHolder_53,
  8246. placeHolder_54,
  8247. placeHolder_55,
  8248. placeHolder_56,
  8249. placeHolder_57,
  8250. placeHolder_58,
  8251. placeHolder_59,
  8252. cm3,
  8253. mm3,
  8254. ml,
  8255. L,
  8256. placeHolder_64,
  8257. placeHolder_65,
  8258. placeHolder_66,
  8259. placeHolder_67,
  8260. placeHolder_68,
  8261. placeHolder_69,
  8262. cms,
  8263. mms,
  8264. ms,
  8265. placeHolder_73,
  8266. placeHolder_74,
  8267. placeHolder_75,
  8268. placeHolder_76,
  8269. placeHolder_77,
  8270. placeHolder_78,
  8271. placeHolder_79,
  8272. cms2,
  8273. mms2,
  8274. placeHolder_82,
  8275. placeHolder_83,
  8276. placeHolder_84,
  8277. placeHolder_85,
  8278. placeHolder_86,
  8279. placeHolder_87,
  8280. placeHolder_88,
  8281. placeHolder_89,
  8282. cm3s,
  8283. mls,
  8284. mlmin,
  8285. Lmin,
  8286. placeHolder_94,
  8287. placeHolder_95,
  8288. placeHolder_96,
  8289. placeHolder_97,
  8290. placeHolder_98,
  8291. placeHolder_99,
  8292. gcm3,
  8293. gml,
  8294. ngml,
  8295. placeHolder_103,
  8296. placeHolder_104,
  8297. placeHolder_105,
  8298. placeHolder_106,
  8299. placeHolder_107,
  8300. placeHolder_108,
  8301. placeHolder_109,
  8302. mmHg,
  8303. placeHolder_111,
  8304. placeHolder_112,
  8305. placeHolder_113,
  8306. placeHolder_114,
  8307. placeHolder_115,
  8308. placeHolder_116,
  8309. placeHolder_117,
  8310. placeHolder_118,
  8311. placeHolder_119,
  8312. mV,
  8313. placeHolder_121,
  8314. placeHolder_122,
  8315. placeHolder_123,
  8316. placeHolder_124,
  8317. placeHolder_125,
  8318. placeHolder_126,
  8319. placeHolder_127,
  8320. placeHolder_128,
  8321. placeHolder_129,
  8322. Hz,
  8323. KHz,
  8324. HR,
  8325. placeHolder_133,
  8326. placeHolder_134,
  8327. placeHolder_135,
  8328. placeHolder_136,
  8329. placeHolder_137,
  8330. placeHolder_138,
  8331. placeHolder_139,
  8332. cm3m2,
  8333. mlm2,
  8334. placeHolder_142,
  8335. placeHolder_143,
  8336. placeHolder_144,
  8337. placeHolder_145,
  8338. placeHolder_146,
  8339. placeHolder_147,
  8340. placeHolder_148,
  8341. placeHolder_149,
  8342. cm3sm2,
  8343. mlsm2,
  8344. placeHolder_152,
  8345. cm3minm2,
  8346. mlminm2,
  8347. Lminm2,
  8348. placeHolder_156,
  8349. placeHolder_157,
  8350. placeHolder_158,
  8351. placeHolder_159,
  8352. circs,
  8353. placeHolder_161,
  8354. placeHolder_162,
  8355. placeHolder_163,
  8356. placeHolder_164,
  8357. placeHolder_165,
  8358. placeHolder_166,
  8359. placeHolder_167,
  8360. placeHolder_168,
  8361. placeHolder_169,
  8362. mlbeat,
  8363. placeHolder_171,
  8364. placeHolder_172,
  8365. placeHolder_173,
  8366. placeHolder_174,
  8367. placeHolder_175,
  8368. placeHolder_176,
  8369. placeHolder_177,
  8370. placeHolder_178,
  8371. placeHolder_179,
  8372. mm2pa,
  8373. d1mpa,
  8374. kpa,
  8375. placeHolder_183,
  8376. placeHolder_184,
  8377. placeHolder_185,
  8378. placeHolder_186,
  8379. placeHolder_187,
  8380. placeHolder_188,
  8381. placeHolder_189,
  8382. mmHgs,
  8383. placeHolder_191,
  8384. placeHolder_192,
  8385. placeHolder_193,
  8386. placeHolder_194,
  8387. placeHolder_195,
  8388. placeHolder_196,
  8389. placeHolder_197,
  8390. placeHolder_198,
  8391. placeHolder_199,
  8392. gm2,
  8393. kgm2,
  8394. placeHolder_202,
  8395. placeHolder_203,
  8396. placeHolder_204,
  8397. placeHolder_205,
  8398. placeHolder_206,
  8399. placeHolder_207,
  8400. placeHolder_208,
  8401. placeHolder_209,
  8402. cm2m2,
  8403. placeHolder_211,
  8404. placeHolder_212,
  8405. placeHolder_213,
  8406. placeHolder_214,
  8407. placeHolder_215,
  8408. placeHolder_216,
  8409. placeHolder_217,
  8410. placeHolder_218,
  8411. placeHolder_219,
  8412. cmm2,
  8413. mmm2,
  8414. placeHolder_222,
  8415. placeHolder_223,
  8416. placeHolder_224,
  8417. placeHolder_225,
  8418. placeHolder_226,
  8419. placeHolder_227,
  8420. placeHolder_228,
  8421. placeHolder_229,
  8422. pers,
  8423. placeHolder_231,
  8424. placeHolder_232,
  8425. placeHolder_233,
  8426. placeHolder_234,
  8427. placeHolder_235,
  8428. placeHolder_236,
  8429. placeHolder_237,
  8430. placeHolder_238,
  8431. placeHolder_239,
  8432. placeHolder_240,
  8433. placeHolder_241,
  8434. placeHolder_242,
  8435. placeHolder_243,
  8436. placeHolder_244,
  8437. placeHolder_245,
  8438. placeHolder_246,
  8439. placeHolder_247,
  8440. placeHolder_248,
  8441. placeHolder_249,
  8442. Celsius,
  8443. Fahrenheit,
  8444. placeHolder_252,
  8445. placeHolder_253,
  8446. placeHolder_254,
  8447. placeHolder_255,
  8448. placeHolder_256,
  8449. placeHolder_257,
  8450. placeHolder_258,
  8451. placeHolder_259,
  8452. Ohm,
  8453. placeHolder_261,
  8454. placeHolder_262,
  8455. placeHolder_263,
  8456. placeHolder_264,
  8457. placeHolder_265,
  8458. placeHolder_266,
  8459. placeHolder_267,
  8460. placeHolder_268,
  8461. placeHolder_269,
  8462. mmHgml,
  8463. }
  8464. enum ArrowOrientation {
  8465. Down,
  8466. Left,
  8467. Up,
  8468. Right,
  8469. }
  8470. class UserCMSDTO {
  8471. String? cMSData;
  8472. UserCMSDTO({
  8473. this.cMSData,
  8474. });
  8475. factory UserCMSDTO.fromJson(Map<String, dynamic> map) {
  8476. return UserCMSDTO(
  8477. cMSData: map['CMSData'],
  8478. );
  8479. }
  8480. Map<String, dynamic> toJson() {
  8481. final map = Map<String, dynamic>();
  8482. if(cMSData != null)
  8483. map['CMSData'] = cMSData;
  8484. return map;
  8485. }
  8486. }
  8487. class UserPasswordDTO extends BaseDTO{
  8488. String? userCode;
  8489. String? userName;
  8490. String? secretPassword;
  8491. String? phone;
  8492. String? email;
  8493. String? nickName;
  8494. String? fullName;
  8495. String? headImageUrl;
  8496. String? organizationCode;
  8497. String? rootOrganizationCode;
  8498. List<String >? authorityGroups;
  8499. List<String >? bindDevices;
  8500. String? lastIP;
  8501. int logintimes;
  8502. UserInfoStateEnum userState;
  8503. List<String >? roleCodes;
  8504. List<String >? rankCodes;
  8505. List<String >? positionCodes;
  8506. ApplyStateEnum applyState;
  8507. List<String >? fieldList;
  8508. List<String >? deletePatientCodes;
  8509. bool isBatchExportDiagnoseData;
  8510. String? bindAssistantUserCode;
  8511. String? bindAssistantDoctorUserCode;
  8512. DateTime? passwordUpdateTime;
  8513. List<String >? passwordRecords;
  8514. String? signature;
  8515. String? language;
  8516. bool enableReportLabel;
  8517. UserPasswordDTO({
  8518. this.userCode,
  8519. this.userName,
  8520. this.secretPassword,
  8521. this.phone,
  8522. this.email,
  8523. this.nickName,
  8524. this.fullName,
  8525. this.headImageUrl,
  8526. this.organizationCode,
  8527. this.rootOrganizationCode,
  8528. this.authorityGroups,
  8529. this.bindDevices,
  8530. this.lastIP,
  8531. this.logintimes = 0,
  8532. this.userState = UserInfoStateEnum.Nonactivated,
  8533. this.roleCodes,
  8534. this.rankCodes,
  8535. this.positionCodes,
  8536. this.applyState = ApplyStateEnum.NotApply,
  8537. this.fieldList,
  8538. this.deletePatientCodes,
  8539. this.isBatchExportDiagnoseData = false,
  8540. this.bindAssistantUserCode,
  8541. this.bindAssistantDoctorUserCode,
  8542. this.passwordUpdateTime,
  8543. this.passwordRecords,
  8544. this.signature,
  8545. this.language,
  8546. this.enableReportLabel = false,
  8547. DateTime? createTime,
  8548. DateTime? updateTime,
  8549. }) : super(
  8550. createTime: createTime,
  8551. updateTime: updateTime,
  8552. );
  8553. factory UserPasswordDTO.fromJson(Map<String, dynamic> map) {
  8554. return UserPasswordDTO(
  8555. userCode: map['UserCode'],
  8556. userName: map['UserName'],
  8557. secretPassword: map['SecretPassword'],
  8558. phone: map['Phone'],
  8559. email: map['Email'],
  8560. nickName: map['NickName'],
  8561. fullName: map['FullName'],
  8562. headImageUrl: map['HeadImageUrl'],
  8563. organizationCode: map['OrganizationCode'],
  8564. rootOrganizationCode: map['RootOrganizationCode'],
  8565. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  8566. bindDevices: map['BindDevices'] != null ? map['BindDevices'].cast<String>().toList() : null,
  8567. lastIP: map['LastIP'],
  8568. logintimes: map['Logintimes'],
  8569. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  8570. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  8571. rankCodes: map['RankCodes'] != null ? map['RankCodes'].cast<String>().toList() : null,
  8572. positionCodes: map['PositionCodes'] != null ? map['PositionCodes'].cast<String>().toList() : null,
  8573. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  8574. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  8575. deletePatientCodes: map['DeletePatientCodes'] != null ? map['DeletePatientCodes'].cast<String>().toList() : null,
  8576. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  8577. bindAssistantUserCode: map['BindAssistantUserCode'],
  8578. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  8579. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  8580. passwordRecords: map['PasswordRecords'] != null ? map['PasswordRecords'].cast<String>().toList() : null,
  8581. signature: map['Signature'],
  8582. language: map['Language'],
  8583. enableReportLabel: map['EnableReportLabel'],
  8584. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  8585. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  8586. );
  8587. }
  8588. Map<String, dynamic> toJson() {
  8589. final map = super.toJson();
  8590. if(userCode != null)
  8591. map['UserCode'] = userCode;
  8592. if(userName != null)
  8593. map['UserName'] = userName;
  8594. if(secretPassword != null)
  8595. map['SecretPassword'] = secretPassword;
  8596. if(phone != null)
  8597. map['Phone'] = phone;
  8598. if(email != null)
  8599. map['Email'] = email;
  8600. if(nickName != null)
  8601. map['NickName'] = nickName;
  8602. if(fullName != null)
  8603. map['FullName'] = fullName;
  8604. if(headImageUrl != null)
  8605. map['HeadImageUrl'] = headImageUrl;
  8606. if(organizationCode != null)
  8607. map['OrganizationCode'] = organizationCode;
  8608. if(rootOrganizationCode != null)
  8609. map['RootOrganizationCode'] = rootOrganizationCode;
  8610. if(authorityGroups != null)
  8611. map['AuthorityGroups'] = authorityGroups;
  8612. if(bindDevices != null)
  8613. map['BindDevices'] = bindDevices;
  8614. if(lastIP != null)
  8615. map['LastIP'] = lastIP;
  8616. map['Logintimes'] = logintimes;
  8617. map['UserState'] = userState.index;
  8618. if(roleCodes != null)
  8619. map['RoleCodes'] = roleCodes;
  8620. if(rankCodes != null)
  8621. map['RankCodes'] = rankCodes;
  8622. if(positionCodes != null)
  8623. map['PositionCodes'] = positionCodes;
  8624. map['ApplyState'] = applyState.index;
  8625. if(fieldList != null)
  8626. map['FieldList'] = fieldList;
  8627. if(deletePatientCodes != null)
  8628. map['DeletePatientCodes'] = deletePatientCodes;
  8629. map['IsBatchExportDiagnoseData'] = isBatchExportDiagnoseData;
  8630. if(bindAssistantUserCode != null)
  8631. map['BindAssistantUserCode'] = bindAssistantUserCode;
  8632. if(bindAssistantDoctorUserCode != null)
  8633. map['BindAssistantDoctorUserCode'] = bindAssistantDoctorUserCode;
  8634. if(passwordUpdateTime != null)
  8635. map['PasswordUpdateTime'] = JsonRpcUtils.dateFormat(passwordUpdateTime!);
  8636. if(passwordRecords != null)
  8637. map['PasswordRecords'] = passwordRecords;
  8638. if(signature != null)
  8639. map['Signature'] = signature;
  8640. if(language != null)
  8641. map['Language'] = language;
  8642. map['EnableReportLabel'] = enableReportLabel;
  8643. return map;
  8644. }
  8645. }
  8646. class UserTokenDTO {
  8647. String? token;
  8648. bool passwordExpired;
  8649. UserTokenDTO({
  8650. this.token,
  8651. this.passwordExpired = false,
  8652. });
  8653. factory UserTokenDTO.fromJson(Map<String, dynamic> map) {
  8654. return UserTokenDTO(
  8655. token: map['Token'],
  8656. passwordExpired: map['PasswordExpired'],
  8657. );
  8658. }
  8659. Map<String, dynamic> toJson() {
  8660. final map = Map<String, dynamic>();
  8661. if(token != null)
  8662. map['Token'] = token;
  8663. map['PasswordExpired'] = passwordExpired;
  8664. return map;
  8665. }
  8666. }
  8667. class BaseFeatureItemBaseDTO<T> {
  8668. String? id;
  8669. String? label;
  8670. String? fatherCode;
  8671. String? uniqueCode;
  8672. List<T>? children;
  8673. BaseFeatureItemBaseDTO({
  8674. this.id,
  8675. this.label,
  8676. this.fatherCode,
  8677. this.uniqueCode,
  8678. this.children,
  8679. });
  8680. factory BaseFeatureItemBaseDTO.fromJson(Map<String, dynamic> map) {
  8681. List<T> childrenList = [];
  8682. if (map['Children'] != null) {
  8683. childrenList.addAll(
  8684. (map['Children'] as List).map((e) => FJsonConvert.fromJson<T>(e)!));
  8685. }
  8686. return BaseFeatureItemBaseDTO(
  8687. id: map['Id'],
  8688. label: map['Label'],
  8689. fatherCode: map['FatherCode'],
  8690. uniqueCode: map['UniqueCode'],
  8691. children: childrenList,
  8692. );
  8693. }
  8694. Map<String, dynamic> toJson() {
  8695. final map = Map<String, dynamic>();
  8696. if(id != null)
  8697. map['Id'] = id;
  8698. if(label != null)
  8699. map['Label'] = label;
  8700. if(fatherCode != null)
  8701. map['FatherCode'] = fatherCode;
  8702. if(uniqueCode != null)
  8703. map['UniqueCode'] = uniqueCode;
  8704. if(children != null)
  8705. map['Children'] = children;
  8706. return map;
  8707. }
  8708. }
  8709. class UserFeatureItemDTO extends BaseFeatureItemBaseDTO<UserFeatureItemDTO>{
  8710. UserFeatureItemDTO(
  8711. );
  8712. factory UserFeatureItemDTO.fromJson(Map<String, dynamic> map) {
  8713. return UserFeatureItemDTO(
  8714. );
  8715. }
  8716. Map<String, dynamic> toJson() {
  8717. final map = super.toJson();
  8718. return map;
  8719. }
  8720. }
  8721. class UserAuthorityGroupDTO extends BaseDTO{
  8722. String? userGroupCode;
  8723. String? description;
  8724. List<String >? adminCodes;
  8725. List<String >? features;
  8726. String? createAdmin;
  8727. UserAuthorityGroupDTO({
  8728. this.userGroupCode,
  8729. this.description,
  8730. this.adminCodes,
  8731. this.features,
  8732. this.createAdmin,
  8733. DateTime? createTime,
  8734. DateTime? updateTime,
  8735. }) : super(
  8736. createTime: createTime,
  8737. updateTime: updateTime,
  8738. );
  8739. factory UserAuthorityGroupDTO.fromJson(Map<String, dynamic> map) {
  8740. return UserAuthorityGroupDTO(
  8741. userGroupCode: map['UserGroupCode'],
  8742. description: map['Description'],
  8743. adminCodes: map['AdminCodes'] != null ? map['AdminCodes'].cast<String>().toList() : null,
  8744. features: map['Features'] != null ? map['Features'].cast<String>().toList() : null,
  8745. createAdmin: map['CreateAdmin'],
  8746. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  8747. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  8748. );
  8749. }
  8750. Map<String, dynamic> toJson() {
  8751. final map = super.toJson();
  8752. if(userGroupCode != null)
  8753. map['UserGroupCode'] = userGroupCode;
  8754. if(description != null)
  8755. map['Description'] = description;
  8756. if(adminCodes != null)
  8757. map['AdminCodes'] = adminCodes;
  8758. if(features != null)
  8759. map['Features'] = features;
  8760. if(createAdmin != null)
  8761. map['CreateAdmin'] = createAdmin;
  8762. return map;
  8763. }
  8764. }
  8765. class StorageInfoDTO extends BaseDTO{
  8766. String? token;
  8767. String? fileName;
  8768. String? storageRoute;
  8769. StorageInfoDTO({
  8770. this.token,
  8771. this.fileName,
  8772. this.storageRoute,
  8773. DateTime? createTime,
  8774. DateTime? updateTime,
  8775. }) : super(
  8776. createTime: createTime,
  8777. updateTime: updateTime,
  8778. );
  8779. factory StorageInfoDTO.fromJson(Map<String, dynamic> map) {
  8780. return StorageInfoDTO(
  8781. token: map['Token'],
  8782. fileName: map['FileName'],
  8783. storageRoute: map['StorageRoute'],
  8784. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  8785. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  8786. );
  8787. }
  8788. Map<String, dynamic> toJson() {
  8789. final map = super.toJson();
  8790. if(token != null)
  8791. map['Token'] = token;
  8792. if(fileName != null)
  8793. map['FileName'] = fileName;
  8794. if(storageRoute != null)
  8795. map['StorageRoute'] = storageRoute;
  8796. return map;
  8797. }
  8798. }
  8799. class StatisticDTO extends BaseDTO{
  8800. String? statisticCode;
  8801. String? name;
  8802. String? description;
  8803. String? intervalSetting;
  8804. bool enabled;
  8805. String? handleClass;
  8806. String? serverHost;
  8807. StatisticDTO({
  8808. this.statisticCode,
  8809. this.name,
  8810. this.description,
  8811. this.intervalSetting,
  8812. this.enabled = false,
  8813. this.handleClass,
  8814. this.serverHost,
  8815. DateTime? createTime,
  8816. DateTime? updateTime,
  8817. }) : super(
  8818. createTime: createTime,
  8819. updateTime: updateTime,
  8820. );
  8821. factory StatisticDTO.fromJson(Map<String, dynamic> map) {
  8822. return StatisticDTO(
  8823. statisticCode: map['StatisticCode'],
  8824. name: map['Name'],
  8825. description: map['Description'],
  8826. intervalSetting: map['IntervalSetting'],
  8827. enabled: map['Enabled'],
  8828. handleClass: map['HandleClass'],
  8829. serverHost: map['ServerHost'],
  8830. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  8831. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  8832. );
  8833. }
  8834. Map<String, dynamic> toJson() {
  8835. final map = super.toJson();
  8836. if(statisticCode != null)
  8837. map['StatisticCode'] = statisticCode;
  8838. if(name != null)
  8839. map['Name'] = name;
  8840. if(description != null)
  8841. map['Description'] = description;
  8842. if(intervalSetting != null)
  8843. map['IntervalSetting'] = intervalSetting;
  8844. map['Enabled'] = enabled;
  8845. if(handleClass != null)
  8846. map['HandleClass'] = handleClass;
  8847. if(serverHost != null)
  8848. map['ServerHost'] = serverHost;
  8849. return map;
  8850. }
  8851. }
  8852. class StatisticInfoDTO {
  8853. List<String >? xAxisDatas;
  8854. List<List<double> >? yAxisDatas;
  8855. List<StatisticInfoDTO >? children;
  8856. StatisticInfoDTO({
  8857. this.xAxisDatas,
  8858. this.yAxisDatas,
  8859. this.children,
  8860. });
  8861. factory StatisticInfoDTO.fromJson(Map<String, dynamic> map) {
  8862. return StatisticInfoDTO(
  8863. xAxisDatas: map['XAxisDatas'] != null ? map['XAxisDatas'].cast<String>().toList() : null,
  8864. yAxisDatas: map['YAxisDatas'] != null ? map['YAxisDatas'].cast<List<double>>().toList() : null,
  8865. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8866. );
  8867. }
  8868. Map<String, dynamic> toJson() {
  8869. final map = Map<String, dynamic>();
  8870. if(xAxisDatas != null)
  8871. map['XAxisDatas'] = xAxisDatas;
  8872. if(yAxisDatas != null)
  8873. map['YAxisDatas'] = yAxisDatas;
  8874. if(children != null)
  8875. map['Children'] = children;
  8876. return map;
  8877. }
  8878. }
  8879. class StatisticRecordDTO extends BaseDTO{
  8880. String? statisticRecordCode;
  8881. String? statisticCode;
  8882. String? statisticName;
  8883. String? userCode;
  8884. DateTime? lastestUpdateTime;
  8885. DateTime? nextHandleTime;
  8886. List<String >? xAxisDatas;
  8887. List<List<double> >? yAxisDatas;
  8888. List<StatisticInfoDTO >? children;
  8889. StatisticRecordDTO({
  8890. this.statisticRecordCode,
  8891. this.statisticCode,
  8892. this.statisticName,
  8893. this.userCode,
  8894. this.lastestUpdateTime,
  8895. this.nextHandleTime,
  8896. this.xAxisDatas,
  8897. this.yAxisDatas,
  8898. this.children,
  8899. DateTime? createTime,
  8900. DateTime? updateTime,
  8901. }) : super(
  8902. createTime: createTime,
  8903. updateTime: updateTime,
  8904. );
  8905. factory StatisticRecordDTO.fromJson(Map<String, dynamic> map) {
  8906. return StatisticRecordDTO(
  8907. statisticRecordCode: map['StatisticRecordCode'],
  8908. statisticCode: map['StatisticCode'],
  8909. statisticName: map['StatisticName'],
  8910. userCode: map['UserCode'],
  8911. lastestUpdateTime: map['LastestUpdateTime'] != null ? DateTime.parse(map['LastestUpdateTime']) : null,
  8912. nextHandleTime: map['NextHandleTime'] != null ? DateTime.parse(map['NextHandleTime']) : null,
  8913. xAxisDatas: map['XAxisDatas'] != null ? map['XAxisDatas'].cast<String>().toList() : null,
  8914. yAxisDatas: map['YAxisDatas'] != null ? map['YAxisDatas'].cast<List<double>>().toList() : null,
  8915. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8916. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  8917. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  8918. );
  8919. }
  8920. Map<String, dynamic> toJson() {
  8921. final map = super.toJson();
  8922. if(statisticRecordCode != null)
  8923. map['StatisticRecordCode'] = statisticRecordCode;
  8924. if(statisticCode != null)
  8925. map['StatisticCode'] = statisticCode;
  8926. if(statisticName != null)
  8927. map['StatisticName'] = statisticName;
  8928. if(userCode != null)
  8929. map['UserCode'] = userCode;
  8930. if(lastestUpdateTime != null)
  8931. map['LastestUpdateTime'] = JsonRpcUtils.dateFormat(lastestUpdateTime!);
  8932. if(nextHandleTime != null)
  8933. map['NextHandleTime'] = JsonRpcUtils.dateFormat(nextHandleTime!);
  8934. if(xAxisDatas != null)
  8935. map['XAxisDatas'] = xAxisDatas;
  8936. if(yAxisDatas != null)
  8937. map['YAxisDatas'] = yAxisDatas;
  8938. if(children != null)
  8939. map['Children'] = children;
  8940. return map;
  8941. }
  8942. }
  8943. class ServerListResult extends BaseServerResult{
  8944. bool isDistributed;
  8945. List<ServerInfoDTO >? serverList;
  8946. ServerListResult({
  8947. this.isDistributed = false,
  8948. this.serverList,
  8949. int code = 0,
  8950. }) : super(
  8951. code: code,
  8952. );
  8953. factory ServerListResult.fromJson(Map<String, dynamic> map) {
  8954. return ServerListResult(
  8955. isDistributed: map['IsDistributed'],
  8956. serverList: map['ServerList'] != null ? (map['ServerList'] as List).map((e)=>ServerInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8957. code: map['Code'],
  8958. );
  8959. }
  8960. Map<String, dynamic> toJson() {
  8961. final map = super.toJson();
  8962. map['IsDistributed'] = isDistributed;
  8963. if(serverList != null)
  8964. map['ServerList'] = serverList;
  8965. return map;
  8966. }
  8967. }
  8968. class LoginSuccessResult extends BaseServerResult{
  8969. LoginSuccessResult({
  8970. int code = 0,
  8971. }) : super(
  8972. code: code,
  8973. );
  8974. factory LoginSuccessResult.fromJson(Map<String, dynamic> map) {
  8975. return LoginSuccessResult(
  8976. code: map['Code'],
  8977. );
  8978. }
  8979. Map<String, dynamic> toJson() {
  8980. final map = super.toJson();
  8981. return map;
  8982. }
  8983. }
  8984. class ScheduleDTO extends ClientScheduleDTO{
  8985. List<String >? userCodes;
  8986. String? code;
  8987. ScheduleDTO({
  8988. this.userCodes,
  8989. this.code,
  8990. String? title,
  8991. TransactionStatusEnum status = TransactionStatusEnum.Applied,
  8992. ScheduleTypeEnum scheduleType = ScheduleTypeEnum.Consultation,
  8993. DateTime? startTime,
  8994. DateTime? endTime,
  8995. String? relevanceCode,
  8996. }) : super(
  8997. title: title,
  8998. status: status,
  8999. scheduleType: scheduleType,
  9000. startTime: startTime,
  9001. endTime: endTime,
  9002. relevanceCode: relevanceCode,
  9003. );
  9004. factory ScheduleDTO.fromJson(Map<String, dynamic> map) {
  9005. return ScheduleDTO(
  9006. userCodes: map['UserCodes'] != null ? map['UserCodes'].cast<String>().toList() : null,
  9007. code: map['Code'],
  9008. title: map['Title'],
  9009. status: TransactionStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  9010. scheduleType: ScheduleTypeEnum.values.firstWhere((e) => e.index == map['ScheduleType']),
  9011. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  9012. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  9013. relevanceCode: map['RelevanceCode'],
  9014. );
  9015. }
  9016. Map<String, dynamic> toJson() {
  9017. final map = super.toJson();
  9018. if(userCodes != null)
  9019. map['UserCodes'] = userCodes;
  9020. if(code != null)
  9021. map['Code'] = code;
  9022. return map;
  9023. }
  9024. }
  9025. class LiveMemberDTO {
  9026. String? code;
  9027. LiveMemberEnum memberType;
  9028. String? name;
  9029. String? headImageToken;
  9030. LiveMemberStatus status;
  9031. bool muteOpened;
  9032. bool videoOpened;
  9033. LiveDataDTO? liveData;
  9034. bool isControllingParameter;
  9035. DateTime? firstJoinTime;
  9036. int sortLevel;
  9037. List<VideoDeviceInfoDTO >? videoDeviceInfos;
  9038. LoginSource loginSource;
  9039. LiveMemberDTO({
  9040. this.code,
  9041. this.memberType = LiveMemberEnum.User,
  9042. this.name,
  9043. this.headImageToken,
  9044. this.status = LiveMemberStatus.Default,
  9045. this.muteOpened = false,
  9046. this.videoOpened = false,
  9047. this.liveData,
  9048. this.isControllingParameter = false,
  9049. this.firstJoinTime,
  9050. this.sortLevel = 0,
  9051. this.videoDeviceInfos,
  9052. this.loginSource = LoginSource.PC,
  9053. });
  9054. factory LiveMemberDTO.fromJson(Map<String, dynamic> map) {
  9055. return LiveMemberDTO(
  9056. code: map['Code'],
  9057. memberType: LiveMemberEnum.values.firstWhere((e) => e.index == map['MemberType']),
  9058. name: map['Name'],
  9059. headImageToken: map['HeadImageToken'],
  9060. status: LiveMemberStatus.values.firstWhere((e) => e.index == map['Status']),
  9061. muteOpened: map['MuteOpened'],
  9062. videoOpened: map['VideoOpened'],
  9063. liveData: map['LiveData'] != null ? LiveDataDTO.fromJson(map['LiveData']) : null,
  9064. isControllingParameter: map['IsControllingParameter'],
  9065. firstJoinTime: map['FirstJoinTime'] != null ? DateTime.parse(map['FirstJoinTime']) : null,
  9066. sortLevel: map['SortLevel'],
  9067. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9068. loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
  9069. );
  9070. }
  9071. Map<String, dynamic> toJson() {
  9072. final map = Map<String, dynamic>();
  9073. if(code != null)
  9074. map['Code'] = code;
  9075. map['MemberType'] = memberType.index;
  9076. if(name != null)
  9077. map['Name'] = name;
  9078. if(headImageToken != null)
  9079. map['HeadImageToken'] = headImageToken;
  9080. map['Status'] = status.index;
  9081. map['MuteOpened'] = muteOpened;
  9082. map['VideoOpened'] = videoOpened;
  9083. if(liveData != null)
  9084. map['LiveData'] = liveData;
  9085. map['IsControllingParameter'] = isControllingParameter;
  9086. if(firstJoinTime != null)
  9087. map['FirstJoinTime'] = JsonRpcUtils.dateFormat(firstJoinTime!);
  9088. map['SortLevel'] = sortLevel;
  9089. if(videoDeviceInfos != null)
  9090. map['VideoDeviceInfos'] = videoDeviceInfos;
  9091. map['LoginSource'] = loginSource.index;
  9092. return map;
  9093. }
  9094. }
  9095. class LiveViewerDTO {
  9096. String? userCode;
  9097. String? name;
  9098. DateTime? lastReportTime;
  9099. LiveViewerDTO({
  9100. this.userCode,
  9101. this.name,
  9102. this.lastReportTime,
  9103. });
  9104. factory LiveViewerDTO.fromJson(Map<String, dynamic> map) {
  9105. return LiveViewerDTO(
  9106. userCode: map['UserCode'],
  9107. name: map['Name'],
  9108. lastReportTime: map['LastReportTime'] != null ? DateTime.parse(map['LastReportTime']) : null,
  9109. );
  9110. }
  9111. Map<String, dynamic> toJson() {
  9112. final map = Map<String, dynamic>();
  9113. if(userCode != null)
  9114. map['UserCode'] = userCode;
  9115. if(name != null)
  9116. map['Name'] = name;
  9117. if(lastReportTime != null)
  9118. map['LastReportTime'] = JsonRpcUtils.dateFormat(lastReportTime!);
  9119. return map;
  9120. }
  9121. }
  9122. class LiveRoomInfoDTO {
  9123. String? roomId;
  9124. int roomNo;
  9125. String? msgQueueId;
  9126. List<LiveMemberDTO >? members;
  9127. List<LiveViewerDTO >? viewerInfos;
  9128. LiveMemberDTO? initiator;
  9129. List<LiveMemberDTO >? userInfos;
  9130. List<LiveMemberDTO >? deviceInfos;
  9131. List<LiveMemberDTO >? expertUserInfos;
  9132. List<LiveMemberDTO >? assistantsInfos;
  9133. LiveRoomStatus status;
  9134. String? name;
  9135. DateTime? liveTime;
  9136. int liveStatus;
  9137. List<InteractiveBoardDataDTO >? interactiveBoardDatas;
  9138. LiveRoomInfoDTO({
  9139. this.roomId,
  9140. this.roomNo = 0,
  9141. this.msgQueueId,
  9142. this.members,
  9143. this.viewerInfos,
  9144. this.initiator,
  9145. this.userInfos,
  9146. this.deviceInfos,
  9147. this.expertUserInfos,
  9148. this.assistantsInfos,
  9149. this.status = LiveRoomStatus.Default,
  9150. this.name,
  9151. this.liveTime,
  9152. this.liveStatus = 0,
  9153. this.interactiveBoardDatas,
  9154. });
  9155. factory LiveRoomInfoDTO.fromJson(Map<String, dynamic> map) {
  9156. return LiveRoomInfoDTO(
  9157. roomId: map['RoomId'],
  9158. roomNo: map['RoomNo'],
  9159. msgQueueId: map['MsgQueueId'],
  9160. members: map['Members'] != null ? (map['Members'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9161. viewerInfos: map['ViewerInfos'] != null ? (map['ViewerInfos'] as List).map((e)=>LiveViewerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9162. initiator: map['Initiator'] != null ? LiveMemberDTO.fromJson(map['Initiator']) : null,
  9163. userInfos: map['UserInfos'] != null ? (map['UserInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9164. deviceInfos: map['DeviceInfos'] != null ? (map['DeviceInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9165. expertUserInfos: map['ExpertUserInfos'] != null ? (map['ExpertUserInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9166. assistantsInfos: map['AssistantsInfos'] != null ? (map['AssistantsInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9167. status: LiveRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  9168. name: map['Name'],
  9169. liveTime: map['LiveTime'] != null ? DateTime.parse(map['LiveTime']) : null,
  9170. liveStatus: map['LiveStatus'],
  9171. interactiveBoardDatas: map['InteractiveBoardDatas'] != null ? (map['InteractiveBoardDatas'] as List).map((e)=>InteractiveBoardDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9172. );
  9173. }
  9174. Map<String, dynamic> toJson() {
  9175. final map = Map<String, dynamic>();
  9176. if(roomId != null)
  9177. map['RoomId'] = roomId;
  9178. map['RoomNo'] = roomNo;
  9179. if(msgQueueId != null)
  9180. map['MsgQueueId'] = msgQueueId;
  9181. if(members != null)
  9182. map['Members'] = members;
  9183. if(viewerInfos != null)
  9184. map['ViewerInfos'] = viewerInfos;
  9185. if(initiator != null)
  9186. map['Initiator'] = initiator;
  9187. if(userInfos != null)
  9188. map['UserInfos'] = userInfos;
  9189. if(deviceInfos != null)
  9190. map['DeviceInfos'] = deviceInfos;
  9191. if(expertUserInfos != null)
  9192. map['ExpertUserInfos'] = expertUserInfos;
  9193. if(assistantsInfos != null)
  9194. map['AssistantsInfos'] = assistantsInfos;
  9195. map['Status'] = status.index;
  9196. if(name != null)
  9197. map['Name'] = name;
  9198. if(liveTime != null)
  9199. map['LiveTime'] = JsonRpcUtils.dateFormat(liveTime!);
  9200. map['LiveStatus'] = liveStatus;
  9201. if(interactiveBoardDatas != null)
  9202. map['InteractiveBoardDatas'] = interactiveBoardDatas;
  9203. return map;
  9204. }
  9205. }
  9206. class RtcBoardDataDTO {
  9207. String? userCode;
  9208. String? boardData;
  9209. DateTime? interactiveTime;
  9210. RtcBoardDataDTO({
  9211. this.userCode,
  9212. this.boardData,
  9213. this.interactiveTime,
  9214. });
  9215. factory RtcBoardDataDTO.fromJson(Map<String, dynamic> map) {
  9216. return RtcBoardDataDTO(
  9217. userCode: map['UserCode'],
  9218. boardData: map['BoardData'],
  9219. interactiveTime: map['InteractiveTime'] != null ? DateTime.parse(map['InteractiveTime']) : null,
  9220. );
  9221. }
  9222. Map<String, dynamic> toJson() {
  9223. final map = Map<String, dynamic>();
  9224. if(userCode != null)
  9225. map['UserCode'] = userCode;
  9226. if(boardData != null)
  9227. map['BoardData'] = boardData;
  9228. if(interactiveTime != null)
  9229. map['InteractiveTime'] = JsonRpcUtils.dateFormat(interactiveTime!);
  9230. return map;
  9231. }
  9232. }
  9233. class RtcLiveDataDTO {
  9234. String? pullUrl;
  9235. RtcLiveDataDTO({
  9236. this.pullUrl,
  9237. });
  9238. factory RtcLiveDataDTO.fromJson(Map<String, dynamic> map) {
  9239. return RtcLiveDataDTO(
  9240. pullUrl: map['PullUrl'],
  9241. );
  9242. }
  9243. Map<String, dynamic> toJson() {
  9244. final map = Map<String, dynamic>();
  9245. if(pullUrl != null)
  9246. map['PullUrl'] = pullUrl;
  9247. return map;
  9248. }
  9249. }
  9250. class RtcMemberDTO {
  9251. String? id;
  9252. String? name;
  9253. String? avatarUrl;
  9254. LiveMemberEnum memberType;
  9255. LiveMemberStatus status;
  9256. bool muteOpened;
  9257. bool videoOpened;
  9258. bool isInitiator;
  9259. bool isControllingParameter;
  9260. RtcLiveDataDTO? rtcLiveData;
  9261. RtcMemberDTO({
  9262. this.id,
  9263. this.name,
  9264. this.avatarUrl,
  9265. this.memberType = LiveMemberEnum.User,
  9266. this.status = LiveMemberStatus.Default,
  9267. this.muteOpened = false,
  9268. this.videoOpened = false,
  9269. this.isInitiator = false,
  9270. this.isControllingParameter = false,
  9271. this.rtcLiveData,
  9272. });
  9273. factory RtcMemberDTO.fromJson(Map<String, dynamic> map) {
  9274. return RtcMemberDTO(
  9275. id: map['Id'],
  9276. name: map['Name'],
  9277. avatarUrl: map['AvatarUrl'],
  9278. memberType: LiveMemberEnum.values.firstWhere((e) => e.index == map['MemberType']),
  9279. status: LiveMemberStatus.values.firstWhere((e) => e.index == map['Status']),
  9280. muteOpened: map['MuteOpened'],
  9281. videoOpened: map['VideoOpened'],
  9282. isInitiator: map['IsInitiator'],
  9283. isControllingParameter: map['IsControllingParameter'],
  9284. rtcLiveData: map['RtcLiveData'] != null ? RtcLiveDataDTO.fromJson(map['RtcLiveData']) : null,
  9285. );
  9286. }
  9287. Map<String, dynamic> toJson() {
  9288. final map = Map<String, dynamic>();
  9289. if(id != null)
  9290. map['Id'] = id;
  9291. if(name != null)
  9292. map['Name'] = name;
  9293. if(avatarUrl != null)
  9294. map['AvatarUrl'] = avatarUrl;
  9295. map['MemberType'] = memberType.index;
  9296. map['Status'] = status.index;
  9297. map['MuteOpened'] = muteOpened;
  9298. map['VideoOpened'] = videoOpened;
  9299. map['IsInitiator'] = isInitiator;
  9300. map['IsControllingParameter'] = isControllingParameter;
  9301. if(rtcLiveData != null)
  9302. map['RtcLiveData'] = rtcLiveData;
  9303. return map;
  9304. }
  9305. }
  9306. class RtcViewerDTO {
  9307. String? userCode;
  9308. DateTime? lastReportTime;
  9309. RtcViewerDTO({
  9310. this.userCode,
  9311. this.lastReportTime,
  9312. });
  9313. factory RtcViewerDTO.fromJson(Map<String, dynamic> map) {
  9314. return RtcViewerDTO(
  9315. userCode: map['UserCode'],
  9316. lastReportTime: map['LastReportTime'] != null ? DateTime.parse(map['LastReportTime']) : null,
  9317. );
  9318. }
  9319. Map<String, dynamic> toJson() {
  9320. final map = Map<String, dynamic>();
  9321. if(userCode != null)
  9322. map['UserCode'] = userCode;
  9323. if(lastReportTime != null)
  9324. map['LastReportTime'] = JsonRpcUtils.dateFormat(lastReportTime!);
  9325. return map;
  9326. }
  9327. }
  9328. class RtcRoomDTO {
  9329. String? liveRoomCode;
  9330. String? name;
  9331. String? initiateCode;
  9332. int rtcRoomId;
  9333. int sdkAppId;
  9334. String? msgQueueId;
  9335. LiveRoomStatus status;
  9336. List<RtcMemberDTO >? members;
  9337. List<RtcViewerDTO >? viewers;
  9338. List<RtcBoardDataDTO >? interactiveBoardDatas;
  9339. RtcRoomDTO({
  9340. this.liveRoomCode,
  9341. this.name,
  9342. this.initiateCode,
  9343. this.rtcRoomId = 0,
  9344. this.sdkAppId = 0,
  9345. this.msgQueueId,
  9346. this.status = LiveRoomStatus.Default,
  9347. this.members,
  9348. this.viewers,
  9349. this.interactiveBoardDatas,
  9350. });
  9351. factory RtcRoomDTO.fromJson(Map<String, dynamic> map) {
  9352. return RtcRoomDTO(
  9353. liveRoomCode: map['LiveRoomCode'],
  9354. name: map['Name'],
  9355. initiateCode: map['InitiateCode'],
  9356. rtcRoomId: map['RtcRoomId'],
  9357. sdkAppId: map['SdkAppId'],
  9358. msgQueueId: map['MsgQueueId'],
  9359. status: LiveRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  9360. members: map['Members'] != null ? (map['Members'] as List).map((e)=>RtcMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9361. viewers: map['Viewers'] != null ? (map['Viewers'] as List).map((e)=>RtcViewerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9362. interactiveBoardDatas: map['InteractiveBoardDatas'] != null ? (map['InteractiveBoardDatas'] as List).map((e)=>RtcBoardDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9363. );
  9364. }
  9365. Map<String, dynamic> toJson() {
  9366. final map = Map<String, dynamic>();
  9367. if(liveRoomCode != null)
  9368. map['LiveRoomCode'] = liveRoomCode;
  9369. if(name != null)
  9370. map['Name'] = name;
  9371. if(initiateCode != null)
  9372. map['InitiateCode'] = initiateCode;
  9373. map['RtcRoomId'] = rtcRoomId;
  9374. map['SdkAppId'] = sdkAppId;
  9375. if(msgQueueId != null)
  9376. map['MsgQueueId'] = msgQueueId;
  9377. map['Status'] = status.index;
  9378. if(members != null)
  9379. map['Members'] = members;
  9380. if(viewers != null)
  9381. map['Viewers'] = viewers;
  9382. if(interactiveBoardDatas != null)
  9383. map['InteractiveBoardDatas'] = interactiveBoardDatas;
  9384. return map;
  9385. }
  9386. }
  9387. class ReportElementDTO {
  9388. String? key;
  9389. String? tagId;
  9390. String? name;
  9391. String? aILanguage;
  9392. ReportElementDTO({
  9393. this.key,
  9394. this.tagId,
  9395. this.name,
  9396. this.aILanguage,
  9397. });
  9398. factory ReportElementDTO.fromJson(Map<String, dynamic> map) {
  9399. return ReportElementDTO(
  9400. key: map['Key'],
  9401. tagId: map['TagId'],
  9402. name: map['Name'],
  9403. aILanguage: map['AILanguage'],
  9404. );
  9405. }
  9406. Map<String, dynamic> toJson() {
  9407. final map = Map<String, dynamic>();
  9408. if(key != null)
  9409. map['Key'] = key;
  9410. if(tagId != null)
  9411. map['TagId'] = tagId;
  9412. if(name != null)
  9413. map['Name'] = name;
  9414. if(aILanguage != null)
  9415. map['AILanguage'] = aILanguage;
  9416. return map;
  9417. }
  9418. }
  9419. class ReportPosterDTO extends BaseDTO{
  9420. String? reportPosterCode;
  9421. String? receiverName;
  9422. String? contact;
  9423. String? phone;
  9424. String? targetUrl;
  9425. String? template;
  9426. ReportPosterTypeEnum posterType;
  9427. ReportFormatEnum reportFormat;
  9428. int postTimeout;
  9429. List<String >? deviceIds;
  9430. ReportPosterDTO({
  9431. this.reportPosterCode,
  9432. this.receiverName,
  9433. this.contact,
  9434. this.phone,
  9435. this.targetUrl,
  9436. this.template,
  9437. this.posterType = ReportPosterTypeEnum.Default,
  9438. this.reportFormat = ReportFormatEnum.Json,
  9439. this.postTimeout = 0,
  9440. this.deviceIds,
  9441. DateTime? createTime,
  9442. DateTime? updateTime,
  9443. }) : super(
  9444. createTime: createTime,
  9445. updateTime: updateTime,
  9446. );
  9447. factory ReportPosterDTO.fromJson(Map<String, dynamic> map) {
  9448. return ReportPosterDTO(
  9449. reportPosterCode: map['ReportPosterCode'],
  9450. receiverName: map['ReceiverName'],
  9451. contact: map['Contact'],
  9452. phone: map['Phone'],
  9453. targetUrl: map['TargetUrl'],
  9454. template: map['Template'],
  9455. posterType: ReportPosterTypeEnum.values.firstWhere((e) => e.index == map['PosterType']),
  9456. reportFormat: ReportFormatEnum.values.firstWhere((e) => e.index == map['ReportFormat']),
  9457. postTimeout: map['PostTimeout'],
  9458. deviceIds: map['DeviceIds'] != null ? map['DeviceIds'].cast<String>().toList() : null,
  9459. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9460. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9461. );
  9462. }
  9463. Map<String, dynamic> toJson() {
  9464. final map = super.toJson();
  9465. if(reportPosterCode != null)
  9466. map['ReportPosterCode'] = reportPosterCode;
  9467. if(receiverName != null)
  9468. map['ReceiverName'] = receiverName;
  9469. if(contact != null)
  9470. map['Contact'] = contact;
  9471. if(phone != null)
  9472. map['Phone'] = phone;
  9473. if(targetUrl != null)
  9474. map['TargetUrl'] = targetUrl;
  9475. if(template != null)
  9476. map['Template'] = template;
  9477. map['PosterType'] = posterType.index;
  9478. map['ReportFormat'] = reportFormat.index;
  9479. map['PostTimeout'] = postTimeout;
  9480. if(deviceIds != null)
  9481. map['DeviceIds'] = deviceIds;
  9482. return map;
  9483. }
  9484. }
  9485. class ReportPushRecordDTO extends BaseDTO{
  9486. String? pushRecordCode;
  9487. String? patientId;
  9488. String? patientName;
  9489. String? poseterConfigId;
  9490. PushDataStateEnum state;
  9491. String? poseterConfigName;
  9492. String? reportId;
  9493. String? patientRecordId;
  9494. String? pushResultToken;
  9495. String? pushResponse;
  9496. ReportPushRecordDTO({
  9497. this.pushRecordCode,
  9498. this.patientId,
  9499. this.patientName,
  9500. this.poseterConfigId,
  9501. this.state = PushDataStateEnum.UnDo,
  9502. this.poseterConfigName,
  9503. this.reportId,
  9504. this.patientRecordId,
  9505. this.pushResultToken,
  9506. this.pushResponse,
  9507. DateTime? createTime,
  9508. DateTime? updateTime,
  9509. }) : super(
  9510. createTime: createTime,
  9511. updateTime: updateTime,
  9512. );
  9513. factory ReportPushRecordDTO.fromJson(Map<String, dynamic> map) {
  9514. return ReportPushRecordDTO(
  9515. pushRecordCode: map['PushRecordCode'],
  9516. patientId: map['PatientId'],
  9517. patientName: map['PatientName'],
  9518. poseterConfigId: map['PoseterConfigId'],
  9519. state: PushDataStateEnum.values.firstWhere((e) => e.index == map['State']),
  9520. poseterConfigName: map['PoseterConfigName'],
  9521. reportId: map['ReportId'],
  9522. patientRecordId: map['PatientRecordId'],
  9523. pushResultToken: map['PushResultToken'],
  9524. pushResponse: map['PushResponse'],
  9525. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9526. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9527. );
  9528. }
  9529. Map<String, dynamic> toJson() {
  9530. final map = super.toJson();
  9531. if(pushRecordCode != null)
  9532. map['PushRecordCode'] = pushRecordCode;
  9533. if(patientId != null)
  9534. map['PatientId'] = patientId;
  9535. if(patientName != null)
  9536. map['PatientName'] = patientName;
  9537. if(poseterConfigId != null)
  9538. map['PoseterConfigId'] = poseterConfigId;
  9539. map['State'] = state.index;
  9540. if(poseterConfigName != null)
  9541. map['PoseterConfigName'] = poseterConfigName;
  9542. if(reportId != null)
  9543. map['ReportId'] = reportId;
  9544. if(patientRecordId != null)
  9545. map['PatientRecordId'] = patientRecordId;
  9546. if(pushResultToken != null)
  9547. map['PushResultToken'] = pushResultToken;
  9548. if(pushResponse != null)
  9549. map['PushResponse'] = pushResponse;
  9550. return map;
  9551. }
  9552. }
  9553. class ProbeSettingInfoDTO {
  9554. String? name;
  9555. List<ApplicationSettingInfoDTO >? applications;
  9556. ProbeSettingInfoDTO({
  9557. this.name,
  9558. this.applications,
  9559. });
  9560. factory ProbeSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  9561. return ProbeSettingInfoDTO(
  9562. name: map['Name'],
  9563. applications: map['Applications'] != null ? (map['Applications'] as List).map((e)=>ApplicationSettingInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9564. );
  9565. }
  9566. Map<String, dynamic> toJson() {
  9567. final map = Map<String, dynamic>();
  9568. if(name != null)
  9569. map['Name'] = name;
  9570. if(applications != null)
  9571. map['Applications'] = applications;
  9572. return map;
  9573. }
  9574. }
  9575. class ProbeApplicationSettingInfoDTO {
  9576. List<ProbeSettingInfoDTO >? probes;
  9577. String? activeProbe;
  9578. String? activeApplication;
  9579. int maxNumberForApplication;
  9580. int maxNumberForApplicationOfUserDefine;
  9581. ProbeApplicationSettingInfoDTO({
  9582. this.probes,
  9583. this.activeProbe,
  9584. this.activeApplication,
  9585. this.maxNumberForApplication = 0,
  9586. this.maxNumberForApplicationOfUserDefine = 0,
  9587. });
  9588. factory ProbeApplicationSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  9589. return ProbeApplicationSettingInfoDTO(
  9590. probes: map['Probes'] != null ? (map['Probes'] as List).map((e)=>ProbeSettingInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9591. activeProbe: map['ActiveProbe'],
  9592. activeApplication: map['ActiveApplication'],
  9593. maxNumberForApplication: map['MaxNumberForApplication'],
  9594. maxNumberForApplicationOfUserDefine: map['MaxNumberForApplicationOfUserDefine'],
  9595. );
  9596. }
  9597. Map<String, dynamic> toJson() {
  9598. final map = Map<String, dynamic>();
  9599. if(probes != null)
  9600. map['Probes'] = probes;
  9601. if(activeProbe != null)
  9602. map['ActiveProbe'] = activeProbe;
  9603. if(activeApplication != null)
  9604. map['ActiveApplication'] = activeApplication;
  9605. map['MaxNumberForApplication'] = maxNumberForApplication;
  9606. map['MaxNumberForApplicationOfUserDefine'] = maxNumberForApplicationOfUserDefine;
  9607. return map;
  9608. }
  9609. }
  9610. class RegionItemDTO {
  9611. String? c;
  9612. String? g;
  9613. String? f;
  9614. String? n;
  9615. RegionItemDTO({
  9616. this.c,
  9617. this.g,
  9618. this.f,
  9619. this.n,
  9620. });
  9621. factory RegionItemDTO.fromJson(Map<String, dynamic> map) {
  9622. return RegionItemDTO(
  9623. c: map['c'],
  9624. g: map['g'],
  9625. f: map['f'],
  9626. n: map['n'],
  9627. );
  9628. }
  9629. Map<String, dynamic> toJson() {
  9630. final map = Map<String, dynamic>();
  9631. if(c != null)
  9632. map['c'] = c;
  9633. if(g != null)
  9634. map['g'] = g;
  9635. if(f != null)
  9636. map['f'] = f;
  9637. if(n != null)
  9638. map['n'] = n;
  9639. return map;
  9640. }
  9641. }
  9642. class RegionDataDTO {
  9643. String? lang;
  9644. List<RegionItemDTO >? datas;
  9645. RegionDataDTO({
  9646. this.lang,
  9647. this.datas,
  9648. });
  9649. factory RegionDataDTO.fromJson(Map<String, dynamic> map) {
  9650. return RegionDataDTO(
  9651. lang: map['lang'],
  9652. datas: map['datas'] != null ? (map['datas'] as List).map((e)=>RegionItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9653. );
  9654. }
  9655. Map<String, dynamic> toJson() {
  9656. final map = Map<String, dynamic>();
  9657. if(lang != null)
  9658. map['lang'] = lang;
  9659. if(datas != null)
  9660. map['datas'] = datas;
  9661. return map;
  9662. }
  9663. }
  9664. class ReferralRecordSettingDTO extends BaseDTO{
  9665. String? referralRecordSettingCode;
  9666. double limitHours;
  9667. ReferralRecordSettingDTO({
  9668. this.referralRecordSettingCode,
  9669. this.limitHours = 0,
  9670. DateTime? createTime,
  9671. DateTime? updateTime,
  9672. }) : super(
  9673. createTime: createTime,
  9674. updateTime: updateTime,
  9675. );
  9676. factory ReferralRecordSettingDTO.fromJson(Map<String, dynamic> map) {
  9677. return ReferralRecordSettingDTO(
  9678. referralRecordSettingCode: map['ReferralRecordSettingCode'],
  9679. limitHours: double.parse(map['LimitHours'].toString()),
  9680. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9681. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9682. );
  9683. }
  9684. Map<String, dynamic> toJson() {
  9685. final map = super.toJson();
  9686. if(referralRecordSettingCode != null)
  9687. map['ReferralRecordSettingCode'] = referralRecordSettingCode;
  9688. map['LimitHours'] = limitHours;
  9689. return map;
  9690. }
  9691. }
  9692. class CreatePaymentRecordResultDTO {
  9693. String? paymentRecordCode;
  9694. CreatePaymentRecordResultDTO({
  9695. this.paymentRecordCode,
  9696. });
  9697. factory CreatePaymentRecordResultDTO.fromJson(Map<String, dynamic> map) {
  9698. return CreatePaymentRecordResultDTO(
  9699. paymentRecordCode: map['PaymentRecordCode'],
  9700. );
  9701. }
  9702. Map<String, dynamic> toJson() {
  9703. final map = Map<String, dynamic>();
  9704. if(paymentRecordCode != null)
  9705. map['PaymentRecordCode'] = paymentRecordCode;
  9706. return map;
  9707. }
  9708. }
  9709. class CreateProductDTO extends BaseDTO{
  9710. String? productCode;
  9711. CreateProductDTO({
  9712. this.productCode,
  9713. DateTime? createTime,
  9714. DateTime? updateTime,
  9715. }) : super(
  9716. createTime: createTime,
  9717. updateTime: updateTime,
  9718. );
  9719. factory CreateProductDTO.fromJson(Map<String, dynamic> map) {
  9720. return CreateProductDTO(
  9721. productCode: map['ProductCode'],
  9722. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9723. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9724. );
  9725. }
  9726. Map<String, dynamic> toJson() {
  9727. final map = super.toJson();
  9728. if(productCode != null)
  9729. map['ProductCode'] = productCode;
  9730. return map;
  9731. }
  9732. }
  9733. class PaymentRecordDTO extends BaseDTO{
  9734. String? orderCode;
  9735. double payAmount;
  9736. DateTime? payTime;
  9737. PayStatusEnum payStatus;
  9738. PayTypeEnum payType;
  9739. String? payReqContent;
  9740. String? payResContent;
  9741. PaymentRecordDTO({
  9742. this.orderCode,
  9743. this.payAmount = 0,
  9744. this.payTime,
  9745. this.payStatus = PayStatusEnum.NoPay,
  9746. this.payType = PayTypeEnum.Alipay_PAGE,
  9747. this.payReqContent,
  9748. this.payResContent,
  9749. DateTime? createTime,
  9750. DateTime? updateTime,
  9751. }) : super(
  9752. createTime: createTime,
  9753. updateTime: updateTime,
  9754. );
  9755. factory PaymentRecordDTO.fromJson(Map<String, dynamic> map) {
  9756. return PaymentRecordDTO(
  9757. orderCode: map['OrderCode'],
  9758. payAmount: double.parse(map['PayAmount'].toString()),
  9759. payTime: map['PayTime'] != null ? DateTime.parse(map['PayTime']) : null,
  9760. payStatus: PayStatusEnum.values.firstWhere((e) => e.index == map['PayStatus']),
  9761. payType: PayTypeEnum.values.firstWhere((e) => e.index == map['PayType']),
  9762. payReqContent: map['PayReqContent'],
  9763. payResContent: map['PayResContent'],
  9764. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9765. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9766. );
  9767. }
  9768. Map<String, dynamic> toJson() {
  9769. final map = super.toJson();
  9770. if(orderCode != null)
  9771. map['OrderCode'] = orderCode;
  9772. map['PayAmount'] = payAmount;
  9773. if(payTime != null)
  9774. map['PayTime'] = JsonRpcUtils.dateFormat(payTime!);
  9775. map['PayStatus'] = payStatus.index;
  9776. map['PayType'] = payType.index;
  9777. if(payReqContent != null)
  9778. map['PayReqContent'] = payReqContent;
  9779. if(payResContent != null)
  9780. map['PayResContent'] = payResContent;
  9781. return map;
  9782. }
  9783. }
  9784. class ProductDetailDTO extends BaseDTO{
  9785. String? code;
  9786. String? name;
  9787. String? headImage;
  9788. double price;
  9789. ProductStatusEnum status;
  9790. ProductTypeEnum productType;
  9791. String? belongerCode;
  9792. String? relationInfo;
  9793. ProductDetailDTO({
  9794. this.code,
  9795. this.name,
  9796. this.headImage,
  9797. this.price = 0,
  9798. this.status = ProductStatusEnum.SoldOut,
  9799. this.productType = ProductTypeEnum.Course,
  9800. this.belongerCode,
  9801. this.relationInfo,
  9802. DateTime? createTime,
  9803. DateTime? updateTime,
  9804. }) : super(
  9805. createTime: createTime,
  9806. updateTime: updateTime,
  9807. );
  9808. factory ProductDetailDTO.fromJson(Map<String, dynamic> map) {
  9809. return ProductDetailDTO(
  9810. code: map['Code'],
  9811. name: map['Name'],
  9812. headImage: map['HeadImage'],
  9813. price: double.parse(map['Price'].toString()),
  9814. status: ProductStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  9815. productType: ProductTypeEnum.values.firstWhere((e) => e.index == map['ProductType']),
  9816. belongerCode: map['BelongerCode'],
  9817. relationInfo: map['RelationInfo'],
  9818. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9819. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9820. );
  9821. }
  9822. Map<String, dynamic> toJson() {
  9823. final map = super.toJson();
  9824. if(code != null)
  9825. map['Code'] = code;
  9826. if(name != null)
  9827. map['Name'] = name;
  9828. if(headImage != null)
  9829. map['HeadImage'] = headImage;
  9830. map['Price'] = price;
  9831. map['Status'] = status.index;
  9832. map['ProductType'] = productType.index;
  9833. if(belongerCode != null)
  9834. map['BelongerCode'] = belongerCode;
  9835. if(relationInfo != null)
  9836. map['RelationInfo'] = relationInfo;
  9837. return map;
  9838. }
  9839. }
  9840. class UpdateOrderResultDTO {
  9841. bool isSuccess;
  9842. UpdateOrderResultDTO({
  9843. this.isSuccess = false,
  9844. });
  9845. factory UpdateOrderResultDTO.fromJson(Map<String, dynamic> map) {
  9846. return UpdateOrderResultDTO(
  9847. isSuccess: map['IsSuccess'],
  9848. );
  9849. }
  9850. Map<String, dynamic> toJson() {
  9851. final map = Map<String, dynamic>();
  9852. map['IsSuccess'] = isSuccess;
  9853. return map;
  9854. }
  9855. }
  9856. class UpdatePaymentRecordResultDTO {
  9857. bool isSuccess;
  9858. UpdatePaymentRecordResultDTO({
  9859. this.isSuccess = false,
  9860. });
  9861. factory UpdatePaymentRecordResultDTO.fromJson(Map<String, dynamic> map) {
  9862. return UpdatePaymentRecordResultDTO(
  9863. isSuccess: map['IsSuccess'],
  9864. );
  9865. }
  9866. Map<String, dynamic> toJson() {
  9867. final map = Map<String, dynamic>();
  9868. map['IsSuccess'] = isSuccess;
  9869. return map;
  9870. }
  9871. }
  9872. class UpdateProductDTO {
  9873. bool isSuccess;
  9874. UpdateProductDTO({
  9875. this.isSuccess = false,
  9876. });
  9877. factory UpdateProductDTO.fromJson(Map<String, dynamic> map) {
  9878. return UpdateProductDTO(
  9879. isSuccess: map['IsSuccess'],
  9880. );
  9881. }
  9882. Map<String, dynamic> toJson() {
  9883. final map = Map<String, dynamic>();
  9884. map['IsSuccess'] = isSuccess;
  9885. return map;
  9886. }
  9887. }
  9888. class StatisticDetailSettingDTO {
  9889. String? cMSTemplateCode;
  9890. StatisticDetailSettingDTO({
  9891. this.cMSTemplateCode,
  9892. });
  9893. factory StatisticDetailSettingDTO.fromJson(Map<String, dynamic> map) {
  9894. return StatisticDetailSettingDTO(
  9895. cMSTemplateCode: map['CMSTemplateCode'],
  9896. );
  9897. }
  9898. Map<String, dynamic> toJson() {
  9899. final map = Map<String, dynamic>();
  9900. if(cMSTemplateCode != null)
  9901. map['CMSTemplateCode'] = cMSTemplateCode;
  9902. return map;
  9903. }
  9904. }
  9905. class ClientInfoDTO {
  9906. String? clientId;
  9907. String? name;
  9908. bool isReaded;
  9909. DateTime? deliveryTime;
  9910. DateTime? readTime;
  9911. ClientInfoDTO({
  9912. this.clientId,
  9913. this.name,
  9914. this.isReaded = false,
  9915. this.deliveryTime,
  9916. this.readTime,
  9917. });
  9918. factory ClientInfoDTO.fromJson(Map<String, dynamic> map) {
  9919. return ClientInfoDTO(
  9920. clientId: map['ClientId'],
  9921. name: map['Name'],
  9922. isReaded: map['IsReaded'],
  9923. deliveryTime: map['DeliveryTime'] != null ? DateTime.parse(map['DeliveryTime']) : null,
  9924. readTime: map['ReadTime'] != null ? DateTime.parse(map['ReadTime']) : null,
  9925. );
  9926. }
  9927. Map<String, dynamic> toJson() {
  9928. final map = Map<String, dynamic>();
  9929. if(clientId != null)
  9930. map['ClientId'] = clientId;
  9931. if(name != null)
  9932. map['Name'] = name;
  9933. map['IsReaded'] = isReaded;
  9934. if(deliveryTime != null)
  9935. map['DeliveryTime'] = JsonRpcUtils.dateFormat(deliveryTime!);
  9936. if(readTime != null)
  9937. map['ReadTime'] = JsonRpcUtils.dateFormat(readTime!);
  9938. return map;
  9939. }
  9940. }
  9941. class MessageInfoDTO extends BaseDTO{
  9942. String? code;
  9943. NotificationTypeEnum notificationType;
  9944. String? content;
  9945. String? serverHost;
  9946. DateTime? notifyTime;
  9947. ApplicantTypeEnum receiverType;
  9948. TransactionTypeEnum transactionType;
  9949. String? relevanceCode;
  9950. List<ClientInfoDTO >? clientInfos;
  9951. MessageInfoDTO({
  9952. this.code,
  9953. this.notificationType = NotificationTypeEnum.Unknown,
  9954. this.content,
  9955. this.serverHost,
  9956. this.notifyTime,
  9957. this.receiverType = ApplicantTypeEnum.Client,
  9958. this.transactionType = TransactionTypeEnum.Consultion,
  9959. this.relevanceCode,
  9960. this.clientInfos,
  9961. DateTime? createTime,
  9962. DateTime? updateTime,
  9963. }) : super(
  9964. createTime: createTime,
  9965. updateTime: updateTime,
  9966. );
  9967. factory MessageInfoDTO.fromJson(Map<String, dynamic> map) {
  9968. return MessageInfoDTO(
  9969. code: map['Code'],
  9970. notificationType: NotificationTypeEnum.values.firstWhere((e) => e.index == map['NotificationType']),
  9971. content: map['Content'],
  9972. serverHost: map['ServerHost'],
  9973. notifyTime: map['NotifyTime'] != null ? DateTime.parse(map['NotifyTime']) : null,
  9974. receiverType: ApplicantTypeEnum.values.firstWhere((e) => e.index == map['ReceiverType']),
  9975. transactionType: TransactionTypeEnum.values.firstWhere((e) => e.index == map['TransactionType']),
  9976. relevanceCode: map['RelevanceCode'],
  9977. clientInfos: map['ClientInfos'] != null ? (map['ClientInfos'] as List).map((e)=>ClientInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9978. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9979. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9980. );
  9981. }
  9982. Map<String, dynamic> toJson() {
  9983. final map = super.toJson();
  9984. if(code != null)
  9985. map['Code'] = code;
  9986. map['NotificationType'] = notificationType.index;
  9987. if(content != null)
  9988. map['Content'] = content;
  9989. if(serverHost != null)
  9990. map['ServerHost'] = serverHost;
  9991. if(notifyTime != null)
  9992. map['NotifyTime'] = JsonRpcUtils.dateFormat(notifyTime!);
  9993. map['ReceiverType'] = receiverType.index;
  9994. map['TransactionType'] = transactionType.index;
  9995. if(relevanceCode != null)
  9996. map['RelevanceCode'] = relevanceCode;
  9997. if(clientInfos != null)
  9998. map['ClientInfos'] = clientInfos;
  9999. return map;
  10000. }
  10001. }
  10002. class OutputUnitDTO {
  10003. int unit;
  10004. OutputUnitDTO({
  10005. this.unit = 0,
  10006. });
  10007. factory OutputUnitDTO.fromJson(Map<String, dynamic> map) {
  10008. return OutputUnitDTO(
  10009. unit: map['Unit'],
  10010. );
  10011. }
  10012. Map<String, dynamic> toJson() {
  10013. final map = Map<String, dynamic>();
  10014. map['Unit'] = unit;
  10015. return map;
  10016. }
  10017. }
  10018. class FormularMetaDTO {
  10019. String? name;
  10020. FormularMetaDTO({
  10021. this.name,
  10022. });
  10023. factory FormularMetaDTO.fromJson(Map<String, dynamic> map) {
  10024. return FormularMetaDTO(
  10025. name: map['Name'],
  10026. );
  10027. }
  10028. Map<String, dynamic> toJson() {
  10029. final map = Map<String, dynamic>();
  10030. if(name != null)
  10031. map['Name'] = name;
  10032. return map;
  10033. }
  10034. }
  10035. class MeasuredValueDTO {
  10036. String? typeName;
  10037. String? name;
  10038. String? description;
  10039. bool worksheetAffinity;
  10040. String? briefDescription;
  10041. String? value;
  10042. Unit unit;
  10043. Unit targetUnit;
  10044. MeasuredValueDTO({
  10045. this.typeName,
  10046. this.name,
  10047. this.description,
  10048. this.worksheetAffinity = false,
  10049. this.briefDescription,
  10050. this.value,
  10051. this.unit = Unit.None,
  10052. this.targetUnit = Unit.None,
  10053. });
  10054. factory MeasuredValueDTO.fromJson(Map<String, dynamic> map) {
  10055. return MeasuredValueDTO(
  10056. typeName: map['TypeName'],
  10057. name: map['Name'],
  10058. description: map['Description'],
  10059. worksheetAffinity: map['WorksheetAffinity'],
  10060. briefDescription: map['BriefDescription'],
  10061. value: map['Value'],
  10062. unit: Unit.values.firstWhere((e) => e.index == map['Unit']),
  10063. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  10064. );
  10065. }
  10066. Map<String, dynamic> toJson() {
  10067. final map = Map<String, dynamic>();
  10068. if(typeName != null)
  10069. map['TypeName'] = typeName;
  10070. if(name != null)
  10071. map['Name'] = name;
  10072. if(description != null)
  10073. map['Description'] = description;
  10074. map['WorksheetAffinity'] = worksheetAffinity;
  10075. if(briefDescription != null)
  10076. map['BriefDescription'] = briefDescription;
  10077. if(value != null)
  10078. map['Value'] = value;
  10079. map['Unit'] = unit.index;
  10080. map['TargetUnit'] = targetUnit.index;
  10081. return map;
  10082. }
  10083. }
  10084. class MeasuredFeatureDTO {
  10085. String? typeName;
  10086. String? creator;
  10087. String? guid;
  10088. bool showChildFeatures;
  10089. DateTime? timeStamp;
  10090. bool isAutoCalculated;
  10091. List<MeasuredValueDTO >? values;
  10092. List<MeasuredFeatureDTO >? childFeatures;
  10093. MeasuredFeatureDTO({
  10094. this.typeName,
  10095. this.creator,
  10096. this.guid,
  10097. this.showChildFeatures = false,
  10098. this.timeStamp,
  10099. this.isAutoCalculated = false,
  10100. this.values,
  10101. this.childFeatures,
  10102. });
  10103. factory MeasuredFeatureDTO.fromJson(Map<String, dynamic> map) {
  10104. return MeasuredFeatureDTO(
  10105. typeName: map['TypeName'],
  10106. creator: map['Creator'],
  10107. guid: map['Guid'],
  10108. showChildFeatures: map['ShowChildFeatures'],
  10109. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  10110. isAutoCalculated: map['IsAutoCalculated'],
  10111. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10112. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10113. );
  10114. }
  10115. Map<String, dynamic> toJson() {
  10116. final map = Map<String, dynamic>();
  10117. if(typeName != null)
  10118. map['TypeName'] = typeName;
  10119. if(creator != null)
  10120. map['Creator'] = creator;
  10121. if(guid != null)
  10122. map['Guid'] = guid;
  10123. map['ShowChildFeatures'] = showChildFeatures;
  10124. if(timeStamp != null)
  10125. map['TimeStamp'] = JsonRpcUtils.dateFormat(timeStamp!);
  10126. map['IsAutoCalculated'] = isAutoCalculated;
  10127. if(values != null)
  10128. map['Values'] = values;
  10129. if(childFeatures != null)
  10130. map['ChildFeatures'] = childFeatures;
  10131. return map;
  10132. }
  10133. }
  10134. class MeasureItemDTO {
  10135. String? name;
  10136. String? description;
  10137. String? briefAnnotation;
  10138. String? typeName;
  10139. MeasureItemDTO({
  10140. this.name,
  10141. this.description,
  10142. this.briefAnnotation,
  10143. this.typeName,
  10144. });
  10145. factory MeasureItemDTO.fromJson(Map<String, dynamic> map) {
  10146. return MeasureItemDTO(
  10147. name: map['Name'],
  10148. description: map['Description'],
  10149. briefAnnotation: map['BriefAnnotation'],
  10150. typeName: map['TypeName'],
  10151. );
  10152. }
  10153. Map<String, dynamic> toJson() {
  10154. final map = Map<String, dynamic>();
  10155. if(name != null)
  10156. map['Name'] = name;
  10157. if(description != null)
  10158. map['Description'] = description;
  10159. if(briefAnnotation != null)
  10160. map['BriefAnnotation'] = briefAnnotation;
  10161. if(typeName != null)
  10162. map['TypeName'] = typeName;
  10163. return map;
  10164. }
  10165. }
  10166. class MultiMethodItemDTO extends MeasureItemDTO{
  10167. MultiMethodItemDTO({
  10168. String? name,
  10169. String? description,
  10170. String? briefAnnotation,
  10171. String? typeName,
  10172. }) : super(
  10173. name: name,
  10174. description: description,
  10175. briefAnnotation: briefAnnotation,
  10176. typeName: typeName,
  10177. );
  10178. factory MultiMethodItemDTO.fromJson(Map<String, dynamic> map) {
  10179. return MultiMethodItemDTO(
  10180. name: map['Name'],
  10181. description: map['Description'],
  10182. briefAnnotation: map['BriefAnnotation'],
  10183. typeName: map['TypeName'],
  10184. );
  10185. }
  10186. Map<String, dynamic> toJson() {
  10187. final map = super.toJson();
  10188. return map;
  10189. }
  10190. }
  10191. class UserDefinedMeasureApplicationDTO {
  10192. String? version;
  10193. String? id;
  10194. String? categoryName;
  10195. List<UserDefinedMeasureModeDTO >? modes;
  10196. UserDefinedMeasureApplicationDTO({
  10197. this.version,
  10198. this.id,
  10199. this.categoryName,
  10200. this.modes,
  10201. });
  10202. factory UserDefinedMeasureApplicationDTO.fromJson(Map<String, dynamic> map) {
  10203. return UserDefinedMeasureApplicationDTO(
  10204. version: map['Version'],
  10205. id: map['Id'],
  10206. categoryName: map['CategoryName'],
  10207. modes: map['Modes'] != null ? (map['Modes'] as List).map((e)=>UserDefinedMeasureModeDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10208. );
  10209. }
  10210. Map<String, dynamic> toJson() {
  10211. final map = Map<String, dynamic>();
  10212. if(version != null)
  10213. map['Version'] = version;
  10214. if(id != null)
  10215. map['Id'] = id;
  10216. if(categoryName != null)
  10217. map['CategoryName'] = categoryName;
  10218. if(modes != null)
  10219. map['Modes'] = modes;
  10220. return map;
  10221. }
  10222. }
  10223. class UserDefinedCommentDataDTO {
  10224. String? version;
  10225. String? languageCode;
  10226. String? categoryName;
  10227. String? applicationName;
  10228. List<CommentItemDTO >? commentItems;
  10229. UserDefinedCommentDataDTO({
  10230. this.version,
  10231. this.languageCode,
  10232. this.categoryName,
  10233. this.applicationName,
  10234. this.commentItems,
  10235. });
  10236. factory UserDefinedCommentDataDTO.fromJson(Map<String, dynamic> map) {
  10237. return UserDefinedCommentDataDTO(
  10238. version: map['Version'],
  10239. languageCode: map['LanguageCode'],
  10240. categoryName: map['CategoryName'],
  10241. applicationName: map['ApplicationName'],
  10242. commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>CommentItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10243. );
  10244. }
  10245. Map<String, dynamic> toJson() {
  10246. final map = Map<String, dynamic>();
  10247. if(version != null)
  10248. map['Version'] = version;
  10249. if(languageCode != null)
  10250. map['LanguageCode'] = languageCode;
  10251. if(categoryName != null)
  10252. map['CategoryName'] = categoryName;
  10253. if(applicationName != null)
  10254. map['ApplicationName'] = applicationName;
  10255. if(commentItems != null)
  10256. map['CommentItems'] = commentItems;
  10257. return map;
  10258. }
  10259. }
  10260. class UserDefinedMeasureInfoDTO {
  10261. String? userId;
  10262. Map<String,String>? systemSettings;
  10263. List<UserDefinedMeasureApplicationDTO >? measureApplications;
  10264. List<UserDefinedCommentDataDTO >? commentItems;
  10265. UserDefinedMeasureInfoDTO({
  10266. this.userId,
  10267. this.systemSettings,
  10268. this.measureApplications,
  10269. this.commentItems,
  10270. });
  10271. factory UserDefinedMeasureInfoDTO.fromJson(Map<String, dynamic> map) {
  10272. return UserDefinedMeasureInfoDTO(
  10273. userId: map['UserId'],
  10274. systemSettings: map['SystemSettings'] != null ? map['SystemSettings'].cast<String,String>() : null,
  10275. measureApplications: map['MeasureApplications'] != null ? (map['MeasureApplications'] as List).map((e)=>UserDefinedMeasureApplicationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10276. commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>UserDefinedCommentDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10277. );
  10278. }
  10279. Map<String, dynamic> toJson() {
  10280. final map = Map<String, dynamic>();
  10281. if(userId != null)
  10282. map['UserId'] = userId;
  10283. if(systemSettings != null)
  10284. map['SystemSettings'] = systemSettings;
  10285. if(measureApplications != null)
  10286. map['MeasureApplications'] = measureApplications;
  10287. if(commentItems != null)
  10288. map['CommentItems'] = commentItems;
  10289. return map;
  10290. }
  10291. }
  10292. class AbRatioDTO extends MultiMethodItemDTO{
  10293. AbRatioDTO({
  10294. String? name,
  10295. String? description,
  10296. String? briefAnnotation,
  10297. String? typeName,
  10298. }) : super(
  10299. name: name,
  10300. description: description,
  10301. briefAnnotation: briefAnnotation,
  10302. typeName: typeName,
  10303. );
  10304. factory AbRatioDTO.fromJson(Map<String, dynamic> map) {
  10305. return AbRatioDTO(
  10306. name: map['Name'],
  10307. description: map['Description'],
  10308. briefAnnotation: map['BriefAnnotation'],
  10309. typeName: map['TypeName'],
  10310. );
  10311. }
  10312. Map<String, dynamic> toJson() {
  10313. final map = super.toJson();
  10314. return map;
  10315. }
  10316. }
  10317. class AngleDTO extends MeasureItemDTO{
  10318. AngleDTO({
  10319. String? name,
  10320. String? description,
  10321. String? briefAnnotation,
  10322. String? typeName,
  10323. }) : super(
  10324. name: name,
  10325. description: description,
  10326. briefAnnotation: briefAnnotation,
  10327. typeName: typeName,
  10328. );
  10329. factory AngleDTO.fromJson(Map<String, dynamic> map) {
  10330. return AngleDTO(
  10331. name: map['Name'],
  10332. description: map['Description'],
  10333. briefAnnotation: map['BriefAnnotation'],
  10334. typeName: map['TypeName'],
  10335. );
  10336. }
  10337. Map<String, dynamic> toJson() {
  10338. final map = super.toJson();
  10339. return map;
  10340. }
  10341. }
  10342. class AreaPerimeterDTO extends MultiMethodItemDTO{
  10343. AreaPerimeterDTO({
  10344. String? name,
  10345. String? description,
  10346. String? briefAnnotation,
  10347. String? typeName,
  10348. }) : super(
  10349. name: name,
  10350. description: description,
  10351. briefAnnotation: briefAnnotation,
  10352. typeName: typeName,
  10353. );
  10354. factory AreaPerimeterDTO.fromJson(Map<String, dynamic> map) {
  10355. return AreaPerimeterDTO(
  10356. name: map['Name'],
  10357. description: map['Description'],
  10358. briefAnnotation: map['BriefAnnotation'],
  10359. typeName: map['TypeName'],
  10360. );
  10361. }
  10362. Map<String, dynamic> toJson() {
  10363. final map = super.toJson();
  10364. return map;
  10365. }
  10366. }
  10367. class CircleDTO extends MeasureItemDTO{
  10368. CircleDTO({
  10369. String? name,
  10370. String? description,
  10371. String? briefAnnotation,
  10372. String? typeName,
  10373. }) : super(
  10374. name: name,
  10375. description: description,
  10376. briefAnnotation: briefAnnotation,
  10377. typeName: typeName,
  10378. );
  10379. factory CircleDTO.fromJson(Map<String, dynamic> map) {
  10380. return CircleDTO(
  10381. name: map['Name'],
  10382. description: map['Description'],
  10383. briefAnnotation: map['BriefAnnotation'],
  10384. typeName: map['TypeName'],
  10385. );
  10386. }
  10387. Map<String, dynamic> toJson() {
  10388. final map = super.toJson();
  10389. return map;
  10390. }
  10391. }
  10392. class CurveLengthDTO extends MultiMethodItemDTO{
  10393. CurveLengthDTO({
  10394. String? name,
  10395. String? description,
  10396. String? briefAnnotation,
  10397. String? typeName,
  10398. }) : super(
  10399. name: name,
  10400. description: description,
  10401. briefAnnotation: briefAnnotation,
  10402. typeName: typeName,
  10403. );
  10404. factory CurveLengthDTO.fromJson(Map<String, dynamic> map) {
  10405. return CurveLengthDTO(
  10406. name: map['Name'],
  10407. description: map['Description'],
  10408. briefAnnotation: map['BriefAnnotation'],
  10409. typeName: map['TypeName'],
  10410. );
  10411. }
  10412. Map<String, dynamic> toJson() {
  10413. final map = super.toJson();
  10414. return map;
  10415. }
  10416. }
  10417. class EllipseDTO extends MeasureItemDTO{
  10418. EllipseDTO({
  10419. String? name,
  10420. String? description,
  10421. String? briefAnnotation,
  10422. String? typeName,
  10423. }) : super(
  10424. name: name,
  10425. description: description,
  10426. briefAnnotation: briefAnnotation,
  10427. typeName: typeName,
  10428. );
  10429. factory EllipseDTO.fromJson(Map<String, dynamic> map) {
  10430. return EllipseDTO(
  10431. name: map['Name'],
  10432. description: map['Description'],
  10433. briefAnnotation: map['BriefAnnotation'],
  10434. typeName: map['TypeName'],
  10435. );
  10436. }
  10437. Map<String, dynamic> toJson() {
  10438. final map = super.toJson();
  10439. return map;
  10440. }
  10441. }
  10442. class LocationDTO extends MeasureItemDTO{
  10443. LocationDTO({
  10444. String? name,
  10445. String? description,
  10446. String? briefAnnotation,
  10447. String? typeName,
  10448. }) : super(
  10449. name: name,
  10450. description: description,
  10451. briefAnnotation: briefAnnotation,
  10452. typeName: typeName,
  10453. );
  10454. factory LocationDTO.fromJson(Map<String, dynamic> map) {
  10455. return LocationDTO(
  10456. name: map['Name'],
  10457. description: map['Description'],
  10458. briefAnnotation: map['BriefAnnotation'],
  10459. typeName: map['TypeName'],
  10460. );
  10461. }
  10462. Map<String, dynamic> toJson() {
  10463. final map = super.toJson();
  10464. return map;
  10465. }
  10466. }
  10467. class LWHStraightLineDTO extends MeasureItemDTO{
  10468. LWHStraightLineDTO({
  10469. String? name,
  10470. String? description,
  10471. String? briefAnnotation,
  10472. String? typeName,
  10473. }) : super(
  10474. name: name,
  10475. description: description,
  10476. briefAnnotation: briefAnnotation,
  10477. typeName: typeName,
  10478. );
  10479. factory LWHStraightLineDTO.fromJson(Map<String, dynamic> map) {
  10480. return LWHStraightLineDTO(
  10481. name: map['Name'],
  10482. description: map['Description'],
  10483. briefAnnotation: map['BriefAnnotation'],
  10484. typeName: map['TypeName'],
  10485. );
  10486. }
  10487. Map<String, dynamic> toJson() {
  10488. final map = super.toJson();
  10489. return map;
  10490. }
  10491. }
  10492. class PolylineDTO extends MeasureItemDTO{
  10493. PolylineDTO({
  10494. String? name,
  10495. String? description,
  10496. String? briefAnnotation,
  10497. String? typeName,
  10498. }) : super(
  10499. name: name,
  10500. description: description,
  10501. briefAnnotation: briefAnnotation,
  10502. typeName: typeName,
  10503. );
  10504. factory PolylineDTO.fromJson(Map<String, dynamic> map) {
  10505. return PolylineDTO(
  10506. name: map['Name'],
  10507. description: map['Description'],
  10508. briefAnnotation: map['BriefAnnotation'],
  10509. typeName: map['TypeName'],
  10510. );
  10511. }
  10512. Map<String, dynamic> toJson() {
  10513. final map = super.toJson();
  10514. return map;
  10515. }
  10516. }
  10517. class RectDTO extends MeasureItemDTO{
  10518. RectDTO({
  10519. String? name,
  10520. String? description,
  10521. String? briefAnnotation,
  10522. String? typeName,
  10523. }) : super(
  10524. name: name,
  10525. description: description,
  10526. briefAnnotation: briefAnnotation,
  10527. typeName: typeName,
  10528. );
  10529. factory RectDTO.fromJson(Map<String, dynamic> map) {
  10530. return RectDTO(
  10531. name: map['Name'],
  10532. description: map['Description'],
  10533. briefAnnotation: map['BriefAnnotation'],
  10534. typeName: map['TypeName'],
  10535. );
  10536. }
  10537. Map<String, dynamic> toJson() {
  10538. final map = super.toJson();
  10539. return map;
  10540. }
  10541. }
  10542. class StenosisDTO extends MultiMethodItemDTO{
  10543. StenosisDTO({
  10544. String? name,
  10545. String? description,
  10546. String? briefAnnotation,
  10547. String? typeName,
  10548. }) : super(
  10549. name: name,
  10550. description: description,
  10551. briefAnnotation: briefAnnotation,
  10552. typeName: typeName,
  10553. );
  10554. factory StenosisDTO.fromJson(Map<String, dynamic> map) {
  10555. return StenosisDTO(
  10556. name: map['Name'],
  10557. description: map['Description'],
  10558. briefAnnotation: map['BriefAnnotation'],
  10559. typeName: map['TypeName'],
  10560. );
  10561. }
  10562. Map<String, dynamic> toJson() {
  10563. final map = super.toJson();
  10564. return map;
  10565. }
  10566. }
  10567. class StraightLineDTO extends MeasureItemDTO{
  10568. StraightLineDTO({
  10569. String? name,
  10570. String? description,
  10571. String? briefAnnotation,
  10572. String? typeName,
  10573. }) : super(
  10574. name: name,
  10575. description: description,
  10576. briefAnnotation: briefAnnotation,
  10577. typeName: typeName,
  10578. );
  10579. factory StraightLineDTO.fromJson(Map<String, dynamic> map) {
  10580. return StraightLineDTO(
  10581. name: map['Name'],
  10582. description: map['Description'],
  10583. briefAnnotation: map['BriefAnnotation'],
  10584. typeName: map['TypeName'],
  10585. );
  10586. }
  10587. Map<String, dynamic> toJson() {
  10588. final map = super.toJson();
  10589. return map;
  10590. }
  10591. }
  10592. class VolumeDTO extends MultiMethodItemDTO{
  10593. VolumeDTO({
  10594. String? name,
  10595. String? description,
  10596. String? briefAnnotation,
  10597. String? typeName,
  10598. }) : super(
  10599. name: name,
  10600. description: description,
  10601. briefAnnotation: briefAnnotation,
  10602. typeName: typeName,
  10603. );
  10604. factory VolumeDTO.fromJson(Map<String, dynamic> map) {
  10605. return VolumeDTO(
  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 = super.toJson();
  10614. return map;
  10615. }
  10616. }
  10617. class CardiacAxisFeatureDTO extends MeasuredFeatureDTO{
  10618. String? logicalName;
  10619. String? logicalMode;
  10620. CardiacAxisFeatureDTO({
  10621. String? typeName,
  10622. this.logicalName,
  10623. this.logicalMode,
  10624. String? creator,
  10625. String? guid,
  10626. bool showChildFeatures = false,
  10627. DateTime? timeStamp,
  10628. bool isAutoCalculated = false,
  10629. List<MeasuredValueDTO >? values,
  10630. List<MeasuredFeatureDTO >? childFeatures,
  10631. }) : super(
  10632. typeName: typeName,
  10633. creator: creator,
  10634. guid: guid,
  10635. showChildFeatures: showChildFeatures,
  10636. timeStamp: timeStamp,
  10637. isAutoCalculated: isAutoCalculated,
  10638. values: values,
  10639. childFeatures: childFeatures,
  10640. );
  10641. factory CardiacAxisFeatureDTO.fromJson(Map<String, dynamic> map) {
  10642. return CardiacAxisFeatureDTO(
  10643. typeName: map['TypeName'],
  10644. logicalName: map['LogicalName'],
  10645. logicalMode: map['LogicalMode'],
  10646. creator: map['Creator'],
  10647. guid: map['Guid'],
  10648. showChildFeatures: map['ShowChildFeatures'],
  10649. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  10650. isAutoCalculated: map['IsAutoCalculated'],
  10651. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10652. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10653. );
  10654. }
  10655. Map<String, dynamic> toJson() {
  10656. final map = super.toJson();
  10657. if(logicalName != null)
  10658. map['LogicalName'] = logicalName;
  10659. if(logicalMode != null)
  10660. map['LogicalMode'] = logicalMode;
  10661. return map;
  10662. }
  10663. }
  10664. class CustomCalculatorFeatureDTO extends MeasuredFeatureDTO{
  10665. String? logicalName;
  10666. String? logicalMode;
  10667. CustomCalculatorFeatureDTO({
  10668. String? typeName,
  10669. this.logicalName,
  10670. this.logicalMode,
  10671. String? creator,
  10672. String? guid,
  10673. bool showChildFeatures = false,
  10674. DateTime? timeStamp,
  10675. bool isAutoCalculated = false,
  10676. List<MeasuredValueDTO >? values,
  10677. List<MeasuredFeatureDTO >? childFeatures,
  10678. }) : super(
  10679. typeName: typeName,
  10680. creator: creator,
  10681. guid: guid,
  10682. showChildFeatures: showChildFeatures,
  10683. timeStamp: timeStamp,
  10684. isAutoCalculated: isAutoCalculated,
  10685. values: values,
  10686. childFeatures: childFeatures,
  10687. );
  10688. factory CustomCalculatorFeatureDTO.fromJson(Map<String, dynamic> map) {
  10689. return CustomCalculatorFeatureDTO(
  10690. typeName: map['TypeName'],
  10691. logicalName: map['LogicalName'],
  10692. logicalMode: map['LogicalMode'],
  10693. creator: map['Creator'],
  10694. guid: map['Guid'],
  10695. showChildFeatures: map['ShowChildFeatures'],
  10696. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  10697. isAutoCalculated: map['IsAutoCalculated'],
  10698. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10699. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10700. );
  10701. }
  10702. Map<String, dynamic> toJson() {
  10703. final map = super.toJson();
  10704. if(logicalName != null)
  10705. map['LogicalName'] = logicalName;
  10706. if(logicalMode != null)
  10707. map['LogicalMode'] = logicalMode;
  10708. return map;
  10709. }
  10710. }
  10711. class GeometryFeatureDTO extends MeasuredFeatureDTO{
  10712. bool isVisible;
  10713. String? annotation;
  10714. String? briefAnnotation;
  10715. Unit xUnit;
  10716. Unit yUnit;
  10717. bool showAnnotation;
  10718. bool showCalliper;
  10719. List<PointDTO >? points;
  10720. GeometryFeatureDTO({
  10721. this.isVisible = false,
  10722. this.annotation,
  10723. this.briefAnnotation,
  10724. this.xUnit = Unit.None,
  10725. this.yUnit = Unit.None,
  10726. this.showAnnotation = false,
  10727. this.showCalliper = false,
  10728. this.points,
  10729. String? typeName,
  10730. String? creator,
  10731. String? guid,
  10732. bool showChildFeatures = false,
  10733. DateTime? timeStamp,
  10734. bool isAutoCalculated = false,
  10735. List<MeasuredValueDTO >? values,
  10736. List<MeasuredFeatureDTO >? childFeatures,
  10737. }) : super(
  10738. typeName: typeName,
  10739. creator: creator,
  10740. guid: guid,
  10741. showChildFeatures: showChildFeatures,
  10742. timeStamp: timeStamp,
  10743. isAutoCalculated: isAutoCalculated,
  10744. values: values,
  10745. childFeatures: childFeatures,
  10746. );
  10747. factory GeometryFeatureDTO.fromJson(Map<String, dynamic> map) {
  10748. return GeometryFeatureDTO(
  10749. isVisible: map['IsVisible'],
  10750. annotation: map['Annotation'],
  10751. briefAnnotation: map['BriefAnnotation'],
  10752. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  10753. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  10754. showAnnotation: map['ShowAnnotation'],
  10755. showCalliper: map['ShowCalliper'],
  10756. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10757. typeName: map['TypeName'],
  10758. creator: map['Creator'],
  10759. guid: map['Guid'],
  10760. showChildFeatures: map['ShowChildFeatures'],
  10761. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  10762. isAutoCalculated: map['IsAutoCalculated'],
  10763. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10764. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10765. );
  10766. }
  10767. Map<String, dynamic> toJson() {
  10768. final map = super.toJson();
  10769. map['IsVisible'] = isVisible;
  10770. if(annotation != null)
  10771. map['Annotation'] = annotation;
  10772. if(briefAnnotation != null)
  10773. map['BriefAnnotation'] = briefAnnotation;
  10774. map['XUnit'] = xUnit.index;
  10775. map['YUnit'] = yUnit.index;
  10776. map['ShowAnnotation'] = showAnnotation;
  10777. map['ShowCalliper'] = showCalliper;
  10778. if(points != null)
  10779. map['Points'] = points;
  10780. return map;
  10781. }
  10782. }
  10783. class CardiacCycleDTO {
  10784. int index;
  10785. PointDTO? systoleStart;
  10786. PointDTO? diastoleEnd;
  10787. PointDTO? peakSystolic;
  10788. PointDTO? minimumAbsoluteVelocity;
  10789. CardiacCycleDTO({
  10790. this.index = 0,
  10791. this.systoleStart,
  10792. this.diastoleEnd,
  10793. this.peakSystolic,
  10794. this.minimumAbsoluteVelocity,
  10795. });
  10796. factory CardiacCycleDTO.fromJson(Map<String, dynamic> map) {
  10797. return CardiacCycleDTO(
  10798. index: map['Index'],
  10799. systoleStart: map['SystoleStart'] != null ? PointDTO.fromJson(map['SystoleStart']) : null,
  10800. diastoleEnd: map['DiastoleEnd'] != null ? PointDTO.fromJson(map['DiastoleEnd']) : null,
  10801. peakSystolic: map['PeakSystolic'] != null ? PointDTO.fromJson(map['PeakSystolic']) : null,
  10802. minimumAbsoluteVelocity: map['MinimumAbsoluteVelocity'] != null ? PointDTO.fromJson(map['MinimumAbsoluteVelocity']) : null,
  10803. );
  10804. }
  10805. Map<String, dynamic> toJson() {
  10806. final map = Map<String, dynamic>();
  10807. map['Index'] = index;
  10808. if(systoleStart != null)
  10809. map['SystoleStart'] = systoleStart;
  10810. if(diastoleEnd != null)
  10811. map['DiastoleEnd'] = diastoleEnd;
  10812. if(peakSystolic != null)
  10813. map['PeakSystolic'] = peakSystolic;
  10814. if(minimumAbsoluteVelocity != null)
  10815. map['MinimumAbsoluteVelocity'] = minimumAbsoluteVelocity;
  10816. return map;
  10817. }
  10818. }
  10819. class GrowthPercentileDTO {
  10820. int oBTableCategory;
  10821. String? tableAuthor;
  10822. String? measureItem;
  10823. int gAinDays;
  10824. int status;
  10825. double value;
  10826. double tableDataLimitation;
  10827. double zScoreValue;
  10828. int zScoreStatus;
  10829. GrowthPercentileDTO({
  10830. this.oBTableCategory = 0,
  10831. this.tableAuthor,
  10832. this.measureItem,
  10833. this.gAinDays = 0,
  10834. this.status = 0,
  10835. this.value = 0,
  10836. this.tableDataLimitation = 0,
  10837. this.zScoreValue = 0,
  10838. this.zScoreStatus = 0,
  10839. });
  10840. factory GrowthPercentileDTO.fromJson(Map<String, dynamic> map) {
  10841. return GrowthPercentileDTO(
  10842. oBTableCategory: map['OBTableCategory'],
  10843. tableAuthor: map['TableAuthor'],
  10844. measureItem: map['MeasureItem'],
  10845. gAinDays: map['GAinDays'],
  10846. status: map['Status'],
  10847. value: double.parse(map['Value'].toString()),
  10848. tableDataLimitation: double.parse(map['TableDataLimitation'].toString()),
  10849. zScoreValue: double.parse(map['ZScoreValue'].toString()),
  10850. zScoreStatus: map['ZScoreStatus'],
  10851. );
  10852. }
  10853. Map<String, dynamic> toJson() {
  10854. final map = Map<String, dynamic>();
  10855. map['OBTableCategory'] = oBTableCategory;
  10856. if(tableAuthor != null)
  10857. map['TableAuthor'] = tableAuthor;
  10858. if(measureItem != null)
  10859. map['MeasureItem'] = measureItem;
  10860. map['GAinDays'] = gAinDays;
  10861. map['Status'] = status;
  10862. map['Value'] = value;
  10863. map['TableDataLimitation'] = tableDataLimitation;
  10864. map['ZScoreValue'] = zScoreValue;
  10865. map['ZScoreStatus'] = zScoreStatus;
  10866. return map;
  10867. }
  10868. }
  10869. class GrowthAgeDTO {
  10870. int oBTableCategory;
  10871. String? tableAuthor;
  10872. String? measureItem;
  10873. int days;
  10874. int status;
  10875. int minDays;
  10876. int maxDays;
  10877. GrowthAgeDTO({
  10878. this.oBTableCategory = 0,
  10879. this.tableAuthor,
  10880. this.measureItem,
  10881. this.days = 0,
  10882. this.status = 0,
  10883. this.minDays = 0,
  10884. this.maxDays = 0,
  10885. });
  10886. factory GrowthAgeDTO.fromJson(Map<String, dynamic> map) {
  10887. return GrowthAgeDTO(
  10888. oBTableCategory: map['OBTableCategory'],
  10889. tableAuthor: map['TableAuthor'],
  10890. measureItem: map['MeasureItem'],
  10891. days: map['Days'],
  10892. status: map['Status'],
  10893. minDays: map['MinDays'],
  10894. maxDays: map['MaxDays'],
  10895. );
  10896. }
  10897. Map<String, dynamic> toJson() {
  10898. final map = Map<String, dynamic>();
  10899. map['OBTableCategory'] = oBTableCategory;
  10900. if(tableAuthor != null)
  10901. map['TableAuthor'] = tableAuthor;
  10902. if(measureItem != null)
  10903. map['MeasureItem'] = measureItem;
  10904. map['Days'] = days;
  10905. map['Status'] = status;
  10906. map['MinDays'] = minDays;
  10907. map['MaxDays'] = maxDays;
  10908. return map;
  10909. }
  10910. }
  10911. class FetalGrowthIndexDTO {
  10912. GrowthPercentileDTO? percentile;
  10913. GrowthAgeDTO? growthAge;
  10914. DateTime? estimateDueDate;
  10915. FetalGrowthIndexDTO({
  10916. this.percentile,
  10917. this.growthAge,
  10918. this.estimateDueDate,
  10919. });
  10920. factory FetalGrowthIndexDTO.fromJson(Map<String, dynamic> map) {
  10921. return FetalGrowthIndexDTO(
  10922. percentile: map['Percentile'] != null ? GrowthPercentileDTO.fromJson(map['Percentile']) : null,
  10923. growthAge: map['GrowthAge'] != null ? GrowthAgeDTO.fromJson(map['GrowthAge']) : null,
  10924. estimateDueDate: map['EstimateDueDate'] != null ? DateTime.parse(map['EstimateDueDate']) : null,
  10925. );
  10926. }
  10927. Map<String, dynamic> toJson() {
  10928. final map = Map<String, dynamic>();
  10929. if(percentile != null)
  10930. map['Percentile'] = percentile;
  10931. if(growthAge != null)
  10932. map['GrowthAge'] = growthAge;
  10933. if(estimateDueDate != null)
  10934. map['EstimateDueDate'] = JsonRpcUtils.dateFormat(estimateDueDate!);
  10935. return map;
  10936. }
  10937. }
  10938. class FloatValueDTO extends MeasuredValueDTO{
  10939. FetalGrowthIndexDTO? fetalGrowthIndex;
  10940. String? typeName;
  10941. String? name;
  10942. String? description;
  10943. bool worksheetAffinity;
  10944. String? briefDescription;
  10945. String? value;
  10946. Unit unit;
  10947. Unit targetUnit;
  10948. FloatValueDTO({
  10949. this.fetalGrowthIndex,
  10950. this.typeName,
  10951. this.name,
  10952. this.description,
  10953. this.worksheetAffinity = false,
  10954. this.briefDescription,
  10955. this.value,
  10956. this.unit = Unit.None,
  10957. this.targetUnit = Unit.None,
  10958. });
  10959. factory FloatValueDTO.fromJson(Map<String, dynamic> map) {
  10960. return FloatValueDTO(
  10961. fetalGrowthIndex: map['FetalGrowthIndex'] != null ? FetalGrowthIndexDTO.fromJson(map['FetalGrowthIndex']) : null,
  10962. typeName: map['TypeName'],
  10963. name: map['Name'],
  10964. description: map['Description'],
  10965. worksheetAffinity: map['WorksheetAffinity'],
  10966. briefDescription: map['BriefDescription'],
  10967. value: map['Value'],
  10968. unit: Unit.values.firstWhere((e) => e.index == map['Unit']),
  10969. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  10970. );
  10971. }
  10972. Map<String, dynamic> toJson() {
  10973. final map = super.toJson();
  10974. return map;
  10975. }
  10976. }
  10977. class DopplerTraceFeatureDTO extends GeometryFeatureDTO{
  10978. int avgHeartCycle;
  10979. ASETypeEnum traceType;
  10980. List<PointDTO >? maxTraceLine;
  10981. List<CardiacCycleDTO >? cardiacCycles;
  10982. List<FloatValueDTO >? autoMeasureValues;
  10983. DopplerTraceFeatureDTO({
  10984. String? typeName,
  10985. this.avgHeartCycle = 0,
  10986. this.traceType = ASETypeEnum.Off,
  10987. this.maxTraceLine,
  10988. this.cardiacCycles,
  10989. this.autoMeasureValues,
  10990. bool isVisible = false,
  10991. String? annotation,
  10992. String? briefAnnotation,
  10993. Unit xUnit = Unit.None,
  10994. Unit yUnit = Unit.None,
  10995. bool showAnnotation = false,
  10996. bool showCalliper = false,
  10997. List<PointDTO >? points,
  10998. String? creator,
  10999. String? guid,
  11000. bool showChildFeatures = false,
  11001. DateTime? timeStamp,
  11002. bool isAutoCalculated = false,
  11003. List<MeasuredValueDTO >? values,
  11004. List<MeasuredFeatureDTO >? childFeatures,
  11005. }) : super(
  11006. isVisible: isVisible,
  11007. annotation: annotation,
  11008. briefAnnotation: briefAnnotation,
  11009. xUnit: xUnit,
  11010. yUnit: yUnit,
  11011. showAnnotation: showAnnotation,
  11012. showCalliper: showCalliper,
  11013. points: points,
  11014. typeName: typeName,
  11015. creator: creator,
  11016. guid: guid,
  11017. showChildFeatures: showChildFeatures,
  11018. timeStamp: timeStamp,
  11019. isAutoCalculated: isAutoCalculated,
  11020. values: values,
  11021. childFeatures: childFeatures,
  11022. );
  11023. factory DopplerTraceFeatureDTO.fromJson(Map<String, dynamic> map) {
  11024. return DopplerTraceFeatureDTO(
  11025. typeName: map['TypeName'],
  11026. avgHeartCycle: map['AvgHeartCycle'],
  11027. traceType: ASETypeEnum.values.firstWhere((e) => e.index == map['TraceType']),
  11028. maxTraceLine: map['MaxTraceLine'] != null ? (map['MaxTraceLine'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11029. cardiacCycles: map['CardiacCycles'] != null ? (map['CardiacCycles'] as List).map((e)=>CardiacCycleDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11030. autoMeasureValues: map['AutoMeasureValues'] != null ? (map['AutoMeasureValues'] as List).map((e)=>FloatValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11031. isVisible: map['IsVisible'],
  11032. annotation: map['Annotation'],
  11033. briefAnnotation: map['BriefAnnotation'],
  11034. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11035. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11036. showAnnotation: map['ShowAnnotation'],
  11037. showCalliper: map['ShowCalliper'],
  11038. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11039. creator: map['Creator'],
  11040. guid: map['Guid'],
  11041. showChildFeatures: map['ShowChildFeatures'],
  11042. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11043. isAutoCalculated: map['IsAutoCalculated'],
  11044. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11045. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11046. );
  11047. }
  11048. Map<String, dynamic> toJson() {
  11049. final map = super.toJson();
  11050. map['AvgHeartCycle'] = avgHeartCycle;
  11051. map['TraceType'] = traceType.index;
  11052. if(maxTraceLine != null)
  11053. map['MaxTraceLine'] = maxTraceLine;
  11054. if(cardiacCycles != null)
  11055. map['CardiacCycles'] = cardiacCycles;
  11056. if(autoMeasureValues != null)
  11057. map['AutoMeasureValues'] = autoMeasureValues;
  11058. return map;
  11059. }
  11060. }
  11061. class EllipseFeatureDTO extends GeometryFeatureDTO{
  11062. double angle;
  11063. EllipseFeatureDTO({
  11064. String? typeName,
  11065. this.angle = 0,
  11066. bool isVisible = false,
  11067. String? annotation,
  11068. String? briefAnnotation,
  11069. Unit xUnit = Unit.None,
  11070. Unit yUnit = Unit.None,
  11071. bool showAnnotation = false,
  11072. bool showCalliper = false,
  11073. List<PointDTO >? points,
  11074. String? creator,
  11075. String? guid,
  11076. bool showChildFeatures = false,
  11077. DateTime? timeStamp,
  11078. bool isAutoCalculated = false,
  11079. List<MeasuredValueDTO >? values,
  11080. List<MeasuredFeatureDTO >? childFeatures,
  11081. }) : super(
  11082. isVisible: isVisible,
  11083. annotation: annotation,
  11084. briefAnnotation: briefAnnotation,
  11085. xUnit: xUnit,
  11086. yUnit: yUnit,
  11087. showAnnotation: showAnnotation,
  11088. showCalliper: showCalliper,
  11089. points: points,
  11090. typeName: typeName,
  11091. creator: creator,
  11092. guid: guid,
  11093. showChildFeatures: showChildFeatures,
  11094. timeStamp: timeStamp,
  11095. isAutoCalculated: isAutoCalculated,
  11096. values: values,
  11097. childFeatures: childFeatures,
  11098. );
  11099. factory EllipseFeatureDTO.fromJson(Map<String, dynamic> map) {
  11100. return EllipseFeatureDTO(
  11101. typeName: map['TypeName'],
  11102. angle: double.parse(map['Angle'].toString()),
  11103. isVisible: map['IsVisible'],
  11104. annotation: map['Annotation'],
  11105. briefAnnotation: map['BriefAnnotation'],
  11106. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11107. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11108. showAnnotation: map['ShowAnnotation'],
  11109. showCalliper: map['ShowCalliper'],
  11110. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11111. creator: map['Creator'],
  11112. guid: map['Guid'],
  11113. showChildFeatures: map['ShowChildFeatures'],
  11114. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11115. isAutoCalculated: map['IsAutoCalculated'],
  11116. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11117. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11118. );
  11119. }
  11120. Map<String, dynamic> toJson() {
  11121. final map = super.toJson();
  11122. map['Angle'] = angle;
  11123. return map;
  11124. }
  11125. }
  11126. class AutoMeasureGeometryDTO {
  11127. int index;
  11128. List<PointDTO >? points;
  11129. AutoMeasureGeometryDTO({
  11130. this.index = 0,
  11131. this.points,
  11132. });
  11133. factory AutoMeasureGeometryDTO.fromJson(Map<String, dynamic> map) {
  11134. return AutoMeasureGeometryDTO(
  11135. index: map['Index'],
  11136. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11137. );
  11138. }
  11139. Map<String, dynamic> toJson() {
  11140. final map = Map<String, dynamic>();
  11141. map['Index'] = index;
  11142. if(points != null)
  11143. map['Points'] = points;
  11144. return map;
  11145. }
  11146. }
  11147. class FollicleShapeFeatureDTO extends GeometryFeatureDTO{
  11148. List<AutoMeasureGeometryDTO >? geometries;
  11149. FollicleShapeFeatureDTO({
  11150. String? typeName,
  11151. this.geometries,
  11152. bool isVisible = false,
  11153. String? annotation,
  11154. String? briefAnnotation,
  11155. Unit xUnit = Unit.None,
  11156. Unit yUnit = Unit.None,
  11157. bool showAnnotation = false,
  11158. bool showCalliper = false,
  11159. List<PointDTO >? points,
  11160. String? creator,
  11161. String? guid,
  11162. bool showChildFeatures = false,
  11163. DateTime? timeStamp,
  11164. bool isAutoCalculated = false,
  11165. List<MeasuredValueDTO >? values,
  11166. List<MeasuredFeatureDTO >? childFeatures,
  11167. }) : super(
  11168. isVisible: isVisible,
  11169. annotation: annotation,
  11170. briefAnnotation: briefAnnotation,
  11171. xUnit: xUnit,
  11172. yUnit: yUnit,
  11173. showAnnotation: showAnnotation,
  11174. showCalliper: showCalliper,
  11175. points: points,
  11176. typeName: typeName,
  11177. creator: creator,
  11178. guid: guid,
  11179. showChildFeatures: showChildFeatures,
  11180. timeStamp: timeStamp,
  11181. isAutoCalculated: isAutoCalculated,
  11182. values: values,
  11183. childFeatures: childFeatures,
  11184. );
  11185. factory FollicleShapeFeatureDTO.fromJson(Map<String, dynamic> map) {
  11186. return FollicleShapeFeatureDTO(
  11187. typeName: map['TypeName'],
  11188. geometries: map['Geometries'] != null ? (map['Geometries'] as List).map((e)=>AutoMeasureGeometryDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11189. isVisible: map['IsVisible'],
  11190. annotation: map['Annotation'],
  11191. briefAnnotation: map['BriefAnnotation'],
  11192. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11193. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11194. showAnnotation: map['ShowAnnotation'],
  11195. showCalliper: map['ShowCalliper'],
  11196. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11197. creator: map['Creator'],
  11198. guid: map['Guid'],
  11199. showChildFeatures: map['ShowChildFeatures'],
  11200. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11201. isAutoCalculated: map['IsAutoCalculated'],
  11202. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11203. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11204. );
  11205. }
  11206. Map<String, dynamic> toJson() {
  11207. final map = super.toJson();
  11208. if(geometries != null)
  11209. map['Geometries'] = geometries;
  11210. return map;
  11211. }
  11212. }
  11213. class LocationFeatureDTO extends GeometryFeatureDTO{
  11214. LocationFeatureDTO({
  11215. String? typeName,
  11216. bool isVisible = false,
  11217. String? annotation,
  11218. String? briefAnnotation,
  11219. Unit xUnit = Unit.None,
  11220. Unit yUnit = Unit.None,
  11221. bool showAnnotation = false,
  11222. bool showCalliper = false,
  11223. List<PointDTO >? points,
  11224. String? creator,
  11225. String? guid,
  11226. bool showChildFeatures = false,
  11227. DateTime? timeStamp,
  11228. bool isAutoCalculated = false,
  11229. List<MeasuredValueDTO >? values,
  11230. List<MeasuredFeatureDTO >? childFeatures,
  11231. }) : super(
  11232. isVisible: isVisible,
  11233. annotation: annotation,
  11234. briefAnnotation: briefAnnotation,
  11235. xUnit: xUnit,
  11236. yUnit: yUnit,
  11237. showAnnotation: showAnnotation,
  11238. showCalliper: showCalliper,
  11239. points: points,
  11240. typeName: typeName,
  11241. creator: creator,
  11242. guid: guid,
  11243. showChildFeatures: showChildFeatures,
  11244. timeStamp: timeStamp,
  11245. isAutoCalculated: isAutoCalculated,
  11246. values: values,
  11247. childFeatures: childFeatures,
  11248. );
  11249. factory LocationFeatureDTO.fromJson(Map<String, dynamic> map) {
  11250. return LocationFeatureDTO(
  11251. typeName: map['TypeName'],
  11252. isVisible: map['IsVisible'],
  11253. annotation: map['Annotation'],
  11254. briefAnnotation: map['BriefAnnotation'],
  11255. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11256. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11257. showAnnotation: map['ShowAnnotation'],
  11258. showCalliper: map['ShowCalliper'],
  11259. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11260. creator: map['Creator'],
  11261. guid: map['Guid'],
  11262. showChildFeatures: map['ShowChildFeatures'],
  11263. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11264. isAutoCalculated: map['IsAutoCalculated'],
  11265. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11266. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11267. );
  11268. }
  11269. Map<String, dynamic> toJson() {
  11270. final map = super.toJson();
  11271. return map;
  11272. }
  11273. }
  11274. class RayFeatureDTO extends LocationFeatureDTO{
  11275. bool isReverse;
  11276. double angle;
  11277. RayFeatureDTO({
  11278. String? typeName,
  11279. this.isReverse = false,
  11280. this.angle = 0,
  11281. bool isVisible = false,
  11282. String? annotation,
  11283. String? briefAnnotation,
  11284. Unit xUnit = Unit.None,
  11285. Unit yUnit = Unit.None,
  11286. bool showAnnotation = false,
  11287. bool showCalliper = false,
  11288. List<PointDTO >? points,
  11289. String? creator,
  11290. String? guid,
  11291. bool showChildFeatures = false,
  11292. DateTime? timeStamp,
  11293. bool isAutoCalculated = false,
  11294. List<MeasuredValueDTO >? values,
  11295. List<MeasuredFeatureDTO >? childFeatures,
  11296. }) : super(
  11297. typeName: typeName,
  11298. isVisible: isVisible,
  11299. annotation: annotation,
  11300. briefAnnotation: briefAnnotation,
  11301. xUnit: xUnit,
  11302. yUnit: yUnit,
  11303. showAnnotation: showAnnotation,
  11304. showCalliper: showCalliper,
  11305. points: points,
  11306. creator: creator,
  11307. guid: guid,
  11308. showChildFeatures: showChildFeatures,
  11309. timeStamp: timeStamp,
  11310. isAutoCalculated: isAutoCalculated,
  11311. values: values,
  11312. childFeatures: childFeatures,
  11313. );
  11314. factory RayFeatureDTO.fromJson(Map<String, dynamic> map) {
  11315. return RayFeatureDTO(
  11316. typeName: map['TypeName'],
  11317. isReverse: map['IsReverse'],
  11318. angle: double.parse(map['Angle'].toString()),
  11319. isVisible: map['IsVisible'],
  11320. annotation: map['Annotation'],
  11321. briefAnnotation: map['BriefAnnotation'],
  11322. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11323. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11324. showAnnotation: map['ShowAnnotation'],
  11325. showCalliper: map['ShowCalliper'],
  11326. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11327. creator: map['Creator'],
  11328. guid: map['Guid'],
  11329. showChildFeatures: map['ShowChildFeatures'],
  11330. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11331. isAutoCalculated: map['IsAutoCalculated'],
  11332. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11333. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11334. );
  11335. }
  11336. Map<String, dynamic> toJson() {
  11337. final map = super.toJson();
  11338. map['IsReverse'] = isReverse;
  11339. map['Angle'] = angle;
  11340. return map;
  11341. }
  11342. }
  11343. class ManualTraceFeatureDTO extends GeometryFeatureDTO{
  11344. ManualTraceFeatureDTO({
  11345. String? typeName,
  11346. bool isVisible = false,
  11347. String? annotation,
  11348. String? briefAnnotation,
  11349. Unit xUnit = Unit.None,
  11350. Unit yUnit = Unit.None,
  11351. bool showAnnotation = false,
  11352. bool showCalliper = false,
  11353. List<PointDTO >? points,
  11354. String? creator,
  11355. String? guid,
  11356. bool showChildFeatures = false,
  11357. DateTime? timeStamp,
  11358. bool isAutoCalculated = false,
  11359. List<MeasuredValueDTO >? values,
  11360. List<MeasuredFeatureDTO >? childFeatures,
  11361. }) : super(
  11362. isVisible: isVisible,
  11363. annotation: annotation,
  11364. briefAnnotation: briefAnnotation,
  11365. xUnit: xUnit,
  11366. yUnit: yUnit,
  11367. showAnnotation: showAnnotation,
  11368. showCalliper: showCalliper,
  11369. points: points,
  11370. typeName: typeName,
  11371. creator: creator,
  11372. guid: guid,
  11373. showChildFeatures: showChildFeatures,
  11374. timeStamp: timeStamp,
  11375. isAutoCalculated: isAutoCalculated,
  11376. values: values,
  11377. childFeatures: childFeatures,
  11378. );
  11379. factory ManualTraceFeatureDTO.fromJson(Map<String, dynamic> map) {
  11380. return ManualTraceFeatureDTO(
  11381. typeName: map['TypeName'],
  11382. isVisible: map['IsVisible'],
  11383. annotation: map['Annotation'],
  11384. briefAnnotation: map['BriefAnnotation'],
  11385. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11386. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11387. showAnnotation: map['ShowAnnotation'],
  11388. showCalliper: map['ShowCalliper'],
  11389. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11390. creator: map['Creator'],
  11391. guid: map['Guid'],
  11392. showChildFeatures: map['ShowChildFeatures'],
  11393. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11394. isAutoCalculated: map['IsAutoCalculated'],
  11395. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11396. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11397. );
  11398. }
  11399. Map<String, dynamic> toJson() {
  11400. final map = super.toJson();
  11401. return map;
  11402. }
  11403. }
  11404. class PolyLineFeatureDTO extends MeasuredFeatureDTO{
  11405. bool isClosed;
  11406. double splineTension;
  11407. PolyLineFeatureDTO({
  11408. String? typeName,
  11409. this.isClosed = false,
  11410. this.splineTension = 0,
  11411. String? creator,
  11412. String? guid,
  11413. bool showChildFeatures = false,
  11414. DateTime? timeStamp,
  11415. bool isAutoCalculated = false,
  11416. List<MeasuredValueDTO >? values,
  11417. List<MeasuredFeatureDTO >? childFeatures,
  11418. }) : super(
  11419. typeName: typeName,
  11420. creator: creator,
  11421. guid: guid,
  11422. showChildFeatures: showChildFeatures,
  11423. timeStamp: timeStamp,
  11424. isAutoCalculated: isAutoCalculated,
  11425. values: values,
  11426. childFeatures: childFeatures,
  11427. );
  11428. factory PolyLineFeatureDTO.fromJson(Map<String, dynamic> map) {
  11429. return PolyLineFeatureDTO(
  11430. typeName: map['TypeName'],
  11431. isClosed: map['IsClosed'],
  11432. splineTension: double.parse(map['SplineTension'].toString()),
  11433. creator: map['Creator'],
  11434. guid: map['Guid'],
  11435. showChildFeatures: map['ShowChildFeatures'],
  11436. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11437. isAutoCalculated: map['IsAutoCalculated'],
  11438. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11439. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11440. );
  11441. }
  11442. Map<String, dynamic> toJson() {
  11443. final map = super.toJson();
  11444. map['IsClosed'] = isClosed;
  11445. map['SplineTension'] = splineTension;
  11446. return map;
  11447. }
  11448. }
  11449. class TraceLineFeatureDTO extends PolyLineFeatureDTO{
  11450. TraceLineFeatureDTO({
  11451. String? typeName,
  11452. bool isClosed = false,
  11453. double splineTension = 0,
  11454. String? creator,
  11455. String? guid,
  11456. bool showChildFeatures = false,
  11457. DateTime? timeStamp,
  11458. bool isAutoCalculated = false,
  11459. List<MeasuredValueDTO >? values,
  11460. List<MeasuredFeatureDTO >? childFeatures,
  11461. }) : super(
  11462. typeName: typeName,
  11463. isClosed: isClosed,
  11464. splineTension: splineTension,
  11465. creator: creator,
  11466. guid: guid,
  11467. showChildFeatures: showChildFeatures,
  11468. timeStamp: timeStamp,
  11469. isAutoCalculated: isAutoCalculated,
  11470. values: values,
  11471. childFeatures: childFeatures,
  11472. );
  11473. factory TraceLineFeatureDTO.fromJson(Map<String, dynamic> map) {
  11474. return TraceLineFeatureDTO(
  11475. typeName: map['TypeName'],
  11476. isClosed: map['IsClosed'],
  11477. splineTension: double.parse(map['SplineTension'].toString()),
  11478. creator: map['Creator'],
  11479. guid: map['Guid'],
  11480. showChildFeatures: map['ShowChildFeatures'],
  11481. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11482. isAutoCalculated: map['IsAutoCalculated'],
  11483. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11484. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11485. );
  11486. }
  11487. Map<String, dynamic> toJson() {
  11488. final map = super.toJson();
  11489. return map;
  11490. }
  11491. }
  11492. class SimpsonPathFeatureDTO extends TraceLineFeatureDTO{
  11493. PointDTO? centerLineMovablePoint;
  11494. SimpsonPathFeatureDTO({
  11495. String? typeName,
  11496. this.centerLineMovablePoint,
  11497. bool isClosed = false,
  11498. double splineTension = 0,
  11499. String? creator,
  11500. String? guid,
  11501. bool showChildFeatures = false,
  11502. DateTime? timeStamp,
  11503. bool isAutoCalculated = false,
  11504. List<MeasuredValueDTO >? values,
  11505. List<MeasuredFeatureDTO >? childFeatures,
  11506. }) : super(
  11507. typeName: typeName,
  11508. isClosed: isClosed,
  11509. splineTension: splineTension,
  11510. creator: creator,
  11511. guid: guid,
  11512. showChildFeatures: showChildFeatures,
  11513. timeStamp: timeStamp,
  11514. isAutoCalculated: isAutoCalculated,
  11515. values: values,
  11516. childFeatures: childFeatures,
  11517. );
  11518. factory SimpsonPathFeatureDTO.fromJson(Map<String, dynamic> map) {
  11519. return SimpsonPathFeatureDTO(
  11520. typeName: map['TypeName'],
  11521. centerLineMovablePoint: map['CenterLineMovablePoint'] != null ? PointDTO.fromJson(map['CenterLineMovablePoint']) : null,
  11522. isClosed: map['IsClosed'],
  11523. splineTension: double.parse(map['SplineTension'].toString()),
  11524. creator: map['Creator'],
  11525. guid: map['Guid'],
  11526. showChildFeatures: map['ShowChildFeatures'],
  11527. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11528. isAutoCalculated: map['IsAutoCalculated'],
  11529. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11530. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11531. );
  11532. }
  11533. Map<String, dynamic> toJson() {
  11534. final map = super.toJson();
  11535. if(centerLineMovablePoint != null)
  11536. map['CenterLineMovablePoint'] = centerLineMovablePoint;
  11537. return map;
  11538. }
  11539. }
  11540. class RectFeatureDTO extends GeometryFeatureDTO{
  11541. bool showRootFeature;
  11542. List<MeasuredFeatureDTO >? autoLines;
  11543. RectFeatureDTO({
  11544. String? typeName,
  11545. this.showRootFeature = false,
  11546. this.autoLines,
  11547. bool isVisible = false,
  11548. String? annotation,
  11549. String? briefAnnotation,
  11550. Unit xUnit = Unit.None,
  11551. Unit yUnit = Unit.None,
  11552. bool showAnnotation = false,
  11553. bool showCalliper = false,
  11554. List<PointDTO >? points,
  11555. String? creator,
  11556. String? guid,
  11557. bool showChildFeatures = false,
  11558. DateTime? timeStamp,
  11559. bool isAutoCalculated = false,
  11560. List<MeasuredValueDTO >? values,
  11561. List<MeasuredFeatureDTO >? childFeatures,
  11562. }) : super(
  11563. isVisible: isVisible,
  11564. annotation: annotation,
  11565. briefAnnotation: briefAnnotation,
  11566. xUnit: xUnit,
  11567. yUnit: yUnit,
  11568. showAnnotation: showAnnotation,
  11569. showCalliper: showCalliper,
  11570. points: points,
  11571. typeName: typeName,
  11572. creator: creator,
  11573. guid: guid,
  11574. showChildFeatures: showChildFeatures,
  11575. timeStamp: timeStamp,
  11576. isAutoCalculated: isAutoCalculated,
  11577. values: values,
  11578. childFeatures: childFeatures,
  11579. );
  11580. factory RectFeatureDTO.fromJson(Map<String, dynamic> map) {
  11581. return RectFeatureDTO(
  11582. typeName: map['TypeName'],
  11583. showRootFeature: map['ShowRootFeature'],
  11584. autoLines: map['AutoLines'] != null ? (map['AutoLines'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11585. isVisible: map['IsVisible'],
  11586. annotation: map['Annotation'],
  11587. briefAnnotation: map['BriefAnnotation'],
  11588. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11589. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11590. showAnnotation: map['ShowAnnotation'],
  11591. showCalliper: map['ShowCalliper'],
  11592. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11593. creator: map['Creator'],
  11594. guid: map['Guid'],
  11595. showChildFeatures: map['ShowChildFeatures'],
  11596. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11597. isAutoCalculated: map['IsAutoCalculated'],
  11598. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11599. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11600. );
  11601. }
  11602. Map<String, dynamic> toJson() {
  11603. final map = super.toJson();
  11604. map['ShowRootFeature'] = showRootFeature;
  11605. if(autoLines != null)
  11606. map['AutoLines'] = autoLines;
  11607. return map;
  11608. }
  11609. }
  11610. class FollicleRectFeatureDTO extends RectFeatureDTO{
  11611. FollicleRectFeatureDTO({
  11612. String? typeName,
  11613. bool showRootFeature = false,
  11614. List<MeasuredFeatureDTO >? autoLines,
  11615. bool isVisible = false,
  11616. String? annotation,
  11617. String? briefAnnotation,
  11618. Unit xUnit = Unit.None,
  11619. Unit yUnit = Unit.None,
  11620. bool showAnnotation = false,
  11621. bool showCalliper = false,
  11622. List<PointDTO >? points,
  11623. String? creator,
  11624. String? guid,
  11625. bool showChildFeatures = false,
  11626. DateTime? timeStamp,
  11627. bool isAutoCalculated = false,
  11628. List<MeasuredValueDTO >? values,
  11629. List<MeasuredFeatureDTO >? childFeatures,
  11630. }) : super(
  11631. typeName: typeName,
  11632. showRootFeature: showRootFeature,
  11633. autoLines: autoLines,
  11634. isVisible: isVisible,
  11635. annotation: annotation,
  11636. briefAnnotation: briefAnnotation,
  11637. xUnit: xUnit,
  11638. yUnit: yUnit,
  11639. showAnnotation: showAnnotation,
  11640. showCalliper: showCalliper,
  11641. points: points,
  11642. creator: creator,
  11643. guid: guid,
  11644. showChildFeatures: showChildFeatures,
  11645. timeStamp: timeStamp,
  11646. isAutoCalculated: isAutoCalculated,
  11647. values: values,
  11648. childFeatures: childFeatures,
  11649. );
  11650. factory FollicleRectFeatureDTO.fromJson(Map<String, dynamic> map) {
  11651. return FollicleRectFeatureDTO(
  11652. typeName: map['TypeName'],
  11653. showRootFeature: map['ShowRootFeature'],
  11654. autoLines: map['AutoLines'] != null ? (map['AutoLines'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11655. isVisible: map['IsVisible'],
  11656. annotation: map['Annotation'],
  11657. briefAnnotation: map['BriefAnnotation'],
  11658. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11659. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11660. showAnnotation: map['ShowAnnotation'],
  11661. showCalliper: map['ShowCalliper'],
  11662. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11663. creator: map['Creator'],
  11664. guid: map['Guid'],
  11665. showChildFeatures: map['ShowChildFeatures'],
  11666. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11667. isAutoCalculated: map['IsAutoCalculated'],
  11668. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11669. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11670. );
  11671. }
  11672. Map<String, dynamic> toJson() {
  11673. final map = super.toJson();
  11674. return map;
  11675. }
  11676. }
  11677. class StraightLineFeatureDTO extends GeometryFeatureDTO{
  11678. StraightLineShapeEnum shapeType;
  11679. bool useDashLine;
  11680. StraightLineFeatureDTO({
  11681. String? typeName,
  11682. this.shapeType = StraightLineShapeEnum.StraightLine,
  11683. this.useDashLine = false,
  11684. bool isVisible = false,
  11685. String? annotation,
  11686. String? briefAnnotation,
  11687. Unit xUnit = Unit.None,
  11688. Unit yUnit = Unit.None,
  11689. bool showAnnotation = false,
  11690. bool showCalliper = false,
  11691. List<PointDTO >? points,
  11692. String? creator,
  11693. String? guid,
  11694. bool showChildFeatures = false,
  11695. DateTime? timeStamp,
  11696. bool isAutoCalculated = false,
  11697. List<MeasuredValueDTO >? values,
  11698. List<MeasuredFeatureDTO >? childFeatures,
  11699. }) : super(
  11700. isVisible: isVisible,
  11701. annotation: annotation,
  11702. briefAnnotation: briefAnnotation,
  11703. xUnit: xUnit,
  11704. yUnit: yUnit,
  11705. showAnnotation: showAnnotation,
  11706. showCalliper: showCalliper,
  11707. points: points,
  11708. typeName: typeName,
  11709. creator: creator,
  11710. guid: guid,
  11711. showChildFeatures: showChildFeatures,
  11712. timeStamp: timeStamp,
  11713. isAutoCalculated: isAutoCalculated,
  11714. values: values,
  11715. childFeatures: childFeatures,
  11716. );
  11717. factory StraightLineFeatureDTO.fromJson(Map<String, dynamic> map) {
  11718. return StraightLineFeatureDTO(
  11719. typeName: map['TypeName'],
  11720. shapeType: StraightLineShapeEnum.values.firstWhere((e) => e.index == map['ShapeType']),
  11721. useDashLine: map['UseDashLine'],
  11722. isVisible: map['IsVisible'],
  11723. annotation: map['Annotation'],
  11724. briefAnnotation: map['BriefAnnotation'],
  11725. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11726. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11727. showAnnotation: map['ShowAnnotation'],
  11728. showCalliper: map['ShowCalliper'],
  11729. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11730. creator: map['Creator'],
  11731. guid: map['Guid'],
  11732. showChildFeatures: map['ShowChildFeatures'],
  11733. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11734. isAutoCalculated: map['IsAutoCalculated'],
  11735. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11736. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11737. );
  11738. }
  11739. Map<String, dynamic> toJson() {
  11740. final map = super.toJson();
  11741. map['ShapeType'] = shapeType.index;
  11742. map['UseDashLine'] = useDashLine;
  11743. return map;
  11744. }
  11745. }
  11746. class VasPlaqueSplitterFeatureDTO extends GeometryFeatureDTO{
  11747. int maxZoneCount;
  11748. int currentZoneCount;
  11749. int angle;
  11750. List<PointDTO >? splitterLinesPoints;
  11751. VasPlaqueSplitterFeatureDTO({
  11752. String? typeName,
  11753. this.maxZoneCount = 0,
  11754. this.currentZoneCount = 0,
  11755. this.angle = 0,
  11756. bool isVisible = false,
  11757. this.splitterLinesPoints,
  11758. String? annotation,
  11759. String? briefAnnotation,
  11760. Unit xUnit = Unit.None,
  11761. Unit yUnit = Unit.None,
  11762. bool showAnnotation = false,
  11763. bool showCalliper = false,
  11764. List<PointDTO >? points,
  11765. String? creator,
  11766. String? guid,
  11767. bool showChildFeatures = false,
  11768. DateTime? timeStamp,
  11769. bool isAutoCalculated = false,
  11770. List<MeasuredValueDTO >? values,
  11771. List<MeasuredFeatureDTO >? childFeatures,
  11772. }) : super(
  11773. isVisible: isVisible,
  11774. annotation: annotation,
  11775. briefAnnotation: briefAnnotation,
  11776. xUnit: xUnit,
  11777. yUnit: yUnit,
  11778. showAnnotation: showAnnotation,
  11779. showCalliper: showCalliper,
  11780. points: points,
  11781. typeName: typeName,
  11782. creator: creator,
  11783. guid: guid,
  11784. showChildFeatures: showChildFeatures,
  11785. timeStamp: timeStamp,
  11786. isAutoCalculated: isAutoCalculated,
  11787. values: values,
  11788. childFeatures: childFeatures,
  11789. );
  11790. factory VasPlaqueSplitterFeatureDTO.fromJson(Map<String, dynamic> map) {
  11791. return VasPlaqueSplitterFeatureDTO(
  11792. typeName: map['TypeName'],
  11793. maxZoneCount: map['MaxZoneCount'],
  11794. currentZoneCount: map['CurrentZoneCount'],
  11795. angle: map['Angle'],
  11796. isVisible: map['IsVisible'],
  11797. splitterLinesPoints: map['SplitterLinesPoints'] != null ? (map['SplitterLinesPoints'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11798. annotation: map['Annotation'],
  11799. briefAnnotation: map['BriefAnnotation'],
  11800. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11801. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11802. showAnnotation: map['ShowAnnotation'],
  11803. showCalliper: map['ShowCalliper'],
  11804. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11805. creator: map['Creator'],
  11806. guid: map['Guid'],
  11807. showChildFeatures: map['ShowChildFeatures'],
  11808. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11809. isAutoCalculated: map['IsAutoCalculated'],
  11810. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11811. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11812. );
  11813. }
  11814. Map<String, dynamic> toJson() {
  11815. final map = super.toJson();
  11816. map['MaxZoneCount'] = maxZoneCount;
  11817. map['CurrentZoneCount'] = currentZoneCount;
  11818. map['Angle'] = angle;
  11819. if(splitterLinesPoints != null)
  11820. map['SplitterLinesPoints'] = splitterLinesPoints;
  11821. return map;
  11822. }
  11823. }
  11824. class GrowthNormalRangeDTO {
  11825. String? typeName;
  11826. String? tableAuthor;
  11827. String? measureItem;
  11828. int gAinDays;
  11829. int status;
  11830. double value;
  11831. double minValue;
  11832. double maxValue;
  11833. Unit valueUnit;
  11834. Unit targetUnit;
  11835. GrowthNormalRangeDTO({
  11836. this.typeName,
  11837. this.tableAuthor,
  11838. this.measureItem,
  11839. this.gAinDays = 0,
  11840. this.status = 0,
  11841. this.value = 0,
  11842. this.minValue = 0,
  11843. this.maxValue = 0,
  11844. this.valueUnit = Unit.None,
  11845. this.targetUnit = Unit.None,
  11846. });
  11847. factory GrowthNormalRangeDTO.fromJson(Map<String, dynamic> map) {
  11848. return GrowthNormalRangeDTO(
  11849. typeName: map['TypeName'],
  11850. tableAuthor: map['TableAuthor'],
  11851. measureItem: map['MeasureItem'],
  11852. gAinDays: map['GAinDays'],
  11853. status: map['Status'],
  11854. value: double.parse(map['Value'].toString()),
  11855. minValue: double.parse(map['MinValue'].toString()),
  11856. maxValue: double.parse(map['MaxValue'].toString()),
  11857. valueUnit: Unit.values.firstWhere((e) => e.index == map['ValueUnit']),
  11858. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  11859. );
  11860. }
  11861. Map<String, dynamic> toJson() {
  11862. final map = Map<String, dynamic>();
  11863. if(typeName != null)
  11864. map['TypeName'] = typeName;
  11865. if(tableAuthor != null)
  11866. map['TableAuthor'] = tableAuthor;
  11867. if(measureItem != null)
  11868. map['MeasureItem'] = measureItem;
  11869. map['GAinDays'] = gAinDays;
  11870. map['Status'] = status;
  11871. map['Value'] = value;
  11872. map['MinValue'] = minValue;
  11873. map['MaxValue'] = maxValue;
  11874. map['ValueUnit'] = valueUnit.index;
  11875. map['TargetUnit'] = targetUnit.index;
  11876. return map;
  11877. }
  11878. }
  11879. class EFWRepresentationDTO extends FloatValueDTO{
  11880. EFWRepresentationDTO({
  11881. FetalGrowthIndexDTO? fetalGrowthIndex,
  11882. String? typeName,
  11883. String? name,
  11884. String? description,
  11885. bool worksheetAffinity = false,
  11886. String? briefDescription,
  11887. String? value,
  11888. Unit unit = Unit.None,
  11889. Unit targetUnit = Unit.None,
  11890. }) : super(
  11891. fetalGrowthIndex: fetalGrowthIndex,
  11892. typeName: typeName,
  11893. name: name,
  11894. description: description,
  11895. worksheetAffinity: worksheetAffinity,
  11896. briefDescription: briefDescription,
  11897. value: value,
  11898. unit: unit,
  11899. targetUnit: targetUnit,
  11900. );
  11901. factory EFWRepresentationDTO.fromJson(Map<String, dynamic> map) {
  11902. return EFWRepresentationDTO(
  11903. fetalGrowthIndex: map['FetalGrowthIndex'] != null ? FetalGrowthIndexDTO.fromJson(map['FetalGrowthIndex']) : null,
  11904. typeName: map['TypeName'],
  11905. name: map['Name'],
  11906. description: map['Description'],
  11907. worksheetAffinity: map['WorksheetAffinity'],
  11908. briefDescription: map['BriefDescription'],
  11909. value: map['Value'],
  11910. unit: Unit.values.firstWhere((e) => e.index == map['Unit']),
  11911. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  11912. );
  11913. }
  11914. Map<String, dynamic> toJson() {
  11915. final map = super.toJson();
  11916. return map;
  11917. }
  11918. }
  11919. class AdminExtendInfoDTO extends AdminInfoDTO{
  11920. List<String >? roleNames;
  11921. String? defaultRoleCode;
  11922. String? defaultRoleName;
  11923. bool isLocked;
  11924. AdminExtendInfoDTO({
  11925. this.roleNames,
  11926. this.defaultRoleCode,
  11927. this.defaultRoleName,
  11928. this.isLocked = false,
  11929. String? adminCode,
  11930. String? fatherCode,
  11931. String? adminName,
  11932. String? fullName,
  11933. String? secretPassword,
  11934. String? headImageToken,
  11935. String? licenseKey,
  11936. String? lastIP,
  11937. String? phone,
  11938. String? email,
  11939. List<String >? roleCodes,
  11940. LoginLockInfoDTO? loginLockInfo,
  11941. DateTime? passwordUpdateTime,
  11942. List<String >? passwordRecords,
  11943. List<ClearLogOperateDTO >? clearLogOperateList,
  11944. DateTime? createTime,
  11945. DateTime? updateTime,
  11946. }) : super(
  11947. adminCode: adminCode,
  11948. fatherCode: fatherCode,
  11949. adminName: adminName,
  11950. fullName: fullName,
  11951. secretPassword: secretPassword,
  11952. headImageToken: headImageToken,
  11953. licenseKey: licenseKey,
  11954. lastIP: lastIP,
  11955. phone: phone,
  11956. email: email,
  11957. roleCodes: roleCodes,
  11958. loginLockInfo: loginLockInfo,
  11959. passwordUpdateTime: passwordUpdateTime,
  11960. passwordRecords: passwordRecords,
  11961. clearLogOperateList: clearLogOperateList,
  11962. createTime: createTime,
  11963. updateTime: updateTime,
  11964. );
  11965. factory AdminExtendInfoDTO.fromJson(Map<String, dynamic> map) {
  11966. return AdminExtendInfoDTO(
  11967. roleNames: map['RoleNames'] != null ? map['RoleNames'].cast<String>().toList() : null,
  11968. defaultRoleCode: map['DefaultRoleCode'],
  11969. defaultRoleName: map['DefaultRoleName'],
  11970. isLocked: map['IsLocked'],
  11971. adminCode: map['AdminCode'],
  11972. fatherCode: map['FatherCode'],
  11973. adminName: map['AdminName'],
  11974. fullName: map['FullName'],
  11975. secretPassword: map['SecretPassword'],
  11976. headImageToken: map['HeadImageToken'],
  11977. licenseKey: map['LicenseKey'],
  11978. lastIP: map['LastIP'],
  11979. phone: map['Phone'],
  11980. email: map['Email'],
  11981. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  11982. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  11983. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  11984. passwordRecords: map['PasswordRecords'] != null ? map['PasswordRecords'].cast<String>().toList() : null,
  11985. clearLogOperateList: map['ClearLogOperateList'] != null ? (map['ClearLogOperateList'] as List).map((e)=>ClearLogOperateDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11986. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  11987. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  11988. );
  11989. }
  11990. Map<String, dynamic> toJson() {
  11991. final map = super.toJson();
  11992. if(roleNames != null)
  11993. map['RoleNames'] = roleNames;
  11994. if(defaultRoleCode != null)
  11995. map['DefaultRoleCode'] = defaultRoleCode;
  11996. if(defaultRoleName != null)
  11997. map['DefaultRoleName'] = defaultRoleName;
  11998. map['IsLocked'] = isLocked;
  11999. return map;
  12000. }
  12001. }
  12002. class AdminLoginResult {
  12003. LoginStateEnum loginState;
  12004. String? token;
  12005. int? lockRemainingTimes;
  12006. bool isDistributedServer;
  12007. bool passwordExpired;
  12008. String? adminName;
  12009. AdminLoginResult({
  12010. this.loginState = LoginStateEnum.Succeed,
  12011. this.token,
  12012. this.lockRemainingTimes,
  12013. this.isDistributedServer = false,
  12014. this.passwordExpired = false,
  12015. this.adminName,
  12016. });
  12017. factory AdminLoginResult.fromJson(Map<String, dynamic> map) {
  12018. return AdminLoginResult(
  12019. loginState: LoginStateEnum.values.firstWhere((e) => e.index == map['LoginState']),
  12020. token: map['Token'],
  12021. lockRemainingTimes: map['LockRemainingTimes'],
  12022. isDistributedServer: map['IsDistributedServer'],
  12023. passwordExpired: map['PasswordExpired'],
  12024. adminName: map['AdminName'],
  12025. );
  12026. }
  12027. Map<String, dynamic> toJson() {
  12028. final map = Map<String, dynamic>();
  12029. map['LoginState'] = loginState.index;
  12030. if(token != null)
  12031. map['Token'] = token;
  12032. if(lockRemainingTimes != null)
  12033. map['LockRemainingTimes'] = lockRemainingTimes;
  12034. map['IsDistributedServer'] = isDistributedServer;
  12035. map['PasswordExpired'] = passwordExpired;
  12036. if(adminName != null)
  12037. map['AdminName'] = adminName;
  12038. return map;
  12039. }
  12040. }
  12041. class WaitDeleteLogBaseDTO {
  12042. int daysAgoList;
  12043. int waitDeleteLogCount;
  12044. WaitDeleteLogBaseDTO({
  12045. this.daysAgoList = 0,
  12046. this.waitDeleteLogCount = 0,
  12047. });
  12048. factory WaitDeleteLogBaseDTO.fromJson(Map<String, dynamic> map) {
  12049. return WaitDeleteLogBaseDTO(
  12050. daysAgoList: map['DaysAgoList'],
  12051. waitDeleteLogCount: map['WaitDeleteLogCount'],
  12052. );
  12053. }
  12054. Map<String, dynamic> toJson() {
  12055. final map = Map<String, dynamic>();
  12056. map['DaysAgoList'] = daysAgoList;
  12057. map['WaitDeleteLogCount'] = waitDeleteLogCount;
  12058. return map;
  12059. }
  12060. }
  12061. class WaitDeleteLogsDTO {
  12062. List<WaitDeleteLogBaseDTO >? waitDeleteLogs;
  12063. int daysAgo;
  12064. String? requestServerHost;
  12065. DateTime? lastClearTime;
  12066. DateTime? lastClearOperateTime;
  12067. WaitDeleteLogsDTO({
  12068. this.waitDeleteLogs,
  12069. this.daysAgo = 0,
  12070. this.requestServerHost,
  12071. this.lastClearTime,
  12072. this.lastClearOperateTime,
  12073. });
  12074. factory WaitDeleteLogsDTO.fromJson(Map<String, dynamic> map) {
  12075. return WaitDeleteLogsDTO(
  12076. waitDeleteLogs: map['WaitDeleteLogs'] != null ? (map['WaitDeleteLogs'] as List).map((e)=>WaitDeleteLogBaseDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12077. daysAgo: map['DaysAgo'],
  12078. requestServerHost: map['RequestServerHost'],
  12079. lastClearTime: map['LastClearTime'] != null ? DateTime.parse(map['LastClearTime']) : null,
  12080. lastClearOperateTime: map['LastClearOperateTime'] != null ? DateTime.parse(map['LastClearOperateTime']) : null,
  12081. );
  12082. }
  12083. Map<String, dynamic> toJson() {
  12084. final map = Map<String, dynamic>();
  12085. if(waitDeleteLogs != null)
  12086. map['WaitDeleteLogs'] = waitDeleteLogs;
  12087. map['DaysAgo'] = daysAgo;
  12088. if(requestServerHost != null)
  12089. map['RequestServerHost'] = requestServerHost;
  12090. if(lastClearTime != null)
  12091. map['LastClearTime'] = JsonRpcUtils.dateFormat(lastClearTime!);
  12092. if(lastClearOperateTime != null)
  12093. map['LastClearOperateTime'] = JsonRpcUtils.dateFormat(lastClearOperateTime!);
  12094. return map;
  12095. }
  12096. }
  12097. class ManageAdminFeatureInfoDTO {
  12098. List<String >? featureCodeList;
  12099. ManageAdminFeatureInfoDTO({
  12100. this.featureCodeList,
  12101. });
  12102. factory ManageAdminFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  12103. return ManageAdminFeatureInfoDTO(
  12104. featureCodeList: map['FeatureCodeList'] != null ? map['FeatureCodeList'].cast<String>().toList() : null,
  12105. );
  12106. }
  12107. Map<String, dynamic> toJson() {
  12108. final map = Map<String, dynamic>();
  12109. if(featureCodeList != null)
  12110. map['FeatureCodeList'] = featureCodeList;
  12111. return map;
  12112. }
  12113. }
  12114. class FeatureDetail {
  12115. String? id;
  12116. FeatureDetail({
  12117. this.id,
  12118. });
  12119. factory FeatureDetail.fromJson(Map<String, dynamic> map) {
  12120. return FeatureDetail(
  12121. id: map['Id'],
  12122. );
  12123. }
  12124. Map<String, dynamic> toJson() {
  12125. final map = Map<String, dynamic>();
  12126. if(id != null)
  12127. map['Id'] = id;
  12128. return map;
  12129. }
  12130. }
  12131. class ManageAdminRoleInfoDTO extends AdminRoleDTO{
  12132. List<FeatureDetail >? featureList;
  12133. ManageAdminRoleInfoDTO({
  12134. this.featureList,
  12135. String? adminGroupCode,
  12136. int adminNum = 0,
  12137. String? roleCode,
  12138. String? roleName,
  12139. String? description,
  12140. List<UserRoleLanguageConfigDTO >? languageConfigs,
  12141. DateTime? createTime,
  12142. DateTime? updateTime,
  12143. }) : super(
  12144. adminGroupCode: adminGroupCode,
  12145. adminNum: adminNum,
  12146. roleCode: roleCode,
  12147. roleName: roleName,
  12148. description: description,
  12149. languageConfigs: languageConfigs,
  12150. createTime: createTime,
  12151. updateTime: updateTime,
  12152. );
  12153. factory ManageAdminRoleInfoDTO.fromJson(Map<String, dynamic> map) {
  12154. return ManageAdminRoleInfoDTO(
  12155. featureList: map['FeatureList'] != null ? (map['FeatureList'] as List).map((e)=>FeatureDetail.fromJson(e as Map<String,dynamic>)).toList() : null,
  12156. adminGroupCode: map['AdminGroupCode'],
  12157. adminNum: map['AdminNum'],
  12158. roleCode: map['RoleCode'],
  12159. roleName: map['RoleName'],
  12160. description: map['Description'],
  12161. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12162. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12163. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12164. );
  12165. }
  12166. Map<String, dynamic> toJson() {
  12167. final map = super.toJson();
  12168. if(featureList != null)
  12169. map['FeatureList'] = featureList;
  12170. return map;
  12171. }
  12172. }
  12173. class ManageCreateProductDTO extends CreateProductDTO{
  12174. ManageCreateProductDTO({
  12175. String? productCode,
  12176. DateTime? createTime,
  12177. DateTime? updateTime,
  12178. }) : super(
  12179. productCode: productCode,
  12180. createTime: createTime,
  12181. updateTime: updateTime,
  12182. );
  12183. factory ManageCreateProductDTO.fromJson(Map<String, dynamic> map) {
  12184. return ManageCreateProductDTO(
  12185. productCode: map['ProductCode'],
  12186. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12187. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12188. );
  12189. }
  12190. Map<String, dynamic> toJson() {
  12191. final map = super.toJson();
  12192. return map;
  12193. }
  12194. }
  12195. class ManageDeviceInfoDTO extends DeviceInfoDTO{
  12196. String? hospitalName;
  12197. String? departmentName;
  12198. String? directorName;
  12199. String? adminName;
  12200. String? shareUserNum;
  12201. String? deviceModelName;
  12202. List<DictionaryLanguageConfigDTO >? languageConfigs;
  12203. ManageDeviceInfoDTO({
  12204. this.hospitalName,
  12205. this.departmentName,
  12206. this.directorName,
  12207. this.adminName,
  12208. this.shareUserNum,
  12209. this.deviceModelName,
  12210. this.languageConfigs,
  12211. String? deviceCode,
  12212. String? serialNumber,
  12213. String? password,
  12214. String? name,
  12215. String? description,
  12216. String? deviceModel,
  12217. String? deviceType,
  12218. String? headPicUrl,
  12219. String? deviceSoftwareVersion,
  12220. String? sDKSoftwareVersion,
  12221. String? organizationCode,
  12222. String? departmentCode,
  12223. String? shortCode,
  12224. bool isAutoShared = false,
  12225. bool isEncryptedShow = false,
  12226. DateTime? lastLoginTime,
  12227. String? systemVersion,
  12228. String? cPUModel,
  12229. String? systemLanguage,
  12230. List<String >? diagnosisModules,
  12231. List<String >? reportPosterCodes,
  12232. bool mergedChannel = false,
  12233. int mergedVideoOutputWidth = 0,
  12234. int mergedVideoOutputHeight = 0,
  12235. List<VideoDeviceDTO >? videoDeviceInfos,
  12236. DownloadModeSettingEnum downloadModeSetting = DownloadModeSettingEnum.Auto,
  12237. bool liveOpened = false,
  12238. DateTime? createTime,
  12239. DateTime? updateTime,
  12240. }) : super(
  12241. deviceCode: deviceCode,
  12242. serialNumber: serialNumber,
  12243. password: password,
  12244. name: name,
  12245. description: description,
  12246. deviceModel: deviceModel,
  12247. deviceType: deviceType,
  12248. headPicUrl: headPicUrl,
  12249. deviceSoftwareVersion: deviceSoftwareVersion,
  12250. sDKSoftwareVersion: sDKSoftwareVersion,
  12251. organizationCode: organizationCode,
  12252. departmentCode: departmentCode,
  12253. shortCode: shortCode,
  12254. isAutoShared: isAutoShared,
  12255. isEncryptedShow: isEncryptedShow,
  12256. lastLoginTime: lastLoginTime,
  12257. systemVersion: systemVersion,
  12258. cPUModel: cPUModel,
  12259. systemLanguage: systemLanguage,
  12260. diagnosisModules: diagnosisModules,
  12261. reportPosterCodes: reportPosterCodes,
  12262. mergedChannel: mergedChannel,
  12263. mergedVideoOutputWidth: mergedVideoOutputWidth,
  12264. mergedVideoOutputHeight: mergedVideoOutputHeight,
  12265. videoDeviceInfos: videoDeviceInfos,
  12266. downloadModeSetting: downloadModeSetting,
  12267. liveOpened: liveOpened,
  12268. createTime: createTime,
  12269. updateTime: updateTime,
  12270. );
  12271. factory ManageDeviceInfoDTO.fromJson(Map<String, dynamic> map) {
  12272. return ManageDeviceInfoDTO(
  12273. hospitalName: map['HospitalName'],
  12274. departmentName: map['DepartmentName'],
  12275. directorName: map['DirectorName'],
  12276. adminName: map['AdminName'],
  12277. shareUserNum: map['ShareUserNum'],
  12278. deviceModelName: map['DeviceModelName'],
  12279. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>DictionaryLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12280. deviceCode: map['DeviceCode'],
  12281. serialNumber: map['SerialNumber'],
  12282. password: map['Password'],
  12283. name: map['Name'],
  12284. description: map['Description'],
  12285. deviceModel: map['DeviceModel'],
  12286. deviceType: map['DeviceType'],
  12287. headPicUrl: map['HeadPicUrl'],
  12288. deviceSoftwareVersion: map['DeviceSoftwareVersion'],
  12289. sDKSoftwareVersion: map['SDKSoftwareVersion'],
  12290. organizationCode: map['OrganizationCode'],
  12291. departmentCode: map['DepartmentCode'],
  12292. shortCode: map['ShortCode'],
  12293. isAutoShared: map['IsAutoShared'],
  12294. isEncryptedShow: map['IsEncryptedShow'],
  12295. lastLoginTime: map['LastLoginTime'] != null ? DateTime.parse(map['LastLoginTime']) : null,
  12296. systemVersion: map['SystemVersion'],
  12297. cPUModel: map['CPUModel'],
  12298. systemLanguage: map['SystemLanguage'],
  12299. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  12300. reportPosterCodes: map['ReportPosterCodes'] != null ? map['ReportPosterCodes'].cast<String>().toList() : null,
  12301. mergedChannel: map['MergedChannel'],
  12302. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  12303. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  12304. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12305. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  12306. liveOpened: map['LiveOpened'],
  12307. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12308. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12309. );
  12310. }
  12311. Map<String, dynamic> toJson() {
  12312. final map = super.toJson();
  12313. if(hospitalName != null)
  12314. map['HospitalName'] = hospitalName;
  12315. if(departmentName != null)
  12316. map['DepartmentName'] = departmentName;
  12317. if(directorName != null)
  12318. map['DirectorName'] = directorName;
  12319. if(adminName != null)
  12320. map['AdminName'] = adminName;
  12321. if(shareUserNum != null)
  12322. map['ShareUserNum'] = shareUserNum;
  12323. if(deviceModelName != null)
  12324. map['DeviceModelName'] = deviceModelName;
  12325. if(languageConfigs != null)
  12326. map['LanguageConfigs'] = languageConfigs;
  12327. return map;
  12328. }
  12329. }
  12330. class ManageDeviceTypeDTO {
  12331. String? dictionaryCode;
  12332. String? value;
  12333. List<DictionaryLanguageConfigDTO >? languageConfigs;
  12334. List<DictionaryDTO >? dictionaryList;
  12335. ManageDeviceTypeDTO({
  12336. this.dictionaryCode,
  12337. this.value,
  12338. this.languageConfigs,
  12339. this.dictionaryList,
  12340. });
  12341. factory ManageDeviceTypeDTO.fromJson(Map<String, dynamic> map) {
  12342. return ManageDeviceTypeDTO(
  12343. dictionaryCode: map['DictionaryCode'],
  12344. value: map['Value'],
  12345. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>DictionaryLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12346. dictionaryList: map['DictionaryList'] != null ? (map['DictionaryList'] as List).map((e)=>DictionaryDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12347. );
  12348. }
  12349. Map<String, dynamic> toJson() {
  12350. final map = Map<String, dynamic>();
  12351. if(dictionaryCode != null)
  12352. map['DictionaryCode'] = dictionaryCode;
  12353. if(value != null)
  12354. map['Value'] = value;
  12355. if(languageConfigs != null)
  12356. map['LanguageConfigs'] = languageConfigs;
  12357. if(dictionaryList != null)
  12358. map['DictionaryList'] = dictionaryList;
  12359. return map;
  12360. }
  12361. }
  12362. class ManageDeviceUserDTO {
  12363. String? userCode;
  12364. String? userName;
  12365. String? phone;
  12366. String? email;
  12367. String? nickName;
  12368. String? fullName;
  12369. String? hospitalName;
  12370. ManageDeviceUserDTO({
  12371. this.userCode,
  12372. this.userName,
  12373. this.phone,
  12374. this.email,
  12375. this.nickName,
  12376. this.fullName,
  12377. this.hospitalName,
  12378. });
  12379. factory ManageDeviceUserDTO.fromJson(Map<String, dynamic> map) {
  12380. return ManageDeviceUserDTO(
  12381. userCode: map['UserCode'],
  12382. userName: map['UserName'],
  12383. phone: map['Phone'],
  12384. email: map['Email'],
  12385. nickName: map['NickName'],
  12386. fullName: map['FullName'],
  12387. hospitalName: map['HospitalName'],
  12388. );
  12389. }
  12390. Map<String, dynamic> toJson() {
  12391. final map = Map<String, dynamic>();
  12392. if(userCode != null)
  12393. map['UserCode'] = userCode;
  12394. if(userName != null)
  12395. map['UserName'] = userName;
  12396. if(phone != null)
  12397. map['Phone'] = phone;
  12398. if(email != null)
  12399. map['Email'] = email;
  12400. if(nickName != null)
  12401. map['NickName'] = nickName;
  12402. if(fullName != null)
  12403. map['FullName'] = fullName;
  12404. if(hospitalName != null)
  12405. map['HospitalName'] = hospitalName;
  12406. return map;
  12407. }
  12408. }
  12409. class ManageOrderDetailDTO extends OrderDetailDTO{
  12410. ManageOrderDetailDTO({
  12411. String? code,
  12412. String? orderUserName,
  12413. String? orderUserCode,
  12414. String? productCode,
  12415. String? tPORderCode,
  12416. String? orderTitle,
  12417. OrderTypeEnum orderType = OrderTypeEnum.General,
  12418. double orderAmount = 0,
  12419. DateTime? payTime,
  12420. PayStatusEnum payStatus = PayStatusEnum.NoPay,
  12421. DateTime? createTime,
  12422. DateTime? updateTime,
  12423. }) : super(
  12424. code: code,
  12425. orderUserName: orderUserName,
  12426. orderUserCode: orderUserCode,
  12427. productCode: productCode,
  12428. tPORderCode: tPORderCode,
  12429. orderTitle: orderTitle,
  12430. orderType: orderType,
  12431. orderAmount: orderAmount,
  12432. payTime: payTime,
  12433. payStatus: payStatus,
  12434. createTime: createTime,
  12435. updateTime: updateTime,
  12436. );
  12437. factory ManageOrderDetailDTO.fromJson(Map<String, dynamic> map) {
  12438. return ManageOrderDetailDTO(
  12439. code: map['Code'],
  12440. orderUserName: map['OrderUserName'],
  12441. orderUserCode: map['OrderUserCode'],
  12442. productCode: map['ProductCode'],
  12443. tPORderCode: map['TPORderCode'],
  12444. orderTitle: map['OrderTitle'],
  12445. orderType: OrderTypeEnum.values.firstWhere((e) => e.index == map['OrderType']),
  12446. orderAmount: double.parse(map['OrderAmount'].toString()),
  12447. payTime: map['PayTime'] != null ? DateTime.parse(map['PayTime']) : null,
  12448. payStatus: PayStatusEnum.values.firstWhere((e) => e.index == map['PayStatus']),
  12449. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12450. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12451. );
  12452. }
  12453. Map<String, dynamic> toJson() {
  12454. final map = super.toJson();
  12455. return map;
  12456. }
  12457. }
  12458. class ManageOrganizationDTO extends OrganizationDTO{
  12459. String? countryName;
  12460. String? provinceName;
  12461. String? cityName;
  12462. String? countryCode;
  12463. String? provinceCode;
  12464. String? cityCode;
  12465. String? directorName;
  12466. String? adminFullName;
  12467. ManageOrganizationDTO({
  12468. this.countryName,
  12469. this.provinceName,
  12470. this.cityName,
  12471. this.countryCode,
  12472. this.provinceCode,
  12473. this.cityCode,
  12474. this.directorName,
  12475. this.adminFullName,
  12476. String? description,
  12477. String? rootCode,
  12478. OrganizationTypeEnum organizationType = OrganizationTypeEnum.Corporation,
  12479. List<String >? authorityGroups,
  12480. String? nautica,
  12481. OrganizationStateEnum state = OrganizationStateEnum.WaitAudit,
  12482. List<String >? directors,
  12483. List<String >? assignedAdmins,
  12484. String? patientSettingJson,
  12485. String? examSettingJson,
  12486. String? consultationSettingJson,
  12487. String? patientSettingVersion,
  12488. String? examSettingVersion,
  12489. String? consultationSettingVersion,
  12490. String? parentOrganizationName,
  12491. String? regionCode,
  12492. String? parentCode,
  12493. String? logoUrl,
  12494. OrganizationPatientTypeEnum patientType = OrganizationPatientTypeEnum.Person,
  12495. bool isinvented = false,
  12496. List<SettingDTOClass >? settings,
  12497. List<String >? diagnosisModules,
  12498. bool isEncryptedShow = false,
  12499. double referralLimitHours = 0,
  12500. List<String >? referralOrganizationCodes,
  12501. List<ReferralOrganizationDTO >? referralOrganizations,
  12502. String? organizationCode,
  12503. String? organizationName,
  12504. DateTime? createTime,
  12505. DateTime? updateTime,
  12506. }) : super(
  12507. description: description,
  12508. rootCode: rootCode,
  12509. organizationType: organizationType,
  12510. authorityGroups: authorityGroups,
  12511. nautica: nautica,
  12512. state: state,
  12513. directors: directors,
  12514. assignedAdmins: assignedAdmins,
  12515. patientSettingJson: patientSettingJson,
  12516. examSettingJson: examSettingJson,
  12517. consultationSettingJson: consultationSettingJson,
  12518. patientSettingVersion: patientSettingVersion,
  12519. examSettingVersion: examSettingVersion,
  12520. consultationSettingVersion: consultationSettingVersion,
  12521. parentOrganizationName: parentOrganizationName,
  12522. regionCode: regionCode,
  12523. parentCode: parentCode,
  12524. logoUrl: logoUrl,
  12525. patientType: patientType,
  12526. isinvented: isinvented,
  12527. settings: settings,
  12528. diagnosisModules: diagnosisModules,
  12529. isEncryptedShow: isEncryptedShow,
  12530. referralLimitHours: referralLimitHours,
  12531. referralOrganizationCodes: referralOrganizationCodes,
  12532. referralOrganizations: referralOrganizations,
  12533. organizationCode: organizationCode,
  12534. organizationName: organizationName,
  12535. createTime: createTime,
  12536. updateTime: updateTime,
  12537. );
  12538. factory ManageOrganizationDTO.fromJson(Map<String, dynamic> map) {
  12539. return ManageOrganizationDTO(
  12540. countryName: map['CountryName'],
  12541. provinceName: map['ProvinceName'],
  12542. cityName: map['CityName'],
  12543. countryCode: map['CountryCode'],
  12544. provinceCode: map['ProvinceCode'],
  12545. cityCode: map['CityCode'],
  12546. directorName: map['DirectorName'],
  12547. adminFullName: map['AdminFullName'],
  12548. description: map['Description'],
  12549. rootCode: map['RootCode'],
  12550. organizationType: OrganizationTypeEnum.values.firstWhere((e) => e.index == map['OrganizationType']),
  12551. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  12552. nautica: map['Nautica'],
  12553. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  12554. directors: map['Directors'] != null ? map['Directors'].cast<String>().toList() : null,
  12555. assignedAdmins: map['AssignedAdmins'] != null ? map['AssignedAdmins'].cast<String>().toList() : null,
  12556. patientSettingJson: map['PatientSettingJson'],
  12557. examSettingJson: map['ExamSettingJson'],
  12558. consultationSettingJson: map['ConsultationSettingJson'],
  12559. patientSettingVersion: map['PatientSettingVersion'],
  12560. examSettingVersion: map['ExamSettingVersion'],
  12561. consultationSettingVersion: map['ConsultationSettingVersion'],
  12562. parentOrganizationName: map['ParentOrganizationName'],
  12563. regionCode: map['RegionCode'],
  12564. parentCode: map['ParentCode'],
  12565. logoUrl: map['LogoUrl'],
  12566. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  12567. isinvented: map['Isinvented'],
  12568. settings: map['Settings'] != null ? (map['Settings'] as List).map((e)=>SettingDTOClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  12569. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  12570. isEncryptedShow: map['IsEncryptedShow'],
  12571. referralLimitHours: double.parse(map['ReferralLimitHours'].toString()),
  12572. referralOrganizationCodes: map['ReferralOrganizationCodes'] != null ? map['ReferralOrganizationCodes'].cast<String>().toList() : null,
  12573. referralOrganizations: map['ReferralOrganizations'] != null ? (map['ReferralOrganizations'] as List).map((e)=>ReferralOrganizationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12574. organizationCode: map['OrganizationCode'],
  12575. organizationName: map['OrganizationName'],
  12576. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12577. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12578. );
  12579. }
  12580. Map<String, dynamic> toJson() {
  12581. final map = super.toJson();
  12582. if(countryName != null)
  12583. map['CountryName'] = countryName;
  12584. if(provinceName != null)
  12585. map['ProvinceName'] = provinceName;
  12586. if(cityName != null)
  12587. map['CityName'] = cityName;
  12588. if(countryCode != null)
  12589. map['CountryCode'] = countryCode;
  12590. if(provinceCode != null)
  12591. map['ProvinceCode'] = provinceCode;
  12592. if(cityCode != null)
  12593. map['CityCode'] = cityCode;
  12594. if(directorName != null)
  12595. map['DirectorName'] = directorName;
  12596. if(adminFullName != null)
  12597. map['AdminFullName'] = adminFullName;
  12598. return map;
  12599. }
  12600. }
  12601. class ManageOrganizationUserDTO {
  12602. String? userCode;
  12603. String? userName;
  12604. String? phone;
  12605. String? email;
  12606. String? nickName;
  12607. String? fullName;
  12608. String? hospitalName;
  12609. ManageOrganizationUserDTO({
  12610. this.userCode,
  12611. this.userName,
  12612. this.phone,
  12613. this.email,
  12614. this.nickName,
  12615. this.fullName,
  12616. this.hospitalName,
  12617. });
  12618. factory ManageOrganizationUserDTO.fromJson(Map<String, dynamic> map) {
  12619. return ManageOrganizationUserDTO(
  12620. userCode: map['UserCode'],
  12621. userName: map['UserName'],
  12622. phone: map['Phone'],
  12623. email: map['Email'],
  12624. nickName: map['NickName'],
  12625. fullName: map['FullName'],
  12626. hospitalName: map['HospitalName'],
  12627. );
  12628. }
  12629. Map<String, dynamic> toJson() {
  12630. final map = Map<String, dynamic>();
  12631. if(userCode != null)
  12632. map['UserCode'] = userCode;
  12633. if(userName != null)
  12634. map['UserName'] = userName;
  12635. if(phone != null)
  12636. map['Phone'] = phone;
  12637. if(email != null)
  12638. map['Email'] = email;
  12639. if(nickName != null)
  12640. map['NickName'] = nickName;
  12641. if(fullName != null)
  12642. map['FullName'] = fullName;
  12643. if(hospitalName != null)
  12644. map['HospitalName'] = hospitalName;
  12645. return map;
  12646. }
  12647. }
  12648. class ManagePaymentRecordDTO extends PaymentRecordDTO{
  12649. ManagePaymentRecordDTO({
  12650. String? orderCode,
  12651. double payAmount = 0,
  12652. DateTime? payTime,
  12653. PayStatusEnum payStatus = PayStatusEnum.NoPay,
  12654. PayTypeEnum payType = PayTypeEnum.Alipay_PAGE,
  12655. String? payReqContent,
  12656. String? payResContent,
  12657. DateTime? createTime,
  12658. DateTime? updateTime,
  12659. }) : super(
  12660. orderCode: orderCode,
  12661. payAmount: payAmount,
  12662. payTime: payTime,
  12663. payStatus: payStatus,
  12664. payType: payType,
  12665. payReqContent: payReqContent,
  12666. payResContent: payResContent,
  12667. createTime: createTime,
  12668. updateTime: updateTime,
  12669. );
  12670. factory ManagePaymentRecordDTO.fromJson(Map<String, dynamic> map) {
  12671. return ManagePaymentRecordDTO(
  12672. orderCode: map['OrderCode'],
  12673. payAmount: double.parse(map['PayAmount'].toString()),
  12674. payTime: map['PayTime'] != null ? DateTime.parse(map['PayTime']) : null,
  12675. payStatus: PayStatusEnum.values.firstWhere((e) => e.index == map['PayStatus']),
  12676. payType: PayTypeEnum.values.firstWhere((e) => e.index == map['PayType']),
  12677. payReqContent: map['PayReqContent'],
  12678. payResContent: map['PayResContent'],
  12679. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12680. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12681. );
  12682. }
  12683. Map<String, dynamic> toJson() {
  12684. final map = super.toJson();
  12685. return map;
  12686. }
  12687. }
  12688. class ManageRoleInfoDTO extends RoleDTO{
  12689. List<FeatureDetail >? featureList;
  12690. ManageRoleInfoDTO({
  12691. this.featureList,
  12692. RoleShowTypeEnum roleShowType = RoleShowTypeEnum.NotShow,
  12693. String? iConUrl,
  12694. String? colorStart,
  12695. String? colorEnd,
  12696. RoleQualificationEnum roleQualification = RoleQualificationEnum.NoNeed,
  12697. String? userGroupCode,
  12698. RoleShowTypeEnum fieldShowType = RoleShowTypeEnum.NotShow,
  12699. List<String >? fieldList,
  12700. String? roleCode,
  12701. String? roleName,
  12702. String? description,
  12703. List<UserRoleLanguageConfigDTO >? languageConfigs,
  12704. DateTime? createTime,
  12705. DateTime? updateTime,
  12706. }) : super(
  12707. roleShowType: roleShowType,
  12708. iConUrl: iConUrl,
  12709. colorStart: colorStart,
  12710. colorEnd: colorEnd,
  12711. roleQualification: roleQualification,
  12712. userGroupCode: userGroupCode,
  12713. fieldShowType: fieldShowType,
  12714. fieldList: fieldList,
  12715. roleCode: roleCode,
  12716. roleName: roleName,
  12717. description: description,
  12718. languageConfigs: languageConfigs,
  12719. createTime: createTime,
  12720. updateTime: updateTime,
  12721. );
  12722. factory ManageRoleInfoDTO.fromJson(Map<String, dynamic> map) {
  12723. return ManageRoleInfoDTO(
  12724. featureList: map['FeatureList'] != null ? (map['FeatureList'] as List).map((e)=>FeatureDetail.fromJson(e as Map<String,dynamic>)).toList() : null,
  12725. roleShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['RoleShowType']),
  12726. iConUrl: map['IConUrl'],
  12727. colorStart: map['ColorStart'],
  12728. colorEnd: map['ColorEnd'],
  12729. roleQualification: RoleQualificationEnum.values.firstWhere((e) => e.index == map['RoleQualification']),
  12730. userGroupCode: map['UserGroupCode'],
  12731. fieldShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['FieldShowType']),
  12732. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  12733. roleCode: map['RoleCode'],
  12734. roleName: map['RoleName'],
  12735. description: map['Description'],
  12736. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12737. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12738. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12739. );
  12740. }
  12741. Map<String, dynamic> toJson() {
  12742. final map = super.toJson();
  12743. if(featureList != null)
  12744. map['FeatureList'] = featureList;
  12745. return map;
  12746. }
  12747. }
  12748. class BaseThesaurusItemBaseDTO<T> {
  12749. String? id;
  12750. String? label;
  12751. String? fatherCode;
  12752. String? thesaurusItemDescription;
  12753. String? thesaurusItemConclusion;
  12754. ThesaurusItemTypeEnum type;
  12755. List<T>? children;
  12756. bool isExistThesaurusItem;
  12757. BaseThesaurusItemBaseDTO({
  12758. this.id,
  12759. this.label,
  12760. this.fatherCode,
  12761. this.thesaurusItemDescription,
  12762. this.thesaurusItemConclusion,
  12763. this.type = ThesaurusItemTypeEnum.Classification,
  12764. this.children,
  12765. this.isExistThesaurusItem = false,
  12766. });
  12767. factory BaseThesaurusItemBaseDTO.fromJson(Map<String, dynamic> map) {
  12768. List<T> childrenList = [];
  12769. if (map['Children'] != null) {
  12770. childrenList.addAll(
  12771. (map['Children'] as List).map((e) => FJsonConvert.fromJson<T>(e)!));
  12772. }
  12773. return BaseThesaurusItemBaseDTO(
  12774. id: map['Id'],
  12775. label: map['Label'],
  12776. fatherCode: map['FatherCode'],
  12777. thesaurusItemDescription: map['ThesaurusItemDescription'],
  12778. thesaurusItemConclusion: map['ThesaurusItemConclusion'],
  12779. type: ThesaurusItemTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  12780. children: childrenList,
  12781. isExistThesaurusItem: map['IsExistThesaurusItem'],
  12782. );
  12783. }
  12784. Map<String, dynamic> toJson() {
  12785. final map = Map<String, dynamic>();
  12786. if(id != null)
  12787. map['Id'] = id;
  12788. if(label != null)
  12789. map['Label'] = label;
  12790. if(fatherCode != null)
  12791. map['FatherCode'] = fatherCode;
  12792. if(thesaurusItemDescription != null)
  12793. map['ThesaurusItemDescription'] = thesaurusItemDescription;
  12794. if(thesaurusItemConclusion != null)
  12795. map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
  12796. map['Type'] = type.index;
  12797. if(children != null)
  12798. map['Children'] = children;
  12799. map['IsExistThesaurusItem'] = isExistThesaurusItem;
  12800. return map;
  12801. }
  12802. }
  12803. class ManageThesaurusItemDTO extends BaseThesaurusItemBaseDTO<ManageThesaurusItemDTO>{
  12804. ManageThesaurusItemDTO(
  12805. );
  12806. factory ManageThesaurusItemDTO.fromJson(Map<String, dynamic> map) {
  12807. return ManageThesaurusItemDTO(
  12808. );
  12809. }
  12810. Map<String, dynamic> toJson() {
  12811. final map = super.toJson();
  12812. return map;
  12813. }
  12814. }
  12815. class ManageUpdateProductDTO extends UpdateProductDTO{
  12816. ManageUpdateProductDTO({
  12817. bool isSuccess = false,
  12818. }) : super(
  12819. isSuccess: isSuccess,
  12820. );
  12821. factory ManageUpdateProductDTO.fromJson(Map<String, dynamic> map) {
  12822. return ManageUpdateProductDTO(
  12823. isSuccess: map['IsSuccess'],
  12824. );
  12825. }
  12826. Map<String, dynamic> toJson() {
  12827. final map = super.toJson();
  12828. return map;
  12829. }
  12830. }
  12831. class OnlineTokenDTO extends TokenDTO{
  12832. String? ipAddress;
  12833. OnlineTokenDTO({
  12834. this.ipAddress,
  12835. int version = 0,
  12836. String? code,
  12837. AccountType accountType = AccountType.Admin,
  12838. String? accountName,
  12839. Platform platform = Platform.Windows,
  12840. LoginSource loginSource = LoginSource.PC,
  12841. String? clientId,
  12842. String? loginServer,
  12843. DateTime? createTime,
  12844. DateTime? expiration,
  12845. int ipValue = 0,
  12846. bool isOnline = false,
  12847. String? installVersion,
  12848. }) : super(
  12849. version: version,
  12850. code: code,
  12851. accountType: accountType,
  12852. accountName: accountName,
  12853. platform: platform,
  12854. loginSource: loginSource,
  12855. clientId: clientId,
  12856. loginServer: loginServer,
  12857. createTime: createTime,
  12858. expiration: expiration,
  12859. ipValue: ipValue,
  12860. isOnline: isOnline,
  12861. installVersion: installVersion,
  12862. );
  12863. factory OnlineTokenDTO.fromJson(Map<String, dynamic> map) {
  12864. return OnlineTokenDTO(
  12865. ipAddress: map['IpAddress'],
  12866. version: map['Version'],
  12867. code: map['Code'],
  12868. accountType: AccountType.values.firstWhere((e) => e.index == map['AccountType']),
  12869. accountName: map['AccountName'],
  12870. platform: Platform.values.firstWhere((e) => e.index == map['Platform']),
  12871. loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
  12872. clientId: map['ClientId'],
  12873. loginServer: map['LoginServer'],
  12874. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12875. expiration: map['Expiration'] != null ? DateTime.parse(map['Expiration']) : null,
  12876. ipValue: map['IpValue'],
  12877. isOnline: map['IsOnline'],
  12878. installVersion: map['InstallVersion'],
  12879. );
  12880. }
  12881. Map<String, dynamic> toJson() {
  12882. final map = super.toJson();
  12883. if(ipAddress != null)
  12884. map['IpAddress'] = ipAddress;
  12885. return map;
  12886. }
  12887. }
  12888. class SelectParentItemDTO extends SelectItemDTO{
  12889. String? parentCode;
  12890. SelectParentItemDTO({
  12891. this.parentCode,
  12892. String? key,
  12893. String? value,
  12894. }) : super(
  12895. key: key,
  12896. value: value,
  12897. );
  12898. factory SelectParentItemDTO.fromJson(Map<String, dynamic> map) {
  12899. return SelectParentItemDTO(
  12900. parentCode: map['ParentCode'],
  12901. key: map['Key'],
  12902. value: map['Value'],
  12903. );
  12904. }
  12905. Map<String, dynamic> toJson() {
  12906. final map = super.toJson();
  12907. if(parentCode != null)
  12908. map['ParentCode'] = parentCode;
  12909. return map;
  12910. }
  12911. }
  12912. class LiveBoardDataDTO {
  12913. String? userCode;
  12914. String? boardData;
  12915. DateTime? interactiveTime;
  12916. LiveBoardDataDTO({
  12917. this.userCode,
  12918. this.boardData,
  12919. this.interactiveTime,
  12920. });
  12921. factory LiveBoardDataDTO.fromJson(Map<String, dynamic> map) {
  12922. return LiveBoardDataDTO(
  12923. userCode: map['UserCode'],
  12924. boardData: map['BoardData'],
  12925. interactiveTime: map['InteractiveTime'] != null ? DateTime.parse(map['InteractiveTime']) : null,
  12926. );
  12927. }
  12928. Map<String, dynamic> toJson() {
  12929. final map = Map<String, dynamic>();
  12930. if(userCode != null)
  12931. map['UserCode'] = userCode;
  12932. if(boardData != null)
  12933. map['BoardData'] = boardData;
  12934. if(interactiveTime != null)
  12935. map['InteractiveTime'] = JsonRpcUtils.dateFormat(interactiveTime!);
  12936. return map;
  12937. }
  12938. }
  12939. class LiveMemberStatusDTO {
  12940. String? code;
  12941. String? liveRoomCode;
  12942. LiveMemberStatus status;
  12943. UserStatusEnum userStatusType;
  12944. String? loginServerUrl;
  12945. LoginSource loginSource;
  12946. LiveMemberStatusDTO({
  12947. this.code,
  12948. this.liveRoomCode,
  12949. this.status = LiveMemberStatus.Default,
  12950. this.userStatusType = UserStatusEnum.NotOnline,
  12951. this.loginServerUrl,
  12952. this.loginSource = LoginSource.PC,
  12953. });
  12954. factory LiveMemberStatusDTO.fromJson(Map<String, dynamic> map) {
  12955. return LiveMemberStatusDTO(
  12956. code: map['Code'],
  12957. liveRoomCode: map['LiveRoomCode'],
  12958. status: LiveMemberStatus.values.firstWhere((e) => e.index == map['Status']),
  12959. userStatusType: UserStatusEnum.values.firstWhere((e) => e.index == map['UserStatusType']),
  12960. loginServerUrl: map['LoginServerUrl'],
  12961. loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
  12962. );
  12963. }
  12964. Map<String, dynamic> toJson() {
  12965. final map = Map<String, dynamic>();
  12966. if(code != null)
  12967. map['Code'] = code;
  12968. if(liveRoomCode != null)
  12969. map['LiveRoomCode'] = liveRoomCode;
  12970. map['Status'] = status.index;
  12971. map['UserStatusType'] = userStatusType.index;
  12972. if(loginServerUrl != null)
  12973. map['LoginServerUrl'] = loginServerUrl;
  12974. map['LoginSource'] = loginSource.index;
  12975. return map;
  12976. }
  12977. }
  12978. class LiveRoomDTO {
  12979. String? liveRoomCode;
  12980. String? name;
  12981. String? relatedCode;
  12982. String? initiatorCode;
  12983. int rtcRoomId;
  12984. int sdkAppId;
  12985. BusinessModuleEnum businessModule;
  12986. LiveRoomStatus status;
  12987. List<LiveMemberDTO >? deviceInfos;
  12988. List<LiveMemberDTO >? userInfos;
  12989. List<LiveViewerDTO >? viewerInfos;
  12990. LiveRoomDTO({
  12991. this.liveRoomCode,
  12992. this.name,
  12993. this.relatedCode,
  12994. this.initiatorCode,
  12995. this.rtcRoomId = 0,
  12996. this.sdkAppId = 0,
  12997. this.businessModule = BusinessModuleEnum.RemoteDiagnosis,
  12998. this.status = LiveRoomStatus.Default,
  12999. this.deviceInfos,
  13000. this.userInfos,
  13001. this.viewerInfos,
  13002. });
  13003. factory LiveRoomDTO.fromJson(Map<String, dynamic> map) {
  13004. return LiveRoomDTO(
  13005. liveRoomCode: map['LiveRoomCode'],
  13006. name: map['Name'],
  13007. relatedCode: map['RelatedCode'],
  13008. initiatorCode: map['InitiatorCode'],
  13009. rtcRoomId: map['RtcRoomId'],
  13010. sdkAppId: map['SdkAppId'],
  13011. businessModule: BusinessModuleEnum.values.firstWhere((e) => e.index == map['BusinessModule']),
  13012. status: LiveRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  13013. deviceInfos: map['DeviceInfos'] != null ? (map['DeviceInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13014. userInfos: map['UserInfos'] != null ? (map['UserInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13015. viewerInfos: map['ViewerInfos'] != null ? (map['ViewerInfos'] as List).map((e)=>LiveViewerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13016. );
  13017. }
  13018. Map<String, dynamic> toJson() {
  13019. final map = Map<String, dynamic>();
  13020. if(liveRoomCode != null)
  13021. map['LiveRoomCode'] = liveRoomCode;
  13022. if(name != null)
  13023. map['Name'] = name;
  13024. if(relatedCode != null)
  13025. map['RelatedCode'] = relatedCode;
  13026. if(initiatorCode != null)
  13027. map['InitiatorCode'] = initiatorCode;
  13028. map['RtcRoomId'] = rtcRoomId;
  13029. map['SdkAppId'] = sdkAppId;
  13030. map['BusinessModule'] = businessModule.index;
  13031. map['Status'] = status.index;
  13032. if(deviceInfos != null)
  13033. map['DeviceInfos'] = deviceInfos;
  13034. if(userInfos != null)
  13035. map['UserInfos'] = userInfos;
  13036. if(viewerInfos != null)
  13037. map['ViewerInfos'] = viewerInfos;
  13038. return map;
  13039. }
  13040. }
  13041. class GradingProtectionConfigDTO extends BaseDTO{
  13042. String? moduleCode;
  13043. String? name;
  13044. String? description;
  13045. GradingConfigTypeEnum configType;
  13046. String? value;
  13047. GradingProtectionConfigDTO({
  13048. this.moduleCode,
  13049. this.name,
  13050. this.description,
  13051. this.configType = GradingConfigTypeEnum.Switch,
  13052. this.value,
  13053. DateTime? createTime,
  13054. DateTime? updateTime,
  13055. }) : super(
  13056. createTime: createTime,
  13057. updateTime: updateTime,
  13058. );
  13059. factory GradingProtectionConfigDTO.fromJson(Map<String, dynamic> map) {
  13060. return GradingProtectionConfigDTO(
  13061. moduleCode: map['ModuleCode'],
  13062. name: map['Name'],
  13063. description: map['Description'],
  13064. configType: GradingConfigTypeEnum.values.firstWhere((e) => e.index == map['ConfigType']),
  13065. value: map['Value'],
  13066. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13067. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13068. );
  13069. }
  13070. Map<String, dynamic> toJson() {
  13071. final map = super.toJson();
  13072. if(moduleCode != null)
  13073. map['ModuleCode'] = moduleCode;
  13074. if(name != null)
  13075. map['Name'] = name;
  13076. if(description != null)
  13077. map['Description'] = description;
  13078. map['ConfigType'] = configType.index;
  13079. if(value != null)
  13080. map['Value'] = value;
  13081. return map;
  13082. }
  13083. }
  13084. class ExaminationPaperDTO {
  13085. String? code;
  13086. String? name;
  13087. double totalScore;
  13088. List<QuestionDetailDTO >? questionList;
  13089. List<String >? caseLabelCodes;
  13090. List<String >? courseLabelCodes;
  13091. DateTime? createTime;
  13092. DateTime? updateTime;
  13093. ExaminationPaperDTO({
  13094. this.code,
  13095. this.name,
  13096. this.totalScore = 0,
  13097. this.questionList,
  13098. this.caseLabelCodes,
  13099. this.courseLabelCodes,
  13100. this.createTime,
  13101. this.updateTime,
  13102. });
  13103. factory ExaminationPaperDTO.fromJson(Map<String, dynamic> map) {
  13104. return ExaminationPaperDTO(
  13105. code: map['Code'],
  13106. name: map['Name'],
  13107. totalScore: double.parse(map['TotalScore'].toString()),
  13108. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>QuestionDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13109. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  13110. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  13111. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13112. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13113. );
  13114. }
  13115. Map<String, dynamic> toJson() {
  13116. final map = Map<String, dynamic>();
  13117. if(code != null)
  13118. map['Code'] = code;
  13119. if(name != null)
  13120. map['Name'] = name;
  13121. map['TotalScore'] = totalScore;
  13122. if(questionList != null)
  13123. map['QuestionList'] = questionList;
  13124. if(caseLabelCodes != null)
  13125. map['CaseLabelCodes'] = caseLabelCodes;
  13126. if(courseLabelCodes != null)
  13127. map['CourseLabelCodes'] = courseLabelCodes;
  13128. if(createTime != null)
  13129. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  13130. if(updateTime != null)
  13131. map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
  13132. return map;
  13133. }
  13134. }
  13135. class ExaminationQuestionDTO extends BaseDTO{
  13136. String? code;
  13137. String? stem;
  13138. QuestionTypeEnum questionType;
  13139. List<QuestionOptionDTO >? questionOptionList;
  13140. List<QuestionFileDTO >? fileList;
  13141. List<String >? caseLabelCodes;
  13142. List<String >? courseLabelCodes;
  13143. bool trueOrFalse;
  13144. ExaminationQuestionDTO({
  13145. this.code,
  13146. this.stem,
  13147. this.questionType = QuestionTypeEnum.Judge,
  13148. this.questionOptionList,
  13149. this.fileList,
  13150. this.caseLabelCodes,
  13151. this.courseLabelCodes,
  13152. this.trueOrFalse = false,
  13153. DateTime? createTime,
  13154. DateTime? updateTime,
  13155. }) : super(
  13156. createTime: createTime,
  13157. updateTime: updateTime,
  13158. );
  13159. factory ExaminationQuestionDTO.fromJson(Map<String, dynamic> map) {
  13160. return ExaminationQuestionDTO(
  13161. code: map['Code'],
  13162. stem: map['Stem'],
  13163. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  13164. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13165. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13166. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  13167. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  13168. trueOrFalse: map['TrueOrFalse'],
  13169. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13170. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13171. );
  13172. }
  13173. Map<String, dynamic> toJson() {
  13174. final map = super.toJson();
  13175. if(code != null)
  13176. map['Code'] = code;
  13177. if(stem != null)
  13178. map['Stem'] = stem;
  13179. map['QuestionType'] = questionType.index;
  13180. if(questionOptionList != null)
  13181. map['QuestionOptionList'] = questionOptionList;
  13182. if(fileList != null)
  13183. map['FileList'] = fileList;
  13184. if(caseLabelCodes != null)
  13185. map['CaseLabelCodes'] = caseLabelCodes;
  13186. if(courseLabelCodes != null)
  13187. map['CourseLabelCodes'] = courseLabelCodes;
  13188. map['TrueOrFalse'] = trueOrFalse;
  13189. return map;
  13190. }
  13191. }
  13192. class StudentExaminationDTO extends BaseStudentExaminationDTO{
  13193. RelevanceTypeEnum relevanceType;
  13194. String? relevanceCode;
  13195. List<ExaminationAnswerDTO >? studentAnswers;
  13196. int submitCount;
  13197. StudentExaminationDTO({
  13198. this.relevanceType = RelevanceTypeEnum.Course,
  13199. this.relevanceCode,
  13200. this.studentAnswers,
  13201. this.submitCount = 0,
  13202. String? code,
  13203. String? examinationCode,
  13204. String? studentCode,
  13205. String? studentName,
  13206. double totalScore = 0,
  13207. }) : super(
  13208. code: code,
  13209. examinationCode: examinationCode,
  13210. studentCode: studentCode,
  13211. studentName: studentName,
  13212. totalScore: totalScore,
  13213. );
  13214. factory StudentExaminationDTO.fromJson(Map<String, dynamic> map) {
  13215. return StudentExaminationDTO(
  13216. relevanceType: RelevanceTypeEnum.values.firstWhere((e) => e.index == map['RelevanceType']),
  13217. relevanceCode: map['RelevanceCode'],
  13218. studentAnswers: map['StudentAnswers'] != null ? (map['StudentAnswers'] as List).map((e)=>ExaminationAnswerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13219. submitCount: map['SubmitCount'],
  13220. code: map['Code'],
  13221. examinationCode: map['ExaminationCode'],
  13222. studentCode: map['StudentCode'],
  13223. studentName: map['StudentName'],
  13224. totalScore: double.parse(map['TotalScore'].toString()),
  13225. );
  13226. }
  13227. Map<String, dynamic> toJson() {
  13228. final map = super.toJson();
  13229. map['RelevanceType'] = relevanceType.index;
  13230. if(relevanceCode != null)
  13231. map['RelevanceCode'] = relevanceCode;
  13232. if(studentAnswers != null)
  13233. map['StudentAnswers'] = studentAnswers;
  13234. map['SubmitCount'] = submitCount;
  13235. return map;
  13236. }
  13237. }
  13238. class DistributedServerInfoDTO extends BaseDTO{
  13239. String? serverCode;
  13240. bool isMaster;
  13241. String? name;
  13242. String? description;
  13243. bool enable;
  13244. DistributedServerTypeEnum serverType;
  13245. String? serverUrl;
  13246. String? lat;
  13247. String? lng;
  13248. List<IPAddressInfoDTO >? assignClientIPList;
  13249. DistributedServerInfoDTO({
  13250. this.serverCode,
  13251. this.isMaster = false,
  13252. this.name,
  13253. this.description,
  13254. this.enable = false,
  13255. this.serverType = DistributedServerTypeEnum.Official,
  13256. this.serverUrl,
  13257. this.lat,
  13258. this.lng,
  13259. this.assignClientIPList,
  13260. DateTime? createTime,
  13261. DateTime? updateTime,
  13262. }) : super(
  13263. createTime: createTime,
  13264. updateTime: updateTime,
  13265. );
  13266. factory DistributedServerInfoDTO.fromJson(Map<String, dynamic> map) {
  13267. return DistributedServerInfoDTO(
  13268. serverCode: map['ServerCode'],
  13269. isMaster: map['IsMaster'],
  13270. name: map['Name'],
  13271. description: map['Description'],
  13272. enable: map['Enable'],
  13273. serverType: DistributedServerTypeEnum.values.firstWhere((e) => e.index == map['ServerType']),
  13274. serverUrl: map['ServerUrl'],
  13275. lat: map['Lat'],
  13276. lng: map['Lng'],
  13277. assignClientIPList: map['AssignClientIPList'] != null ? (map['AssignClientIPList'] as List).map((e)=>IPAddressInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13278. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13279. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13280. );
  13281. }
  13282. Map<String, dynamic> toJson() {
  13283. final map = super.toJson();
  13284. if(serverCode != null)
  13285. map['ServerCode'] = serverCode;
  13286. map['IsMaster'] = isMaster;
  13287. if(name != null)
  13288. map['Name'] = name;
  13289. if(description != null)
  13290. map['Description'] = description;
  13291. map['Enable'] = enable;
  13292. map['ServerType'] = serverType.index;
  13293. if(serverUrl != null)
  13294. map['ServerUrl'] = serverUrl;
  13295. if(lat != null)
  13296. map['Lat'] = lat;
  13297. if(lng != null)
  13298. map['Lng'] = lng;
  13299. if(assignClientIPList != null)
  13300. map['AssignClientIPList'] = assignClientIPList;
  13301. return map;
  13302. }
  13303. }
  13304. class DiagnosisResultDTO {
  13305. int index;
  13306. String? diagnosisResult;
  13307. DiagnosisResultDTO({
  13308. this.index = 0,
  13309. this.diagnosisResult,
  13310. });
  13311. factory DiagnosisResultDTO.fromJson(Map<String, dynamic> map) {
  13312. return DiagnosisResultDTO(
  13313. index: map['Index'],
  13314. diagnosisResult: map['DiagnosisResult'],
  13315. );
  13316. }
  13317. Map<String, dynamic> toJson() {
  13318. final map = Map<String, dynamic>();
  13319. map['Index'] = index;
  13320. if(diagnosisResult != null)
  13321. map['DiagnosisResult'] = diagnosisResult;
  13322. return map;
  13323. }
  13324. }
  13325. class DeviceOutputConfigDTO {
  13326. String? code;
  13327. String? name;
  13328. DeviceVideoOutputTypeEnum deviceVideoOutputType;
  13329. int videoWidth;
  13330. int videoHeight;
  13331. DeviceOutputConfigDTO({
  13332. this.code,
  13333. this.name,
  13334. this.deviceVideoOutputType = DeviceVideoOutputTypeEnum.MergedVideo,
  13335. this.videoWidth = 0,
  13336. this.videoHeight = 0,
  13337. });
  13338. factory DeviceOutputConfigDTO.fromJson(Map<String, dynamic> map) {
  13339. return DeviceOutputConfigDTO(
  13340. code: map['Code'],
  13341. name: map['Name'],
  13342. deviceVideoOutputType: DeviceVideoOutputTypeEnum.values.firstWhere((e) => e.index == map['DeviceVideoOutputType']),
  13343. videoWidth: map['VideoWidth'],
  13344. videoHeight: map['VideoHeight'],
  13345. );
  13346. }
  13347. Map<String, dynamic> toJson() {
  13348. final map = Map<String, dynamic>();
  13349. if(code != null)
  13350. map['Code'] = code;
  13351. if(name != null)
  13352. map['Name'] = name;
  13353. map['DeviceVideoOutputType'] = deviceVideoOutputType.index;
  13354. map['VideoWidth'] = videoWidth;
  13355. map['VideoHeight'] = videoHeight;
  13356. return map;
  13357. }
  13358. }
  13359. class BoardPointDTO {
  13360. double x;
  13361. double y;
  13362. BoardPointDTO({
  13363. this.x = 0,
  13364. this.y = 0,
  13365. });
  13366. factory BoardPointDTO.fromJson(Map<String, dynamic> map) {
  13367. return BoardPointDTO(
  13368. x: double.parse(map['X'].toString()),
  13369. y: double.parse(map['Y'].toString()),
  13370. );
  13371. }
  13372. Map<String, dynamic> toJson() {
  13373. final map = Map<String, dynamic>();
  13374. map['X'] = x;
  13375. map['Y'] = y;
  13376. return map;
  13377. }
  13378. }
  13379. class ConsultationExpertDTO extends UserBaseDTO{
  13380. ConsultationExpertDTO({
  13381. String? userCode,
  13382. String? userName,
  13383. String? headImageUrl,
  13384. DateTime? createTime,
  13385. DateTime? updateTime,
  13386. }) : super(
  13387. userCode: userCode,
  13388. userName: userName,
  13389. headImageUrl: headImageUrl,
  13390. createTime: createTime,
  13391. updateTime: updateTime,
  13392. );
  13393. factory ConsultationExpertDTO.fromJson(Map<String, dynamic> map) {
  13394. return ConsultationExpertDTO(
  13395. userCode: map['UserCode'],
  13396. userName: map['UserName'],
  13397. headImageUrl: map['HeadImageUrl'],
  13398. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13399. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13400. );
  13401. }
  13402. Map<String, dynamic> toJson() {
  13403. final map = super.toJson();
  13404. return map;
  13405. }
  13406. }
  13407. class AdminStatisticRecordDTO extends BaseDTO{
  13408. String? adminStatisticRecordCode;
  13409. String? adminStatisticCode;
  13410. String? adminStatisticName;
  13411. String? adminCode;
  13412. String? serverHost;
  13413. DateTime? lastestUpdateTime;
  13414. DateTime? nextHandleTime;
  13415. List<String >? xAxisDatas;
  13416. List<List<double> >? yAxisDatas;
  13417. List<StatisticInfoDTO >? children;
  13418. String? statisticJsonData;
  13419. StatisticsPlatformEnum statisticsPlatform;
  13420. AdminStatisticRecordDTO({
  13421. this.adminStatisticRecordCode,
  13422. this.adminStatisticCode,
  13423. this.adminStatisticName,
  13424. this.adminCode,
  13425. this.serverHost,
  13426. this.lastestUpdateTime,
  13427. this.nextHandleTime,
  13428. this.xAxisDatas,
  13429. this.yAxisDatas,
  13430. this.children,
  13431. this.statisticJsonData,
  13432. this.statisticsPlatform = StatisticsPlatformEnum.Management,
  13433. DateTime? createTime,
  13434. DateTime? updateTime,
  13435. }) : super(
  13436. createTime: createTime,
  13437. updateTime: updateTime,
  13438. );
  13439. factory AdminStatisticRecordDTO.fromJson(Map<String, dynamic> map) {
  13440. return AdminStatisticRecordDTO(
  13441. adminStatisticRecordCode: map['AdminStatisticRecordCode'],
  13442. adminStatisticCode: map['AdminStatisticCode'],
  13443. adminStatisticName: map['AdminStatisticName'],
  13444. adminCode: map['AdminCode'],
  13445. serverHost: map['ServerHost'],
  13446. lastestUpdateTime: map['LastestUpdateTime'] != null ? DateTime.parse(map['LastestUpdateTime']) : null,
  13447. nextHandleTime: map['NextHandleTime'] != null ? DateTime.parse(map['NextHandleTime']) : null,
  13448. xAxisDatas: map['XAxisDatas'] != null ? map['XAxisDatas'].cast<String>().toList() : null,
  13449. yAxisDatas: map['YAxisDatas'] != null ? map['YAxisDatas'].cast<List<double>>().toList() : null,
  13450. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13451. statisticJsonData: map['StatisticJsonData'],
  13452. statisticsPlatform: StatisticsPlatformEnum.values.firstWhere((e) => e.index == map['StatisticsPlatform']),
  13453. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13454. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13455. );
  13456. }
  13457. Map<String, dynamic> toJson() {
  13458. final map = super.toJson();
  13459. if(adminStatisticRecordCode != null)
  13460. map['AdminStatisticRecordCode'] = adminStatisticRecordCode;
  13461. if(adminStatisticCode != null)
  13462. map['AdminStatisticCode'] = adminStatisticCode;
  13463. if(adminStatisticName != null)
  13464. map['AdminStatisticName'] = adminStatisticName;
  13465. if(adminCode != null)
  13466. map['AdminCode'] = adminCode;
  13467. if(serverHost != null)
  13468. map['ServerHost'] = serverHost;
  13469. if(lastestUpdateTime != null)
  13470. map['LastestUpdateTime'] = JsonRpcUtils.dateFormat(lastestUpdateTime!);
  13471. if(nextHandleTime != null)
  13472. map['NextHandleTime'] = JsonRpcUtils.dateFormat(nextHandleTime!);
  13473. if(xAxisDatas != null)
  13474. map['XAxisDatas'] = xAxisDatas;
  13475. if(yAxisDatas != null)
  13476. map['YAxisDatas'] = yAxisDatas;
  13477. if(children != null)
  13478. map['Children'] = children;
  13479. if(statisticJsonData != null)
  13480. map['StatisticJsonData'] = statisticJsonData;
  13481. map['StatisticsPlatform'] = statisticsPlatform.index;
  13482. return map;
  13483. }
  13484. }
  13485. class CMSStatisticRecordDTO extends AdminStatisticRecordDTO{
  13486. CMSStatisticRecordDTO({
  13487. String? statisticJsonData,
  13488. String? adminStatisticRecordCode,
  13489. String? adminStatisticCode,
  13490. String? adminStatisticName,
  13491. String? adminCode,
  13492. String? serverHost,
  13493. DateTime? lastestUpdateTime,
  13494. DateTime? nextHandleTime,
  13495. List<String >? xAxisDatas,
  13496. List<List<double> >? yAxisDatas,
  13497. List<StatisticInfoDTO >? children,
  13498. StatisticsPlatformEnum statisticsPlatform = StatisticsPlatformEnum.Management,
  13499. DateTime? createTime,
  13500. DateTime? updateTime,
  13501. }) : super(
  13502. adminStatisticRecordCode: adminStatisticRecordCode,
  13503. adminStatisticCode: adminStatisticCode,
  13504. adminStatisticName: adminStatisticName,
  13505. adminCode: adminCode,
  13506. serverHost: serverHost,
  13507. lastestUpdateTime: lastestUpdateTime,
  13508. nextHandleTime: nextHandleTime,
  13509. xAxisDatas: xAxisDatas,
  13510. yAxisDatas: yAxisDatas,
  13511. children: children,
  13512. statisticJsonData: statisticJsonData,
  13513. statisticsPlatform: statisticsPlatform,
  13514. createTime: createTime,
  13515. updateTime: updateTime,
  13516. );
  13517. factory CMSStatisticRecordDTO.fromJson(Map<String, dynamic> map) {
  13518. return CMSStatisticRecordDTO(
  13519. statisticJsonData: map['StatisticJsonData'],
  13520. adminStatisticRecordCode: map['AdminStatisticRecordCode'],
  13521. adminStatisticCode: map['AdminStatisticCode'],
  13522. adminStatisticName: map['AdminStatisticName'],
  13523. adminCode: map['AdminCode'],
  13524. serverHost: map['ServerHost'],
  13525. lastestUpdateTime: map['LastestUpdateTime'] != null ? DateTime.parse(map['LastestUpdateTime']) : null,
  13526. nextHandleTime: map['NextHandleTime'] != null ? DateTime.parse(map['NextHandleTime']) : null,
  13527. xAxisDatas: map['XAxisDatas'] != null ? map['XAxisDatas'].cast<String>().toList() : null,
  13528. yAxisDatas: map['YAxisDatas'] != null ? map['YAxisDatas'].cast<List<double>>().toList() : null,
  13529. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13530. statisticsPlatform: StatisticsPlatformEnum.values.firstWhere((e) => e.index == map['StatisticsPlatform']),
  13531. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13532. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13533. );
  13534. }
  13535. Map<String, dynamic> toJson() {
  13536. final map = super.toJson();
  13537. return map;
  13538. }
  13539. }
  13540. class CMSTemplateDTO extends BaseDTO{
  13541. String? cMSTemplateCode;
  13542. String? cMSTemplateName;
  13543. CMSTemplateStatusTypeEnum cMSTemplateStateType;
  13544. String? cMSTemplateJson;
  13545. bool isDefault;
  13546. List<String >? organizationCodes;
  13547. CMSTemplateDTO({
  13548. this.cMSTemplateCode,
  13549. this.cMSTemplateName,
  13550. this.cMSTemplateStateType = CMSTemplateStatusTypeEnum.UnPublished,
  13551. this.cMSTemplateJson,
  13552. this.isDefault = false,
  13553. this.organizationCodes,
  13554. DateTime? createTime,
  13555. DateTime? updateTime,
  13556. }) : super(
  13557. createTime: createTime,
  13558. updateTime: updateTime,
  13559. );
  13560. factory CMSTemplateDTO.fromJson(Map<String, dynamic> map) {
  13561. return CMSTemplateDTO(
  13562. cMSTemplateCode: map['CMSTemplateCode'],
  13563. cMSTemplateName: map['CMSTemplateName'],
  13564. cMSTemplateStateType: CMSTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['CMSTemplateStateType']),
  13565. cMSTemplateJson: map['CMSTemplateJson'],
  13566. isDefault: map['IsDefault'],
  13567. organizationCodes: map['OrganizationCodes'] != null ? map['OrganizationCodes'].cast<String>().toList() : null,
  13568. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13569. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13570. );
  13571. }
  13572. Map<String, dynamic> toJson() {
  13573. final map = super.toJson();
  13574. if(cMSTemplateCode != null)
  13575. map['CMSTemplateCode'] = cMSTemplateCode;
  13576. if(cMSTemplateName != null)
  13577. map['CMSTemplateName'] = cMSTemplateName;
  13578. map['CMSTemplateStateType'] = cMSTemplateStateType.index;
  13579. if(cMSTemplateJson != null)
  13580. map['CMSTemplateJson'] = cMSTemplateJson;
  13581. map['IsDefault'] = isDefault;
  13582. if(organizationCodes != null)
  13583. map['OrganizationCodes'] = organizationCodes;
  13584. return map;
  13585. }
  13586. }
  13587. class StatisticAnnouncesDTO {
  13588. AnnouncementTypeEnum announcementType;
  13589. DateTime? contentTime;
  13590. String? content;
  13591. CMSMessageStatusEnum status;
  13592. StatisticAnnouncesDTO({
  13593. this.announcementType = AnnouncementTypeEnum.Broadcast,
  13594. this.contentTime,
  13595. this.content,
  13596. this.status = CMSMessageStatusEnum.UnRead,
  13597. });
  13598. factory StatisticAnnouncesDTO.fromJson(Map<String, dynamic> map) {
  13599. return StatisticAnnouncesDTO(
  13600. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  13601. contentTime: map['ContentTime'] != null ? DateTime.parse(map['ContentTime']) : null,
  13602. content: map['Content'],
  13603. status: CMSMessageStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  13604. );
  13605. }
  13606. Map<String, dynamic> toJson() {
  13607. final map = Map<String, dynamic>();
  13608. map['AnnouncementType'] = announcementType.index;
  13609. if(contentTime != null)
  13610. map['ContentTime'] = JsonRpcUtils.dateFormat(contentTime!);
  13611. if(content != null)
  13612. map['Content'] = content;
  13613. map['Status'] = status.index;
  13614. return map;
  13615. }
  13616. }
  13617. class StatisticDevicesDTO {
  13618. String? imgUrl;
  13619. String? name;
  13620. String? transferUrl;
  13621. StatisticDevicesDTO({
  13622. this.imgUrl,
  13623. this.name,
  13624. this.transferUrl,
  13625. });
  13626. factory StatisticDevicesDTO.fromJson(Map<String, dynamic> map) {
  13627. return StatisticDevicesDTO(
  13628. imgUrl: map['ImgUrl'],
  13629. name: map['Name'],
  13630. transferUrl: map['TransferUrl'],
  13631. );
  13632. }
  13633. Map<String, dynamic> toJson() {
  13634. final map = Map<String, dynamic>();
  13635. if(imgUrl != null)
  13636. map['ImgUrl'] = imgUrl;
  13637. if(name != null)
  13638. map['Name'] = name;
  13639. if(transferUrl != null)
  13640. map['TransferUrl'] = transferUrl;
  13641. return map;
  13642. }
  13643. }
  13644. class StatisticDownloadDTO {
  13645. String? imgUrl;
  13646. String? transferUrl;
  13647. StatisticDownloadDTO({
  13648. this.imgUrl,
  13649. this.transferUrl,
  13650. });
  13651. factory StatisticDownloadDTO.fromJson(Map<String, dynamic> map) {
  13652. return StatisticDownloadDTO(
  13653. imgUrl: map['ImgUrl'],
  13654. transferUrl: map['TransferUrl'],
  13655. );
  13656. }
  13657. Map<String, dynamic> toJson() {
  13658. final map = Map<String, dynamic>();
  13659. if(imgUrl != null)
  13660. map['ImgUrl'] = imgUrl;
  13661. if(transferUrl != null)
  13662. map['TransferUrl'] = transferUrl;
  13663. return map;
  13664. }
  13665. }
  13666. class StatisticMessagesDTO {
  13667. String? content;
  13668. DateTime? time;
  13669. String? transferUrl;
  13670. CMSMessageStatusEnum status;
  13671. StatisticMessagesDTO({
  13672. this.content,
  13673. this.time,
  13674. this.transferUrl,
  13675. this.status = CMSMessageStatusEnum.UnRead,
  13676. });
  13677. factory StatisticMessagesDTO.fromJson(Map<String, dynamic> map) {
  13678. return StatisticMessagesDTO(
  13679. content: map['Content'],
  13680. time: map['Time'] != null ? DateTime.parse(map['Time']) : null,
  13681. transferUrl: map['TransferUrl'],
  13682. status: CMSMessageStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  13683. );
  13684. }
  13685. Map<String, dynamic> toJson() {
  13686. final map = Map<String, dynamic>();
  13687. if(content != null)
  13688. map['Content'] = content;
  13689. if(time != null)
  13690. map['Time'] = JsonRpcUtils.dateFormat(time!);
  13691. if(transferUrl != null)
  13692. map['TransferUrl'] = transferUrl;
  13693. map['Status'] = status.index;
  13694. return map;
  13695. }
  13696. }
  13697. class StatisticMessageInfoDTO extends StatisticMessagesDTO{
  13698. String? userCode;
  13699. String? messageCode;
  13700. StatisticMessageInfoDTO({
  13701. this.userCode,
  13702. this.messageCode,
  13703. String? content,
  13704. DateTime? time,
  13705. String? transferUrl,
  13706. CMSMessageStatusEnum status = CMSMessageStatusEnum.UnRead,
  13707. }) : super(
  13708. content: content,
  13709. time: time,
  13710. transferUrl: transferUrl,
  13711. status: status,
  13712. );
  13713. factory StatisticMessageInfoDTO.fromJson(Map<String, dynamic> map) {
  13714. return StatisticMessageInfoDTO(
  13715. userCode: map['UserCode'],
  13716. messageCode: map['MessageCode'],
  13717. content: map['Content'],
  13718. time: map['Time'] != null ? DateTime.parse(map['Time']) : null,
  13719. transferUrl: map['TransferUrl'],
  13720. status: CMSMessageStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  13721. );
  13722. }
  13723. Map<String, dynamic> toJson() {
  13724. final map = super.toJson();
  13725. if(userCode != null)
  13726. map['UserCode'] = userCode;
  13727. if(messageCode != null)
  13728. map['MessageCode'] = messageCode;
  13729. return map;
  13730. }
  13731. }
  13732. class StatisticMyPendingDTO {
  13733. String? title;
  13734. double rate;
  13735. StatisticMyPendingDTO({
  13736. this.title,
  13737. this.rate = 0,
  13738. });
  13739. factory StatisticMyPendingDTO.fromJson(Map<String, dynamic> map) {
  13740. return StatisticMyPendingDTO(
  13741. title: map['Title'],
  13742. rate: double.parse(map['Rate'].toString()),
  13743. );
  13744. }
  13745. Map<String, dynamic> toJson() {
  13746. final map = Map<String, dynamic>();
  13747. if(title != null)
  13748. map['Title'] = title;
  13749. map['Rate'] = rate;
  13750. return map;
  13751. }
  13752. }
  13753. class StatisticMyStandingDTO {
  13754. String? title;
  13755. int data;
  13756. String? unit;
  13757. String? transferUrl;
  13758. StatisticMyStandingDTO({
  13759. this.title,
  13760. this.data = 0,
  13761. this.unit,
  13762. this.transferUrl,
  13763. });
  13764. factory StatisticMyStandingDTO.fromJson(Map<String, dynamic> map) {
  13765. return StatisticMyStandingDTO(
  13766. title: map['Title'],
  13767. data: map['Data'],
  13768. unit: map['Unit'],
  13769. transferUrl: map['TransferUrl'],
  13770. );
  13771. }
  13772. Map<String, dynamic> toJson() {
  13773. final map = Map<String, dynamic>();
  13774. if(title != null)
  13775. map['Title'] = title;
  13776. map['Data'] = data;
  13777. if(unit != null)
  13778. map['Unit'] = unit;
  13779. if(transferUrl != null)
  13780. map['TransferUrl'] = transferUrl;
  13781. return map;
  13782. }
  13783. }
  13784. class StatisticPlatActivityDTO {
  13785. String? imgUrl;
  13786. String? transferUrl;
  13787. StatisticPlatActivityDTO({
  13788. this.imgUrl,
  13789. this.transferUrl,
  13790. });
  13791. factory StatisticPlatActivityDTO.fromJson(Map<String, dynamic> map) {
  13792. return StatisticPlatActivityDTO(
  13793. imgUrl: map['ImgUrl'],
  13794. transferUrl: map['TransferUrl'],
  13795. );
  13796. }
  13797. Map<String, dynamic> toJson() {
  13798. final map = Map<String, dynamic>();
  13799. if(imgUrl != null)
  13800. map['ImgUrl'] = imgUrl;
  13801. if(transferUrl != null)
  13802. map['TransferUrl'] = transferUrl;
  13803. return map;
  13804. }
  13805. }
  13806. class StatisticUpdateCourseDTO {
  13807. String? title;
  13808. String? teacher;
  13809. String? thumbnail;
  13810. String? transferUrl;
  13811. StatisticUpdateCourseDTO({
  13812. this.title,
  13813. this.teacher,
  13814. this.thumbnail,
  13815. this.transferUrl,
  13816. });
  13817. factory StatisticUpdateCourseDTO.fromJson(Map<String, dynamic> map) {
  13818. return StatisticUpdateCourseDTO(
  13819. title: map['Title'],
  13820. teacher: map['Teacher'],
  13821. thumbnail: map['Thumbnail'],
  13822. transferUrl: map['TransferUrl'],
  13823. );
  13824. }
  13825. Map<String, dynamic> toJson() {
  13826. final map = Map<String, dynamic>();
  13827. if(title != null)
  13828. map['Title'] = title;
  13829. if(teacher != null)
  13830. map['Teacher'] = teacher;
  13831. if(thumbnail != null)
  13832. map['Thumbnail'] = thumbnail;
  13833. if(transferUrl != null)
  13834. map['TransferUrl'] = transferUrl;
  13835. return map;
  13836. }
  13837. }
  13838. class BaseFeatureItemDTO extends BaseFeatureItemBaseDTO<BaseFeatureItemDTO>{
  13839. BaseFeatureItemDTO(
  13840. );
  13841. factory BaseFeatureItemDTO.fromJson(Map<String, dynamic> map) {
  13842. return BaseFeatureItemDTO(
  13843. );
  13844. }
  13845. Map<String, dynamic> toJson() {
  13846. final map = super.toJson();
  13847. return map;
  13848. }
  13849. }
  13850. class AIDiagnosisLesionSize {
  13851. AIDiagnosisPoint2D? horizontalPoint1;
  13852. AIDiagnosisPoint2D? horizontalPoint2;
  13853. int horizontalLengthInPixel;
  13854. AIDiagnosisPoint2D? verticalPoint1;
  13855. AIDiagnosisPoint2D? verticalPoint2;
  13856. int verticalLengthInPixel;
  13857. AIDiagnosisLesionSize({
  13858. this.horizontalPoint1,
  13859. this.horizontalPoint2,
  13860. this.horizontalLengthInPixel = 0,
  13861. this.verticalPoint1,
  13862. this.verticalPoint2,
  13863. this.verticalLengthInPixel = 0,
  13864. });
  13865. factory AIDiagnosisLesionSize.fromJson(Map<String, dynamic> map) {
  13866. return AIDiagnosisLesionSize(
  13867. horizontalPoint1: map['HorizontalPoint1'] != null ? AIDiagnosisPoint2D.fromJson(map['HorizontalPoint1']) : null,
  13868. horizontalPoint2: map['HorizontalPoint2'] != null ? AIDiagnosisPoint2D.fromJson(map['HorizontalPoint2']) : null,
  13869. horizontalLengthInPixel: map['HorizontalLengthInPixel'],
  13870. verticalPoint1: map['VerticalPoint1'] != null ? AIDiagnosisPoint2D.fromJson(map['VerticalPoint1']) : null,
  13871. verticalPoint2: map['VerticalPoint2'] != null ? AIDiagnosisPoint2D.fromJson(map['VerticalPoint2']) : null,
  13872. verticalLengthInPixel: map['VerticalLengthInPixel'],
  13873. );
  13874. }
  13875. Map<String, dynamic> toJson() {
  13876. final map = Map<String, dynamic>();
  13877. if(horizontalPoint1 != null)
  13878. map['HorizontalPoint1'] = horizontalPoint1;
  13879. if(horizontalPoint2 != null)
  13880. map['HorizontalPoint2'] = horizontalPoint2;
  13881. map['HorizontalLengthInPixel'] = horizontalLengthInPixel;
  13882. if(verticalPoint1 != null)
  13883. map['VerticalPoint1'] = verticalPoint1;
  13884. if(verticalPoint2 != null)
  13885. map['VerticalPoint2'] = verticalPoint2;
  13886. map['VerticalLengthInPixel'] = verticalLengthInPixel;
  13887. return map;
  13888. }
  13889. }
  13890. class ArrowCommentItemDTO {
  13891. ArrowOrientation arrowOrientation;
  13892. String? text;
  13893. ArrowCommentItemDTO({
  13894. this.arrowOrientation = ArrowOrientation.Down,
  13895. this.text,
  13896. });
  13897. factory ArrowCommentItemDTO.fromJson(Map<String, dynamic> map) {
  13898. return ArrowCommentItemDTO(
  13899. arrowOrientation: ArrowOrientation.values.firstWhere((e) => e.index == map['ArrowOrientation']),
  13900. text: map['Text'],
  13901. );
  13902. }
  13903. Map<String, dynamic> toJson() {
  13904. final map = Map<String, dynamic>();
  13905. map['ArrowOrientation'] = arrowOrientation.index;
  13906. if(text != null)
  13907. map['Text'] = text;
  13908. return map;
  13909. }
  13910. }
  13911. class UserDefinedCommentsDTO {
  13912. String? userId;
  13913. List<UserDefinedCommentDataDTO >? commentItems;
  13914. UserDefinedCommentsDTO({
  13915. this.userId,
  13916. this.commentItems,
  13917. });
  13918. factory UserDefinedCommentsDTO.fromJson(Map<String, dynamic> map) {
  13919. return UserDefinedCommentsDTO(
  13920. userId: map['UserId'],
  13921. commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>UserDefinedCommentDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13922. );
  13923. }
  13924. Map<String, dynamic> toJson() {
  13925. final map = Map<String, dynamic>();
  13926. if(userId != null)
  13927. map['UserId'] = userId;
  13928. if(commentItems != null)
  13929. map['CommentItems'] = commentItems;
  13930. return map;
  13931. }
  13932. }
  13933. class AdminStatisticDTO extends BaseDTO{
  13934. String? adminStatisticCode;
  13935. String? name;
  13936. String? description;
  13937. String? intervalSetting;
  13938. bool enabled;
  13939. String? handleClass;
  13940. String? serverHost;
  13941. AdminStatisticDTO({
  13942. this.adminStatisticCode,
  13943. this.name,
  13944. this.description,
  13945. this.intervalSetting,
  13946. this.enabled = false,
  13947. this.handleClass,
  13948. this.serverHost,
  13949. DateTime? createTime,
  13950. DateTime? updateTime,
  13951. }) : super(
  13952. createTime: createTime,
  13953. updateTime: updateTime,
  13954. );
  13955. factory AdminStatisticDTO.fromJson(Map<String, dynamic> map) {
  13956. return AdminStatisticDTO(
  13957. adminStatisticCode: map['AdminStatisticCode'],
  13958. name: map['Name'],
  13959. description: map['Description'],
  13960. intervalSetting: map['IntervalSetting'],
  13961. enabled: map['Enabled'],
  13962. handleClass: map['HandleClass'],
  13963. serverHost: map['ServerHost'],
  13964. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13965. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13966. );
  13967. }
  13968. Map<String, dynamic> toJson() {
  13969. final map = super.toJson();
  13970. if(adminStatisticCode != null)
  13971. map['AdminStatisticCode'] = adminStatisticCode;
  13972. if(name != null)
  13973. map['Name'] = name;
  13974. if(description != null)
  13975. map['Description'] = description;
  13976. if(intervalSetting != null)
  13977. map['IntervalSetting'] = intervalSetting;
  13978. map['Enabled'] = enabled;
  13979. if(handleClass != null)
  13980. map['HandleClass'] = handleClass;
  13981. if(serverHost != null)
  13982. map['ServerHost'] = serverHost;
  13983. return map;
  13984. }
  13985. }
  13986. class AdminFeatureItemDTO extends BaseFeatureItemBaseDTO<AdminFeatureItemDTO>{
  13987. AdminFeatureItemDTO(
  13988. );
  13989. factory AdminFeatureItemDTO.fromJson(Map<String, dynamic> map) {
  13990. return AdminFeatureItemDTO(
  13991. );
  13992. }
  13993. Map<String, dynamic> toJson() {
  13994. final map = super.toJson();
  13995. return map;
  13996. }
  13997. }
  13998. class AdminAuthorityGroupDTO extends BaseDTO{
  13999. String? adminGroupCode;
  14000. String? description;
  14001. List<String >? adminCodes;
  14002. List<String >? features;
  14003. String? createAdmin;
  14004. AdminAuthorityGroupDTO({
  14005. this.adminGroupCode,
  14006. this.description,
  14007. this.adminCodes,
  14008. this.features,
  14009. this.createAdmin,
  14010. DateTime? createTime,
  14011. DateTime? updateTime,
  14012. }) : super(
  14013. createTime: createTime,
  14014. updateTime: updateTime,
  14015. );
  14016. factory AdminAuthorityGroupDTO.fromJson(Map<String, dynamic> map) {
  14017. return AdminAuthorityGroupDTO(
  14018. adminGroupCode: map['AdminGroupCode'],
  14019. description: map['Description'],
  14020. adminCodes: map['AdminCodes'] != null ? map['AdminCodes'].cast<String>().toList() : null,
  14021. features: map['Features'] != null ? map['Features'].cast<String>().toList() : null,
  14022. createAdmin: map['CreateAdmin'],
  14023. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  14024. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  14025. );
  14026. }
  14027. Map<String, dynamic> toJson() {
  14028. final map = super.toJson();
  14029. if(adminGroupCode != null)
  14030. map['AdminGroupCode'] = adminGroupCode;
  14031. if(description != null)
  14032. map['Description'] = description;
  14033. if(adminCodes != null)
  14034. map['AdminCodes'] = adminCodes;
  14035. if(features != null)
  14036. map['Features'] = features;
  14037. if(createAdmin != null)
  14038. map['CreateAdmin'] = createAdmin;
  14039. return map;
  14040. }
  14041. }