other.m.dart 312 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587
  1. import 'wingRtc.m.dart';
  2. import 'authentication.m.dart';
  3. import 'notification.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 'aIDiagnosis.m.dart';
  10. import 'organization.m.dart';
  11. import 'device.m.dart';
  12. import 'connect.m.dart';
  13. import 'storage.m.dart';
  14. import 'report.m.dart';
  15. import 'vinnoServer.m.dart';
  16. import 'position.m.dart';
  17. import 'rank.m.dart';
  18. import 'identityApply.m.dart';
  19. import 'login.m.dart';
  20. import 'role.m.dart';
  21. import 'region.m.dart';
  22. import 'aSR.m.dart';
  23. import 'package:fis_jsonrpc/utils.dart';
  24. import 'package:fis_common/json_convert.dart';
  25. class StorageInfoResult {
  26. int code;
  27. bool isSuccess;
  28. String? message;
  29. StorageInfoResult({
  30. this.code = 0,
  31. this.isSuccess = false,
  32. this.message,
  33. });
  34. factory StorageInfoResult.fromJson(Map<String, dynamic> map) {
  35. return StorageInfoResult(
  36. code: map['Code'],
  37. isSuccess: map['IsSuccess'],
  38. message: map['Message'],
  39. );
  40. }
  41. Map<String, dynamic> toJson() {
  42. final map = Map<String, dynamic>();
  43. map['Code'] = code;
  44. map['IsSuccess'] = isSuccess;
  45. if(message != null)
  46. map['Message'] = message;
  47. return map;
  48. }
  49. }
  50. class MeasureItemsResult {
  51. MeasureItemsResult();
  52. factory MeasureItemsResult.fromJson(Map<String, dynamic> map) {
  53. return MeasureItemsResult(
  54. );
  55. }
  56. Map<String, dynamic> toJson() {
  57. final map = Map<String, dynamic>();
  58. return map;
  59. }
  60. }
  61. class ClearSystemLogRecordResult {
  62. int daysAgo;
  63. String? requestServerHost;
  64. String? clearTime;
  65. ClearSystemLogRecordResult({
  66. this.daysAgo = 0,
  67. this.requestServerHost,
  68. this.clearTime,
  69. });
  70. factory ClearSystemLogRecordResult.fromJson(Map<String, dynamic> map) {
  71. return ClearSystemLogRecordResult(
  72. daysAgo: map['DaysAgo'],
  73. requestServerHost: map['RequestServerHost'],
  74. clearTime: map['ClearTime'],
  75. );
  76. }
  77. Map<String, dynamic> toJson() {
  78. final map = Map<String, dynamic>();
  79. map['DaysAgo'] = daysAgo;
  80. if(requestServerHost != null)
  81. map['RequestServerHost'] = requestServerHost;
  82. if(clearTime != null)
  83. map['ClearTime'] = clearTime;
  84. return map;
  85. }
  86. }
  87. enum CMSTemplateStatusTypeEnum {
  88. UnPublished,
  89. Published,
  90. }
  91. class CMSTemplateResult {
  92. String? cMSTemplateCode;
  93. String? cMSTemplateName;
  94. CMSTemplateStatusTypeEnum cMSTemplateStateType;
  95. String? cMSTemplateJson;
  96. bool isDefault;
  97. DateTime? createTime;
  98. CMSTemplateResult({
  99. this.cMSTemplateCode,
  100. this.cMSTemplateName,
  101. this.cMSTemplateStateType = CMSTemplateStatusTypeEnum.UnPublished,
  102. this.cMSTemplateJson,
  103. this.isDefault = false,
  104. this.createTime,
  105. });
  106. factory CMSTemplateResult.fromJson(Map<String, dynamic> map) {
  107. return CMSTemplateResult(
  108. cMSTemplateCode: map['CMSTemplateCode'],
  109. cMSTemplateName: map['CMSTemplateName'],
  110. cMSTemplateStateType: CMSTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['CMSTemplateStateType']),
  111. cMSTemplateJson: map['CMSTemplateJson'],
  112. isDefault: map['IsDefault'],
  113. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  114. );
  115. }
  116. Map<String, dynamic> toJson() {
  117. final map = Map<String, dynamic>();
  118. if(cMSTemplateCode != null)
  119. map['CMSTemplateCode'] = cMSTemplateCode;
  120. if(cMSTemplateName != null)
  121. map['CMSTemplateName'] = cMSTemplateName;
  122. map['CMSTemplateStateType'] = cMSTemplateStateType.index;
  123. if(cMSTemplateJson != null)
  124. map['CMSTemplateJson'] = cMSTemplateJson;
  125. map['IsDefault'] = isDefault;
  126. if(createTime != null)
  127. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  128. return map;
  129. }
  130. }
  131. class OrganizationBindQueryResult {
  132. int bindDeviceNum;
  133. int bindUserNum;
  134. OrganizationBindQueryResult({
  135. this.bindDeviceNum = 0,
  136. this.bindUserNum = 0,
  137. });
  138. factory OrganizationBindQueryResult.fromJson(Map<String, dynamic> map) {
  139. return OrganizationBindQueryResult(
  140. bindDeviceNum: map['BindDeviceNum'],
  141. bindUserNum: map['BindUserNum'],
  142. );
  143. }
  144. Map<String, dynamic> toJson() {
  145. final map = Map<String, dynamic>();
  146. map['BindDeviceNum'] = bindDeviceNum;
  147. map['BindUserNum'] = bindUserNum;
  148. return map;
  149. }
  150. }
  151. class ShareExamUrlResult {
  152. String? posterUrl;
  153. String? videoUrl;
  154. ShareExamUrlResult({
  155. this.posterUrl,
  156. this.videoUrl,
  157. });
  158. factory ShareExamUrlResult.fromJson(Map<String, dynamic> map) {
  159. return ShareExamUrlResult(
  160. posterUrl: map['PosterUrl'],
  161. videoUrl: map['VideoUrl'],
  162. );
  163. }
  164. Map<String, dynamic> toJson() {
  165. final map = Map<String, dynamic>();
  166. if(posterUrl != null)
  167. map['PosterUrl'] = posterUrl;
  168. if(videoUrl != null)
  169. map['VideoUrl'] = videoUrl;
  170. return map;
  171. }
  172. }
  173. class ApplyLockResult {
  174. bool isSuccess;
  175. String? lockUniqueCode;
  176. ApplyLockResult({
  177. this.isSuccess = false,
  178. this.lockUniqueCode,
  179. });
  180. factory ApplyLockResult.fromJson(Map<String, dynamic> map) {
  181. return ApplyLockResult(
  182. isSuccess: map['IsSuccess'],
  183. lockUniqueCode: map['LockUniqueCode'],
  184. );
  185. }
  186. Map<String, dynamic> toJson() {
  187. final map = Map<String, dynamic>();
  188. map['IsSuccess'] = isSuccess;
  189. if(lockUniqueCode != null)
  190. map['LockUniqueCode'] = lockUniqueCode;
  191. return map;
  192. }
  193. }
  194. class ReleaseLockResult {
  195. bool isSuccess;
  196. ReleaseLockResult({
  197. this.isSuccess = false,
  198. });
  199. factory ReleaseLockResult.fromJson(Map<String, dynamic> map) {
  200. return ReleaseLockResult(
  201. isSuccess: map['IsSuccess'],
  202. );
  203. }
  204. Map<String, dynamic> toJson() {
  205. final map = Map<String, dynamic>();
  206. map['IsSuccess'] = isSuccess;
  207. return map;
  208. }
  209. }
  210. class MarshalByRefObject {
  211. MarshalByRefObject();
  212. factory MarshalByRefObject.fromJson(Map<String, dynamic> map) {
  213. return MarshalByRefObject(
  214. );
  215. }
  216. Map<String, dynamic> toJson() {
  217. final map = Map<String, dynamic>();
  218. return map;
  219. }
  220. }
  221. class Stream extends MarshalByRefObject{
  222. bool canRead;
  223. bool canWrite;
  224. bool canSeek;
  225. bool canTimeout;
  226. int length;
  227. int position;
  228. int readTimeout;
  229. int writeTimeout;
  230. Stream({
  231. this.canRead = false,
  232. this.canWrite = false,
  233. this.canSeek = false,
  234. this.canTimeout = false,
  235. this.length = 0,
  236. this.position = 0,
  237. this.readTimeout = 0,
  238. this.writeTimeout = 0,
  239. }) : super(
  240. );
  241. factory Stream.fromJson(Map<String, dynamic> map) {
  242. return Stream(
  243. canRead: map['CanRead'],
  244. canWrite: map['CanWrite'],
  245. canSeek: map['CanSeek'],
  246. canTimeout: map['CanTimeout'],
  247. length: map['Length'],
  248. position: map['Position'],
  249. readTimeout: map['ReadTimeout'],
  250. writeTimeout: map['WriteTimeout'],
  251. );
  252. }
  253. Map<String, dynamic> toJson() {
  254. final map = super.toJson();
  255. map['CanRead'] = canRead;
  256. map['CanWrite'] = canWrite;
  257. map['CanSeek'] = canSeek;
  258. map['CanTimeout'] = canTimeout;
  259. map['Length'] = length;
  260. map['Position'] = position;
  261. map['ReadTimeout'] = readTimeout;
  262. map['WriteTimeout'] = writeTimeout;
  263. return map;
  264. }
  265. }
  266. class DownloadFileResult {
  267. Stream? merageFileStream;
  268. int fileSize;
  269. DownloadFileResult({
  270. this.merageFileStream,
  271. this.fileSize = 0,
  272. });
  273. factory DownloadFileResult.fromJson(Map<String, dynamic> map) {
  274. return DownloadFileResult(
  275. merageFileStream: map['MerageFileStream'] != null ? Stream.fromJson(map['MerageFileStream']) : null,
  276. fileSize: map['FileSize'],
  277. );
  278. }
  279. Map<String, dynamic> toJson() {
  280. final map = Map<String, dynamic>();
  281. if(merageFileStream != null)
  282. map['MerageFileStream'] = merageFileStream;
  283. map['FileSize'] = fileSize;
  284. return map;
  285. }
  286. }
  287. class FindConsultationSettingResult {
  288. String? version;
  289. String? settingData;
  290. FindConsultationSettingResult({
  291. this.version,
  292. this.settingData,
  293. });
  294. factory FindConsultationSettingResult.fromJson(Map<String, dynamic> map) {
  295. return FindConsultationSettingResult(
  296. version: map['Version'],
  297. settingData: map['SettingData'],
  298. );
  299. }
  300. Map<String, dynamic> toJson() {
  301. final map = Map<String, dynamic>();
  302. if(version != null)
  303. map['Version'] = version;
  304. if(settingData != null)
  305. map['SettingData'] = settingData;
  306. return map;
  307. }
  308. }
  309. class AddCacheReportPosterRequest extends TokenRequest{
  310. String? reportPosterCode;
  311. AddCacheReportPosterRequest({
  312. this.reportPosterCode,
  313. String? token,
  314. }) : super(
  315. token: token,
  316. );
  317. factory AddCacheReportPosterRequest.fromJson(Map<String, dynamic> map) {
  318. return AddCacheReportPosterRequest(
  319. reportPosterCode: map['ReportPosterCode'],
  320. token: map['Token'],
  321. );
  322. }
  323. Map<String, dynamic> toJson() {
  324. final map = super.toJson();
  325. if(reportPosterCode != null)
  326. map['ReportPosterCode'] = reportPosterCode;
  327. return map;
  328. }
  329. }
  330. class DeleteThesaurusUserCodeRequest extends TokenRequest{
  331. String? thesaurusCode;
  332. DeleteThesaurusUserCodeRequest({
  333. this.thesaurusCode,
  334. String? token,
  335. }) : super(
  336. token: token,
  337. );
  338. factory DeleteThesaurusUserCodeRequest.fromJson(Map<String, dynamic> map) {
  339. return DeleteThesaurusUserCodeRequest(
  340. thesaurusCode: map['ThesaurusCode'],
  341. token: map['Token'],
  342. );
  343. }
  344. Map<String, dynamic> toJson() {
  345. final map = super.toJson();
  346. if(thesaurusCode != null)
  347. map['ThesaurusCode'] = thesaurusCode;
  348. return map;
  349. }
  350. }
  351. class RemoveCacheReportPosterRequest extends TokenRequest{
  352. String? reportPosterCode;
  353. RemoveCacheReportPosterRequest({
  354. this.reportPosterCode,
  355. String? token,
  356. }) : super(
  357. token: token,
  358. );
  359. factory RemoveCacheReportPosterRequest.fromJson(Map<String, dynamic> map) {
  360. return RemoveCacheReportPosterRequest(
  361. reportPosterCode: map['ReportPosterCode'],
  362. token: map['Token'],
  363. );
  364. }
  365. Map<String, dynamic> toJson() {
  366. final map = super.toJson();
  367. if(reportPosterCode != null)
  368. map['ReportPosterCode'] = reportPosterCode;
  369. return map;
  370. }
  371. }
  372. class UpdateThesaurusUserCodeRequest extends TokenRequest{
  373. String? thesaurusCode;
  374. UpdateThesaurusUserCodeRequest({
  375. this.thesaurusCode,
  376. String? token,
  377. }) : super(
  378. token: token,
  379. );
  380. factory UpdateThesaurusUserCodeRequest.fromJson(Map<String, dynamic> map) {
  381. return UpdateThesaurusUserCodeRequest(
  382. thesaurusCode: map['ThesaurusCode'],
  383. token: map['Token'],
  384. );
  385. }
  386. Map<String, dynamic> toJson() {
  387. final map = super.toJson();
  388. if(thesaurusCode != null)
  389. map['ThesaurusCode'] = thesaurusCode;
  390. return map;
  391. }
  392. }
  393. class PushRecordCodesToDeviceRequest extends TokenRequest{
  394. List<String >? recordCodes;
  395. String? deviceCode;
  396. PushRecordCodesToDeviceRequest({
  397. this.recordCodes,
  398. this.deviceCode,
  399. String? token,
  400. }) : super(
  401. token: token,
  402. );
  403. factory PushRecordCodesToDeviceRequest.fromJson(Map<String, dynamic> map) {
  404. return PushRecordCodesToDeviceRequest(
  405. recordCodes: map['RecordCodes'] != null ? map['RecordCodes'].cast<String>().toList() : null,
  406. deviceCode: map['DeviceCode'],
  407. token: map['Token'],
  408. );
  409. }
  410. Map<String, dynamic> toJson() {
  411. final map = super.toJson();
  412. if(recordCodes != null)
  413. map['RecordCodes'] = recordCodes;
  414. if(deviceCode != null)
  415. map['DeviceCode'] = deviceCode;
  416. return map;
  417. }
  418. }
  419. class CloseNotifyQueueRequest {
  420. String? msgQueueId;
  421. CloseNotifyQueueRequest({
  422. this.msgQueueId,
  423. });
  424. factory CloseNotifyQueueRequest.fromJson(Map<String, dynamic> map) {
  425. return CloseNotifyQueueRequest(
  426. msgQueueId: map['MsgQueueId'],
  427. );
  428. }
  429. Map<String, dynamic> toJson() {
  430. final map = Map<String, dynamic>();
  431. if(msgQueueId != null)
  432. map['MsgQueueId'] = msgQueueId;
  433. return map;
  434. }
  435. }
  436. class OpenNotifyQueueRequest {
  437. String? module;
  438. OpenNotifyQueueRequest({
  439. this.module,
  440. });
  441. factory OpenNotifyQueueRequest.fromJson(Map<String, dynamic> map) {
  442. return OpenNotifyQueueRequest(
  443. module: map['Module'],
  444. );
  445. }
  446. Map<String, dynamic> toJson() {
  447. final map = Map<String, dynamic>();
  448. if(module != null)
  449. map['Module'] = module;
  450. return map;
  451. }
  452. }
  453. class ApplyLockRequest {
  454. String? lockKey;
  455. ApplyLockRequest({
  456. this.lockKey,
  457. });
  458. factory ApplyLockRequest.fromJson(Map<String, dynamic> map) {
  459. return ApplyLockRequest(
  460. lockKey: map['LockKey'],
  461. );
  462. }
  463. Map<String, dynamic> toJson() {
  464. final map = Map<String, dynamic>();
  465. if(lockKey != null)
  466. map['LockKey'] = lockKey;
  467. return map;
  468. }
  469. }
  470. class ReleaseLockRequest {
  471. String? lockUniqueCode;
  472. ReleaseLockRequest({
  473. this.lockUniqueCode,
  474. });
  475. factory ReleaseLockRequest.fromJson(Map<String, dynamic> map) {
  476. return ReleaseLockRequest(
  477. lockUniqueCode: map['LockUniqueCode'],
  478. );
  479. }
  480. Map<String, dynamic> toJson() {
  481. final map = Map<String, dynamic>();
  482. if(lockUniqueCode != null)
  483. map['LockUniqueCode'] = lockUniqueCode;
  484. return map;
  485. }
  486. }
  487. class AssignPatientToUsersRequest extends TokenRequest{
  488. String? patientCode;
  489. List<String >? userCodes;
  490. AssignPatientToUsersRequest({
  491. this.patientCode,
  492. this.userCodes,
  493. String? token,
  494. }) : super(
  495. token: token,
  496. );
  497. factory AssignPatientToUsersRequest.fromJson(Map<String, dynamic> map) {
  498. return AssignPatientToUsersRequest(
  499. patientCode: map['PatientCode'],
  500. userCodes: map['UserCodes'] != null ? map['UserCodes'].cast<String>().toList() : null,
  501. token: map['Token'],
  502. );
  503. }
  504. Map<String, dynamic> toJson() {
  505. final map = super.toJson();
  506. if(patientCode != null)
  507. map['PatientCode'] = patientCode;
  508. if(userCodes != null)
  509. map['UserCodes'] = userCodes;
  510. return map;
  511. }
  512. }
  513. class AlterDeviceRequest extends TokenRequest{
  514. String? deviceCode;
  515. String? serialNumber;
  516. String? name;
  517. String? description;
  518. String? headPicUrl;
  519. String? organizationCode;
  520. String? departmentCode;
  521. bool isAutoShared;
  522. AlterDeviceRequest({
  523. this.deviceCode,
  524. this.serialNumber,
  525. this.name,
  526. this.description,
  527. this.headPicUrl,
  528. this.organizationCode,
  529. this.departmentCode,
  530. this.isAutoShared = false,
  531. String? token,
  532. }) : super(
  533. token: token,
  534. );
  535. factory AlterDeviceRequest.fromJson(Map<String, dynamic> map) {
  536. return AlterDeviceRequest(
  537. deviceCode: map['DeviceCode'],
  538. serialNumber: map['SerialNumber'],
  539. name: map['Name'],
  540. description: map['Description'],
  541. headPicUrl: map['HeadPicUrl'],
  542. organizationCode: map['OrganizationCode'],
  543. departmentCode: map['DepartmentCode'],
  544. isAutoShared: map['IsAutoShared'],
  545. token: map['Token'],
  546. );
  547. }
  548. Map<String, dynamic> toJson() {
  549. final map = super.toJson();
  550. if(deviceCode != null)
  551. map['DeviceCode'] = deviceCode;
  552. if(serialNumber != null)
  553. map['SerialNumber'] = serialNumber;
  554. if(name != null)
  555. map['Name'] = name;
  556. if(description != null)
  557. map['Description'] = description;
  558. if(headPicUrl != null)
  559. map['HeadPicUrl'] = headPicUrl;
  560. if(organizationCode != null)
  561. map['OrganizationCode'] = organizationCode;
  562. if(departmentCode != null)
  563. map['DepartmentCode'] = departmentCode;
  564. map['IsAutoShared'] = isAutoShared;
  565. return map;
  566. }
  567. }
  568. class CleanDeviceCacheRequest {
  569. String? deviceCode;
  570. CleanDeviceCacheRequest({
  571. this.deviceCode,
  572. });
  573. factory CleanDeviceCacheRequest.fromJson(Map<String, dynamic> map) {
  574. return CleanDeviceCacheRequest(
  575. deviceCode: map['DeviceCode'],
  576. );
  577. }
  578. Map<String, dynamic> toJson() {
  579. final map = Map<String, dynamic>();
  580. if(deviceCode != null)
  581. map['DeviceCode'] = deviceCode;
  582. return map;
  583. }
  584. }
  585. class DeviceDiagnosisChangedNotification extends TokenRequest{
  586. String? diagnosisModule;
  587. String? organizationCode;
  588. String? deviceCode;
  589. DeviceDiagnosisChangedNotification({
  590. this.diagnosisModule,
  591. this.organizationCode,
  592. this.deviceCode,
  593. String? token,
  594. }) : super(
  595. token: token,
  596. );
  597. factory DeviceDiagnosisChangedNotification.fromJson(Map<String, dynamic> map) {
  598. return DeviceDiagnosisChangedNotification(
  599. diagnosisModule: map['DiagnosisModule'],
  600. organizationCode: map['OrganizationCode'],
  601. deviceCode: map['DeviceCode'],
  602. token: map['Token'],
  603. );
  604. }
  605. Map<String, dynamic> toJson() {
  606. final map = super.toJson();
  607. if(diagnosisModule != null)
  608. map['DiagnosisModule'] = diagnosisModule;
  609. if(organizationCode != null)
  610. map['OrganizationCode'] = organizationCode;
  611. if(deviceCode != null)
  612. map['DeviceCode'] = deviceCode;
  613. return map;
  614. }
  615. }
  616. class DeviceLeaveLiveConsultationRequest extends TokenRequest{
  617. String? consultationCode;
  618. DeviceLeaveLiveConsultationRequest({
  619. this.consultationCode,
  620. String? token,
  621. }) : super(
  622. token: token,
  623. );
  624. factory DeviceLeaveLiveConsultationRequest.fromJson(Map<String, dynamic> map) {
  625. return DeviceLeaveLiveConsultationRequest(
  626. consultationCode: map['ConsultationCode'],
  627. token: map['Token'],
  628. );
  629. }
  630. Map<String, dynamic> toJson() {
  631. final map = super.toJson();
  632. if(consultationCode != null)
  633. map['ConsultationCode'] = consultationCode;
  634. return map;
  635. }
  636. }
  637. class DeviceLeaveLiveConsultationResult {
  638. bool success;
  639. DeviceLeaveLiveConsultationResult({
  640. this.success = false,
  641. });
  642. factory DeviceLeaveLiveConsultationResult.fromJson(Map<String, dynamic> map) {
  643. return DeviceLeaveLiveConsultationResult(
  644. success: map['Success'],
  645. );
  646. }
  647. Map<String, dynamic> toJson() {
  648. final map = Map<String, dynamic>();
  649. map['Success'] = success;
  650. return map;
  651. }
  652. }
  653. class FindDeviceDiagnosisRequest extends TokenRequest{
  654. String? deviceCode;
  655. FindDeviceDiagnosisRequest({
  656. this.deviceCode,
  657. String? token,
  658. }) : super(
  659. token: token,
  660. );
  661. factory FindDeviceDiagnosisRequest.fromJson(Map<String, dynamic> map) {
  662. return FindDeviceDiagnosisRequest(
  663. deviceCode: map['DeviceCode'],
  664. token: map['Token'],
  665. );
  666. }
  667. Map<String, dynamic> toJson() {
  668. final map = super.toJson();
  669. if(deviceCode != null)
  670. map['DeviceCode'] = deviceCode;
  671. return map;
  672. }
  673. }
  674. class DeleteThesaurusCodeRequest extends TokenRequest{
  675. String? thesaurusCode;
  676. DeleteThesaurusCodeRequest({
  677. this.thesaurusCode,
  678. String? token,
  679. }) : super(
  680. token: token,
  681. );
  682. factory DeleteThesaurusCodeRequest.fromJson(Map<String, dynamic> map) {
  683. return DeleteThesaurusCodeRequest(
  684. thesaurusCode: map['ThesaurusCode'],
  685. token: map['Token'],
  686. );
  687. }
  688. Map<String, dynamic> toJson() {
  689. final map = super.toJson();
  690. if(thesaurusCode != null)
  691. map['ThesaurusCode'] = thesaurusCode;
  692. return map;
  693. }
  694. }
  695. class SignUpRequest extends UserDTO{
  696. SignUpRequest({
  697. String? phone,
  698. String? email,
  699. String? nickName,
  700. String? fullName,
  701. String? organizationCode,
  702. String? organizationName,
  703. String? rootOrganizationCode,
  704. String? rootOrganizationName,
  705. List<String >? authorityGroups,
  706. List<String >? bindDevices,
  707. String? lastIP,
  708. int logintimes = 0,
  709. UserInfoStateEnum userState = UserInfoStateEnum.Nonactivated,
  710. List<String >? roleCodes,
  711. List<String >? rankCodes,
  712. List<String >? positionCodes,
  713. ApplyStateEnum applyState = ApplyStateEnum.NotApply,
  714. String? rankName,
  715. String? positionName,
  716. bool isDirector = false,
  717. List<String >? fieldList,
  718. List<String >? deletePatientCodes,
  719. bool isBatchExportDiagnoseData = false,
  720. String? bindAssistantUserCode,
  721. String? bindAssistantDoctorUserCode,
  722. LoginLockInfoDTO? loginLockInfo,
  723. String? signature,
  724. String? language,
  725. bool enableReportLabel = false,
  726. String? userCode,
  727. String? userName,
  728. String? headImageUrl,
  729. DateTime? createTime,
  730. DateTime? updateTime,
  731. }) : super(
  732. phone: phone,
  733. email: email,
  734. nickName: nickName,
  735. fullName: fullName,
  736. organizationCode: organizationCode,
  737. organizationName: organizationName,
  738. rootOrganizationCode: rootOrganizationCode,
  739. rootOrganizationName: rootOrganizationName,
  740. authorityGroups: authorityGroups,
  741. bindDevices: bindDevices,
  742. lastIP: lastIP,
  743. logintimes: logintimes,
  744. userState: userState,
  745. roleCodes: roleCodes,
  746. rankCodes: rankCodes,
  747. positionCodes: positionCodes,
  748. applyState: applyState,
  749. rankName: rankName,
  750. positionName: positionName,
  751. isDirector: isDirector,
  752. fieldList: fieldList,
  753. deletePatientCodes: deletePatientCodes,
  754. isBatchExportDiagnoseData: isBatchExportDiagnoseData,
  755. bindAssistantUserCode: bindAssistantUserCode,
  756. bindAssistantDoctorUserCode: bindAssistantDoctorUserCode,
  757. loginLockInfo: loginLockInfo,
  758. signature: signature,
  759. language: language,
  760. enableReportLabel: enableReportLabel,
  761. userCode: userCode,
  762. userName: userName,
  763. headImageUrl: headImageUrl,
  764. createTime: createTime,
  765. updateTime: updateTime,
  766. );
  767. factory SignUpRequest.fromJson(Map<String, dynamic> map) {
  768. return SignUpRequest(
  769. phone: map['Phone'],
  770. email: map['Email'],
  771. nickName: map['NickName'],
  772. fullName: map['FullName'],
  773. organizationCode: map['OrganizationCode'],
  774. organizationName: map['OrganizationName'],
  775. rootOrganizationCode: map['RootOrganizationCode'],
  776. rootOrganizationName: map['RootOrganizationName'],
  777. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  778. bindDevices: map['BindDevices'] != null ? map['BindDevices'].cast<String>().toList() : null,
  779. lastIP: map['LastIP'],
  780. logintimes: map['Logintimes'],
  781. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  782. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  783. rankCodes: map['RankCodes'] != null ? map['RankCodes'].cast<String>().toList() : null,
  784. positionCodes: map['PositionCodes'] != null ? map['PositionCodes'].cast<String>().toList() : null,
  785. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  786. rankName: map['RankName'],
  787. positionName: map['PositionName'],
  788. isDirector: map['IsDirector'],
  789. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  790. deletePatientCodes: map['DeletePatientCodes'] != null ? map['DeletePatientCodes'].cast<String>().toList() : null,
  791. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  792. bindAssistantUserCode: map['BindAssistantUserCode'],
  793. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  794. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  795. signature: map['Signature'],
  796. language: map['Language'],
  797. enableReportLabel: map['EnableReportLabel'],
  798. userCode: map['UserCode'],
  799. userName: map['UserName'],
  800. headImageUrl: map['HeadImageUrl'],
  801. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  802. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  803. );
  804. }
  805. Map<String, dynamic> toJson() {
  806. final map = super.toJson();
  807. return map;
  808. }
  809. }
  810. class UpdateThesaurusCodeRequest extends TokenRequest{
  811. String? thesaurusCode;
  812. UpdateThesaurusCodeRequest({
  813. this.thesaurusCode,
  814. String? token,
  815. }) : super(
  816. token: token,
  817. );
  818. factory UpdateThesaurusCodeRequest.fromJson(Map<String, dynamic> map) {
  819. return UpdateThesaurusCodeRequest(
  820. thesaurusCode: map['ThesaurusCode'],
  821. token: map['Token'],
  822. );
  823. }
  824. Map<String, dynamic> toJson() {
  825. final map = super.toJson();
  826. if(thesaurusCode != null)
  827. map['ThesaurusCode'] = thesaurusCode;
  828. return map;
  829. }
  830. }
  831. enum AnnouncementStatusEnum {
  832. placeHolder_0,
  833. Released,
  834. Pending,
  835. }
  836. class AnnouncementLanguageConfigDTO {
  837. String? language;
  838. String? title;
  839. String? content;
  840. AnnouncementLanguageConfigDTO({
  841. this.language,
  842. this.title,
  843. this.content,
  844. });
  845. factory AnnouncementLanguageConfigDTO.fromJson(Map<String, dynamic> map) {
  846. return AnnouncementLanguageConfigDTO(
  847. language: map['Language'],
  848. title: map['Title'],
  849. content: map['Content'],
  850. );
  851. }
  852. Map<String, dynamic> toJson() {
  853. final map = Map<String, dynamic>();
  854. if(language != null)
  855. map['Language'] = language;
  856. if(title != null)
  857. map['Title'] = title;
  858. if(content != null)
  859. map['Content'] = content;
  860. return map;
  861. }
  862. }
  863. class AnnouncementInfoDTO extends BaseDTO{
  864. String? code;
  865. AnnouncementTypeEnum announcementType;
  866. AnnouncementStatusEnum announcementStatus;
  867. List<AnnouncementLanguageConfigDTO >? languageConfigs;
  868. AnnouncementInfoDTO({
  869. this.code,
  870. this.announcementType = AnnouncementTypeEnum.Broadcast,
  871. this.announcementStatus = AnnouncementStatusEnum.Released,
  872. this.languageConfigs,
  873. DateTime? createTime,
  874. DateTime? updateTime,
  875. }) : super(
  876. createTime: createTime,
  877. updateTime: updateTime,
  878. );
  879. factory AnnouncementInfoDTO.fromJson(Map<String, dynamic> map) {
  880. return AnnouncementInfoDTO(
  881. code: map['Code'],
  882. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  883. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  884. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>AnnouncementLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  885. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  886. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  887. );
  888. }
  889. Map<String, dynamic> toJson() {
  890. final map = super.toJson();
  891. if(code != null)
  892. map['Code'] = code;
  893. map['AnnouncementType'] = announcementType.index;
  894. map['AnnouncementStatus'] = announcementStatus.index;
  895. if(languageConfigs != null)
  896. map['LanguageConfigs'] = languageConfigs;
  897. return map;
  898. }
  899. }
  900. class AddAnnouncementRequest extends AnnouncementInfoDTO{
  901. AddAnnouncementRequest({
  902. String? code,
  903. AnnouncementTypeEnum announcementType = AnnouncementTypeEnum.Broadcast,
  904. AnnouncementStatusEnum announcementStatus = AnnouncementStatusEnum.Released,
  905. List<AnnouncementLanguageConfigDTO >? languageConfigs,
  906. DateTime? createTime,
  907. DateTime? updateTime,
  908. }) : super(
  909. code: code,
  910. announcementType: announcementType,
  911. announcementStatus: announcementStatus,
  912. languageConfigs: languageConfigs,
  913. createTime: createTime,
  914. updateTime: updateTime,
  915. );
  916. factory AddAnnouncementRequest.fromJson(Map<String, dynamic> map) {
  917. return AddAnnouncementRequest(
  918. code: map['Code'],
  919. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  920. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  921. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>AnnouncementLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  922. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  923. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  924. );
  925. }
  926. Map<String, dynamic> toJson() {
  927. final map = super.toJson();
  928. return map;
  929. }
  930. }
  931. class UpdateAnnouncementRequest extends AnnouncementInfoDTO{
  932. UpdateAnnouncementRequest({
  933. String? code,
  934. AnnouncementTypeEnum announcementType = AnnouncementTypeEnum.Broadcast,
  935. AnnouncementStatusEnum announcementStatus = AnnouncementStatusEnum.Released,
  936. List<AnnouncementLanguageConfigDTO >? languageConfigs,
  937. DateTime? createTime,
  938. DateTime? updateTime,
  939. }) : super(
  940. code: code,
  941. announcementType: announcementType,
  942. announcementStatus: announcementStatus,
  943. languageConfigs: languageConfigs,
  944. createTime: createTime,
  945. updateTime: updateTime,
  946. );
  947. factory UpdateAnnouncementRequest.fromJson(Map<String, dynamic> map) {
  948. return UpdateAnnouncementRequest(
  949. code: map['Code'],
  950. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  951. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  952. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>AnnouncementLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  953. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  954. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  955. );
  956. }
  957. Map<String, dynamic> toJson() {
  958. final map = super.toJson();
  959. return map;
  960. }
  961. }
  962. class AddContentConfigRequest extends TokenRequest{
  963. String? bindTypeKey;
  964. String? bindTypeValue;
  965. String? bindContentKey;
  966. String? bindContentValue;
  967. AddContentConfigRequest({
  968. this.bindTypeKey,
  969. this.bindTypeValue,
  970. this.bindContentKey,
  971. this.bindContentValue,
  972. String? token,
  973. }) : super(
  974. token: token,
  975. );
  976. factory AddContentConfigRequest.fromJson(Map<String, dynamic> map) {
  977. return AddContentConfigRequest(
  978. bindTypeKey: map['BindTypeKey'],
  979. bindTypeValue: map['BindTypeValue'],
  980. bindContentKey: map['BindContentKey'],
  981. bindContentValue: map['BindContentValue'],
  982. token: map['Token'],
  983. );
  984. }
  985. Map<String, dynamic> toJson() {
  986. final map = super.toJson();
  987. if(bindTypeKey != null)
  988. map['BindTypeKey'] = bindTypeKey;
  989. if(bindTypeValue != null)
  990. map['BindTypeValue'] = bindTypeValue;
  991. if(bindContentKey != null)
  992. map['BindContentKey'] = bindContentKey;
  993. if(bindContentValue != null)
  994. map['BindContentValue'] = bindContentValue;
  995. return map;
  996. }
  997. }
  998. class AssignedAdminsToOrganizationsRequest extends TokenRequest{
  999. List<String >? assignedAdmins;
  1000. List<String >? organizationCodes;
  1001. AssignedAdminsToOrganizationsRequest({
  1002. this.assignedAdmins,
  1003. this.organizationCodes,
  1004. String? token,
  1005. }) : super(
  1006. token: token,
  1007. );
  1008. factory AssignedAdminsToOrganizationsRequest.fromJson(Map<String, dynamic> map) {
  1009. return AssignedAdminsToOrganizationsRequest(
  1010. assignedAdmins: map['AssignedAdmins'] != null ? map['AssignedAdmins'].cast<String>().toList() : null,
  1011. organizationCodes: map['OrganizationCodes'] != null ? map['OrganizationCodes'].cast<String>().toList() : null,
  1012. token: map['Token'],
  1013. );
  1014. }
  1015. Map<String, dynamic> toJson() {
  1016. final map = super.toJson();
  1017. if(assignedAdmins != null)
  1018. map['AssignedAdmins'] = assignedAdmins;
  1019. if(organizationCodes != null)
  1020. map['OrganizationCodes'] = organizationCodes;
  1021. return map;
  1022. }
  1023. }
  1024. class ConfirmIdentityApplyRequest extends TokenRequest{
  1025. String? identityApplyCode;
  1026. ConfirmIdentityApplyRequest({
  1027. this.identityApplyCode,
  1028. String? token,
  1029. }) : super(
  1030. token: token,
  1031. );
  1032. factory ConfirmIdentityApplyRequest.fromJson(Map<String, dynamic> map) {
  1033. return ConfirmIdentityApplyRequest(
  1034. identityApplyCode: map['IdentityApplyCode'],
  1035. token: map['Token'],
  1036. );
  1037. }
  1038. Map<String, dynamic> toJson() {
  1039. final map = super.toJson();
  1040. if(identityApplyCode != null)
  1041. map['IdentityApplyCode'] = identityApplyCode;
  1042. return map;
  1043. }
  1044. }
  1045. class CreateThirdPartyTokenRequest extends TokenRequest{
  1046. String? code;
  1047. CreateThirdPartyTokenRequest({
  1048. this.code,
  1049. String? token,
  1050. }) : super(
  1051. token: token,
  1052. );
  1053. factory CreateThirdPartyTokenRequest.fromJson(Map<String, dynamic> map) {
  1054. return CreateThirdPartyTokenRequest(
  1055. code: map['Code'],
  1056. token: map['Token'],
  1057. );
  1058. }
  1059. Map<String, dynamic> toJson() {
  1060. final map = super.toJson();
  1061. if(code != null)
  1062. map['Code'] = code;
  1063. return map;
  1064. }
  1065. }
  1066. class DeleteAdminFeatureRequest extends TokenRequest{
  1067. String? adminFeatureCode;
  1068. DeleteAdminFeatureRequest({
  1069. this.adminFeatureCode,
  1070. String? token,
  1071. }) : super(
  1072. token: token,
  1073. );
  1074. factory DeleteAdminFeatureRequest.fromJson(Map<String, dynamic> map) {
  1075. return DeleteAdminFeatureRequest(
  1076. adminFeatureCode: map['AdminFeatureCode'],
  1077. token: map['Token'],
  1078. );
  1079. }
  1080. Map<String, dynamic> toJson() {
  1081. final map = super.toJson();
  1082. if(adminFeatureCode != null)
  1083. map['AdminFeatureCode'] = adminFeatureCode;
  1084. return map;
  1085. }
  1086. }
  1087. class DeleteAdminRoleRequest extends TokenRequest{
  1088. String? adminRoleCode;
  1089. DeleteAdminRoleRequest({
  1090. this.adminRoleCode,
  1091. String? token,
  1092. }) : super(
  1093. token: token,
  1094. );
  1095. factory DeleteAdminRoleRequest.fromJson(Map<String, dynamic> map) {
  1096. return DeleteAdminRoleRequest(
  1097. adminRoleCode: map['AdminRoleCode'],
  1098. token: map['Token'],
  1099. );
  1100. }
  1101. Map<String, dynamic> toJson() {
  1102. final map = super.toJson();
  1103. if(adminRoleCode != null)
  1104. map['AdminRoleCode'] = adminRoleCode;
  1105. return map;
  1106. }
  1107. }
  1108. class DeleteLogsRequest extends PageRequest{
  1109. int daysAgo;
  1110. String? requestServerHost;
  1111. DeleteLogsRequest({
  1112. this.daysAgo = 0,
  1113. this.requestServerHost,
  1114. int pageIndex = 0,
  1115. int pageSize = 0,
  1116. String? token,
  1117. }) : super(
  1118. pageIndex: pageIndex,
  1119. pageSize: pageSize,
  1120. token: token,
  1121. );
  1122. factory DeleteLogsRequest.fromJson(Map<String, dynamic> map) {
  1123. return DeleteLogsRequest(
  1124. daysAgo: map['DaysAgo'],
  1125. requestServerHost: map['RequestServerHost'],
  1126. pageIndex: map['PageIndex'],
  1127. pageSize: map['PageSize'],
  1128. token: map['Token'],
  1129. );
  1130. }
  1131. Map<String, dynamic> toJson() {
  1132. final map = super.toJson();
  1133. map['DaysAgo'] = daysAgo;
  1134. if(requestServerHost != null)
  1135. map['RequestServerHost'] = requestServerHost;
  1136. return map;
  1137. }
  1138. }
  1139. class DeleteRoleRequest extends TokenRequest{
  1140. String? roleCode;
  1141. DeleteRoleRequest({
  1142. this.roleCode,
  1143. String? token,
  1144. }) : super(
  1145. token: token,
  1146. );
  1147. factory DeleteRoleRequest.fromJson(Map<String, dynamic> map) {
  1148. return DeleteRoleRequest(
  1149. roleCode: map['RoleCode'],
  1150. token: map['Token'],
  1151. );
  1152. }
  1153. Map<String, dynamic> toJson() {
  1154. final map = super.toJson();
  1155. if(roleCode != null)
  1156. map['RoleCode'] = roleCode;
  1157. return map;
  1158. }
  1159. }
  1160. class DeleteThesaurusRequest extends TokenRequest{
  1161. String? thesaurusCode;
  1162. DeleteThesaurusRequest({
  1163. this.thesaurusCode,
  1164. String? token,
  1165. }) : super(
  1166. token: token,
  1167. );
  1168. factory DeleteThesaurusRequest.fromJson(Map<String, dynamic> map) {
  1169. return DeleteThesaurusRequest(
  1170. thesaurusCode: map['ThesaurusCode'],
  1171. token: map['Token'],
  1172. );
  1173. }
  1174. Map<String, dynamic> toJson() {
  1175. final map = super.toJson();
  1176. if(thesaurusCode != null)
  1177. map['ThesaurusCode'] = thesaurusCode;
  1178. return map;
  1179. }
  1180. }
  1181. class DeleteThirdPartyInfoRequest extends TokenRequest{
  1182. String? code;
  1183. DeleteThirdPartyInfoRequest({
  1184. this.code,
  1185. String? token,
  1186. }) : super(
  1187. token: token,
  1188. );
  1189. factory DeleteThirdPartyInfoRequest.fromJson(Map<String, dynamic> map) {
  1190. return DeleteThirdPartyInfoRequest(
  1191. code: map['Code'],
  1192. token: map['Token'],
  1193. );
  1194. }
  1195. Map<String, dynamic> toJson() {
  1196. final map = super.toJson();
  1197. if(code != null)
  1198. map['Code'] = code;
  1199. return map;
  1200. }
  1201. }
  1202. class DeleteUserFeatureRequest extends TokenRequest{
  1203. String? userFeatureCode;
  1204. DeleteUserFeatureRequest({
  1205. this.userFeatureCode,
  1206. String? token,
  1207. }) : super(
  1208. token: token,
  1209. );
  1210. factory DeleteUserFeatureRequest.fromJson(Map<String, dynamic> map) {
  1211. return DeleteUserFeatureRequest(
  1212. userFeatureCode: map['UserFeatureCode'],
  1213. token: map['Token'],
  1214. );
  1215. }
  1216. Map<String, dynamic> toJson() {
  1217. final map = super.toJson();
  1218. if(userFeatureCode != null)
  1219. map['UserFeatureCode'] = userFeatureCode;
  1220. return map;
  1221. }
  1222. }
  1223. enum DistributedServerTypeEnum {
  1224. Official,
  1225. Private,
  1226. }
  1227. class IPAddressInfoDTO {
  1228. String? startIp;
  1229. String? endIp;
  1230. int longStartIP;
  1231. int longEndIP;
  1232. IPAddressInfoDTO({
  1233. this.startIp,
  1234. this.endIp,
  1235. this.longStartIP = 0,
  1236. this.longEndIP = 0,
  1237. });
  1238. factory IPAddressInfoDTO.fromJson(Map<String, dynamic> map) {
  1239. return IPAddressInfoDTO(
  1240. startIp: map['StartIp'],
  1241. endIp: map['EndIp'],
  1242. longStartIP: map['LongStartIP'],
  1243. longEndIP: map['LongEndIP'],
  1244. );
  1245. }
  1246. Map<String, dynamic> toJson() {
  1247. final map = Map<String, dynamic>();
  1248. if(startIp != null)
  1249. map['StartIp'] = startIp;
  1250. if(endIp != null)
  1251. map['EndIp'] = endIp;
  1252. map['LongStartIP'] = longStartIP;
  1253. map['LongEndIP'] = longEndIP;
  1254. return map;
  1255. }
  1256. }
  1257. class DistributedServerInfoRequest extends TokenRequest{
  1258. String? code;
  1259. List<String >? codes;
  1260. bool isMaster;
  1261. String? name;
  1262. String? description;
  1263. bool enable;
  1264. DistributedServerTypeEnum serverType;
  1265. String? serverUrl;
  1266. String? lat;
  1267. String? lng;
  1268. List<IPAddressInfoDTO >? assignClientIPList;
  1269. DistributedServerInfoRequest({
  1270. this.code,
  1271. this.codes,
  1272. this.isMaster = false,
  1273. this.name,
  1274. this.description,
  1275. this.enable = false,
  1276. this.serverType = DistributedServerTypeEnum.Official,
  1277. this.serverUrl,
  1278. this.lat,
  1279. this.lng,
  1280. this.assignClientIPList,
  1281. String? token,
  1282. }) : super(
  1283. token: token,
  1284. );
  1285. factory DistributedServerInfoRequest.fromJson(Map<String, dynamic> map) {
  1286. return DistributedServerInfoRequest(
  1287. code: map['Code'],
  1288. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  1289. isMaster: map['IsMaster'],
  1290. name: map['Name'],
  1291. description: map['Description'],
  1292. enable: map['Enable'],
  1293. serverType: DistributedServerTypeEnum.values.firstWhere((e) => e.index == map['ServerType']),
  1294. serverUrl: map['ServerUrl'],
  1295. lat: map['Lat'],
  1296. lng: map['Lng'],
  1297. assignClientIPList: map['AssignClientIPList'] != null ? (map['AssignClientIPList'] as List).map((e)=>IPAddressInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1298. token: map['Token'],
  1299. );
  1300. }
  1301. Map<String, dynamic> toJson() {
  1302. final map = super.toJson();
  1303. if(code != null)
  1304. map['Code'] = code;
  1305. if(codes != null)
  1306. map['Codes'] = codes;
  1307. map['IsMaster'] = isMaster;
  1308. if(name != null)
  1309. map['Name'] = name;
  1310. if(description != null)
  1311. map['Description'] = description;
  1312. map['Enable'] = enable;
  1313. map['ServerType'] = serverType.index;
  1314. if(serverUrl != null)
  1315. map['ServerUrl'] = serverUrl;
  1316. if(lat != null)
  1317. map['Lat'] = lat;
  1318. if(lng != null)
  1319. map['Lng'] = lng;
  1320. if(assignClientIPList != null)
  1321. map['AssignClientIPList'] = assignClientIPList;
  1322. return map;
  1323. }
  1324. }
  1325. class SaveDistributedServerIpRequest extends TokenRequest{
  1326. String? startIp;
  1327. String? endIp;
  1328. String? code;
  1329. SaveDistributedServerIpRequest({
  1330. this.startIp,
  1331. this.endIp,
  1332. this.code,
  1333. String? token,
  1334. }) : super(
  1335. token: token,
  1336. );
  1337. factory SaveDistributedServerIpRequest.fromJson(Map<String, dynamic> map) {
  1338. return SaveDistributedServerIpRequest(
  1339. startIp: map['StartIp'],
  1340. endIp: map['EndIp'],
  1341. code: map['Code'],
  1342. token: map['Token'],
  1343. );
  1344. }
  1345. Map<String, dynamic> toJson() {
  1346. final map = super.toJson();
  1347. if(startIp != null)
  1348. map['StartIp'] = startIp;
  1349. if(endIp != null)
  1350. map['EndIp'] = endIp;
  1351. if(code != null)
  1352. map['Code'] = code;
  1353. return map;
  1354. }
  1355. }
  1356. class GetDistributedServerIpListRequest extends PageRequest{
  1357. String? code;
  1358. String? keyword;
  1359. GetDistributedServerIpListRequest({
  1360. this.code,
  1361. this.keyword,
  1362. int pageIndex = 0,
  1363. int pageSize = 0,
  1364. String? token,
  1365. }) : super(
  1366. pageIndex: pageIndex,
  1367. pageSize: pageSize,
  1368. token: token,
  1369. );
  1370. factory GetDistributedServerIpListRequest.fromJson(Map<String, dynamic> map) {
  1371. return GetDistributedServerIpListRequest(
  1372. code: map['Code'],
  1373. keyword: map['Keyword'],
  1374. pageIndex: map['PageIndex'],
  1375. pageSize: map['PageSize'],
  1376. token: map['Token'],
  1377. );
  1378. }
  1379. Map<String, dynamic> toJson() {
  1380. final map = super.toJson();
  1381. if(code != null)
  1382. map['Code'] = code;
  1383. if(keyword != null)
  1384. map['Keyword'] = keyword;
  1385. return map;
  1386. }
  1387. }
  1388. class FindAdminByCodeRequest extends TokenRequest{
  1389. String? adminCode;
  1390. FindAdminByCodeRequest({
  1391. this.adminCode,
  1392. String? token,
  1393. }) : super(
  1394. token: token,
  1395. );
  1396. factory FindAdminByCodeRequest.fromJson(Map<String, dynamic> map) {
  1397. return FindAdminByCodeRequest(
  1398. adminCode: map['AdminCode'],
  1399. token: map['Token'],
  1400. );
  1401. }
  1402. Map<String, dynamic> toJson() {
  1403. final map = super.toJson();
  1404. if(adminCode != null)
  1405. map['AdminCode'] = adminCode;
  1406. return map;
  1407. }
  1408. }
  1409. class FindAdminRoleByCodeRequest extends TokenRequest{
  1410. String? adminRoleCode;
  1411. FindAdminRoleByCodeRequest({
  1412. this.adminRoleCode,
  1413. String? token,
  1414. }) : super(
  1415. token: token,
  1416. );
  1417. factory FindAdminRoleByCodeRequest.fromJson(Map<String, dynamic> map) {
  1418. return FindAdminRoleByCodeRequest(
  1419. adminRoleCode: map['AdminRoleCode'],
  1420. token: map['Token'],
  1421. );
  1422. }
  1423. Map<String, dynamic> toJson() {
  1424. final map = super.toJson();
  1425. if(adminRoleCode != null)
  1426. map['AdminRoleCode'] = adminRoleCode;
  1427. return map;
  1428. }
  1429. }
  1430. class FindAdminStatisticRecordsRequest extends TokenRequest{
  1431. String? languageCode;
  1432. FindAdminStatisticRecordsRequest({
  1433. this.languageCode,
  1434. String? token,
  1435. }) : super(
  1436. token: token,
  1437. );
  1438. factory FindAdminStatisticRecordsRequest.fromJson(Map<String, dynamic> map) {
  1439. return FindAdminStatisticRecordsRequest(
  1440. languageCode: map['LanguageCode'],
  1441. token: map['Token'],
  1442. );
  1443. }
  1444. Map<String, dynamic> toJson() {
  1445. final map = super.toJson();
  1446. if(languageCode != null)
  1447. map['LanguageCode'] = languageCode;
  1448. return map;
  1449. }
  1450. }
  1451. class FindCMSStatisticRequest extends TokenRequest{
  1452. String? clientId;
  1453. FindCMSStatisticRequest({
  1454. this.clientId,
  1455. String? token,
  1456. }) : super(
  1457. token: token,
  1458. );
  1459. factory FindCMSStatisticRequest.fromJson(Map<String, dynamic> map) {
  1460. return FindCMSStatisticRequest(
  1461. clientId: map['ClientId'],
  1462. token: map['Token'],
  1463. );
  1464. }
  1465. Map<String, dynamic> toJson() {
  1466. final map = super.toJson();
  1467. if(clientId != null)
  1468. map['ClientId'] = clientId;
  1469. return map;
  1470. }
  1471. }
  1472. class FindCMSTemplateByUserRequest extends TokenRequest{
  1473. String? clientId;
  1474. FindCMSTemplateByUserRequest({
  1475. this.clientId,
  1476. String? token,
  1477. }) : super(
  1478. token: token,
  1479. );
  1480. factory FindCMSTemplateByUserRequest.fromJson(Map<String, dynamic> map) {
  1481. return FindCMSTemplateByUserRequest(
  1482. clientId: map['ClientId'],
  1483. token: map['Token'],
  1484. );
  1485. }
  1486. Map<String, dynamic> toJson() {
  1487. final map = super.toJson();
  1488. if(clientId != null)
  1489. map['ClientId'] = clientId;
  1490. return map;
  1491. }
  1492. }
  1493. class FindCMSTemplateDetailRequest extends TokenRequest{
  1494. String? cMSTemplateCode;
  1495. FindCMSTemplateDetailRequest({
  1496. this.cMSTemplateCode,
  1497. String? token,
  1498. }) : super(
  1499. token: token,
  1500. );
  1501. factory FindCMSTemplateDetailRequest.fromJson(Map<String, dynamic> map) {
  1502. return FindCMSTemplateDetailRequest(
  1503. cMSTemplateCode: map['CMSTemplateCode'],
  1504. token: map['Token'],
  1505. );
  1506. }
  1507. Map<String, dynamic> toJson() {
  1508. final map = super.toJson();
  1509. if(cMSTemplateCode != null)
  1510. map['CMSTemplateCode'] = cMSTemplateCode;
  1511. return map;
  1512. }
  1513. }
  1514. class FindCMSTemplatePageRequest extends PageRequest{
  1515. String? searchKey;
  1516. FindCMSTemplatePageRequest({
  1517. this.searchKey,
  1518. int pageIndex = 0,
  1519. int pageSize = 0,
  1520. String? token,
  1521. }) : super(
  1522. pageIndex: pageIndex,
  1523. pageSize: pageSize,
  1524. token: token,
  1525. );
  1526. factory FindCMSTemplatePageRequest.fromJson(Map<String, dynamic> map) {
  1527. return FindCMSTemplatePageRequest(
  1528. searchKey: map['SearchKey'],
  1529. pageIndex: map['PageIndex'],
  1530. pageSize: map['PageSize'],
  1531. token: map['Token'],
  1532. );
  1533. }
  1534. Map<String, dynamic> toJson() {
  1535. final map = super.toJson();
  1536. if(searchKey != null)
  1537. map['SearchKey'] = searchKey;
  1538. return map;
  1539. }
  1540. }
  1541. class FindContentConfigRequest extends TokenRequest{
  1542. int type;
  1543. String? parentCode;
  1544. FindContentConfigRequest({
  1545. this.type = 0,
  1546. this.parentCode,
  1547. String? token,
  1548. }) : super(
  1549. token: token,
  1550. );
  1551. factory FindContentConfigRequest.fromJson(Map<String, dynamic> map) {
  1552. return FindContentConfigRequest(
  1553. type: map['Type'],
  1554. parentCode: map['ParentCode'],
  1555. token: map['Token'],
  1556. );
  1557. }
  1558. Map<String, dynamic> toJson() {
  1559. final map = super.toJson();
  1560. map['Type'] = type;
  1561. if(parentCode != null)
  1562. map['ParentCode'] = parentCode;
  1563. return map;
  1564. }
  1565. }
  1566. class FindDeviceDiagnosisModulesRequest2 extends TokenRequest{
  1567. String? deviceCode;
  1568. FindDeviceDiagnosisModulesRequest2({
  1569. this.deviceCode,
  1570. String? token,
  1571. }) : super(
  1572. token: token,
  1573. );
  1574. factory FindDeviceDiagnosisModulesRequest2.fromJson(Map<String, dynamic> map) {
  1575. return FindDeviceDiagnosisModulesRequest2(
  1576. deviceCode: map['DeviceCode'],
  1577. token: map['Token'],
  1578. );
  1579. }
  1580. Map<String, dynamic> toJson() {
  1581. final map = super.toJson();
  1582. if(deviceCode != null)
  1583. map['DeviceCode'] = deviceCode;
  1584. return map;
  1585. }
  1586. }
  1587. class FindDiagnosisModuleByPageRequest extends PageRequest{
  1588. FindDiagnosisModuleByPageRequest({
  1589. int pageIndex = 0,
  1590. int pageSize = 0,
  1591. String? token,
  1592. }) : super(
  1593. pageIndex: pageIndex,
  1594. pageSize: pageSize,
  1595. token: token,
  1596. );
  1597. factory FindDiagnosisModuleByPageRequest.fromJson(Map<String, dynamic> map) {
  1598. return FindDiagnosisModuleByPageRequest(
  1599. pageIndex: map['PageIndex'],
  1600. pageSize: map['PageSize'],
  1601. token: map['Token'],
  1602. );
  1603. }
  1604. Map<String, dynamic> toJson() {
  1605. final map = super.toJson();
  1606. return map;
  1607. }
  1608. }
  1609. class FindGradingProtectionConfigByPageRequest extends PageRequest{
  1610. String? keyword;
  1611. FindGradingProtectionConfigByPageRequest({
  1612. this.keyword,
  1613. int pageIndex = 0,
  1614. int pageSize = 0,
  1615. String? token,
  1616. }) : super(
  1617. pageIndex: pageIndex,
  1618. pageSize: pageSize,
  1619. token: token,
  1620. );
  1621. factory FindGradingProtectionConfigByPageRequest.fromJson(Map<String, dynamic> map) {
  1622. return FindGradingProtectionConfigByPageRequest(
  1623. keyword: map['Keyword'],
  1624. pageIndex: map['PageIndex'],
  1625. pageSize: map['PageSize'],
  1626. token: map['Token'],
  1627. );
  1628. }
  1629. Map<String, dynamic> toJson() {
  1630. final map = super.toJson();
  1631. if(keyword != null)
  1632. map['Keyword'] = keyword;
  1633. return map;
  1634. }
  1635. }
  1636. class FindOrganizationDiagnosisModulesRequest extends TokenRequest{
  1637. String? organizationCode;
  1638. FindOrganizationDiagnosisModulesRequest({
  1639. this.organizationCode,
  1640. String? token,
  1641. }) : super(
  1642. token: token,
  1643. );
  1644. factory FindOrganizationDiagnosisModulesRequest.fromJson(Map<String, dynamic> map) {
  1645. return FindOrganizationDiagnosisModulesRequest(
  1646. organizationCode: map['OrganizationCode'],
  1647. token: map['Token'],
  1648. );
  1649. }
  1650. Map<String, dynamic> toJson() {
  1651. final map = super.toJson();
  1652. if(organizationCode != null)
  1653. map['OrganizationCode'] = organizationCode;
  1654. return map;
  1655. }
  1656. }
  1657. class FindReferralRecordSettingRequest extends TokenRequest{
  1658. FindReferralRecordSettingRequest({
  1659. String? token,
  1660. }) : super(
  1661. token: token,
  1662. );
  1663. factory FindReferralRecordSettingRequest.fromJson(Map<String, dynamic> map) {
  1664. return FindReferralRecordSettingRequest(
  1665. token: map['Token'],
  1666. );
  1667. }
  1668. Map<String, dynamic> toJson() {
  1669. final map = super.toJson();
  1670. return map;
  1671. }
  1672. }
  1673. class FindRelatedDeviceCodesRequest extends TokenRequest{
  1674. String? reportPosterCode;
  1675. FindRelatedDeviceCodesRequest({
  1676. this.reportPosterCode,
  1677. String? token,
  1678. }) : super(
  1679. token: token,
  1680. );
  1681. factory FindRelatedDeviceCodesRequest.fromJson(Map<String, dynamic> map) {
  1682. return FindRelatedDeviceCodesRequest(
  1683. reportPosterCode: map['ReportPosterCode'],
  1684. token: map['Token'],
  1685. );
  1686. }
  1687. Map<String, dynamic> toJson() {
  1688. final map = super.toJson();
  1689. if(reportPosterCode != null)
  1690. map['ReportPosterCode'] = reportPosterCode;
  1691. return map;
  1692. }
  1693. }
  1694. class FindReportLabelByCodeRequest extends TokenRequest{
  1695. String? reportLabelCode;
  1696. FindReportLabelByCodeRequest({
  1697. this.reportLabelCode,
  1698. String? token,
  1699. }) : super(
  1700. token: token,
  1701. );
  1702. factory FindReportLabelByCodeRequest.fromJson(Map<String, dynamic> map) {
  1703. return FindReportLabelByCodeRequest(
  1704. reportLabelCode: map['ReportLabelCode'],
  1705. token: map['Token'],
  1706. );
  1707. }
  1708. Map<String, dynamic> toJson() {
  1709. final map = super.toJson();
  1710. if(reportLabelCode != null)
  1711. map['ReportLabelCode'] = reportLabelCode;
  1712. return map;
  1713. }
  1714. }
  1715. class FindReportLabelByPageRequest extends PageRequest{
  1716. String? keyword;
  1717. FindReportLabelByPageRequest({
  1718. this.keyword,
  1719. int pageIndex = 0,
  1720. int pageSize = 0,
  1721. String? token,
  1722. }) : super(
  1723. pageIndex: pageIndex,
  1724. pageSize: pageSize,
  1725. token: token,
  1726. );
  1727. factory FindReportLabelByPageRequest.fromJson(Map<String, dynamic> map) {
  1728. return FindReportLabelByPageRequest(
  1729. keyword: map['Keyword'],
  1730. pageIndex: map['PageIndex'],
  1731. pageSize: map['PageSize'],
  1732. token: map['Token'],
  1733. );
  1734. }
  1735. Map<String, dynamic> toJson() {
  1736. final map = super.toJson();
  1737. if(keyword != null)
  1738. map['Keyword'] = keyword;
  1739. return map;
  1740. }
  1741. }
  1742. class FindReportPosterByCodeRequest extends TokenRequest{
  1743. String? reportPosterCode;
  1744. FindReportPosterByCodeRequest({
  1745. this.reportPosterCode,
  1746. String? token,
  1747. }) : super(
  1748. token: token,
  1749. );
  1750. factory FindReportPosterByCodeRequest.fromJson(Map<String, dynamic> map) {
  1751. return FindReportPosterByCodeRequest(
  1752. reportPosterCode: map['ReportPosterCode'],
  1753. token: map['Token'],
  1754. );
  1755. }
  1756. Map<String, dynamic> toJson() {
  1757. final map = super.toJson();
  1758. if(reportPosterCode != null)
  1759. map['ReportPosterCode'] = reportPosterCode;
  1760. return map;
  1761. }
  1762. }
  1763. class FindReportPosterByPageRequest extends PageRequest{
  1764. String? keyword;
  1765. FindReportPosterByPageRequest({
  1766. this.keyword,
  1767. int pageIndex = 0,
  1768. int pageSize = 0,
  1769. String? token,
  1770. }) : super(
  1771. pageIndex: pageIndex,
  1772. pageSize: pageSize,
  1773. token: token,
  1774. );
  1775. factory FindReportPosterByPageRequest.fromJson(Map<String, dynamic> map) {
  1776. return FindReportPosterByPageRequest(
  1777. keyword: map['Keyword'],
  1778. pageIndex: map['PageIndex'],
  1779. pageSize: map['PageSize'],
  1780. token: map['Token'],
  1781. );
  1782. }
  1783. Map<String, dynamic> toJson() {
  1784. final map = super.toJson();
  1785. if(keyword != null)
  1786. map['Keyword'] = keyword;
  1787. return map;
  1788. }
  1789. }
  1790. class FindReportPreviewUrlRequest extends TokenRequest{
  1791. String? reportCode;
  1792. String? languageCode;
  1793. FindReportPreviewUrlRequest({
  1794. this.reportCode,
  1795. this.languageCode,
  1796. String? token,
  1797. }) : super(
  1798. token: token,
  1799. );
  1800. factory FindReportPreviewUrlRequest.fromJson(Map<String, dynamic> map) {
  1801. return FindReportPreviewUrlRequest(
  1802. reportCode: map['ReportCode'],
  1803. languageCode: map['LanguageCode'],
  1804. token: map['Token'],
  1805. );
  1806. }
  1807. Map<String, dynamic> toJson() {
  1808. final map = super.toJson();
  1809. if(reportCode != null)
  1810. map['ReportCode'] = reportCode;
  1811. if(languageCode != null)
  1812. map['LanguageCode'] = languageCode;
  1813. return map;
  1814. }
  1815. }
  1816. enum PushDataStateEnum {
  1817. UnDo,
  1818. Successful,
  1819. Failed,
  1820. All,
  1821. }
  1822. class FindReportPushRecordsByPageRequest extends PageRequest{
  1823. String? keyword;
  1824. PushDataStateEnum queryState;
  1825. FindReportPushRecordsByPageRequest({
  1826. this.keyword,
  1827. this.queryState = PushDataStateEnum.UnDo,
  1828. int pageIndex = 0,
  1829. int pageSize = 0,
  1830. String? token,
  1831. }) : super(
  1832. pageIndex: pageIndex,
  1833. pageSize: pageSize,
  1834. token: token,
  1835. );
  1836. factory FindReportPushRecordsByPageRequest.fromJson(Map<String, dynamic> map) {
  1837. return FindReportPushRecordsByPageRequest(
  1838. keyword: map['Keyword'],
  1839. queryState: PushDataStateEnum.values.firstWhere((e) => e.index == map['QueryState']),
  1840. pageIndex: map['PageIndex'],
  1841. pageSize: map['PageSize'],
  1842. token: map['Token'],
  1843. );
  1844. }
  1845. Map<String, dynamic> toJson() {
  1846. final map = super.toJson();
  1847. if(keyword != null)
  1848. map['Keyword'] = keyword;
  1849. map['QueryState'] = queryState.index;
  1850. return map;
  1851. }
  1852. }
  1853. class FindReportShareConentRequest extends TokenRequest{
  1854. String? shortCode;
  1855. FindReportShareConentRequest({
  1856. this.shortCode,
  1857. String? token,
  1858. }) : super(
  1859. token: token,
  1860. );
  1861. factory FindReportShareConentRequest.fromJson(Map<String, dynamic> map) {
  1862. return FindReportShareConentRequest(
  1863. shortCode: map['ShortCode'],
  1864. token: map['Token'],
  1865. );
  1866. }
  1867. Map<String, dynamic> toJson() {
  1868. final map = super.toJson();
  1869. if(shortCode != null)
  1870. map['ShortCode'] = shortCode;
  1871. return map;
  1872. }
  1873. }
  1874. class FindReportTemplateUserPagesRequest extends PageRequest{
  1875. String? reportTemplateCode;
  1876. String? keyword;
  1877. FindReportTemplateUserPagesRequest({
  1878. this.reportTemplateCode,
  1879. this.keyword,
  1880. int pageIndex = 0,
  1881. int pageSize = 0,
  1882. String? token,
  1883. }) : super(
  1884. pageIndex: pageIndex,
  1885. pageSize: pageSize,
  1886. token: token,
  1887. );
  1888. factory FindReportTemplateUserPagesRequest.fromJson(Map<String, dynamic> map) {
  1889. return FindReportTemplateUserPagesRequest(
  1890. reportTemplateCode: map['ReportTemplateCode'],
  1891. keyword: map['Keyword'],
  1892. pageIndex: map['PageIndex'],
  1893. pageSize: map['PageSize'],
  1894. token: map['Token'],
  1895. );
  1896. }
  1897. Map<String, dynamic> toJson() {
  1898. final map = super.toJson();
  1899. if(reportTemplateCode != null)
  1900. map['ReportTemplateCode'] = reportTemplateCode;
  1901. if(keyword != null)
  1902. map['Keyword'] = keyword;
  1903. return map;
  1904. }
  1905. }
  1906. class FindRoleByCodeRequest extends TokenRequest{
  1907. String? roleCode;
  1908. FindRoleByCodeRequest({
  1909. this.roleCode,
  1910. String? token,
  1911. }) : super(
  1912. token: token,
  1913. );
  1914. factory FindRoleByCodeRequest.fromJson(Map<String, dynamic> map) {
  1915. return FindRoleByCodeRequest(
  1916. roleCode: map['RoleCode'],
  1917. token: map['Token'],
  1918. );
  1919. }
  1920. Map<String, dynamic> toJson() {
  1921. final map = super.toJson();
  1922. if(roleCode != null)
  1923. map['RoleCode'] = roleCode;
  1924. return map;
  1925. }
  1926. }
  1927. class FindThesaurusByCodeRequest extends TokenRequest{
  1928. String? thesaurusCode;
  1929. FindThesaurusByCodeRequest({
  1930. this.thesaurusCode,
  1931. String? token,
  1932. }) : super(
  1933. token: token,
  1934. );
  1935. factory FindThesaurusByCodeRequest.fromJson(Map<String, dynamic> map) {
  1936. return FindThesaurusByCodeRequest(
  1937. thesaurusCode: map['ThesaurusCode'],
  1938. token: map['Token'],
  1939. );
  1940. }
  1941. Map<String, dynamic> toJson() {
  1942. final map = super.toJson();
  1943. if(thesaurusCode != null)
  1944. map['ThesaurusCode'] = thesaurusCode;
  1945. return map;
  1946. }
  1947. }
  1948. class FindThesaurusPagesRequest extends PageRequest{
  1949. String? keyword;
  1950. FindThesaurusPagesRequest({
  1951. this.keyword,
  1952. int pageIndex = 0,
  1953. int pageSize = 0,
  1954. String? token,
  1955. }) : super(
  1956. pageIndex: pageIndex,
  1957. pageSize: pageSize,
  1958. token: token,
  1959. );
  1960. factory FindThesaurusPagesRequest.fromJson(Map<String, dynamic> map) {
  1961. return FindThesaurusPagesRequest(
  1962. keyword: map['Keyword'],
  1963. pageIndex: map['PageIndex'],
  1964. pageSize: map['PageSize'],
  1965. token: map['Token'],
  1966. );
  1967. }
  1968. Map<String, dynamic> toJson() {
  1969. final map = super.toJson();
  1970. if(keyword != null)
  1971. map['Keyword'] = keyword;
  1972. return map;
  1973. }
  1974. }
  1975. class FindThesaurusUserPagesRequest extends PageRequest{
  1976. String? thesaurusCode;
  1977. String? keyword;
  1978. FindThesaurusUserPagesRequest({
  1979. this.thesaurusCode,
  1980. this.keyword,
  1981. int pageIndex = 0,
  1982. int pageSize = 0,
  1983. String? token,
  1984. }) : super(
  1985. pageIndex: pageIndex,
  1986. pageSize: pageSize,
  1987. token: token,
  1988. );
  1989. factory FindThesaurusUserPagesRequest.fromJson(Map<String, dynamic> map) {
  1990. return FindThesaurusUserPagesRequest(
  1991. thesaurusCode: map['ThesaurusCode'],
  1992. keyword: map['Keyword'],
  1993. pageIndex: map['PageIndex'],
  1994. pageSize: map['PageSize'],
  1995. token: map['Token'],
  1996. );
  1997. }
  1998. Map<String, dynamic> toJson() {
  1999. final map = super.toJson();
  2000. if(thesaurusCode != null)
  2001. map['ThesaurusCode'] = thesaurusCode;
  2002. if(keyword != null)
  2003. map['Keyword'] = keyword;
  2004. return map;
  2005. }
  2006. }
  2007. class FindThirdPartyInfoByCodeRequest extends TokenRequest{
  2008. String? code;
  2009. FindThirdPartyInfoByCodeRequest({
  2010. this.code,
  2011. String? token,
  2012. }) : super(
  2013. token: token,
  2014. );
  2015. factory FindThirdPartyInfoByCodeRequest.fromJson(Map<String, dynamic> map) {
  2016. return FindThirdPartyInfoByCodeRequest(
  2017. code: map['Code'],
  2018. token: map['Token'],
  2019. );
  2020. }
  2021. Map<String, dynamic> toJson() {
  2022. final map = super.toJson();
  2023. if(code != null)
  2024. map['Code'] = code;
  2025. return map;
  2026. }
  2027. }
  2028. class FindUserByCodeRequest extends TokenRequest{
  2029. String? userCode;
  2030. FindUserByCodeRequest({
  2031. this.userCode,
  2032. String? token,
  2033. }) : super(
  2034. token: token,
  2035. );
  2036. factory FindUserByCodeRequest.fromJson(Map<String, dynamic> map) {
  2037. return FindUserByCodeRequest(
  2038. userCode: map['UserCode'],
  2039. token: map['Token'],
  2040. );
  2041. }
  2042. Map<String, dynamic> toJson() {
  2043. final map = super.toJson();
  2044. if(userCode != null)
  2045. map['UserCode'] = userCode;
  2046. return map;
  2047. }
  2048. }
  2049. class GetAdminPagesRequest extends PageRequest{
  2050. String? queryType;
  2051. String? keyWord;
  2052. String? roleCode;
  2053. bool isShowSuperRoleCode;
  2054. String? fatherCode;
  2055. GetAdminPagesRequest({
  2056. this.queryType,
  2057. this.keyWord,
  2058. this.roleCode,
  2059. this.isShowSuperRoleCode = false,
  2060. this.fatherCode,
  2061. int pageIndex = 0,
  2062. int pageSize = 0,
  2063. String? token,
  2064. }) : super(
  2065. pageIndex: pageIndex,
  2066. pageSize: pageSize,
  2067. token: token,
  2068. );
  2069. factory GetAdminPagesRequest.fromJson(Map<String, dynamic> map) {
  2070. return GetAdminPagesRequest(
  2071. queryType: map['QueryType'],
  2072. keyWord: map['KeyWord'],
  2073. roleCode: map['RoleCode'],
  2074. isShowSuperRoleCode: map['IsShowSuperRoleCode'],
  2075. fatherCode: map['FatherCode'],
  2076. pageIndex: map['PageIndex'],
  2077. pageSize: map['PageSize'],
  2078. token: map['Token'],
  2079. );
  2080. }
  2081. Map<String, dynamic> toJson() {
  2082. final map = super.toJson();
  2083. if(queryType != null)
  2084. map['QueryType'] = queryType;
  2085. if(keyWord != null)
  2086. map['KeyWord'] = keyWord;
  2087. if(roleCode != null)
  2088. map['RoleCode'] = roleCode;
  2089. map['IsShowSuperRoleCode'] = isShowSuperRoleCode;
  2090. if(fatherCode != null)
  2091. map['FatherCode'] = fatherCode;
  2092. return map;
  2093. }
  2094. }
  2095. class GetAdminRolePagesRequest extends PageRequest{
  2096. String? roleName;
  2097. GetAdminRolePagesRequest({
  2098. this.roleName,
  2099. int pageIndex = 0,
  2100. int pageSize = 0,
  2101. String? token,
  2102. }) : super(
  2103. pageIndex: pageIndex,
  2104. pageSize: pageSize,
  2105. token: token,
  2106. );
  2107. factory GetAdminRolePagesRequest.fromJson(Map<String, dynamic> map) {
  2108. return GetAdminRolePagesRequest(
  2109. roleName: map['RoleName'],
  2110. pageIndex: map['PageIndex'],
  2111. pageSize: map['PageSize'],
  2112. token: map['Token'],
  2113. );
  2114. }
  2115. Map<String, dynamic> toJson() {
  2116. final map = super.toJson();
  2117. if(roleName != null)
  2118. map['RoleName'] = roleName;
  2119. return map;
  2120. }
  2121. }
  2122. class GetDeviceModelSelectRequest extends TokenRequest{
  2123. String? parentCode;
  2124. GetDeviceModelSelectRequest({
  2125. this.parentCode,
  2126. String? token,
  2127. }) : super(
  2128. token: token,
  2129. );
  2130. factory GetDeviceModelSelectRequest.fromJson(Map<String, dynamic> map) {
  2131. return GetDeviceModelSelectRequest(
  2132. parentCode: map['ParentCode'],
  2133. token: map['Token'],
  2134. );
  2135. }
  2136. Map<String, dynamic> toJson() {
  2137. final map = super.toJson();
  2138. if(parentCode != null)
  2139. map['ParentCode'] = parentCode;
  2140. return map;
  2141. }
  2142. }
  2143. class GetDevicePagesRequest extends PageRequest{
  2144. String? queryType;
  2145. String? keyword;
  2146. List<String >? hospitals;
  2147. String? adminName;
  2148. String? userName;
  2149. GetDevicePagesRequest({
  2150. this.queryType,
  2151. this.keyword,
  2152. this.hospitals,
  2153. this.adminName,
  2154. this.userName,
  2155. int pageIndex = 0,
  2156. int pageSize = 0,
  2157. String? token,
  2158. }) : super(
  2159. pageIndex: pageIndex,
  2160. pageSize: pageSize,
  2161. token: token,
  2162. );
  2163. factory GetDevicePagesRequest.fromJson(Map<String, dynamic> map) {
  2164. return GetDevicePagesRequest(
  2165. queryType: map['QueryType'],
  2166. keyword: map['Keyword'],
  2167. hospitals: map['Hospitals'] != null ? map['Hospitals'].cast<String>().toList() : null,
  2168. adminName: map['AdminName'],
  2169. userName: map['UserName'],
  2170. pageIndex: map['PageIndex'],
  2171. pageSize: map['PageSize'],
  2172. token: map['Token'],
  2173. );
  2174. }
  2175. Map<String, dynamic> toJson() {
  2176. final map = super.toJson();
  2177. if(queryType != null)
  2178. map['QueryType'] = queryType;
  2179. if(keyword != null)
  2180. map['Keyword'] = keyword;
  2181. if(hospitals != null)
  2182. map['Hospitals'] = hospitals;
  2183. if(adminName != null)
  2184. map['AdminName'] = adminName;
  2185. if(userName != null)
  2186. map['UserName'] = userName;
  2187. return map;
  2188. }
  2189. }
  2190. class GetDeviceTypePagesRequest extends PageRequest{
  2191. String? deviceType;
  2192. String? deviceModel;
  2193. GetDeviceTypePagesRequest({
  2194. this.deviceType,
  2195. this.deviceModel,
  2196. int pageIndex = 0,
  2197. int pageSize = 0,
  2198. String? token,
  2199. }) : super(
  2200. pageIndex: pageIndex,
  2201. pageSize: pageSize,
  2202. token: token,
  2203. );
  2204. factory GetDeviceTypePagesRequest.fromJson(Map<String, dynamic> map) {
  2205. return GetDeviceTypePagesRequest(
  2206. deviceType: map['DeviceType'],
  2207. deviceModel: map['DeviceModel'],
  2208. pageIndex: map['PageIndex'],
  2209. pageSize: map['PageSize'],
  2210. token: map['Token'],
  2211. );
  2212. }
  2213. Map<String, dynamic> toJson() {
  2214. final map = super.toJson();
  2215. if(deviceType != null)
  2216. map['DeviceType'] = deviceType;
  2217. if(deviceModel != null)
  2218. map['DeviceModel'] = deviceModel;
  2219. return map;
  2220. }
  2221. }
  2222. class GetDeviceUserPagesRequest extends PageRequest{
  2223. List<String >? deviceCodes;
  2224. String? queryType;
  2225. String? keyword;
  2226. int type;
  2227. GetDeviceUserPagesRequest({
  2228. this.deviceCodes,
  2229. this.queryType,
  2230. this.keyword,
  2231. this.type = 0,
  2232. int pageIndex = 0,
  2233. int pageSize = 0,
  2234. String? token,
  2235. }) : super(
  2236. pageIndex: pageIndex,
  2237. pageSize: pageSize,
  2238. token: token,
  2239. );
  2240. factory GetDeviceUserPagesRequest.fromJson(Map<String, dynamic> map) {
  2241. return GetDeviceUserPagesRequest(
  2242. deviceCodes: map['DeviceCodes'] != null ? map['DeviceCodes'].cast<String>().toList() : null,
  2243. queryType: map['QueryType'],
  2244. keyword: map['Keyword'],
  2245. type: map['Type'],
  2246. pageIndex: map['PageIndex'],
  2247. pageSize: map['PageSize'],
  2248. token: map['Token'],
  2249. );
  2250. }
  2251. Map<String, dynamic> toJson() {
  2252. final map = super.toJson();
  2253. if(deviceCodes != null)
  2254. map['DeviceCodes'] = deviceCodes;
  2255. if(queryType != null)
  2256. map['QueryType'] = queryType;
  2257. if(keyword != null)
  2258. map['Keyword'] = keyword;
  2259. map['Type'] = type;
  2260. return map;
  2261. }
  2262. }
  2263. class GetDistributedServerRequest extends PageRequest{
  2264. String? keyword;
  2265. GetDistributedServerRequest({
  2266. this.keyword,
  2267. int pageIndex = 0,
  2268. int pageSize = 0,
  2269. String? token,
  2270. }) : super(
  2271. pageIndex: pageIndex,
  2272. pageSize: pageSize,
  2273. token: token,
  2274. );
  2275. factory GetDistributedServerRequest.fromJson(Map<String, dynamic> map) {
  2276. return GetDistributedServerRequest(
  2277. keyword: map['Keyword'],
  2278. pageIndex: map['PageIndex'],
  2279. pageSize: map['PageSize'],
  2280. token: map['Token'],
  2281. );
  2282. }
  2283. Map<String, dynamic> toJson() {
  2284. final map = super.toJson();
  2285. if(keyword != null)
  2286. map['Keyword'] = keyword;
  2287. return map;
  2288. }
  2289. }
  2290. class GetLogPagesRequest extends PageRequest{
  2291. String? level;
  2292. String? keyWord;
  2293. String? exclude;
  2294. DateTime? startTime;
  2295. DateTime? endTime;
  2296. String? requestServerHost;
  2297. GetLogPagesRequest({
  2298. this.level,
  2299. this.keyWord,
  2300. this.exclude,
  2301. this.startTime,
  2302. this.endTime,
  2303. this.requestServerHost,
  2304. int pageIndex = 0,
  2305. int pageSize = 0,
  2306. String? token,
  2307. }) : super(
  2308. pageIndex: pageIndex,
  2309. pageSize: pageSize,
  2310. token: token,
  2311. );
  2312. factory GetLogPagesRequest.fromJson(Map<String, dynamic> map) {
  2313. return GetLogPagesRequest(
  2314. level: map['Level'],
  2315. keyWord: map['KeyWord'],
  2316. exclude: map['Exclude'],
  2317. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  2318. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  2319. requestServerHost: map['RequestServerHost'],
  2320. pageIndex: map['PageIndex'],
  2321. pageSize: map['PageSize'],
  2322. token: map['Token'],
  2323. );
  2324. }
  2325. Map<String, dynamic> toJson() {
  2326. final map = super.toJson();
  2327. if(level != null)
  2328. map['Level'] = level;
  2329. if(keyWord != null)
  2330. map['KeyWord'] = keyWord;
  2331. if(exclude != null)
  2332. map['Exclude'] = exclude;
  2333. if(startTime != null)
  2334. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  2335. if(endTime != null)
  2336. map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
  2337. if(requestServerHost != null)
  2338. map['RequestServerHost'] = requestServerHost;
  2339. return map;
  2340. }
  2341. }
  2342. class GetOrganizationCustomSettingRequest extends TokenRequest{
  2343. String? langugeKey;
  2344. String? settingModule;
  2345. String? organizationCode;
  2346. GetOrganizationCustomSettingRequest({
  2347. this.langugeKey,
  2348. this.settingModule,
  2349. this.organizationCode,
  2350. String? token,
  2351. }) : super(
  2352. token: token,
  2353. );
  2354. factory GetOrganizationCustomSettingRequest.fromJson(Map<String, dynamic> map) {
  2355. return GetOrganizationCustomSettingRequest(
  2356. langugeKey: map['LangugeKey'],
  2357. settingModule: map['SettingModule'],
  2358. organizationCode: map['OrganizationCode'],
  2359. token: map['Token'],
  2360. );
  2361. }
  2362. Map<String, dynamic> toJson() {
  2363. final map = super.toJson();
  2364. if(langugeKey != null)
  2365. map['LangugeKey'] = langugeKey;
  2366. if(settingModule != null)
  2367. map['SettingModule'] = settingModule;
  2368. if(organizationCode != null)
  2369. map['OrganizationCode'] = organizationCode;
  2370. return map;
  2371. }
  2372. }
  2373. class GetOrganizationPagesRequest extends PageRequest{
  2374. String? queryType;
  2375. String? keyword;
  2376. String? state;
  2377. String? isinvented;
  2378. GetOrganizationPagesRequest({
  2379. this.queryType,
  2380. this.keyword,
  2381. this.state,
  2382. this.isinvented,
  2383. int pageIndex = 0,
  2384. int pageSize = 0,
  2385. String? token,
  2386. }) : super(
  2387. pageIndex: pageIndex,
  2388. pageSize: pageSize,
  2389. token: token,
  2390. );
  2391. factory GetOrganizationPagesRequest.fromJson(Map<String, dynamic> map) {
  2392. return GetOrganizationPagesRequest(
  2393. queryType: map['QueryType'],
  2394. keyword: map['Keyword'],
  2395. state: map['State'],
  2396. isinvented: map['Isinvented'],
  2397. pageIndex: map['PageIndex'],
  2398. pageSize: map['PageSize'],
  2399. token: map['Token'],
  2400. );
  2401. }
  2402. Map<String, dynamic> toJson() {
  2403. final map = super.toJson();
  2404. if(queryType != null)
  2405. map['QueryType'] = queryType;
  2406. if(keyword != null)
  2407. map['Keyword'] = keyword;
  2408. if(state != null)
  2409. map['State'] = state;
  2410. if(isinvented != null)
  2411. map['Isinvented'] = isinvented;
  2412. return map;
  2413. }
  2414. }
  2415. class GetOrganizationRequest extends TokenRequest{
  2416. String? organizationCode;
  2417. GetOrganizationRequest({
  2418. this.organizationCode,
  2419. String? token,
  2420. }) : super(
  2421. token: token,
  2422. );
  2423. factory GetOrganizationRequest.fromJson(Map<String, dynamic> map) {
  2424. return GetOrganizationRequest(
  2425. organizationCode: map['OrganizationCode'],
  2426. token: map['Token'],
  2427. );
  2428. }
  2429. Map<String, dynamic> toJson() {
  2430. final map = super.toJson();
  2431. if(organizationCode != null)
  2432. map['OrganizationCode'] = organizationCode;
  2433. return map;
  2434. }
  2435. }
  2436. class GetOrganizationSettingRequest extends TokenRequest{
  2437. OrganizationSettingTypeEnum settingType;
  2438. String? organizationCode;
  2439. GetOrganizationSettingRequest({
  2440. this.settingType = OrganizationSettingTypeEnum.Patient,
  2441. this.organizationCode,
  2442. String? token,
  2443. }) : super(
  2444. token: token,
  2445. );
  2446. factory GetOrganizationSettingRequest.fromJson(Map<String, dynamic> map) {
  2447. return GetOrganizationSettingRequest(
  2448. settingType: OrganizationSettingTypeEnum.values.firstWhere((e) => e.index == map['SettingType']),
  2449. organizationCode: map['OrganizationCode'],
  2450. token: map['Token'],
  2451. );
  2452. }
  2453. Map<String, dynamic> toJson() {
  2454. final map = super.toJson();
  2455. map['SettingType'] = settingType.index;
  2456. if(organizationCode != null)
  2457. map['OrganizationCode'] = organizationCode;
  2458. return map;
  2459. }
  2460. }
  2461. class GetOrganizationUserPagesRequest extends PageRequest{
  2462. String? organizationCode;
  2463. String? queryType;
  2464. String? keyword;
  2465. GetOrganizationUserPagesRequest({
  2466. this.organizationCode,
  2467. this.queryType,
  2468. this.keyword,
  2469. int pageIndex = 0,
  2470. int pageSize = 0,
  2471. String? token,
  2472. }) : super(
  2473. pageIndex: pageIndex,
  2474. pageSize: pageSize,
  2475. token: token,
  2476. );
  2477. factory GetOrganizationUserPagesRequest.fromJson(Map<String, dynamic> map) {
  2478. return GetOrganizationUserPagesRequest(
  2479. organizationCode: map['OrganizationCode'],
  2480. queryType: map['QueryType'],
  2481. keyword: map['Keyword'],
  2482. pageIndex: map['PageIndex'],
  2483. pageSize: map['PageSize'],
  2484. token: map['Token'],
  2485. );
  2486. }
  2487. Map<String, dynamic> toJson() {
  2488. final map = super.toJson();
  2489. if(organizationCode != null)
  2490. map['OrganizationCode'] = organizationCode;
  2491. if(queryType != null)
  2492. map['QueryType'] = queryType;
  2493. if(keyword != null)
  2494. map['Keyword'] = keyword;
  2495. return map;
  2496. }
  2497. }
  2498. class GetRolePagesRequest extends PageRequest{
  2499. String? roleName;
  2500. GetRolePagesRequest({
  2501. this.roleName,
  2502. int pageIndex = 0,
  2503. int pageSize = 0,
  2504. String? token,
  2505. }) : super(
  2506. pageIndex: pageIndex,
  2507. pageSize: pageSize,
  2508. token: token,
  2509. );
  2510. factory GetRolePagesRequest.fromJson(Map<String, dynamic> map) {
  2511. return GetRolePagesRequest(
  2512. roleName: map['RoleName'],
  2513. pageIndex: map['PageIndex'],
  2514. pageSize: map['PageSize'],
  2515. token: map['Token'],
  2516. );
  2517. }
  2518. Map<String, dynamic> toJson() {
  2519. final map = super.toJson();
  2520. if(roleName != null)
  2521. map['RoleName'] = roleName;
  2522. return map;
  2523. }
  2524. }
  2525. class GetShareExamUrlRequest {
  2526. String? requestUrl;
  2527. String? languageCode;
  2528. GetShareExamUrlRequest({
  2529. this.requestUrl,
  2530. this.languageCode,
  2531. });
  2532. factory GetShareExamUrlRequest.fromJson(Map<String, dynamic> map) {
  2533. return GetShareExamUrlRequest(
  2534. requestUrl: map['RequestUrl'],
  2535. languageCode: map['LanguageCode'],
  2536. );
  2537. }
  2538. Map<String, dynamic> toJson() {
  2539. final map = Map<String, dynamic>();
  2540. if(requestUrl != null)
  2541. map['RequestUrl'] = requestUrl;
  2542. if(languageCode != null)
  2543. map['LanguageCode'] = languageCode;
  2544. return map;
  2545. }
  2546. }
  2547. class GetThesaurusItemRequest extends TokenRequest{
  2548. String? thesaurusCode;
  2549. String? thesaurusItemCode;
  2550. GetThesaurusItemRequest({
  2551. this.thesaurusCode,
  2552. this.thesaurusItemCode,
  2553. String? token,
  2554. }) : super(
  2555. token: token,
  2556. );
  2557. factory GetThesaurusItemRequest.fromJson(Map<String, dynamic> map) {
  2558. return GetThesaurusItemRequest(
  2559. thesaurusCode: map['ThesaurusCode'],
  2560. thesaurusItemCode: map['ThesaurusItemCode'],
  2561. token: map['Token'],
  2562. );
  2563. }
  2564. Map<String, dynamic> toJson() {
  2565. final map = super.toJson();
  2566. if(thesaurusCode != null)
  2567. map['ThesaurusCode'] = thesaurusCode;
  2568. if(thesaurusItemCode != null)
  2569. map['ThesaurusItemCode'] = thesaurusItemCode;
  2570. return map;
  2571. }
  2572. }
  2573. class GetThirdPartyInfoPagesRequest extends PageRequest{
  2574. String? name;
  2575. String? isValid;
  2576. GetThirdPartyInfoPagesRequest({
  2577. this.name,
  2578. this.isValid,
  2579. int pageIndex = 0,
  2580. int pageSize = 0,
  2581. String? token,
  2582. }) : super(
  2583. pageIndex: pageIndex,
  2584. pageSize: pageSize,
  2585. token: token,
  2586. );
  2587. factory GetThirdPartyInfoPagesRequest.fromJson(Map<String, dynamic> map) {
  2588. return GetThirdPartyInfoPagesRequest(
  2589. name: map['Name'],
  2590. isValid: map['IsValid'],
  2591. pageIndex: map['PageIndex'],
  2592. pageSize: map['PageSize'],
  2593. token: map['Token'],
  2594. );
  2595. }
  2596. Map<String, dynamic> toJson() {
  2597. final map = super.toJson();
  2598. if(name != null)
  2599. map['Name'] = name;
  2600. if(isValid != null)
  2601. map['IsValid'] = isValid;
  2602. return map;
  2603. }
  2604. }
  2605. class GetUserPagesRequest extends PageRequest{
  2606. String? queryType;
  2607. String? keyword;
  2608. String? queryState;
  2609. GetUserPagesRequest({
  2610. this.queryType,
  2611. this.keyword,
  2612. this.queryState,
  2613. int pageIndex = 0,
  2614. int pageSize = 0,
  2615. String? token,
  2616. }) : super(
  2617. pageIndex: pageIndex,
  2618. pageSize: pageSize,
  2619. token: token,
  2620. );
  2621. factory GetUserPagesRequest.fromJson(Map<String, dynamic> map) {
  2622. return GetUserPagesRequest(
  2623. queryType: map['QueryType'],
  2624. keyword: map['Keyword'],
  2625. queryState: map['QueryState'],
  2626. pageIndex: map['PageIndex'],
  2627. pageSize: map['PageSize'],
  2628. token: map['Token'],
  2629. );
  2630. }
  2631. Map<String, dynamic> toJson() {
  2632. final map = super.toJson();
  2633. if(queryType != null)
  2634. map['QueryType'] = queryType;
  2635. if(keyword != null)
  2636. map['Keyword'] = keyword;
  2637. if(queryState != null)
  2638. map['QueryState'] = queryState;
  2639. return map;
  2640. }
  2641. }
  2642. class ImitateLoginRequest {
  2643. String? account;
  2644. String? password;
  2645. AccountType accountType;
  2646. ImitateLoginRequest({
  2647. this.account,
  2648. this.password,
  2649. this.accountType = AccountType.Admin,
  2650. });
  2651. factory ImitateLoginRequest.fromJson(Map<String, dynamic> map) {
  2652. return ImitateLoginRequest(
  2653. account: map['Account'],
  2654. password: map['Password'],
  2655. accountType: AccountType.values.firstWhere((e) => e.index == map['AccountType']),
  2656. );
  2657. }
  2658. Map<String, dynamic> toJson() {
  2659. final map = Map<String, dynamic>();
  2660. if(account != null)
  2661. map['Account'] = account;
  2662. if(password != null)
  2663. map['Password'] = password;
  2664. map['AccountType'] = accountType.index;
  2665. return map;
  2666. }
  2667. }
  2668. class ImitateLoginResult {
  2669. String? clientId;
  2670. ImitateLoginResult({
  2671. this.clientId,
  2672. });
  2673. factory ImitateLoginResult.fromJson(Map<String, dynamic> map) {
  2674. return ImitateLoginResult(
  2675. clientId: map['ClientId'],
  2676. );
  2677. }
  2678. Map<String, dynamic> toJson() {
  2679. final map = Map<String, dynamic>();
  2680. if(clientId != null)
  2681. map['ClientId'] = clientId;
  2682. return map;
  2683. }
  2684. }
  2685. class LoginRequest {
  2686. String? adminName;
  2687. String? password;
  2688. LoginRequest({
  2689. this.adminName,
  2690. this.password,
  2691. });
  2692. factory LoginRequest.fromJson(Map<String, dynamic> map) {
  2693. return LoginRequest(
  2694. adminName: map['AdminName'],
  2695. password: map['Password'],
  2696. );
  2697. }
  2698. Map<String, dynamic> toJson() {
  2699. final map = Map<String, dynamic>();
  2700. if(adminName != null)
  2701. map['AdminName'] = adminName;
  2702. if(password != null)
  2703. map['Password'] = password;
  2704. return map;
  2705. }
  2706. }
  2707. class BaseFeatureInfoDTO extends BaseDTO{
  2708. String? featureCode;
  2709. String? featureName;
  2710. String? fatherCode;
  2711. String? uniqueCode;
  2712. BaseFeatureInfoDTO({
  2713. this.featureCode,
  2714. this.featureName,
  2715. this.fatherCode,
  2716. this.uniqueCode,
  2717. DateTime? createTime,
  2718. DateTime? updateTime,
  2719. }) : super(
  2720. createTime: createTime,
  2721. updateTime: updateTime,
  2722. );
  2723. factory BaseFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  2724. return BaseFeatureInfoDTO(
  2725. featureCode: map['FeatureCode'],
  2726. featureName: map['FeatureName'],
  2727. fatherCode: map['FatherCode'],
  2728. uniqueCode: map['UniqueCode'],
  2729. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  2730. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  2731. );
  2732. }
  2733. Map<String, dynamic> toJson() {
  2734. final map = super.toJson();
  2735. if(featureCode != null)
  2736. map['FeatureCode'] = featureCode;
  2737. if(featureName != null)
  2738. map['FeatureName'] = featureName;
  2739. if(fatherCode != null)
  2740. map['FatherCode'] = fatherCode;
  2741. if(uniqueCode != null)
  2742. map['UniqueCode'] = uniqueCode;
  2743. return map;
  2744. }
  2745. }
  2746. class AdminFeatureInfoDTO extends BaseFeatureInfoDTO{
  2747. AdminFeatureInfoDTO({
  2748. String? featureCode,
  2749. String? featureName,
  2750. String? fatherCode,
  2751. String? uniqueCode,
  2752. DateTime? createTime,
  2753. DateTime? updateTime,
  2754. }) : super(
  2755. featureCode: featureCode,
  2756. featureName: featureName,
  2757. fatherCode: fatherCode,
  2758. uniqueCode: uniqueCode,
  2759. createTime: createTime,
  2760. updateTime: updateTime,
  2761. );
  2762. factory AdminFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  2763. return AdminFeatureInfoDTO(
  2764. featureCode: map['FeatureCode'],
  2765. featureName: map['FeatureName'],
  2766. fatherCode: map['FatherCode'],
  2767. uniqueCode: map['UniqueCode'],
  2768. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  2769. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  2770. );
  2771. }
  2772. Map<String, dynamic> toJson() {
  2773. final map = super.toJson();
  2774. return map;
  2775. }
  2776. }
  2777. class ModifyAdminFeatureRequest extends AdminFeatureInfoDTO{
  2778. String? token;
  2779. ModifyAdminFeatureRequest({
  2780. this.token,
  2781. String? featureCode,
  2782. String? featureName,
  2783. String? fatherCode,
  2784. String? uniqueCode,
  2785. DateTime? createTime,
  2786. DateTime? updateTime,
  2787. }) : super(
  2788. featureCode: featureCode,
  2789. featureName: featureName,
  2790. fatherCode: fatherCode,
  2791. uniqueCode: uniqueCode,
  2792. createTime: createTime,
  2793. updateTime: updateTime,
  2794. );
  2795. factory ModifyAdminFeatureRequest.fromJson(Map<String, dynamic> map) {
  2796. return ModifyAdminFeatureRequest(
  2797. token: map['Token'],
  2798. featureCode: map['FeatureCode'],
  2799. featureName: map['FeatureName'],
  2800. fatherCode: map['FatherCode'],
  2801. uniqueCode: map['UniqueCode'],
  2802. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  2803. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  2804. );
  2805. }
  2806. Map<String, dynamic> toJson() {
  2807. final map = super.toJson();
  2808. if(token != null)
  2809. map['Token'] = token;
  2810. return map;
  2811. }
  2812. }
  2813. class ModifyAdminPasswordRequest extends TokenRequest{
  2814. String? adminCode;
  2815. String? oldPassword;
  2816. String? newPassword;
  2817. ModifyAdminPasswordRequest({
  2818. this.adminCode,
  2819. this.oldPassword,
  2820. this.newPassword,
  2821. String? token,
  2822. }) : super(
  2823. token: token,
  2824. );
  2825. factory ModifyAdminPasswordRequest.fromJson(Map<String, dynamic> map) {
  2826. return ModifyAdminPasswordRequest(
  2827. adminCode: map['AdminCode'],
  2828. oldPassword: map['OldPassword'],
  2829. newPassword: map['NewPassword'],
  2830. token: map['Token'],
  2831. );
  2832. }
  2833. Map<String, dynamic> toJson() {
  2834. final map = super.toJson();
  2835. if(adminCode != null)
  2836. map['AdminCode'] = adminCode;
  2837. if(oldPassword != null)
  2838. map['OldPassword'] = oldPassword;
  2839. if(newPassword != null)
  2840. map['NewPassword'] = newPassword;
  2841. return map;
  2842. }
  2843. }
  2844. class AdminInfoDTO extends BaseDTO{
  2845. String? adminCode;
  2846. String? fatherCode;
  2847. String? adminName;
  2848. String? fullName;
  2849. String? secretPassword;
  2850. String? headImageToken;
  2851. String? licenseKey;
  2852. String? lastIP;
  2853. String? phone;
  2854. String? email;
  2855. List<String >? roleCodes;
  2856. LoginLockInfoDTO? loginLockInfo;
  2857. DateTime? passwordUpdateTime;
  2858. List<String >? passwordRecords;
  2859. AdminInfoDTO({
  2860. this.adminCode,
  2861. this.fatherCode,
  2862. this.adminName,
  2863. this.fullName,
  2864. this.secretPassword,
  2865. this.headImageToken,
  2866. this.licenseKey,
  2867. this.lastIP,
  2868. this.phone,
  2869. this.email,
  2870. this.roleCodes,
  2871. this.loginLockInfo,
  2872. this.passwordUpdateTime,
  2873. this.passwordRecords,
  2874. DateTime? createTime,
  2875. DateTime? updateTime,
  2876. }) : super(
  2877. createTime: createTime,
  2878. updateTime: updateTime,
  2879. );
  2880. factory AdminInfoDTO.fromJson(Map<String, dynamic> map) {
  2881. return AdminInfoDTO(
  2882. adminCode: map['AdminCode'],
  2883. fatherCode: map['FatherCode'],
  2884. adminName: map['AdminName'],
  2885. fullName: map['FullName'],
  2886. secretPassword: map['SecretPassword'],
  2887. headImageToken: map['HeadImageToken'],
  2888. licenseKey: map['LicenseKey'],
  2889. lastIP: map['LastIP'],
  2890. phone: map['Phone'],
  2891. email: map['Email'],
  2892. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  2893. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  2894. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  2895. passwordRecords: map['PasswordRecords'] != null ? map['PasswordRecords'].cast<String>().toList() : null,
  2896. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  2897. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  2898. );
  2899. }
  2900. Map<String, dynamic> toJson() {
  2901. final map = super.toJson();
  2902. if(adminCode != null)
  2903. map['AdminCode'] = adminCode;
  2904. if(fatherCode != null)
  2905. map['FatherCode'] = fatherCode;
  2906. if(adminName != null)
  2907. map['AdminName'] = adminName;
  2908. if(fullName != null)
  2909. map['FullName'] = fullName;
  2910. if(secretPassword != null)
  2911. map['SecretPassword'] = secretPassword;
  2912. if(headImageToken != null)
  2913. map['HeadImageToken'] = headImageToken;
  2914. if(licenseKey != null)
  2915. map['LicenseKey'] = licenseKey;
  2916. if(lastIP != null)
  2917. map['LastIP'] = lastIP;
  2918. if(phone != null)
  2919. map['Phone'] = phone;
  2920. if(email != null)
  2921. map['Email'] = email;
  2922. if(roleCodes != null)
  2923. map['RoleCodes'] = roleCodes;
  2924. if(loginLockInfo != null)
  2925. map['LoginLockInfo'] = loginLockInfo;
  2926. if(passwordUpdateTime != null)
  2927. map['PasswordUpdateTime'] = JsonRpcUtils.dateFormat(passwordUpdateTime!);
  2928. if(passwordRecords != null)
  2929. map['PasswordRecords'] = passwordRecords;
  2930. return map;
  2931. }
  2932. }
  2933. class ModifyAdminRequest extends AdminInfoDTO{
  2934. String? token;
  2935. ModifyAdminRequest({
  2936. this.token,
  2937. String? adminCode,
  2938. String? fatherCode,
  2939. String? adminName,
  2940. String? fullName,
  2941. String? secretPassword,
  2942. String? headImageToken,
  2943. String? licenseKey,
  2944. String? lastIP,
  2945. String? phone,
  2946. String? email,
  2947. List<String >? roleCodes,
  2948. LoginLockInfoDTO? loginLockInfo,
  2949. DateTime? passwordUpdateTime,
  2950. List<String >? passwordRecords,
  2951. DateTime? createTime,
  2952. DateTime? updateTime,
  2953. }) : super(
  2954. adminCode: adminCode,
  2955. fatherCode: fatherCode,
  2956. adminName: adminName,
  2957. fullName: fullName,
  2958. secretPassword: secretPassword,
  2959. headImageToken: headImageToken,
  2960. licenseKey: licenseKey,
  2961. lastIP: lastIP,
  2962. phone: phone,
  2963. email: email,
  2964. roleCodes: roleCodes,
  2965. loginLockInfo: loginLockInfo,
  2966. passwordUpdateTime: passwordUpdateTime,
  2967. passwordRecords: passwordRecords,
  2968. createTime: createTime,
  2969. updateTime: updateTime,
  2970. );
  2971. factory ModifyAdminRequest.fromJson(Map<String, dynamic> map) {
  2972. return ModifyAdminRequest(
  2973. token: map['Token'],
  2974. adminCode: map['AdminCode'],
  2975. fatherCode: map['FatherCode'],
  2976. adminName: map['AdminName'],
  2977. fullName: map['FullName'],
  2978. secretPassword: map['SecretPassword'],
  2979. headImageToken: map['HeadImageToken'],
  2980. licenseKey: map['LicenseKey'],
  2981. lastIP: map['LastIP'],
  2982. phone: map['Phone'],
  2983. email: map['Email'],
  2984. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  2985. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  2986. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  2987. passwordRecords: map['PasswordRecords'] != null ? map['PasswordRecords'].cast<String>().toList() : null,
  2988. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  2989. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  2990. );
  2991. }
  2992. Map<String, dynamic> toJson() {
  2993. final map = super.toJson();
  2994. if(token != null)
  2995. map['Token'] = token;
  2996. return map;
  2997. }
  2998. }
  2999. class AdminRoleDTO extends BaseRoleDTO{
  3000. String? adminGroupCode;
  3001. int adminNum;
  3002. AdminRoleDTO({
  3003. this.adminGroupCode,
  3004. this.adminNum = 0,
  3005. String? roleCode,
  3006. String? roleName,
  3007. String? description,
  3008. List<UserRoleLanguageConfigDTO >? languageConfigs,
  3009. DateTime? createTime,
  3010. DateTime? updateTime,
  3011. }) : super(
  3012. roleCode: roleCode,
  3013. roleName: roleName,
  3014. description: description,
  3015. languageConfigs: languageConfigs,
  3016. createTime: createTime,
  3017. updateTime: updateTime,
  3018. );
  3019. factory AdminRoleDTO.fromJson(Map<String, dynamic> map) {
  3020. return AdminRoleDTO(
  3021. adminGroupCode: map['AdminGroupCode'],
  3022. adminNum: map['AdminNum'],
  3023. roleCode: map['RoleCode'],
  3024. roleName: map['RoleName'],
  3025. description: map['Description'],
  3026. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3027. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3028. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3029. );
  3030. }
  3031. Map<String, dynamic> toJson() {
  3032. final map = super.toJson();
  3033. if(adminGroupCode != null)
  3034. map['AdminGroupCode'] = adminGroupCode;
  3035. map['AdminNum'] = adminNum;
  3036. return map;
  3037. }
  3038. }
  3039. class ModifyAdminRoleInfoRequest extends AdminRoleDTO{
  3040. String? token;
  3041. List<String >? featuresCodeList;
  3042. ModifyAdminRoleInfoRequest({
  3043. this.token,
  3044. this.featuresCodeList,
  3045. String? adminGroupCode,
  3046. int adminNum = 0,
  3047. String? roleCode,
  3048. String? roleName,
  3049. String? description,
  3050. List<UserRoleLanguageConfigDTO >? languageConfigs,
  3051. DateTime? createTime,
  3052. DateTime? updateTime,
  3053. }) : super(
  3054. adminGroupCode: adminGroupCode,
  3055. adminNum: adminNum,
  3056. roleCode: roleCode,
  3057. roleName: roleName,
  3058. description: description,
  3059. languageConfigs: languageConfigs,
  3060. createTime: createTime,
  3061. updateTime: updateTime,
  3062. );
  3063. factory ModifyAdminRoleInfoRequest.fromJson(Map<String, dynamic> map) {
  3064. return ModifyAdminRoleInfoRequest(
  3065. token: map['Token'],
  3066. featuresCodeList: map['FeaturesCodeList'] != null ? map['FeaturesCodeList'].cast<String>().toList() : null,
  3067. adminGroupCode: map['AdminGroupCode'],
  3068. adminNum: map['AdminNum'],
  3069. roleCode: map['RoleCode'],
  3070. roleName: map['RoleName'],
  3071. description: map['Description'],
  3072. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3073. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3074. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3075. );
  3076. }
  3077. Map<String, dynamic> toJson() {
  3078. final map = super.toJson();
  3079. if(token != null)
  3080. map['Token'] = token;
  3081. if(featuresCodeList != null)
  3082. map['FeaturesCodeList'] = featuresCodeList;
  3083. return map;
  3084. }
  3085. }
  3086. class ModifyAdminsRolesRequest {
  3087. String? token;
  3088. List<String >? adminCodes;
  3089. List<String >? adminRoleCodes;
  3090. ModifyAdminsRolesRequest({
  3091. this.token,
  3092. this.adminCodes,
  3093. this.adminRoleCodes,
  3094. });
  3095. factory ModifyAdminsRolesRequest.fromJson(Map<String, dynamic> map) {
  3096. return ModifyAdminsRolesRequest(
  3097. token: map['Token'],
  3098. adminCodes: map['AdminCodes'] != null ? map['AdminCodes'].cast<String>().toList() : null,
  3099. adminRoleCodes: map['AdminRoleCodes'] != null ? map['AdminRoleCodes'].cast<String>().toList() : null,
  3100. );
  3101. }
  3102. Map<String, dynamic> toJson() {
  3103. final map = Map<String, dynamic>();
  3104. if(token != null)
  3105. map['Token'] = token;
  3106. if(adminCodes != null)
  3107. map['AdminCodes'] = adminCodes;
  3108. if(adminRoleCodes != null)
  3109. map['AdminRoleCodes'] = adminRoleCodes;
  3110. return map;
  3111. }
  3112. }
  3113. class ModifyDeviceRequest2 extends DeviceInfoDTO{
  3114. String? token;
  3115. ModifyDeviceRequest2({
  3116. this.token,
  3117. String? deviceCode,
  3118. String? serialNumber,
  3119. String? password,
  3120. String? name,
  3121. String? description,
  3122. String? deviceModel,
  3123. String? deviceType,
  3124. String? headPicUrl,
  3125. String? deviceSoftwareVersion,
  3126. String? sDKSoftwareVersion,
  3127. String? organizationCode,
  3128. String? departmentCode,
  3129. String? shortCode,
  3130. bool isAutoShared = false,
  3131. bool isEncryptedShow = false,
  3132. DateTime? lastLoginTime,
  3133. String? systemVersion,
  3134. String? cPUModel,
  3135. String? systemLanguage,
  3136. List<String >? diagnosisModules,
  3137. List<String >? reportPosterCodes,
  3138. bool mergedChannel = false,
  3139. int mergedVideoOutputWidth = 0,
  3140. int mergedVideoOutputHeight = 0,
  3141. List<VideoDeviceDTO >? videoDeviceInfos,
  3142. DownloadModeSettingEnum downloadModeSetting = DownloadModeSettingEnum.Auto,
  3143. DateTime? createTime,
  3144. DateTime? updateTime,
  3145. }) : super(
  3146. deviceCode: deviceCode,
  3147. serialNumber: serialNumber,
  3148. password: password,
  3149. name: name,
  3150. description: description,
  3151. deviceModel: deviceModel,
  3152. deviceType: deviceType,
  3153. headPicUrl: headPicUrl,
  3154. deviceSoftwareVersion: deviceSoftwareVersion,
  3155. sDKSoftwareVersion: sDKSoftwareVersion,
  3156. organizationCode: organizationCode,
  3157. departmentCode: departmentCode,
  3158. shortCode: shortCode,
  3159. isAutoShared: isAutoShared,
  3160. isEncryptedShow: isEncryptedShow,
  3161. lastLoginTime: lastLoginTime,
  3162. systemVersion: systemVersion,
  3163. cPUModel: cPUModel,
  3164. systemLanguage: systemLanguage,
  3165. diagnosisModules: diagnosisModules,
  3166. reportPosterCodes: reportPosterCodes,
  3167. mergedChannel: mergedChannel,
  3168. mergedVideoOutputWidth: mergedVideoOutputWidth,
  3169. mergedVideoOutputHeight: mergedVideoOutputHeight,
  3170. videoDeviceInfos: videoDeviceInfos,
  3171. downloadModeSetting: downloadModeSetting,
  3172. createTime: createTime,
  3173. updateTime: updateTime,
  3174. );
  3175. factory ModifyDeviceRequest2.fromJson(Map<String, dynamic> map) {
  3176. return ModifyDeviceRequest2(
  3177. token: map['Token'],
  3178. deviceCode: map['DeviceCode'],
  3179. serialNumber: map['SerialNumber'],
  3180. password: map['Password'],
  3181. name: map['Name'],
  3182. description: map['Description'],
  3183. deviceModel: map['DeviceModel'],
  3184. deviceType: map['DeviceType'],
  3185. headPicUrl: map['HeadPicUrl'],
  3186. deviceSoftwareVersion: map['DeviceSoftwareVersion'],
  3187. sDKSoftwareVersion: map['SDKSoftwareVersion'],
  3188. organizationCode: map['OrganizationCode'],
  3189. departmentCode: map['DepartmentCode'],
  3190. shortCode: map['ShortCode'],
  3191. isAutoShared: map['IsAutoShared'],
  3192. isEncryptedShow: map['IsEncryptedShow'],
  3193. lastLoginTime: map['LastLoginTime'] != null ? DateTime.parse(map['LastLoginTime']) : null,
  3194. systemVersion: map['SystemVersion'],
  3195. cPUModel: map['CPUModel'],
  3196. systemLanguage: map['SystemLanguage'],
  3197. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  3198. reportPosterCodes: map['ReportPosterCodes'] != null ? map['ReportPosterCodes'].cast<String>().toList() : null,
  3199. mergedChannel: map['MergedChannel'],
  3200. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  3201. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  3202. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3203. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  3204. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3205. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3206. );
  3207. }
  3208. Map<String, dynamic> toJson() {
  3209. final map = super.toJson();
  3210. if(token != null)
  3211. map['Token'] = token;
  3212. return map;
  3213. }
  3214. }
  3215. class ModifyDeviceDownloadModeRequest extends TokenRequest{
  3216. String? deviceCode;
  3217. DownloadModeSettingEnum downloadModeSetting;
  3218. ModifyDeviceDownloadModeRequest({
  3219. this.deviceCode,
  3220. this.downloadModeSetting = DownloadModeSettingEnum.Auto,
  3221. String? token,
  3222. }) : super(
  3223. token: token,
  3224. );
  3225. factory ModifyDeviceDownloadModeRequest.fromJson(Map<String, dynamic> map) {
  3226. return ModifyDeviceDownloadModeRequest(
  3227. deviceCode: map['DeviceCode'],
  3228. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  3229. token: map['Token'],
  3230. );
  3231. }
  3232. Map<String, dynamic> toJson() {
  3233. final map = super.toJson();
  3234. if(deviceCode != null)
  3235. map['DeviceCode'] = deviceCode;
  3236. map['DownloadModeSetting'] = downloadModeSetting.index;
  3237. return map;
  3238. }
  3239. }
  3240. class DeviceModelClass {
  3241. String? deviceModelCode;
  3242. String? deviceModelName;
  3243. DeviceModelClass({
  3244. this.deviceModelCode,
  3245. this.deviceModelName,
  3246. });
  3247. factory DeviceModelClass.fromJson(Map<String, dynamic> map) {
  3248. return DeviceModelClass(
  3249. deviceModelCode: map['DeviceModelCode'],
  3250. deviceModelName: map['DeviceModelName'],
  3251. );
  3252. }
  3253. Map<String, dynamic> toJson() {
  3254. final map = Map<String, dynamic>();
  3255. if(deviceModelCode != null)
  3256. map['DeviceModelCode'] = deviceModelCode;
  3257. if(deviceModelName != null)
  3258. map['DeviceModelName'] = deviceModelName;
  3259. return map;
  3260. }
  3261. }
  3262. class ModifyDeviceTypeRequest extends TokenRequest{
  3263. String? deviceTypeCode;
  3264. List<DictionaryLanguageConfigDTO >? languageConfigs;
  3265. List<DeviceModelClass >? deviceModelList;
  3266. ModifyDeviceTypeRequest({
  3267. this.deviceTypeCode,
  3268. this.languageConfigs,
  3269. this.deviceModelList,
  3270. String? token,
  3271. }) : super(
  3272. token: token,
  3273. );
  3274. factory ModifyDeviceTypeRequest.fromJson(Map<String, dynamic> map) {
  3275. return ModifyDeviceTypeRequest(
  3276. deviceTypeCode: map['DeviceTypeCode'],
  3277. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>DictionaryLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3278. deviceModelList: map['DeviceModelList'] != null ? (map['DeviceModelList'] as List).map((e)=>DeviceModelClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  3279. token: map['Token'],
  3280. );
  3281. }
  3282. Map<String, dynamic> toJson() {
  3283. final map = super.toJson();
  3284. if(deviceTypeCode != null)
  3285. map['DeviceTypeCode'] = deviceTypeCode;
  3286. if(languageConfigs != null)
  3287. map['LanguageConfigs'] = languageConfigs;
  3288. if(deviceModelList != null)
  3289. map['DeviceModelList'] = deviceModelList;
  3290. return map;
  3291. }
  3292. }
  3293. class ModifyDiagnosisModuleEnableStateRequest extends TokenRequest{
  3294. List<String >? diagnosisModules;
  3295. bool enabled;
  3296. ModifyDiagnosisModuleEnableStateRequest({
  3297. this.diagnosisModules,
  3298. this.enabled = false,
  3299. String? token,
  3300. }) : super(
  3301. token: token,
  3302. );
  3303. factory ModifyDiagnosisModuleEnableStateRequest.fromJson(Map<String, dynamic> map) {
  3304. return ModifyDiagnosisModuleEnableStateRequest(
  3305. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  3306. enabled: map['Enabled'],
  3307. token: map['Token'],
  3308. );
  3309. }
  3310. Map<String, dynamic> toJson() {
  3311. final map = super.toJson();
  3312. if(diagnosisModules != null)
  3313. map['DiagnosisModules'] = diagnosisModules;
  3314. map['Enabled'] = enabled;
  3315. return map;
  3316. }
  3317. }
  3318. class ModifyDiagnosisModulesRequest extends TokenRequest{
  3319. List<String >? diagnosisModules;
  3320. ModifyDiagnosisModulesRequest({
  3321. this.diagnosisModules,
  3322. String? token,
  3323. }) : super(
  3324. token: token,
  3325. );
  3326. factory ModifyDiagnosisModulesRequest.fromJson(Map<String, dynamic> map) {
  3327. return ModifyDiagnosisModulesRequest(
  3328. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  3329. token: map['Token'],
  3330. );
  3331. }
  3332. Map<String, dynamic> toJson() {
  3333. final map = super.toJson();
  3334. if(diagnosisModules != null)
  3335. map['DiagnosisModules'] = diagnosisModules;
  3336. return map;
  3337. }
  3338. }
  3339. class ModifyOrganizationCustomSettingRequest extends TokenRequest{
  3340. String? langugeKey;
  3341. String? settingModule;
  3342. String? settingJson;
  3343. String? organizationCode;
  3344. ModifyOrganizationCustomSettingRequest({
  3345. this.langugeKey,
  3346. this.settingModule,
  3347. this.settingJson,
  3348. this.organizationCode,
  3349. String? token,
  3350. }) : super(
  3351. token: token,
  3352. );
  3353. factory ModifyOrganizationCustomSettingRequest.fromJson(Map<String, dynamic> map) {
  3354. return ModifyOrganizationCustomSettingRequest(
  3355. langugeKey: map['LangugeKey'],
  3356. settingModule: map['SettingModule'],
  3357. settingJson: map['SettingJson'],
  3358. organizationCode: map['OrganizationCode'],
  3359. token: map['Token'],
  3360. );
  3361. }
  3362. Map<String, dynamic> toJson() {
  3363. final map = super.toJson();
  3364. if(langugeKey != null)
  3365. map['LangugeKey'] = langugeKey;
  3366. if(settingModule != null)
  3367. map['SettingModule'] = settingModule;
  3368. if(settingJson != null)
  3369. map['SettingJson'] = settingJson;
  3370. if(organizationCode != null)
  3371. map['OrganizationCode'] = organizationCode;
  3372. return map;
  3373. }
  3374. }
  3375. class ModifyOrganizationDiagnosisModulesRequest extends TokenRequest{
  3376. String? organizationCode;
  3377. List<String >? diagnosisModules;
  3378. ModifyOrganizationDiagnosisModulesRequest({
  3379. this.organizationCode,
  3380. this.diagnosisModules,
  3381. String? token,
  3382. }) : super(
  3383. token: token,
  3384. );
  3385. factory ModifyOrganizationDiagnosisModulesRequest.fromJson(Map<String, dynamic> map) {
  3386. return ModifyOrganizationDiagnosisModulesRequest(
  3387. organizationCode: map['OrganizationCode'],
  3388. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  3389. token: map['Token'],
  3390. );
  3391. }
  3392. Map<String, dynamic> toJson() {
  3393. final map = super.toJson();
  3394. if(organizationCode != null)
  3395. map['OrganizationCode'] = organizationCode;
  3396. if(diagnosisModules != null)
  3397. map['DiagnosisModules'] = diagnosisModules;
  3398. return map;
  3399. }
  3400. }
  3401. class ModifyOrganizationDirectorsRequest extends TokenRequest{
  3402. String? organizationCode;
  3403. List<String >? directors;
  3404. ModifyOrganizationDirectorsRequest({
  3405. this.organizationCode,
  3406. this.directors,
  3407. String? token,
  3408. }) : super(
  3409. token: token,
  3410. );
  3411. factory ModifyOrganizationDirectorsRequest.fromJson(Map<String, dynamic> map) {
  3412. return ModifyOrganizationDirectorsRequest(
  3413. organizationCode: map['OrganizationCode'],
  3414. directors: map['Directors'] != null ? map['Directors'].cast<String>().toList() : null,
  3415. token: map['Token'],
  3416. );
  3417. }
  3418. Map<String, dynamic> toJson() {
  3419. final map = super.toJson();
  3420. if(organizationCode != null)
  3421. map['OrganizationCode'] = organizationCode;
  3422. if(directors != null)
  3423. map['Directors'] = directors;
  3424. return map;
  3425. }
  3426. }
  3427. class ModifyOrganizationRequest extends OrganizationDTO{
  3428. String? token;
  3429. ModifyOrganizationRequest({
  3430. this.token,
  3431. String? description,
  3432. String? rootCode,
  3433. OrganizationTypeEnum organizationType = OrganizationTypeEnum.Corporation,
  3434. List<String >? authorityGroups,
  3435. String? nautica,
  3436. OrganizationStateEnum state = OrganizationStateEnum.WaitAudit,
  3437. List<String >? directors,
  3438. List<String >? assignedAdmins,
  3439. String? patientSettingJson,
  3440. String? examSettingJson,
  3441. String? consultationSettingJson,
  3442. String? patientSettingVersion,
  3443. String? examSettingVersion,
  3444. String? consultationSettingVersion,
  3445. String? parentOrganizationName,
  3446. String? regionCode,
  3447. String? parentCode,
  3448. String? logoUrl,
  3449. OrganizationPatientTypeEnum patientType = OrganizationPatientTypeEnum.Person,
  3450. bool isinvented = false,
  3451. List<SettingDTOClass >? settings,
  3452. List<String >? diagnosisModules,
  3453. bool isEncryptedShow = false,
  3454. double referralLimitHours = 0,
  3455. List<String >? referralOrganizationCodes,
  3456. List<ReferralOrganizationDTO >? referralOrganizations,
  3457. String? organizationCode,
  3458. String? organizationName,
  3459. DateTime? createTime,
  3460. DateTime? updateTime,
  3461. }) : super(
  3462. description: description,
  3463. rootCode: rootCode,
  3464. organizationType: organizationType,
  3465. authorityGroups: authorityGroups,
  3466. nautica: nautica,
  3467. state: state,
  3468. directors: directors,
  3469. assignedAdmins: assignedAdmins,
  3470. patientSettingJson: patientSettingJson,
  3471. examSettingJson: examSettingJson,
  3472. consultationSettingJson: consultationSettingJson,
  3473. patientSettingVersion: patientSettingVersion,
  3474. examSettingVersion: examSettingVersion,
  3475. consultationSettingVersion: consultationSettingVersion,
  3476. parentOrganizationName: parentOrganizationName,
  3477. regionCode: regionCode,
  3478. parentCode: parentCode,
  3479. logoUrl: logoUrl,
  3480. patientType: patientType,
  3481. isinvented: isinvented,
  3482. settings: settings,
  3483. diagnosisModules: diagnosisModules,
  3484. isEncryptedShow: isEncryptedShow,
  3485. referralLimitHours: referralLimitHours,
  3486. referralOrganizationCodes: referralOrganizationCodes,
  3487. referralOrganizations: referralOrganizations,
  3488. organizationCode: organizationCode,
  3489. organizationName: organizationName,
  3490. createTime: createTime,
  3491. updateTime: updateTime,
  3492. );
  3493. factory ModifyOrganizationRequest.fromJson(Map<String, dynamic> map) {
  3494. return ModifyOrganizationRequest(
  3495. token: map['Token'],
  3496. description: map['Description'],
  3497. rootCode: map['RootCode'],
  3498. organizationType: OrganizationTypeEnum.values.firstWhere((e) => e.index == map['OrganizationType']),
  3499. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  3500. nautica: map['Nautica'],
  3501. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  3502. directors: map['Directors'] != null ? map['Directors'].cast<String>().toList() : null,
  3503. assignedAdmins: map['AssignedAdmins'] != null ? map['AssignedAdmins'].cast<String>().toList() : null,
  3504. patientSettingJson: map['PatientSettingJson'],
  3505. examSettingJson: map['ExamSettingJson'],
  3506. consultationSettingJson: map['ConsultationSettingJson'],
  3507. patientSettingVersion: map['PatientSettingVersion'],
  3508. examSettingVersion: map['ExamSettingVersion'],
  3509. consultationSettingVersion: map['ConsultationSettingVersion'],
  3510. parentOrganizationName: map['ParentOrganizationName'],
  3511. regionCode: map['RegionCode'],
  3512. parentCode: map['ParentCode'],
  3513. logoUrl: map['LogoUrl'],
  3514. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  3515. isinvented: map['Isinvented'],
  3516. settings: map['Settings'] != null ? (map['Settings'] as List).map((e)=>SettingDTOClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  3517. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  3518. isEncryptedShow: map['IsEncryptedShow'],
  3519. referralLimitHours: double.parse(map['ReferralLimitHours'].toString()),
  3520. referralOrganizationCodes: map['ReferralOrganizationCodes'] != null ? map['ReferralOrganizationCodes'].cast<String>().toList() : null,
  3521. referralOrganizations: map['ReferralOrganizations'] != null ? (map['ReferralOrganizations'] as List).map((e)=>ReferralOrganizationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3522. organizationCode: map['OrganizationCode'],
  3523. organizationName: map['OrganizationName'],
  3524. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3525. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3526. );
  3527. }
  3528. Map<String, dynamic> toJson() {
  3529. final map = super.toJson();
  3530. if(token != null)
  3531. map['Token'] = token;
  3532. return map;
  3533. }
  3534. }
  3535. class ModifyOrganizationSettingRequest extends TokenRequest{
  3536. OrganizationSettingTypeEnum settingType;
  3537. String? settingJson;
  3538. String? organizationCode;
  3539. String? cMSTemplateCode;
  3540. ModifyOrganizationSettingRequest({
  3541. this.settingType = OrganizationSettingTypeEnum.Patient,
  3542. this.settingJson,
  3543. this.organizationCode,
  3544. this.cMSTemplateCode,
  3545. String? token,
  3546. }) : super(
  3547. token: token,
  3548. );
  3549. factory ModifyOrganizationSettingRequest.fromJson(Map<String, dynamic> map) {
  3550. return ModifyOrganizationSettingRequest(
  3551. settingType: OrganizationSettingTypeEnum.values.firstWhere((e) => e.index == map['SettingType']),
  3552. settingJson: map['SettingJson'],
  3553. organizationCode: map['OrganizationCode'],
  3554. cMSTemplateCode: map['CMSTemplateCode'],
  3555. token: map['Token'],
  3556. );
  3557. }
  3558. Map<String, dynamic> toJson() {
  3559. final map = super.toJson();
  3560. map['SettingType'] = settingType.index;
  3561. if(settingJson != null)
  3562. map['SettingJson'] = settingJson;
  3563. if(organizationCode != null)
  3564. map['OrganizationCode'] = organizationCode;
  3565. if(cMSTemplateCode != null)
  3566. map['CMSTemplateCode'] = cMSTemplateCode;
  3567. return map;
  3568. }
  3569. }
  3570. class ConsultationBaseInfoItem {
  3571. String? name;
  3572. bool isDefult;
  3573. bool isShow;
  3574. bool required;
  3575. ConsultationBaseInfoItem({
  3576. this.name,
  3577. this.isDefult = false,
  3578. this.isShow = false,
  3579. this.required = false,
  3580. });
  3581. factory ConsultationBaseInfoItem.fromJson(Map<String, dynamic> map) {
  3582. return ConsultationBaseInfoItem(
  3583. name: map['Name'],
  3584. isDefult: map['IsDefult'],
  3585. isShow: map['IsShow'],
  3586. required: map['Required'],
  3587. );
  3588. }
  3589. Map<String, dynamic> toJson() {
  3590. final map = Map<String, dynamic>();
  3591. if(name != null)
  3592. map['Name'] = name;
  3593. map['IsDefult'] = isDefult;
  3594. map['IsShow'] = isShow;
  3595. map['Required'] = required;
  3596. return map;
  3597. }
  3598. }
  3599. class ModifycConsultationBaseInfoSettingRequest extends TokenRequest{
  3600. List<ConsultationBaseInfoItem >? consultationBaseInfoList;
  3601. String? organizationCode;
  3602. ModifycConsultationBaseInfoSettingRequest({
  3603. this.consultationBaseInfoList,
  3604. this.organizationCode,
  3605. String? token,
  3606. }) : super(
  3607. token: token,
  3608. );
  3609. factory ModifycConsultationBaseInfoSettingRequest.fromJson(Map<String, dynamic> map) {
  3610. return ModifycConsultationBaseInfoSettingRequest(
  3611. consultationBaseInfoList: map['ConsultationBaseInfoList'] != null ? (map['ConsultationBaseInfoList'] as List).map((e)=>ConsultationBaseInfoItem.fromJson(e as Map<String,dynamic>)).toList() : null,
  3612. organizationCode: map['OrganizationCode'],
  3613. token: map['Token'],
  3614. );
  3615. }
  3616. Map<String, dynamic> toJson() {
  3617. final map = super.toJson();
  3618. if(consultationBaseInfoList != null)
  3619. map['ConsultationBaseInfoList'] = consultationBaseInfoList;
  3620. if(organizationCode != null)
  3621. map['OrganizationCode'] = organizationCode;
  3622. return map;
  3623. }
  3624. }
  3625. class ModifyOrganizationStateRequest extends TokenRequest{
  3626. String? organizationCode;
  3627. OrganizationStateEnum state;
  3628. ModifyOrganizationStateRequest({
  3629. this.organizationCode,
  3630. this.state = OrganizationStateEnum.WaitAudit,
  3631. String? token,
  3632. }) : super(
  3633. token: token,
  3634. );
  3635. factory ModifyOrganizationStateRequest.fromJson(Map<String, dynamic> map) {
  3636. return ModifyOrganizationStateRequest(
  3637. organizationCode: map['OrganizationCode'],
  3638. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  3639. token: map['Token'],
  3640. );
  3641. }
  3642. Map<String, dynamic> toJson() {
  3643. final map = super.toJson();
  3644. if(organizationCode != null)
  3645. map['OrganizationCode'] = organizationCode;
  3646. map['State'] = state.index;
  3647. return map;
  3648. }
  3649. }
  3650. class ModifyReferralRecordSettingRequest extends TokenRequest{
  3651. double limitHours;
  3652. ModifyReferralRecordSettingRequest({
  3653. this.limitHours = 0,
  3654. String? token,
  3655. }) : super(
  3656. token: token,
  3657. );
  3658. factory ModifyReferralRecordSettingRequest.fromJson(Map<String, dynamic> map) {
  3659. return ModifyReferralRecordSettingRequest(
  3660. limitHours: double.parse(map['LimitHours'].toString()),
  3661. token: map['Token'],
  3662. );
  3663. }
  3664. Map<String, dynamic> toJson() {
  3665. final map = super.toJson();
  3666. map['LimitHours'] = limitHours;
  3667. return map;
  3668. }
  3669. }
  3670. class ModifyReportPosterDevicesRequest extends TokenRequest{
  3671. String? reportPosterCode;
  3672. List<String >? deviceIds;
  3673. ModifyReportPosterDevicesRequest({
  3674. this.reportPosterCode,
  3675. this.deviceIds,
  3676. String? token,
  3677. }) : super(
  3678. token: token,
  3679. );
  3680. factory ModifyReportPosterDevicesRequest.fromJson(Map<String, dynamic> map) {
  3681. return ModifyReportPosterDevicesRequest(
  3682. reportPosterCode: map['ReportPosterCode'],
  3683. deviceIds: map['DeviceIds'] != null ? map['DeviceIds'].cast<String>().toList() : null,
  3684. token: map['Token'],
  3685. );
  3686. }
  3687. Map<String, dynamic> toJson() {
  3688. final map = super.toJson();
  3689. if(reportPosterCode != null)
  3690. map['ReportPosterCode'] = reportPosterCode;
  3691. if(deviceIds != null)
  3692. map['DeviceIds'] = deviceIds;
  3693. return map;
  3694. }
  3695. }
  3696. class ModifyRoleInfoRequest extends RoleDTO{
  3697. String? token;
  3698. List<String >? featuresCodeList;
  3699. ModifyRoleInfoRequest({
  3700. this.token,
  3701. this.featuresCodeList,
  3702. RoleShowTypeEnum roleShowType = RoleShowTypeEnum.NotShow,
  3703. String? iConUrl,
  3704. String? colorStart,
  3705. String? colorEnd,
  3706. RoleQualificationEnum roleQualification = RoleQualificationEnum.NoNeed,
  3707. String? userGroupCode,
  3708. RoleShowTypeEnum fieldShowType = RoleShowTypeEnum.NotShow,
  3709. List<String >? fieldList,
  3710. String? roleCode,
  3711. String? roleName,
  3712. String? description,
  3713. List<UserRoleLanguageConfigDTO >? languageConfigs,
  3714. DateTime? createTime,
  3715. DateTime? updateTime,
  3716. }) : super(
  3717. roleShowType: roleShowType,
  3718. iConUrl: iConUrl,
  3719. colorStart: colorStart,
  3720. colorEnd: colorEnd,
  3721. roleQualification: roleQualification,
  3722. userGroupCode: userGroupCode,
  3723. fieldShowType: fieldShowType,
  3724. fieldList: fieldList,
  3725. roleCode: roleCode,
  3726. roleName: roleName,
  3727. description: description,
  3728. languageConfigs: languageConfigs,
  3729. createTime: createTime,
  3730. updateTime: updateTime,
  3731. );
  3732. factory ModifyRoleInfoRequest.fromJson(Map<String, dynamic> map) {
  3733. return ModifyRoleInfoRequest(
  3734. token: map['Token'],
  3735. featuresCodeList: map['FeaturesCodeList'] != null ? map['FeaturesCodeList'].cast<String>().toList() : null,
  3736. roleShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['RoleShowType']),
  3737. iConUrl: map['IConUrl'],
  3738. colorStart: map['ColorStart'],
  3739. colorEnd: map['ColorEnd'],
  3740. roleQualification: RoleQualificationEnum.values.firstWhere((e) => e.index == map['RoleQualification']),
  3741. userGroupCode: map['UserGroupCode'],
  3742. fieldShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['FieldShowType']),
  3743. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  3744. roleCode: map['RoleCode'],
  3745. roleName: map['RoleName'],
  3746. description: map['Description'],
  3747. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  3748. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3749. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3750. );
  3751. }
  3752. Map<String, dynamic> toJson() {
  3753. final map = super.toJson();
  3754. if(token != null)
  3755. map['Token'] = token;
  3756. if(featuresCodeList != null)
  3757. map['FeaturesCodeList'] = featuresCodeList;
  3758. return map;
  3759. }
  3760. }
  3761. class ThirdPartyInfoDTO extends BaseDTO{
  3762. String? code;
  3763. String? name;
  3764. String? contactPersonName;
  3765. String? contactPhone;
  3766. List<String >? allowedInterfaces;
  3767. bool isValid;
  3768. String? token;
  3769. ThirdPartyInfoDTO({
  3770. this.code,
  3771. this.name,
  3772. this.contactPersonName,
  3773. this.contactPhone,
  3774. this.allowedInterfaces,
  3775. this.isValid = false,
  3776. this.token,
  3777. DateTime? createTime,
  3778. DateTime? updateTime,
  3779. }) : super(
  3780. createTime: createTime,
  3781. updateTime: updateTime,
  3782. );
  3783. factory ThirdPartyInfoDTO.fromJson(Map<String, dynamic> map) {
  3784. return ThirdPartyInfoDTO(
  3785. code: map['Code'],
  3786. name: map['Name'],
  3787. contactPersonName: map['ContactPersonName'],
  3788. contactPhone: map['ContactPhone'],
  3789. allowedInterfaces: map['AllowedInterfaces'] != null ? map['AllowedInterfaces'].cast<String>().toList() : null,
  3790. isValid: map['IsValid'],
  3791. token: map['Token'],
  3792. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3793. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3794. );
  3795. }
  3796. Map<String, dynamic> toJson() {
  3797. final map = super.toJson();
  3798. if(code != null)
  3799. map['Code'] = code;
  3800. if(name != null)
  3801. map['Name'] = name;
  3802. if(contactPersonName != null)
  3803. map['ContactPersonName'] = contactPersonName;
  3804. if(contactPhone != null)
  3805. map['ContactPhone'] = contactPhone;
  3806. if(allowedInterfaces != null)
  3807. map['AllowedInterfaces'] = allowedInterfaces;
  3808. map['IsValid'] = isValid;
  3809. if(token != null)
  3810. map['Token'] = token;
  3811. return map;
  3812. }
  3813. }
  3814. class ModifyThirdPartyInfoRequest extends ThirdPartyInfoDTO{
  3815. ModifyThirdPartyInfoRequest({
  3816. String? token,
  3817. String? code,
  3818. String? name,
  3819. String? contactPersonName,
  3820. String? contactPhone,
  3821. List<String >? allowedInterfaces,
  3822. bool isValid = false,
  3823. DateTime? createTime,
  3824. DateTime? updateTime,
  3825. }) : super(
  3826. code: code,
  3827. name: name,
  3828. contactPersonName: contactPersonName,
  3829. contactPhone: contactPhone,
  3830. allowedInterfaces: allowedInterfaces,
  3831. isValid: isValid,
  3832. token: token,
  3833. createTime: createTime,
  3834. updateTime: updateTime,
  3835. );
  3836. factory ModifyThirdPartyInfoRequest.fromJson(Map<String, dynamic> map) {
  3837. return ModifyThirdPartyInfoRequest(
  3838. token: map['Token'],
  3839. code: map['Code'],
  3840. name: map['Name'],
  3841. contactPersonName: map['ContactPersonName'],
  3842. contactPhone: map['ContactPhone'],
  3843. allowedInterfaces: map['AllowedInterfaces'] != null ? map['AllowedInterfaces'].cast<String>().toList() : null,
  3844. isValid: map['IsValid'],
  3845. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3846. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3847. );
  3848. }
  3849. Map<String, dynamic> toJson() {
  3850. final map = super.toJson();
  3851. return map;
  3852. }
  3853. }
  3854. class UserFeatureInfoDTO extends BaseFeatureInfoDTO{
  3855. UserFeatureInfoDTO({
  3856. String? featureCode,
  3857. String? featureName,
  3858. String? fatherCode,
  3859. String? uniqueCode,
  3860. DateTime? createTime,
  3861. DateTime? updateTime,
  3862. }) : super(
  3863. featureCode: featureCode,
  3864. featureName: featureName,
  3865. fatherCode: fatherCode,
  3866. uniqueCode: uniqueCode,
  3867. createTime: createTime,
  3868. updateTime: updateTime,
  3869. );
  3870. factory UserFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  3871. return UserFeatureInfoDTO(
  3872. featureCode: map['FeatureCode'],
  3873. featureName: map['FeatureName'],
  3874. fatherCode: map['FatherCode'],
  3875. uniqueCode: map['UniqueCode'],
  3876. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3877. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3878. );
  3879. }
  3880. Map<String, dynamic> toJson() {
  3881. final map = super.toJson();
  3882. return map;
  3883. }
  3884. }
  3885. class ModifyUserFeatureRequest extends UserFeatureInfoDTO{
  3886. String? token;
  3887. ModifyUserFeatureRequest({
  3888. this.token,
  3889. String? featureCode,
  3890. String? featureName,
  3891. String? fatherCode,
  3892. String? uniqueCode,
  3893. DateTime? createTime,
  3894. DateTime? updateTime,
  3895. }) : super(
  3896. featureCode: featureCode,
  3897. featureName: featureName,
  3898. fatherCode: fatherCode,
  3899. uniqueCode: uniqueCode,
  3900. createTime: createTime,
  3901. updateTime: updateTime,
  3902. );
  3903. factory ModifyUserFeatureRequest.fromJson(Map<String, dynamic> map) {
  3904. return ModifyUserFeatureRequest(
  3905. token: map['Token'],
  3906. featureCode: map['FeatureCode'],
  3907. featureName: map['FeatureName'],
  3908. fatherCode: map['FatherCode'],
  3909. uniqueCode: map['UniqueCode'],
  3910. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  3911. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  3912. );
  3913. }
  3914. Map<String, dynamic> toJson() {
  3915. final map = super.toJson();
  3916. if(token != null)
  3917. map['Token'] = token;
  3918. return map;
  3919. }
  3920. }
  3921. enum ManagementUserInfoStateEnum {
  3922. Nonactivated,
  3923. Activated,
  3924. Locked,
  3925. }
  3926. class ManageUserInfoDTO extends UserDTO{
  3927. String? roleName;
  3928. String? departmentName;
  3929. String? hospitalName;
  3930. String? identityApplyCode;
  3931. List<String >? identityCard;
  3932. List<String >? licenseCard;
  3933. String? identityApplyRoleCode;
  3934. String? identityApplyRoleName;
  3935. ManagementUserInfoStateEnum managementUserState;
  3936. ManageUserInfoDTO({
  3937. this.roleName,
  3938. this.departmentName,
  3939. this.hospitalName,
  3940. this.identityApplyCode,
  3941. this.identityCard,
  3942. this.licenseCard,
  3943. this.identityApplyRoleCode,
  3944. this.identityApplyRoleName,
  3945. bool isBatchExportDiagnoseData = false,
  3946. List<String >? fieldList,
  3947. this.managementUserState = ManagementUserInfoStateEnum.Nonactivated,
  3948. String? phone,
  3949. String? email,
  3950. String? nickName,
  3951. String? fullName,
  3952. String? organizationCode,
  3953. String? organizationName,
  3954. String? rootOrganizationCode,
  3955. String? rootOrganizationName,
  3956. List<String >? authorityGroups,
  3957. List<String >? bindDevices,
  3958. String? lastIP,
  3959. int logintimes = 0,
  3960. UserInfoStateEnum userState = UserInfoStateEnum.Nonactivated,
  3961. List<String >? roleCodes,
  3962. List<String >? rankCodes,
  3963. List<String >? positionCodes,
  3964. ApplyStateEnum applyState = ApplyStateEnum.NotApply,
  3965. String? rankName,
  3966. String? positionName,
  3967. bool isDirector = false,
  3968. List<String >? deletePatientCodes,
  3969. String? bindAssistantUserCode,
  3970. String? bindAssistantDoctorUserCode,
  3971. LoginLockInfoDTO? loginLockInfo,
  3972. String? signature,
  3973. String? language,
  3974. bool enableReportLabel = false,
  3975. String? userCode,
  3976. String? userName,
  3977. String? headImageUrl,
  3978. DateTime? createTime,
  3979. DateTime? updateTime,
  3980. }) : super(
  3981. phone: phone,
  3982. email: email,
  3983. nickName: nickName,
  3984. fullName: fullName,
  3985. organizationCode: organizationCode,
  3986. organizationName: organizationName,
  3987. rootOrganizationCode: rootOrganizationCode,
  3988. rootOrganizationName: rootOrganizationName,
  3989. authorityGroups: authorityGroups,
  3990. bindDevices: bindDevices,
  3991. lastIP: lastIP,
  3992. logintimes: logintimes,
  3993. userState: userState,
  3994. roleCodes: roleCodes,
  3995. rankCodes: rankCodes,
  3996. positionCodes: positionCodes,
  3997. applyState: applyState,
  3998. rankName: rankName,
  3999. positionName: positionName,
  4000. isDirector: isDirector,
  4001. fieldList: fieldList,
  4002. deletePatientCodes: deletePatientCodes,
  4003. isBatchExportDiagnoseData: isBatchExportDiagnoseData,
  4004. bindAssistantUserCode: bindAssistantUserCode,
  4005. bindAssistantDoctorUserCode: bindAssistantDoctorUserCode,
  4006. loginLockInfo: loginLockInfo,
  4007. signature: signature,
  4008. language: language,
  4009. enableReportLabel: enableReportLabel,
  4010. userCode: userCode,
  4011. userName: userName,
  4012. headImageUrl: headImageUrl,
  4013. createTime: createTime,
  4014. updateTime: updateTime,
  4015. );
  4016. factory ManageUserInfoDTO.fromJson(Map<String, dynamic> map) {
  4017. return ManageUserInfoDTO(
  4018. roleName: map['RoleName'],
  4019. departmentName: map['DepartmentName'],
  4020. hospitalName: map['HospitalName'],
  4021. identityApplyCode: map['IdentityApplyCode'],
  4022. identityCard: map['IdentityCard'] != null ? map['IdentityCard'].cast<String>().toList() : null,
  4023. licenseCard: map['LicenseCard'] != null ? map['LicenseCard'].cast<String>().toList() : null,
  4024. identityApplyRoleCode: map['IdentityApplyRoleCode'],
  4025. identityApplyRoleName: map['IdentityApplyRoleName'],
  4026. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  4027. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  4028. managementUserState: ManagementUserInfoStateEnum.values.firstWhere((e) => e.index == map['ManagementUserState']),
  4029. phone: map['Phone'],
  4030. email: map['Email'],
  4031. nickName: map['NickName'],
  4032. fullName: map['FullName'],
  4033. organizationCode: map['OrganizationCode'],
  4034. organizationName: map['OrganizationName'],
  4035. rootOrganizationCode: map['RootOrganizationCode'],
  4036. rootOrganizationName: map['RootOrganizationName'],
  4037. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  4038. bindDevices: map['BindDevices'] != null ? map['BindDevices'].cast<String>().toList() : null,
  4039. lastIP: map['LastIP'],
  4040. logintimes: map['Logintimes'],
  4041. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  4042. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  4043. rankCodes: map['RankCodes'] != null ? map['RankCodes'].cast<String>().toList() : null,
  4044. positionCodes: map['PositionCodes'] != null ? map['PositionCodes'].cast<String>().toList() : null,
  4045. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  4046. rankName: map['RankName'],
  4047. positionName: map['PositionName'],
  4048. isDirector: map['IsDirector'],
  4049. deletePatientCodes: map['DeletePatientCodes'] != null ? map['DeletePatientCodes'].cast<String>().toList() : null,
  4050. bindAssistantUserCode: map['BindAssistantUserCode'],
  4051. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  4052. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  4053. signature: map['Signature'],
  4054. language: map['Language'],
  4055. enableReportLabel: map['EnableReportLabel'],
  4056. userCode: map['UserCode'],
  4057. userName: map['UserName'],
  4058. headImageUrl: map['HeadImageUrl'],
  4059. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4060. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4061. );
  4062. }
  4063. Map<String, dynamic> toJson() {
  4064. final map = super.toJson();
  4065. if(roleName != null)
  4066. map['RoleName'] = roleName;
  4067. if(departmentName != null)
  4068. map['DepartmentName'] = departmentName;
  4069. if(hospitalName != null)
  4070. map['HospitalName'] = hospitalName;
  4071. if(identityApplyCode != null)
  4072. map['IdentityApplyCode'] = identityApplyCode;
  4073. if(identityCard != null)
  4074. map['IdentityCard'] = identityCard;
  4075. if(licenseCard != null)
  4076. map['LicenseCard'] = licenseCard;
  4077. if(identityApplyRoleCode != null)
  4078. map['IdentityApplyRoleCode'] = identityApplyRoleCode;
  4079. if(identityApplyRoleName != null)
  4080. map['IdentityApplyRoleName'] = identityApplyRoleName;
  4081. map['ManagementUserState'] = managementUserState.index;
  4082. return map;
  4083. }
  4084. }
  4085. class ModifyUserRequest extends ManageUserInfoDTO{
  4086. String? token;
  4087. ModifyUserRequest({
  4088. this.token,
  4089. String? roleName,
  4090. String? departmentName,
  4091. String? hospitalName,
  4092. String? identityApplyCode,
  4093. List<String >? identityCard,
  4094. List<String >? licenseCard,
  4095. String? identityApplyRoleCode,
  4096. String? identityApplyRoleName,
  4097. bool isBatchExportDiagnoseData = false,
  4098. List<String >? fieldList,
  4099. ManagementUserInfoStateEnum managementUserState = ManagementUserInfoStateEnum.Nonactivated,
  4100. String? phone,
  4101. String? email,
  4102. String? nickName,
  4103. String? fullName,
  4104. String? organizationCode,
  4105. String? organizationName,
  4106. String? rootOrganizationCode,
  4107. String? rootOrganizationName,
  4108. List<String >? authorityGroups,
  4109. List<String >? bindDevices,
  4110. String? lastIP,
  4111. int logintimes = 0,
  4112. UserInfoStateEnum userState = UserInfoStateEnum.Nonactivated,
  4113. List<String >? roleCodes,
  4114. List<String >? rankCodes,
  4115. List<String >? positionCodes,
  4116. ApplyStateEnum applyState = ApplyStateEnum.NotApply,
  4117. String? rankName,
  4118. String? positionName,
  4119. bool isDirector = false,
  4120. List<String >? deletePatientCodes,
  4121. String? bindAssistantUserCode,
  4122. String? bindAssistantDoctorUserCode,
  4123. LoginLockInfoDTO? loginLockInfo,
  4124. String? signature,
  4125. String? language,
  4126. bool enableReportLabel = false,
  4127. String? userCode,
  4128. String? userName,
  4129. String? headImageUrl,
  4130. DateTime? createTime,
  4131. DateTime? updateTime,
  4132. }) : super(
  4133. roleName: roleName,
  4134. departmentName: departmentName,
  4135. hospitalName: hospitalName,
  4136. identityApplyCode: identityApplyCode,
  4137. identityCard: identityCard,
  4138. licenseCard: licenseCard,
  4139. identityApplyRoleCode: identityApplyRoleCode,
  4140. identityApplyRoleName: identityApplyRoleName,
  4141. isBatchExportDiagnoseData: isBatchExportDiagnoseData,
  4142. fieldList: fieldList,
  4143. managementUserState: managementUserState,
  4144. phone: phone,
  4145. email: email,
  4146. nickName: nickName,
  4147. fullName: fullName,
  4148. organizationCode: organizationCode,
  4149. organizationName: organizationName,
  4150. rootOrganizationCode: rootOrganizationCode,
  4151. rootOrganizationName: rootOrganizationName,
  4152. authorityGroups: authorityGroups,
  4153. bindDevices: bindDevices,
  4154. lastIP: lastIP,
  4155. logintimes: logintimes,
  4156. userState: userState,
  4157. roleCodes: roleCodes,
  4158. rankCodes: rankCodes,
  4159. positionCodes: positionCodes,
  4160. applyState: applyState,
  4161. rankName: rankName,
  4162. positionName: positionName,
  4163. isDirector: isDirector,
  4164. deletePatientCodes: deletePatientCodes,
  4165. bindAssistantUserCode: bindAssistantUserCode,
  4166. bindAssistantDoctorUserCode: bindAssistantDoctorUserCode,
  4167. loginLockInfo: loginLockInfo,
  4168. signature: signature,
  4169. language: language,
  4170. enableReportLabel: enableReportLabel,
  4171. userCode: userCode,
  4172. userName: userName,
  4173. headImageUrl: headImageUrl,
  4174. createTime: createTime,
  4175. updateTime: updateTime,
  4176. );
  4177. factory ModifyUserRequest.fromJson(Map<String, dynamic> map) {
  4178. return ModifyUserRequest(
  4179. token: map['Token'],
  4180. roleName: map['RoleName'],
  4181. departmentName: map['DepartmentName'],
  4182. hospitalName: map['HospitalName'],
  4183. identityApplyCode: map['IdentityApplyCode'],
  4184. identityCard: map['IdentityCard'] != null ? map['IdentityCard'].cast<String>().toList() : null,
  4185. licenseCard: map['LicenseCard'] != null ? map['LicenseCard'].cast<String>().toList() : null,
  4186. identityApplyRoleCode: map['IdentityApplyRoleCode'],
  4187. identityApplyRoleName: map['IdentityApplyRoleName'],
  4188. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  4189. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  4190. managementUserState: ManagementUserInfoStateEnum.values.firstWhere((e) => e.index == map['ManagementUserState']),
  4191. phone: map['Phone'],
  4192. email: map['Email'],
  4193. nickName: map['NickName'],
  4194. fullName: map['FullName'],
  4195. organizationCode: map['OrganizationCode'],
  4196. organizationName: map['OrganizationName'],
  4197. rootOrganizationCode: map['RootOrganizationCode'],
  4198. rootOrganizationName: map['RootOrganizationName'],
  4199. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  4200. bindDevices: map['BindDevices'] != null ? map['BindDevices'].cast<String>().toList() : null,
  4201. lastIP: map['LastIP'],
  4202. logintimes: map['Logintimes'],
  4203. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  4204. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  4205. rankCodes: map['RankCodes'] != null ? map['RankCodes'].cast<String>().toList() : null,
  4206. positionCodes: map['PositionCodes'] != null ? map['PositionCodes'].cast<String>().toList() : null,
  4207. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  4208. rankName: map['RankName'],
  4209. positionName: map['PositionName'],
  4210. isDirector: map['IsDirector'],
  4211. deletePatientCodes: map['DeletePatientCodes'] != null ? map['DeletePatientCodes'].cast<String>().toList() : null,
  4212. bindAssistantUserCode: map['BindAssistantUserCode'],
  4213. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  4214. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  4215. signature: map['Signature'],
  4216. language: map['Language'],
  4217. enableReportLabel: map['EnableReportLabel'],
  4218. userCode: map['UserCode'],
  4219. userName: map['UserName'],
  4220. headImageUrl: map['HeadImageUrl'],
  4221. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4222. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4223. );
  4224. }
  4225. Map<String, dynamic> toJson() {
  4226. final map = super.toJson();
  4227. if(token != null)
  4228. map['Token'] = token;
  4229. return map;
  4230. }
  4231. }
  4232. class PublishReportTemplateRequest extends TokenRequest{
  4233. String? reportTemplateCode;
  4234. PublishReportTemplateRequest({
  4235. this.reportTemplateCode,
  4236. String? token,
  4237. }) : super(
  4238. token: token,
  4239. );
  4240. factory PublishReportTemplateRequest.fromJson(Map<String, dynamic> map) {
  4241. return PublishReportTemplateRequest(
  4242. reportTemplateCode: map['ReportTemplateCode'],
  4243. token: map['Token'],
  4244. );
  4245. }
  4246. Map<String, dynamic> toJson() {
  4247. final map = super.toJson();
  4248. if(reportTemplateCode != null)
  4249. map['ReportTemplateCode'] = reportTemplateCode;
  4250. return map;
  4251. }
  4252. }
  4253. class PublishThesaurusRequest extends TokenRequest{
  4254. String? thesaurusCode;
  4255. PublishThesaurusRequest({
  4256. this.thesaurusCode,
  4257. String? token,
  4258. }) : super(
  4259. token: token,
  4260. );
  4261. factory PublishThesaurusRequest.fromJson(Map<String, dynamic> map) {
  4262. return PublishThesaurusRequest(
  4263. thesaurusCode: map['ThesaurusCode'],
  4264. token: map['Token'],
  4265. );
  4266. }
  4267. Map<String, dynamic> toJson() {
  4268. final map = super.toJson();
  4269. if(thesaurusCode != null)
  4270. map['ThesaurusCode'] = thesaurusCode;
  4271. return map;
  4272. }
  4273. }
  4274. class QueryAnnouncementPageRequest extends PageRequest{
  4275. AnnouncementTypeEnum announcementType;
  4276. AnnouncementStatusEnum announcementStatus;
  4277. String? keyword;
  4278. DateTime? startTime;
  4279. DateTime? endTime;
  4280. QueryAnnouncementPageRequest({
  4281. this.announcementType = AnnouncementTypeEnum.Broadcast,
  4282. this.announcementStatus = AnnouncementStatusEnum.Released,
  4283. this.keyword,
  4284. this.startTime,
  4285. this.endTime,
  4286. int pageIndex = 0,
  4287. int pageSize = 0,
  4288. String? token,
  4289. }) : super(
  4290. pageIndex: pageIndex,
  4291. pageSize: pageSize,
  4292. token: token,
  4293. );
  4294. factory QueryAnnouncementPageRequest.fromJson(Map<String, dynamic> map) {
  4295. return QueryAnnouncementPageRequest(
  4296. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  4297. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  4298. keyword: map['Keyword'],
  4299. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  4300. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  4301. pageIndex: map['PageIndex'],
  4302. pageSize: map['PageSize'],
  4303. token: map['Token'],
  4304. );
  4305. }
  4306. Map<String, dynamic> toJson() {
  4307. final map = super.toJson();
  4308. map['AnnouncementType'] = announcementType.index;
  4309. map['AnnouncementStatus'] = announcementStatus.index;
  4310. if(keyword != null)
  4311. map['Keyword'] = keyword;
  4312. if(startTime != null)
  4313. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  4314. if(endTime != null)
  4315. map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
  4316. return map;
  4317. }
  4318. }
  4319. class QueryDeviceModelBindNumRequest extends TokenRequest{
  4320. String? deviceModelCode;
  4321. QueryDeviceModelBindNumRequest({
  4322. this.deviceModelCode,
  4323. String? token,
  4324. }) : super(
  4325. token: token,
  4326. );
  4327. factory QueryDeviceModelBindNumRequest.fromJson(Map<String, dynamic> map) {
  4328. return QueryDeviceModelBindNumRequest(
  4329. deviceModelCode: map['DeviceModelCode'],
  4330. token: map['Token'],
  4331. );
  4332. }
  4333. Map<String, dynamic> toJson() {
  4334. final map = super.toJson();
  4335. if(deviceModelCode != null)
  4336. map['DeviceModelCode'] = deviceModelCode;
  4337. return map;
  4338. }
  4339. }
  4340. class QueryRoleAdminNumRequest extends TokenRequest{
  4341. String? adminRoleCode;
  4342. QueryRoleAdminNumRequest({
  4343. this.adminRoleCode,
  4344. String? token,
  4345. }) : super(
  4346. token: token,
  4347. );
  4348. factory QueryRoleAdminNumRequest.fromJson(Map<String, dynamic> map) {
  4349. return QueryRoleAdminNumRequest(
  4350. adminRoleCode: map['AdminRoleCode'],
  4351. token: map['Token'],
  4352. );
  4353. }
  4354. Map<String, dynamic> toJson() {
  4355. final map = super.toJson();
  4356. if(adminRoleCode != null)
  4357. map['AdminRoleCode'] = adminRoleCode;
  4358. return map;
  4359. }
  4360. }
  4361. class QueryRoleUserNumRequest extends TokenRequest{
  4362. String? roleCode;
  4363. QueryRoleUserNumRequest({
  4364. this.roleCode,
  4365. String? token,
  4366. }) : super(
  4367. token: token,
  4368. );
  4369. factory QueryRoleUserNumRequest.fromJson(Map<String, dynamic> map) {
  4370. return QueryRoleUserNumRequest(
  4371. roleCode: map['RoleCode'],
  4372. token: map['Token'],
  4373. );
  4374. }
  4375. Map<String, dynamic> toJson() {
  4376. final map = super.toJson();
  4377. if(roleCode != null)
  4378. map['RoleCode'] = roleCode;
  4379. return map;
  4380. }
  4381. }
  4382. class RejectIdentityApplyRequest extends TokenRequest{
  4383. String? identityApplyCode;
  4384. String? rejectReason;
  4385. RejectIdentityApplyRequest({
  4386. this.identityApplyCode,
  4387. this.rejectReason,
  4388. String? token,
  4389. }) : super(
  4390. token: token,
  4391. );
  4392. factory RejectIdentityApplyRequest.fromJson(Map<String, dynamic> map) {
  4393. return RejectIdentityApplyRequest(
  4394. identityApplyCode: map['IdentityApplyCode'],
  4395. rejectReason: map['RejectReason'],
  4396. token: map['Token'],
  4397. );
  4398. }
  4399. Map<String, dynamic> toJson() {
  4400. final map = super.toJson();
  4401. if(identityApplyCode != null)
  4402. map['IdentityApplyCode'] = identityApplyCode;
  4403. if(rejectReason != null)
  4404. map['RejectReason'] = rejectReason;
  4405. return map;
  4406. }
  4407. }
  4408. class RemoveAdminRequest extends TokenRequest{
  4409. String? adminCode;
  4410. RemoveAdminRequest({
  4411. this.adminCode,
  4412. String? token,
  4413. }) : super(
  4414. token: token,
  4415. );
  4416. factory RemoveAdminRequest.fromJson(Map<String, dynamic> map) {
  4417. return RemoveAdminRequest(
  4418. adminCode: map['AdminCode'],
  4419. token: map['Token'],
  4420. );
  4421. }
  4422. Map<String, dynamic> toJson() {
  4423. final map = super.toJson();
  4424. if(adminCode != null)
  4425. map['AdminCode'] = adminCode;
  4426. return map;
  4427. }
  4428. }
  4429. class RemoveOrganizationRequest extends TokenRequest{
  4430. String? organizationCode;
  4431. RemoveOrganizationRequest({
  4432. this.organizationCode,
  4433. String? token,
  4434. }) : super(
  4435. token: token,
  4436. );
  4437. factory RemoveOrganizationRequest.fromJson(Map<String, dynamic> map) {
  4438. return RemoveOrganizationRequest(
  4439. organizationCode: map['OrganizationCode'],
  4440. token: map['Token'],
  4441. );
  4442. }
  4443. Map<String, dynamic> toJson() {
  4444. final map = super.toJson();
  4445. if(organizationCode != null)
  4446. map['OrganizationCode'] = organizationCode;
  4447. return map;
  4448. }
  4449. }
  4450. class RemoveReportLabelRequest extends TokenRequest{
  4451. String? reportLabelCode;
  4452. RemoveReportLabelRequest({
  4453. this.reportLabelCode,
  4454. String? token,
  4455. }) : super(
  4456. token: token,
  4457. );
  4458. factory RemoveReportLabelRequest.fromJson(Map<String, dynamic> map) {
  4459. return RemoveReportLabelRequest(
  4460. reportLabelCode: map['ReportLabelCode'],
  4461. token: map['Token'],
  4462. );
  4463. }
  4464. Map<String, dynamic> toJson() {
  4465. final map = super.toJson();
  4466. if(reportLabelCode != null)
  4467. map['ReportLabelCode'] = reportLabelCode;
  4468. return map;
  4469. }
  4470. }
  4471. class RemoveReportPosterRequest extends TokenRequest{
  4472. String? reportPosterCode;
  4473. RemoveReportPosterRequest({
  4474. this.reportPosterCode,
  4475. String? token,
  4476. }) : super(
  4477. token: token,
  4478. );
  4479. factory RemoveReportPosterRequest.fromJson(Map<String, dynamic> map) {
  4480. return RemoveReportPosterRequest(
  4481. reportPosterCode: map['ReportPosterCode'],
  4482. token: map['Token'],
  4483. );
  4484. }
  4485. Map<String, dynamic> toJson() {
  4486. final map = super.toJson();
  4487. if(reportPosterCode != null)
  4488. map['ReportPosterCode'] = reportPosterCode;
  4489. return map;
  4490. }
  4491. }
  4492. class RemoveUserRequest extends TokenRequest{
  4493. String? userCode;
  4494. RemoveUserRequest({
  4495. this.userCode,
  4496. String? token,
  4497. }) : super(
  4498. token: token,
  4499. );
  4500. factory RemoveUserRequest.fromJson(Map<String, dynamic> map) {
  4501. return RemoveUserRequest(
  4502. userCode: map['UserCode'],
  4503. token: map['Token'],
  4504. );
  4505. }
  4506. Map<String, dynamic> toJson() {
  4507. final map = super.toJson();
  4508. if(userCode != null)
  4509. map['UserCode'] = userCode;
  4510. return map;
  4511. }
  4512. }
  4513. class UnlockAccountRequest extends TokenRequest{
  4514. String? userCode;
  4515. UnlockAccountRequest({
  4516. this.userCode,
  4517. String? token,
  4518. }) : super(
  4519. token: token,
  4520. );
  4521. factory UnlockAccountRequest.fromJson(Map<String, dynamic> map) {
  4522. return UnlockAccountRequest(
  4523. userCode: map['UserCode'],
  4524. token: map['Token'],
  4525. );
  4526. }
  4527. Map<String, dynamic> toJson() {
  4528. final map = super.toJson();
  4529. if(userCode != null)
  4530. map['UserCode'] = userCode;
  4531. return map;
  4532. }
  4533. }
  4534. class ResetUserPasswordRequest extends TokenRequest{
  4535. String? userCode;
  4536. String? passWord;
  4537. ResetUserPasswordRequest({
  4538. this.userCode,
  4539. this.passWord,
  4540. String? token,
  4541. }) : super(
  4542. token: token,
  4543. );
  4544. factory ResetUserPasswordRequest.fromJson(Map<String, dynamic> map) {
  4545. return ResetUserPasswordRequest(
  4546. userCode: map['UserCode'],
  4547. passWord: map['PassWord'],
  4548. token: map['Token'],
  4549. );
  4550. }
  4551. Map<String, dynamic> toJson() {
  4552. final map = super.toJson();
  4553. if(userCode != null)
  4554. map['UserCode'] = userCode;
  4555. if(passWord != null)
  4556. map['PassWord'] = passWord;
  4557. return map;
  4558. }
  4559. }
  4560. class RetryPushReportRecordsRequest extends TokenRequest{
  4561. List<String >? codes;
  4562. RetryPushReportRecordsRequest({
  4563. this.codes,
  4564. String? token,
  4565. }) : super(
  4566. token: token,
  4567. );
  4568. factory RetryPushReportRecordsRequest.fromJson(Map<String, dynamic> map) {
  4569. return RetryPushReportRecordsRequest(
  4570. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  4571. token: map['Token'],
  4572. );
  4573. }
  4574. Map<String, dynamic> toJson() {
  4575. final map = super.toJson();
  4576. if(codes != null)
  4577. map['Codes'] = codes;
  4578. return map;
  4579. }
  4580. }
  4581. class SaveCMSTemplateDetailRequest extends TokenRequest{
  4582. String? cMSTemplateCode;
  4583. String? cMSTemplateName;
  4584. CMSTemplateStatusTypeEnum cMSTemplateStateType;
  4585. String? cMSTemplateJson;
  4586. bool isDefault;
  4587. SaveCMSTemplateDetailRequest({
  4588. this.cMSTemplateCode,
  4589. this.cMSTemplateName,
  4590. this.cMSTemplateStateType = CMSTemplateStatusTypeEnum.UnPublished,
  4591. this.cMSTemplateJson,
  4592. this.isDefault = false,
  4593. String? token,
  4594. }) : super(
  4595. token: token,
  4596. );
  4597. factory SaveCMSTemplateDetailRequest.fromJson(Map<String, dynamic> map) {
  4598. return SaveCMSTemplateDetailRequest(
  4599. cMSTemplateCode: map['CMSTemplateCode'],
  4600. cMSTemplateName: map['CMSTemplateName'],
  4601. cMSTemplateStateType: CMSTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['CMSTemplateStateType']),
  4602. cMSTemplateJson: map['CMSTemplateJson'],
  4603. isDefault: map['IsDefault'],
  4604. token: map['Token'],
  4605. );
  4606. }
  4607. Map<String, dynamic> toJson() {
  4608. final map = super.toJson();
  4609. if(cMSTemplateCode != null)
  4610. map['CMSTemplateCode'] = cMSTemplateCode;
  4611. if(cMSTemplateName != null)
  4612. map['CMSTemplateName'] = cMSTemplateName;
  4613. map['CMSTemplateStateType'] = cMSTemplateStateType.index;
  4614. if(cMSTemplateJson != null)
  4615. map['CMSTemplateJson'] = cMSTemplateJson;
  4616. map['IsDefault'] = isDefault;
  4617. return map;
  4618. }
  4619. }
  4620. class SaveReportLabelRequest extends TokenRequest{
  4621. String? reportLabelCode;
  4622. String? labelName;
  4623. String? languageCode;
  4624. ReportLabelUsageTypeEnum usageType;
  4625. List<String >? labelItems;
  4626. SaveReportLabelRequest({
  4627. this.reportLabelCode,
  4628. this.labelName,
  4629. this.languageCode,
  4630. this.usageType = ReportLabelUsageTypeEnum.People,
  4631. this.labelItems,
  4632. String? token,
  4633. }) : super(
  4634. token: token,
  4635. );
  4636. factory SaveReportLabelRequest.fromJson(Map<String, dynamic> map) {
  4637. return SaveReportLabelRequest(
  4638. reportLabelCode: map['ReportLabelCode'],
  4639. labelName: map['LabelName'],
  4640. languageCode: map['LanguageCode'],
  4641. usageType: ReportLabelUsageTypeEnum.values.firstWhere((e) => e.index == map['UsageType']),
  4642. labelItems: map['LabelItems'] != null ? map['LabelItems'].cast<String>().toList() : null,
  4643. token: map['Token'],
  4644. );
  4645. }
  4646. Map<String, dynamic> toJson() {
  4647. final map = super.toJson();
  4648. if(reportLabelCode != null)
  4649. map['ReportLabelCode'] = reportLabelCode;
  4650. if(labelName != null)
  4651. map['LabelName'] = labelName;
  4652. if(languageCode != null)
  4653. map['LanguageCode'] = languageCode;
  4654. map['UsageType'] = usageType.index;
  4655. if(labelItems != null)
  4656. map['LabelItems'] = labelItems;
  4657. return map;
  4658. }
  4659. }
  4660. enum ReportPosterTypeEnum {
  4661. Default,
  4662. BJAid,
  4663. }
  4664. enum ReportFormatEnum {
  4665. Json,
  4666. Xml,
  4667. }
  4668. class SaveReportPosterRequest extends TokenRequest{
  4669. String? reportPosterCode;
  4670. String? receiverName;
  4671. String? contact;
  4672. String? phone;
  4673. String? targetUrl;
  4674. String? template;
  4675. ReportPosterTypeEnum posterType;
  4676. ReportFormatEnum reportFormat;
  4677. int postTimeout;
  4678. SaveReportPosterRequest({
  4679. this.reportPosterCode,
  4680. this.receiverName,
  4681. this.contact,
  4682. this.phone,
  4683. this.targetUrl,
  4684. this.template,
  4685. this.posterType = ReportPosterTypeEnum.Default,
  4686. this.reportFormat = ReportFormatEnum.Json,
  4687. this.postTimeout = 0,
  4688. String? token,
  4689. }) : super(
  4690. token: token,
  4691. );
  4692. factory SaveReportPosterRequest.fromJson(Map<String, dynamic> map) {
  4693. return SaveReportPosterRequest(
  4694. reportPosterCode: map['ReportPosterCode'],
  4695. receiverName: map['ReceiverName'],
  4696. contact: map['Contact'],
  4697. phone: map['Phone'],
  4698. targetUrl: map['TargetUrl'],
  4699. template: map['Template'],
  4700. posterType: ReportPosterTypeEnum.values.firstWhere((e) => e.index == map['PosterType']),
  4701. reportFormat: ReportFormatEnum.values.firstWhere((e) => e.index == map['ReportFormat']),
  4702. postTimeout: map['PostTimeout'],
  4703. token: map['Token'],
  4704. );
  4705. }
  4706. Map<String, dynamic> toJson() {
  4707. final map = super.toJson();
  4708. if(reportPosterCode != null)
  4709. map['ReportPosterCode'] = reportPosterCode;
  4710. if(receiverName != null)
  4711. map['ReceiverName'] = receiverName;
  4712. if(contact != null)
  4713. map['Contact'] = contact;
  4714. if(phone != null)
  4715. map['Phone'] = phone;
  4716. if(targetUrl != null)
  4717. map['TargetUrl'] = targetUrl;
  4718. if(template != null)
  4719. map['Template'] = template;
  4720. map['PosterType'] = posterType.index;
  4721. map['ReportFormat'] = reportFormat.index;
  4722. map['PostTimeout'] = postTimeout;
  4723. return map;
  4724. }
  4725. }
  4726. class SaveThesaurusRequest extends ThesaurusDTO{
  4727. String? token;
  4728. SaveThesaurusRequest({
  4729. this.token,
  4730. String? thesaurusCode,
  4731. String? thesaurusName,
  4732. ThesaurusStatusTypeEnum thesaurusStateType = ThesaurusStatusTypeEnum.Unpublished,
  4733. ThesaurusTypeEnum thesaurusType = ThesaurusTypeEnum.Default,
  4734. ThesaurusUsageTypeEnum thesaurusUsageType = ThesaurusUsageTypeEnum.People,
  4735. String? organizationCode,
  4736. String? personalCode,
  4737. String? referenceThesaurusCode,
  4738. bool isDefault = false,
  4739. bool isUserDefault = false,
  4740. }) : super(
  4741. thesaurusCode: thesaurusCode,
  4742. thesaurusName: thesaurusName,
  4743. thesaurusStateType: thesaurusStateType,
  4744. thesaurusType: thesaurusType,
  4745. thesaurusUsageType: thesaurusUsageType,
  4746. organizationCode: organizationCode,
  4747. personalCode: personalCode,
  4748. referenceThesaurusCode: referenceThesaurusCode,
  4749. isDefault: isDefault,
  4750. isUserDefault: isUserDefault,
  4751. );
  4752. factory SaveThesaurusRequest.fromJson(Map<String, dynamic> map) {
  4753. return SaveThesaurusRequest(
  4754. token: map['Token'],
  4755. thesaurusCode: map['ThesaurusCode'],
  4756. thesaurusName: map['ThesaurusName'],
  4757. thesaurusStateType: ThesaurusStatusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusStateType']),
  4758. thesaurusType: ThesaurusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusType']),
  4759. thesaurusUsageType: ThesaurusUsageTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusUsageType']),
  4760. organizationCode: map['OrganizationCode'],
  4761. personalCode: map['PersonalCode'],
  4762. referenceThesaurusCode: map['ReferenceThesaurusCode'],
  4763. isDefault: map['IsDefault'],
  4764. isUserDefault: map['IsUserDefault'],
  4765. );
  4766. }
  4767. Map<String, dynamic> toJson() {
  4768. final map = super.toJson();
  4769. if(token != null)
  4770. map['Token'] = token;
  4771. return map;
  4772. }
  4773. }
  4774. class SettingReloadRequest extends TokenRequest{
  4775. String? settingKey;
  4776. SettingReloadRequest({
  4777. this.settingKey,
  4778. String? token,
  4779. }) : super(
  4780. token: token,
  4781. );
  4782. factory SettingReloadRequest.fromJson(Map<String, dynamic> map) {
  4783. return SettingReloadRequest(
  4784. settingKey: map['SettingKey'],
  4785. token: map['Token'],
  4786. );
  4787. }
  4788. Map<String, dynamic> toJson() {
  4789. final map = super.toJson();
  4790. if(settingKey != null)
  4791. map['SettingKey'] = settingKey;
  4792. return map;
  4793. }
  4794. }
  4795. class ShareDeviceRequest extends TokenRequest{
  4796. List<String >? userCodeList;
  4797. List<String >? deviceCodes;
  4798. ShareDeviceRequest({
  4799. this.userCodeList,
  4800. this.deviceCodes,
  4801. String? token,
  4802. }) : super(
  4803. token: token,
  4804. );
  4805. factory ShareDeviceRequest.fromJson(Map<String, dynamic> map) {
  4806. return ShareDeviceRequest(
  4807. userCodeList: map['UserCodeList'] != null ? map['UserCodeList'].cast<String>().toList() : null,
  4808. deviceCodes: map['DeviceCodes'] != null ? map['DeviceCodes'].cast<String>().toList() : null,
  4809. token: map['Token'],
  4810. );
  4811. }
  4812. Map<String, dynamic> toJson() {
  4813. final map = super.toJson();
  4814. if(userCodeList != null)
  4815. map['UserCodeList'] = userCodeList;
  4816. if(deviceCodes != null)
  4817. map['DeviceCodes'] = deviceCodes;
  4818. return map;
  4819. }
  4820. }
  4821. class ThesaurusItemRequest extends TokenRequest{
  4822. String? thesaurusItemCode;
  4823. ThesaurusItemTypeEnum thesaurusItemType;
  4824. String? thesaurusItemName;
  4825. String? parentItemCode;
  4826. String? thesaurusCode;
  4827. String? thesaurusItemDescription;
  4828. String? thesaurusItemConclusion;
  4829. ThesaurusItemRequest({
  4830. this.thesaurusItemCode,
  4831. this.thesaurusItemType = ThesaurusItemTypeEnum.Classification,
  4832. this.thesaurusItemName,
  4833. this.parentItemCode,
  4834. this.thesaurusCode,
  4835. this.thesaurusItemDescription,
  4836. this.thesaurusItemConclusion,
  4837. String? token,
  4838. }) : super(
  4839. token: token,
  4840. );
  4841. factory ThesaurusItemRequest.fromJson(Map<String, dynamic> map) {
  4842. return ThesaurusItemRequest(
  4843. thesaurusItemCode: map['ThesaurusItemCode'],
  4844. thesaurusItemType: ThesaurusItemTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusItemType']),
  4845. thesaurusItemName: map['ThesaurusItemName'],
  4846. parentItemCode: map['ParentItemCode'],
  4847. thesaurusCode: map['ThesaurusCode'],
  4848. thesaurusItemDescription: map['ThesaurusItemDescription'],
  4849. thesaurusItemConclusion: map['ThesaurusItemConclusion'],
  4850. token: map['Token'],
  4851. );
  4852. }
  4853. Map<String, dynamic> toJson() {
  4854. final map = super.toJson();
  4855. if(thesaurusItemCode != null)
  4856. map['ThesaurusItemCode'] = thesaurusItemCode;
  4857. map['ThesaurusItemType'] = thesaurusItemType.index;
  4858. if(thesaurusItemName != null)
  4859. map['ThesaurusItemName'] = thesaurusItemName;
  4860. if(parentItemCode != null)
  4861. map['ParentItemCode'] = parentItemCode;
  4862. if(thesaurusCode != null)
  4863. map['ThesaurusCode'] = thesaurusCode;
  4864. if(thesaurusItemDescription != null)
  4865. map['ThesaurusItemDescription'] = thesaurusItemDescription;
  4866. if(thesaurusItemConclusion != null)
  4867. map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
  4868. return map;
  4869. }
  4870. }
  4871. enum GradingConfigTypeEnum {
  4872. Switch,
  4873. Text,
  4874. }
  4875. class UpdateGradingProtectionConfigEnableRequest extends TokenRequest{
  4876. List<String >? codes;
  4877. GradingConfigTypeEnum configType;
  4878. String? value;
  4879. UpdateGradingProtectionConfigEnableRequest({
  4880. this.codes,
  4881. this.configType = GradingConfigTypeEnum.Switch,
  4882. this.value,
  4883. String? token,
  4884. }) : super(
  4885. token: token,
  4886. );
  4887. factory UpdateGradingProtectionConfigEnableRequest.fromJson(Map<String, dynamic> map) {
  4888. return UpdateGradingProtectionConfigEnableRequest(
  4889. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  4890. configType: GradingConfigTypeEnum.values.firstWhere((e) => e.index == map['ConfigType']),
  4891. value: map['Value'],
  4892. token: map['Token'],
  4893. );
  4894. }
  4895. Map<String, dynamic> toJson() {
  4896. final map = super.toJson();
  4897. if(codes != null)
  4898. map['Codes'] = codes;
  4899. map['ConfigType'] = configType.index;
  4900. if(value != null)
  4901. map['Value'] = value;
  4902. return map;
  4903. }
  4904. }
  4905. class GetOpLogsByCodesFormMasterRequest {
  4906. List<String >? codes;
  4907. GetOpLogsByCodesFormMasterRequest({
  4908. this.codes,
  4909. });
  4910. factory GetOpLogsByCodesFormMasterRequest.fromJson(Map<String, dynamic> map) {
  4911. return GetOpLogsByCodesFormMasterRequest(
  4912. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  4913. );
  4914. }
  4915. Map<String, dynamic> toJson() {
  4916. final map = Map<String, dynamic>();
  4917. if(codes != null)
  4918. map['Codes'] = codes;
  4919. return map;
  4920. }
  4921. }
  4922. class GetOpLogsFormMasterRequest {
  4923. int cursor;
  4924. String? sourceUrl;
  4925. GetOpLogsFormMasterRequest({
  4926. this.cursor = 0,
  4927. this.sourceUrl,
  4928. });
  4929. factory GetOpLogsFormMasterRequest.fromJson(Map<String, dynamic> map) {
  4930. return GetOpLogsFormMasterRequest(
  4931. cursor: map['Cursor'],
  4932. sourceUrl: map['SourceUrl'],
  4933. );
  4934. }
  4935. Map<String, dynamic> toJson() {
  4936. final map = Map<String, dynamic>();
  4937. map['Cursor'] = cursor;
  4938. if(sourceUrl != null)
  4939. map['SourceUrl'] = sourceUrl;
  4940. return map;
  4941. }
  4942. }
  4943. enum MongoDBActionTypeEnum {
  4944. InsertOne,
  4945. InsertOneAsync,
  4946. InsertMany,
  4947. InsertManyAsync,
  4948. DeleteOne,
  4949. DeleteOneAsync,
  4950. DeleteMany,
  4951. DeleteManyAsync,
  4952. FindOneAndDelete,
  4953. FindOneAndDeleteAsync,
  4954. ReplaceOne,
  4955. ReplaceOneAsync,
  4956. FindOneAndReplace,
  4957. FindOneAndReplaceAsync,
  4958. UpdateOne,
  4959. UpdateOneAsync,
  4960. UpdateMany,
  4961. UpdateManyAsync,
  4962. FindOneAndUpdate,
  4963. FindOneAndUpdateAsync,
  4964. }
  4965. class OperationLogDTO {
  4966. int id;
  4967. String? collectionName;
  4968. MongoDBActionTypeEnum actionType;
  4969. String? bsonContent;
  4970. String? filterContent;
  4971. DateTime? createTime;
  4972. String? code;
  4973. String? sourceUrl;
  4974. bool isSimple;
  4975. OperationLogDTO({
  4976. this.id = 0,
  4977. this.collectionName,
  4978. this.actionType = MongoDBActionTypeEnum.InsertOne,
  4979. this.bsonContent,
  4980. this.filterContent,
  4981. this.createTime,
  4982. this.code,
  4983. this.sourceUrl,
  4984. this.isSimple = false,
  4985. });
  4986. factory OperationLogDTO.fromJson(Map<String, dynamic> map) {
  4987. return OperationLogDTO(
  4988. id: map['Id'],
  4989. collectionName: map['CollectionName'],
  4990. actionType: MongoDBActionTypeEnum.values.firstWhere((e) => e.index == map['ActionType']),
  4991. bsonContent: map['BsonContent'],
  4992. filterContent: map['FilterContent'],
  4993. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4994. code: map['Code'],
  4995. sourceUrl: map['SourceUrl'],
  4996. isSimple: map['IsSimple'],
  4997. );
  4998. }
  4999. Map<String, dynamic> toJson() {
  5000. final map = Map<String, dynamic>();
  5001. map['Id'] = id;
  5002. if(collectionName != null)
  5003. map['CollectionName'] = collectionName;
  5004. map['ActionType'] = actionType.index;
  5005. if(bsonContent != null)
  5006. map['BsonContent'] = bsonContent;
  5007. if(filterContent != null)
  5008. map['FilterContent'] = filterContent;
  5009. if(createTime != null)
  5010. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  5011. if(code != null)
  5012. map['Code'] = code;
  5013. if(sourceUrl != null)
  5014. map['SourceUrl'] = sourceUrl;
  5015. map['IsSimple'] = isSimple;
  5016. return map;
  5017. }
  5018. }
  5019. class SyncCompleteOpLogsRequest {
  5020. List<OperationLogDTO >? oplogs;
  5021. SyncCompleteOpLogsRequest({
  5022. this.oplogs,
  5023. });
  5024. factory SyncCompleteOpLogsRequest.fromJson(Map<String, dynamic> map) {
  5025. return SyncCompleteOpLogsRequest(
  5026. oplogs: map['Oplogs'] != null ? (map['Oplogs'] as List).map((e)=>OperationLogDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  5027. );
  5028. }
  5029. Map<String, dynamic> toJson() {
  5030. final map = Map<String, dynamic>();
  5031. if(oplogs != null)
  5032. map['Oplogs'] = oplogs;
  5033. return map;
  5034. }
  5035. }
  5036. class SyncOpLogToMasterRequest {
  5037. String? collectionName;
  5038. MongoDBActionTypeEnum actionType;
  5039. String? bsonContent;
  5040. String? filterContent;
  5041. DateTime? createTime;
  5042. String? sourceUrl;
  5043. String? code;
  5044. String? serverID;
  5045. bool isSimple;
  5046. SyncOpLogToMasterRequest({
  5047. this.collectionName,
  5048. this.actionType = MongoDBActionTypeEnum.InsertOne,
  5049. this.bsonContent,
  5050. this.filterContent,
  5051. this.createTime,
  5052. this.sourceUrl,
  5053. this.code,
  5054. this.serverID,
  5055. this.isSimple = false,
  5056. });
  5057. factory SyncOpLogToMasterRequest.fromJson(Map<String, dynamic> map) {
  5058. return SyncOpLogToMasterRequest(
  5059. collectionName: map['CollectionName'],
  5060. actionType: MongoDBActionTypeEnum.values.firstWhere((e) => e.index == map['ActionType']),
  5061. bsonContent: map['BsonContent'],
  5062. filterContent: map['FilterContent'],
  5063. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5064. sourceUrl: map['SourceUrl'],
  5065. code: map['Code'],
  5066. serverID: map['ServerID'],
  5067. isSimple: map['IsSimple'],
  5068. );
  5069. }
  5070. Map<String, dynamic> toJson() {
  5071. final map = Map<String, dynamic>();
  5072. if(collectionName != null)
  5073. map['CollectionName'] = collectionName;
  5074. map['ActionType'] = actionType.index;
  5075. if(bsonContent != null)
  5076. map['BsonContent'] = bsonContent;
  5077. if(filterContent != null)
  5078. map['FilterContent'] = filterContent;
  5079. if(createTime != null)
  5080. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  5081. if(sourceUrl != null)
  5082. map['SourceUrl'] = sourceUrl;
  5083. if(code != null)
  5084. map['Code'] = code;
  5085. if(serverID != null)
  5086. map['ServerID'] = serverID;
  5087. map['IsSimple'] = isSimple;
  5088. return map;
  5089. }
  5090. }
  5091. class NotificationClientInfo {
  5092. String? clientId;
  5093. String? loginServerUrl;
  5094. NotificationClientInfo({
  5095. this.clientId,
  5096. this.loginServerUrl,
  5097. });
  5098. factory NotificationClientInfo.fromJson(Map<String, dynamic> map) {
  5099. return NotificationClientInfo(
  5100. clientId: map['ClientId'],
  5101. loginServerUrl: map['LoginServerUrl'],
  5102. );
  5103. }
  5104. Map<String, dynamic> toJson() {
  5105. final map = Map<String, dynamic>();
  5106. if(clientId != null)
  5107. map['ClientId'] = clientId;
  5108. if(loginServerUrl != null)
  5109. map['LoginServerUrl'] = loginServerUrl;
  5110. return map;
  5111. }
  5112. }
  5113. enum ConsultationMemeberAcceptStatus {
  5114. Default,
  5115. Accepted,
  5116. Rejected,
  5117. }
  5118. enum LiveConsultationRoomStatus {
  5119. Default,
  5120. Initiating,
  5121. Cancelled,
  5122. ConnectionTimeout,
  5123. Connected,
  5124. Closed,
  5125. }
  5126. enum VideoProtocol {
  5127. Rtmp,
  5128. Rtc,
  5129. }
  5130. class LiveConsultationRoomDTO {
  5131. String? consultationCode;
  5132. LiveConsultationMember? initiator;
  5133. List<LiveConsultationMember >? members;
  5134. List<LiveConsultationMember >? devices;
  5135. LiveConsultationRoomStatus status;
  5136. int roomNo;
  5137. LiveConsultationRoomDTO({
  5138. this.consultationCode,
  5139. this.initiator,
  5140. this.members,
  5141. this.devices,
  5142. this.status = LiveConsultationRoomStatus.Default,
  5143. this.roomNo = 0,
  5144. });
  5145. factory LiveConsultationRoomDTO.fromJson(Map<String, dynamic> map) {
  5146. return LiveConsultationRoomDTO(
  5147. consultationCode: map['ConsultationCode'],
  5148. initiator: map['Initiator'] != null ? LiveConsultationMember.fromJson(map['Initiator']) : null,
  5149. members: map['Members'] != null ? (map['Members'] as List).map((e)=>LiveConsultationMember.fromJson(e as Map<String,dynamic>)).toList() : null,
  5150. devices: map['Devices'] != null ? (map['Devices'] as List).map((e)=>LiveConsultationMember.fromJson(e as Map<String,dynamic>)).toList() : null,
  5151. status: LiveConsultationRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  5152. roomNo: map['RoomNo'],
  5153. );
  5154. }
  5155. Map<String, dynamic> toJson() {
  5156. final map = Map<String, dynamic>();
  5157. if(consultationCode != null)
  5158. map['ConsultationCode'] = consultationCode;
  5159. if(initiator != null)
  5160. map['Initiator'] = initiator;
  5161. if(members != null)
  5162. map['Members'] = members;
  5163. if(devices != null)
  5164. map['Devices'] = devices;
  5165. map['Status'] = status.index;
  5166. map['RoomNo'] = roomNo;
  5167. return map;
  5168. }
  5169. }
  5170. class FindConsultationSettingRequest extends TokenRequest{
  5171. String? version;
  5172. FindConsultationSettingRequest({
  5173. this.version,
  5174. String? token,
  5175. }) : super(
  5176. token: token,
  5177. );
  5178. factory FindConsultationSettingRequest.fromJson(Map<String, dynamic> map) {
  5179. return FindConsultationSettingRequest(
  5180. version: map['Version'],
  5181. token: map['Token'],
  5182. );
  5183. }
  5184. Map<String, dynamic> toJson() {
  5185. final map = super.toJson();
  5186. if(version != null)
  5187. map['Version'] = version;
  5188. return map;
  5189. }
  5190. }
  5191. class FindOrganizationBindExpertsRequest extends TokenRequest{
  5192. FindOrganizationBindExpertsRequest({
  5193. String? token,
  5194. }) : super(
  5195. token: token,
  5196. );
  5197. factory FindOrganizationBindExpertsRequest.fromJson(Map<String, dynamic> map) {
  5198. return FindOrganizationBindExpertsRequest(
  5199. token: map['Token'],
  5200. );
  5201. }
  5202. Map<String, dynamic> toJson() {
  5203. final map = super.toJson();
  5204. return map;
  5205. }
  5206. }
  5207. enum AgeUnitsEnum {
  5208. Year,
  5209. YearAndMonth,
  5210. MonthAndWeek,
  5211. WeekAndDay,
  5212. }
  5213. enum AnnounceTypeEnum {
  5214. Broadcast,
  5215. Maintain,
  5216. }
  5217. enum MessageCategoryEnum {
  5218. Consultation,
  5219. Diagnosis,
  5220. Course,
  5221. }
  5222. enum BusinessModuleEnum {
  5223. placeHolder_0,
  5224. RemoteDiagnosis,
  5225. LivingConsultation,
  5226. }
  5227. enum QueryCMSTemplateStatusTypeEnum {
  5228. UnPublished,
  5229. Published,
  5230. }
  5231. enum CMSMessageStatusEnum {
  5232. UnRead,
  5233. Read,
  5234. }
  5235. enum StatisticsPlatformEnum {
  5236. Management,
  5237. CMS,
  5238. }
  5239. enum StatisticsBannerTypeEnum {
  5240. PlatActivity,
  5241. Devices,
  5242. Download,
  5243. }
  5244. enum QueryStatisticsBannerTypeEnum {
  5245. PlatActivity,
  5246. Devices,
  5247. Download,
  5248. }
  5249. enum LogEventLevel {
  5250. Verbose,
  5251. Debug,
  5252. Information,
  5253. Warning,
  5254. Error,
  5255. Fatal,
  5256. }
  5257. enum DiagnosisLabelEnum {
  5258. BIRads1,
  5259. Lipomyoma,
  5260. BIRads2,
  5261. BIRads3,
  5262. BIRads4A,
  5263. BIRads4B,
  5264. BIRads4C,
  5265. BIRads5,
  5266. IntrahepaticHyperechoic,
  5267. HHE,
  5268. CYST,
  5269. PossibleCancer,
  5270. FattyLiver,
  5271. DiffuseLesions,
  5272. Cirrhosis,
  5273. PCLD,
  5274. }
  5275. enum DiagnosisLiverLabelEnum {
  5276. BIRads1,
  5277. Hyperechoic,
  5278. HHE,
  5279. CYST,
  5280. PossibleCancer,
  5281. FattyLiver,
  5282. DiffuseLesions,
  5283. Cirrhosis,
  5284. PCLD,
  5285. }
  5286. enum FollowUpVisitStatusEnum {
  5287. Unknown,
  5288. PendingVisit,
  5289. VisitCompleted,
  5290. }
  5291. enum GestationalAgeOriginEnum {
  5292. GestationalAge,
  5293. IVF,
  5294. OospermForm,
  5295. BBT,
  5296. LMP,
  5297. }
  5298. enum GetUserListTypeEnum {
  5299. FullName,
  5300. Phone,
  5301. }
  5302. enum HeartbeatTypeEnum {
  5303. ClientToken,
  5304. TerminalToken,
  5305. ThirdpartyToken,
  5306. LiveState,
  5307. RTCState,
  5308. }
  5309. enum LiveProtocolEnum {
  5310. placeHolder_0,
  5311. RTMP,
  5312. RTC,
  5313. }
  5314. enum LoginProcessorTypeEnum {
  5315. Official,
  5316. Wechat,
  5317. Phone,
  5318. Email,
  5319. placeHolder_4,
  5320. placeHolder_5,
  5321. placeHolder_6,
  5322. placeHolder_7,
  5323. placeHolder_8,
  5324. placeHolder_9,
  5325. placeHolder_10,
  5326. placeHolder_11,
  5327. placeHolder_12,
  5328. placeHolder_13,
  5329. placeHolder_14,
  5330. placeHolder_15,
  5331. placeHolder_16,
  5332. placeHolder_17,
  5333. placeHolder_18,
  5334. placeHolder_19,
  5335. placeHolder_20,
  5336. placeHolder_21,
  5337. placeHolder_22,
  5338. placeHolder_23,
  5339. placeHolder_24,
  5340. placeHolder_25,
  5341. placeHolder_26,
  5342. placeHolder_27,
  5343. placeHolder_28,
  5344. placeHolder_29,
  5345. placeHolder_30,
  5346. placeHolder_31,
  5347. placeHolder_32,
  5348. placeHolder_33,
  5349. placeHolder_34,
  5350. placeHolder_35,
  5351. placeHolder_36,
  5352. placeHolder_37,
  5353. placeHolder_38,
  5354. placeHolder_39,
  5355. placeHolder_40,
  5356. placeHolder_41,
  5357. placeHolder_42,
  5358. placeHolder_43,
  5359. placeHolder_44,
  5360. placeHolder_45,
  5361. placeHolder_46,
  5362. placeHolder_47,
  5363. placeHolder_48,
  5364. placeHolder_49,
  5365. placeHolder_50,
  5366. placeHolder_51,
  5367. placeHolder_52,
  5368. placeHolder_53,
  5369. placeHolder_54,
  5370. placeHolder_55,
  5371. placeHolder_56,
  5372. placeHolder_57,
  5373. placeHolder_58,
  5374. placeHolder_59,
  5375. placeHolder_60,
  5376. placeHolder_61,
  5377. placeHolder_62,
  5378. placeHolder_63,
  5379. placeHolder_64,
  5380. placeHolder_65,
  5381. placeHolder_66,
  5382. placeHolder_67,
  5383. placeHolder_68,
  5384. placeHolder_69,
  5385. placeHolder_70,
  5386. placeHolder_71,
  5387. placeHolder_72,
  5388. placeHolder_73,
  5389. placeHolder_74,
  5390. placeHolder_75,
  5391. placeHolder_76,
  5392. placeHolder_77,
  5393. placeHolder_78,
  5394. placeHolder_79,
  5395. placeHolder_80,
  5396. placeHolder_81,
  5397. placeHolder_82,
  5398. placeHolder_83,
  5399. placeHolder_84,
  5400. placeHolder_85,
  5401. placeHolder_86,
  5402. placeHolder_87,
  5403. placeHolder_88,
  5404. placeHolder_89,
  5405. placeHolder_90,
  5406. placeHolder_91,
  5407. placeHolder_92,
  5408. placeHolder_93,
  5409. placeHolder_94,
  5410. placeHolder_95,
  5411. placeHolder_96,
  5412. placeHolder_97,
  5413. placeHolder_98,
  5414. placeHolder_99,
  5415. placeHolder_100,
  5416. placeHolder_101,
  5417. placeHolder_102,
  5418. placeHolder_103,
  5419. placeHolder_104,
  5420. placeHolder_105,
  5421. placeHolder_106,
  5422. placeHolder_107,
  5423. placeHolder_108,
  5424. placeHolder_109,
  5425. placeHolder_110,
  5426. placeHolder_111,
  5427. placeHolder_112,
  5428. placeHolder_113,
  5429. placeHolder_114,
  5430. placeHolder_115,
  5431. placeHolder_116,
  5432. placeHolder_117,
  5433. placeHolder_118,
  5434. placeHolder_119,
  5435. placeHolder_120,
  5436. placeHolder_121,
  5437. placeHolder_122,
  5438. placeHolder_123,
  5439. placeHolder_124,
  5440. placeHolder_125,
  5441. placeHolder_126,
  5442. placeHolder_127,
  5443. placeHolder_128,
  5444. placeHolder_129,
  5445. placeHolder_130,
  5446. placeHolder_131,
  5447. placeHolder_132,
  5448. placeHolder_133,
  5449. placeHolder_134,
  5450. placeHolder_135,
  5451. placeHolder_136,
  5452. placeHolder_137,
  5453. placeHolder_138,
  5454. placeHolder_139,
  5455. placeHolder_140,
  5456. placeHolder_141,
  5457. placeHolder_142,
  5458. placeHolder_143,
  5459. placeHolder_144,
  5460. placeHolder_145,
  5461. placeHolder_146,
  5462. placeHolder_147,
  5463. placeHolder_148,
  5464. placeHolder_149,
  5465. placeHolder_150,
  5466. placeHolder_151,
  5467. placeHolder_152,
  5468. placeHolder_153,
  5469. placeHolder_154,
  5470. placeHolder_155,
  5471. placeHolder_156,
  5472. placeHolder_157,
  5473. placeHolder_158,
  5474. placeHolder_159,
  5475. placeHolder_160,
  5476. placeHolder_161,
  5477. placeHolder_162,
  5478. placeHolder_163,
  5479. placeHolder_164,
  5480. placeHolder_165,
  5481. placeHolder_166,
  5482. placeHolder_167,
  5483. placeHolder_168,
  5484. placeHolder_169,
  5485. placeHolder_170,
  5486. placeHolder_171,
  5487. placeHolder_172,
  5488. placeHolder_173,
  5489. placeHolder_174,
  5490. placeHolder_175,
  5491. placeHolder_176,
  5492. placeHolder_177,
  5493. placeHolder_178,
  5494. placeHolder_179,
  5495. placeHolder_180,
  5496. placeHolder_181,
  5497. placeHolder_182,
  5498. placeHolder_183,
  5499. placeHolder_184,
  5500. placeHolder_185,
  5501. placeHolder_186,
  5502. placeHolder_187,
  5503. placeHolder_188,
  5504. placeHolder_189,
  5505. placeHolder_190,
  5506. placeHolder_191,
  5507. placeHolder_192,
  5508. placeHolder_193,
  5509. placeHolder_194,
  5510. placeHolder_195,
  5511. placeHolder_196,
  5512. placeHolder_197,
  5513. placeHolder_198,
  5514. placeHolder_199,
  5515. placeHolder_200,
  5516. placeHolder_201,
  5517. placeHolder_202,
  5518. placeHolder_203,
  5519. placeHolder_204,
  5520. placeHolder_205,
  5521. placeHolder_206,
  5522. placeHolder_207,
  5523. placeHolder_208,
  5524. placeHolder_209,
  5525. placeHolder_210,
  5526. placeHolder_211,
  5527. placeHolder_212,
  5528. placeHolder_213,
  5529. placeHolder_214,
  5530. placeHolder_215,
  5531. placeHolder_216,
  5532. placeHolder_217,
  5533. placeHolder_218,
  5534. placeHolder_219,
  5535. placeHolder_220,
  5536. placeHolder_221,
  5537. placeHolder_222,
  5538. placeHolder_223,
  5539. placeHolder_224,
  5540. placeHolder_225,
  5541. placeHolder_226,
  5542. placeHolder_227,
  5543. placeHolder_228,
  5544. placeHolder_229,
  5545. placeHolder_230,
  5546. placeHolder_231,
  5547. placeHolder_232,
  5548. placeHolder_233,
  5549. placeHolder_234,
  5550. placeHolder_235,
  5551. placeHolder_236,
  5552. placeHolder_237,
  5553. placeHolder_238,
  5554. placeHolder_239,
  5555. placeHolder_240,
  5556. placeHolder_241,
  5557. placeHolder_242,
  5558. placeHolder_243,
  5559. placeHolder_244,
  5560. placeHolder_245,
  5561. placeHolder_246,
  5562. placeHolder_247,
  5563. placeHolder_248,
  5564. placeHolder_249,
  5565. placeHolder_250,
  5566. placeHolder_251,
  5567. placeHolder_252,
  5568. placeHolder_253,
  5569. placeHolder_254,
  5570. placeHolder_255,
  5571. placeHolder_256,
  5572. placeHolder_257,
  5573. placeHolder_258,
  5574. placeHolder_259,
  5575. placeHolder_260,
  5576. placeHolder_261,
  5577. placeHolder_262,
  5578. placeHolder_263,
  5579. placeHolder_264,
  5580. placeHolder_265,
  5581. placeHolder_266,
  5582. placeHolder_267,
  5583. placeHolder_268,
  5584. placeHolder_269,
  5585. placeHolder_270,
  5586. placeHolder_271,
  5587. placeHolder_272,
  5588. placeHolder_273,
  5589. placeHolder_274,
  5590. placeHolder_275,
  5591. placeHolder_276,
  5592. placeHolder_277,
  5593. placeHolder_278,
  5594. placeHolder_279,
  5595. placeHolder_280,
  5596. placeHolder_281,
  5597. placeHolder_282,
  5598. placeHolder_283,
  5599. placeHolder_284,
  5600. placeHolder_285,
  5601. placeHolder_286,
  5602. placeHolder_287,
  5603. placeHolder_288,
  5604. placeHolder_289,
  5605. placeHolder_290,
  5606. placeHolder_291,
  5607. placeHolder_292,
  5608. placeHolder_293,
  5609. placeHolder_294,
  5610. placeHolder_295,
  5611. placeHolder_296,
  5612. placeHolder_297,
  5613. placeHolder_298,
  5614. placeHolder_299,
  5615. placeHolder_300,
  5616. placeHolder_301,
  5617. placeHolder_302,
  5618. placeHolder_303,
  5619. placeHolder_304,
  5620. placeHolder_305,
  5621. placeHolder_306,
  5622. placeHolder_307,
  5623. placeHolder_308,
  5624. placeHolder_309,
  5625. placeHolder_310,
  5626. placeHolder_311,
  5627. placeHolder_312,
  5628. placeHolder_313,
  5629. placeHolder_314,
  5630. placeHolder_315,
  5631. placeHolder_316,
  5632. placeHolder_317,
  5633. placeHolder_318,
  5634. placeHolder_319,
  5635. placeHolder_320,
  5636. placeHolder_321,
  5637. placeHolder_322,
  5638. placeHolder_323,
  5639. placeHolder_324,
  5640. placeHolder_325,
  5641. placeHolder_326,
  5642. placeHolder_327,
  5643. placeHolder_328,
  5644. placeHolder_329,
  5645. placeHolder_330,
  5646. placeHolder_331,
  5647. placeHolder_332,
  5648. placeHolder_333,
  5649. placeHolder_334,
  5650. placeHolder_335,
  5651. placeHolder_336,
  5652. placeHolder_337,
  5653. placeHolder_338,
  5654. placeHolder_339,
  5655. placeHolder_340,
  5656. placeHolder_341,
  5657. placeHolder_342,
  5658. placeHolder_343,
  5659. placeHolder_344,
  5660. placeHolder_345,
  5661. placeHolder_346,
  5662. placeHolder_347,
  5663. placeHolder_348,
  5664. placeHolder_349,
  5665. placeHolder_350,
  5666. placeHolder_351,
  5667. placeHolder_352,
  5668. placeHolder_353,
  5669. placeHolder_354,
  5670. placeHolder_355,
  5671. placeHolder_356,
  5672. placeHolder_357,
  5673. placeHolder_358,
  5674. placeHolder_359,
  5675. placeHolder_360,
  5676. placeHolder_361,
  5677. placeHolder_362,
  5678. placeHolder_363,
  5679. placeHolder_364,
  5680. placeHolder_365,
  5681. placeHolder_366,
  5682. placeHolder_367,
  5683. placeHolder_368,
  5684. placeHolder_369,
  5685. placeHolder_370,
  5686. placeHolder_371,
  5687. placeHolder_372,
  5688. placeHolder_373,
  5689. placeHolder_374,
  5690. placeHolder_375,
  5691. placeHolder_376,
  5692. placeHolder_377,
  5693. placeHolder_378,
  5694. placeHolder_379,
  5695. placeHolder_380,
  5696. placeHolder_381,
  5697. placeHolder_382,
  5698. placeHolder_383,
  5699. placeHolder_384,
  5700. placeHolder_385,
  5701. placeHolder_386,
  5702. placeHolder_387,
  5703. placeHolder_388,
  5704. placeHolder_389,
  5705. placeHolder_390,
  5706. placeHolder_391,
  5707. placeHolder_392,
  5708. placeHolder_393,
  5709. placeHolder_394,
  5710. placeHolder_395,
  5711. placeHolder_396,
  5712. placeHolder_397,
  5713. placeHolder_398,
  5714. placeHolder_399,
  5715. placeHolder_400,
  5716. placeHolder_401,
  5717. placeHolder_402,
  5718. placeHolder_403,
  5719. placeHolder_404,
  5720. placeHolder_405,
  5721. placeHolder_406,
  5722. placeHolder_407,
  5723. placeHolder_408,
  5724. placeHolder_409,
  5725. placeHolder_410,
  5726. placeHolder_411,
  5727. placeHolder_412,
  5728. placeHolder_413,
  5729. placeHolder_414,
  5730. placeHolder_415,
  5731. placeHolder_416,
  5732. placeHolder_417,
  5733. placeHolder_418,
  5734. placeHolder_419,
  5735. placeHolder_420,
  5736. placeHolder_421,
  5737. placeHolder_422,
  5738. placeHolder_423,
  5739. placeHolder_424,
  5740. placeHolder_425,
  5741. placeHolder_426,
  5742. placeHolder_427,
  5743. placeHolder_428,
  5744. placeHolder_429,
  5745. placeHolder_430,
  5746. placeHolder_431,
  5747. placeHolder_432,
  5748. placeHolder_433,
  5749. placeHolder_434,
  5750. placeHolder_435,
  5751. placeHolder_436,
  5752. placeHolder_437,
  5753. placeHolder_438,
  5754. placeHolder_439,
  5755. placeHolder_440,
  5756. placeHolder_441,
  5757. placeHolder_442,
  5758. placeHolder_443,
  5759. placeHolder_444,
  5760. placeHolder_445,
  5761. placeHolder_446,
  5762. placeHolder_447,
  5763. placeHolder_448,
  5764. placeHolder_449,
  5765. placeHolder_450,
  5766. placeHolder_451,
  5767. placeHolder_452,
  5768. placeHolder_453,
  5769. placeHolder_454,
  5770. placeHolder_455,
  5771. placeHolder_456,
  5772. placeHolder_457,
  5773. placeHolder_458,
  5774. placeHolder_459,
  5775. placeHolder_460,
  5776. placeHolder_461,
  5777. placeHolder_462,
  5778. placeHolder_463,
  5779. placeHolder_464,
  5780. placeHolder_465,
  5781. placeHolder_466,
  5782. placeHolder_467,
  5783. placeHolder_468,
  5784. placeHolder_469,
  5785. placeHolder_470,
  5786. placeHolder_471,
  5787. placeHolder_472,
  5788. placeHolder_473,
  5789. placeHolder_474,
  5790. placeHolder_475,
  5791. placeHolder_476,
  5792. placeHolder_477,
  5793. placeHolder_478,
  5794. placeHolder_479,
  5795. placeHolder_480,
  5796. placeHolder_481,
  5797. placeHolder_482,
  5798. placeHolder_483,
  5799. placeHolder_484,
  5800. placeHolder_485,
  5801. placeHolder_486,
  5802. placeHolder_487,
  5803. placeHolder_488,
  5804. placeHolder_489,
  5805. placeHolder_490,
  5806. placeHolder_491,
  5807. placeHolder_492,
  5808. placeHolder_493,
  5809. placeHolder_494,
  5810. placeHolder_495,
  5811. placeHolder_496,
  5812. placeHolder_497,
  5813. placeHolder_498,
  5814. placeHolder_499,
  5815. placeHolder_500,
  5816. placeHolder_501,
  5817. placeHolder_502,
  5818. placeHolder_503,
  5819. placeHolder_504,
  5820. placeHolder_505,
  5821. placeHolder_506,
  5822. placeHolder_507,
  5823. placeHolder_508,
  5824. placeHolder_509,
  5825. placeHolder_510,
  5826. placeHolder_511,
  5827. placeHolder_512,
  5828. placeHolder_513,
  5829. placeHolder_514,
  5830. placeHolder_515,
  5831. placeHolder_516,
  5832. placeHolder_517,
  5833. placeHolder_518,
  5834. placeHolder_519,
  5835. placeHolder_520,
  5836. placeHolder_521,
  5837. placeHolder_522,
  5838. placeHolder_523,
  5839. placeHolder_524,
  5840. placeHolder_525,
  5841. placeHolder_526,
  5842. placeHolder_527,
  5843. placeHolder_528,
  5844. placeHolder_529,
  5845. placeHolder_530,
  5846. placeHolder_531,
  5847. placeHolder_532,
  5848. placeHolder_533,
  5849. placeHolder_534,
  5850. placeHolder_535,
  5851. placeHolder_536,
  5852. placeHolder_537,
  5853. placeHolder_538,
  5854. placeHolder_539,
  5855. placeHolder_540,
  5856. placeHolder_541,
  5857. placeHolder_542,
  5858. placeHolder_543,
  5859. placeHolder_544,
  5860. placeHolder_545,
  5861. placeHolder_546,
  5862. placeHolder_547,
  5863. placeHolder_548,
  5864. placeHolder_549,
  5865. placeHolder_550,
  5866. placeHolder_551,
  5867. placeHolder_552,
  5868. placeHolder_553,
  5869. placeHolder_554,
  5870. placeHolder_555,
  5871. placeHolder_556,
  5872. placeHolder_557,
  5873. placeHolder_558,
  5874. placeHolder_559,
  5875. placeHolder_560,
  5876. placeHolder_561,
  5877. placeHolder_562,
  5878. placeHolder_563,
  5879. placeHolder_564,
  5880. placeHolder_565,
  5881. placeHolder_566,
  5882. placeHolder_567,
  5883. placeHolder_568,
  5884. placeHolder_569,
  5885. placeHolder_570,
  5886. placeHolder_571,
  5887. placeHolder_572,
  5888. placeHolder_573,
  5889. placeHolder_574,
  5890. placeHolder_575,
  5891. placeHolder_576,
  5892. placeHolder_577,
  5893. placeHolder_578,
  5894. placeHolder_579,
  5895. placeHolder_580,
  5896. placeHolder_581,
  5897. placeHolder_582,
  5898. placeHolder_583,
  5899. placeHolder_584,
  5900. placeHolder_585,
  5901. placeHolder_586,
  5902. placeHolder_587,
  5903. placeHolder_588,
  5904. placeHolder_589,
  5905. placeHolder_590,
  5906. placeHolder_591,
  5907. placeHolder_592,
  5908. placeHolder_593,
  5909. placeHolder_594,
  5910. placeHolder_595,
  5911. placeHolder_596,
  5912. placeHolder_597,
  5913. placeHolder_598,
  5914. placeHolder_599,
  5915. placeHolder_600,
  5916. placeHolder_601,
  5917. placeHolder_602,
  5918. placeHolder_603,
  5919. placeHolder_604,
  5920. placeHolder_605,
  5921. placeHolder_606,
  5922. placeHolder_607,
  5923. placeHolder_608,
  5924. placeHolder_609,
  5925. placeHolder_610,
  5926. placeHolder_611,
  5927. placeHolder_612,
  5928. placeHolder_613,
  5929. placeHolder_614,
  5930. placeHolder_615,
  5931. placeHolder_616,
  5932. placeHolder_617,
  5933. placeHolder_618,
  5934. placeHolder_619,
  5935. placeHolder_620,
  5936. placeHolder_621,
  5937. placeHolder_622,
  5938. placeHolder_623,
  5939. placeHolder_624,
  5940. placeHolder_625,
  5941. placeHolder_626,
  5942. placeHolder_627,
  5943. placeHolder_628,
  5944. placeHolder_629,
  5945. placeHolder_630,
  5946. placeHolder_631,
  5947. placeHolder_632,
  5948. placeHolder_633,
  5949. placeHolder_634,
  5950. placeHolder_635,
  5951. placeHolder_636,
  5952. placeHolder_637,
  5953. placeHolder_638,
  5954. placeHolder_639,
  5955. placeHolder_640,
  5956. placeHolder_641,
  5957. placeHolder_642,
  5958. placeHolder_643,
  5959. placeHolder_644,
  5960. placeHolder_645,
  5961. placeHolder_646,
  5962. placeHolder_647,
  5963. placeHolder_648,
  5964. placeHolder_649,
  5965. placeHolder_650,
  5966. placeHolder_651,
  5967. placeHolder_652,
  5968. placeHolder_653,
  5969. placeHolder_654,
  5970. placeHolder_655,
  5971. placeHolder_656,
  5972. placeHolder_657,
  5973. placeHolder_658,
  5974. placeHolder_659,
  5975. placeHolder_660,
  5976. placeHolder_661,
  5977. placeHolder_662,
  5978. placeHolder_663,
  5979. placeHolder_664,
  5980. placeHolder_665,
  5981. placeHolder_666,
  5982. placeHolder_667,
  5983. placeHolder_668,
  5984. placeHolder_669,
  5985. placeHolder_670,
  5986. placeHolder_671,
  5987. placeHolder_672,
  5988. placeHolder_673,
  5989. placeHolder_674,
  5990. placeHolder_675,
  5991. placeHolder_676,
  5992. placeHolder_677,
  5993. placeHolder_678,
  5994. placeHolder_679,
  5995. placeHolder_680,
  5996. placeHolder_681,
  5997. placeHolder_682,
  5998. placeHolder_683,
  5999. placeHolder_684,
  6000. placeHolder_685,
  6001. placeHolder_686,
  6002. placeHolder_687,
  6003. placeHolder_688,
  6004. placeHolder_689,
  6005. placeHolder_690,
  6006. placeHolder_691,
  6007. placeHolder_692,
  6008. placeHolder_693,
  6009. placeHolder_694,
  6010. placeHolder_695,
  6011. placeHolder_696,
  6012. placeHolder_697,
  6013. placeHolder_698,
  6014. placeHolder_699,
  6015. placeHolder_700,
  6016. placeHolder_701,
  6017. placeHolder_702,
  6018. placeHolder_703,
  6019. placeHolder_704,
  6020. placeHolder_705,
  6021. placeHolder_706,
  6022. placeHolder_707,
  6023. placeHolder_708,
  6024. placeHolder_709,
  6025. placeHolder_710,
  6026. placeHolder_711,
  6027. placeHolder_712,
  6028. placeHolder_713,
  6029. placeHolder_714,
  6030. placeHolder_715,
  6031. placeHolder_716,
  6032. placeHolder_717,
  6033. placeHolder_718,
  6034. placeHolder_719,
  6035. placeHolder_720,
  6036. placeHolder_721,
  6037. placeHolder_722,
  6038. placeHolder_723,
  6039. placeHolder_724,
  6040. placeHolder_725,
  6041. placeHolder_726,
  6042. placeHolder_727,
  6043. placeHolder_728,
  6044. placeHolder_729,
  6045. placeHolder_730,
  6046. placeHolder_731,
  6047. placeHolder_732,
  6048. placeHolder_733,
  6049. placeHolder_734,
  6050. placeHolder_735,
  6051. placeHolder_736,
  6052. placeHolder_737,
  6053. placeHolder_738,
  6054. placeHolder_739,
  6055. placeHolder_740,
  6056. placeHolder_741,
  6057. placeHolder_742,
  6058. placeHolder_743,
  6059. placeHolder_744,
  6060. placeHolder_745,
  6061. placeHolder_746,
  6062. placeHolder_747,
  6063. placeHolder_748,
  6064. placeHolder_749,
  6065. placeHolder_750,
  6066. placeHolder_751,
  6067. placeHolder_752,
  6068. placeHolder_753,
  6069. placeHolder_754,
  6070. placeHolder_755,
  6071. placeHolder_756,
  6072. placeHolder_757,
  6073. placeHolder_758,
  6074. placeHolder_759,
  6075. placeHolder_760,
  6076. placeHolder_761,
  6077. placeHolder_762,
  6078. placeHolder_763,
  6079. placeHolder_764,
  6080. placeHolder_765,
  6081. placeHolder_766,
  6082. placeHolder_767,
  6083. placeHolder_768,
  6084. placeHolder_769,
  6085. placeHolder_770,
  6086. placeHolder_771,
  6087. placeHolder_772,
  6088. placeHolder_773,
  6089. placeHolder_774,
  6090. placeHolder_775,
  6091. placeHolder_776,
  6092. placeHolder_777,
  6093. placeHolder_778,
  6094. placeHolder_779,
  6095. placeHolder_780,
  6096. placeHolder_781,
  6097. placeHolder_782,
  6098. placeHolder_783,
  6099. placeHolder_784,
  6100. placeHolder_785,
  6101. placeHolder_786,
  6102. placeHolder_787,
  6103. placeHolder_788,
  6104. placeHolder_789,
  6105. placeHolder_790,
  6106. placeHolder_791,
  6107. placeHolder_792,
  6108. placeHolder_793,
  6109. placeHolder_794,
  6110. placeHolder_795,
  6111. placeHolder_796,
  6112. placeHolder_797,
  6113. placeHolder_798,
  6114. placeHolder_799,
  6115. placeHolder_800,
  6116. placeHolder_801,
  6117. placeHolder_802,
  6118. placeHolder_803,
  6119. placeHolder_804,
  6120. placeHolder_805,
  6121. placeHolder_806,
  6122. placeHolder_807,
  6123. placeHolder_808,
  6124. placeHolder_809,
  6125. placeHolder_810,
  6126. placeHolder_811,
  6127. placeHolder_812,
  6128. placeHolder_813,
  6129. placeHolder_814,
  6130. placeHolder_815,
  6131. placeHolder_816,
  6132. placeHolder_817,
  6133. placeHolder_818,
  6134. placeHolder_819,
  6135. placeHolder_820,
  6136. placeHolder_821,
  6137. placeHolder_822,
  6138. placeHolder_823,
  6139. placeHolder_824,
  6140. placeHolder_825,
  6141. placeHolder_826,
  6142. placeHolder_827,
  6143. placeHolder_828,
  6144. placeHolder_829,
  6145. placeHolder_830,
  6146. placeHolder_831,
  6147. placeHolder_832,
  6148. placeHolder_833,
  6149. placeHolder_834,
  6150. placeHolder_835,
  6151. placeHolder_836,
  6152. placeHolder_837,
  6153. placeHolder_838,
  6154. placeHolder_839,
  6155. placeHolder_840,
  6156. placeHolder_841,
  6157. placeHolder_842,
  6158. placeHolder_843,
  6159. placeHolder_844,
  6160. placeHolder_845,
  6161. placeHolder_846,
  6162. placeHolder_847,
  6163. placeHolder_848,
  6164. placeHolder_849,
  6165. placeHolder_850,
  6166. placeHolder_851,
  6167. placeHolder_852,
  6168. placeHolder_853,
  6169. placeHolder_854,
  6170. placeHolder_855,
  6171. placeHolder_856,
  6172. placeHolder_857,
  6173. placeHolder_858,
  6174. placeHolder_859,
  6175. placeHolder_860,
  6176. placeHolder_861,
  6177. placeHolder_862,
  6178. placeHolder_863,
  6179. placeHolder_864,
  6180. placeHolder_865,
  6181. placeHolder_866,
  6182. placeHolder_867,
  6183. placeHolder_868,
  6184. placeHolder_869,
  6185. placeHolder_870,
  6186. placeHolder_871,
  6187. placeHolder_872,
  6188. placeHolder_873,
  6189. placeHolder_874,
  6190. placeHolder_875,
  6191. placeHolder_876,
  6192. placeHolder_877,
  6193. placeHolder_878,
  6194. placeHolder_879,
  6195. placeHolder_880,
  6196. placeHolder_881,
  6197. placeHolder_882,
  6198. placeHolder_883,
  6199. placeHolder_884,
  6200. placeHolder_885,
  6201. placeHolder_886,
  6202. placeHolder_887,
  6203. placeHolder_888,
  6204. placeHolder_889,
  6205. placeHolder_890,
  6206. placeHolder_891,
  6207. placeHolder_892,
  6208. placeHolder_893,
  6209. placeHolder_894,
  6210. placeHolder_895,
  6211. placeHolder_896,
  6212. placeHolder_897,
  6213. placeHolder_898,
  6214. placeHolder_899,
  6215. placeHolder_900,
  6216. placeHolder_901,
  6217. placeHolder_902,
  6218. placeHolder_903,
  6219. placeHolder_904,
  6220. placeHolder_905,
  6221. placeHolder_906,
  6222. placeHolder_907,
  6223. placeHolder_908,
  6224. placeHolder_909,
  6225. placeHolder_910,
  6226. placeHolder_911,
  6227. placeHolder_912,
  6228. placeHolder_913,
  6229. placeHolder_914,
  6230. placeHolder_915,
  6231. placeHolder_916,
  6232. placeHolder_917,
  6233. placeHolder_918,
  6234. placeHolder_919,
  6235. placeHolder_920,
  6236. placeHolder_921,
  6237. placeHolder_922,
  6238. placeHolder_923,
  6239. placeHolder_924,
  6240. placeHolder_925,
  6241. placeHolder_926,
  6242. placeHolder_927,
  6243. placeHolder_928,
  6244. placeHolder_929,
  6245. placeHolder_930,
  6246. placeHolder_931,
  6247. placeHolder_932,
  6248. placeHolder_933,
  6249. placeHolder_934,
  6250. placeHolder_935,
  6251. placeHolder_936,
  6252. placeHolder_937,
  6253. placeHolder_938,
  6254. placeHolder_939,
  6255. placeHolder_940,
  6256. placeHolder_941,
  6257. placeHolder_942,
  6258. placeHolder_943,
  6259. placeHolder_944,
  6260. placeHolder_945,
  6261. placeHolder_946,
  6262. placeHolder_947,
  6263. placeHolder_948,
  6264. placeHolder_949,
  6265. placeHolder_950,
  6266. placeHolder_951,
  6267. placeHolder_952,
  6268. placeHolder_953,
  6269. placeHolder_954,
  6270. placeHolder_955,
  6271. placeHolder_956,
  6272. placeHolder_957,
  6273. placeHolder_958,
  6274. placeHolder_959,
  6275. placeHolder_960,
  6276. placeHolder_961,
  6277. placeHolder_962,
  6278. placeHolder_963,
  6279. placeHolder_964,
  6280. placeHolder_965,
  6281. placeHolder_966,
  6282. placeHolder_967,
  6283. placeHolder_968,
  6284. placeHolder_969,
  6285. placeHolder_970,
  6286. placeHolder_971,
  6287. placeHolder_972,
  6288. placeHolder_973,
  6289. placeHolder_974,
  6290. placeHolder_975,
  6291. placeHolder_976,
  6292. placeHolder_977,
  6293. placeHolder_978,
  6294. placeHolder_979,
  6295. placeHolder_980,
  6296. placeHolder_981,
  6297. placeHolder_982,
  6298. placeHolder_983,
  6299. placeHolder_984,
  6300. placeHolder_985,
  6301. placeHolder_986,
  6302. placeHolder_987,
  6303. placeHolder_988,
  6304. placeHolder_989,
  6305. placeHolder_990,
  6306. placeHolder_991,
  6307. placeHolder_992,
  6308. placeHolder_993,
  6309. placeHolder_994,
  6310. placeHolder_995,
  6311. placeHolder_996,
  6312. placeHolder_997,
  6313. placeHolder_998,
  6314. Unregistered,
  6315. }
  6316. enum PatientGenderEnum {
  6317. NotFilled,
  6318. Male,
  6319. Female,
  6320. }
  6321. enum AnimalGenderEnum {
  6322. AnimalInfoNotFilled,
  6323. AnimalInfoMale,
  6324. AnimalInfoFemale,
  6325. }
  6326. enum RegionGradeEnum {
  6327. Country,
  6328. Province,
  6329. City,
  6330. Area,
  6331. }
  6332. enum RemedicalAIDiagnosisStatusEnum {
  6333. Null,
  6334. NoObviousLesion,
  6335. Benign,
  6336. Malignant,
  6337. BenignAndMalignant,
  6338. }
  6339. enum RemedicalApparatusTypeEnum {
  6340. BreastOuterUpper,
  6341. BreastInnerUpper,
  6342. BreastOuterLower,
  6343. BreastInnerLower,
  6344. Lobe,
  6345. LobeOfUnder,
  6346. LobeOfInter,
  6347. Thyroid,
  6348. Abdomen,
  6349. }
  6350. enum RemedicalImageLocationTypeEnum {
  6351. BreastImageLocation,
  6352. LiverImageLocation,
  6353. ThyroidImageLocation,
  6354. PositionImageLocation,
  6355. }
  6356. enum RemedicalImagePositionTypeEnum {
  6357. None,
  6358. Left,
  6359. Right,
  6360. Middle,
  6361. }
  6362. enum ReportTemplateQueryTypeEnum {
  6363. All,
  6364. Personal,
  6365. Organization,
  6366. }
  6367. enum SyncTypeEnum {
  6368. Initiate,
  6369. Accept,
  6370. Reject,
  6371. CancelInitiate,
  6372. HeartRateJoin,
  6373. NetworkErr,
  6374. HeartRateLeave,
  6375. Leave,
  6376. Close,
  6377. ChangeMuteState,
  6378. ChangeVideoOpenState,
  6379. InviteIn,
  6380. CancelInviteIn,
  6381. AcceptIn,
  6382. RejectIn,
  6383. ChangeConsultationStatus,
  6384. Agree,
  6385. Notification,
  6386. }
  6387. enum SyncServiceEnum {
  6388. placeHolder_0,
  6389. LiveConsultation,
  6390. Notification,
  6391. }
  6392. enum TransactionTypeEnum {
  6393. placeHolder_0,
  6394. Consultion,
  6395. Chat,
  6396. Announcement,
  6397. Session,
  6398. RemoteDia,
  6399. }
  6400. enum ASETypeEnum {
  6401. Off,
  6402. Max,
  6403. Mean,
  6404. Both,
  6405. }
  6406. enum StraightLineShapeEnum {
  6407. StraightLine,
  6408. HalfCircle,
  6409. AutoPWVSlope,
  6410. }
  6411. enum DefinitionMeasureItemsEnum {
  6412. Default,
  6413. UserDefined,
  6414. }
  6415. enum DefinitionPriorityEnum {
  6416. Notset,
  6417. Root,
  6418. Global,
  6419. GlobalCategory,
  6420. GlobalApp,
  6421. FactoryDefault,
  6422. OemDefault,
  6423. UserDefined,
  6424. }
  6425. enum MeasureTypeUnitEnum {
  6426. None,
  6427. AreaUnit,
  6428. VelocityUnit,
  6429. TimeUnit,
  6430. }
  6431. enum UnExecuteAction {
  6432. None,
  6433. OneStep,
  6434. AllSteps,
  6435. GeometryOnly,
  6436. }
  6437. class PriorityPair {
  6438. DefinitionPriorityEnum target;
  6439. DefinitionPriorityEnum? base;
  6440. PriorityPair({
  6441. this.target = DefinitionPriorityEnum.Notset,
  6442. this.base,
  6443. });
  6444. factory PriorityPair.fromJson(Map<String, dynamic> map) {
  6445. return PriorityPair(
  6446. target: DefinitionPriorityEnum.values.firstWhere((e) => e.index == map['Target']),
  6447. base: map['Base'] != null ? DefinitionPriorityEnum.values.firstWhere((e) => e.index == map['Base']) : null,
  6448. );
  6449. }
  6450. Map<String, dynamic> toJson() {
  6451. final map = Map<String, dynamic>();
  6452. map['Target'] = target.index;
  6453. if(base != null)
  6454. map['Base'] = base;
  6455. return map;
  6456. }
  6457. }
  6458. class DefinitionPriorityEnumExtension {
  6459. DefinitionPriorityEnumExtension();
  6460. factory DefinitionPriorityEnumExtension.fromJson(Map<String, dynamic> map) {
  6461. return DefinitionPriorityEnumExtension(
  6462. );
  6463. }
  6464. Map<String, dynamic> toJson() {
  6465. final map = Map<String, dynamic>();
  6466. return map;
  6467. }
  6468. }
  6469. enum TracePeakType {
  6470. Normal,
  6471. OnePeak,
  6472. TwoPeaks,
  6473. }
  6474. enum LineWeightType {
  6475. NormalWeight,
  6476. Thin,
  6477. }
  6478. enum IMTType {
  6479. placeHolder_0,
  6480. Post,
  6481. Ant,
  6482. Both,
  6483. }
  6484. enum MeasureSectionType {
  6485. None,
  6486. Root,
  6487. Application,
  6488. MeasureMode,
  6489. Group,
  6490. Folder,
  6491. Item,
  6492. Calculator,
  6493. OutPut,
  6494. Formular,
  6495. Processor,
  6496. TypeParams,
  6497. }
  6498. enum ModeTypeEnum {
  6499. Undefined,
  6500. Tissue,
  6501. Flow,
  6502. Doppler,
  6503. TissueTM,
  6504. }
  6505. enum ResourceDefPriorityEnum {
  6506. Root,
  6507. placeHolder_1,
  6508. placeHolder_2,
  6509. placeHolder_3,
  6510. placeHolder_4,
  6511. placeHolder_5,
  6512. placeHolder_6,
  6513. placeHolder_7,
  6514. placeHolder_8,
  6515. placeHolder_9,
  6516. placeHolder_10,
  6517. placeHolder_11,
  6518. placeHolder_12,
  6519. placeHolder_13,
  6520. placeHolder_14,
  6521. placeHolder_15,
  6522. placeHolder_16,
  6523. placeHolder_17,
  6524. placeHolder_18,
  6525. placeHolder_19,
  6526. placeHolder_20,
  6527. placeHolder_21,
  6528. placeHolder_22,
  6529. placeHolder_23,
  6530. placeHolder_24,
  6531. placeHolder_25,
  6532. placeHolder_26,
  6533. placeHolder_27,
  6534. placeHolder_28,
  6535. placeHolder_29,
  6536. placeHolder_30,
  6537. placeHolder_31,
  6538. placeHolder_32,
  6539. placeHolder_33,
  6540. placeHolder_34,
  6541. placeHolder_35,
  6542. placeHolder_36,
  6543. placeHolder_37,
  6544. placeHolder_38,
  6545. placeHolder_39,
  6546. FactoryDefault,
  6547. placeHolder_41,
  6548. placeHolder_42,
  6549. placeHolder_43,
  6550. placeHolder_44,
  6551. PackageDefault,
  6552. placeHolder_46,
  6553. placeHolder_47,
  6554. placeHolder_48,
  6555. placeHolder_49,
  6556. OemDefault,
  6557. placeHolder_51,
  6558. placeHolder_52,
  6559. placeHolder_53,
  6560. placeHolder_54,
  6561. placeHolder_55,
  6562. placeHolder_56,
  6563. placeHolder_57,
  6564. placeHolder_58,
  6565. placeHolder_59,
  6566. UserDefined,
  6567. }
  6568. enum Unit {
  6569. None,
  6570. percent,
  6571. fraction,
  6572. placeHolder_3,
  6573. placeHolder_4,
  6574. placeHolder_5,
  6575. placeHolder_6,
  6576. placeHolder_7,
  6577. placeHolder_8,
  6578. placeHolder_9,
  6579. cm,
  6580. mm,
  6581. inch,
  6582. ft,
  6583. placeHolder_14,
  6584. placeHolder_15,
  6585. placeHolder_16,
  6586. placeHolder_17,
  6587. placeHolder_18,
  6588. placeHolder_19,
  6589. s,
  6590. minute,
  6591. hour,
  6592. day,
  6593. week,
  6594. week_day,
  6595. Tick,
  6596. msec,
  6597. placeHolder_28,
  6598. placeHolder_29,
  6599. degree,
  6600. radian,
  6601. placeHolder_32,
  6602. placeHolder_33,
  6603. placeHolder_34,
  6604. placeHolder_35,
  6605. placeHolder_36,
  6606. placeHolder_37,
  6607. placeHolder_38,
  6608. placeHolder_39,
  6609. g,
  6610. mg,
  6611. ng,
  6612. kg,
  6613. oz,
  6614. lb,
  6615. lb_oz,
  6616. placeHolder_47,
  6617. placeHolder_48,
  6618. placeHolder_49,
  6619. cm2,
  6620. mm2,
  6621. m2,
  6622. placeHolder_53,
  6623. placeHolder_54,
  6624. placeHolder_55,
  6625. placeHolder_56,
  6626. placeHolder_57,
  6627. placeHolder_58,
  6628. placeHolder_59,
  6629. cm3,
  6630. mm3,
  6631. ml,
  6632. L,
  6633. placeHolder_64,
  6634. placeHolder_65,
  6635. placeHolder_66,
  6636. placeHolder_67,
  6637. placeHolder_68,
  6638. placeHolder_69,
  6639. cms,
  6640. mms,
  6641. ms,
  6642. placeHolder_73,
  6643. placeHolder_74,
  6644. placeHolder_75,
  6645. placeHolder_76,
  6646. placeHolder_77,
  6647. placeHolder_78,
  6648. placeHolder_79,
  6649. cms2,
  6650. mms2,
  6651. placeHolder_82,
  6652. placeHolder_83,
  6653. placeHolder_84,
  6654. placeHolder_85,
  6655. placeHolder_86,
  6656. placeHolder_87,
  6657. placeHolder_88,
  6658. placeHolder_89,
  6659. cm3s,
  6660. mls,
  6661. mlmin,
  6662. Lmin,
  6663. placeHolder_94,
  6664. placeHolder_95,
  6665. placeHolder_96,
  6666. placeHolder_97,
  6667. placeHolder_98,
  6668. placeHolder_99,
  6669. gcm3,
  6670. gml,
  6671. ngml,
  6672. placeHolder_103,
  6673. placeHolder_104,
  6674. placeHolder_105,
  6675. placeHolder_106,
  6676. placeHolder_107,
  6677. placeHolder_108,
  6678. placeHolder_109,
  6679. mmHg,
  6680. placeHolder_111,
  6681. placeHolder_112,
  6682. placeHolder_113,
  6683. placeHolder_114,
  6684. placeHolder_115,
  6685. placeHolder_116,
  6686. placeHolder_117,
  6687. placeHolder_118,
  6688. placeHolder_119,
  6689. mV,
  6690. placeHolder_121,
  6691. placeHolder_122,
  6692. placeHolder_123,
  6693. placeHolder_124,
  6694. placeHolder_125,
  6695. placeHolder_126,
  6696. placeHolder_127,
  6697. placeHolder_128,
  6698. placeHolder_129,
  6699. Hz,
  6700. KHz,
  6701. HR,
  6702. placeHolder_133,
  6703. placeHolder_134,
  6704. placeHolder_135,
  6705. placeHolder_136,
  6706. placeHolder_137,
  6707. placeHolder_138,
  6708. placeHolder_139,
  6709. cm3m2,
  6710. mlm2,
  6711. placeHolder_142,
  6712. placeHolder_143,
  6713. placeHolder_144,
  6714. placeHolder_145,
  6715. placeHolder_146,
  6716. placeHolder_147,
  6717. placeHolder_148,
  6718. placeHolder_149,
  6719. cm3sm2,
  6720. mlsm2,
  6721. placeHolder_152,
  6722. cm3minm2,
  6723. mlminm2,
  6724. Lminm2,
  6725. placeHolder_156,
  6726. placeHolder_157,
  6727. placeHolder_158,
  6728. placeHolder_159,
  6729. circs,
  6730. placeHolder_161,
  6731. placeHolder_162,
  6732. placeHolder_163,
  6733. placeHolder_164,
  6734. placeHolder_165,
  6735. placeHolder_166,
  6736. placeHolder_167,
  6737. placeHolder_168,
  6738. placeHolder_169,
  6739. mlbeat,
  6740. placeHolder_171,
  6741. placeHolder_172,
  6742. placeHolder_173,
  6743. placeHolder_174,
  6744. placeHolder_175,
  6745. placeHolder_176,
  6746. placeHolder_177,
  6747. placeHolder_178,
  6748. placeHolder_179,
  6749. mm2pa,
  6750. d1mpa,
  6751. kpa,
  6752. placeHolder_183,
  6753. placeHolder_184,
  6754. placeHolder_185,
  6755. placeHolder_186,
  6756. placeHolder_187,
  6757. placeHolder_188,
  6758. placeHolder_189,
  6759. mmHgs,
  6760. placeHolder_191,
  6761. placeHolder_192,
  6762. placeHolder_193,
  6763. placeHolder_194,
  6764. placeHolder_195,
  6765. placeHolder_196,
  6766. placeHolder_197,
  6767. placeHolder_198,
  6768. placeHolder_199,
  6769. gm2,
  6770. kgm2,
  6771. placeHolder_202,
  6772. placeHolder_203,
  6773. placeHolder_204,
  6774. placeHolder_205,
  6775. placeHolder_206,
  6776. placeHolder_207,
  6777. placeHolder_208,
  6778. placeHolder_209,
  6779. cm2m2,
  6780. placeHolder_211,
  6781. placeHolder_212,
  6782. placeHolder_213,
  6783. placeHolder_214,
  6784. placeHolder_215,
  6785. placeHolder_216,
  6786. placeHolder_217,
  6787. placeHolder_218,
  6788. placeHolder_219,
  6789. cmm2,
  6790. mmm2,
  6791. placeHolder_222,
  6792. placeHolder_223,
  6793. placeHolder_224,
  6794. placeHolder_225,
  6795. placeHolder_226,
  6796. placeHolder_227,
  6797. placeHolder_228,
  6798. placeHolder_229,
  6799. pers,
  6800. placeHolder_231,
  6801. placeHolder_232,
  6802. placeHolder_233,
  6803. placeHolder_234,
  6804. placeHolder_235,
  6805. placeHolder_236,
  6806. placeHolder_237,
  6807. placeHolder_238,
  6808. placeHolder_239,
  6809. placeHolder_240,
  6810. placeHolder_241,
  6811. placeHolder_242,
  6812. placeHolder_243,
  6813. placeHolder_244,
  6814. placeHolder_245,
  6815. placeHolder_246,
  6816. placeHolder_247,
  6817. placeHolder_248,
  6818. placeHolder_249,
  6819. Celsius,
  6820. Fahrenheit,
  6821. placeHolder_252,
  6822. placeHolder_253,
  6823. placeHolder_254,
  6824. placeHolder_255,
  6825. placeHolder_256,
  6826. placeHolder_257,
  6827. placeHolder_258,
  6828. placeHolder_259,
  6829. Ohm,
  6830. placeHolder_261,
  6831. placeHolder_262,
  6832. placeHolder_263,
  6833. placeHolder_264,
  6834. placeHolder_265,
  6835. placeHolder_266,
  6836. placeHolder_267,
  6837. placeHolder_268,
  6838. placeHolder_269,
  6839. mmHgml,
  6840. }
  6841. enum ArrowOrientation {
  6842. Down,
  6843. Left,
  6844. Up,
  6845. Right,
  6846. }
  6847. class UserCMSDTO {
  6848. String? cMSData;
  6849. UserCMSDTO({
  6850. this.cMSData,
  6851. });
  6852. factory UserCMSDTO.fromJson(Map<String, dynamic> map) {
  6853. return UserCMSDTO(
  6854. cMSData: map['CMSData'],
  6855. );
  6856. }
  6857. Map<String, dynamic> toJson() {
  6858. final map = Map<String, dynamic>();
  6859. if(cMSData != null)
  6860. map['CMSData'] = cMSData;
  6861. return map;
  6862. }
  6863. }
  6864. class UserPasswordDTO extends BaseDTO{
  6865. String? userCode;
  6866. String? userName;
  6867. String? secretPassword;
  6868. String? phone;
  6869. String? email;
  6870. String? nickName;
  6871. String? fullName;
  6872. String? headImageUrl;
  6873. String? organizationCode;
  6874. String? rootOrganizationCode;
  6875. List<String >? authorityGroups;
  6876. List<String >? bindDevices;
  6877. String? lastIP;
  6878. int logintimes;
  6879. UserInfoStateEnum userState;
  6880. List<String >? roleCodes;
  6881. List<String >? rankCodes;
  6882. List<String >? positionCodes;
  6883. ApplyStateEnum applyState;
  6884. List<String >? fieldList;
  6885. List<String >? deletePatientCodes;
  6886. bool isBatchExportDiagnoseData;
  6887. String? bindAssistantUserCode;
  6888. String? bindAssistantDoctorUserCode;
  6889. DateTime? passwordUpdateTime;
  6890. List<String >? passwordRecords;
  6891. String? signature;
  6892. String? language;
  6893. bool enableReportLabel;
  6894. UserPasswordDTO({
  6895. this.userCode,
  6896. this.userName,
  6897. this.secretPassword,
  6898. this.phone,
  6899. this.email,
  6900. this.nickName,
  6901. this.fullName,
  6902. this.headImageUrl,
  6903. this.organizationCode,
  6904. this.rootOrganizationCode,
  6905. this.authorityGroups,
  6906. this.bindDevices,
  6907. this.lastIP,
  6908. this.logintimes = 0,
  6909. this.userState = UserInfoStateEnum.Nonactivated,
  6910. this.roleCodes,
  6911. this.rankCodes,
  6912. this.positionCodes,
  6913. this.applyState = ApplyStateEnum.NotApply,
  6914. this.fieldList,
  6915. this.deletePatientCodes,
  6916. this.isBatchExportDiagnoseData = false,
  6917. this.bindAssistantUserCode,
  6918. this.bindAssistantDoctorUserCode,
  6919. this.passwordUpdateTime,
  6920. this.passwordRecords,
  6921. this.signature,
  6922. this.language,
  6923. this.enableReportLabel = false,
  6924. DateTime? createTime,
  6925. DateTime? updateTime,
  6926. }) : super(
  6927. createTime: createTime,
  6928. updateTime: updateTime,
  6929. );
  6930. factory UserPasswordDTO.fromJson(Map<String, dynamic> map) {
  6931. return UserPasswordDTO(
  6932. userCode: map['UserCode'],
  6933. userName: map['UserName'],
  6934. secretPassword: map['SecretPassword'],
  6935. phone: map['Phone'],
  6936. email: map['Email'],
  6937. nickName: map['NickName'],
  6938. fullName: map['FullName'],
  6939. headImageUrl: map['HeadImageUrl'],
  6940. organizationCode: map['OrganizationCode'],
  6941. rootOrganizationCode: map['RootOrganizationCode'],
  6942. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  6943. bindDevices: map['BindDevices'] != null ? map['BindDevices'].cast<String>().toList() : null,
  6944. lastIP: map['LastIP'],
  6945. logintimes: map['Logintimes'],
  6946. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  6947. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  6948. rankCodes: map['RankCodes'] != null ? map['RankCodes'].cast<String>().toList() : null,
  6949. positionCodes: map['PositionCodes'] != null ? map['PositionCodes'].cast<String>().toList() : null,
  6950. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  6951. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  6952. deletePatientCodes: map['DeletePatientCodes'] != null ? map['DeletePatientCodes'].cast<String>().toList() : null,
  6953. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  6954. bindAssistantUserCode: map['BindAssistantUserCode'],
  6955. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  6956. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  6957. passwordRecords: map['PasswordRecords'] != null ? map['PasswordRecords'].cast<String>().toList() : null,
  6958. signature: map['Signature'],
  6959. language: map['Language'],
  6960. enableReportLabel: map['EnableReportLabel'],
  6961. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6962. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  6963. );
  6964. }
  6965. Map<String, dynamic> toJson() {
  6966. final map = super.toJson();
  6967. if(userCode != null)
  6968. map['UserCode'] = userCode;
  6969. if(userName != null)
  6970. map['UserName'] = userName;
  6971. if(secretPassword != null)
  6972. map['SecretPassword'] = secretPassword;
  6973. if(phone != null)
  6974. map['Phone'] = phone;
  6975. if(email != null)
  6976. map['Email'] = email;
  6977. if(nickName != null)
  6978. map['NickName'] = nickName;
  6979. if(fullName != null)
  6980. map['FullName'] = fullName;
  6981. if(headImageUrl != null)
  6982. map['HeadImageUrl'] = headImageUrl;
  6983. if(organizationCode != null)
  6984. map['OrganizationCode'] = organizationCode;
  6985. if(rootOrganizationCode != null)
  6986. map['RootOrganizationCode'] = rootOrganizationCode;
  6987. if(authorityGroups != null)
  6988. map['AuthorityGroups'] = authorityGroups;
  6989. if(bindDevices != null)
  6990. map['BindDevices'] = bindDevices;
  6991. if(lastIP != null)
  6992. map['LastIP'] = lastIP;
  6993. map['Logintimes'] = logintimes;
  6994. map['UserState'] = userState.index;
  6995. if(roleCodes != null)
  6996. map['RoleCodes'] = roleCodes;
  6997. if(rankCodes != null)
  6998. map['RankCodes'] = rankCodes;
  6999. if(positionCodes != null)
  7000. map['PositionCodes'] = positionCodes;
  7001. map['ApplyState'] = applyState.index;
  7002. if(fieldList != null)
  7003. map['FieldList'] = fieldList;
  7004. if(deletePatientCodes != null)
  7005. map['DeletePatientCodes'] = deletePatientCodes;
  7006. map['IsBatchExportDiagnoseData'] = isBatchExportDiagnoseData;
  7007. if(bindAssistantUserCode != null)
  7008. map['BindAssistantUserCode'] = bindAssistantUserCode;
  7009. if(bindAssistantDoctorUserCode != null)
  7010. map['BindAssistantDoctorUserCode'] = bindAssistantDoctorUserCode;
  7011. if(passwordUpdateTime != null)
  7012. map['PasswordUpdateTime'] = JsonRpcUtils.dateFormat(passwordUpdateTime!);
  7013. if(passwordRecords != null)
  7014. map['PasswordRecords'] = passwordRecords;
  7015. if(signature != null)
  7016. map['Signature'] = signature;
  7017. if(language != null)
  7018. map['Language'] = language;
  7019. map['EnableReportLabel'] = enableReportLabel;
  7020. return map;
  7021. }
  7022. }
  7023. class UserTokenDTO {
  7024. String? token;
  7025. bool passwordExpired;
  7026. UserTokenDTO({
  7027. this.token,
  7028. this.passwordExpired = false,
  7029. });
  7030. factory UserTokenDTO.fromJson(Map<String, dynamic> map) {
  7031. return UserTokenDTO(
  7032. token: map['Token'],
  7033. passwordExpired: map['PasswordExpired'],
  7034. );
  7035. }
  7036. Map<String, dynamic> toJson() {
  7037. final map = Map<String, dynamic>();
  7038. if(token != null)
  7039. map['Token'] = token;
  7040. map['PasswordExpired'] = passwordExpired;
  7041. return map;
  7042. }
  7043. }
  7044. class BaseFeatureItemBaseDTO<T> {
  7045. String? id;
  7046. String? label;
  7047. String? fatherCode;
  7048. String? uniqueCode;
  7049. List<T>? children;
  7050. BaseFeatureItemBaseDTO({
  7051. this.id,
  7052. this.label,
  7053. this.fatherCode,
  7054. this.uniqueCode,
  7055. this.children,
  7056. });
  7057. factory BaseFeatureItemBaseDTO.fromJson(Map<String, dynamic> map) {
  7058. List<T> childrenList = [];
  7059. if (map['Children'] != null) {
  7060. childrenList.addAll(
  7061. (map['Children'] as List).map((e) => FJsonConvert.fromJson<T>(e)!));
  7062. }
  7063. return BaseFeatureItemBaseDTO(
  7064. id: map['Id'],
  7065. label: map['Label'],
  7066. fatherCode: map['FatherCode'],
  7067. uniqueCode: map['UniqueCode'],
  7068. children: childrenList,
  7069. );
  7070. }
  7071. Map<String, dynamic> toJson() {
  7072. final map = Map<String, dynamic>();
  7073. if(id != null)
  7074. map['Id'] = id;
  7075. if(label != null)
  7076. map['Label'] = label;
  7077. if(fatherCode != null)
  7078. map['FatherCode'] = fatherCode;
  7079. if(uniqueCode != null)
  7080. map['UniqueCode'] = uniqueCode;
  7081. if(children != null)
  7082. map['Children'] = children;
  7083. return map;
  7084. }
  7085. }
  7086. class UserFeatureItemDTO extends BaseFeatureItemBaseDTO<UserFeatureItemDTO>{
  7087. UserFeatureItemDTO(
  7088. );
  7089. factory UserFeatureItemDTO.fromJson(Map<String, dynamic> map) {
  7090. return UserFeatureItemDTO(
  7091. );
  7092. }
  7093. Map<String, dynamic> toJson() {
  7094. final map = super.toJson();
  7095. return map;
  7096. }
  7097. }
  7098. class UserAuthorityGroupDTO extends BaseDTO{
  7099. String? userGroupCode;
  7100. String? description;
  7101. List<String >? adminCodes;
  7102. List<String >? features;
  7103. String? createAdmin;
  7104. UserAuthorityGroupDTO({
  7105. this.userGroupCode,
  7106. this.description,
  7107. this.adminCodes,
  7108. this.features,
  7109. this.createAdmin,
  7110. DateTime? createTime,
  7111. DateTime? updateTime,
  7112. }) : super(
  7113. createTime: createTime,
  7114. updateTime: updateTime,
  7115. );
  7116. factory UserAuthorityGroupDTO.fromJson(Map<String, dynamic> map) {
  7117. return UserAuthorityGroupDTO(
  7118. userGroupCode: map['UserGroupCode'],
  7119. description: map['Description'],
  7120. adminCodes: map['AdminCodes'] != null ? map['AdminCodes'].cast<String>().toList() : null,
  7121. features: map['Features'] != null ? map['Features'].cast<String>().toList() : null,
  7122. createAdmin: map['CreateAdmin'],
  7123. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7124. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7125. );
  7126. }
  7127. Map<String, dynamic> toJson() {
  7128. final map = super.toJson();
  7129. if(userGroupCode != null)
  7130. map['UserGroupCode'] = userGroupCode;
  7131. if(description != null)
  7132. map['Description'] = description;
  7133. if(adminCodes != null)
  7134. map['AdminCodes'] = adminCodes;
  7135. if(features != null)
  7136. map['Features'] = features;
  7137. if(createAdmin != null)
  7138. map['CreateAdmin'] = createAdmin;
  7139. return map;
  7140. }
  7141. }
  7142. class StorageInfoDTO extends BaseDTO{
  7143. String? token;
  7144. String? fileName;
  7145. String? storageRoute;
  7146. StorageInfoDTO({
  7147. this.token,
  7148. this.fileName,
  7149. this.storageRoute,
  7150. DateTime? createTime,
  7151. DateTime? updateTime,
  7152. }) : super(
  7153. createTime: createTime,
  7154. updateTime: updateTime,
  7155. );
  7156. factory StorageInfoDTO.fromJson(Map<String, dynamic> map) {
  7157. return StorageInfoDTO(
  7158. token: map['Token'],
  7159. fileName: map['FileName'],
  7160. storageRoute: map['StorageRoute'],
  7161. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7162. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7163. );
  7164. }
  7165. Map<String, dynamic> toJson() {
  7166. final map = super.toJson();
  7167. if(token != null)
  7168. map['Token'] = token;
  7169. if(fileName != null)
  7170. map['FileName'] = fileName;
  7171. if(storageRoute != null)
  7172. map['StorageRoute'] = storageRoute;
  7173. return map;
  7174. }
  7175. }
  7176. class StatisticDTO extends BaseDTO{
  7177. String? statisticCode;
  7178. String? name;
  7179. String? description;
  7180. String? intervalSetting;
  7181. bool enabled;
  7182. String? handleClass;
  7183. String? serverHost;
  7184. StatisticDTO({
  7185. this.statisticCode,
  7186. this.name,
  7187. this.description,
  7188. this.intervalSetting,
  7189. this.enabled = false,
  7190. this.handleClass,
  7191. this.serverHost,
  7192. DateTime? createTime,
  7193. DateTime? updateTime,
  7194. }) : super(
  7195. createTime: createTime,
  7196. updateTime: updateTime,
  7197. );
  7198. factory StatisticDTO.fromJson(Map<String, dynamic> map) {
  7199. return StatisticDTO(
  7200. statisticCode: map['StatisticCode'],
  7201. name: map['Name'],
  7202. description: map['Description'],
  7203. intervalSetting: map['IntervalSetting'],
  7204. enabled: map['Enabled'],
  7205. handleClass: map['HandleClass'],
  7206. serverHost: map['ServerHost'],
  7207. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7208. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7209. );
  7210. }
  7211. Map<String, dynamic> toJson() {
  7212. final map = super.toJson();
  7213. if(statisticCode != null)
  7214. map['StatisticCode'] = statisticCode;
  7215. if(name != null)
  7216. map['Name'] = name;
  7217. if(description != null)
  7218. map['Description'] = description;
  7219. if(intervalSetting != null)
  7220. map['IntervalSetting'] = intervalSetting;
  7221. map['Enabled'] = enabled;
  7222. if(handleClass != null)
  7223. map['HandleClass'] = handleClass;
  7224. if(serverHost != null)
  7225. map['ServerHost'] = serverHost;
  7226. return map;
  7227. }
  7228. }
  7229. class StatisticInfoDTO {
  7230. List<String >? xAxisDatas;
  7231. List<List<double> >? yAxisDatas;
  7232. List<StatisticInfoDTO >? children;
  7233. StatisticInfoDTO({
  7234. this.xAxisDatas,
  7235. this.yAxisDatas,
  7236. this.children,
  7237. });
  7238. factory StatisticInfoDTO.fromJson(Map<String, dynamic> map) {
  7239. return StatisticInfoDTO(
  7240. xAxisDatas: map['XAxisDatas'] != null ? map['XAxisDatas'].cast<String>().toList() : null,
  7241. yAxisDatas: map['YAxisDatas'] != null ? map['YAxisDatas'].cast<List<double>>().toList() : null,
  7242. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  7243. );
  7244. }
  7245. Map<String, dynamic> toJson() {
  7246. final map = Map<String, dynamic>();
  7247. if(xAxisDatas != null)
  7248. map['XAxisDatas'] = xAxisDatas;
  7249. if(yAxisDatas != null)
  7250. map['YAxisDatas'] = yAxisDatas;
  7251. if(children != null)
  7252. map['Children'] = children;
  7253. return map;
  7254. }
  7255. }
  7256. class StatisticRecordDTO extends BaseDTO{
  7257. String? statisticRecordCode;
  7258. String? statisticCode;
  7259. String? statisticName;
  7260. String? userCode;
  7261. DateTime? lastestUpdateTime;
  7262. DateTime? nextHandleTime;
  7263. List<String >? xAxisDatas;
  7264. List<List<double> >? yAxisDatas;
  7265. List<StatisticInfoDTO >? children;
  7266. StatisticRecordDTO({
  7267. this.statisticRecordCode,
  7268. this.statisticCode,
  7269. this.statisticName,
  7270. this.userCode,
  7271. this.lastestUpdateTime,
  7272. this.nextHandleTime,
  7273. this.xAxisDatas,
  7274. this.yAxisDatas,
  7275. this.children,
  7276. DateTime? createTime,
  7277. DateTime? updateTime,
  7278. }) : super(
  7279. createTime: createTime,
  7280. updateTime: updateTime,
  7281. );
  7282. factory StatisticRecordDTO.fromJson(Map<String, dynamic> map) {
  7283. return StatisticRecordDTO(
  7284. statisticRecordCode: map['StatisticRecordCode'],
  7285. statisticCode: map['StatisticCode'],
  7286. statisticName: map['StatisticName'],
  7287. userCode: map['UserCode'],
  7288. lastestUpdateTime: map['LastestUpdateTime'] != null ? DateTime.parse(map['LastestUpdateTime']) : null,
  7289. nextHandleTime: map['NextHandleTime'] != null ? DateTime.parse(map['NextHandleTime']) : null,
  7290. xAxisDatas: map['XAxisDatas'] != null ? map['XAxisDatas'].cast<String>().toList() : null,
  7291. yAxisDatas: map['YAxisDatas'] != null ? map['YAxisDatas'].cast<List<double>>().toList() : null,
  7292. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  7293. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7294. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7295. );
  7296. }
  7297. Map<String, dynamic> toJson() {
  7298. final map = super.toJson();
  7299. if(statisticRecordCode != null)
  7300. map['StatisticRecordCode'] = statisticRecordCode;
  7301. if(statisticCode != null)
  7302. map['StatisticCode'] = statisticCode;
  7303. if(statisticName != null)
  7304. map['StatisticName'] = statisticName;
  7305. if(userCode != null)
  7306. map['UserCode'] = userCode;
  7307. if(lastestUpdateTime != null)
  7308. map['LastestUpdateTime'] = JsonRpcUtils.dateFormat(lastestUpdateTime!);
  7309. if(nextHandleTime != null)
  7310. map['NextHandleTime'] = JsonRpcUtils.dateFormat(nextHandleTime!);
  7311. if(xAxisDatas != null)
  7312. map['XAxisDatas'] = xAxisDatas;
  7313. if(yAxisDatas != null)
  7314. map['YAxisDatas'] = yAxisDatas;
  7315. if(children != null)
  7316. map['Children'] = children;
  7317. return map;
  7318. }
  7319. }
  7320. class ServerListResult extends BaseServerResult{
  7321. bool isDistributed;
  7322. List<ServerInfoDTO >? serverList;
  7323. ServerListResult({
  7324. this.isDistributed = false,
  7325. this.serverList,
  7326. int code = 0,
  7327. }) : super(
  7328. code: code,
  7329. );
  7330. factory ServerListResult.fromJson(Map<String, dynamic> map) {
  7331. return ServerListResult(
  7332. isDistributed: map['IsDistributed'],
  7333. serverList: map['ServerList'] != null ? (map['ServerList'] as List).map((e)=>ServerInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  7334. code: map['Code'],
  7335. );
  7336. }
  7337. Map<String, dynamic> toJson() {
  7338. final map = super.toJson();
  7339. map['IsDistributed'] = isDistributed;
  7340. if(serverList != null)
  7341. map['ServerList'] = serverList;
  7342. return map;
  7343. }
  7344. }
  7345. class LoginSuccessResult extends BaseServerResult{
  7346. LoginSuccessResult({
  7347. int code = 0,
  7348. }) : super(
  7349. code: code,
  7350. );
  7351. factory LoginSuccessResult.fromJson(Map<String, dynamic> map) {
  7352. return LoginSuccessResult(
  7353. code: map['Code'],
  7354. );
  7355. }
  7356. Map<String, dynamic> toJson() {
  7357. final map = super.toJson();
  7358. return map;
  7359. }
  7360. }
  7361. class ScheduleDTO extends ClientScheduleDTO{
  7362. List<String >? userCodes;
  7363. String? code;
  7364. ScheduleDTO({
  7365. this.userCodes,
  7366. this.code,
  7367. String? title,
  7368. TransactionStatusEnum status = TransactionStatusEnum.Applied,
  7369. ScheduleTypeEnum scheduleType = ScheduleTypeEnum.Consultation,
  7370. DateTime? startTime,
  7371. DateTime? endTime,
  7372. String? relevanceCode,
  7373. }) : super(
  7374. title: title,
  7375. status: status,
  7376. scheduleType: scheduleType,
  7377. startTime: startTime,
  7378. endTime: endTime,
  7379. relevanceCode: relevanceCode,
  7380. );
  7381. factory ScheduleDTO.fromJson(Map<String, dynamic> map) {
  7382. return ScheduleDTO(
  7383. userCodes: map['UserCodes'] != null ? map['UserCodes'].cast<String>().toList() : null,
  7384. code: map['Code'],
  7385. title: map['Title'],
  7386. status: TransactionStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  7387. scheduleType: ScheduleTypeEnum.values.firstWhere((e) => e.index == map['ScheduleType']),
  7388. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  7389. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  7390. relevanceCode: map['RelevanceCode'],
  7391. );
  7392. }
  7393. Map<String, dynamic> toJson() {
  7394. final map = super.toJson();
  7395. if(userCodes != null)
  7396. map['UserCodes'] = userCodes;
  7397. if(code != null)
  7398. map['Code'] = code;
  7399. return map;
  7400. }
  7401. }
  7402. class ReportElementDTO {
  7403. String? key;
  7404. String? tagId;
  7405. String? name;
  7406. String? aILanguage;
  7407. ReportElementDTO({
  7408. this.key,
  7409. this.tagId,
  7410. this.name,
  7411. this.aILanguage,
  7412. });
  7413. factory ReportElementDTO.fromJson(Map<String, dynamic> map) {
  7414. return ReportElementDTO(
  7415. key: map['Key'],
  7416. tagId: map['TagId'],
  7417. name: map['Name'],
  7418. aILanguage: map['AILanguage'],
  7419. );
  7420. }
  7421. Map<String, dynamic> toJson() {
  7422. final map = Map<String, dynamic>();
  7423. if(key != null)
  7424. map['Key'] = key;
  7425. if(tagId != null)
  7426. map['TagId'] = tagId;
  7427. if(name != null)
  7428. map['Name'] = name;
  7429. if(aILanguage != null)
  7430. map['AILanguage'] = aILanguage;
  7431. return map;
  7432. }
  7433. }
  7434. class ReportPosterDTO extends BaseDTO{
  7435. String? reportPosterCode;
  7436. String? receiverName;
  7437. String? contact;
  7438. String? phone;
  7439. String? targetUrl;
  7440. String? template;
  7441. ReportPosterTypeEnum posterType;
  7442. ReportFormatEnum reportFormat;
  7443. int postTimeout;
  7444. List<String >? deviceIds;
  7445. ReportPosterDTO({
  7446. this.reportPosterCode,
  7447. this.receiverName,
  7448. this.contact,
  7449. this.phone,
  7450. this.targetUrl,
  7451. this.template,
  7452. this.posterType = ReportPosterTypeEnum.Default,
  7453. this.reportFormat = ReportFormatEnum.Json,
  7454. this.postTimeout = 0,
  7455. this.deviceIds,
  7456. DateTime? createTime,
  7457. DateTime? updateTime,
  7458. }) : super(
  7459. createTime: createTime,
  7460. updateTime: updateTime,
  7461. );
  7462. factory ReportPosterDTO.fromJson(Map<String, dynamic> map) {
  7463. return ReportPosterDTO(
  7464. reportPosterCode: map['ReportPosterCode'],
  7465. receiverName: map['ReceiverName'],
  7466. contact: map['Contact'],
  7467. phone: map['Phone'],
  7468. targetUrl: map['TargetUrl'],
  7469. template: map['Template'],
  7470. posterType: ReportPosterTypeEnum.values.firstWhere((e) => e.index == map['PosterType']),
  7471. reportFormat: ReportFormatEnum.values.firstWhere((e) => e.index == map['ReportFormat']),
  7472. postTimeout: map['PostTimeout'],
  7473. deviceIds: map['DeviceIds'] != null ? map['DeviceIds'].cast<String>().toList() : null,
  7474. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7475. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7476. );
  7477. }
  7478. Map<String, dynamic> toJson() {
  7479. final map = super.toJson();
  7480. if(reportPosterCode != null)
  7481. map['ReportPosterCode'] = reportPosterCode;
  7482. if(receiverName != null)
  7483. map['ReceiverName'] = receiverName;
  7484. if(contact != null)
  7485. map['Contact'] = contact;
  7486. if(phone != null)
  7487. map['Phone'] = phone;
  7488. if(targetUrl != null)
  7489. map['TargetUrl'] = targetUrl;
  7490. if(template != null)
  7491. map['Template'] = template;
  7492. map['PosterType'] = posterType.index;
  7493. map['ReportFormat'] = reportFormat.index;
  7494. map['PostTimeout'] = postTimeout;
  7495. if(deviceIds != null)
  7496. map['DeviceIds'] = deviceIds;
  7497. return map;
  7498. }
  7499. }
  7500. class ReportPushRecordDTO extends BaseDTO{
  7501. String? pushRecordCode;
  7502. String? patientId;
  7503. String? patientName;
  7504. String? poseterConfigId;
  7505. PushDataStateEnum state;
  7506. String? poseterConfigName;
  7507. String? reportId;
  7508. String? patientRecordId;
  7509. String? pushResultToken;
  7510. String? pushResponse;
  7511. ReportPushRecordDTO({
  7512. this.pushRecordCode,
  7513. this.patientId,
  7514. this.patientName,
  7515. this.poseterConfigId,
  7516. this.state = PushDataStateEnum.UnDo,
  7517. this.poseterConfigName,
  7518. this.reportId,
  7519. this.patientRecordId,
  7520. this.pushResultToken,
  7521. this.pushResponse,
  7522. DateTime? createTime,
  7523. DateTime? updateTime,
  7524. }) : super(
  7525. createTime: createTime,
  7526. updateTime: updateTime,
  7527. );
  7528. factory ReportPushRecordDTO.fromJson(Map<String, dynamic> map) {
  7529. return ReportPushRecordDTO(
  7530. pushRecordCode: map['PushRecordCode'],
  7531. patientId: map['PatientId'],
  7532. patientName: map['PatientName'],
  7533. poseterConfigId: map['PoseterConfigId'],
  7534. state: PushDataStateEnum.values.firstWhere((e) => e.index == map['State']),
  7535. poseterConfigName: map['PoseterConfigName'],
  7536. reportId: map['ReportId'],
  7537. patientRecordId: map['PatientRecordId'],
  7538. pushResultToken: map['PushResultToken'],
  7539. pushResponse: map['PushResponse'],
  7540. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7541. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7542. );
  7543. }
  7544. Map<String, dynamic> toJson() {
  7545. final map = super.toJson();
  7546. if(pushRecordCode != null)
  7547. map['PushRecordCode'] = pushRecordCode;
  7548. if(patientId != null)
  7549. map['PatientId'] = patientId;
  7550. if(patientName != null)
  7551. map['PatientName'] = patientName;
  7552. if(poseterConfigId != null)
  7553. map['PoseterConfigId'] = poseterConfigId;
  7554. map['State'] = state.index;
  7555. if(poseterConfigName != null)
  7556. map['PoseterConfigName'] = poseterConfigName;
  7557. if(reportId != null)
  7558. map['ReportId'] = reportId;
  7559. if(patientRecordId != null)
  7560. map['PatientRecordId'] = patientRecordId;
  7561. if(pushResultToken != null)
  7562. map['PushResultToken'] = pushResultToken;
  7563. if(pushResponse != null)
  7564. map['PushResponse'] = pushResponse;
  7565. return map;
  7566. }
  7567. }
  7568. class RegionItemDTO {
  7569. String? c;
  7570. String? g;
  7571. String? f;
  7572. String? n;
  7573. RegionItemDTO({
  7574. this.c,
  7575. this.g,
  7576. this.f,
  7577. this.n,
  7578. });
  7579. factory RegionItemDTO.fromJson(Map<String, dynamic> map) {
  7580. return RegionItemDTO(
  7581. c: map['c'],
  7582. g: map['g'],
  7583. f: map['f'],
  7584. n: map['n'],
  7585. );
  7586. }
  7587. Map<String, dynamic> toJson() {
  7588. final map = Map<String, dynamic>();
  7589. if(c != null)
  7590. map['c'] = c;
  7591. if(g != null)
  7592. map['g'] = g;
  7593. if(f != null)
  7594. map['f'] = f;
  7595. if(n != null)
  7596. map['n'] = n;
  7597. return map;
  7598. }
  7599. }
  7600. class RegionDataDTO {
  7601. String? lang;
  7602. List<RegionItemDTO >? datas;
  7603. RegionDataDTO({
  7604. this.lang,
  7605. this.datas,
  7606. });
  7607. factory RegionDataDTO.fromJson(Map<String, dynamic> map) {
  7608. return RegionDataDTO(
  7609. lang: map['lang'],
  7610. datas: map['datas'] != null ? (map['datas'] as List).map((e)=>RegionItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  7611. );
  7612. }
  7613. Map<String, dynamic> toJson() {
  7614. final map = Map<String, dynamic>();
  7615. if(lang != null)
  7616. map['lang'] = lang;
  7617. if(datas != null)
  7618. map['datas'] = datas;
  7619. return map;
  7620. }
  7621. }
  7622. class ReferralRecordSettingDTO extends BaseDTO{
  7623. String? referralRecordSettingCode;
  7624. double limitHours;
  7625. ReferralRecordSettingDTO({
  7626. this.referralRecordSettingCode,
  7627. this.limitHours = 0,
  7628. DateTime? createTime,
  7629. DateTime? updateTime,
  7630. }) : super(
  7631. createTime: createTime,
  7632. updateTime: updateTime,
  7633. );
  7634. factory ReferralRecordSettingDTO.fromJson(Map<String, dynamic> map) {
  7635. return ReferralRecordSettingDTO(
  7636. referralRecordSettingCode: map['ReferralRecordSettingCode'],
  7637. limitHours: double.parse(map['LimitHours'].toString()),
  7638. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7639. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7640. );
  7641. }
  7642. Map<String, dynamic> toJson() {
  7643. final map = super.toJson();
  7644. if(referralRecordSettingCode != null)
  7645. map['ReferralRecordSettingCode'] = referralRecordSettingCode;
  7646. map['LimitHours'] = limitHours;
  7647. return map;
  7648. }
  7649. }
  7650. class StatisticDetailSettingDTO {
  7651. String? cMSTemplateCode;
  7652. StatisticDetailSettingDTO({
  7653. this.cMSTemplateCode,
  7654. });
  7655. factory StatisticDetailSettingDTO.fromJson(Map<String, dynamic> map) {
  7656. return StatisticDetailSettingDTO(
  7657. cMSTemplateCode: map['CMSTemplateCode'],
  7658. );
  7659. }
  7660. Map<String, dynamic> toJson() {
  7661. final map = Map<String, dynamic>();
  7662. if(cMSTemplateCode != null)
  7663. map['CMSTemplateCode'] = cMSTemplateCode;
  7664. return map;
  7665. }
  7666. }
  7667. class ClientInfoDTO {
  7668. String? clientId;
  7669. String? name;
  7670. bool isReaded;
  7671. DateTime? deliveryTime;
  7672. DateTime? readTime;
  7673. ClientInfoDTO({
  7674. this.clientId,
  7675. this.name,
  7676. this.isReaded = false,
  7677. this.deliveryTime,
  7678. this.readTime,
  7679. });
  7680. factory ClientInfoDTO.fromJson(Map<String, dynamic> map) {
  7681. return ClientInfoDTO(
  7682. clientId: map['ClientId'],
  7683. name: map['Name'],
  7684. isReaded: map['IsReaded'],
  7685. deliveryTime: map['DeliveryTime'] != null ? DateTime.parse(map['DeliveryTime']) : null,
  7686. readTime: map['ReadTime'] != null ? DateTime.parse(map['ReadTime']) : null,
  7687. );
  7688. }
  7689. Map<String, dynamic> toJson() {
  7690. final map = Map<String, dynamic>();
  7691. if(clientId != null)
  7692. map['ClientId'] = clientId;
  7693. if(name != null)
  7694. map['Name'] = name;
  7695. map['IsReaded'] = isReaded;
  7696. if(deliveryTime != null)
  7697. map['DeliveryTime'] = JsonRpcUtils.dateFormat(deliveryTime!);
  7698. if(readTime != null)
  7699. map['ReadTime'] = JsonRpcUtils.dateFormat(readTime!);
  7700. return map;
  7701. }
  7702. }
  7703. class MessageInfoDTO extends BaseDTO{
  7704. String? code;
  7705. NotificationTypeEnum notificationType;
  7706. String? content;
  7707. String? serverHost;
  7708. DateTime? notifyTime;
  7709. ApplicantTypeEnum receiverType;
  7710. TransactionTypeEnum transactionType;
  7711. String? relevanceCode;
  7712. List<ClientInfoDTO >? clientInfos;
  7713. MessageInfoDTO({
  7714. this.code,
  7715. this.notificationType = NotificationTypeEnum.Unknown,
  7716. this.content,
  7717. this.serverHost,
  7718. this.notifyTime,
  7719. this.receiverType = ApplicantTypeEnum.Client,
  7720. this.transactionType = TransactionTypeEnum.Consultion,
  7721. this.relevanceCode,
  7722. this.clientInfos,
  7723. DateTime? createTime,
  7724. DateTime? updateTime,
  7725. }) : super(
  7726. createTime: createTime,
  7727. updateTime: updateTime,
  7728. );
  7729. factory MessageInfoDTO.fromJson(Map<String, dynamic> map) {
  7730. return MessageInfoDTO(
  7731. code: map['Code'],
  7732. notificationType: NotificationTypeEnum.values.firstWhere((e) => e.index == map['NotificationType']),
  7733. content: map['Content'],
  7734. serverHost: map['ServerHost'],
  7735. notifyTime: map['NotifyTime'] != null ? DateTime.parse(map['NotifyTime']) : null,
  7736. receiverType: ApplicantTypeEnum.values.firstWhere((e) => e.index == map['ReceiverType']),
  7737. transactionType: TransactionTypeEnum.values.firstWhere((e) => e.index == map['TransactionType']),
  7738. relevanceCode: map['RelevanceCode'],
  7739. clientInfos: map['ClientInfos'] != null ? (map['ClientInfos'] as List).map((e)=>ClientInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  7740. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  7741. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  7742. );
  7743. }
  7744. Map<String, dynamic> toJson() {
  7745. final map = super.toJson();
  7746. if(code != null)
  7747. map['Code'] = code;
  7748. map['NotificationType'] = notificationType.index;
  7749. if(content != null)
  7750. map['Content'] = content;
  7751. if(serverHost != null)
  7752. map['ServerHost'] = serverHost;
  7753. if(notifyTime != null)
  7754. map['NotifyTime'] = JsonRpcUtils.dateFormat(notifyTime!);
  7755. map['ReceiverType'] = receiverType.index;
  7756. map['TransactionType'] = transactionType.index;
  7757. if(relevanceCode != null)
  7758. map['RelevanceCode'] = relevanceCode;
  7759. if(clientInfos != null)
  7760. map['ClientInfos'] = clientInfos;
  7761. return map;
  7762. }
  7763. }
  7764. class OutputUnitDTO {
  7765. int unit;
  7766. OutputUnitDTO({
  7767. this.unit = 0,
  7768. });
  7769. factory OutputUnitDTO.fromJson(Map<String, dynamic> map) {
  7770. return OutputUnitDTO(
  7771. unit: map['Unit'],
  7772. );
  7773. }
  7774. Map<String, dynamic> toJson() {
  7775. final map = Map<String, dynamic>();
  7776. map['Unit'] = unit;
  7777. return map;
  7778. }
  7779. }
  7780. class FormularMetaDTO {
  7781. String? name;
  7782. FormularMetaDTO({
  7783. this.name,
  7784. });
  7785. factory FormularMetaDTO.fromJson(Map<String, dynamic> map) {
  7786. return FormularMetaDTO(
  7787. name: map['Name'],
  7788. );
  7789. }
  7790. Map<String, dynamic> toJson() {
  7791. final map = Map<String, dynamic>();
  7792. if(name != null)
  7793. map['Name'] = name;
  7794. return map;
  7795. }
  7796. }
  7797. class MeasuredValueDTO {
  7798. String? typeName;
  7799. String? name;
  7800. String? description;
  7801. bool worksheetAffinity;
  7802. String? briefDescription;
  7803. String? value;
  7804. Unit unit;
  7805. Unit targetUnit;
  7806. MeasuredValueDTO({
  7807. this.typeName,
  7808. this.name,
  7809. this.description,
  7810. this.worksheetAffinity = false,
  7811. this.briefDescription,
  7812. this.value,
  7813. this.unit = Unit.None,
  7814. this.targetUnit = Unit.None,
  7815. });
  7816. factory MeasuredValueDTO.fromJson(Map<String, dynamic> map) {
  7817. return MeasuredValueDTO(
  7818. typeName: map['TypeName'],
  7819. name: map['Name'],
  7820. description: map['Description'],
  7821. worksheetAffinity: map['WorksheetAffinity'],
  7822. briefDescription: map['BriefDescription'],
  7823. value: map['Value'],
  7824. unit: Unit.values.firstWhere((e) => e.index == map['Unit']),
  7825. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  7826. );
  7827. }
  7828. Map<String, dynamic> toJson() {
  7829. final map = Map<String, dynamic>();
  7830. if(typeName != null)
  7831. map['TypeName'] = typeName;
  7832. if(name != null)
  7833. map['Name'] = name;
  7834. if(description != null)
  7835. map['Description'] = description;
  7836. map['WorksheetAffinity'] = worksheetAffinity;
  7837. if(briefDescription != null)
  7838. map['BriefDescription'] = briefDescription;
  7839. if(value != null)
  7840. map['Value'] = value;
  7841. map['Unit'] = unit.index;
  7842. map['TargetUnit'] = targetUnit.index;
  7843. return map;
  7844. }
  7845. }
  7846. class MeasuredFeatureDTO {
  7847. String? typeName;
  7848. String? creator;
  7849. String? guid;
  7850. bool showChildFeatures;
  7851. DateTime? timeStamp;
  7852. bool isAutoCalculated;
  7853. List<MeasuredValueDTO >? values;
  7854. List<MeasuredFeatureDTO >? childFeatures;
  7855. MeasuredFeatureDTO({
  7856. this.typeName,
  7857. this.creator,
  7858. this.guid,
  7859. this.showChildFeatures = false,
  7860. this.timeStamp,
  7861. this.isAutoCalculated = false,
  7862. this.values,
  7863. this.childFeatures,
  7864. });
  7865. factory MeasuredFeatureDTO.fromJson(Map<String, dynamic> map) {
  7866. return MeasuredFeatureDTO(
  7867. typeName: map['TypeName'],
  7868. creator: map['Creator'],
  7869. guid: map['Guid'],
  7870. showChildFeatures: map['ShowChildFeatures'],
  7871. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  7872. isAutoCalculated: map['IsAutoCalculated'],
  7873. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  7874. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  7875. );
  7876. }
  7877. Map<String, dynamic> toJson() {
  7878. final map = Map<String, dynamic>();
  7879. if(typeName != null)
  7880. map['TypeName'] = typeName;
  7881. if(creator != null)
  7882. map['Creator'] = creator;
  7883. if(guid != null)
  7884. map['Guid'] = guid;
  7885. map['ShowChildFeatures'] = showChildFeatures;
  7886. if(timeStamp != null)
  7887. map['TimeStamp'] = JsonRpcUtils.dateFormat(timeStamp!);
  7888. map['IsAutoCalculated'] = isAutoCalculated;
  7889. if(values != null)
  7890. map['Values'] = values;
  7891. if(childFeatures != null)
  7892. map['ChildFeatures'] = childFeatures;
  7893. return map;
  7894. }
  7895. }
  7896. class MeasureItemDTO {
  7897. String? name;
  7898. String? description;
  7899. String? briefAnnotation;
  7900. String? typeName;
  7901. MeasureItemDTO({
  7902. this.name,
  7903. this.description,
  7904. this.briefAnnotation,
  7905. this.typeName,
  7906. });
  7907. factory MeasureItemDTO.fromJson(Map<String, dynamic> map) {
  7908. return MeasureItemDTO(
  7909. name: map['Name'],
  7910. description: map['Description'],
  7911. briefAnnotation: map['BriefAnnotation'],
  7912. typeName: map['TypeName'],
  7913. );
  7914. }
  7915. Map<String, dynamic> toJson() {
  7916. final map = Map<String, dynamic>();
  7917. if(name != null)
  7918. map['Name'] = name;
  7919. if(description != null)
  7920. map['Description'] = description;
  7921. if(briefAnnotation != null)
  7922. map['BriefAnnotation'] = briefAnnotation;
  7923. if(typeName != null)
  7924. map['TypeName'] = typeName;
  7925. return map;
  7926. }
  7927. }
  7928. class MultiMethodItemDTO extends MeasureItemDTO{
  7929. MultiMethodItemDTO({
  7930. String? name,
  7931. String? description,
  7932. String? briefAnnotation,
  7933. String? typeName,
  7934. }) : super(
  7935. name: name,
  7936. description: description,
  7937. briefAnnotation: briefAnnotation,
  7938. typeName: typeName,
  7939. );
  7940. factory MultiMethodItemDTO.fromJson(Map<String, dynamic> map) {
  7941. return MultiMethodItemDTO(
  7942. name: map['Name'],
  7943. description: map['Description'],
  7944. briefAnnotation: map['BriefAnnotation'],
  7945. typeName: map['TypeName'],
  7946. );
  7947. }
  7948. Map<String, dynamic> toJson() {
  7949. final map = super.toJson();
  7950. return map;
  7951. }
  7952. }
  7953. class UserDefinedMeasureApplicationDTO {
  7954. String? version;
  7955. String? id;
  7956. String? categoryName;
  7957. List<UserDefinedMeasureModeDTO >? modes;
  7958. UserDefinedMeasureApplicationDTO({
  7959. this.version,
  7960. this.id,
  7961. this.categoryName,
  7962. this.modes,
  7963. });
  7964. factory UserDefinedMeasureApplicationDTO.fromJson(Map<String, dynamic> map) {
  7965. return UserDefinedMeasureApplicationDTO(
  7966. version: map['Version'],
  7967. id: map['Id'],
  7968. categoryName: map['CategoryName'],
  7969. modes: map['Modes'] != null ? (map['Modes'] as List).map((e)=>UserDefinedMeasureModeDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  7970. );
  7971. }
  7972. Map<String, dynamic> toJson() {
  7973. final map = Map<String, dynamic>();
  7974. if(version != null)
  7975. map['Version'] = version;
  7976. if(id != null)
  7977. map['Id'] = id;
  7978. if(categoryName != null)
  7979. map['CategoryName'] = categoryName;
  7980. if(modes != null)
  7981. map['Modes'] = modes;
  7982. return map;
  7983. }
  7984. }
  7985. class UserDefinedCommentDataDTO {
  7986. String? version;
  7987. String? languageCode;
  7988. String? categoryName;
  7989. String? applicationName;
  7990. List<CommentItemDTO >? commentItems;
  7991. UserDefinedCommentDataDTO({
  7992. this.version,
  7993. this.languageCode,
  7994. this.categoryName,
  7995. this.applicationName,
  7996. this.commentItems,
  7997. });
  7998. factory UserDefinedCommentDataDTO.fromJson(Map<String, dynamic> map) {
  7999. return UserDefinedCommentDataDTO(
  8000. version: map['Version'],
  8001. languageCode: map['LanguageCode'],
  8002. categoryName: map['CategoryName'],
  8003. applicationName: map['ApplicationName'],
  8004. commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>CommentItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8005. );
  8006. }
  8007. Map<String, dynamic> toJson() {
  8008. final map = Map<String, dynamic>();
  8009. if(version != null)
  8010. map['Version'] = version;
  8011. if(languageCode != null)
  8012. map['LanguageCode'] = languageCode;
  8013. if(categoryName != null)
  8014. map['CategoryName'] = categoryName;
  8015. if(applicationName != null)
  8016. map['ApplicationName'] = applicationName;
  8017. if(commentItems != null)
  8018. map['CommentItems'] = commentItems;
  8019. return map;
  8020. }
  8021. }
  8022. class UserDefinedMeasureInfoDTO {
  8023. String? userId;
  8024. Map<String,String>? systemSettings;
  8025. List<UserDefinedMeasureApplicationDTO >? measureApplications;
  8026. List<UserDefinedCommentDataDTO >? commentItems;
  8027. UserDefinedMeasureInfoDTO({
  8028. this.userId,
  8029. this.systemSettings,
  8030. this.measureApplications,
  8031. this.commentItems,
  8032. });
  8033. factory UserDefinedMeasureInfoDTO.fromJson(Map<String, dynamic> map) {
  8034. return UserDefinedMeasureInfoDTO(
  8035. userId: map['UserId'],
  8036. systemSettings: map['SystemSettings'] != null ? map['SystemSettings'].cast<String,String>() : null,
  8037. measureApplications: map['MeasureApplications'] != null ? (map['MeasureApplications'] as List).map((e)=>UserDefinedMeasureApplicationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8038. commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>UserDefinedCommentDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8039. );
  8040. }
  8041. Map<String, dynamic> toJson() {
  8042. final map = Map<String, dynamic>();
  8043. if(userId != null)
  8044. map['UserId'] = userId;
  8045. if(systemSettings != null)
  8046. map['SystemSettings'] = systemSettings;
  8047. if(measureApplications != null)
  8048. map['MeasureApplications'] = measureApplications;
  8049. if(commentItems != null)
  8050. map['CommentItems'] = commentItems;
  8051. return map;
  8052. }
  8053. }
  8054. class AbRatioDTO extends MultiMethodItemDTO{
  8055. AbRatioDTO({
  8056. String? name,
  8057. String? description,
  8058. String? briefAnnotation,
  8059. String? typeName,
  8060. }) : super(
  8061. name: name,
  8062. description: description,
  8063. briefAnnotation: briefAnnotation,
  8064. typeName: typeName,
  8065. );
  8066. factory AbRatioDTO.fromJson(Map<String, dynamic> map) {
  8067. return AbRatioDTO(
  8068. name: map['Name'],
  8069. description: map['Description'],
  8070. briefAnnotation: map['BriefAnnotation'],
  8071. typeName: map['TypeName'],
  8072. );
  8073. }
  8074. Map<String, dynamic> toJson() {
  8075. final map = super.toJson();
  8076. return map;
  8077. }
  8078. }
  8079. class AngleDTO extends MeasureItemDTO{
  8080. AngleDTO({
  8081. String? name,
  8082. String? description,
  8083. String? briefAnnotation,
  8084. String? typeName,
  8085. }) : super(
  8086. name: name,
  8087. description: description,
  8088. briefAnnotation: briefAnnotation,
  8089. typeName: typeName,
  8090. );
  8091. factory AngleDTO.fromJson(Map<String, dynamic> map) {
  8092. return AngleDTO(
  8093. name: map['Name'],
  8094. description: map['Description'],
  8095. briefAnnotation: map['BriefAnnotation'],
  8096. typeName: map['TypeName'],
  8097. );
  8098. }
  8099. Map<String, dynamic> toJson() {
  8100. final map = super.toJson();
  8101. return map;
  8102. }
  8103. }
  8104. class AreaPerimeterDTO extends MultiMethodItemDTO{
  8105. AreaPerimeterDTO({
  8106. String? name,
  8107. String? description,
  8108. String? briefAnnotation,
  8109. String? typeName,
  8110. }) : super(
  8111. name: name,
  8112. description: description,
  8113. briefAnnotation: briefAnnotation,
  8114. typeName: typeName,
  8115. );
  8116. factory AreaPerimeterDTO.fromJson(Map<String, dynamic> map) {
  8117. return AreaPerimeterDTO(
  8118. name: map['Name'],
  8119. description: map['Description'],
  8120. briefAnnotation: map['BriefAnnotation'],
  8121. typeName: map['TypeName'],
  8122. );
  8123. }
  8124. Map<String, dynamic> toJson() {
  8125. final map = super.toJson();
  8126. return map;
  8127. }
  8128. }
  8129. class CircleDTO extends MeasureItemDTO{
  8130. CircleDTO({
  8131. String? name,
  8132. String? description,
  8133. String? briefAnnotation,
  8134. String? typeName,
  8135. }) : super(
  8136. name: name,
  8137. description: description,
  8138. briefAnnotation: briefAnnotation,
  8139. typeName: typeName,
  8140. );
  8141. factory CircleDTO.fromJson(Map<String, dynamic> map) {
  8142. return CircleDTO(
  8143. name: map['Name'],
  8144. description: map['Description'],
  8145. briefAnnotation: map['BriefAnnotation'],
  8146. typeName: map['TypeName'],
  8147. );
  8148. }
  8149. Map<String, dynamic> toJson() {
  8150. final map = super.toJson();
  8151. return map;
  8152. }
  8153. }
  8154. class CurveLengthDTO extends MultiMethodItemDTO{
  8155. CurveLengthDTO({
  8156. String? name,
  8157. String? description,
  8158. String? briefAnnotation,
  8159. String? typeName,
  8160. }) : super(
  8161. name: name,
  8162. description: description,
  8163. briefAnnotation: briefAnnotation,
  8164. typeName: typeName,
  8165. );
  8166. factory CurveLengthDTO.fromJson(Map<String, dynamic> map) {
  8167. return CurveLengthDTO(
  8168. name: map['Name'],
  8169. description: map['Description'],
  8170. briefAnnotation: map['BriefAnnotation'],
  8171. typeName: map['TypeName'],
  8172. );
  8173. }
  8174. Map<String, dynamic> toJson() {
  8175. final map = super.toJson();
  8176. return map;
  8177. }
  8178. }
  8179. class EllipseDTO extends MeasureItemDTO{
  8180. EllipseDTO({
  8181. String? name,
  8182. String? description,
  8183. String? briefAnnotation,
  8184. String? typeName,
  8185. }) : super(
  8186. name: name,
  8187. description: description,
  8188. briefAnnotation: briefAnnotation,
  8189. typeName: typeName,
  8190. );
  8191. factory EllipseDTO.fromJson(Map<String, dynamic> map) {
  8192. return EllipseDTO(
  8193. name: map['Name'],
  8194. description: map['Description'],
  8195. briefAnnotation: map['BriefAnnotation'],
  8196. typeName: map['TypeName'],
  8197. );
  8198. }
  8199. Map<String, dynamic> toJson() {
  8200. final map = super.toJson();
  8201. return map;
  8202. }
  8203. }
  8204. class LocationDTO extends MeasureItemDTO{
  8205. LocationDTO({
  8206. String? name,
  8207. String? description,
  8208. String? briefAnnotation,
  8209. String? typeName,
  8210. }) : super(
  8211. name: name,
  8212. description: description,
  8213. briefAnnotation: briefAnnotation,
  8214. typeName: typeName,
  8215. );
  8216. factory LocationDTO.fromJson(Map<String, dynamic> map) {
  8217. return LocationDTO(
  8218. name: map['Name'],
  8219. description: map['Description'],
  8220. briefAnnotation: map['BriefAnnotation'],
  8221. typeName: map['TypeName'],
  8222. );
  8223. }
  8224. Map<String, dynamic> toJson() {
  8225. final map = super.toJson();
  8226. return map;
  8227. }
  8228. }
  8229. class LWHStraightLineDTO extends MeasureItemDTO{
  8230. LWHStraightLineDTO({
  8231. String? name,
  8232. String? description,
  8233. String? briefAnnotation,
  8234. String? typeName,
  8235. }) : super(
  8236. name: name,
  8237. description: description,
  8238. briefAnnotation: briefAnnotation,
  8239. typeName: typeName,
  8240. );
  8241. factory LWHStraightLineDTO.fromJson(Map<String, dynamic> map) {
  8242. return LWHStraightLineDTO(
  8243. name: map['Name'],
  8244. description: map['Description'],
  8245. briefAnnotation: map['BriefAnnotation'],
  8246. typeName: map['TypeName'],
  8247. );
  8248. }
  8249. Map<String, dynamic> toJson() {
  8250. final map = super.toJson();
  8251. return map;
  8252. }
  8253. }
  8254. class PolylineDTO extends MeasureItemDTO{
  8255. PolylineDTO({
  8256. String? name,
  8257. String? description,
  8258. String? briefAnnotation,
  8259. String? typeName,
  8260. }) : super(
  8261. name: name,
  8262. description: description,
  8263. briefAnnotation: briefAnnotation,
  8264. typeName: typeName,
  8265. );
  8266. factory PolylineDTO.fromJson(Map<String, dynamic> map) {
  8267. return PolylineDTO(
  8268. name: map['Name'],
  8269. description: map['Description'],
  8270. briefAnnotation: map['BriefAnnotation'],
  8271. typeName: map['TypeName'],
  8272. );
  8273. }
  8274. Map<String, dynamic> toJson() {
  8275. final map = super.toJson();
  8276. return map;
  8277. }
  8278. }
  8279. class RectDTO extends MeasureItemDTO{
  8280. RectDTO({
  8281. String? name,
  8282. String? description,
  8283. String? briefAnnotation,
  8284. String? typeName,
  8285. }) : super(
  8286. name: name,
  8287. description: description,
  8288. briefAnnotation: briefAnnotation,
  8289. typeName: typeName,
  8290. );
  8291. factory RectDTO.fromJson(Map<String, dynamic> map) {
  8292. return RectDTO(
  8293. name: map['Name'],
  8294. description: map['Description'],
  8295. briefAnnotation: map['BriefAnnotation'],
  8296. typeName: map['TypeName'],
  8297. );
  8298. }
  8299. Map<String, dynamic> toJson() {
  8300. final map = super.toJson();
  8301. return map;
  8302. }
  8303. }
  8304. class StenosisDTO extends MultiMethodItemDTO{
  8305. StenosisDTO({
  8306. String? name,
  8307. String? description,
  8308. String? briefAnnotation,
  8309. String? typeName,
  8310. }) : super(
  8311. name: name,
  8312. description: description,
  8313. briefAnnotation: briefAnnotation,
  8314. typeName: typeName,
  8315. );
  8316. factory StenosisDTO.fromJson(Map<String, dynamic> map) {
  8317. return StenosisDTO(
  8318. name: map['Name'],
  8319. description: map['Description'],
  8320. briefAnnotation: map['BriefAnnotation'],
  8321. typeName: map['TypeName'],
  8322. );
  8323. }
  8324. Map<String, dynamic> toJson() {
  8325. final map = super.toJson();
  8326. return map;
  8327. }
  8328. }
  8329. class StraightLineDTO extends MeasureItemDTO{
  8330. StraightLineDTO({
  8331. String? name,
  8332. String? description,
  8333. String? briefAnnotation,
  8334. String? typeName,
  8335. }) : super(
  8336. name: name,
  8337. description: description,
  8338. briefAnnotation: briefAnnotation,
  8339. typeName: typeName,
  8340. );
  8341. factory StraightLineDTO.fromJson(Map<String, dynamic> map) {
  8342. return StraightLineDTO(
  8343. name: map['Name'],
  8344. description: map['Description'],
  8345. briefAnnotation: map['BriefAnnotation'],
  8346. typeName: map['TypeName'],
  8347. );
  8348. }
  8349. Map<String, dynamic> toJson() {
  8350. final map = super.toJson();
  8351. return map;
  8352. }
  8353. }
  8354. class VolumeDTO extends MultiMethodItemDTO{
  8355. VolumeDTO({
  8356. String? name,
  8357. String? description,
  8358. String? briefAnnotation,
  8359. String? typeName,
  8360. }) : super(
  8361. name: name,
  8362. description: description,
  8363. briefAnnotation: briefAnnotation,
  8364. typeName: typeName,
  8365. );
  8366. factory VolumeDTO.fromJson(Map<String, dynamic> map) {
  8367. return VolumeDTO(
  8368. name: map['Name'],
  8369. description: map['Description'],
  8370. briefAnnotation: map['BriefAnnotation'],
  8371. typeName: map['TypeName'],
  8372. );
  8373. }
  8374. Map<String, dynamic> toJson() {
  8375. final map = super.toJson();
  8376. return map;
  8377. }
  8378. }
  8379. class CardiacAxisFeatureDTO extends MeasuredFeatureDTO{
  8380. String? logicalName;
  8381. String? logicalMode;
  8382. CardiacAxisFeatureDTO({
  8383. String? typeName,
  8384. this.logicalName,
  8385. this.logicalMode,
  8386. String? creator,
  8387. String? guid,
  8388. bool showChildFeatures = false,
  8389. DateTime? timeStamp,
  8390. bool isAutoCalculated = false,
  8391. List<MeasuredValueDTO >? values,
  8392. List<MeasuredFeatureDTO >? childFeatures,
  8393. }) : super(
  8394. typeName: typeName,
  8395. creator: creator,
  8396. guid: guid,
  8397. showChildFeatures: showChildFeatures,
  8398. timeStamp: timeStamp,
  8399. isAutoCalculated: isAutoCalculated,
  8400. values: values,
  8401. childFeatures: childFeatures,
  8402. );
  8403. factory CardiacAxisFeatureDTO.fromJson(Map<String, dynamic> map) {
  8404. return CardiacAxisFeatureDTO(
  8405. typeName: map['TypeName'],
  8406. logicalName: map['LogicalName'],
  8407. logicalMode: map['LogicalMode'],
  8408. creator: map['Creator'],
  8409. guid: map['Guid'],
  8410. showChildFeatures: map['ShowChildFeatures'],
  8411. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  8412. isAutoCalculated: map['IsAutoCalculated'],
  8413. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8414. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8415. );
  8416. }
  8417. Map<String, dynamic> toJson() {
  8418. final map = super.toJson();
  8419. if(logicalName != null)
  8420. map['LogicalName'] = logicalName;
  8421. if(logicalMode != null)
  8422. map['LogicalMode'] = logicalMode;
  8423. return map;
  8424. }
  8425. }
  8426. class CustomCalculatorFeatureDTO extends MeasuredFeatureDTO{
  8427. String? logicalName;
  8428. String? logicalMode;
  8429. CustomCalculatorFeatureDTO({
  8430. String? typeName,
  8431. this.logicalName,
  8432. this.logicalMode,
  8433. String? creator,
  8434. String? guid,
  8435. bool showChildFeatures = false,
  8436. DateTime? timeStamp,
  8437. bool isAutoCalculated = false,
  8438. List<MeasuredValueDTO >? values,
  8439. List<MeasuredFeatureDTO >? childFeatures,
  8440. }) : super(
  8441. typeName: typeName,
  8442. creator: creator,
  8443. guid: guid,
  8444. showChildFeatures: showChildFeatures,
  8445. timeStamp: timeStamp,
  8446. isAutoCalculated: isAutoCalculated,
  8447. values: values,
  8448. childFeatures: childFeatures,
  8449. );
  8450. factory CustomCalculatorFeatureDTO.fromJson(Map<String, dynamic> map) {
  8451. return CustomCalculatorFeatureDTO(
  8452. typeName: map['TypeName'],
  8453. logicalName: map['LogicalName'],
  8454. logicalMode: map['LogicalMode'],
  8455. creator: map['Creator'],
  8456. guid: map['Guid'],
  8457. showChildFeatures: map['ShowChildFeatures'],
  8458. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  8459. isAutoCalculated: map['IsAutoCalculated'],
  8460. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8461. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8462. );
  8463. }
  8464. Map<String, dynamic> toJson() {
  8465. final map = super.toJson();
  8466. if(logicalName != null)
  8467. map['LogicalName'] = logicalName;
  8468. if(logicalMode != null)
  8469. map['LogicalMode'] = logicalMode;
  8470. return map;
  8471. }
  8472. }
  8473. class GeometryFeatureDTO extends MeasuredFeatureDTO{
  8474. bool isVisible;
  8475. String? annotation;
  8476. String? briefAnnotation;
  8477. Unit xUnit;
  8478. Unit yUnit;
  8479. bool showAnnotation;
  8480. bool showCalliper;
  8481. List<PointDTO >? points;
  8482. GeometryFeatureDTO({
  8483. this.isVisible = false,
  8484. this.annotation,
  8485. this.briefAnnotation,
  8486. this.xUnit = Unit.None,
  8487. this.yUnit = Unit.None,
  8488. this.showAnnotation = false,
  8489. this.showCalliper = false,
  8490. this.points,
  8491. String? typeName,
  8492. String? creator,
  8493. String? guid,
  8494. bool showChildFeatures = false,
  8495. DateTime? timeStamp,
  8496. bool isAutoCalculated = false,
  8497. List<MeasuredValueDTO >? values,
  8498. List<MeasuredFeatureDTO >? childFeatures,
  8499. }) : super(
  8500. typeName: typeName,
  8501. creator: creator,
  8502. guid: guid,
  8503. showChildFeatures: showChildFeatures,
  8504. timeStamp: timeStamp,
  8505. isAutoCalculated: isAutoCalculated,
  8506. values: values,
  8507. childFeatures: childFeatures,
  8508. );
  8509. factory GeometryFeatureDTO.fromJson(Map<String, dynamic> map) {
  8510. return GeometryFeatureDTO(
  8511. isVisible: map['IsVisible'],
  8512. annotation: map['Annotation'],
  8513. briefAnnotation: map['BriefAnnotation'],
  8514. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  8515. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  8516. showAnnotation: map['ShowAnnotation'],
  8517. showCalliper: map['ShowCalliper'],
  8518. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8519. typeName: map['TypeName'],
  8520. creator: map['Creator'],
  8521. guid: map['Guid'],
  8522. showChildFeatures: map['ShowChildFeatures'],
  8523. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  8524. isAutoCalculated: map['IsAutoCalculated'],
  8525. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8526. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8527. );
  8528. }
  8529. Map<String, dynamic> toJson() {
  8530. final map = super.toJson();
  8531. map['IsVisible'] = isVisible;
  8532. if(annotation != null)
  8533. map['Annotation'] = annotation;
  8534. if(briefAnnotation != null)
  8535. map['BriefAnnotation'] = briefAnnotation;
  8536. map['XUnit'] = xUnit.index;
  8537. map['YUnit'] = yUnit.index;
  8538. map['ShowAnnotation'] = showAnnotation;
  8539. map['ShowCalliper'] = showCalliper;
  8540. if(points != null)
  8541. map['Points'] = points;
  8542. return map;
  8543. }
  8544. }
  8545. class CardiacCycleDTO {
  8546. int index;
  8547. PointDTO? systoleStart;
  8548. PointDTO? diastoleEnd;
  8549. PointDTO? peakSystolic;
  8550. PointDTO? minimumAbsoluteVelocity;
  8551. CardiacCycleDTO({
  8552. this.index = 0,
  8553. this.systoleStart,
  8554. this.diastoleEnd,
  8555. this.peakSystolic,
  8556. this.minimumAbsoluteVelocity,
  8557. });
  8558. factory CardiacCycleDTO.fromJson(Map<String, dynamic> map) {
  8559. return CardiacCycleDTO(
  8560. index: map['Index'],
  8561. systoleStart: map['SystoleStart'] != null ? PointDTO.fromJson(map['SystoleStart']) : null,
  8562. diastoleEnd: map['DiastoleEnd'] != null ? PointDTO.fromJson(map['DiastoleEnd']) : null,
  8563. peakSystolic: map['PeakSystolic'] != null ? PointDTO.fromJson(map['PeakSystolic']) : null,
  8564. minimumAbsoluteVelocity: map['MinimumAbsoluteVelocity'] != null ? PointDTO.fromJson(map['MinimumAbsoluteVelocity']) : null,
  8565. );
  8566. }
  8567. Map<String, dynamic> toJson() {
  8568. final map = Map<String, dynamic>();
  8569. map['Index'] = index;
  8570. if(systoleStart != null)
  8571. map['SystoleStart'] = systoleStart;
  8572. if(diastoleEnd != null)
  8573. map['DiastoleEnd'] = diastoleEnd;
  8574. if(peakSystolic != null)
  8575. map['PeakSystolic'] = peakSystolic;
  8576. if(minimumAbsoluteVelocity != null)
  8577. map['MinimumAbsoluteVelocity'] = minimumAbsoluteVelocity;
  8578. return map;
  8579. }
  8580. }
  8581. class GrowthPercentileDTO {
  8582. int oBTableCategory;
  8583. String? tableAuthor;
  8584. String? measureItem;
  8585. int gAinDays;
  8586. int status;
  8587. double value;
  8588. double tableDataLimitation;
  8589. double zScoreValue;
  8590. int zScoreStatus;
  8591. GrowthPercentileDTO({
  8592. this.oBTableCategory = 0,
  8593. this.tableAuthor,
  8594. this.measureItem,
  8595. this.gAinDays = 0,
  8596. this.status = 0,
  8597. this.value = 0,
  8598. this.tableDataLimitation = 0,
  8599. this.zScoreValue = 0,
  8600. this.zScoreStatus = 0,
  8601. });
  8602. factory GrowthPercentileDTO.fromJson(Map<String, dynamic> map) {
  8603. return GrowthPercentileDTO(
  8604. oBTableCategory: map['OBTableCategory'],
  8605. tableAuthor: map['TableAuthor'],
  8606. measureItem: map['MeasureItem'],
  8607. gAinDays: map['GAinDays'],
  8608. status: map['Status'],
  8609. value: double.parse(map['Value'].toString()),
  8610. tableDataLimitation: double.parse(map['TableDataLimitation'].toString()),
  8611. zScoreValue: double.parse(map['ZScoreValue'].toString()),
  8612. zScoreStatus: map['ZScoreStatus'],
  8613. );
  8614. }
  8615. Map<String, dynamic> toJson() {
  8616. final map = Map<String, dynamic>();
  8617. map['OBTableCategory'] = oBTableCategory;
  8618. if(tableAuthor != null)
  8619. map['TableAuthor'] = tableAuthor;
  8620. if(measureItem != null)
  8621. map['MeasureItem'] = measureItem;
  8622. map['GAinDays'] = gAinDays;
  8623. map['Status'] = status;
  8624. map['Value'] = value;
  8625. map['TableDataLimitation'] = tableDataLimitation;
  8626. map['ZScoreValue'] = zScoreValue;
  8627. map['ZScoreStatus'] = zScoreStatus;
  8628. return map;
  8629. }
  8630. }
  8631. class GrowthAgeDTO {
  8632. int oBTableCategory;
  8633. String? tableAuthor;
  8634. String? measureItem;
  8635. int days;
  8636. int status;
  8637. int minDays;
  8638. int maxDays;
  8639. GrowthAgeDTO({
  8640. this.oBTableCategory = 0,
  8641. this.tableAuthor,
  8642. this.measureItem,
  8643. this.days = 0,
  8644. this.status = 0,
  8645. this.minDays = 0,
  8646. this.maxDays = 0,
  8647. });
  8648. factory GrowthAgeDTO.fromJson(Map<String, dynamic> map) {
  8649. return GrowthAgeDTO(
  8650. oBTableCategory: map['OBTableCategory'],
  8651. tableAuthor: map['TableAuthor'],
  8652. measureItem: map['MeasureItem'],
  8653. days: map['Days'],
  8654. status: map['Status'],
  8655. minDays: map['MinDays'],
  8656. maxDays: map['MaxDays'],
  8657. );
  8658. }
  8659. Map<String, dynamic> toJson() {
  8660. final map = Map<String, dynamic>();
  8661. map['OBTableCategory'] = oBTableCategory;
  8662. if(tableAuthor != null)
  8663. map['TableAuthor'] = tableAuthor;
  8664. if(measureItem != null)
  8665. map['MeasureItem'] = measureItem;
  8666. map['Days'] = days;
  8667. map['Status'] = status;
  8668. map['MinDays'] = minDays;
  8669. map['MaxDays'] = maxDays;
  8670. return map;
  8671. }
  8672. }
  8673. class FetalGrowthIndexDTO {
  8674. GrowthPercentileDTO? percentile;
  8675. GrowthAgeDTO? growthAge;
  8676. DateTime? estimateDueDate;
  8677. FetalGrowthIndexDTO({
  8678. this.percentile,
  8679. this.growthAge,
  8680. this.estimateDueDate,
  8681. });
  8682. factory FetalGrowthIndexDTO.fromJson(Map<String, dynamic> map) {
  8683. return FetalGrowthIndexDTO(
  8684. percentile: map['Percentile'] != null ? GrowthPercentileDTO.fromJson(map['Percentile']) : null,
  8685. growthAge: map['GrowthAge'] != null ? GrowthAgeDTO.fromJson(map['GrowthAge']) : null,
  8686. estimateDueDate: map['EstimateDueDate'] != null ? DateTime.parse(map['EstimateDueDate']) : null,
  8687. );
  8688. }
  8689. Map<String, dynamic> toJson() {
  8690. final map = Map<String, dynamic>();
  8691. if(percentile != null)
  8692. map['Percentile'] = percentile;
  8693. if(growthAge != null)
  8694. map['GrowthAge'] = growthAge;
  8695. if(estimateDueDate != null)
  8696. map['EstimateDueDate'] = JsonRpcUtils.dateFormat(estimateDueDate!);
  8697. return map;
  8698. }
  8699. }
  8700. class FloatValueDTO extends MeasuredValueDTO{
  8701. FetalGrowthIndexDTO? fetalGrowthIndex;
  8702. String? typeName;
  8703. String? name;
  8704. String? description;
  8705. bool worksheetAffinity;
  8706. String? briefDescription;
  8707. String? value;
  8708. Unit unit;
  8709. Unit targetUnit;
  8710. FloatValueDTO({
  8711. this.fetalGrowthIndex,
  8712. this.typeName,
  8713. this.name,
  8714. this.description,
  8715. this.worksheetAffinity = false,
  8716. this.briefDescription,
  8717. this.value,
  8718. this.unit = Unit.None,
  8719. this.targetUnit = Unit.None,
  8720. });
  8721. factory FloatValueDTO.fromJson(Map<String, dynamic> map) {
  8722. return FloatValueDTO(
  8723. fetalGrowthIndex: map['FetalGrowthIndex'] != null ? FetalGrowthIndexDTO.fromJson(map['FetalGrowthIndex']) : null,
  8724. typeName: map['TypeName'],
  8725. name: map['Name'],
  8726. description: map['Description'],
  8727. worksheetAffinity: map['WorksheetAffinity'],
  8728. briefDescription: map['BriefDescription'],
  8729. value: map['Value'],
  8730. unit: Unit.values.firstWhere((e) => e.index == map['Unit']),
  8731. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  8732. );
  8733. }
  8734. Map<String, dynamic> toJson() {
  8735. final map = super.toJson();
  8736. return map;
  8737. }
  8738. }
  8739. class DopplerTraceFeatureDTO extends GeometryFeatureDTO{
  8740. int avgHeartCycle;
  8741. ASETypeEnum traceType;
  8742. List<PointDTO >? maxTraceLine;
  8743. List<CardiacCycleDTO >? cardiacCycles;
  8744. List<FloatValueDTO >? autoMeasureValues;
  8745. DopplerTraceFeatureDTO({
  8746. String? typeName,
  8747. this.avgHeartCycle = 0,
  8748. this.traceType = ASETypeEnum.Off,
  8749. this.maxTraceLine,
  8750. this.cardiacCycles,
  8751. this.autoMeasureValues,
  8752. bool isVisible = false,
  8753. String? annotation,
  8754. String? briefAnnotation,
  8755. Unit xUnit = Unit.None,
  8756. Unit yUnit = Unit.None,
  8757. bool showAnnotation = false,
  8758. bool showCalliper = false,
  8759. List<PointDTO >? points,
  8760. String? creator,
  8761. String? guid,
  8762. bool showChildFeatures = false,
  8763. DateTime? timeStamp,
  8764. bool isAutoCalculated = false,
  8765. List<MeasuredValueDTO >? values,
  8766. List<MeasuredFeatureDTO >? childFeatures,
  8767. }) : super(
  8768. isVisible: isVisible,
  8769. annotation: annotation,
  8770. briefAnnotation: briefAnnotation,
  8771. xUnit: xUnit,
  8772. yUnit: yUnit,
  8773. showAnnotation: showAnnotation,
  8774. showCalliper: showCalliper,
  8775. points: points,
  8776. typeName: typeName,
  8777. creator: creator,
  8778. guid: guid,
  8779. showChildFeatures: showChildFeatures,
  8780. timeStamp: timeStamp,
  8781. isAutoCalculated: isAutoCalculated,
  8782. values: values,
  8783. childFeatures: childFeatures,
  8784. );
  8785. factory DopplerTraceFeatureDTO.fromJson(Map<String, dynamic> map) {
  8786. return DopplerTraceFeatureDTO(
  8787. typeName: map['TypeName'],
  8788. avgHeartCycle: map['AvgHeartCycle'],
  8789. traceType: ASETypeEnum.values.firstWhere((e) => e.index == map['TraceType']),
  8790. maxTraceLine: map['MaxTraceLine'] != null ? (map['MaxTraceLine'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8791. cardiacCycles: map['CardiacCycles'] != null ? (map['CardiacCycles'] as List).map((e)=>CardiacCycleDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8792. autoMeasureValues: map['AutoMeasureValues'] != null ? (map['AutoMeasureValues'] as List).map((e)=>FloatValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8793. isVisible: map['IsVisible'],
  8794. annotation: map['Annotation'],
  8795. briefAnnotation: map['BriefAnnotation'],
  8796. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  8797. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  8798. showAnnotation: map['ShowAnnotation'],
  8799. showCalliper: map['ShowCalliper'],
  8800. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8801. creator: map['Creator'],
  8802. guid: map['Guid'],
  8803. showChildFeatures: map['ShowChildFeatures'],
  8804. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  8805. isAutoCalculated: map['IsAutoCalculated'],
  8806. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8807. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8808. );
  8809. }
  8810. Map<String, dynamic> toJson() {
  8811. final map = super.toJson();
  8812. map['AvgHeartCycle'] = avgHeartCycle;
  8813. map['TraceType'] = traceType.index;
  8814. if(maxTraceLine != null)
  8815. map['MaxTraceLine'] = maxTraceLine;
  8816. if(cardiacCycles != null)
  8817. map['CardiacCycles'] = cardiacCycles;
  8818. if(autoMeasureValues != null)
  8819. map['AutoMeasureValues'] = autoMeasureValues;
  8820. return map;
  8821. }
  8822. }
  8823. class EllipseFeatureDTO extends GeometryFeatureDTO{
  8824. double angle;
  8825. EllipseFeatureDTO({
  8826. String? typeName,
  8827. this.angle = 0,
  8828. bool isVisible = false,
  8829. String? annotation,
  8830. String? briefAnnotation,
  8831. Unit xUnit = Unit.None,
  8832. Unit yUnit = Unit.None,
  8833. bool showAnnotation = false,
  8834. bool showCalliper = false,
  8835. List<PointDTO >? points,
  8836. String? creator,
  8837. String? guid,
  8838. bool showChildFeatures = false,
  8839. DateTime? timeStamp,
  8840. bool isAutoCalculated = false,
  8841. List<MeasuredValueDTO >? values,
  8842. List<MeasuredFeatureDTO >? childFeatures,
  8843. }) : super(
  8844. isVisible: isVisible,
  8845. annotation: annotation,
  8846. briefAnnotation: briefAnnotation,
  8847. xUnit: xUnit,
  8848. yUnit: yUnit,
  8849. showAnnotation: showAnnotation,
  8850. showCalliper: showCalliper,
  8851. points: points,
  8852. typeName: typeName,
  8853. creator: creator,
  8854. guid: guid,
  8855. showChildFeatures: showChildFeatures,
  8856. timeStamp: timeStamp,
  8857. isAutoCalculated: isAutoCalculated,
  8858. values: values,
  8859. childFeatures: childFeatures,
  8860. );
  8861. factory EllipseFeatureDTO.fromJson(Map<String, dynamic> map) {
  8862. return EllipseFeatureDTO(
  8863. typeName: map['TypeName'],
  8864. angle: double.parse(map['Angle'].toString()),
  8865. isVisible: map['IsVisible'],
  8866. annotation: map['Annotation'],
  8867. briefAnnotation: map['BriefAnnotation'],
  8868. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  8869. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  8870. showAnnotation: map['ShowAnnotation'],
  8871. showCalliper: map['ShowCalliper'],
  8872. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8873. creator: map['Creator'],
  8874. guid: map['Guid'],
  8875. showChildFeatures: map['ShowChildFeatures'],
  8876. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  8877. isAutoCalculated: map['IsAutoCalculated'],
  8878. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8879. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8880. );
  8881. }
  8882. Map<String, dynamic> toJson() {
  8883. final map = super.toJson();
  8884. map['Angle'] = angle;
  8885. return map;
  8886. }
  8887. }
  8888. class AutoMeasureGeometryDTO {
  8889. int index;
  8890. List<PointDTO >? points;
  8891. AutoMeasureGeometryDTO({
  8892. this.index = 0,
  8893. this.points,
  8894. });
  8895. factory AutoMeasureGeometryDTO.fromJson(Map<String, dynamic> map) {
  8896. return AutoMeasureGeometryDTO(
  8897. index: map['Index'],
  8898. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8899. );
  8900. }
  8901. Map<String, dynamic> toJson() {
  8902. final map = Map<String, dynamic>();
  8903. map['Index'] = index;
  8904. if(points != null)
  8905. map['Points'] = points;
  8906. return map;
  8907. }
  8908. }
  8909. class FollicleShapeFeatureDTO extends GeometryFeatureDTO{
  8910. List<AutoMeasureGeometryDTO >? geometries;
  8911. FollicleShapeFeatureDTO({
  8912. String? typeName,
  8913. this.geometries,
  8914. bool isVisible = false,
  8915. String? annotation,
  8916. String? briefAnnotation,
  8917. Unit xUnit = Unit.None,
  8918. Unit yUnit = Unit.None,
  8919. bool showAnnotation = false,
  8920. bool showCalliper = false,
  8921. List<PointDTO >? points,
  8922. String? creator,
  8923. String? guid,
  8924. bool showChildFeatures = false,
  8925. DateTime? timeStamp,
  8926. bool isAutoCalculated = false,
  8927. List<MeasuredValueDTO >? values,
  8928. List<MeasuredFeatureDTO >? childFeatures,
  8929. }) : super(
  8930. isVisible: isVisible,
  8931. annotation: annotation,
  8932. briefAnnotation: briefAnnotation,
  8933. xUnit: xUnit,
  8934. yUnit: yUnit,
  8935. showAnnotation: showAnnotation,
  8936. showCalliper: showCalliper,
  8937. points: points,
  8938. typeName: typeName,
  8939. creator: creator,
  8940. guid: guid,
  8941. showChildFeatures: showChildFeatures,
  8942. timeStamp: timeStamp,
  8943. isAutoCalculated: isAutoCalculated,
  8944. values: values,
  8945. childFeatures: childFeatures,
  8946. );
  8947. factory FollicleShapeFeatureDTO.fromJson(Map<String, dynamic> map) {
  8948. return FollicleShapeFeatureDTO(
  8949. typeName: map['TypeName'],
  8950. geometries: map['Geometries'] != null ? (map['Geometries'] as List).map((e)=>AutoMeasureGeometryDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8951. isVisible: map['IsVisible'],
  8952. annotation: map['Annotation'],
  8953. briefAnnotation: map['BriefAnnotation'],
  8954. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  8955. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  8956. showAnnotation: map['ShowAnnotation'],
  8957. showCalliper: map['ShowCalliper'],
  8958. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8959. creator: map['Creator'],
  8960. guid: map['Guid'],
  8961. showChildFeatures: map['ShowChildFeatures'],
  8962. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  8963. isAutoCalculated: map['IsAutoCalculated'],
  8964. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8965. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8966. );
  8967. }
  8968. Map<String, dynamic> toJson() {
  8969. final map = super.toJson();
  8970. if(geometries != null)
  8971. map['Geometries'] = geometries;
  8972. return map;
  8973. }
  8974. }
  8975. class LocationFeatureDTO extends GeometryFeatureDTO{
  8976. LocationFeatureDTO({
  8977. String? typeName,
  8978. bool isVisible = false,
  8979. String? annotation,
  8980. String? briefAnnotation,
  8981. Unit xUnit = Unit.None,
  8982. Unit yUnit = Unit.None,
  8983. bool showAnnotation = false,
  8984. bool showCalliper = false,
  8985. List<PointDTO >? points,
  8986. String? creator,
  8987. String? guid,
  8988. bool showChildFeatures = false,
  8989. DateTime? timeStamp,
  8990. bool isAutoCalculated = false,
  8991. List<MeasuredValueDTO >? values,
  8992. List<MeasuredFeatureDTO >? childFeatures,
  8993. }) : super(
  8994. isVisible: isVisible,
  8995. annotation: annotation,
  8996. briefAnnotation: briefAnnotation,
  8997. xUnit: xUnit,
  8998. yUnit: yUnit,
  8999. showAnnotation: showAnnotation,
  9000. showCalliper: showCalliper,
  9001. points: points,
  9002. typeName: typeName,
  9003. creator: creator,
  9004. guid: guid,
  9005. showChildFeatures: showChildFeatures,
  9006. timeStamp: timeStamp,
  9007. isAutoCalculated: isAutoCalculated,
  9008. values: values,
  9009. childFeatures: childFeatures,
  9010. );
  9011. factory LocationFeatureDTO.fromJson(Map<String, dynamic> map) {
  9012. return LocationFeatureDTO(
  9013. typeName: map['TypeName'],
  9014. isVisible: map['IsVisible'],
  9015. annotation: map['Annotation'],
  9016. briefAnnotation: map['BriefAnnotation'],
  9017. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  9018. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  9019. showAnnotation: map['ShowAnnotation'],
  9020. showCalliper: map['ShowCalliper'],
  9021. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9022. creator: map['Creator'],
  9023. guid: map['Guid'],
  9024. showChildFeatures: map['ShowChildFeatures'],
  9025. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  9026. isAutoCalculated: map['IsAutoCalculated'],
  9027. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9028. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9029. );
  9030. }
  9031. Map<String, dynamic> toJson() {
  9032. final map = super.toJson();
  9033. return map;
  9034. }
  9035. }
  9036. class RayFeatureDTO extends LocationFeatureDTO{
  9037. bool isReverse;
  9038. double angle;
  9039. RayFeatureDTO({
  9040. String? typeName,
  9041. this.isReverse = false,
  9042. this.angle = 0,
  9043. bool isVisible = false,
  9044. String? annotation,
  9045. String? briefAnnotation,
  9046. Unit xUnit = Unit.None,
  9047. Unit yUnit = Unit.None,
  9048. bool showAnnotation = false,
  9049. bool showCalliper = false,
  9050. List<PointDTO >? points,
  9051. String? creator,
  9052. String? guid,
  9053. bool showChildFeatures = false,
  9054. DateTime? timeStamp,
  9055. bool isAutoCalculated = false,
  9056. List<MeasuredValueDTO >? values,
  9057. List<MeasuredFeatureDTO >? childFeatures,
  9058. }) : super(
  9059. typeName: typeName,
  9060. isVisible: isVisible,
  9061. annotation: annotation,
  9062. briefAnnotation: briefAnnotation,
  9063. xUnit: xUnit,
  9064. yUnit: yUnit,
  9065. showAnnotation: showAnnotation,
  9066. showCalliper: showCalliper,
  9067. points: points,
  9068. creator: creator,
  9069. guid: guid,
  9070. showChildFeatures: showChildFeatures,
  9071. timeStamp: timeStamp,
  9072. isAutoCalculated: isAutoCalculated,
  9073. values: values,
  9074. childFeatures: childFeatures,
  9075. );
  9076. factory RayFeatureDTO.fromJson(Map<String, dynamic> map) {
  9077. return RayFeatureDTO(
  9078. typeName: map['TypeName'],
  9079. isReverse: map['IsReverse'],
  9080. angle: double.parse(map['Angle'].toString()),
  9081. isVisible: map['IsVisible'],
  9082. annotation: map['Annotation'],
  9083. briefAnnotation: map['BriefAnnotation'],
  9084. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  9085. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  9086. showAnnotation: map['ShowAnnotation'],
  9087. showCalliper: map['ShowCalliper'],
  9088. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9089. creator: map['Creator'],
  9090. guid: map['Guid'],
  9091. showChildFeatures: map['ShowChildFeatures'],
  9092. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  9093. isAutoCalculated: map['IsAutoCalculated'],
  9094. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9095. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9096. );
  9097. }
  9098. Map<String, dynamic> toJson() {
  9099. final map = super.toJson();
  9100. map['IsReverse'] = isReverse;
  9101. map['Angle'] = angle;
  9102. return map;
  9103. }
  9104. }
  9105. class ManualTraceFeatureDTO extends GeometryFeatureDTO{
  9106. ManualTraceFeatureDTO({
  9107. String? typeName,
  9108. bool isVisible = false,
  9109. String? annotation,
  9110. String? briefAnnotation,
  9111. Unit xUnit = Unit.None,
  9112. Unit yUnit = Unit.None,
  9113. bool showAnnotation = false,
  9114. bool showCalliper = false,
  9115. List<PointDTO >? points,
  9116. String? creator,
  9117. String? guid,
  9118. bool showChildFeatures = false,
  9119. DateTime? timeStamp,
  9120. bool isAutoCalculated = false,
  9121. List<MeasuredValueDTO >? values,
  9122. List<MeasuredFeatureDTO >? childFeatures,
  9123. }) : super(
  9124. isVisible: isVisible,
  9125. annotation: annotation,
  9126. briefAnnotation: briefAnnotation,
  9127. xUnit: xUnit,
  9128. yUnit: yUnit,
  9129. showAnnotation: showAnnotation,
  9130. showCalliper: showCalliper,
  9131. points: points,
  9132. typeName: typeName,
  9133. creator: creator,
  9134. guid: guid,
  9135. showChildFeatures: showChildFeatures,
  9136. timeStamp: timeStamp,
  9137. isAutoCalculated: isAutoCalculated,
  9138. values: values,
  9139. childFeatures: childFeatures,
  9140. );
  9141. factory ManualTraceFeatureDTO.fromJson(Map<String, dynamic> map) {
  9142. return ManualTraceFeatureDTO(
  9143. typeName: map['TypeName'],
  9144. isVisible: map['IsVisible'],
  9145. annotation: map['Annotation'],
  9146. briefAnnotation: map['BriefAnnotation'],
  9147. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  9148. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  9149. showAnnotation: map['ShowAnnotation'],
  9150. showCalliper: map['ShowCalliper'],
  9151. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9152. creator: map['Creator'],
  9153. guid: map['Guid'],
  9154. showChildFeatures: map['ShowChildFeatures'],
  9155. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  9156. isAutoCalculated: map['IsAutoCalculated'],
  9157. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9158. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9159. );
  9160. }
  9161. Map<String, dynamic> toJson() {
  9162. final map = super.toJson();
  9163. return map;
  9164. }
  9165. }
  9166. class PolyLineFeatureDTO extends MeasuredFeatureDTO{
  9167. bool isClosed;
  9168. double splineTension;
  9169. PolyLineFeatureDTO({
  9170. String? typeName,
  9171. this.isClosed = false,
  9172. this.splineTension = 0,
  9173. String? creator,
  9174. String? guid,
  9175. bool showChildFeatures = false,
  9176. DateTime? timeStamp,
  9177. bool isAutoCalculated = false,
  9178. List<MeasuredValueDTO >? values,
  9179. List<MeasuredFeatureDTO >? childFeatures,
  9180. }) : super(
  9181. typeName: typeName,
  9182. creator: creator,
  9183. guid: guid,
  9184. showChildFeatures: showChildFeatures,
  9185. timeStamp: timeStamp,
  9186. isAutoCalculated: isAutoCalculated,
  9187. values: values,
  9188. childFeatures: childFeatures,
  9189. );
  9190. factory PolyLineFeatureDTO.fromJson(Map<String, dynamic> map) {
  9191. return PolyLineFeatureDTO(
  9192. typeName: map['TypeName'],
  9193. isClosed: map['IsClosed'],
  9194. splineTension: double.parse(map['SplineTension'].toString()),
  9195. creator: map['Creator'],
  9196. guid: map['Guid'],
  9197. showChildFeatures: map['ShowChildFeatures'],
  9198. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  9199. isAutoCalculated: map['IsAutoCalculated'],
  9200. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9201. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9202. );
  9203. }
  9204. Map<String, dynamic> toJson() {
  9205. final map = super.toJson();
  9206. map['IsClosed'] = isClosed;
  9207. map['SplineTension'] = splineTension;
  9208. return map;
  9209. }
  9210. }
  9211. class TraceLineFeatureDTO extends PolyLineFeatureDTO{
  9212. TraceLineFeatureDTO({
  9213. String? typeName,
  9214. bool isClosed = false,
  9215. double splineTension = 0,
  9216. String? creator,
  9217. String? guid,
  9218. bool showChildFeatures = false,
  9219. DateTime? timeStamp,
  9220. bool isAutoCalculated = false,
  9221. List<MeasuredValueDTO >? values,
  9222. List<MeasuredFeatureDTO >? childFeatures,
  9223. }) : super(
  9224. typeName: typeName,
  9225. isClosed: isClosed,
  9226. splineTension: splineTension,
  9227. creator: creator,
  9228. guid: guid,
  9229. showChildFeatures: showChildFeatures,
  9230. timeStamp: timeStamp,
  9231. isAutoCalculated: isAutoCalculated,
  9232. values: values,
  9233. childFeatures: childFeatures,
  9234. );
  9235. factory TraceLineFeatureDTO.fromJson(Map<String, dynamic> map) {
  9236. return TraceLineFeatureDTO(
  9237. typeName: map['TypeName'],
  9238. isClosed: map['IsClosed'],
  9239. splineTension: double.parse(map['SplineTension'].toString()),
  9240. creator: map['Creator'],
  9241. guid: map['Guid'],
  9242. showChildFeatures: map['ShowChildFeatures'],
  9243. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  9244. isAutoCalculated: map['IsAutoCalculated'],
  9245. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9246. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9247. );
  9248. }
  9249. Map<String, dynamic> toJson() {
  9250. final map = super.toJson();
  9251. return map;
  9252. }
  9253. }
  9254. class SimpsonPathFeatureDTO extends TraceLineFeatureDTO{
  9255. PointDTO? centerLineMovablePoint;
  9256. SimpsonPathFeatureDTO({
  9257. String? typeName,
  9258. this.centerLineMovablePoint,
  9259. bool isClosed = false,
  9260. double splineTension = 0,
  9261. String? creator,
  9262. String? guid,
  9263. bool showChildFeatures = false,
  9264. DateTime? timeStamp,
  9265. bool isAutoCalculated = false,
  9266. List<MeasuredValueDTO >? values,
  9267. List<MeasuredFeatureDTO >? childFeatures,
  9268. }) : super(
  9269. typeName: typeName,
  9270. isClosed: isClosed,
  9271. splineTension: splineTension,
  9272. creator: creator,
  9273. guid: guid,
  9274. showChildFeatures: showChildFeatures,
  9275. timeStamp: timeStamp,
  9276. isAutoCalculated: isAutoCalculated,
  9277. values: values,
  9278. childFeatures: childFeatures,
  9279. );
  9280. factory SimpsonPathFeatureDTO.fromJson(Map<String, dynamic> map) {
  9281. return SimpsonPathFeatureDTO(
  9282. typeName: map['TypeName'],
  9283. centerLineMovablePoint: map['CenterLineMovablePoint'] != null ? PointDTO.fromJson(map['CenterLineMovablePoint']) : null,
  9284. isClosed: map['IsClosed'],
  9285. splineTension: double.parse(map['SplineTension'].toString()),
  9286. creator: map['Creator'],
  9287. guid: map['Guid'],
  9288. showChildFeatures: map['ShowChildFeatures'],
  9289. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  9290. isAutoCalculated: map['IsAutoCalculated'],
  9291. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9292. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9293. );
  9294. }
  9295. Map<String, dynamic> toJson() {
  9296. final map = super.toJson();
  9297. if(centerLineMovablePoint != null)
  9298. map['CenterLineMovablePoint'] = centerLineMovablePoint;
  9299. return map;
  9300. }
  9301. }
  9302. class RectFeatureDTO extends GeometryFeatureDTO{
  9303. bool showRootFeature;
  9304. List<MeasuredFeatureDTO >? autoLines;
  9305. RectFeatureDTO({
  9306. String? typeName,
  9307. this.showRootFeature = false,
  9308. this.autoLines,
  9309. bool isVisible = false,
  9310. String? annotation,
  9311. String? briefAnnotation,
  9312. Unit xUnit = Unit.None,
  9313. Unit yUnit = Unit.None,
  9314. bool showAnnotation = false,
  9315. bool showCalliper = false,
  9316. List<PointDTO >? points,
  9317. String? creator,
  9318. String? guid,
  9319. bool showChildFeatures = false,
  9320. DateTime? timeStamp,
  9321. bool isAutoCalculated = false,
  9322. List<MeasuredValueDTO >? values,
  9323. List<MeasuredFeatureDTO >? childFeatures,
  9324. }) : super(
  9325. isVisible: isVisible,
  9326. annotation: annotation,
  9327. briefAnnotation: briefAnnotation,
  9328. xUnit: xUnit,
  9329. yUnit: yUnit,
  9330. showAnnotation: showAnnotation,
  9331. showCalliper: showCalliper,
  9332. points: points,
  9333. typeName: typeName,
  9334. creator: creator,
  9335. guid: guid,
  9336. showChildFeatures: showChildFeatures,
  9337. timeStamp: timeStamp,
  9338. isAutoCalculated: isAutoCalculated,
  9339. values: values,
  9340. childFeatures: childFeatures,
  9341. );
  9342. factory RectFeatureDTO.fromJson(Map<String, dynamic> map) {
  9343. return RectFeatureDTO(
  9344. typeName: map['TypeName'],
  9345. showRootFeature: map['ShowRootFeature'],
  9346. autoLines: map['AutoLines'] != null ? (map['AutoLines'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9347. isVisible: map['IsVisible'],
  9348. annotation: map['Annotation'],
  9349. briefAnnotation: map['BriefAnnotation'],
  9350. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  9351. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  9352. showAnnotation: map['ShowAnnotation'],
  9353. showCalliper: map['ShowCalliper'],
  9354. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9355. creator: map['Creator'],
  9356. guid: map['Guid'],
  9357. showChildFeatures: map['ShowChildFeatures'],
  9358. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  9359. isAutoCalculated: map['IsAutoCalculated'],
  9360. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9361. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9362. );
  9363. }
  9364. Map<String, dynamic> toJson() {
  9365. final map = super.toJson();
  9366. map['ShowRootFeature'] = showRootFeature;
  9367. if(autoLines != null)
  9368. map['AutoLines'] = autoLines;
  9369. return map;
  9370. }
  9371. }
  9372. class FollicleRectFeatureDTO extends RectFeatureDTO{
  9373. FollicleRectFeatureDTO({
  9374. String? typeName,
  9375. bool showRootFeature = false,
  9376. List<MeasuredFeatureDTO >? autoLines,
  9377. bool isVisible = false,
  9378. String? annotation,
  9379. String? briefAnnotation,
  9380. Unit xUnit = Unit.None,
  9381. Unit yUnit = Unit.None,
  9382. bool showAnnotation = false,
  9383. bool showCalliper = false,
  9384. List<PointDTO >? points,
  9385. String? creator,
  9386. String? guid,
  9387. bool showChildFeatures = false,
  9388. DateTime? timeStamp,
  9389. bool isAutoCalculated = false,
  9390. List<MeasuredValueDTO >? values,
  9391. List<MeasuredFeatureDTO >? childFeatures,
  9392. }) : super(
  9393. typeName: typeName,
  9394. showRootFeature: showRootFeature,
  9395. autoLines: autoLines,
  9396. isVisible: isVisible,
  9397. annotation: annotation,
  9398. briefAnnotation: briefAnnotation,
  9399. xUnit: xUnit,
  9400. yUnit: yUnit,
  9401. showAnnotation: showAnnotation,
  9402. showCalliper: showCalliper,
  9403. points: points,
  9404. creator: creator,
  9405. guid: guid,
  9406. showChildFeatures: showChildFeatures,
  9407. timeStamp: timeStamp,
  9408. isAutoCalculated: isAutoCalculated,
  9409. values: values,
  9410. childFeatures: childFeatures,
  9411. );
  9412. factory FollicleRectFeatureDTO.fromJson(Map<String, dynamic> map) {
  9413. return FollicleRectFeatureDTO(
  9414. typeName: map['TypeName'],
  9415. showRootFeature: map['ShowRootFeature'],
  9416. autoLines: map['AutoLines'] != null ? (map['AutoLines'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9417. isVisible: map['IsVisible'],
  9418. annotation: map['Annotation'],
  9419. briefAnnotation: map['BriefAnnotation'],
  9420. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  9421. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  9422. showAnnotation: map['ShowAnnotation'],
  9423. showCalliper: map['ShowCalliper'],
  9424. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9425. creator: map['Creator'],
  9426. guid: map['Guid'],
  9427. showChildFeatures: map['ShowChildFeatures'],
  9428. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  9429. isAutoCalculated: map['IsAutoCalculated'],
  9430. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9431. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9432. );
  9433. }
  9434. Map<String, dynamic> toJson() {
  9435. final map = super.toJson();
  9436. return map;
  9437. }
  9438. }
  9439. class StraightLineFeatureDTO extends GeometryFeatureDTO{
  9440. StraightLineShapeEnum shapeType;
  9441. bool useDashLine;
  9442. StraightLineFeatureDTO({
  9443. String? typeName,
  9444. this.shapeType = StraightLineShapeEnum.StraightLine,
  9445. this.useDashLine = false,
  9446. bool isVisible = false,
  9447. String? annotation,
  9448. String? briefAnnotation,
  9449. Unit xUnit = Unit.None,
  9450. Unit yUnit = Unit.None,
  9451. bool showAnnotation = false,
  9452. bool showCalliper = false,
  9453. List<PointDTO >? points,
  9454. String? creator,
  9455. String? guid,
  9456. bool showChildFeatures = false,
  9457. DateTime? timeStamp,
  9458. bool isAutoCalculated = false,
  9459. List<MeasuredValueDTO >? values,
  9460. List<MeasuredFeatureDTO >? childFeatures,
  9461. }) : super(
  9462. isVisible: isVisible,
  9463. annotation: annotation,
  9464. briefAnnotation: briefAnnotation,
  9465. xUnit: xUnit,
  9466. yUnit: yUnit,
  9467. showAnnotation: showAnnotation,
  9468. showCalliper: showCalliper,
  9469. points: points,
  9470. typeName: typeName,
  9471. creator: creator,
  9472. guid: guid,
  9473. showChildFeatures: showChildFeatures,
  9474. timeStamp: timeStamp,
  9475. isAutoCalculated: isAutoCalculated,
  9476. values: values,
  9477. childFeatures: childFeatures,
  9478. );
  9479. factory StraightLineFeatureDTO.fromJson(Map<String, dynamic> map) {
  9480. return StraightLineFeatureDTO(
  9481. typeName: map['TypeName'],
  9482. shapeType: StraightLineShapeEnum.values.firstWhere((e) => e.index == map['ShapeType']),
  9483. useDashLine: map['UseDashLine'],
  9484. isVisible: map['IsVisible'],
  9485. annotation: map['Annotation'],
  9486. briefAnnotation: map['BriefAnnotation'],
  9487. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  9488. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  9489. showAnnotation: map['ShowAnnotation'],
  9490. showCalliper: map['ShowCalliper'],
  9491. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9492. creator: map['Creator'],
  9493. guid: map['Guid'],
  9494. showChildFeatures: map['ShowChildFeatures'],
  9495. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  9496. isAutoCalculated: map['IsAutoCalculated'],
  9497. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9498. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9499. );
  9500. }
  9501. Map<String, dynamic> toJson() {
  9502. final map = super.toJson();
  9503. map['ShapeType'] = shapeType.index;
  9504. map['UseDashLine'] = useDashLine;
  9505. return map;
  9506. }
  9507. }
  9508. class VasPlaqueSplitterFeatureDTO extends GeometryFeatureDTO{
  9509. int maxZoneCount;
  9510. int currentZoneCount;
  9511. int angle;
  9512. List<PointDTO >? splitterLinesPoints;
  9513. VasPlaqueSplitterFeatureDTO({
  9514. String? typeName,
  9515. this.maxZoneCount = 0,
  9516. this.currentZoneCount = 0,
  9517. this.angle = 0,
  9518. bool isVisible = false,
  9519. this.splitterLinesPoints,
  9520. String? annotation,
  9521. String? briefAnnotation,
  9522. Unit xUnit = Unit.None,
  9523. Unit yUnit = Unit.None,
  9524. bool showAnnotation = false,
  9525. bool showCalliper = false,
  9526. List<PointDTO >? points,
  9527. String? creator,
  9528. String? guid,
  9529. bool showChildFeatures = false,
  9530. DateTime? timeStamp,
  9531. bool isAutoCalculated = false,
  9532. List<MeasuredValueDTO >? values,
  9533. List<MeasuredFeatureDTO >? childFeatures,
  9534. }) : super(
  9535. isVisible: isVisible,
  9536. annotation: annotation,
  9537. briefAnnotation: briefAnnotation,
  9538. xUnit: xUnit,
  9539. yUnit: yUnit,
  9540. showAnnotation: showAnnotation,
  9541. showCalliper: showCalliper,
  9542. points: points,
  9543. typeName: typeName,
  9544. creator: creator,
  9545. guid: guid,
  9546. showChildFeatures: showChildFeatures,
  9547. timeStamp: timeStamp,
  9548. isAutoCalculated: isAutoCalculated,
  9549. values: values,
  9550. childFeatures: childFeatures,
  9551. );
  9552. factory VasPlaqueSplitterFeatureDTO.fromJson(Map<String, dynamic> map) {
  9553. return VasPlaqueSplitterFeatureDTO(
  9554. typeName: map['TypeName'],
  9555. maxZoneCount: map['MaxZoneCount'],
  9556. currentZoneCount: map['CurrentZoneCount'],
  9557. angle: map['Angle'],
  9558. isVisible: map['IsVisible'],
  9559. splitterLinesPoints: map['SplitterLinesPoints'] != null ? (map['SplitterLinesPoints'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9560. annotation: map['Annotation'],
  9561. briefAnnotation: map['BriefAnnotation'],
  9562. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  9563. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  9564. showAnnotation: map['ShowAnnotation'],
  9565. showCalliper: map['ShowCalliper'],
  9566. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9567. creator: map['Creator'],
  9568. guid: map['Guid'],
  9569. showChildFeatures: map['ShowChildFeatures'],
  9570. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  9571. isAutoCalculated: map['IsAutoCalculated'],
  9572. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9573. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9574. );
  9575. }
  9576. Map<String, dynamic> toJson() {
  9577. final map = super.toJson();
  9578. map['MaxZoneCount'] = maxZoneCount;
  9579. map['CurrentZoneCount'] = currentZoneCount;
  9580. map['Angle'] = angle;
  9581. if(splitterLinesPoints != null)
  9582. map['SplitterLinesPoints'] = splitterLinesPoints;
  9583. return map;
  9584. }
  9585. }
  9586. class GrowthNormalRangeDTO {
  9587. String? typeName;
  9588. String? tableAuthor;
  9589. String? measureItem;
  9590. int gAinDays;
  9591. int status;
  9592. double value;
  9593. double minValue;
  9594. double maxValue;
  9595. Unit valueUnit;
  9596. Unit targetUnit;
  9597. GrowthNormalRangeDTO({
  9598. this.typeName,
  9599. this.tableAuthor,
  9600. this.measureItem,
  9601. this.gAinDays = 0,
  9602. this.status = 0,
  9603. this.value = 0,
  9604. this.minValue = 0,
  9605. this.maxValue = 0,
  9606. this.valueUnit = Unit.None,
  9607. this.targetUnit = Unit.None,
  9608. });
  9609. factory GrowthNormalRangeDTO.fromJson(Map<String, dynamic> map) {
  9610. return GrowthNormalRangeDTO(
  9611. typeName: map['TypeName'],
  9612. tableAuthor: map['TableAuthor'],
  9613. measureItem: map['MeasureItem'],
  9614. gAinDays: map['GAinDays'],
  9615. status: map['Status'],
  9616. value: double.parse(map['Value'].toString()),
  9617. minValue: double.parse(map['MinValue'].toString()),
  9618. maxValue: double.parse(map['MaxValue'].toString()),
  9619. valueUnit: Unit.values.firstWhere((e) => e.index == map['ValueUnit']),
  9620. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  9621. );
  9622. }
  9623. Map<String, dynamic> toJson() {
  9624. final map = Map<String, dynamic>();
  9625. if(typeName != null)
  9626. map['TypeName'] = typeName;
  9627. if(tableAuthor != null)
  9628. map['TableAuthor'] = tableAuthor;
  9629. if(measureItem != null)
  9630. map['MeasureItem'] = measureItem;
  9631. map['GAinDays'] = gAinDays;
  9632. map['Status'] = status;
  9633. map['Value'] = value;
  9634. map['MinValue'] = minValue;
  9635. map['MaxValue'] = maxValue;
  9636. map['ValueUnit'] = valueUnit.index;
  9637. map['TargetUnit'] = targetUnit.index;
  9638. return map;
  9639. }
  9640. }
  9641. class EFWRepresentationDTO extends FloatValueDTO{
  9642. EFWRepresentationDTO({
  9643. FetalGrowthIndexDTO? fetalGrowthIndex,
  9644. String? typeName,
  9645. String? name,
  9646. String? description,
  9647. bool worksheetAffinity = false,
  9648. String? briefDescription,
  9649. String? value,
  9650. Unit unit = Unit.None,
  9651. Unit targetUnit = Unit.None,
  9652. }) : super(
  9653. fetalGrowthIndex: fetalGrowthIndex,
  9654. typeName: typeName,
  9655. name: name,
  9656. description: description,
  9657. worksheetAffinity: worksheetAffinity,
  9658. briefDescription: briefDescription,
  9659. value: value,
  9660. unit: unit,
  9661. targetUnit: targetUnit,
  9662. );
  9663. factory EFWRepresentationDTO.fromJson(Map<String, dynamic> map) {
  9664. return EFWRepresentationDTO(
  9665. fetalGrowthIndex: map['FetalGrowthIndex'] != null ? FetalGrowthIndexDTO.fromJson(map['FetalGrowthIndex']) : null,
  9666. typeName: map['TypeName'],
  9667. name: map['Name'],
  9668. description: map['Description'],
  9669. worksheetAffinity: map['WorksheetAffinity'],
  9670. briefDescription: map['BriefDescription'],
  9671. value: map['Value'],
  9672. unit: Unit.values.firstWhere((e) => e.index == map['Unit']),
  9673. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  9674. );
  9675. }
  9676. Map<String, dynamic> toJson() {
  9677. final map = super.toJson();
  9678. return map;
  9679. }
  9680. }
  9681. class AdminExtendInfoDTO extends AdminInfoDTO{
  9682. List<String >? roleNames;
  9683. String? defaultRoleCode;
  9684. String? defaultRoleName;
  9685. bool isLocked;
  9686. AdminExtendInfoDTO({
  9687. this.roleNames,
  9688. this.defaultRoleCode,
  9689. this.defaultRoleName,
  9690. this.isLocked = false,
  9691. String? adminCode,
  9692. String? fatherCode,
  9693. String? adminName,
  9694. String? fullName,
  9695. String? secretPassword,
  9696. String? headImageToken,
  9697. String? licenseKey,
  9698. String? lastIP,
  9699. String? phone,
  9700. String? email,
  9701. List<String >? roleCodes,
  9702. LoginLockInfoDTO? loginLockInfo,
  9703. DateTime? passwordUpdateTime,
  9704. List<String >? passwordRecords,
  9705. DateTime? createTime,
  9706. DateTime? updateTime,
  9707. }) : super(
  9708. adminCode: adminCode,
  9709. fatherCode: fatherCode,
  9710. adminName: adminName,
  9711. fullName: fullName,
  9712. secretPassword: secretPassword,
  9713. headImageToken: headImageToken,
  9714. licenseKey: licenseKey,
  9715. lastIP: lastIP,
  9716. phone: phone,
  9717. email: email,
  9718. roleCodes: roleCodes,
  9719. loginLockInfo: loginLockInfo,
  9720. passwordUpdateTime: passwordUpdateTime,
  9721. passwordRecords: passwordRecords,
  9722. createTime: createTime,
  9723. updateTime: updateTime,
  9724. );
  9725. factory AdminExtendInfoDTO.fromJson(Map<String, dynamic> map) {
  9726. return AdminExtendInfoDTO(
  9727. roleNames: map['RoleNames'] != null ? map['RoleNames'].cast<String>().toList() : null,
  9728. defaultRoleCode: map['DefaultRoleCode'],
  9729. defaultRoleName: map['DefaultRoleName'],
  9730. isLocked: map['IsLocked'],
  9731. adminCode: map['AdminCode'],
  9732. fatherCode: map['FatherCode'],
  9733. adminName: map['AdminName'],
  9734. fullName: map['FullName'],
  9735. secretPassword: map['SecretPassword'],
  9736. headImageToken: map['HeadImageToken'],
  9737. licenseKey: map['LicenseKey'],
  9738. lastIP: map['LastIP'],
  9739. phone: map['Phone'],
  9740. email: map['Email'],
  9741. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  9742. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  9743. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  9744. passwordRecords: map['PasswordRecords'] != null ? map['PasswordRecords'].cast<String>().toList() : null,
  9745. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9746. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9747. );
  9748. }
  9749. Map<String, dynamic> toJson() {
  9750. final map = super.toJson();
  9751. if(roleNames != null)
  9752. map['RoleNames'] = roleNames;
  9753. if(defaultRoleCode != null)
  9754. map['DefaultRoleCode'] = defaultRoleCode;
  9755. if(defaultRoleName != null)
  9756. map['DefaultRoleName'] = defaultRoleName;
  9757. map['IsLocked'] = isLocked;
  9758. return map;
  9759. }
  9760. }
  9761. class AdminLoginResult {
  9762. LoginStateEnum loginState;
  9763. String? token;
  9764. int? lockRemainingTimes;
  9765. bool isDistributedServer;
  9766. bool passwordExpired;
  9767. String? adminName;
  9768. AdminLoginResult({
  9769. this.loginState = LoginStateEnum.Succeed,
  9770. this.token,
  9771. this.lockRemainingTimes,
  9772. this.isDistributedServer = false,
  9773. this.passwordExpired = false,
  9774. this.adminName,
  9775. });
  9776. factory AdminLoginResult.fromJson(Map<String, dynamic> map) {
  9777. return AdminLoginResult(
  9778. loginState: LoginStateEnum.values.firstWhere((e) => e.index == map['LoginState']),
  9779. token: map['Token'],
  9780. lockRemainingTimes: map['LockRemainingTimes'],
  9781. isDistributedServer: map['IsDistributedServer'],
  9782. passwordExpired: map['PasswordExpired'],
  9783. adminName: map['AdminName'],
  9784. );
  9785. }
  9786. Map<String, dynamic> toJson() {
  9787. final map = Map<String, dynamic>();
  9788. map['LoginState'] = loginState.index;
  9789. if(token != null)
  9790. map['Token'] = token;
  9791. if(lockRemainingTimes != null)
  9792. map['LockRemainingTimes'] = lockRemainingTimes;
  9793. map['IsDistributedServer'] = isDistributedServer;
  9794. map['PasswordExpired'] = passwordExpired;
  9795. if(adminName != null)
  9796. map['AdminName'] = adminName;
  9797. return map;
  9798. }
  9799. }
  9800. class ManageAdminFeatureInfoDTO {
  9801. List<String >? featureCodeList;
  9802. ManageAdminFeatureInfoDTO({
  9803. this.featureCodeList,
  9804. });
  9805. factory ManageAdminFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  9806. return ManageAdminFeatureInfoDTO(
  9807. featureCodeList: map['FeatureCodeList'] != null ? map['FeatureCodeList'].cast<String>().toList() : null,
  9808. );
  9809. }
  9810. Map<String, dynamic> toJson() {
  9811. final map = Map<String, dynamic>();
  9812. if(featureCodeList != null)
  9813. map['FeatureCodeList'] = featureCodeList;
  9814. return map;
  9815. }
  9816. }
  9817. class FeatureDetail {
  9818. String? id;
  9819. FeatureDetail({
  9820. this.id,
  9821. });
  9822. factory FeatureDetail.fromJson(Map<String, dynamic> map) {
  9823. return FeatureDetail(
  9824. id: map['Id'],
  9825. );
  9826. }
  9827. Map<String, dynamic> toJson() {
  9828. final map = Map<String, dynamic>();
  9829. if(id != null)
  9830. map['Id'] = id;
  9831. return map;
  9832. }
  9833. }
  9834. class ManageAdminRoleInfoDTO extends AdminRoleDTO{
  9835. List<FeatureDetail >? featureList;
  9836. ManageAdminRoleInfoDTO({
  9837. this.featureList,
  9838. String? adminGroupCode,
  9839. int adminNum = 0,
  9840. String? roleCode,
  9841. String? roleName,
  9842. String? description,
  9843. List<UserRoleLanguageConfigDTO >? languageConfigs,
  9844. DateTime? createTime,
  9845. DateTime? updateTime,
  9846. }) : super(
  9847. adminGroupCode: adminGroupCode,
  9848. adminNum: adminNum,
  9849. roleCode: roleCode,
  9850. roleName: roleName,
  9851. description: description,
  9852. languageConfigs: languageConfigs,
  9853. createTime: createTime,
  9854. updateTime: updateTime,
  9855. );
  9856. factory ManageAdminRoleInfoDTO.fromJson(Map<String, dynamic> map) {
  9857. return ManageAdminRoleInfoDTO(
  9858. featureList: map['FeatureList'] != null ? (map['FeatureList'] as List).map((e)=>FeatureDetail.fromJson(e as Map<String,dynamic>)).toList() : null,
  9859. adminGroupCode: map['AdminGroupCode'],
  9860. adminNum: map['AdminNum'],
  9861. roleCode: map['RoleCode'],
  9862. roleName: map['RoleName'],
  9863. description: map['Description'],
  9864. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9865. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9866. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9867. );
  9868. }
  9869. Map<String, dynamic> toJson() {
  9870. final map = super.toJson();
  9871. if(featureList != null)
  9872. map['FeatureList'] = featureList;
  9873. return map;
  9874. }
  9875. }
  9876. class ManageDeviceInfoDTO extends DeviceInfoDTO{
  9877. String? hospitalName;
  9878. String? departmentName;
  9879. String? directorName;
  9880. String? adminName;
  9881. String? shareUserNum;
  9882. String? deviceModelName;
  9883. List<DictionaryLanguageConfigDTO >? languageConfigs;
  9884. ManageDeviceInfoDTO({
  9885. this.hospitalName,
  9886. this.departmentName,
  9887. this.directorName,
  9888. this.adminName,
  9889. this.shareUserNum,
  9890. this.deviceModelName,
  9891. this.languageConfigs,
  9892. String? deviceCode,
  9893. String? serialNumber,
  9894. String? password,
  9895. String? name,
  9896. String? description,
  9897. String? deviceModel,
  9898. String? deviceType,
  9899. String? headPicUrl,
  9900. String? deviceSoftwareVersion,
  9901. String? sDKSoftwareVersion,
  9902. String? organizationCode,
  9903. String? departmentCode,
  9904. String? shortCode,
  9905. bool isAutoShared = false,
  9906. bool isEncryptedShow = false,
  9907. DateTime? lastLoginTime,
  9908. String? systemVersion,
  9909. String? cPUModel,
  9910. String? systemLanguage,
  9911. List<String >? diagnosisModules,
  9912. List<String >? reportPosterCodes,
  9913. bool mergedChannel = false,
  9914. int mergedVideoOutputWidth = 0,
  9915. int mergedVideoOutputHeight = 0,
  9916. List<VideoDeviceDTO >? videoDeviceInfos,
  9917. DownloadModeSettingEnum downloadModeSetting = DownloadModeSettingEnum.Auto,
  9918. DateTime? createTime,
  9919. DateTime? updateTime,
  9920. }) : super(
  9921. deviceCode: deviceCode,
  9922. serialNumber: serialNumber,
  9923. password: password,
  9924. name: name,
  9925. description: description,
  9926. deviceModel: deviceModel,
  9927. deviceType: deviceType,
  9928. headPicUrl: headPicUrl,
  9929. deviceSoftwareVersion: deviceSoftwareVersion,
  9930. sDKSoftwareVersion: sDKSoftwareVersion,
  9931. organizationCode: organizationCode,
  9932. departmentCode: departmentCode,
  9933. shortCode: shortCode,
  9934. isAutoShared: isAutoShared,
  9935. isEncryptedShow: isEncryptedShow,
  9936. lastLoginTime: lastLoginTime,
  9937. systemVersion: systemVersion,
  9938. cPUModel: cPUModel,
  9939. systemLanguage: systemLanguage,
  9940. diagnosisModules: diagnosisModules,
  9941. reportPosterCodes: reportPosterCodes,
  9942. mergedChannel: mergedChannel,
  9943. mergedVideoOutputWidth: mergedVideoOutputWidth,
  9944. mergedVideoOutputHeight: mergedVideoOutputHeight,
  9945. videoDeviceInfos: videoDeviceInfos,
  9946. downloadModeSetting: downloadModeSetting,
  9947. createTime: createTime,
  9948. updateTime: updateTime,
  9949. );
  9950. factory ManageDeviceInfoDTO.fromJson(Map<String, dynamic> map) {
  9951. return ManageDeviceInfoDTO(
  9952. hospitalName: map['HospitalName'],
  9953. departmentName: map['DepartmentName'],
  9954. directorName: map['DirectorName'],
  9955. adminName: map['AdminName'],
  9956. shareUserNum: map['ShareUserNum'],
  9957. deviceModelName: map['DeviceModelName'],
  9958. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>DictionaryLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9959. deviceCode: map['DeviceCode'],
  9960. serialNumber: map['SerialNumber'],
  9961. password: map['Password'],
  9962. name: map['Name'],
  9963. description: map['Description'],
  9964. deviceModel: map['DeviceModel'],
  9965. deviceType: map['DeviceType'],
  9966. headPicUrl: map['HeadPicUrl'],
  9967. deviceSoftwareVersion: map['DeviceSoftwareVersion'],
  9968. sDKSoftwareVersion: map['SDKSoftwareVersion'],
  9969. organizationCode: map['OrganizationCode'],
  9970. departmentCode: map['DepartmentCode'],
  9971. shortCode: map['ShortCode'],
  9972. isAutoShared: map['IsAutoShared'],
  9973. isEncryptedShow: map['IsEncryptedShow'],
  9974. lastLoginTime: map['LastLoginTime'] != null ? DateTime.parse(map['LastLoginTime']) : null,
  9975. systemVersion: map['SystemVersion'],
  9976. cPUModel: map['CPUModel'],
  9977. systemLanguage: map['SystemLanguage'],
  9978. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  9979. reportPosterCodes: map['ReportPosterCodes'] != null ? map['ReportPosterCodes'].cast<String>().toList() : null,
  9980. mergedChannel: map['MergedChannel'],
  9981. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  9982. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  9983. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9984. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  9985. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9986. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9987. );
  9988. }
  9989. Map<String, dynamic> toJson() {
  9990. final map = super.toJson();
  9991. if(hospitalName != null)
  9992. map['HospitalName'] = hospitalName;
  9993. if(departmentName != null)
  9994. map['DepartmentName'] = departmentName;
  9995. if(directorName != null)
  9996. map['DirectorName'] = directorName;
  9997. if(adminName != null)
  9998. map['AdminName'] = adminName;
  9999. if(shareUserNum != null)
  10000. map['ShareUserNum'] = shareUserNum;
  10001. if(deviceModelName != null)
  10002. map['DeviceModelName'] = deviceModelName;
  10003. if(languageConfigs != null)
  10004. map['LanguageConfigs'] = languageConfigs;
  10005. return map;
  10006. }
  10007. }
  10008. class ManageDeviceTypeDTO {
  10009. String? dictionaryCode;
  10010. String? value;
  10011. List<DictionaryLanguageConfigDTO >? languageConfigs;
  10012. List<DictionaryDTO >? dictionaryList;
  10013. ManageDeviceTypeDTO({
  10014. this.dictionaryCode,
  10015. this.value,
  10016. this.languageConfigs,
  10017. this.dictionaryList,
  10018. });
  10019. factory ManageDeviceTypeDTO.fromJson(Map<String, dynamic> map) {
  10020. return ManageDeviceTypeDTO(
  10021. dictionaryCode: map['DictionaryCode'],
  10022. value: map['Value'],
  10023. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>DictionaryLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10024. dictionaryList: map['DictionaryList'] != null ? (map['DictionaryList'] as List).map((e)=>DictionaryDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10025. );
  10026. }
  10027. Map<String, dynamic> toJson() {
  10028. final map = Map<String, dynamic>();
  10029. if(dictionaryCode != null)
  10030. map['DictionaryCode'] = dictionaryCode;
  10031. if(value != null)
  10032. map['Value'] = value;
  10033. if(languageConfigs != null)
  10034. map['LanguageConfigs'] = languageConfigs;
  10035. if(dictionaryList != null)
  10036. map['DictionaryList'] = dictionaryList;
  10037. return map;
  10038. }
  10039. }
  10040. class ManageDeviceUserDTO {
  10041. String? userCode;
  10042. String? userName;
  10043. String? phone;
  10044. String? email;
  10045. String? nickName;
  10046. String? fullName;
  10047. String? hospitalName;
  10048. ManageDeviceUserDTO({
  10049. this.userCode,
  10050. this.userName,
  10051. this.phone,
  10052. this.email,
  10053. this.nickName,
  10054. this.fullName,
  10055. this.hospitalName,
  10056. });
  10057. factory ManageDeviceUserDTO.fromJson(Map<String, dynamic> map) {
  10058. return ManageDeviceUserDTO(
  10059. userCode: map['UserCode'],
  10060. userName: map['UserName'],
  10061. phone: map['Phone'],
  10062. email: map['Email'],
  10063. nickName: map['NickName'],
  10064. fullName: map['FullName'],
  10065. hospitalName: map['HospitalName'],
  10066. );
  10067. }
  10068. Map<String, dynamic> toJson() {
  10069. final map = Map<String, dynamic>();
  10070. if(userCode != null)
  10071. map['UserCode'] = userCode;
  10072. if(userName != null)
  10073. map['UserName'] = userName;
  10074. if(phone != null)
  10075. map['Phone'] = phone;
  10076. if(email != null)
  10077. map['Email'] = email;
  10078. if(nickName != null)
  10079. map['NickName'] = nickName;
  10080. if(fullName != null)
  10081. map['FullName'] = fullName;
  10082. if(hospitalName != null)
  10083. map['HospitalName'] = hospitalName;
  10084. return map;
  10085. }
  10086. }
  10087. class ManageOrganizationDTO extends OrganizationDTO{
  10088. String? countryName;
  10089. String? provinceName;
  10090. String? cityName;
  10091. String? countryCode;
  10092. String? provinceCode;
  10093. String? cityCode;
  10094. String? directorName;
  10095. String? adminFullName;
  10096. ManageOrganizationDTO({
  10097. this.countryName,
  10098. this.provinceName,
  10099. this.cityName,
  10100. this.countryCode,
  10101. this.provinceCode,
  10102. this.cityCode,
  10103. this.directorName,
  10104. this.adminFullName,
  10105. String? description,
  10106. String? rootCode,
  10107. OrganizationTypeEnum organizationType = OrganizationTypeEnum.Corporation,
  10108. List<String >? authorityGroups,
  10109. String? nautica,
  10110. OrganizationStateEnum state = OrganizationStateEnum.WaitAudit,
  10111. List<String >? directors,
  10112. List<String >? assignedAdmins,
  10113. String? patientSettingJson,
  10114. String? examSettingJson,
  10115. String? consultationSettingJson,
  10116. String? patientSettingVersion,
  10117. String? examSettingVersion,
  10118. String? consultationSettingVersion,
  10119. String? parentOrganizationName,
  10120. String? regionCode,
  10121. String? parentCode,
  10122. String? logoUrl,
  10123. OrganizationPatientTypeEnum patientType = OrganizationPatientTypeEnum.Person,
  10124. bool isinvented = false,
  10125. List<SettingDTOClass >? settings,
  10126. List<String >? diagnosisModules,
  10127. bool isEncryptedShow = false,
  10128. double referralLimitHours = 0,
  10129. List<String >? referralOrganizationCodes,
  10130. List<ReferralOrganizationDTO >? referralOrganizations,
  10131. String? organizationCode,
  10132. String? organizationName,
  10133. DateTime? createTime,
  10134. DateTime? updateTime,
  10135. }) : super(
  10136. description: description,
  10137. rootCode: rootCode,
  10138. organizationType: organizationType,
  10139. authorityGroups: authorityGroups,
  10140. nautica: nautica,
  10141. state: state,
  10142. directors: directors,
  10143. assignedAdmins: assignedAdmins,
  10144. patientSettingJson: patientSettingJson,
  10145. examSettingJson: examSettingJson,
  10146. consultationSettingJson: consultationSettingJson,
  10147. patientSettingVersion: patientSettingVersion,
  10148. examSettingVersion: examSettingVersion,
  10149. consultationSettingVersion: consultationSettingVersion,
  10150. parentOrganizationName: parentOrganizationName,
  10151. regionCode: regionCode,
  10152. parentCode: parentCode,
  10153. logoUrl: logoUrl,
  10154. patientType: patientType,
  10155. isinvented: isinvented,
  10156. settings: settings,
  10157. diagnosisModules: diagnosisModules,
  10158. isEncryptedShow: isEncryptedShow,
  10159. referralLimitHours: referralLimitHours,
  10160. referralOrganizationCodes: referralOrganizationCodes,
  10161. referralOrganizations: referralOrganizations,
  10162. organizationCode: organizationCode,
  10163. organizationName: organizationName,
  10164. createTime: createTime,
  10165. updateTime: updateTime,
  10166. );
  10167. factory ManageOrganizationDTO.fromJson(Map<String, dynamic> map) {
  10168. return ManageOrganizationDTO(
  10169. countryName: map['CountryName'],
  10170. provinceName: map['ProvinceName'],
  10171. cityName: map['CityName'],
  10172. countryCode: map['CountryCode'],
  10173. provinceCode: map['ProvinceCode'],
  10174. cityCode: map['CityCode'],
  10175. directorName: map['DirectorName'],
  10176. adminFullName: map['AdminFullName'],
  10177. description: map['Description'],
  10178. rootCode: map['RootCode'],
  10179. organizationType: OrganizationTypeEnum.values.firstWhere((e) => e.index == map['OrganizationType']),
  10180. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  10181. nautica: map['Nautica'],
  10182. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  10183. directors: map['Directors'] != null ? map['Directors'].cast<String>().toList() : null,
  10184. assignedAdmins: map['AssignedAdmins'] != null ? map['AssignedAdmins'].cast<String>().toList() : null,
  10185. patientSettingJson: map['PatientSettingJson'],
  10186. examSettingJson: map['ExamSettingJson'],
  10187. consultationSettingJson: map['ConsultationSettingJson'],
  10188. patientSettingVersion: map['PatientSettingVersion'],
  10189. examSettingVersion: map['ExamSettingVersion'],
  10190. consultationSettingVersion: map['ConsultationSettingVersion'],
  10191. parentOrganizationName: map['ParentOrganizationName'],
  10192. regionCode: map['RegionCode'],
  10193. parentCode: map['ParentCode'],
  10194. logoUrl: map['LogoUrl'],
  10195. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  10196. isinvented: map['Isinvented'],
  10197. settings: map['Settings'] != null ? (map['Settings'] as List).map((e)=>SettingDTOClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  10198. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  10199. isEncryptedShow: map['IsEncryptedShow'],
  10200. referralLimitHours: double.parse(map['ReferralLimitHours'].toString()),
  10201. referralOrganizationCodes: map['ReferralOrganizationCodes'] != null ? map['ReferralOrganizationCodes'].cast<String>().toList() : null,
  10202. referralOrganizations: map['ReferralOrganizations'] != null ? (map['ReferralOrganizations'] as List).map((e)=>ReferralOrganizationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10203. organizationCode: map['OrganizationCode'],
  10204. organizationName: map['OrganizationName'],
  10205. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  10206. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  10207. );
  10208. }
  10209. Map<String, dynamic> toJson() {
  10210. final map = super.toJson();
  10211. if(countryName != null)
  10212. map['CountryName'] = countryName;
  10213. if(provinceName != null)
  10214. map['ProvinceName'] = provinceName;
  10215. if(cityName != null)
  10216. map['CityName'] = cityName;
  10217. if(countryCode != null)
  10218. map['CountryCode'] = countryCode;
  10219. if(provinceCode != null)
  10220. map['ProvinceCode'] = provinceCode;
  10221. if(cityCode != null)
  10222. map['CityCode'] = cityCode;
  10223. if(directorName != null)
  10224. map['DirectorName'] = directorName;
  10225. if(adminFullName != null)
  10226. map['AdminFullName'] = adminFullName;
  10227. return map;
  10228. }
  10229. }
  10230. class ManageOrganizationUserDTO {
  10231. String? userCode;
  10232. String? userName;
  10233. String? phone;
  10234. String? email;
  10235. String? nickName;
  10236. String? fullName;
  10237. String? hospitalName;
  10238. ManageOrganizationUserDTO({
  10239. this.userCode,
  10240. this.userName,
  10241. this.phone,
  10242. this.email,
  10243. this.nickName,
  10244. this.fullName,
  10245. this.hospitalName,
  10246. });
  10247. factory ManageOrganizationUserDTO.fromJson(Map<String, dynamic> map) {
  10248. return ManageOrganizationUserDTO(
  10249. userCode: map['UserCode'],
  10250. userName: map['UserName'],
  10251. phone: map['Phone'],
  10252. email: map['Email'],
  10253. nickName: map['NickName'],
  10254. fullName: map['FullName'],
  10255. hospitalName: map['HospitalName'],
  10256. );
  10257. }
  10258. Map<String, dynamic> toJson() {
  10259. final map = Map<String, dynamic>();
  10260. if(userCode != null)
  10261. map['UserCode'] = userCode;
  10262. if(userName != null)
  10263. map['UserName'] = userName;
  10264. if(phone != null)
  10265. map['Phone'] = phone;
  10266. if(email != null)
  10267. map['Email'] = email;
  10268. if(nickName != null)
  10269. map['NickName'] = nickName;
  10270. if(fullName != null)
  10271. map['FullName'] = fullName;
  10272. if(hospitalName != null)
  10273. map['HospitalName'] = hospitalName;
  10274. return map;
  10275. }
  10276. }
  10277. class ManageRoleInfoDTO extends RoleDTO{
  10278. List<FeatureDetail >? featureList;
  10279. ManageRoleInfoDTO({
  10280. this.featureList,
  10281. RoleShowTypeEnum roleShowType = RoleShowTypeEnum.NotShow,
  10282. String? iConUrl,
  10283. String? colorStart,
  10284. String? colorEnd,
  10285. RoleQualificationEnum roleQualification = RoleQualificationEnum.NoNeed,
  10286. String? userGroupCode,
  10287. RoleShowTypeEnum fieldShowType = RoleShowTypeEnum.NotShow,
  10288. List<String >? fieldList,
  10289. String? roleCode,
  10290. String? roleName,
  10291. String? description,
  10292. List<UserRoleLanguageConfigDTO >? languageConfigs,
  10293. DateTime? createTime,
  10294. DateTime? updateTime,
  10295. }) : super(
  10296. roleShowType: roleShowType,
  10297. iConUrl: iConUrl,
  10298. colorStart: colorStart,
  10299. colorEnd: colorEnd,
  10300. roleQualification: roleQualification,
  10301. userGroupCode: userGroupCode,
  10302. fieldShowType: fieldShowType,
  10303. fieldList: fieldList,
  10304. roleCode: roleCode,
  10305. roleName: roleName,
  10306. description: description,
  10307. languageConfigs: languageConfigs,
  10308. createTime: createTime,
  10309. updateTime: updateTime,
  10310. );
  10311. factory ManageRoleInfoDTO.fromJson(Map<String, dynamic> map) {
  10312. return ManageRoleInfoDTO(
  10313. featureList: map['FeatureList'] != null ? (map['FeatureList'] as List).map((e)=>FeatureDetail.fromJson(e as Map<String,dynamic>)).toList() : null,
  10314. roleShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['RoleShowType']),
  10315. iConUrl: map['IConUrl'],
  10316. colorStart: map['ColorStart'],
  10317. colorEnd: map['ColorEnd'],
  10318. roleQualification: RoleQualificationEnum.values.firstWhere((e) => e.index == map['RoleQualification']),
  10319. userGroupCode: map['UserGroupCode'],
  10320. fieldShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['FieldShowType']),
  10321. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  10322. roleCode: map['RoleCode'],
  10323. roleName: map['RoleName'],
  10324. description: map['Description'],
  10325. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10326. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  10327. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  10328. );
  10329. }
  10330. Map<String, dynamic> toJson() {
  10331. final map = super.toJson();
  10332. if(featureList != null)
  10333. map['FeatureList'] = featureList;
  10334. return map;
  10335. }
  10336. }
  10337. class BaseThesaurusItemBaseDTO<T> {
  10338. String? id;
  10339. String? label;
  10340. String? fatherCode;
  10341. String? thesaurusItemDescription;
  10342. String? thesaurusItemConclusion;
  10343. ThesaurusItemTypeEnum type;
  10344. List<T>? children;
  10345. bool isExistThesaurusItem;
  10346. BaseThesaurusItemBaseDTO({
  10347. this.id,
  10348. this.label,
  10349. this.fatherCode,
  10350. this.thesaurusItemDescription,
  10351. this.thesaurusItemConclusion,
  10352. this.type = ThesaurusItemTypeEnum.Classification,
  10353. this.children,
  10354. this.isExistThesaurusItem = false,
  10355. });
  10356. factory BaseThesaurusItemBaseDTO.fromJson(Map<String, dynamic> map) {
  10357. List<T> childrenList = [];
  10358. if (map['Children'] != null) {
  10359. childrenList.addAll(
  10360. (map['Children'] as List).map((e) => FJsonConvert.fromJson<T>(e)!));
  10361. }
  10362. return BaseThesaurusItemBaseDTO(
  10363. id: map['Id'],
  10364. label: map['Label'],
  10365. fatherCode: map['FatherCode'],
  10366. thesaurusItemDescription: map['ThesaurusItemDescription'],
  10367. thesaurusItemConclusion: map['ThesaurusItemConclusion'],
  10368. type: ThesaurusItemTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  10369. children: childrenList,
  10370. isExistThesaurusItem: map['IsExistThesaurusItem'],
  10371. );
  10372. }
  10373. Map<String, dynamic> toJson() {
  10374. final map = Map<String, dynamic>();
  10375. if(id != null)
  10376. map['Id'] = id;
  10377. if(label != null)
  10378. map['Label'] = label;
  10379. if(fatherCode != null)
  10380. map['FatherCode'] = fatherCode;
  10381. if(thesaurusItemDescription != null)
  10382. map['ThesaurusItemDescription'] = thesaurusItemDescription;
  10383. if(thesaurusItemConclusion != null)
  10384. map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
  10385. map['Type'] = type.index;
  10386. if(children != null)
  10387. map['Children'] = children;
  10388. map['IsExistThesaurusItem'] = isExistThesaurusItem;
  10389. return map;
  10390. }
  10391. }
  10392. class ManageThesaurusItemDTO extends BaseThesaurusItemBaseDTO<ManageThesaurusItemDTO>{
  10393. ManageThesaurusItemDTO(
  10394. );
  10395. factory ManageThesaurusItemDTO.fromJson(Map<String, dynamic> map) {
  10396. return ManageThesaurusItemDTO(
  10397. );
  10398. }
  10399. Map<String, dynamic> toJson() {
  10400. final map = super.toJson();
  10401. return map;
  10402. }
  10403. }
  10404. class OnlineTokenDTO extends TokenDTO{
  10405. String? ipAddress;
  10406. OnlineTokenDTO({
  10407. this.ipAddress,
  10408. int version = 0,
  10409. String? code,
  10410. AccountType accountType = AccountType.Admin,
  10411. String? accountName,
  10412. Platform platform = Platform.Windows,
  10413. LoginSource loginSource = LoginSource.PC,
  10414. String? clientId,
  10415. String? loginServer,
  10416. DateTime? createTime,
  10417. DateTime? expiration,
  10418. int ipValue = 0,
  10419. bool isOnline = false,
  10420. }) : super(
  10421. version: version,
  10422. code: code,
  10423. accountType: accountType,
  10424. accountName: accountName,
  10425. platform: platform,
  10426. loginSource: loginSource,
  10427. clientId: clientId,
  10428. loginServer: loginServer,
  10429. createTime: createTime,
  10430. expiration: expiration,
  10431. ipValue: ipValue,
  10432. isOnline: isOnline,
  10433. );
  10434. factory OnlineTokenDTO.fromJson(Map<String, dynamic> map) {
  10435. return OnlineTokenDTO(
  10436. ipAddress: map['IpAddress'],
  10437. version: map['Version'],
  10438. code: map['Code'],
  10439. accountType: AccountType.values.firstWhere((e) => e.index == map['AccountType']),
  10440. accountName: map['AccountName'],
  10441. platform: Platform.values.firstWhere((e) => e.index == map['Platform']),
  10442. loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
  10443. clientId: map['ClientId'],
  10444. loginServer: map['LoginServer'],
  10445. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  10446. expiration: map['Expiration'] != null ? DateTime.parse(map['Expiration']) : null,
  10447. ipValue: map['IpValue'],
  10448. isOnline: map['IsOnline'],
  10449. );
  10450. }
  10451. Map<String, dynamic> toJson() {
  10452. final map = super.toJson();
  10453. if(ipAddress != null)
  10454. map['IpAddress'] = ipAddress;
  10455. return map;
  10456. }
  10457. }
  10458. class SelectParentItemDTO extends SelectItemDTO{
  10459. String? parentCode;
  10460. SelectParentItemDTO({
  10461. this.parentCode,
  10462. String? key,
  10463. String? value,
  10464. }) : super(
  10465. key: key,
  10466. value: value,
  10467. );
  10468. factory SelectParentItemDTO.fromJson(Map<String, dynamic> map) {
  10469. return SelectParentItemDTO(
  10470. parentCode: map['ParentCode'],
  10471. key: map['Key'],
  10472. value: map['Value'],
  10473. );
  10474. }
  10475. Map<String, dynamic> toJson() {
  10476. final map = super.toJson();
  10477. if(parentCode != null)
  10478. map['ParentCode'] = parentCode;
  10479. return map;
  10480. }
  10481. }
  10482. class LiveDataDTO {
  10483. int width;
  10484. int height;
  10485. String? rtmpPushUrl;
  10486. String? rtmpPullUrl;
  10487. String? httpPullUrl;
  10488. String? hlsPullUrl;
  10489. LiveDataDTO({
  10490. this.width = 0,
  10491. this.height = 0,
  10492. this.rtmpPushUrl,
  10493. this.rtmpPullUrl,
  10494. this.httpPullUrl,
  10495. this.hlsPullUrl,
  10496. });
  10497. factory LiveDataDTO.fromJson(Map<String, dynamic> map) {
  10498. return LiveDataDTO(
  10499. width: map['Width'],
  10500. height: map['Height'],
  10501. rtmpPushUrl: map['RtmpPushUrl'],
  10502. rtmpPullUrl: map['RtmpPullUrl'],
  10503. httpPullUrl: map['HttpPullUrl'],
  10504. hlsPullUrl: map['HlsPullUrl'],
  10505. );
  10506. }
  10507. Map<String, dynamic> toJson() {
  10508. final map = Map<String, dynamic>();
  10509. map['Width'] = width;
  10510. map['Height'] = height;
  10511. if(rtmpPushUrl != null)
  10512. map['RtmpPushUrl'] = rtmpPushUrl;
  10513. if(rtmpPullUrl != null)
  10514. map['RtmpPullUrl'] = rtmpPullUrl;
  10515. if(httpPullUrl != null)
  10516. map['HttpPullUrl'] = httpPullUrl;
  10517. if(hlsPullUrl != null)
  10518. map['HlsPullUrl'] = hlsPullUrl;
  10519. return map;
  10520. }
  10521. }
  10522. class LiveMemberDTO {
  10523. String? code;
  10524. LiveMemberEnum memberType;
  10525. String? name;
  10526. String? headImageToken;
  10527. LiveConsultationMemberStatus status;
  10528. bool muteOpened;
  10529. bool videoOpened;
  10530. String? loginServerHost;
  10531. LiveDataDTO? liveData;
  10532. LiveMemberDTO({
  10533. this.code,
  10534. this.memberType = LiveMemberEnum.User,
  10535. this.name,
  10536. this.headImageToken,
  10537. this.status = LiveConsultationMemberStatus.Default,
  10538. this.muteOpened = false,
  10539. this.videoOpened = false,
  10540. this.loginServerHost,
  10541. this.liveData,
  10542. });
  10543. factory LiveMemberDTO.fromJson(Map<String, dynamic> map) {
  10544. return LiveMemberDTO(
  10545. code: map['Code'],
  10546. memberType: LiveMemberEnum.values.firstWhere((e) => e.index == map['MemberType']),
  10547. name: map['Name'],
  10548. headImageToken: map['HeadImageToken'],
  10549. status: LiveConsultationMemberStatus.values.firstWhere((e) => e.index == map['Status']),
  10550. muteOpened: map['MuteOpened'],
  10551. videoOpened: map['VideoOpened'],
  10552. loginServerHost: map['LoginServerHost'],
  10553. liveData: map['LiveData'] != null ? LiveDataDTO.fromJson(map['LiveData']) : null,
  10554. );
  10555. }
  10556. Map<String, dynamic> toJson() {
  10557. final map = Map<String, dynamic>();
  10558. if(code != null)
  10559. map['Code'] = code;
  10560. map['MemberType'] = memberType.index;
  10561. if(name != null)
  10562. map['Name'] = name;
  10563. if(headImageToken != null)
  10564. map['HeadImageToken'] = headImageToken;
  10565. map['Status'] = status.index;
  10566. map['MuteOpened'] = muteOpened;
  10567. map['VideoOpened'] = videoOpened;
  10568. if(loginServerHost != null)
  10569. map['LoginServerHost'] = loginServerHost;
  10570. if(liveData != null)
  10571. map['LiveData'] = liveData;
  10572. return map;
  10573. }
  10574. }
  10575. class LiveRoomDTO {
  10576. String? liveRoomCode;
  10577. String? relatedCode;
  10578. String? initiatorCode;
  10579. int integerRoomId;
  10580. BusinessModuleEnum businessModule;
  10581. DateTime? lastEndTime;
  10582. List<LiveMemberDTO >? deviceInfos;
  10583. List<LiveMemberDTO >? userInfos;
  10584. LiveRoomDTO({
  10585. this.liveRoomCode,
  10586. this.relatedCode,
  10587. this.initiatorCode,
  10588. this.integerRoomId = 0,
  10589. this.businessModule = BusinessModuleEnum.RemoteDiagnosis,
  10590. this.lastEndTime,
  10591. this.deviceInfos,
  10592. this.userInfos,
  10593. });
  10594. factory LiveRoomDTO.fromJson(Map<String, dynamic> map) {
  10595. return LiveRoomDTO(
  10596. liveRoomCode: map['LiveRoomCode'],
  10597. relatedCode: map['RelatedCode'],
  10598. initiatorCode: map['InitiatorCode'],
  10599. integerRoomId: map['IntegerRoomId'],
  10600. businessModule: BusinessModuleEnum.values.firstWhere((e) => e.index == map['BusinessModule']),
  10601. lastEndTime: map['LastEndTime'] != null ? DateTime.parse(map['LastEndTime']) : null,
  10602. deviceInfos: map['DeviceInfos'] != null ? (map['DeviceInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10603. userInfos: map['UserInfos'] != null ? (map['UserInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10604. );
  10605. }
  10606. Map<String, dynamic> toJson() {
  10607. final map = Map<String, dynamic>();
  10608. if(liveRoomCode != null)
  10609. map['LiveRoomCode'] = liveRoomCode;
  10610. if(relatedCode != null)
  10611. map['RelatedCode'] = relatedCode;
  10612. if(initiatorCode != null)
  10613. map['InitiatorCode'] = initiatorCode;
  10614. map['IntegerRoomId'] = integerRoomId;
  10615. map['BusinessModule'] = businessModule.index;
  10616. if(lastEndTime != null)
  10617. map['LastEndTime'] = JsonRpcUtils.dateFormat(lastEndTime!);
  10618. if(deviceInfos != null)
  10619. map['DeviceInfos'] = deviceInfos;
  10620. if(userInfos != null)
  10621. map['UserInfos'] = userInfos;
  10622. return map;
  10623. }
  10624. }
  10625. class GradingProtectionConfigDTO extends BaseDTO{
  10626. String? moduleCode;
  10627. String? name;
  10628. String? description;
  10629. GradingConfigTypeEnum configType;
  10630. String? value;
  10631. GradingProtectionConfigDTO({
  10632. this.moduleCode,
  10633. this.name,
  10634. this.description,
  10635. this.configType = GradingConfigTypeEnum.Switch,
  10636. this.value,
  10637. DateTime? createTime,
  10638. DateTime? updateTime,
  10639. }) : super(
  10640. createTime: createTime,
  10641. updateTime: updateTime,
  10642. );
  10643. factory GradingProtectionConfigDTO.fromJson(Map<String, dynamic> map) {
  10644. return GradingProtectionConfigDTO(
  10645. moduleCode: map['ModuleCode'],
  10646. name: map['Name'],
  10647. description: map['Description'],
  10648. configType: GradingConfigTypeEnum.values.firstWhere((e) => e.index == map['ConfigType']),
  10649. value: map['Value'],
  10650. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  10651. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  10652. );
  10653. }
  10654. Map<String, dynamic> toJson() {
  10655. final map = super.toJson();
  10656. if(moduleCode != null)
  10657. map['ModuleCode'] = moduleCode;
  10658. if(name != null)
  10659. map['Name'] = name;
  10660. if(description != null)
  10661. map['Description'] = description;
  10662. map['ConfigType'] = configType.index;
  10663. if(value != null)
  10664. map['Value'] = value;
  10665. return map;
  10666. }
  10667. }
  10668. class DistributedServerInfoDTO extends BaseDTO{
  10669. String? serverCode;
  10670. bool isMaster;
  10671. String? name;
  10672. String? description;
  10673. bool enable;
  10674. DistributedServerTypeEnum serverType;
  10675. String? serverUrl;
  10676. String? lat;
  10677. String? lng;
  10678. List<IPAddressInfoDTO >? assignClientIPList;
  10679. DistributedServerInfoDTO({
  10680. this.serverCode,
  10681. this.isMaster = false,
  10682. this.name,
  10683. this.description,
  10684. this.enable = false,
  10685. this.serverType = DistributedServerTypeEnum.Official,
  10686. this.serverUrl,
  10687. this.lat,
  10688. this.lng,
  10689. this.assignClientIPList,
  10690. DateTime? createTime,
  10691. DateTime? updateTime,
  10692. }) : super(
  10693. createTime: createTime,
  10694. updateTime: updateTime,
  10695. );
  10696. factory DistributedServerInfoDTO.fromJson(Map<String, dynamic> map) {
  10697. return DistributedServerInfoDTO(
  10698. serverCode: map['ServerCode'],
  10699. isMaster: map['IsMaster'],
  10700. name: map['Name'],
  10701. description: map['Description'],
  10702. enable: map['Enable'],
  10703. serverType: DistributedServerTypeEnum.values.firstWhere((e) => e.index == map['ServerType']),
  10704. serverUrl: map['ServerUrl'],
  10705. lat: map['Lat'],
  10706. lng: map['Lng'],
  10707. assignClientIPList: map['AssignClientIPList'] != null ? (map['AssignClientIPList'] as List).map((e)=>IPAddressInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10708. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  10709. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  10710. );
  10711. }
  10712. Map<String, dynamic> toJson() {
  10713. final map = super.toJson();
  10714. if(serverCode != null)
  10715. map['ServerCode'] = serverCode;
  10716. map['IsMaster'] = isMaster;
  10717. if(name != null)
  10718. map['Name'] = name;
  10719. if(description != null)
  10720. map['Description'] = description;
  10721. map['Enable'] = enable;
  10722. map['ServerType'] = serverType.index;
  10723. if(serverUrl != null)
  10724. map['ServerUrl'] = serverUrl;
  10725. if(lat != null)
  10726. map['Lat'] = lat;
  10727. if(lng != null)
  10728. map['Lng'] = lng;
  10729. if(assignClientIPList != null)
  10730. map['AssignClientIPList'] = assignClientIPList;
  10731. return map;
  10732. }
  10733. }
  10734. class ConsultationExpertDTO extends UserBaseDTO{
  10735. ConsultationExpertDTO({
  10736. String? userCode,
  10737. String? userName,
  10738. String? headImageUrl,
  10739. DateTime? createTime,
  10740. DateTime? updateTime,
  10741. }) : super(
  10742. userCode: userCode,
  10743. userName: userName,
  10744. headImageUrl: headImageUrl,
  10745. createTime: createTime,
  10746. updateTime: updateTime,
  10747. );
  10748. factory ConsultationExpertDTO.fromJson(Map<String, dynamic> map) {
  10749. return ConsultationExpertDTO(
  10750. userCode: map['UserCode'],
  10751. userName: map['UserName'],
  10752. headImageUrl: map['HeadImageUrl'],
  10753. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  10754. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  10755. );
  10756. }
  10757. Map<String, dynamic> toJson() {
  10758. final map = super.toJson();
  10759. return map;
  10760. }
  10761. }
  10762. class BannerSettingDTO {
  10763. String? bannerSettingCode;
  10764. StatisticsBannerTypeEnum settings;
  10765. String? imgUrl;
  10766. String? name;
  10767. String? transferUrl;
  10768. BannerSettingDTO({
  10769. this.bannerSettingCode,
  10770. this.settings = StatisticsBannerTypeEnum.PlatActivity,
  10771. this.imgUrl,
  10772. this.name,
  10773. this.transferUrl,
  10774. });
  10775. factory BannerSettingDTO.fromJson(Map<String, dynamic> map) {
  10776. return BannerSettingDTO(
  10777. bannerSettingCode: map['BannerSettingCode'],
  10778. settings: StatisticsBannerTypeEnum.values.firstWhere((e) => e.index == map['Settings']),
  10779. imgUrl: map['ImgUrl'],
  10780. name: map['Name'],
  10781. transferUrl: map['TransferUrl'],
  10782. );
  10783. }
  10784. Map<String, dynamic> toJson() {
  10785. final map = Map<String, dynamic>();
  10786. if(bannerSettingCode != null)
  10787. map['BannerSettingCode'] = bannerSettingCode;
  10788. map['Settings'] = settings.index;
  10789. if(imgUrl != null)
  10790. map['ImgUrl'] = imgUrl;
  10791. if(name != null)
  10792. map['Name'] = name;
  10793. if(transferUrl != null)
  10794. map['TransferUrl'] = transferUrl;
  10795. return map;
  10796. }
  10797. }
  10798. class AdminStatisticRecordDTO extends BaseDTO{
  10799. String? adminStatisticRecordCode;
  10800. String? adminStatisticCode;
  10801. String? adminStatisticName;
  10802. String? adminCode;
  10803. String? serverHost;
  10804. DateTime? lastestUpdateTime;
  10805. DateTime? nextHandleTime;
  10806. List<String >? xAxisDatas;
  10807. List<List<double> >? yAxisDatas;
  10808. List<StatisticInfoDTO >? children;
  10809. String? statisticJsonData;
  10810. StatisticsPlatformEnum statisticsPlatform;
  10811. AdminStatisticRecordDTO({
  10812. this.adminStatisticRecordCode,
  10813. this.adminStatisticCode,
  10814. this.adminStatisticName,
  10815. this.adminCode,
  10816. this.serverHost,
  10817. this.lastestUpdateTime,
  10818. this.nextHandleTime,
  10819. this.xAxisDatas,
  10820. this.yAxisDatas,
  10821. this.children,
  10822. this.statisticJsonData,
  10823. this.statisticsPlatform = StatisticsPlatformEnum.Management,
  10824. DateTime? createTime,
  10825. DateTime? updateTime,
  10826. }) : super(
  10827. createTime: createTime,
  10828. updateTime: updateTime,
  10829. );
  10830. factory AdminStatisticRecordDTO.fromJson(Map<String, dynamic> map) {
  10831. return AdminStatisticRecordDTO(
  10832. adminStatisticRecordCode: map['AdminStatisticRecordCode'],
  10833. adminStatisticCode: map['AdminStatisticCode'],
  10834. adminStatisticName: map['AdminStatisticName'],
  10835. adminCode: map['AdminCode'],
  10836. serverHost: map['ServerHost'],
  10837. lastestUpdateTime: map['LastestUpdateTime'] != null ? DateTime.parse(map['LastestUpdateTime']) : null,
  10838. nextHandleTime: map['NextHandleTime'] != null ? DateTime.parse(map['NextHandleTime']) : null,
  10839. xAxisDatas: map['XAxisDatas'] != null ? map['XAxisDatas'].cast<String>().toList() : null,
  10840. yAxisDatas: map['YAxisDatas'] != null ? map['YAxisDatas'].cast<List<double>>().toList() : null,
  10841. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10842. statisticJsonData: map['StatisticJsonData'],
  10843. statisticsPlatform: StatisticsPlatformEnum.values.firstWhere((e) => e.index == map['StatisticsPlatform']),
  10844. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  10845. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  10846. );
  10847. }
  10848. Map<String, dynamic> toJson() {
  10849. final map = super.toJson();
  10850. if(adminStatisticRecordCode != null)
  10851. map['AdminStatisticRecordCode'] = adminStatisticRecordCode;
  10852. if(adminStatisticCode != null)
  10853. map['AdminStatisticCode'] = adminStatisticCode;
  10854. if(adminStatisticName != null)
  10855. map['AdminStatisticName'] = adminStatisticName;
  10856. if(adminCode != null)
  10857. map['AdminCode'] = adminCode;
  10858. if(serverHost != null)
  10859. map['ServerHost'] = serverHost;
  10860. if(lastestUpdateTime != null)
  10861. map['LastestUpdateTime'] = JsonRpcUtils.dateFormat(lastestUpdateTime!);
  10862. if(nextHandleTime != null)
  10863. map['NextHandleTime'] = JsonRpcUtils.dateFormat(nextHandleTime!);
  10864. if(xAxisDatas != null)
  10865. map['XAxisDatas'] = xAxisDatas;
  10866. if(yAxisDatas != null)
  10867. map['YAxisDatas'] = yAxisDatas;
  10868. if(children != null)
  10869. map['Children'] = children;
  10870. if(statisticJsonData != null)
  10871. map['StatisticJsonData'] = statisticJsonData;
  10872. map['StatisticsPlatform'] = statisticsPlatform.index;
  10873. return map;
  10874. }
  10875. }
  10876. class CMSStatisticRecordDTO extends AdminStatisticRecordDTO{
  10877. CMSStatisticRecordDTO({
  10878. String? statisticJsonData,
  10879. String? adminStatisticRecordCode,
  10880. String? adminStatisticCode,
  10881. String? adminStatisticName,
  10882. String? adminCode,
  10883. String? serverHost,
  10884. DateTime? lastestUpdateTime,
  10885. DateTime? nextHandleTime,
  10886. List<String >? xAxisDatas,
  10887. List<List<double> >? yAxisDatas,
  10888. List<StatisticInfoDTO >? children,
  10889. StatisticsPlatformEnum statisticsPlatform = StatisticsPlatformEnum.Management,
  10890. DateTime? createTime,
  10891. DateTime? updateTime,
  10892. }) : super(
  10893. adminStatisticRecordCode: adminStatisticRecordCode,
  10894. adminStatisticCode: adminStatisticCode,
  10895. adminStatisticName: adminStatisticName,
  10896. adminCode: adminCode,
  10897. serverHost: serverHost,
  10898. lastestUpdateTime: lastestUpdateTime,
  10899. nextHandleTime: nextHandleTime,
  10900. xAxisDatas: xAxisDatas,
  10901. yAxisDatas: yAxisDatas,
  10902. children: children,
  10903. statisticJsonData: statisticJsonData,
  10904. statisticsPlatform: statisticsPlatform,
  10905. createTime: createTime,
  10906. updateTime: updateTime,
  10907. );
  10908. factory CMSStatisticRecordDTO.fromJson(Map<String, dynamic> map) {
  10909. return CMSStatisticRecordDTO(
  10910. statisticJsonData: map['StatisticJsonData'],
  10911. adminStatisticRecordCode: map['AdminStatisticRecordCode'],
  10912. adminStatisticCode: map['AdminStatisticCode'],
  10913. adminStatisticName: map['AdminStatisticName'],
  10914. adminCode: map['AdminCode'],
  10915. serverHost: map['ServerHost'],
  10916. lastestUpdateTime: map['LastestUpdateTime'] != null ? DateTime.parse(map['LastestUpdateTime']) : null,
  10917. nextHandleTime: map['NextHandleTime'] != null ? DateTime.parse(map['NextHandleTime']) : null,
  10918. xAxisDatas: map['XAxisDatas'] != null ? map['XAxisDatas'].cast<String>().toList() : null,
  10919. yAxisDatas: map['YAxisDatas'] != null ? map['YAxisDatas'].cast<List<double>>().toList() : null,
  10920. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10921. statisticsPlatform: StatisticsPlatformEnum.values.firstWhere((e) => e.index == map['StatisticsPlatform']),
  10922. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  10923. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  10924. );
  10925. }
  10926. Map<String, dynamic> toJson() {
  10927. final map = super.toJson();
  10928. return map;
  10929. }
  10930. }
  10931. class CMSTemplateDTO extends BaseDTO{
  10932. String? cMSTemplateCode;
  10933. String? cMSTemplateName;
  10934. CMSTemplateStatusTypeEnum cMSTemplateStateType;
  10935. String? cMSTemplateJson;
  10936. bool isDefault;
  10937. List<String >? organizationCodes;
  10938. CMSTemplateDTO({
  10939. this.cMSTemplateCode,
  10940. this.cMSTemplateName,
  10941. this.cMSTemplateStateType = CMSTemplateStatusTypeEnum.UnPublished,
  10942. this.cMSTemplateJson,
  10943. this.isDefault = false,
  10944. this.organizationCodes,
  10945. DateTime? createTime,
  10946. DateTime? updateTime,
  10947. }) : super(
  10948. createTime: createTime,
  10949. updateTime: updateTime,
  10950. );
  10951. factory CMSTemplateDTO.fromJson(Map<String, dynamic> map) {
  10952. return CMSTemplateDTO(
  10953. cMSTemplateCode: map['CMSTemplateCode'],
  10954. cMSTemplateName: map['CMSTemplateName'],
  10955. cMSTemplateStateType: CMSTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['CMSTemplateStateType']),
  10956. cMSTemplateJson: map['CMSTemplateJson'],
  10957. isDefault: map['IsDefault'],
  10958. organizationCodes: map['OrganizationCodes'] != null ? map['OrganizationCodes'].cast<String>().toList() : null,
  10959. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  10960. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  10961. );
  10962. }
  10963. Map<String, dynamic> toJson() {
  10964. final map = super.toJson();
  10965. if(cMSTemplateCode != null)
  10966. map['CMSTemplateCode'] = cMSTemplateCode;
  10967. if(cMSTemplateName != null)
  10968. map['CMSTemplateName'] = cMSTemplateName;
  10969. map['CMSTemplateStateType'] = cMSTemplateStateType.index;
  10970. if(cMSTemplateJson != null)
  10971. map['CMSTemplateJson'] = cMSTemplateJson;
  10972. map['IsDefault'] = isDefault;
  10973. if(organizationCodes != null)
  10974. map['OrganizationCodes'] = organizationCodes;
  10975. return map;
  10976. }
  10977. }
  10978. class StatisticAnnouncesDTO {
  10979. AnnouncementTypeEnum announcementType;
  10980. DateTime? contentTime;
  10981. String? content;
  10982. CMSMessageStatusEnum status;
  10983. StatisticAnnouncesDTO({
  10984. this.announcementType = AnnouncementTypeEnum.Broadcast,
  10985. this.contentTime,
  10986. this.content,
  10987. this.status = CMSMessageStatusEnum.UnRead,
  10988. });
  10989. factory StatisticAnnouncesDTO.fromJson(Map<String, dynamic> map) {
  10990. return StatisticAnnouncesDTO(
  10991. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  10992. contentTime: map['ContentTime'] != null ? DateTime.parse(map['ContentTime']) : null,
  10993. content: map['Content'],
  10994. status: CMSMessageStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  10995. );
  10996. }
  10997. Map<String, dynamic> toJson() {
  10998. final map = Map<String, dynamic>();
  10999. map['AnnouncementType'] = announcementType.index;
  11000. if(contentTime != null)
  11001. map['ContentTime'] = JsonRpcUtils.dateFormat(contentTime!);
  11002. if(content != null)
  11003. map['Content'] = content;
  11004. map['Status'] = status.index;
  11005. return map;
  11006. }
  11007. }
  11008. class StatisticDevicesDTO {
  11009. String? imgUrl;
  11010. String? name;
  11011. String? transferUrl;
  11012. StatisticDevicesDTO({
  11013. this.imgUrl,
  11014. this.name,
  11015. this.transferUrl,
  11016. });
  11017. factory StatisticDevicesDTO.fromJson(Map<String, dynamic> map) {
  11018. return StatisticDevicesDTO(
  11019. imgUrl: map['ImgUrl'],
  11020. name: map['Name'],
  11021. transferUrl: map['TransferUrl'],
  11022. );
  11023. }
  11024. Map<String, dynamic> toJson() {
  11025. final map = Map<String, dynamic>();
  11026. if(imgUrl != null)
  11027. map['ImgUrl'] = imgUrl;
  11028. if(name != null)
  11029. map['Name'] = name;
  11030. if(transferUrl != null)
  11031. map['TransferUrl'] = transferUrl;
  11032. return map;
  11033. }
  11034. }
  11035. class StatisticDownloadDTO {
  11036. String? imgUrl;
  11037. String? transferUrl;
  11038. StatisticDownloadDTO({
  11039. this.imgUrl,
  11040. this.transferUrl,
  11041. });
  11042. factory StatisticDownloadDTO.fromJson(Map<String, dynamic> map) {
  11043. return StatisticDownloadDTO(
  11044. imgUrl: map['ImgUrl'],
  11045. transferUrl: map['TransferUrl'],
  11046. );
  11047. }
  11048. Map<String, dynamic> toJson() {
  11049. final map = Map<String, dynamic>();
  11050. if(imgUrl != null)
  11051. map['ImgUrl'] = imgUrl;
  11052. if(transferUrl != null)
  11053. map['TransferUrl'] = transferUrl;
  11054. return map;
  11055. }
  11056. }
  11057. class StatisticMessagesDTO {
  11058. String? content;
  11059. DateTime? time;
  11060. String? transferUrl;
  11061. CMSMessageStatusEnum status;
  11062. StatisticMessagesDTO({
  11063. this.content,
  11064. this.time,
  11065. this.transferUrl,
  11066. this.status = CMSMessageStatusEnum.UnRead,
  11067. });
  11068. factory StatisticMessagesDTO.fromJson(Map<String, dynamic> map) {
  11069. return StatisticMessagesDTO(
  11070. content: map['Content'],
  11071. time: map['Time'] != null ? DateTime.parse(map['Time']) : null,
  11072. transferUrl: map['TransferUrl'],
  11073. status: CMSMessageStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  11074. );
  11075. }
  11076. Map<String, dynamic> toJson() {
  11077. final map = Map<String, dynamic>();
  11078. if(content != null)
  11079. map['Content'] = content;
  11080. if(time != null)
  11081. map['Time'] = JsonRpcUtils.dateFormat(time!);
  11082. if(transferUrl != null)
  11083. map['TransferUrl'] = transferUrl;
  11084. map['Status'] = status.index;
  11085. return map;
  11086. }
  11087. }
  11088. class StatisticMessageInfoDTO extends StatisticMessagesDTO{
  11089. String? userCode;
  11090. String? messageCode;
  11091. StatisticMessageInfoDTO({
  11092. this.userCode,
  11093. this.messageCode,
  11094. String? content,
  11095. DateTime? time,
  11096. String? transferUrl,
  11097. CMSMessageStatusEnum status = CMSMessageStatusEnum.UnRead,
  11098. }) : super(
  11099. content: content,
  11100. time: time,
  11101. transferUrl: transferUrl,
  11102. status: status,
  11103. );
  11104. factory StatisticMessageInfoDTO.fromJson(Map<String, dynamic> map) {
  11105. return StatisticMessageInfoDTO(
  11106. userCode: map['UserCode'],
  11107. messageCode: map['MessageCode'],
  11108. content: map['Content'],
  11109. time: map['Time'] != null ? DateTime.parse(map['Time']) : null,
  11110. transferUrl: map['TransferUrl'],
  11111. status: CMSMessageStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  11112. );
  11113. }
  11114. Map<String, dynamic> toJson() {
  11115. final map = super.toJson();
  11116. if(userCode != null)
  11117. map['UserCode'] = userCode;
  11118. if(messageCode != null)
  11119. map['MessageCode'] = messageCode;
  11120. return map;
  11121. }
  11122. }
  11123. class StatisticMyPendingDTO {
  11124. String? title;
  11125. double rate;
  11126. StatisticMyPendingDTO({
  11127. this.title,
  11128. this.rate = 0,
  11129. });
  11130. factory StatisticMyPendingDTO.fromJson(Map<String, dynamic> map) {
  11131. return StatisticMyPendingDTO(
  11132. title: map['Title'],
  11133. rate: double.parse(map['Rate'].toString()),
  11134. );
  11135. }
  11136. Map<String, dynamic> toJson() {
  11137. final map = Map<String, dynamic>();
  11138. if(title != null)
  11139. map['Title'] = title;
  11140. map['Rate'] = rate;
  11141. return map;
  11142. }
  11143. }
  11144. class StatisticMyStandingDTO {
  11145. String? title;
  11146. int data;
  11147. String? unit;
  11148. String? transferUrl;
  11149. StatisticMyStandingDTO({
  11150. this.title,
  11151. this.data = 0,
  11152. this.unit,
  11153. this.transferUrl,
  11154. });
  11155. factory StatisticMyStandingDTO.fromJson(Map<String, dynamic> map) {
  11156. return StatisticMyStandingDTO(
  11157. title: map['Title'],
  11158. data: map['Data'],
  11159. unit: map['Unit'],
  11160. transferUrl: map['TransferUrl'],
  11161. );
  11162. }
  11163. Map<String, dynamic> toJson() {
  11164. final map = Map<String, dynamic>();
  11165. if(title != null)
  11166. map['Title'] = title;
  11167. map['Data'] = data;
  11168. if(unit != null)
  11169. map['Unit'] = unit;
  11170. if(transferUrl != null)
  11171. map['TransferUrl'] = transferUrl;
  11172. return map;
  11173. }
  11174. }
  11175. class StatisticPlatActivityDTO {
  11176. String? imgUrl;
  11177. String? transferUrl;
  11178. StatisticPlatActivityDTO({
  11179. this.imgUrl,
  11180. this.transferUrl,
  11181. });
  11182. factory StatisticPlatActivityDTO.fromJson(Map<String, dynamic> map) {
  11183. return StatisticPlatActivityDTO(
  11184. imgUrl: map['ImgUrl'],
  11185. transferUrl: map['TransferUrl'],
  11186. );
  11187. }
  11188. Map<String, dynamic> toJson() {
  11189. final map = Map<String, dynamic>();
  11190. if(imgUrl != null)
  11191. map['ImgUrl'] = imgUrl;
  11192. if(transferUrl != null)
  11193. map['TransferUrl'] = transferUrl;
  11194. return map;
  11195. }
  11196. }
  11197. class StatisticUpdateCourseDTO {
  11198. String? title;
  11199. String? teacher;
  11200. String? thumbnail;
  11201. String? transferUrl;
  11202. StatisticUpdateCourseDTO({
  11203. this.title,
  11204. this.teacher,
  11205. this.thumbnail,
  11206. this.transferUrl,
  11207. });
  11208. factory StatisticUpdateCourseDTO.fromJson(Map<String, dynamic> map) {
  11209. return StatisticUpdateCourseDTO(
  11210. title: map['Title'],
  11211. teacher: map['Teacher'],
  11212. thumbnail: map['Thumbnail'],
  11213. transferUrl: map['TransferUrl'],
  11214. );
  11215. }
  11216. Map<String, dynamic> toJson() {
  11217. final map = Map<String, dynamic>();
  11218. if(title != null)
  11219. map['Title'] = title;
  11220. if(teacher != null)
  11221. map['Teacher'] = teacher;
  11222. if(thumbnail != null)
  11223. map['Thumbnail'] = thumbnail;
  11224. if(transferUrl != null)
  11225. map['TransferUrl'] = transferUrl;
  11226. return map;
  11227. }
  11228. }
  11229. class BaseFeatureItemDTO extends BaseFeatureItemBaseDTO<BaseFeatureItemDTO>{
  11230. BaseFeatureItemDTO(
  11231. );
  11232. factory BaseFeatureItemDTO.fromJson(Map<String, dynamic> map) {
  11233. return BaseFeatureItemDTO(
  11234. );
  11235. }
  11236. Map<String, dynamic> toJson() {
  11237. final map = super.toJson();
  11238. return map;
  11239. }
  11240. }
  11241. class AIDiagnosisLesionSize {
  11242. AIDiagnosisPoint2D? horizontalPoint1;
  11243. AIDiagnosisPoint2D? horizontalPoint2;
  11244. int horizontalLengthInPixel;
  11245. AIDiagnosisPoint2D? verticalPoint1;
  11246. AIDiagnosisPoint2D? verticalPoint2;
  11247. int verticalLengthInPixel;
  11248. AIDiagnosisLesionSize({
  11249. this.horizontalPoint1,
  11250. this.horizontalPoint2,
  11251. this.horizontalLengthInPixel = 0,
  11252. this.verticalPoint1,
  11253. this.verticalPoint2,
  11254. this.verticalLengthInPixel = 0,
  11255. });
  11256. factory AIDiagnosisLesionSize.fromJson(Map<String, dynamic> map) {
  11257. return AIDiagnosisLesionSize(
  11258. horizontalPoint1: map['HorizontalPoint1'] != null ? AIDiagnosisPoint2D.fromJson(map['HorizontalPoint1']) : null,
  11259. horizontalPoint2: map['HorizontalPoint2'] != null ? AIDiagnosisPoint2D.fromJson(map['HorizontalPoint2']) : null,
  11260. horizontalLengthInPixel: map['HorizontalLengthInPixel'],
  11261. verticalPoint1: map['VerticalPoint1'] != null ? AIDiagnosisPoint2D.fromJson(map['VerticalPoint1']) : null,
  11262. verticalPoint2: map['VerticalPoint2'] != null ? AIDiagnosisPoint2D.fromJson(map['VerticalPoint2']) : null,
  11263. verticalLengthInPixel: map['VerticalLengthInPixel'],
  11264. );
  11265. }
  11266. Map<String, dynamic> toJson() {
  11267. final map = Map<String, dynamic>();
  11268. if(horizontalPoint1 != null)
  11269. map['HorizontalPoint1'] = horizontalPoint1;
  11270. if(horizontalPoint2 != null)
  11271. map['HorizontalPoint2'] = horizontalPoint2;
  11272. map['HorizontalLengthInPixel'] = horizontalLengthInPixel;
  11273. if(verticalPoint1 != null)
  11274. map['VerticalPoint1'] = verticalPoint1;
  11275. if(verticalPoint2 != null)
  11276. map['VerticalPoint2'] = verticalPoint2;
  11277. map['VerticalLengthInPixel'] = verticalLengthInPixel;
  11278. return map;
  11279. }
  11280. }
  11281. class ArrowCommentItemDTO {
  11282. ArrowOrientation arrowOrientation;
  11283. String? text;
  11284. ArrowCommentItemDTO({
  11285. this.arrowOrientation = ArrowOrientation.Down,
  11286. this.text,
  11287. });
  11288. factory ArrowCommentItemDTO.fromJson(Map<String, dynamic> map) {
  11289. return ArrowCommentItemDTO(
  11290. arrowOrientation: ArrowOrientation.values.firstWhere((e) => e.index == map['ArrowOrientation']),
  11291. text: map['Text'],
  11292. );
  11293. }
  11294. Map<String, dynamic> toJson() {
  11295. final map = Map<String, dynamic>();
  11296. map['ArrowOrientation'] = arrowOrientation.index;
  11297. if(text != null)
  11298. map['Text'] = text;
  11299. return map;
  11300. }
  11301. }
  11302. class UserDefinedCommentsDTO {
  11303. String? userId;
  11304. List<UserDefinedCommentDataDTO >? commentItems;
  11305. UserDefinedCommentsDTO({
  11306. this.userId,
  11307. this.commentItems,
  11308. });
  11309. factory UserDefinedCommentsDTO.fromJson(Map<String, dynamic> map) {
  11310. return UserDefinedCommentsDTO(
  11311. userId: map['UserId'],
  11312. commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>UserDefinedCommentDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11313. );
  11314. }
  11315. Map<String, dynamic> toJson() {
  11316. final map = Map<String, dynamic>();
  11317. if(userId != null)
  11318. map['UserId'] = userId;
  11319. if(commentItems != null)
  11320. map['CommentItems'] = commentItems;
  11321. return map;
  11322. }
  11323. }
  11324. class AdminStatisticDTO extends BaseDTO{
  11325. String? adminStatisticCode;
  11326. String? name;
  11327. String? description;
  11328. String? intervalSetting;
  11329. bool enabled;
  11330. String? handleClass;
  11331. String? serverHost;
  11332. AdminStatisticDTO({
  11333. this.adminStatisticCode,
  11334. this.name,
  11335. this.description,
  11336. this.intervalSetting,
  11337. this.enabled = false,
  11338. this.handleClass,
  11339. this.serverHost,
  11340. DateTime? createTime,
  11341. DateTime? updateTime,
  11342. }) : super(
  11343. createTime: createTime,
  11344. updateTime: updateTime,
  11345. );
  11346. factory AdminStatisticDTO.fromJson(Map<String, dynamic> map) {
  11347. return AdminStatisticDTO(
  11348. adminStatisticCode: map['AdminStatisticCode'],
  11349. name: map['Name'],
  11350. description: map['Description'],
  11351. intervalSetting: map['IntervalSetting'],
  11352. enabled: map['Enabled'],
  11353. handleClass: map['HandleClass'],
  11354. serverHost: map['ServerHost'],
  11355. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  11356. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  11357. );
  11358. }
  11359. Map<String, dynamic> toJson() {
  11360. final map = super.toJson();
  11361. if(adminStatisticCode != null)
  11362. map['AdminStatisticCode'] = adminStatisticCode;
  11363. if(name != null)
  11364. map['Name'] = name;
  11365. if(description != null)
  11366. map['Description'] = description;
  11367. if(intervalSetting != null)
  11368. map['IntervalSetting'] = intervalSetting;
  11369. map['Enabled'] = enabled;
  11370. if(handleClass != null)
  11371. map['HandleClass'] = handleClass;
  11372. if(serverHost != null)
  11373. map['ServerHost'] = serverHost;
  11374. return map;
  11375. }
  11376. }
  11377. class AdminFeatureItemDTO extends BaseFeatureItemBaseDTO<AdminFeatureItemDTO>{
  11378. AdminFeatureItemDTO(
  11379. );
  11380. factory AdminFeatureItemDTO.fromJson(Map<String, dynamic> map) {
  11381. return AdminFeatureItemDTO(
  11382. );
  11383. }
  11384. Map<String, dynamic> toJson() {
  11385. final map = super.toJson();
  11386. return map;
  11387. }
  11388. }
  11389. class AdminAuthorityGroupDTO extends BaseDTO{
  11390. String? adminGroupCode;
  11391. String? description;
  11392. List<String >? adminCodes;
  11393. List<String >? features;
  11394. String? createAdmin;
  11395. AdminAuthorityGroupDTO({
  11396. this.adminGroupCode,
  11397. this.description,
  11398. this.adminCodes,
  11399. this.features,
  11400. this.createAdmin,
  11401. DateTime? createTime,
  11402. DateTime? updateTime,
  11403. }) : super(
  11404. createTime: createTime,
  11405. updateTime: updateTime,
  11406. );
  11407. factory AdminAuthorityGroupDTO.fromJson(Map<String, dynamic> map) {
  11408. return AdminAuthorityGroupDTO(
  11409. adminGroupCode: map['AdminGroupCode'],
  11410. description: map['Description'],
  11411. adminCodes: map['AdminCodes'] != null ? map['AdminCodes'].cast<String>().toList() : null,
  11412. features: map['Features'] != null ? map['Features'].cast<String>().toList() : null,
  11413. createAdmin: map['CreateAdmin'],
  11414. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  11415. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  11416. );
  11417. }
  11418. Map<String, dynamic> toJson() {
  11419. final map = super.toJson();
  11420. if(adminGroupCode != null)
  11421. map['AdminGroupCode'] = adminGroupCode;
  11422. if(description != null)
  11423. map['Description'] = description;
  11424. if(adminCodes != null)
  11425. map['AdminCodes'] = adminCodes;
  11426. if(features != null)
  11427. map['Features'] = features;
  11428. if(createAdmin != null)
  11429. map['CreateAdmin'] = createAdmin;
  11430. return map;
  11431. }
  11432. }