other.m.dart 398 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839
  1. import 'authentication.m.dart';
  2. import 'notification.m.dart';
  3. import 'login.m.dart';
  4. import 'upgrade.m.dart';
  5. import 'user.m.dart';
  6. import 'liveConsultation.m.dart';
  7. import 'patient.m.dart';
  8. import 'remedical.m.dart';
  9. import 'recordInfo.m.dart';
  10. import 'organization.m.dart';
  11. import 'device.m.dart';
  12. import 'education.m.dart';
  13. import 'connect.m.dart';
  14. import 'aIDiagnosis.m.dart';
  15. import 'storage.m.dart';
  16. import 'report.m.dart';
  17. import 'payment.m.dart';
  18. import 'lab.m.dart';
  19. import 'vinnoServer.m.dart';
  20. import 'position.m.dart';
  21. import 'rank.m.dart';
  22. import 'identityApply.m.dart';
  23. import 'role.m.dart';
  24. import 'region.m.dart';
  25. import 'aSR.m.dart';
  26. import 'deployPlatform.m.dart';
  27. import 'package:fis_jsonrpc/utils.dart';
  28. import 'package:fis_common/json_convert.dart';
  29. class GenerateRoomUrlRequest {
  30. int roomId;
  31. String? uniqueId;
  32. GenerateRoomUrlRequest({
  33. this.roomId = 0,
  34. this.uniqueId,
  35. });
  36. factory GenerateRoomUrlRequest.fromJson(Map<String, dynamic> map) {
  37. return GenerateRoomUrlRequest(
  38. roomId: map['RoomId'],
  39. uniqueId: map['UniqueId'],
  40. );
  41. }
  42. Map<String, dynamic> toJson() {
  43. final map = Map<String, dynamic>();
  44. map['RoomId'] = roomId;
  45. if(uniqueId != null)
  46. map['UniqueId'] = uniqueId;
  47. return map;
  48. }
  49. }
  50. class GenerateRoomUrlResult {
  51. String? rtmpUrl;
  52. String? hlsUrl;
  53. String? flvUrl;
  54. GenerateRoomUrlResult({
  55. this.rtmpUrl,
  56. this.hlsUrl,
  57. this.flvUrl,
  58. });
  59. factory GenerateRoomUrlResult.fromJson(Map<String, dynamic> map) {
  60. return GenerateRoomUrlResult(
  61. rtmpUrl: map['RtmpUrl'],
  62. hlsUrl: map['HlsUrl'],
  63. flvUrl: map['FlvUrl'],
  64. );
  65. }
  66. Map<String, dynamic> toJson() {
  67. final map = Map<String, dynamic>();
  68. if(rtmpUrl != null)
  69. map['RtmpUrl'] = rtmpUrl;
  70. if(hlsUrl != null)
  71. map['HlsUrl'] = hlsUrl;
  72. if(flvUrl != null)
  73. map['FlvUrl'] = flvUrl;
  74. return map;
  75. }
  76. }
  77. class GetRoomIdRequest {
  78. String? uniqueId;
  79. GetRoomIdRequest({
  80. this.uniqueId,
  81. });
  82. factory GetRoomIdRequest.fromJson(Map<String, dynamic> map) {
  83. return GetRoomIdRequest(
  84. uniqueId: map['UniqueId'],
  85. );
  86. }
  87. Map<String, dynamic> toJson() {
  88. final map = Map<String, dynamic>();
  89. if(uniqueId != null)
  90. map['UniqueId'] = uniqueId;
  91. return map;
  92. }
  93. }
  94. class GetRoomIdResult {
  95. int roomId;
  96. GetRoomIdResult({
  97. this.roomId = 0,
  98. });
  99. factory GetRoomIdResult.fromJson(Map<String, dynamic> map) {
  100. return GetRoomIdResult(
  101. roomId: map['RoomId'],
  102. );
  103. }
  104. Map<String, dynamic> toJson() {
  105. final map = Map<String, dynamic>();
  106. map['RoomId'] = roomId;
  107. return map;
  108. }
  109. }
  110. class GetRtcSettingRequest {
  111. GetRtcSettingRequest();
  112. factory GetRtcSettingRequest.fromJson(Map<String, dynamic> map) {
  113. return GetRtcSettingRequest(
  114. );
  115. }
  116. Map<String, dynamic> toJson() {
  117. final map = Map<String, dynamic>();
  118. return map;
  119. }
  120. }
  121. class GetRtcSettingResult {
  122. int appId;
  123. GetRtcSettingResult({
  124. this.appId = 0,
  125. });
  126. factory GetRtcSettingResult.fromJson(Map<String, dynamic> map) {
  127. return GetRtcSettingResult(
  128. appId: map['AppId'],
  129. );
  130. }
  131. Map<String, dynamic> toJson() {
  132. final map = Map<String, dynamic>();
  133. map['AppId'] = appId;
  134. return map;
  135. }
  136. }
  137. class GetUserSignRequest {
  138. String? userId;
  139. GetUserSignRequest({
  140. this.userId,
  141. });
  142. factory GetUserSignRequest.fromJson(Map<String, dynamic> map) {
  143. return GetUserSignRequest(
  144. userId: map['UserId'],
  145. );
  146. }
  147. Map<String, dynamic> toJson() {
  148. final map = Map<String, dynamic>();
  149. if(userId != null)
  150. map['UserId'] = userId;
  151. return map;
  152. }
  153. }
  154. class GetUserSignResult {
  155. String? userSign;
  156. GetUserSignResult({
  157. this.userSign,
  158. });
  159. factory GetUserSignResult.fromJson(Map<String, dynamic> map) {
  160. return GetUserSignResult(
  161. userSign: map['UserSign'],
  162. );
  163. }
  164. Map<String, dynamic> toJson() {
  165. final map = Map<String, dynamic>();
  166. if(userSign != null)
  167. map['UserSign'] = userSign;
  168. return map;
  169. }
  170. }
  171. class StorageInfoResult {
  172. int code;
  173. bool isSuccess;
  174. String? message;
  175. StorageInfoResult({
  176. this.code = 0,
  177. this.isSuccess = false,
  178. this.message,
  179. });
  180. factory StorageInfoResult.fromJson(Map<String, dynamic> map) {
  181. return StorageInfoResult(
  182. code: map['Code'],
  183. isSuccess: map['IsSuccess'],
  184. message: map['Message'],
  185. );
  186. }
  187. Map<String, dynamic> toJson() {
  188. final map = Map<String, dynamic>();
  189. map['Code'] = code;
  190. map['IsSuccess'] = isSuccess;
  191. if(message != null)
  192. map['Message'] = message;
  193. return map;
  194. }
  195. }
  196. class MeasureItemsResult {
  197. MeasureItemsResult();
  198. factory MeasureItemsResult.fromJson(Map<String, dynamic> map) {
  199. return MeasureItemsResult(
  200. );
  201. }
  202. Map<String, dynamic> toJson() {
  203. final map = Map<String, dynamic>();
  204. return map;
  205. }
  206. }
  207. class WaitClearLogResult {
  208. int daysAgo;
  209. int waitDelCount;
  210. WaitClearLogResult({
  211. this.daysAgo = 0,
  212. this.waitDelCount = 0,
  213. });
  214. factory WaitClearLogResult.fromJson(Map<String, dynamic> map) {
  215. return WaitClearLogResult(
  216. daysAgo: map['DaysAgo'],
  217. waitDelCount: map['WaitDelCount'],
  218. );
  219. }
  220. Map<String, dynamic> toJson() {
  221. final map = Map<String, dynamic>();
  222. map['DaysAgo'] = daysAgo;
  223. map['WaitDelCount'] = waitDelCount;
  224. return map;
  225. }
  226. }
  227. class ClearSystemLogRecordResult {
  228. int daysAgo;
  229. String? requestServerHost;
  230. String? clearTime;
  231. List<WaitClearLogResult >? waitClearLogs;
  232. ClearSystemLogRecordResult({
  233. this.daysAgo = 0,
  234. this.requestServerHost,
  235. this.clearTime,
  236. this.waitClearLogs,
  237. });
  238. factory ClearSystemLogRecordResult.fromJson(Map<String, dynamic> map) {
  239. return ClearSystemLogRecordResult(
  240. daysAgo: map['DaysAgo'],
  241. requestServerHost: map['RequestServerHost'],
  242. clearTime: map['ClearTime'],
  243. waitClearLogs: map['WaitClearLogs'] != null ? (map['WaitClearLogs'] as List).map((e)=>WaitClearLogResult.fromJson(e as Map<String,dynamic>)).toList() : null,
  244. );
  245. }
  246. Map<String, dynamic> toJson() {
  247. final map = Map<String, dynamic>();
  248. map['DaysAgo'] = daysAgo;
  249. if(requestServerHost != null)
  250. map['RequestServerHost'] = requestServerHost;
  251. if(clearTime != null)
  252. map['ClearTime'] = clearTime;
  253. if(waitClearLogs != null)
  254. map['WaitClearLogs'] = waitClearLogs;
  255. return map;
  256. }
  257. }
  258. enum CMSTemplateStatusTypeEnum {
  259. UnPublished,
  260. Published,
  261. }
  262. class CMSTemplateResult {
  263. String? cMSTemplateCode;
  264. String? cMSTemplateName;
  265. CMSTemplateStatusTypeEnum cMSTemplateStateType;
  266. String? cMSTemplateJson;
  267. bool isDefault;
  268. DateTime? createTime;
  269. CMSTemplateResult({
  270. this.cMSTemplateCode,
  271. this.cMSTemplateName,
  272. this.cMSTemplateStateType = CMSTemplateStatusTypeEnum.UnPublished,
  273. this.cMSTemplateJson,
  274. this.isDefault = false,
  275. this.createTime,
  276. });
  277. factory CMSTemplateResult.fromJson(Map<String, dynamic> map) {
  278. return CMSTemplateResult(
  279. cMSTemplateCode: map['CMSTemplateCode'],
  280. cMSTemplateName: map['CMSTemplateName'],
  281. cMSTemplateStateType: CMSTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['CMSTemplateStateType']),
  282. cMSTemplateJson: map['CMSTemplateJson'],
  283. isDefault: map['IsDefault'],
  284. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  285. );
  286. }
  287. Map<String, dynamic> toJson() {
  288. final map = Map<String, dynamic>();
  289. if(cMSTemplateCode != null)
  290. map['CMSTemplateCode'] = cMSTemplateCode;
  291. if(cMSTemplateName != null)
  292. map['CMSTemplateName'] = cMSTemplateName;
  293. map['CMSTemplateStateType'] = cMSTemplateStateType.index;
  294. if(cMSTemplateJson != null)
  295. map['CMSTemplateJson'] = cMSTemplateJson;
  296. map['IsDefault'] = isDefault;
  297. if(createTime != null)
  298. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  299. return map;
  300. }
  301. }
  302. class OrganizationBindQueryResult {
  303. int bindDeviceNum;
  304. int bindUserNum;
  305. OrganizationBindQueryResult({
  306. this.bindDeviceNum = 0,
  307. this.bindUserNum = 0,
  308. });
  309. factory OrganizationBindQueryResult.fromJson(Map<String, dynamic> map) {
  310. return OrganizationBindQueryResult(
  311. bindDeviceNum: map['BindDeviceNum'],
  312. bindUserNum: map['BindUserNum'],
  313. );
  314. }
  315. Map<String, dynamic> toJson() {
  316. final map = Map<String, dynamic>();
  317. map['BindDeviceNum'] = bindDeviceNum;
  318. map['BindUserNum'] = bindUserNum;
  319. return map;
  320. }
  321. }
  322. class ShareExamUrlResult {
  323. String? posterUrl;
  324. String? videoUrl;
  325. ShareExamUrlResult({
  326. this.posterUrl,
  327. this.videoUrl,
  328. });
  329. factory ShareExamUrlResult.fromJson(Map<String, dynamic> map) {
  330. return ShareExamUrlResult(
  331. posterUrl: map['PosterUrl'],
  332. videoUrl: map['VideoUrl'],
  333. );
  334. }
  335. Map<String, dynamic> toJson() {
  336. final map = Map<String, dynamic>();
  337. if(posterUrl != null)
  338. map['PosterUrl'] = posterUrl;
  339. if(videoUrl != null)
  340. map['VideoUrl'] = videoUrl;
  341. return map;
  342. }
  343. }
  344. class ApplyLockResult {
  345. bool isSuccess;
  346. String? lockUniqueCode;
  347. ApplyLockResult({
  348. this.isSuccess = false,
  349. this.lockUniqueCode,
  350. });
  351. factory ApplyLockResult.fromJson(Map<String, dynamic> map) {
  352. return ApplyLockResult(
  353. isSuccess: map['IsSuccess'],
  354. lockUniqueCode: map['LockUniqueCode'],
  355. );
  356. }
  357. Map<String, dynamic> toJson() {
  358. final map = Map<String, dynamic>();
  359. map['IsSuccess'] = isSuccess;
  360. if(lockUniqueCode != null)
  361. map['LockUniqueCode'] = lockUniqueCode;
  362. return map;
  363. }
  364. }
  365. class ReleaseLockResult {
  366. bool isSuccess;
  367. ReleaseLockResult({
  368. this.isSuccess = false,
  369. });
  370. factory ReleaseLockResult.fromJson(Map<String, dynamic> map) {
  371. return ReleaseLockResult(
  372. isSuccess: map['IsSuccess'],
  373. );
  374. }
  375. Map<String, dynamic> toJson() {
  376. final map = Map<String, dynamic>();
  377. map['IsSuccess'] = isSuccess;
  378. return map;
  379. }
  380. }
  381. class MarshalByRefObject {
  382. MarshalByRefObject();
  383. factory MarshalByRefObject.fromJson(Map<String, dynamic> map) {
  384. return MarshalByRefObject(
  385. );
  386. }
  387. Map<String, dynamic> toJson() {
  388. final map = Map<String, dynamic>();
  389. return map;
  390. }
  391. }
  392. class Stream extends MarshalByRefObject{
  393. bool canRead;
  394. bool canWrite;
  395. bool canSeek;
  396. bool canTimeout;
  397. int length;
  398. int position;
  399. int readTimeout;
  400. int writeTimeout;
  401. Stream({
  402. this.canRead = false,
  403. this.canWrite = false,
  404. this.canSeek = false,
  405. this.canTimeout = false,
  406. this.length = 0,
  407. this.position = 0,
  408. this.readTimeout = 0,
  409. this.writeTimeout = 0,
  410. }) : super(
  411. );
  412. factory Stream.fromJson(Map<String, dynamic> map) {
  413. return Stream(
  414. canRead: map['CanRead'],
  415. canWrite: map['CanWrite'],
  416. canSeek: map['CanSeek'],
  417. canTimeout: map['CanTimeout'],
  418. length: map['Length'],
  419. position: map['Position'],
  420. readTimeout: map['ReadTimeout'],
  421. writeTimeout: map['WriteTimeout'],
  422. );
  423. }
  424. Map<String, dynamic> toJson() {
  425. final map = super.toJson();
  426. map['CanRead'] = canRead;
  427. map['CanWrite'] = canWrite;
  428. map['CanSeek'] = canSeek;
  429. map['CanTimeout'] = canTimeout;
  430. map['Length'] = length;
  431. map['Position'] = position;
  432. map['ReadTimeout'] = readTimeout;
  433. map['WriteTimeout'] = writeTimeout;
  434. return map;
  435. }
  436. }
  437. class DownloadFileResult {
  438. Stream? merageFileStream;
  439. int fileSize;
  440. DownloadFileResult({
  441. this.merageFileStream,
  442. this.fileSize = 0,
  443. });
  444. factory DownloadFileResult.fromJson(Map<String, dynamic> map) {
  445. return DownloadFileResult(
  446. merageFileStream: map['MerageFileStream'] != null ? Stream.fromJson(map['MerageFileStream']) : null,
  447. fileSize: map['FileSize'],
  448. );
  449. }
  450. Map<String, dynamic> toJson() {
  451. final map = Map<String, dynamic>();
  452. if(merageFileStream != null)
  453. map['MerageFileStream'] = merageFileStream;
  454. map['FileSize'] = fileSize;
  455. return map;
  456. }
  457. }
  458. class BaseLiveResult {
  459. String? roomCode;
  460. int integerRoomId;
  461. String? rtcMessageJson;
  462. BaseLiveResult({
  463. this.roomCode,
  464. this.integerRoomId = 0,
  465. this.rtcMessageJson,
  466. });
  467. factory BaseLiveResult.fromJson(Map<String, dynamic> map) {
  468. return BaseLiveResult(
  469. roomCode: map['RoomCode'],
  470. integerRoomId: map['IntegerRoomId'],
  471. rtcMessageJson: map['RtcMessageJson'],
  472. );
  473. }
  474. Map<String, dynamic> toJson() {
  475. final map = Map<String, dynamic>();
  476. if(roomCode != null)
  477. map['RoomCode'] = roomCode;
  478. map['IntegerRoomId'] = integerRoomId;
  479. if(rtcMessageJson != null)
  480. map['RtcMessageJson'] = rtcMessageJson;
  481. return map;
  482. }
  483. }
  484. class MuteLiveResult extends BaseLiveResult{
  485. bool mute;
  486. MuteLiveResult({
  487. this.mute = false,
  488. String? roomCode,
  489. int integerRoomId = 0,
  490. String? rtcMessageJson,
  491. }) : super(
  492. roomCode: roomCode,
  493. integerRoomId: integerRoomId,
  494. rtcMessageJson: rtcMessageJson,
  495. );
  496. factory MuteLiveResult.fromJson(Map<String, dynamic> map) {
  497. return MuteLiveResult(
  498. mute: map['Mute'],
  499. roomCode: map['RoomCode'],
  500. integerRoomId: map['IntegerRoomId'],
  501. rtcMessageJson: map['RtcMessageJson'],
  502. );
  503. }
  504. Map<String, dynamic> toJson() {
  505. final map = super.toJson();
  506. map['Mute'] = mute;
  507. return map;
  508. }
  509. }
  510. class OpenedVideoLiveResult extends BaseLiveResult{
  511. bool videoOpend;
  512. OpenedVideoLiveResult({
  513. this.videoOpend = false,
  514. String? roomCode,
  515. int integerRoomId = 0,
  516. String? rtcMessageJson,
  517. }) : super(
  518. roomCode: roomCode,
  519. integerRoomId: integerRoomId,
  520. rtcMessageJson: rtcMessageJson,
  521. );
  522. factory OpenedVideoLiveResult.fromJson(Map<String, dynamic> map) {
  523. return OpenedVideoLiveResult(
  524. videoOpend: map['VideoOpend'],
  525. roomCode: map['RoomCode'],
  526. integerRoomId: map['IntegerRoomId'],
  527. rtcMessageJson: map['RtcMessageJson'],
  528. );
  529. }
  530. Map<String, dynamic> toJson() {
  531. final map = super.toJson();
  532. map['VideoOpend'] = videoOpend;
  533. return map;
  534. }
  535. }
  536. class ControllingParameterLiveResult extends BaseLiveResult{
  537. bool isControllingParameter;
  538. ControllingParameterLiveResult({
  539. this.isControllingParameter = false,
  540. String? roomCode,
  541. int integerRoomId = 0,
  542. String? rtcMessageJson,
  543. }) : super(
  544. roomCode: roomCode,
  545. integerRoomId: integerRoomId,
  546. rtcMessageJson: rtcMessageJson,
  547. );
  548. factory ControllingParameterLiveResult.fromJson(Map<String, dynamic> map) {
  549. return ControllingParameterLiveResult(
  550. isControllingParameter: map['IsControllingParameter'],
  551. roomCode: map['RoomCode'],
  552. integerRoomId: map['IntegerRoomId'],
  553. rtcMessageJson: map['RtcMessageJson'],
  554. );
  555. }
  556. Map<String, dynamic> toJson() {
  557. final map = super.toJson();
  558. map['IsControllingParameter'] = isControllingParameter;
  559. return map;
  560. }
  561. }
  562. class ChangeCourseStatusResult extends BaseLiveResult{
  563. CourseStatusEnum status;
  564. ChangeCourseStatusResult({
  565. this.status = CourseStatusEnum.Unknown,
  566. String? roomCode,
  567. int integerRoomId = 0,
  568. String? rtcMessageJson,
  569. }) : super(
  570. roomCode: roomCode,
  571. integerRoomId: integerRoomId,
  572. rtcMessageJson: rtcMessageJson,
  573. );
  574. factory ChangeCourseStatusResult.fromJson(Map<String, dynamic> map) {
  575. return ChangeCourseStatusResult(
  576. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  577. roomCode: map['RoomCode'],
  578. integerRoomId: map['IntegerRoomId'],
  579. rtcMessageJson: map['RtcMessageJson'],
  580. );
  581. }
  582. Map<String, dynamic> toJson() {
  583. final map = super.toJson();
  584. map['Status'] = status.index;
  585. return map;
  586. }
  587. }
  588. class FindConsultationSettingResult {
  589. String? version;
  590. String? settingData;
  591. FindConsultationSettingResult({
  592. this.version,
  593. this.settingData,
  594. });
  595. factory FindConsultationSettingResult.fromJson(Map<String, dynamic> map) {
  596. return FindConsultationSettingResult(
  597. version: map['Version'],
  598. settingData: map['SettingData'],
  599. );
  600. }
  601. Map<String, dynamic> toJson() {
  602. final map = Map<String, dynamic>();
  603. if(version != null)
  604. map['Version'] = version;
  605. if(settingData != null)
  606. map['SettingData'] = settingData;
  607. return map;
  608. }
  609. }
  610. class AddCacheReportPosterRequest extends TokenRequest{
  611. String? reportPosterCode;
  612. AddCacheReportPosterRequest({
  613. this.reportPosterCode,
  614. String? token,
  615. }) : super(
  616. token: token,
  617. );
  618. factory AddCacheReportPosterRequest.fromJson(Map<String, dynamic> map) {
  619. return AddCacheReportPosterRequest(
  620. reportPosterCode: map['ReportPosterCode'],
  621. token: map['Token'],
  622. );
  623. }
  624. Map<String, dynamic> toJson() {
  625. final map = super.toJson();
  626. if(reportPosterCode != null)
  627. map['ReportPosterCode'] = reportPosterCode;
  628. return map;
  629. }
  630. }
  631. class DeleteThesaurusUserCodeRequest extends TokenRequest{
  632. String? thesaurusCode;
  633. DeleteThesaurusUserCodeRequest({
  634. this.thesaurusCode,
  635. String? token,
  636. }) : super(
  637. token: token,
  638. );
  639. factory DeleteThesaurusUserCodeRequest.fromJson(Map<String, dynamic> map) {
  640. return DeleteThesaurusUserCodeRequest(
  641. thesaurusCode: map['ThesaurusCode'],
  642. token: map['Token'],
  643. );
  644. }
  645. Map<String, dynamic> toJson() {
  646. final map = super.toJson();
  647. if(thesaurusCode != null)
  648. map['ThesaurusCode'] = thesaurusCode;
  649. return map;
  650. }
  651. }
  652. class RemoveCacheReportPosterRequest extends TokenRequest{
  653. String? reportPosterCode;
  654. RemoveCacheReportPosterRequest({
  655. this.reportPosterCode,
  656. String? token,
  657. }) : super(
  658. token: token,
  659. );
  660. factory RemoveCacheReportPosterRequest.fromJson(Map<String, dynamic> map) {
  661. return RemoveCacheReportPosterRequest(
  662. reportPosterCode: map['ReportPosterCode'],
  663. token: map['Token'],
  664. );
  665. }
  666. Map<String, dynamic> toJson() {
  667. final map = super.toJson();
  668. if(reportPosterCode != null)
  669. map['ReportPosterCode'] = reportPosterCode;
  670. return map;
  671. }
  672. }
  673. class UpdateThesaurusUserCodeRequest extends TokenRequest{
  674. String? thesaurusCode;
  675. UpdateThesaurusUserCodeRequest({
  676. this.thesaurusCode,
  677. String? token,
  678. }) : super(
  679. token: token,
  680. );
  681. factory UpdateThesaurusUserCodeRequest.fromJson(Map<String, dynamic> map) {
  682. return UpdateThesaurusUserCodeRequest(
  683. thesaurusCode: map['ThesaurusCode'],
  684. token: map['Token'],
  685. );
  686. }
  687. Map<String, dynamic> toJson() {
  688. final map = super.toJson();
  689. if(thesaurusCode != null)
  690. map['ThesaurusCode'] = thesaurusCode;
  691. return map;
  692. }
  693. }
  694. class PushRecordCodesToDeviceRequest extends TokenRequest{
  695. List<String >? recordCodes;
  696. String? deviceCode;
  697. PushRecordCodesToDeviceRequest({
  698. this.recordCodes,
  699. this.deviceCode,
  700. String? token,
  701. }) : super(
  702. token: token,
  703. );
  704. factory PushRecordCodesToDeviceRequest.fromJson(Map<String, dynamic> map) {
  705. return PushRecordCodesToDeviceRequest(
  706. recordCodes: map['RecordCodes'] != null ? map['RecordCodes'].cast<String>().toList() : null,
  707. deviceCode: map['DeviceCode'],
  708. token: map['Token'],
  709. );
  710. }
  711. Map<String, dynamic> toJson() {
  712. final map = super.toJson();
  713. if(recordCodes != null)
  714. map['RecordCodes'] = recordCodes;
  715. if(deviceCode != null)
  716. map['DeviceCode'] = deviceCode;
  717. return map;
  718. }
  719. }
  720. class PayCallbackRequest {
  721. String? keyWord;
  722. PayCallbackRequest({
  723. this.keyWord,
  724. });
  725. factory PayCallbackRequest.fromJson(Map<String, dynamic> map) {
  726. return PayCallbackRequest(
  727. keyWord: map['KeyWord'],
  728. );
  729. }
  730. Map<String, dynamic> toJson() {
  731. final map = Map<String, dynamic>();
  732. if(keyWord != null)
  733. map['KeyWord'] = keyWord;
  734. return map;
  735. }
  736. }
  737. class CloseNotifyQueueRequest {
  738. String? msgQueueId;
  739. CloseNotifyQueueRequest({
  740. this.msgQueueId,
  741. });
  742. factory CloseNotifyQueueRequest.fromJson(Map<String, dynamic> map) {
  743. return CloseNotifyQueueRequest(
  744. msgQueueId: map['MsgQueueId'],
  745. );
  746. }
  747. Map<String, dynamic> toJson() {
  748. final map = Map<String, dynamic>();
  749. if(msgQueueId != null)
  750. map['MsgQueueId'] = msgQueueId;
  751. return map;
  752. }
  753. }
  754. class OpenNotifyQueueRequest {
  755. String? module;
  756. OpenNotifyQueueRequest({
  757. this.module,
  758. });
  759. factory OpenNotifyQueueRequest.fromJson(Map<String, dynamic> map) {
  760. return OpenNotifyQueueRequest(
  761. module: map['Module'],
  762. );
  763. }
  764. Map<String, dynamic> toJson() {
  765. final map = Map<String, dynamic>();
  766. if(module != null)
  767. map['Module'] = module;
  768. return map;
  769. }
  770. }
  771. class ApplyLockRequest {
  772. String? lockKey;
  773. ApplyLockRequest({
  774. this.lockKey,
  775. });
  776. factory ApplyLockRequest.fromJson(Map<String, dynamic> map) {
  777. return ApplyLockRequest(
  778. lockKey: map['LockKey'],
  779. );
  780. }
  781. Map<String, dynamic> toJson() {
  782. final map = Map<String, dynamic>();
  783. if(lockKey != null)
  784. map['LockKey'] = lockKey;
  785. return map;
  786. }
  787. }
  788. class ReleaseLockRequest {
  789. String? lockUniqueCode;
  790. ReleaseLockRequest({
  791. this.lockUniqueCode,
  792. });
  793. factory ReleaseLockRequest.fromJson(Map<String, dynamic> map) {
  794. return ReleaseLockRequest(
  795. lockUniqueCode: map['LockUniqueCode'],
  796. );
  797. }
  798. Map<String, dynamic> toJson() {
  799. final map = Map<String, dynamic>();
  800. if(lockUniqueCode != null)
  801. map['LockUniqueCode'] = lockUniqueCode;
  802. return map;
  803. }
  804. }
  805. class AssignPatientToUsersRequest extends TokenRequest{
  806. String? patientCode;
  807. List<String >? userCodes;
  808. AssignPatientToUsersRequest({
  809. this.patientCode,
  810. this.userCodes,
  811. String? token,
  812. }) : super(
  813. token: token,
  814. );
  815. factory AssignPatientToUsersRequest.fromJson(Map<String, dynamic> map) {
  816. return AssignPatientToUsersRequest(
  817. patientCode: map['PatientCode'],
  818. userCodes: map['UserCodes'] != null ? map['UserCodes'].cast<String>().toList() : null,
  819. token: map['Token'],
  820. );
  821. }
  822. Map<String, dynamic> toJson() {
  823. final map = super.toJson();
  824. if(patientCode != null)
  825. map['PatientCode'] = patientCode;
  826. if(userCodes != null)
  827. map['UserCodes'] = userCodes;
  828. return map;
  829. }
  830. }
  831. class QuestionDetailDTO extends BaseDTO{
  832. String? code;
  833. double score;
  834. QuestionDetailDTO({
  835. this.code,
  836. this.score = 0,
  837. DateTime? createTime,
  838. DateTime? updateTime,
  839. }) : super(
  840. createTime: createTime,
  841. updateTime: updateTime,
  842. );
  843. factory QuestionDetailDTO.fromJson(Map<String, dynamic> map) {
  844. return QuestionDetailDTO(
  845. code: map['Code'],
  846. score: double.parse(map['Score'].toString()),
  847. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  848. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  849. );
  850. }
  851. Map<String, dynamic> toJson() {
  852. final map = super.toJson();
  853. if(code != null)
  854. map['Code'] = code;
  855. map['Score'] = score;
  856. return map;
  857. }
  858. }
  859. class AddExaminationPaperRequest extends TokenRequest{
  860. String? name;
  861. double totalScore;
  862. List<QuestionDetailDTO >? questionList;
  863. List<String >? caseLabelCodes;
  864. List<String >? courseLabelCodes;
  865. AddExaminationPaperRequest({
  866. this.name,
  867. this.totalScore = 0,
  868. this.questionList,
  869. this.caseLabelCodes,
  870. this.courseLabelCodes,
  871. String? token,
  872. }) : super(
  873. token: token,
  874. );
  875. factory AddExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  876. return AddExaminationPaperRequest(
  877. name: map['Name'],
  878. totalScore: double.parse(map['TotalScore'].toString()),
  879. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>QuestionDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  880. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  881. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  882. token: map['Token'],
  883. );
  884. }
  885. Map<String, dynamic> toJson() {
  886. final map = super.toJson();
  887. if(name != null)
  888. map['Name'] = name;
  889. map['TotalScore'] = totalScore;
  890. if(questionList != null)
  891. map['QuestionList'] = questionList;
  892. if(caseLabelCodes != null)
  893. map['CaseLabelCodes'] = caseLabelCodes;
  894. if(courseLabelCodes != null)
  895. map['CourseLabelCodes'] = courseLabelCodes;
  896. return map;
  897. }
  898. }
  899. class CourseLabelRequest extends TokenRequest{
  900. String? code;
  901. List<LabelLanguageConfigDTO >? labelLanguageConfigs;
  902. OrganizationPatientTypeEnum useObjectType;
  903. LabelTypeEnum type;
  904. String? parentCode;
  905. CourseLabelRequest({
  906. this.code,
  907. this.labelLanguageConfigs,
  908. this.useObjectType = OrganizationPatientTypeEnum.Person,
  909. this.type = LabelTypeEnum.Unknown,
  910. this.parentCode,
  911. String? token,
  912. }) : super(
  913. token: token,
  914. );
  915. factory CourseLabelRequest.fromJson(Map<String, dynamic> map) {
  916. return CourseLabelRequest(
  917. code: map['Code'],
  918. labelLanguageConfigs: map['LabelLanguageConfigs'] != null ? (map['LabelLanguageConfigs'] as List).map((e)=>LabelLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  919. useObjectType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['UseObjectType']),
  920. type: LabelTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  921. parentCode: map['ParentCode'],
  922. token: map['Token'],
  923. );
  924. }
  925. Map<String, dynamic> toJson() {
  926. final map = super.toJson();
  927. if(code != null)
  928. map['Code'] = code;
  929. if(labelLanguageConfigs != null)
  930. map['LabelLanguageConfigs'] = labelLanguageConfigs;
  931. map['UseObjectType'] = useObjectType.index;
  932. map['Type'] = type.index;
  933. if(parentCode != null)
  934. map['ParentCode'] = parentCode;
  935. return map;
  936. }
  937. }
  938. class DeleteExaminationPaperRequest extends TokenRequest{
  939. String? examinationPaperCode;
  940. DeleteExaminationPaperRequest({
  941. this.examinationPaperCode,
  942. String? token,
  943. }) : super(
  944. token: token,
  945. );
  946. factory DeleteExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  947. return DeleteExaminationPaperRequest(
  948. examinationPaperCode: map['ExaminationPaperCode'],
  949. token: map['Token'],
  950. );
  951. }
  952. Map<String, dynamic> toJson() {
  953. final map = super.toJson();
  954. if(examinationPaperCode != null)
  955. map['ExaminationPaperCode'] = examinationPaperCode;
  956. return map;
  957. }
  958. }
  959. class FindExaminationQuestionPagesRequest extends PageRequest{
  960. String? searchKey;
  961. List<String >? caseLabelCodes;
  962. List<String >? courseLabelCodes;
  963. List<String >? codes;
  964. List<String >? notInCodes;
  965. FindExaminationQuestionPagesRequest({
  966. this.searchKey,
  967. this.caseLabelCodes,
  968. this.courseLabelCodes,
  969. this.codes,
  970. this.notInCodes,
  971. int pageIndex = 0,
  972. int pageSize = 0,
  973. String? token,
  974. }) : super(
  975. pageIndex: pageIndex,
  976. pageSize: pageSize,
  977. token: token,
  978. );
  979. factory FindExaminationQuestionPagesRequest.fromJson(Map<String, dynamic> map) {
  980. return FindExaminationQuestionPagesRequest(
  981. searchKey: map['SearchKey'],
  982. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  983. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  984. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  985. notInCodes: map['NotInCodes'] != null ? map['NotInCodes'].cast<String>().toList() : null,
  986. pageIndex: map['PageIndex'],
  987. pageSize: map['PageSize'],
  988. token: map['Token'],
  989. );
  990. }
  991. Map<String, dynamic> toJson() {
  992. final map = super.toJson();
  993. if(searchKey != null)
  994. map['SearchKey'] = searchKey;
  995. if(caseLabelCodes != null)
  996. map['CaseLabelCodes'] = caseLabelCodes;
  997. if(courseLabelCodes != null)
  998. map['CourseLabelCodes'] = courseLabelCodes;
  999. if(codes != null)
  1000. map['Codes'] = codes;
  1001. if(notInCodes != null)
  1002. map['NotInCodes'] = notInCodes;
  1003. return map;
  1004. }
  1005. }
  1006. class FindExaminationQuestionsByCodesRequest extends TokenRequest{
  1007. List<String >? codes;
  1008. FindExaminationQuestionsByCodesRequest({
  1009. this.codes,
  1010. String? token,
  1011. }) : super(
  1012. token: token,
  1013. );
  1014. factory FindExaminationQuestionsByCodesRequest.fromJson(Map<String, dynamic> map) {
  1015. return FindExaminationQuestionsByCodesRequest(
  1016. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  1017. token: map['Token'],
  1018. );
  1019. }
  1020. Map<String, dynamic> toJson() {
  1021. final map = super.toJson();
  1022. if(codes != null)
  1023. map['Codes'] = codes;
  1024. return map;
  1025. }
  1026. }
  1027. class CreateExaminationQuestionRequest extends TokenRequest{
  1028. String? stem;
  1029. QuestionTypeEnum questionType;
  1030. List<QuestionOptionDTO >? questionOptionList;
  1031. List<QuestionFileDTO >? fileList;
  1032. List<String >? caseLabelCodes;
  1033. List<String >? courseLabelCodes;
  1034. bool trueOrFalse;
  1035. CreateExaminationQuestionRequest({
  1036. this.stem,
  1037. this.questionType = QuestionTypeEnum.Judge,
  1038. this.questionOptionList,
  1039. this.fileList,
  1040. this.caseLabelCodes,
  1041. this.courseLabelCodes,
  1042. this.trueOrFalse = false,
  1043. String? token,
  1044. }) : super(
  1045. token: token,
  1046. );
  1047. factory CreateExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1048. return CreateExaminationQuestionRequest(
  1049. stem: map['Stem'],
  1050. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  1051. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1052. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1053. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  1054. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  1055. trueOrFalse: map['TrueOrFalse'],
  1056. token: map['Token'],
  1057. );
  1058. }
  1059. Map<String, dynamic> toJson() {
  1060. final map = super.toJson();
  1061. if(stem != null)
  1062. map['Stem'] = stem;
  1063. map['QuestionType'] = questionType.index;
  1064. if(questionOptionList != null)
  1065. map['QuestionOptionList'] = questionOptionList;
  1066. if(fileList != null)
  1067. map['FileList'] = fileList;
  1068. if(caseLabelCodes != null)
  1069. map['CaseLabelCodes'] = caseLabelCodes;
  1070. if(courseLabelCodes != null)
  1071. map['CourseLabelCodes'] = courseLabelCodes;
  1072. map['TrueOrFalse'] = trueOrFalse;
  1073. return map;
  1074. }
  1075. }
  1076. class GetExaminationQuestionRequest extends TokenRequest{
  1077. String? code;
  1078. GetExaminationQuestionRequest({
  1079. this.code,
  1080. String? token,
  1081. }) : super(
  1082. token: token,
  1083. );
  1084. factory GetExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1085. return GetExaminationQuestionRequest(
  1086. code: map['Code'],
  1087. token: map['Token'],
  1088. );
  1089. }
  1090. Map<String, dynamic> toJson() {
  1091. final map = super.toJson();
  1092. if(code != null)
  1093. map['Code'] = code;
  1094. return map;
  1095. }
  1096. }
  1097. class UpdateExaminationQuestionRequest extends TokenRequest{
  1098. String? code;
  1099. String? stem;
  1100. QuestionTypeEnum questionType;
  1101. List<QuestionOptionDTO >? questionOptionList;
  1102. List<QuestionFileDTO >? fileList;
  1103. List<String >? caseLabelCodes;
  1104. List<String >? courseLabelCodes;
  1105. bool trueOrFalse;
  1106. UpdateExaminationQuestionRequest({
  1107. this.code,
  1108. this.stem,
  1109. this.questionType = QuestionTypeEnum.Judge,
  1110. this.questionOptionList,
  1111. this.fileList,
  1112. this.caseLabelCodes,
  1113. this.courseLabelCodes,
  1114. this.trueOrFalse = false,
  1115. String? token,
  1116. }) : super(
  1117. token: token,
  1118. );
  1119. factory UpdateExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1120. return UpdateExaminationQuestionRequest(
  1121. code: map['Code'],
  1122. stem: map['Stem'],
  1123. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  1124. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1125. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1126. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  1127. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  1128. trueOrFalse: map['TrueOrFalse'],
  1129. token: map['Token'],
  1130. );
  1131. }
  1132. Map<String, dynamic> toJson() {
  1133. final map = super.toJson();
  1134. if(code != null)
  1135. map['Code'] = code;
  1136. if(stem != null)
  1137. map['Stem'] = stem;
  1138. map['QuestionType'] = questionType.index;
  1139. if(questionOptionList != null)
  1140. map['QuestionOptionList'] = questionOptionList;
  1141. if(fileList != null)
  1142. map['FileList'] = fileList;
  1143. if(caseLabelCodes != null)
  1144. map['CaseLabelCodes'] = caseLabelCodes;
  1145. if(courseLabelCodes != null)
  1146. map['CourseLabelCodes'] = courseLabelCodes;
  1147. map['TrueOrFalse'] = trueOrFalse;
  1148. return map;
  1149. }
  1150. }
  1151. class DeleteExaminationQuestionRequest extends TokenRequest{
  1152. String? code;
  1153. DeleteExaminationQuestionRequest({
  1154. this.code,
  1155. String? token,
  1156. }) : super(
  1157. token: token,
  1158. );
  1159. factory DeleteExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1160. return DeleteExaminationQuestionRequest(
  1161. code: map['Code'],
  1162. token: map['Token'],
  1163. );
  1164. }
  1165. Map<String, dynamic> toJson() {
  1166. final map = super.toJson();
  1167. if(code != null)
  1168. map['Code'] = code;
  1169. return map;
  1170. }
  1171. }
  1172. class GetExaminationPaperPagesRequest extends PageRequest{
  1173. String? keyword;
  1174. List<String >? caseLabelCodes;
  1175. List<String >? courseLabelCodes;
  1176. GetExaminationPaperPagesRequest({
  1177. this.keyword,
  1178. this.caseLabelCodes,
  1179. this.courseLabelCodes,
  1180. int pageIndex = 0,
  1181. int pageSize = 0,
  1182. String? token,
  1183. }) : super(
  1184. pageIndex: pageIndex,
  1185. pageSize: pageSize,
  1186. token: token,
  1187. );
  1188. factory GetExaminationPaperPagesRequest.fromJson(Map<String, dynamic> map) {
  1189. return GetExaminationPaperPagesRequest(
  1190. keyword: map['Keyword'],
  1191. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  1192. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  1193. pageIndex: map['PageIndex'],
  1194. pageSize: map['PageSize'],
  1195. token: map['Token'],
  1196. );
  1197. }
  1198. Map<String, dynamic> toJson() {
  1199. final map = super.toJson();
  1200. if(keyword != null)
  1201. map['Keyword'] = keyword;
  1202. if(caseLabelCodes != null)
  1203. map['CaseLabelCodes'] = caseLabelCodes;
  1204. if(courseLabelCodes != null)
  1205. map['CourseLabelCodes'] = courseLabelCodes;
  1206. return map;
  1207. }
  1208. }
  1209. class GetExaminationPaperRequest extends TokenRequest{
  1210. String? examinationPaperCode;
  1211. GetExaminationPaperRequest({
  1212. this.examinationPaperCode,
  1213. String? token,
  1214. }) : super(
  1215. token: token,
  1216. );
  1217. factory GetExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  1218. return GetExaminationPaperRequest(
  1219. examinationPaperCode: map['ExaminationPaperCode'],
  1220. token: map['Token'],
  1221. );
  1222. }
  1223. Map<String, dynamic> toJson() {
  1224. final map = super.toJson();
  1225. if(examinationPaperCode != null)
  1226. map['ExaminationPaperCode'] = examinationPaperCode;
  1227. return map;
  1228. }
  1229. }
  1230. class QueryUserGroupPageRequest extends PageRequest{
  1231. String? keyword;
  1232. QueryUserGroupPageRequest({
  1233. this.keyword,
  1234. int pageIndex = 0,
  1235. int pageSize = 0,
  1236. String? token,
  1237. }) : super(
  1238. pageIndex: pageIndex,
  1239. pageSize: pageSize,
  1240. token: token,
  1241. );
  1242. factory QueryUserGroupPageRequest.fromJson(Map<String, dynamic> map) {
  1243. return QueryUserGroupPageRequest(
  1244. keyword: map['Keyword'],
  1245. pageIndex: map['PageIndex'],
  1246. pageSize: map['PageSize'],
  1247. token: map['Token'],
  1248. );
  1249. }
  1250. Map<String, dynamic> toJson() {
  1251. final map = super.toJson();
  1252. if(keyword != null)
  1253. map['Keyword'] = keyword;
  1254. return map;
  1255. }
  1256. }
  1257. class UpdateExaminationPaperRequest extends TokenRequest{
  1258. String? examinationPaperCode;
  1259. String? name;
  1260. double totalScore;
  1261. List<QuestionDetailDTO >? questionList;
  1262. List<String >? caseLabelCodes;
  1263. List<String >? courseLabelCodes;
  1264. UpdateExaminationPaperRequest({
  1265. this.examinationPaperCode,
  1266. this.name,
  1267. this.totalScore = 0,
  1268. this.questionList,
  1269. this.caseLabelCodes,
  1270. this.courseLabelCodes,
  1271. String? token,
  1272. }) : super(
  1273. token: token,
  1274. );
  1275. factory UpdateExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  1276. return UpdateExaminationPaperRequest(
  1277. examinationPaperCode: map['ExaminationPaperCode'],
  1278. name: map['Name'],
  1279. totalScore: double.parse(map['TotalScore'].toString()),
  1280. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>QuestionDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1281. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  1282. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  1283. token: map['Token'],
  1284. );
  1285. }
  1286. Map<String, dynamic> toJson() {
  1287. final map = super.toJson();
  1288. if(examinationPaperCode != null)
  1289. map['ExaminationPaperCode'] = examinationPaperCode;
  1290. if(name != null)
  1291. map['Name'] = name;
  1292. map['TotalScore'] = totalScore;
  1293. if(questionList != null)
  1294. map['QuestionList'] = questionList;
  1295. if(caseLabelCodes != null)
  1296. map['CaseLabelCodes'] = caseLabelCodes;
  1297. if(courseLabelCodes != null)
  1298. map['CourseLabelCodes'] = courseLabelCodes;
  1299. return map;
  1300. }
  1301. }
  1302. class QueryCourseLabelPageRequest extends PageRequest{
  1303. String? name;
  1304. String? languageCode;
  1305. LabelTypeEnum type;
  1306. String? parentCode;
  1307. QueryCourseLabelPageRequest({
  1308. this.name,
  1309. this.languageCode,
  1310. this.type = LabelTypeEnum.Unknown,
  1311. this.parentCode,
  1312. int pageIndex = 0,
  1313. int pageSize = 0,
  1314. String? token,
  1315. }) : super(
  1316. pageIndex: pageIndex,
  1317. pageSize: pageSize,
  1318. token: token,
  1319. );
  1320. factory QueryCourseLabelPageRequest.fromJson(Map<String, dynamic> map) {
  1321. return QueryCourseLabelPageRequest(
  1322. name: map['Name'],
  1323. languageCode: map['LanguageCode'],
  1324. type: LabelTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  1325. parentCode: map['ParentCode'],
  1326. pageIndex: map['PageIndex'],
  1327. pageSize: map['PageSize'],
  1328. token: map['Token'],
  1329. );
  1330. }
  1331. Map<String, dynamic> toJson() {
  1332. final map = super.toJson();
  1333. if(name != null)
  1334. map['Name'] = name;
  1335. if(languageCode != null)
  1336. map['LanguageCode'] = languageCode;
  1337. map['Type'] = type.index;
  1338. if(parentCode != null)
  1339. map['ParentCode'] = parentCode;
  1340. return map;
  1341. }
  1342. }
  1343. class AlterDeviceRequest extends TokenRequest{
  1344. String? deviceCode;
  1345. String? serialNumber;
  1346. String? name;
  1347. String? description;
  1348. String? headPicUrl;
  1349. String? organizationCode;
  1350. String? departmentCode;
  1351. bool isAutoShared;
  1352. AlterDeviceRequest({
  1353. this.deviceCode,
  1354. this.serialNumber,
  1355. this.name,
  1356. this.description,
  1357. this.headPicUrl,
  1358. this.organizationCode,
  1359. this.departmentCode,
  1360. this.isAutoShared = false,
  1361. String? token,
  1362. }) : super(
  1363. token: token,
  1364. );
  1365. factory AlterDeviceRequest.fromJson(Map<String, dynamic> map) {
  1366. return AlterDeviceRequest(
  1367. deviceCode: map['DeviceCode'],
  1368. serialNumber: map['SerialNumber'],
  1369. name: map['Name'],
  1370. description: map['Description'],
  1371. headPicUrl: map['HeadPicUrl'],
  1372. organizationCode: map['OrganizationCode'],
  1373. departmentCode: map['DepartmentCode'],
  1374. isAutoShared: map['IsAutoShared'],
  1375. token: map['Token'],
  1376. );
  1377. }
  1378. Map<String, dynamic> toJson() {
  1379. final map = super.toJson();
  1380. if(deviceCode != null)
  1381. map['DeviceCode'] = deviceCode;
  1382. if(serialNumber != null)
  1383. map['SerialNumber'] = serialNumber;
  1384. if(name != null)
  1385. map['Name'] = name;
  1386. if(description != null)
  1387. map['Description'] = description;
  1388. if(headPicUrl != null)
  1389. map['HeadPicUrl'] = headPicUrl;
  1390. if(organizationCode != null)
  1391. map['OrganizationCode'] = organizationCode;
  1392. if(departmentCode != null)
  1393. map['DepartmentCode'] = departmentCode;
  1394. map['IsAutoShared'] = isAutoShared;
  1395. return map;
  1396. }
  1397. }
  1398. class CleanDeviceCacheRequest {
  1399. String? deviceCode;
  1400. CleanDeviceCacheRequest({
  1401. this.deviceCode,
  1402. });
  1403. factory CleanDeviceCacheRequest.fromJson(Map<String, dynamic> map) {
  1404. return CleanDeviceCacheRequest(
  1405. deviceCode: map['DeviceCode'],
  1406. );
  1407. }
  1408. Map<String, dynamic> toJson() {
  1409. final map = Map<String, dynamic>();
  1410. if(deviceCode != null)
  1411. map['DeviceCode'] = deviceCode;
  1412. return map;
  1413. }
  1414. }
  1415. class DeviceDiagnosisChangedNotification extends TokenRequest{
  1416. String? diagnosisModule;
  1417. String? organizationCode;
  1418. String? deviceCode;
  1419. DeviceDiagnosisChangedNotification({
  1420. this.diagnosisModule,
  1421. this.organizationCode,
  1422. this.deviceCode,
  1423. String? token,
  1424. }) : super(
  1425. token: token,
  1426. );
  1427. factory DeviceDiagnosisChangedNotification.fromJson(Map<String, dynamic> map) {
  1428. return DeviceDiagnosisChangedNotification(
  1429. diagnosisModule: map['DiagnosisModule'],
  1430. organizationCode: map['OrganizationCode'],
  1431. deviceCode: map['DeviceCode'],
  1432. token: map['Token'],
  1433. );
  1434. }
  1435. Map<String, dynamic> toJson() {
  1436. final map = super.toJson();
  1437. if(diagnosisModule != null)
  1438. map['DiagnosisModule'] = diagnosisModule;
  1439. if(organizationCode != null)
  1440. map['OrganizationCode'] = organizationCode;
  1441. if(deviceCode != null)
  1442. map['DeviceCode'] = deviceCode;
  1443. return map;
  1444. }
  1445. }
  1446. class DeviceLeaveLiveConsultationRequest extends TokenRequest{
  1447. String? consultationCode;
  1448. DeviceLeaveLiveConsultationRequest({
  1449. this.consultationCode,
  1450. String? token,
  1451. }) : super(
  1452. token: token,
  1453. );
  1454. factory DeviceLeaveLiveConsultationRequest.fromJson(Map<String, dynamic> map) {
  1455. return DeviceLeaveLiveConsultationRequest(
  1456. consultationCode: map['ConsultationCode'],
  1457. token: map['Token'],
  1458. );
  1459. }
  1460. Map<String, dynamic> toJson() {
  1461. final map = super.toJson();
  1462. if(consultationCode != null)
  1463. map['ConsultationCode'] = consultationCode;
  1464. return map;
  1465. }
  1466. }
  1467. class DeviceLeaveLiveConsultationResult {
  1468. bool success;
  1469. DeviceLeaveLiveConsultationResult({
  1470. this.success = false,
  1471. });
  1472. factory DeviceLeaveLiveConsultationResult.fromJson(Map<String, dynamic> map) {
  1473. return DeviceLeaveLiveConsultationResult(
  1474. success: map['Success'],
  1475. );
  1476. }
  1477. Map<String, dynamic> toJson() {
  1478. final map = Map<String, dynamic>();
  1479. map['Success'] = success;
  1480. return map;
  1481. }
  1482. }
  1483. class FindDeviceDiagnosisRequest extends TokenRequest{
  1484. String? deviceCode;
  1485. FindDeviceDiagnosisRequest({
  1486. this.deviceCode,
  1487. String? token,
  1488. }) : super(
  1489. token: token,
  1490. );
  1491. factory FindDeviceDiagnosisRequest.fromJson(Map<String, dynamic> map) {
  1492. return FindDeviceDiagnosisRequest(
  1493. deviceCode: map['DeviceCode'],
  1494. token: map['Token'],
  1495. );
  1496. }
  1497. Map<String, dynamic> toJson() {
  1498. final map = super.toJson();
  1499. if(deviceCode != null)
  1500. map['DeviceCode'] = deviceCode;
  1501. return map;
  1502. }
  1503. }
  1504. class ReportLiveStateResult {
  1505. ReportLiveStateResult();
  1506. factory ReportLiveStateResult.fromJson(Map<String, dynamic> map) {
  1507. return ReportLiveStateResult(
  1508. );
  1509. }
  1510. Map<String, dynamic> toJson() {
  1511. final map = Map<String, dynamic>();
  1512. return map;
  1513. }
  1514. }
  1515. class ConfirmAssociatedWithAccountRequest extends TokenRequest{
  1516. String? emailAddress;
  1517. String? verifyCode;
  1518. ConfirmAssociatedWithAccountRequest({
  1519. this.emailAddress,
  1520. this.verifyCode,
  1521. String? token,
  1522. }) : super(
  1523. token: token,
  1524. );
  1525. factory ConfirmAssociatedWithAccountRequest.fromJson(Map<String, dynamic> map) {
  1526. return ConfirmAssociatedWithAccountRequest(
  1527. emailAddress: map['EmailAddress'],
  1528. verifyCode: map['VerifyCode'],
  1529. token: map['Token'],
  1530. );
  1531. }
  1532. Map<String, dynamic> toJson() {
  1533. final map = super.toJson();
  1534. if(emailAddress != null)
  1535. map['EmailAddress'] = emailAddress;
  1536. if(verifyCode != null)
  1537. map['VerifyCode'] = verifyCode;
  1538. return map;
  1539. }
  1540. }
  1541. class DeleteThesaurusCodeRequest extends TokenRequest{
  1542. String? thesaurusCode;
  1543. DeleteThesaurusCodeRequest({
  1544. this.thesaurusCode,
  1545. String? token,
  1546. }) : super(
  1547. token: token,
  1548. );
  1549. factory DeleteThesaurusCodeRequest.fromJson(Map<String, dynamic> map) {
  1550. return DeleteThesaurusCodeRequest(
  1551. thesaurusCode: map['ThesaurusCode'],
  1552. token: map['Token'],
  1553. );
  1554. }
  1555. Map<String, dynamic> toJson() {
  1556. final map = super.toJson();
  1557. if(thesaurusCode != null)
  1558. map['ThesaurusCode'] = thesaurusCode;
  1559. return map;
  1560. }
  1561. }
  1562. class SignUpRequest extends UserDTO{
  1563. SignUpRequest({
  1564. String? phone,
  1565. String? email,
  1566. String? nickName,
  1567. String? fullName,
  1568. String? organizationCode,
  1569. String? organizationName,
  1570. String? rootOrganizationCode,
  1571. String? rootOrganizationName,
  1572. List<String >? authorityGroups,
  1573. List<String >? bindDevices,
  1574. String? lastIP,
  1575. int logintimes = 0,
  1576. UserInfoStateEnum userState = UserInfoStateEnum.Nonactivated,
  1577. List<String >? roleCodes,
  1578. List<String >? rankCodes,
  1579. List<String >? positionCodes,
  1580. ApplyStateEnum applyState = ApplyStateEnum.NotApply,
  1581. String? rankName,
  1582. String? positionName,
  1583. bool isDirector = false,
  1584. List<String >? fieldList,
  1585. List<String >? deletePatientCodes,
  1586. bool isBatchExportDiagnoseData = false,
  1587. String? bindAssistantUserCode,
  1588. String? bindAssistantDoctorUserCode,
  1589. LoginLockInfoDTO? loginLockInfo,
  1590. String? signature,
  1591. String? language,
  1592. bool enableReportLabel = false,
  1593. List<AssociatedInfoDTO >? associatedInfos,
  1594. String? commonPlatformUserId,
  1595. String? bindEmergencyDeviceCode,
  1596. String? userCode,
  1597. String? userName,
  1598. String? headImageUrl,
  1599. DateTime? createTime,
  1600. DateTime? updateTime,
  1601. }) : super(
  1602. phone: phone,
  1603. email: email,
  1604. nickName: nickName,
  1605. fullName: fullName,
  1606. organizationCode: organizationCode,
  1607. organizationName: organizationName,
  1608. rootOrganizationCode: rootOrganizationCode,
  1609. rootOrganizationName: rootOrganizationName,
  1610. authorityGroups: authorityGroups,
  1611. bindDevices: bindDevices,
  1612. lastIP: lastIP,
  1613. logintimes: logintimes,
  1614. userState: userState,
  1615. roleCodes: roleCodes,
  1616. rankCodes: rankCodes,
  1617. positionCodes: positionCodes,
  1618. applyState: applyState,
  1619. rankName: rankName,
  1620. positionName: positionName,
  1621. isDirector: isDirector,
  1622. fieldList: fieldList,
  1623. deletePatientCodes: deletePatientCodes,
  1624. isBatchExportDiagnoseData: isBatchExportDiagnoseData,
  1625. bindAssistantUserCode: bindAssistantUserCode,
  1626. bindAssistantDoctorUserCode: bindAssistantDoctorUserCode,
  1627. loginLockInfo: loginLockInfo,
  1628. signature: signature,
  1629. language: language,
  1630. enableReportLabel: enableReportLabel,
  1631. associatedInfos: associatedInfos,
  1632. commonPlatformUserId: commonPlatformUserId,
  1633. bindEmergencyDeviceCode: bindEmergencyDeviceCode,
  1634. userCode: userCode,
  1635. userName: userName,
  1636. headImageUrl: headImageUrl,
  1637. createTime: createTime,
  1638. updateTime: updateTime,
  1639. );
  1640. factory SignUpRequest.fromJson(Map<String, dynamic> map) {
  1641. return SignUpRequest(
  1642. phone: map['Phone'],
  1643. email: map['Email'],
  1644. nickName: map['NickName'],
  1645. fullName: map['FullName'],
  1646. organizationCode: map['OrganizationCode'],
  1647. organizationName: map['OrganizationName'],
  1648. rootOrganizationCode: map['RootOrganizationCode'],
  1649. rootOrganizationName: map['RootOrganizationName'],
  1650. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  1651. bindDevices: map['BindDevices'] != null ? map['BindDevices'].cast<String>().toList() : null,
  1652. lastIP: map['LastIP'],
  1653. logintimes: map['Logintimes'],
  1654. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  1655. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  1656. rankCodes: map['RankCodes'] != null ? map['RankCodes'].cast<String>().toList() : null,
  1657. positionCodes: map['PositionCodes'] != null ? map['PositionCodes'].cast<String>().toList() : null,
  1658. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  1659. rankName: map['RankName'],
  1660. positionName: map['PositionName'],
  1661. isDirector: map['IsDirector'],
  1662. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  1663. deletePatientCodes: map['DeletePatientCodes'] != null ? map['DeletePatientCodes'].cast<String>().toList() : null,
  1664. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  1665. bindAssistantUserCode: map['BindAssistantUserCode'],
  1666. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  1667. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  1668. signature: map['Signature'],
  1669. language: map['Language'],
  1670. enableReportLabel: map['EnableReportLabel'],
  1671. associatedInfos: map['AssociatedInfos'] != null ? (map['AssociatedInfos'] as List).map((e)=>AssociatedInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1672. commonPlatformUserId: map['CommonPlatformUserId'],
  1673. bindEmergencyDeviceCode: map['BindEmergencyDeviceCode'],
  1674. userCode: map['UserCode'],
  1675. userName: map['UserName'],
  1676. headImageUrl: map['HeadImageUrl'],
  1677. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  1678. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  1679. );
  1680. }
  1681. Map<String, dynamic> toJson() {
  1682. final map = super.toJson();
  1683. return map;
  1684. }
  1685. }
  1686. class UpdateThesaurusCodeRequest extends TokenRequest{
  1687. String? thesaurusCode;
  1688. UpdateThesaurusCodeRequest({
  1689. this.thesaurusCode,
  1690. String? token,
  1691. }) : super(
  1692. token: token,
  1693. );
  1694. factory UpdateThesaurusCodeRequest.fromJson(Map<String, dynamic> map) {
  1695. return UpdateThesaurusCodeRequest(
  1696. thesaurusCode: map['ThesaurusCode'],
  1697. token: map['Token'],
  1698. );
  1699. }
  1700. Map<String, dynamic> toJson() {
  1701. final map = super.toJson();
  1702. if(thesaurusCode != null)
  1703. map['ThesaurusCode'] = thesaurusCode;
  1704. return map;
  1705. }
  1706. }
  1707. enum AnnouncementStatusEnum {
  1708. placeHolder_0,
  1709. Released,
  1710. Pending,
  1711. }
  1712. class AnnouncementInfoDTO extends BaseDTO{
  1713. String? code;
  1714. AnnouncementTypeEnum announcementType;
  1715. AnnouncementStatusEnum announcementStatus;
  1716. List<AnnouncementLanguageConfigDTO >? languageConfigs;
  1717. AnnouncementInfoDTO({
  1718. this.code,
  1719. this.announcementType = AnnouncementTypeEnum.Broadcast,
  1720. this.announcementStatus = AnnouncementStatusEnum.Released,
  1721. this.languageConfigs,
  1722. DateTime? createTime,
  1723. DateTime? updateTime,
  1724. }) : super(
  1725. createTime: createTime,
  1726. updateTime: updateTime,
  1727. );
  1728. factory AnnouncementInfoDTO.fromJson(Map<String, dynamic> map) {
  1729. return AnnouncementInfoDTO(
  1730. code: map['Code'],
  1731. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  1732. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  1733. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>AnnouncementLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1734. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  1735. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  1736. );
  1737. }
  1738. Map<String, dynamic> toJson() {
  1739. final map = super.toJson();
  1740. if(code != null)
  1741. map['Code'] = code;
  1742. map['AnnouncementType'] = announcementType.index;
  1743. map['AnnouncementStatus'] = announcementStatus.index;
  1744. if(languageConfigs != null)
  1745. map['LanguageConfigs'] = languageConfigs;
  1746. return map;
  1747. }
  1748. }
  1749. class AddAnnouncementRequest extends AnnouncementInfoDTO{
  1750. AddAnnouncementRequest({
  1751. String? code,
  1752. AnnouncementTypeEnum announcementType = AnnouncementTypeEnum.Broadcast,
  1753. AnnouncementStatusEnum announcementStatus = AnnouncementStatusEnum.Released,
  1754. List<AnnouncementLanguageConfigDTO >? languageConfigs,
  1755. DateTime? createTime,
  1756. DateTime? updateTime,
  1757. }) : super(
  1758. code: code,
  1759. announcementType: announcementType,
  1760. announcementStatus: announcementStatus,
  1761. languageConfigs: languageConfigs,
  1762. createTime: createTime,
  1763. updateTime: updateTime,
  1764. );
  1765. factory AddAnnouncementRequest.fromJson(Map<String, dynamic> map) {
  1766. return AddAnnouncementRequest(
  1767. code: map['Code'],
  1768. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  1769. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  1770. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>AnnouncementLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1771. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  1772. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  1773. );
  1774. }
  1775. Map<String, dynamic> toJson() {
  1776. final map = super.toJson();
  1777. return map;
  1778. }
  1779. }
  1780. class UpdateAnnouncementRequest extends AnnouncementInfoDTO{
  1781. UpdateAnnouncementRequest({
  1782. String? code,
  1783. AnnouncementTypeEnum announcementType = AnnouncementTypeEnum.Broadcast,
  1784. AnnouncementStatusEnum announcementStatus = AnnouncementStatusEnum.Released,
  1785. List<AnnouncementLanguageConfigDTO >? languageConfigs,
  1786. DateTime? createTime,
  1787. DateTime? updateTime,
  1788. }) : super(
  1789. code: code,
  1790. announcementType: announcementType,
  1791. announcementStatus: announcementStatus,
  1792. languageConfigs: languageConfigs,
  1793. createTime: createTime,
  1794. updateTime: updateTime,
  1795. );
  1796. factory UpdateAnnouncementRequest.fromJson(Map<String, dynamic> map) {
  1797. return UpdateAnnouncementRequest(
  1798. code: map['Code'],
  1799. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  1800. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  1801. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>AnnouncementLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1802. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  1803. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  1804. );
  1805. }
  1806. Map<String, dynamic> toJson() {
  1807. final map = super.toJson();
  1808. return map;
  1809. }
  1810. }
  1811. class AddContentConfigRequest extends TokenRequest{
  1812. String? bindTypeKey;
  1813. String? bindTypeValue;
  1814. String? bindContentKey;
  1815. String? bindContentValue;
  1816. AddContentConfigRequest({
  1817. this.bindTypeKey,
  1818. this.bindTypeValue,
  1819. this.bindContentKey,
  1820. this.bindContentValue,
  1821. String? token,
  1822. }) : super(
  1823. token: token,
  1824. );
  1825. factory AddContentConfigRequest.fromJson(Map<String, dynamic> map) {
  1826. return AddContentConfigRequest(
  1827. bindTypeKey: map['BindTypeKey'],
  1828. bindTypeValue: map['BindTypeValue'],
  1829. bindContentKey: map['BindContentKey'],
  1830. bindContentValue: map['BindContentValue'],
  1831. token: map['Token'],
  1832. );
  1833. }
  1834. Map<String, dynamic> toJson() {
  1835. final map = super.toJson();
  1836. if(bindTypeKey != null)
  1837. map['BindTypeKey'] = bindTypeKey;
  1838. if(bindTypeValue != null)
  1839. map['BindTypeValue'] = bindTypeValue;
  1840. if(bindContentKey != null)
  1841. map['BindContentKey'] = bindContentKey;
  1842. if(bindContentValue != null)
  1843. map['BindContentValue'] = bindContentValue;
  1844. return map;
  1845. }
  1846. }
  1847. enum DeviceVideoOutputTypeEnum {
  1848. MergedVideo,
  1849. Desktop,
  1850. Camera,
  1851. }
  1852. class AddDeviceOutputConfigRequest extends TokenRequest{
  1853. DeviceVideoOutputTypeEnum deviceVideoOutputType;
  1854. int videoWidth;
  1855. int videoHeight;
  1856. AddDeviceOutputConfigRequest({
  1857. this.deviceVideoOutputType = DeviceVideoOutputTypeEnum.MergedVideo,
  1858. this.videoWidth = 0,
  1859. this.videoHeight = 0,
  1860. String? token,
  1861. }) : super(
  1862. token: token,
  1863. );
  1864. factory AddDeviceOutputConfigRequest.fromJson(Map<String, dynamic> map) {
  1865. return AddDeviceOutputConfigRequest(
  1866. deviceVideoOutputType: DeviceVideoOutputTypeEnum.values.firstWhere((e) => e.index == map['DeviceVideoOutputType']),
  1867. videoWidth: map['VideoWidth'],
  1868. videoHeight: map['VideoHeight'],
  1869. token: map['Token'],
  1870. );
  1871. }
  1872. Map<String, dynamic> toJson() {
  1873. final map = super.toJson();
  1874. map['DeviceVideoOutputType'] = deviceVideoOutputType.index;
  1875. map['VideoWidth'] = videoWidth;
  1876. map['VideoHeight'] = videoHeight;
  1877. return map;
  1878. }
  1879. }
  1880. class AdminApplyCourseRequest extends TokenRequest{
  1881. String? name;
  1882. String? courseIntro;
  1883. String? teacherCode;
  1884. String? poster;
  1885. DateTime? startTime;
  1886. int duration;
  1887. CourseTypeEnum courseType;
  1888. CourseAudienceTypeEnum audienceType;
  1889. String? coursewareToken;
  1890. String? teacherName;
  1891. CourseViewRangeEnum viewRange;
  1892. List<String >? caseLabelCodes;
  1893. List<String >? courseLabelCodes;
  1894. List<String >? userGroupCodes;
  1895. Decimal? price;
  1896. List<String >? courseVideoCodes;
  1897. List<CourseExaminationDTO >? bindExams;
  1898. List<String >? assistants;
  1899. List<String >? experts;
  1900. bool isAgentCourse;
  1901. AdminApplyCourseRequest({
  1902. this.name,
  1903. this.courseIntro,
  1904. this.teacherCode,
  1905. this.poster,
  1906. this.startTime,
  1907. this.duration = 0,
  1908. this.courseType = CourseTypeEnum.Unknown,
  1909. this.audienceType = CourseAudienceTypeEnum.Unknown,
  1910. this.coursewareToken,
  1911. this.teacherName,
  1912. this.viewRange = CourseViewRangeEnum.All,
  1913. this.caseLabelCodes,
  1914. this.courseLabelCodes,
  1915. this.userGroupCodes,
  1916. this.price,
  1917. this.courseVideoCodes,
  1918. this.bindExams,
  1919. this.assistants,
  1920. this.experts,
  1921. this.isAgentCourse = false,
  1922. String? token,
  1923. }) : super(
  1924. token: token,
  1925. );
  1926. factory AdminApplyCourseRequest.fromJson(Map<String, dynamic> map) {
  1927. return AdminApplyCourseRequest(
  1928. name: map['Name'],
  1929. courseIntro: map['CourseIntro'],
  1930. teacherCode: map['TeacherCode'],
  1931. poster: map['Poster'],
  1932. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  1933. duration: map['Duration'],
  1934. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  1935. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  1936. coursewareToken: map['CoursewareToken'],
  1937. teacherName: map['TeacherName'],
  1938. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  1939. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  1940. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  1941. userGroupCodes: map['UserGroupCodes'] != null ? map['UserGroupCodes'].cast<String>().toList() : null,
  1942. price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
  1943. courseVideoCodes: map['CourseVideoCodes'] != null ? map['CourseVideoCodes'].cast<String>().toList() : null,
  1944. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1945. assistants: map['Assistants'] != null ? map['Assistants'].cast<String>().toList() : null,
  1946. experts: map['Experts'] != null ? map['Experts'].cast<String>().toList() : null,
  1947. isAgentCourse: map['IsAgentCourse'],
  1948. token: map['Token'],
  1949. );
  1950. }
  1951. Map<String, dynamic> toJson() {
  1952. final map = super.toJson();
  1953. if(name != null)
  1954. map['Name'] = name;
  1955. if(courseIntro != null)
  1956. map['CourseIntro'] = courseIntro;
  1957. if(teacherCode != null)
  1958. map['TeacherCode'] = teacherCode;
  1959. if(poster != null)
  1960. map['Poster'] = poster;
  1961. if(startTime != null)
  1962. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  1963. map['Duration'] = duration;
  1964. map['CourseType'] = courseType.index;
  1965. map['AudienceType'] = audienceType.index;
  1966. if(coursewareToken != null)
  1967. map['CoursewareToken'] = coursewareToken;
  1968. if(teacherName != null)
  1969. map['TeacherName'] = teacherName;
  1970. map['ViewRange'] = viewRange.index;
  1971. if(caseLabelCodes != null)
  1972. map['CaseLabelCodes'] = caseLabelCodes;
  1973. if(courseLabelCodes != null)
  1974. map['CourseLabelCodes'] = courseLabelCodes;
  1975. if(userGroupCodes != null)
  1976. map['UserGroupCodes'] = userGroupCodes;
  1977. if(price != null)
  1978. map['Price'] = price;
  1979. if(courseVideoCodes != null)
  1980. map['CourseVideoCodes'] = courseVideoCodes;
  1981. if(bindExams != null)
  1982. map['BindExams'] = bindExams;
  1983. if(assistants != null)
  1984. map['Assistants'] = assistants;
  1985. if(experts != null)
  1986. map['Experts'] = experts;
  1987. map['IsAgentCourse'] = isAgentCourse;
  1988. return map;
  1989. }
  1990. }
  1991. class AdminApprovalCourseRequest extends TokenRequest{
  1992. String? code;
  1993. CourseStatusEnum status;
  1994. AdminApprovalCourseRequest({
  1995. this.code,
  1996. this.status = CourseStatusEnum.Unknown,
  1997. String? token,
  1998. }) : super(
  1999. token: token,
  2000. );
  2001. factory AdminApprovalCourseRequest.fromJson(Map<String, dynamic> map) {
  2002. return AdminApprovalCourseRequest(
  2003. code: map['Code'],
  2004. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  2005. token: map['Token'],
  2006. );
  2007. }
  2008. Map<String, dynamic> toJson() {
  2009. final map = super.toJson();
  2010. if(code != null)
  2011. map['Code'] = code;
  2012. map['Status'] = status.index;
  2013. return map;
  2014. }
  2015. }
  2016. class AdminDeleteCourseByCodeRequest extends TokenRequest{
  2017. String? code;
  2018. AdminDeleteCourseByCodeRequest({
  2019. this.code,
  2020. String? token,
  2021. }) : super(
  2022. token: token,
  2023. );
  2024. factory AdminDeleteCourseByCodeRequest.fromJson(Map<String, dynamic> map) {
  2025. return AdminDeleteCourseByCodeRequest(
  2026. code: map['Code'],
  2027. token: map['Token'],
  2028. );
  2029. }
  2030. Map<String, dynamic> toJson() {
  2031. final map = super.toJson();
  2032. if(code != null)
  2033. map['Code'] = code;
  2034. return map;
  2035. }
  2036. }
  2037. class AdminFindCoursePagesRequest extends PageRequest{
  2038. String? keyword;
  2039. CourseStatusEnum status;
  2040. String? languageCode;
  2041. CourseTypeEnum courseType;
  2042. CourseAudienceTypeEnum audienceType;
  2043. AdminFindCoursePagesRequest({
  2044. this.keyword,
  2045. this.status = CourseStatusEnum.Unknown,
  2046. this.languageCode,
  2047. this.courseType = CourseTypeEnum.Unknown,
  2048. this.audienceType = CourseAudienceTypeEnum.Unknown,
  2049. int pageIndex = 0,
  2050. int pageSize = 0,
  2051. String? token,
  2052. }) : super(
  2053. pageIndex: pageIndex,
  2054. pageSize: pageSize,
  2055. token: token,
  2056. );
  2057. factory AdminFindCoursePagesRequest.fromJson(Map<String, dynamic> map) {
  2058. return AdminFindCoursePagesRequest(
  2059. keyword: map['Keyword'],
  2060. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  2061. languageCode: map['LanguageCode'],
  2062. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  2063. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  2064. pageIndex: map['PageIndex'],
  2065. pageSize: map['PageSize'],
  2066. token: map['Token'],
  2067. );
  2068. }
  2069. Map<String, dynamic> toJson() {
  2070. final map = super.toJson();
  2071. if(keyword != null)
  2072. map['Keyword'] = keyword;
  2073. map['Status'] = status.index;
  2074. if(languageCode != null)
  2075. map['LanguageCode'] = languageCode;
  2076. map['CourseType'] = courseType.index;
  2077. map['AudienceType'] = audienceType.index;
  2078. return map;
  2079. }
  2080. }
  2081. class AdminUpdateCourseRequest extends TokenRequest{
  2082. String? code;
  2083. String? name;
  2084. String? courseIntro;
  2085. String? teacherCode;
  2086. String? poster;
  2087. DateTime? startTime;
  2088. int duration;
  2089. CourseTypeEnum courseType;
  2090. CourseAudienceTypeEnum audienceType;
  2091. String? coursewareToken;
  2092. String? teacherName;
  2093. CourseViewRangeEnum viewRange;
  2094. List<String >? caseLabelCodes;
  2095. List<String >? courseLabelCodes;
  2096. List<String >? userGroupCodes;
  2097. Decimal? price;
  2098. List<String >? courseVideoCodes;
  2099. List<CourseExaminationDTO >? bindExams;
  2100. List<String >? assistants;
  2101. List<String >? experts;
  2102. bool isAgentCourse;
  2103. AdminUpdateCourseRequest({
  2104. this.code,
  2105. this.name,
  2106. this.courseIntro,
  2107. this.teacherCode,
  2108. this.poster,
  2109. this.startTime,
  2110. this.duration = 0,
  2111. this.courseType = CourseTypeEnum.Unknown,
  2112. this.audienceType = CourseAudienceTypeEnum.Unknown,
  2113. this.coursewareToken,
  2114. this.teacherName,
  2115. this.viewRange = CourseViewRangeEnum.All,
  2116. this.caseLabelCodes,
  2117. this.courseLabelCodes,
  2118. this.userGroupCodes,
  2119. this.price,
  2120. this.courseVideoCodes,
  2121. this.bindExams,
  2122. this.assistants,
  2123. this.experts,
  2124. this.isAgentCourse = false,
  2125. String? token,
  2126. }) : super(
  2127. token: token,
  2128. );
  2129. factory AdminUpdateCourseRequest.fromJson(Map<String, dynamic> map) {
  2130. return AdminUpdateCourseRequest(
  2131. code: map['Code'],
  2132. name: map['Name'],
  2133. courseIntro: map['CourseIntro'],
  2134. teacherCode: map['TeacherCode'],
  2135. poster: map['Poster'],
  2136. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  2137. duration: map['Duration'],
  2138. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  2139. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  2140. coursewareToken: map['CoursewareToken'],
  2141. teacherName: map['TeacherName'],
  2142. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  2143. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  2144. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  2145. userGroupCodes: map['UserGroupCodes'] != null ? map['UserGroupCodes'].cast<String>().toList() : null,
  2146. price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
  2147. courseVideoCodes: map['CourseVideoCodes'] != null ? map['CourseVideoCodes'].cast<String>().toList() : null,
  2148. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2149. assistants: map['Assistants'] != null ? map['Assistants'].cast<String>().toList() : null,
  2150. experts: map['Experts'] != null ? map['Experts'].cast<String>().toList() : null,
  2151. isAgentCourse: map['IsAgentCourse'],
  2152. token: map['Token'],
  2153. );
  2154. }
  2155. Map<String, dynamic> toJson() {
  2156. final map = super.toJson();
  2157. if(code != null)
  2158. map['Code'] = code;
  2159. if(name != null)
  2160. map['Name'] = name;
  2161. if(courseIntro != null)
  2162. map['CourseIntro'] = courseIntro;
  2163. if(teacherCode != null)
  2164. map['TeacherCode'] = teacherCode;
  2165. if(poster != null)
  2166. map['Poster'] = poster;
  2167. if(startTime != null)
  2168. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  2169. map['Duration'] = duration;
  2170. map['CourseType'] = courseType.index;
  2171. map['AudienceType'] = audienceType.index;
  2172. if(coursewareToken != null)
  2173. map['CoursewareToken'] = coursewareToken;
  2174. if(teacherName != null)
  2175. map['TeacherName'] = teacherName;
  2176. map['ViewRange'] = viewRange.index;
  2177. if(caseLabelCodes != null)
  2178. map['CaseLabelCodes'] = caseLabelCodes;
  2179. if(courseLabelCodes != null)
  2180. map['CourseLabelCodes'] = courseLabelCodes;
  2181. if(userGroupCodes != null)
  2182. map['UserGroupCodes'] = userGroupCodes;
  2183. if(price != null)
  2184. map['Price'] = price;
  2185. if(courseVideoCodes != null)
  2186. map['CourseVideoCodes'] = courseVideoCodes;
  2187. if(bindExams != null)
  2188. map['BindExams'] = bindExams;
  2189. if(assistants != null)
  2190. map['Assistants'] = assistants;
  2191. if(experts != null)
  2192. map['Experts'] = experts;
  2193. map['IsAgentCourse'] = isAgentCourse;
  2194. return map;
  2195. }
  2196. }
  2197. class AdminUpdateCourseBindExamsRequest extends TokenRequest{
  2198. String? code;
  2199. List<CourseExaminationDTO >? bindExams;
  2200. AdminUpdateCourseBindExamsRequest({
  2201. this.code,
  2202. this.bindExams,
  2203. String? token,
  2204. }) : super(
  2205. token: token,
  2206. );
  2207. factory AdminUpdateCourseBindExamsRequest.fromJson(Map<String, dynamic> map) {
  2208. return AdminUpdateCourseBindExamsRequest(
  2209. code: map['Code'],
  2210. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2211. token: map['Token'],
  2212. );
  2213. }
  2214. Map<String, dynamic> toJson() {
  2215. final map = super.toJson();
  2216. if(code != null)
  2217. map['Code'] = code;
  2218. if(bindExams != null)
  2219. map['BindExams'] = bindExams;
  2220. return map;
  2221. }
  2222. }
  2223. class AssignedAdminsToOrganizationsRequest extends TokenRequest{
  2224. List<String >? assignedAdmins;
  2225. List<String >? organizationCodes;
  2226. AssignedAdminsToOrganizationsRequest({
  2227. this.assignedAdmins,
  2228. this.organizationCodes,
  2229. String? token,
  2230. }) : super(
  2231. token: token,
  2232. );
  2233. factory AssignedAdminsToOrganizationsRequest.fromJson(Map<String, dynamic> map) {
  2234. return AssignedAdminsToOrganizationsRequest(
  2235. assignedAdmins: map['AssignedAdmins'] != null ? map['AssignedAdmins'].cast<String>().toList() : null,
  2236. organizationCodes: map['OrganizationCodes'] != null ? map['OrganizationCodes'].cast<String>().toList() : null,
  2237. token: map['Token'],
  2238. );
  2239. }
  2240. Map<String, dynamic> toJson() {
  2241. final map = super.toJson();
  2242. if(assignedAdmins != null)
  2243. map['AssignedAdmins'] = assignedAdmins;
  2244. if(organizationCodes != null)
  2245. map['OrganizationCodes'] = organizationCodes;
  2246. return map;
  2247. }
  2248. }
  2249. class ConfirmIdentityApplyRequest extends TokenRequest{
  2250. String? identityApplyCode;
  2251. ConfirmIdentityApplyRequest({
  2252. this.identityApplyCode,
  2253. String? token,
  2254. }) : super(
  2255. token: token,
  2256. );
  2257. factory ConfirmIdentityApplyRequest.fromJson(Map<String, dynamic> map) {
  2258. return ConfirmIdentityApplyRequest(
  2259. identityApplyCode: map['IdentityApplyCode'],
  2260. token: map['Token'],
  2261. );
  2262. }
  2263. Map<String, dynamic> toJson() {
  2264. final map = super.toJson();
  2265. if(identityApplyCode != null)
  2266. map['IdentityApplyCode'] = identityApplyCode;
  2267. return map;
  2268. }
  2269. }
  2270. class CreateThirdPartyTokenRequest extends TokenRequest{
  2271. String? code;
  2272. CreateThirdPartyTokenRequest({
  2273. this.code,
  2274. String? token,
  2275. }) : super(
  2276. token: token,
  2277. );
  2278. factory CreateThirdPartyTokenRequest.fromJson(Map<String, dynamic> map) {
  2279. return CreateThirdPartyTokenRequest(
  2280. code: map['Code'],
  2281. token: map['Token'],
  2282. );
  2283. }
  2284. Map<String, dynamic> toJson() {
  2285. final map = super.toJson();
  2286. if(code != null)
  2287. map['Code'] = code;
  2288. return map;
  2289. }
  2290. }
  2291. class DeleteAdminFeatureRequest extends TokenRequest{
  2292. String? adminFeatureCode;
  2293. DeleteAdminFeatureRequest({
  2294. this.adminFeatureCode,
  2295. String? token,
  2296. }) : super(
  2297. token: token,
  2298. );
  2299. factory DeleteAdminFeatureRequest.fromJson(Map<String, dynamic> map) {
  2300. return DeleteAdminFeatureRequest(
  2301. adminFeatureCode: map['AdminFeatureCode'],
  2302. token: map['Token'],
  2303. );
  2304. }
  2305. Map<String, dynamic> toJson() {
  2306. final map = super.toJson();
  2307. if(adminFeatureCode != null)
  2308. map['AdminFeatureCode'] = adminFeatureCode;
  2309. return map;
  2310. }
  2311. }
  2312. class DeleteAdminRoleRequest extends TokenRequest{
  2313. String? adminRoleCode;
  2314. DeleteAdminRoleRequest({
  2315. this.adminRoleCode,
  2316. String? token,
  2317. }) : super(
  2318. token: token,
  2319. );
  2320. factory DeleteAdminRoleRequest.fromJson(Map<String, dynamic> map) {
  2321. return DeleteAdminRoleRequest(
  2322. adminRoleCode: map['AdminRoleCode'],
  2323. token: map['Token'],
  2324. );
  2325. }
  2326. Map<String, dynamic> toJson() {
  2327. final map = super.toJson();
  2328. if(adminRoleCode != null)
  2329. map['AdminRoleCode'] = adminRoleCode;
  2330. return map;
  2331. }
  2332. }
  2333. class DeleteLogsRequest extends TokenRequest{
  2334. int daysAgo;
  2335. String? requestServerHost;
  2336. DeleteLogsRequest({
  2337. this.daysAgo = 0,
  2338. this.requestServerHost,
  2339. String? token,
  2340. }) : super(
  2341. token: token,
  2342. );
  2343. factory DeleteLogsRequest.fromJson(Map<String, dynamic> map) {
  2344. return DeleteLogsRequest(
  2345. daysAgo: map['DaysAgo'],
  2346. requestServerHost: map['RequestServerHost'],
  2347. token: map['Token'],
  2348. );
  2349. }
  2350. Map<String, dynamic> toJson() {
  2351. final map = super.toJson();
  2352. map['DaysAgo'] = daysAgo;
  2353. if(requestServerHost != null)
  2354. map['RequestServerHost'] = requestServerHost;
  2355. return map;
  2356. }
  2357. }
  2358. class QueryClearLogsRequest extends DeleteLogsRequest{
  2359. List<int >? dayAgoList;
  2360. QueryClearLogsRequest({
  2361. this.dayAgoList,
  2362. int daysAgo = 0,
  2363. String? requestServerHost,
  2364. String? token,
  2365. }) : super(
  2366. daysAgo: daysAgo,
  2367. requestServerHost: requestServerHost,
  2368. token: token,
  2369. );
  2370. factory QueryClearLogsRequest.fromJson(Map<String, dynamic> map) {
  2371. return QueryClearLogsRequest(
  2372. dayAgoList: map['DayAgoList'] != null ? map['DayAgoList'].cast<int>().toList() : null,
  2373. daysAgo: map['DaysAgo'],
  2374. requestServerHost: map['RequestServerHost'],
  2375. token: map['Token'],
  2376. );
  2377. }
  2378. Map<String, dynamic> toJson() {
  2379. final map = super.toJson();
  2380. if(dayAgoList != null)
  2381. map['DayAgoList'] = dayAgoList;
  2382. return map;
  2383. }
  2384. }
  2385. class DeleteRoleRequest extends TokenRequest{
  2386. String? roleCode;
  2387. DeleteRoleRequest({
  2388. this.roleCode,
  2389. String? token,
  2390. }) : super(
  2391. token: token,
  2392. );
  2393. factory DeleteRoleRequest.fromJson(Map<String, dynamic> map) {
  2394. return DeleteRoleRequest(
  2395. roleCode: map['RoleCode'],
  2396. token: map['Token'],
  2397. );
  2398. }
  2399. Map<String, dynamic> toJson() {
  2400. final map = super.toJson();
  2401. if(roleCode != null)
  2402. map['RoleCode'] = roleCode;
  2403. return map;
  2404. }
  2405. }
  2406. class DeleteThesaurusRequest extends TokenRequest{
  2407. String? thesaurusCode;
  2408. DeleteThesaurusRequest({
  2409. this.thesaurusCode,
  2410. String? token,
  2411. }) : super(
  2412. token: token,
  2413. );
  2414. factory DeleteThesaurusRequest.fromJson(Map<String, dynamic> map) {
  2415. return DeleteThesaurusRequest(
  2416. thesaurusCode: map['ThesaurusCode'],
  2417. token: map['Token'],
  2418. );
  2419. }
  2420. Map<String, dynamic> toJson() {
  2421. final map = super.toJson();
  2422. if(thesaurusCode != null)
  2423. map['ThesaurusCode'] = thesaurusCode;
  2424. return map;
  2425. }
  2426. }
  2427. class DeleteThirdPartyInfoRequest extends TokenRequest{
  2428. String? code;
  2429. DeleteThirdPartyInfoRequest({
  2430. this.code,
  2431. String? token,
  2432. }) : super(
  2433. token: token,
  2434. );
  2435. factory DeleteThirdPartyInfoRequest.fromJson(Map<String, dynamic> map) {
  2436. return DeleteThirdPartyInfoRequest(
  2437. code: map['Code'],
  2438. token: map['Token'],
  2439. );
  2440. }
  2441. Map<String, dynamic> toJson() {
  2442. final map = super.toJson();
  2443. if(code != null)
  2444. map['Code'] = code;
  2445. return map;
  2446. }
  2447. }
  2448. class DeleteUserFeatureRequest extends TokenRequest{
  2449. String? userFeatureCode;
  2450. DeleteUserFeatureRequest({
  2451. this.userFeatureCode,
  2452. String? token,
  2453. }) : super(
  2454. token: token,
  2455. );
  2456. factory DeleteUserFeatureRequest.fromJson(Map<String, dynamic> map) {
  2457. return DeleteUserFeatureRequest(
  2458. userFeatureCode: map['UserFeatureCode'],
  2459. token: map['Token'],
  2460. );
  2461. }
  2462. Map<String, dynamic> toJson() {
  2463. final map = super.toJson();
  2464. if(userFeatureCode != null)
  2465. map['UserFeatureCode'] = userFeatureCode;
  2466. return map;
  2467. }
  2468. }
  2469. enum DistributedServerTypeEnum {
  2470. Official,
  2471. Private,
  2472. }
  2473. class IPAddressInfoDTO {
  2474. String? startIp;
  2475. String? endIp;
  2476. int longStartIP;
  2477. int longEndIP;
  2478. IPAddressInfoDTO({
  2479. this.startIp,
  2480. this.endIp,
  2481. this.longStartIP = 0,
  2482. this.longEndIP = 0,
  2483. });
  2484. factory IPAddressInfoDTO.fromJson(Map<String, dynamic> map) {
  2485. return IPAddressInfoDTO(
  2486. startIp: map['StartIp'],
  2487. endIp: map['EndIp'],
  2488. longStartIP: map['LongStartIP'],
  2489. longEndIP: map['LongEndIP'],
  2490. );
  2491. }
  2492. Map<String, dynamic> toJson() {
  2493. final map = Map<String, dynamic>();
  2494. if(startIp != null)
  2495. map['StartIp'] = startIp;
  2496. if(endIp != null)
  2497. map['EndIp'] = endIp;
  2498. map['LongStartIP'] = longStartIP;
  2499. map['LongEndIP'] = longEndIP;
  2500. return map;
  2501. }
  2502. }
  2503. class DistributedServerInfoRequest extends TokenRequest{
  2504. String? code;
  2505. List<String >? codes;
  2506. bool isMaster;
  2507. String? name;
  2508. String? description;
  2509. bool enable;
  2510. DistributedServerTypeEnum serverType;
  2511. String? serverUrl;
  2512. String? lat;
  2513. String? lng;
  2514. List<IPAddressInfoDTO >? assignClientIPList;
  2515. DistributedServerInfoRequest({
  2516. this.code,
  2517. this.codes,
  2518. this.isMaster = false,
  2519. this.name,
  2520. this.description,
  2521. this.enable = false,
  2522. this.serverType = DistributedServerTypeEnum.Official,
  2523. this.serverUrl,
  2524. this.lat,
  2525. this.lng,
  2526. this.assignClientIPList,
  2527. String? token,
  2528. }) : super(
  2529. token: token,
  2530. );
  2531. factory DistributedServerInfoRequest.fromJson(Map<String, dynamic> map) {
  2532. return DistributedServerInfoRequest(
  2533. code: map['Code'],
  2534. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  2535. isMaster: map['IsMaster'],
  2536. name: map['Name'],
  2537. description: map['Description'],
  2538. enable: map['Enable'],
  2539. serverType: DistributedServerTypeEnum.values.firstWhere((e) => e.index == map['ServerType']),
  2540. serverUrl: map['ServerUrl'],
  2541. lat: map['Lat'],
  2542. lng: map['Lng'],
  2543. assignClientIPList: map['AssignClientIPList'] != null ? (map['AssignClientIPList'] as List).map((e)=>IPAddressInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2544. token: map['Token'],
  2545. );
  2546. }
  2547. Map<String, dynamic> toJson() {
  2548. final map = super.toJson();
  2549. if(code != null)
  2550. map['Code'] = code;
  2551. if(codes != null)
  2552. map['Codes'] = codes;
  2553. map['IsMaster'] = isMaster;
  2554. if(name != null)
  2555. map['Name'] = name;
  2556. if(description != null)
  2557. map['Description'] = description;
  2558. map['Enable'] = enable;
  2559. map['ServerType'] = serverType.index;
  2560. if(serverUrl != null)
  2561. map['ServerUrl'] = serverUrl;
  2562. if(lat != null)
  2563. map['Lat'] = lat;
  2564. if(lng != null)
  2565. map['Lng'] = lng;
  2566. if(assignClientIPList != null)
  2567. map['AssignClientIPList'] = assignClientIPList;
  2568. return map;
  2569. }
  2570. }
  2571. class SaveDistributedServerIpRequest extends TokenRequest{
  2572. String? startIp;
  2573. String? endIp;
  2574. String? code;
  2575. SaveDistributedServerIpRequest({
  2576. this.startIp,
  2577. this.endIp,
  2578. this.code,
  2579. String? token,
  2580. }) : super(
  2581. token: token,
  2582. );
  2583. factory SaveDistributedServerIpRequest.fromJson(Map<String, dynamic> map) {
  2584. return SaveDistributedServerIpRequest(
  2585. startIp: map['StartIp'],
  2586. endIp: map['EndIp'],
  2587. code: map['Code'],
  2588. token: map['Token'],
  2589. );
  2590. }
  2591. Map<String, dynamic> toJson() {
  2592. final map = super.toJson();
  2593. if(startIp != null)
  2594. map['StartIp'] = startIp;
  2595. if(endIp != null)
  2596. map['EndIp'] = endIp;
  2597. if(code != null)
  2598. map['Code'] = code;
  2599. return map;
  2600. }
  2601. }
  2602. class GetDistributedServerIpListRequest extends PageRequest{
  2603. String? code;
  2604. String? keyword;
  2605. GetDistributedServerIpListRequest({
  2606. this.code,
  2607. this.keyword,
  2608. int pageIndex = 0,
  2609. int pageSize = 0,
  2610. String? token,
  2611. }) : super(
  2612. pageIndex: pageIndex,
  2613. pageSize: pageSize,
  2614. token: token,
  2615. );
  2616. factory GetDistributedServerIpListRequest.fromJson(Map<String, dynamic> map) {
  2617. return GetDistributedServerIpListRequest(
  2618. code: map['Code'],
  2619. keyword: map['Keyword'],
  2620. pageIndex: map['PageIndex'],
  2621. pageSize: map['PageSize'],
  2622. token: map['Token'],
  2623. );
  2624. }
  2625. Map<String, dynamic> toJson() {
  2626. final map = super.toJson();
  2627. if(code != null)
  2628. map['Code'] = code;
  2629. if(keyword != null)
  2630. map['Keyword'] = keyword;
  2631. return map;
  2632. }
  2633. }
  2634. class FindAdminByCodeRequest extends TokenRequest{
  2635. String? adminCode;
  2636. FindAdminByCodeRequest({
  2637. this.adminCode,
  2638. String? token,
  2639. }) : super(
  2640. token: token,
  2641. );
  2642. factory FindAdminByCodeRequest.fromJson(Map<String, dynamic> map) {
  2643. return FindAdminByCodeRequest(
  2644. adminCode: map['AdminCode'],
  2645. token: map['Token'],
  2646. );
  2647. }
  2648. Map<String, dynamic> toJson() {
  2649. final map = super.toJson();
  2650. if(adminCode != null)
  2651. map['AdminCode'] = adminCode;
  2652. return map;
  2653. }
  2654. }
  2655. class FindAdminRoleByCodeRequest extends TokenRequest{
  2656. String? adminRoleCode;
  2657. FindAdminRoleByCodeRequest({
  2658. this.adminRoleCode,
  2659. String? token,
  2660. }) : super(
  2661. token: token,
  2662. );
  2663. factory FindAdminRoleByCodeRequest.fromJson(Map<String, dynamic> map) {
  2664. return FindAdminRoleByCodeRequest(
  2665. adminRoleCode: map['AdminRoleCode'],
  2666. token: map['Token'],
  2667. );
  2668. }
  2669. Map<String, dynamic> toJson() {
  2670. final map = super.toJson();
  2671. if(adminRoleCode != null)
  2672. map['AdminRoleCode'] = adminRoleCode;
  2673. return map;
  2674. }
  2675. }
  2676. class FindAdminStatisticRecordsRequest extends TokenRequest{
  2677. String? languageCode;
  2678. FindAdminStatisticRecordsRequest({
  2679. this.languageCode,
  2680. String? token,
  2681. }) : super(
  2682. token: token,
  2683. );
  2684. factory FindAdminStatisticRecordsRequest.fromJson(Map<String, dynamic> map) {
  2685. return FindAdminStatisticRecordsRequest(
  2686. languageCode: map['LanguageCode'],
  2687. token: map['Token'],
  2688. );
  2689. }
  2690. Map<String, dynamic> toJson() {
  2691. final map = super.toJson();
  2692. if(languageCode != null)
  2693. map['LanguageCode'] = languageCode;
  2694. return map;
  2695. }
  2696. }
  2697. class FindCMSStatisticRequest extends TokenRequest{
  2698. String? clientId;
  2699. FindCMSStatisticRequest({
  2700. this.clientId,
  2701. String? token,
  2702. }) : super(
  2703. token: token,
  2704. );
  2705. factory FindCMSStatisticRequest.fromJson(Map<String, dynamic> map) {
  2706. return FindCMSStatisticRequest(
  2707. clientId: map['ClientId'],
  2708. token: map['Token'],
  2709. );
  2710. }
  2711. Map<String, dynamic> toJson() {
  2712. final map = super.toJson();
  2713. if(clientId != null)
  2714. map['ClientId'] = clientId;
  2715. return map;
  2716. }
  2717. }
  2718. class FindCMSTemplateByUserRequest extends TokenRequest{
  2719. String? clientId;
  2720. FindCMSTemplateByUserRequest({
  2721. this.clientId,
  2722. String? token,
  2723. }) : super(
  2724. token: token,
  2725. );
  2726. factory FindCMSTemplateByUserRequest.fromJson(Map<String, dynamic> map) {
  2727. return FindCMSTemplateByUserRequest(
  2728. clientId: map['ClientId'],
  2729. token: map['Token'],
  2730. );
  2731. }
  2732. Map<String, dynamic> toJson() {
  2733. final map = super.toJson();
  2734. if(clientId != null)
  2735. map['ClientId'] = clientId;
  2736. return map;
  2737. }
  2738. }
  2739. class FindCMSTemplateDetailRequest extends TokenRequest{
  2740. String? cMSTemplateCode;
  2741. FindCMSTemplateDetailRequest({
  2742. this.cMSTemplateCode,
  2743. String? token,
  2744. }) : super(
  2745. token: token,
  2746. );
  2747. factory FindCMSTemplateDetailRequest.fromJson(Map<String, dynamic> map) {
  2748. return FindCMSTemplateDetailRequest(
  2749. cMSTemplateCode: map['CMSTemplateCode'],
  2750. token: map['Token'],
  2751. );
  2752. }
  2753. Map<String, dynamic> toJson() {
  2754. final map = super.toJson();
  2755. if(cMSTemplateCode != null)
  2756. map['CMSTemplateCode'] = cMSTemplateCode;
  2757. return map;
  2758. }
  2759. }
  2760. class FindCMSTemplatePageRequest extends PageRequest{
  2761. String? searchKey;
  2762. FindCMSTemplatePageRequest({
  2763. this.searchKey,
  2764. int pageIndex = 0,
  2765. int pageSize = 0,
  2766. String? token,
  2767. }) : super(
  2768. pageIndex: pageIndex,
  2769. pageSize: pageSize,
  2770. token: token,
  2771. );
  2772. factory FindCMSTemplatePageRequest.fromJson(Map<String, dynamic> map) {
  2773. return FindCMSTemplatePageRequest(
  2774. searchKey: map['SearchKey'],
  2775. pageIndex: map['PageIndex'],
  2776. pageSize: map['PageSize'],
  2777. token: map['Token'],
  2778. );
  2779. }
  2780. Map<String, dynamic> toJson() {
  2781. final map = super.toJson();
  2782. if(searchKey != null)
  2783. map['SearchKey'] = searchKey;
  2784. return map;
  2785. }
  2786. }
  2787. class FindContentConfigRequest extends TokenRequest{
  2788. int type;
  2789. String? parentCode;
  2790. FindContentConfigRequest({
  2791. this.type = 0,
  2792. this.parentCode,
  2793. String? token,
  2794. }) : super(
  2795. token: token,
  2796. );
  2797. factory FindContentConfigRequest.fromJson(Map<String, dynamic> map) {
  2798. return FindContentConfigRequest(
  2799. type: map['Type'],
  2800. parentCode: map['ParentCode'],
  2801. token: map['Token'],
  2802. );
  2803. }
  2804. Map<String, dynamic> toJson() {
  2805. final map = super.toJson();
  2806. map['Type'] = type;
  2807. if(parentCode != null)
  2808. map['ParentCode'] = parentCode;
  2809. return map;
  2810. }
  2811. }
  2812. class FindDeviceDiagnosisModulesRequest2 extends TokenRequest{
  2813. String? deviceCode;
  2814. FindDeviceDiagnosisModulesRequest2({
  2815. this.deviceCode,
  2816. String? token,
  2817. }) : super(
  2818. token: token,
  2819. );
  2820. factory FindDeviceDiagnosisModulesRequest2.fromJson(Map<String, dynamic> map) {
  2821. return FindDeviceDiagnosisModulesRequest2(
  2822. deviceCode: map['DeviceCode'],
  2823. token: map['Token'],
  2824. );
  2825. }
  2826. Map<String, dynamic> toJson() {
  2827. final map = super.toJson();
  2828. if(deviceCode != null)
  2829. map['DeviceCode'] = deviceCode;
  2830. return map;
  2831. }
  2832. }
  2833. class FindDiagnosisModuleByPageRequest extends PageRequest{
  2834. FindDiagnosisModuleByPageRequest({
  2835. int pageIndex = 0,
  2836. int pageSize = 0,
  2837. String? token,
  2838. }) : super(
  2839. pageIndex: pageIndex,
  2840. pageSize: pageSize,
  2841. token: token,
  2842. );
  2843. factory FindDiagnosisModuleByPageRequest.fromJson(Map<String, dynamic> map) {
  2844. return FindDiagnosisModuleByPageRequest(
  2845. pageIndex: map['PageIndex'],
  2846. pageSize: map['PageSize'],
  2847. token: map['Token'],
  2848. );
  2849. }
  2850. Map<String, dynamic> toJson() {
  2851. final map = super.toJson();
  2852. return map;
  2853. }
  2854. }
  2855. class FindGradingProtectionConfigByPageRequest extends PageRequest{
  2856. String? keyword;
  2857. FindGradingProtectionConfigByPageRequest({
  2858. this.keyword,
  2859. int pageIndex = 0,
  2860. int pageSize = 0,
  2861. String? token,
  2862. }) : super(
  2863. pageIndex: pageIndex,
  2864. pageSize: pageSize,
  2865. token: token,
  2866. );
  2867. factory FindGradingProtectionConfigByPageRequest.fromJson(Map<String, dynamic> map) {
  2868. return FindGradingProtectionConfigByPageRequest(
  2869. keyword: map['Keyword'],
  2870. pageIndex: map['PageIndex'],
  2871. pageSize: map['PageSize'],
  2872. token: map['Token'],
  2873. );
  2874. }
  2875. Map<String, dynamic> toJson() {
  2876. final map = super.toJson();
  2877. if(keyword != null)
  2878. map['Keyword'] = keyword;
  2879. return map;
  2880. }
  2881. }
  2882. class FindOrganizationDiagnosisModulesRequest extends TokenRequest{
  2883. String? organizationCode;
  2884. FindOrganizationDiagnosisModulesRequest({
  2885. this.organizationCode,
  2886. String? token,
  2887. }) : super(
  2888. token: token,
  2889. );
  2890. factory FindOrganizationDiagnosisModulesRequest.fromJson(Map<String, dynamic> map) {
  2891. return FindOrganizationDiagnosisModulesRequest(
  2892. organizationCode: map['OrganizationCode'],
  2893. token: map['Token'],
  2894. );
  2895. }
  2896. Map<String, dynamic> toJson() {
  2897. final map = super.toJson();
  2898. if(organizationCode != null)
  2899. map['OrganizationCode'] = organizationCode;
  2900. return map;
  2901. }
  2902. }
  2903. class FindReferralRecordSettingRequest extends TokenRequest{
  2904. FindReferralRecordSettingRequest({
  2905. String? token,
  2906. }) : super(
  2907. token: token,
  2908. );
  2909. factory FindReferralRecordSettingRequest.fromJson(Map<String, dynamic> map) {
  2910. return FindReferralRecordSettingRequest(
  2911. token: map['Token'],
  2912. );
  2913. }
  2914. Map<String, dynamic> toJson() {
  2915. final map = super.toJson();
  2916. return map;
  2917. }
  2918. }
  2919. class FindRelatedDeviceCodesRequest extends TokenRequest{
  2920. String? reportPosterCode;
  2921. FindRelatedDeviceCodesRequest({
  2922. this.reportPosterCode,
  2923. String? token,
  2924. }) : super(
  2925. token: token,
  2926. );
  2927. factory FindRelatedDeviceCodesRequest.fromJson(Map<String, dynamic> map) {
  2928. return FindRelatedDeviceCodesRequest(
  2929. reportPosterCode: map['ReportPosterCode'],
  2930. token: map['Token'],
  2931. );
  2932. }
  2933. Map<String, dynamic> toJson() {
  2934. final map = super.toJson();
  2935. if(reportPosterCode != null)
  2936. map['ReportPosterCode'] = reportPosterCode;
  2937. return map;
  2938. }
  2939. }
  2940. class FindReportLabelByCodeRequest extends TokenRequest{
  2941. String? reportLabelCode;
  2942. FindReportLabelByCodeRequest({
  2943. this.reportLabelCode,
  2944. String? token,
  2945. }) : super(
  2946. token: token,
  2947. );
  2948. factory FindReportLabelByCodeRequest.fromJson(Map<String, dynamic> map) {
  2949. return FindReportLabelByCodeRequest(
  2950. reportLabelCode: map['ReportLabelCode'],
  2951. token: map['Token'],
  2952. );
  2953. }
  2954. Map<String, dynamic> toJson() {
  2955. final map = super.toJson();
  2956. if(reportLabelCode != null)
  2957. map['ReportLabelCode'] = reportLabelCode;
  2958. return map;
  2959. }
  2960. }
  2961. class FindReportLabelByPageRequest extends PageRequest{
  2962. String? keyword;
  2963. FindReportLabelByPageRequest({
  2964. this.keyword,
  2965. int pageIndex = 0,
  2966. int pageSize = 0,
  2967. String? token,
  2968. }) : super(
  2969. pageIndex: pageIndex,
  2970. pageSize: pageSize,
  2971. token: token,
  2972. );
  2973. factory FindReportLabelByPageRequest.fromJson(Map<String, dynamic> map) {
  2974. return FindReportLabelByPageRequest(
  2975. keyword: map['Keyword'],
  2976. pageIndex: map['PageIndex'],
  2977. pageSize: map['PageSize'],
  2978. token: map['Token'],
  2979. );
  2980. }
  2981. Map<String, dynamic> toJson() {
  2982. final map = super.toJson();
  2983. if(keyword != null)
  2984. map['Keyword'] = keyword;
  2985. return map;
  2986. }
  2987. }
  2988. class FindReportPosterByCodeRequest extends TokenRequest{
  2989. String? reportPosterCode;
  2990. FindReportPosterByCodeRequest({
  2991. this.reportPosterCode,
  2992. String? token,
  2993. }) : super(
  2994. token: token,
  2995. );
  2996. factory FindReportPosterByCodeRequest.fromJson(Map<String, dynamic> map) {
  2997. return FindReportPosterByCodeRequest(
  2998. reportPosterCode: map['ReportPosterCode'],
  2999. token: map['Token'],
  3000. );
  3001. }
  3002. Map<String, dynamic> toJson() {
  3003. final map = super.toJson();
  3004. if(reportPosterCode != null)
  3005. map['ReportPosterCode'] = reportPosterCode;
  3006. return map;
  3007. }
  3008. }
  3009. class FindReportPosterByPageRequest extends PageRequest{
  3010. String? keyword;
  3011. FindReportPosterByPageRequest({
  3012. this.keyword,
  3013. int pageIndex = 0,
  3014. int pageSize = 0,
  3015. String? token,
  3016. }) : super(
  3017. pageIndex: pageIndex,
  3018. pageSize: pageSize,
  3019. token: token,
  3020. );
  3021. factory FindReportPosterByPageRequest.fromJson(Map<String, dynamic> map) {
  3022. return FindReportPosterByPageRequest(
  3023. keyword: map['Keyword'],
  3024. pageIndex: map['PageIndex'],
  3025. pageSize: map['PageSize'],
  3026. token: map['Token'],
  3027. );
  3028. }
  3029. Map<String, dynamic> toJson() {
  3030. final map = super.toJson();
  3031. if(keyword != null)
  3032. map['Keyword'] = keyword;
  3033. return map;
  3034. }
  3035. }
  3036. class FindReportPreviewUrlRequest extends TokenRequest{
  3037. String? reportCode;
  3038. String? languageCode;
  3039. FindReportPreviewUrlRequest({
  3040. this.reportCode,
  3041. this.languageCode,
  3042. String? token,
  3043. }) : super(
  3044. token: token,
  3045. );
  3046. factory FindReportPreviewUrlRequest.fromJson(Map<String, dynamic> map) {
  3047. return FindReportPreviewUrlRequest(
  3048. reportCode: map['ReportCode'],
  3049. languageCode: map['LanguageCode'],
  3050. token: map['Token'],
  3051. );
  3052. }
  3053. Map<String, dynamic> toJson() {
  3054. final map = super.toJson();
  3055. if(reportCode != null)
  3056. map['ReportCode'] = reportCode;
  3057. if(languageCode != null)
  3058. map['LanguageCode'] = languageCode;
  3059. return map;
  3060. }
  3061. }
  3062. enum PushDataStateEnum {
  3063. UnDo,
  3064. Successful,
  3065. Failed,
  3066. All,
  3067. }
  3068. class FindReportPushRecordsByPageRequest extends PageRequest{
  3069. String? keyword;
  3070. PushDataStateEnum queryState;
  3071. FindReportPushRecordsByPageRequest({
  3072. this.keyword,
  3073. this.queryState = PushDataStateEnum.UnDo,
  3074. int pageIndex = 0,
  3075. int pageSize = 0,
  3076. String? token,
  3077. }) : super(
  3078. pageIndex: pageIndex,
  3079. pageSize: pageSize,
  3080. token: token,
  3081. );
  3082. factory FindReportPushRecordsByPageRequest.fromJson(Map<String, dynamic> map) {
  3083. return FindReportPushRecordsByPageRequest(
  3084. keyword: map['Keyword'],
  3085. queryState: PushDataStateEnum.values.firstWhere((e) => e.index == map['QueryState']),
  3086. pageIndex: map['PageIndex'],
  3087. pageSize: map['PageSize'],
  3088. token: map['Token'],
  3089. );
  3090. }
  3091. Map<String, dynamic> toJson() {
  3092. final map = super.toJson();
  3093. if(keyword != null)
  3094. map['Keyword'] = keyword;
  3095. map['QueryState'] = queryState.index;
  3096. return map;
  3097. }
  3098. }
  3099. class FindReportShareConentRequest extends TokenRequest{
  3100. String? shortCode;
  3101. FindReportShareConentRequest({
  3102. this.shortCode,
  3103. String? token,
  3104. }) : super(
  3105. token: token,
  3106. );
  3107. factory FindReportShareConentRequest.fromJson(Map<String, dynamic> map) {
  3108. return FindReportShareConentRequest(
  3109. shortCode: map['ShortCode'],
  3110. token: map['Token'],
  3111. );
  3112. }
  3113. Map<String, dynamic> toJson() {
  3114. final map = super.toJson();
  3115. if(shortCode != null)
  3116. map['ShortCode'] = shortCode;
  3117. return map;
  3118. }
  3119. }
  3120. class FindReportTemplateUserPagesRequest extends PageRequest{
  3121. String? reportTemplateCode;
  3122. String? keyword;
  3123. FindReportTemplateUserPagesRequest({
  3124. this.reportTemplateCode,
  3125. this.keyword,
  3126. int pageIndex = 0,
  3127. int pageSize = 0,
  3128. String? token,
  3129. }) : super(
  3130. pageIndex: pageIndex,
  3131. pageSize: pageSize,
  3132. token: token,
  3133. );
  3134. factory FindReportTemplateUserPagesRequest.fromJson(Map<String, dynamic> map) {
  3135. return FindReportTemplateUserPagesRequest(
  3136. reportTemplateCode: map['ReportTemplateCode'],
  3137. keyword: map['Keyword'],
  3138. pageIndex: map['PageIndex'],
  3139. pageSize: map['PageSize'],
  3140. token: map['Token'],
  3141. );
  3142. }
  3143. Map<String, dynamic> toJson() {
  3144. final map = super.toJson();
  3145. if(reportTemplateCode != null)
  3146. map['ReportTemplateCode'] = reportTemplateCode;
  3147. if(keyword != null)
  3148. map['Keyword'] = keyword;
  3149. return map;
  3150. }
  3151. }
  3152. class FindRoleByCodeRequest extends TokenRequest{
  3153. String? roleCode;
  3154. FindRoleByCodeRequest({
  3155. this.roleCode,
  3156. String? token,
  3157. }) : super(
  3158. token: token,
  3159. );
  3160. factory FindRoleByCodeRequest.fromJson(Map<String, dynamic> map) {
  3161. return FindRoleByCodeRequest(
  3162. roleCode: map['RoleCode'],
  3163. token: map['Token'],
  3164. );
  3165. }
  3166. Map<String, dynamic> toJson() {
  3167. final map = super.toJson();
  3168. if(roleCode != null)
  3169. map['RoleCode'] = roleCode;
  3170. return map;
  3171. }
  3172. }
  3173. class FindThesaurusByCodeRequest extends TokenRequest{
  3174. String? thesaurusCode;
  3175. FindThesaurusByCodeRequest({
  3176. this.thesaurusCode,
  3177. String? token,
  3178. }) : super(
  3179. token: token,
  3180. );
  3181. factory FindThesaurusByCodeRequest.fromJson(Map<String, dynamic> map) {
  3182. return FindThesaurusByCodeRequest(
  3183. thesaurusCode: map['ThesaurusCode'],
  3184. token: map['Token'],
  3185. );
  3186. }
  3187. Map<String, dynamic> toJson() {
  3188. final map = super.toJson();
  3189. if(thesaurusCode != null)
  3190. map['ThesaurusCode'] = thesaurusCode;
  3191. return map;
  3192. }
  3193. }
  3194. class FindThesaurusPagesRequest extends PageRequest{
  3195. String? keyword;
  3196. FindThesaurusPagesRequest({
  3197. this.keyword,
  3198. int pageIndex = 0,
  3199. int pageSize = 0,
  3200. String? token,
  3201. }) : super(
  3202. pageIndex: pageIndex,
  3203. pageSize: pageSize,
  3204. token: token,
  3205. );
  3206. factory FindThesaurusPagesRequest.fromJson(Map<String, dynamic> map) {
  3207. return FindThesaurusPagesRequest(
  3208. keyword: map['Keyword'],
  3209. pageIndex: map['PageIndex'],
  3210. pageSize: map['PageSize'],
  3211. token: map['Token'],
  3212. );
  3213. }
  3214. Map<String, dynamic> toJson() {
  3215. final map = super.toJson();
  3216. if(keyword != null)
  3217. map['Keyword'] = keyword;
  3218. return map;
  3219. }
  3220. }
  3221. class FindThesaurusUserPagesRequest extends PageRequest{
  3222. String? thesaurusCode;
  3223. String? keyword;
  3224. FindThesaurusUserPagesRequest({
  3225. this.thesaurusCode,
  3226. this.keyword,
  3227. int pageIndex = 0,
  3228. int pageSize = 0,
  3229. String? token,
  3230. }) : super(
  3231. pageIndex: pageIndex,
  3232. pageSize: pageSize,
  3233. token: token,
  3234. );
  3235. factory FindThesaurusUserPagesRequest.fromJson(Map<String, dynamic> map) {
  3236. return FindThesaurusUserPagesRequest(
  3237. thesaurusCode: map['ThesaurusCode'],
  3238. keyword: map['Keyword'],
  3239. pageIndex: map['PageIndex'],
  3240. pageSize: map['PageSize'],
  3241. token: map['Token'],
  3242. );
  3243. }
  3244. Map<String, dynamic> toJson() {
  3245. final map = super.toJson();
  3246. if(thesaurusCode != null)
  3247. map['ThesaurusCode'] = thesaurusCode;
  3248. if(keyword != null)
  3249. map['Keyword'] = keyword;
  3250. return map;
  3251. }
  3252. }
  3253. class FindThirdPartyInfoByCodeRequest extends TokenRequest{
  3254. String? code;
  3255. FindThirdPartyInfoByCodeRequest({
  3256. this.code,
  3257. String? token,
  3258. }) : super(
  3259. token: token,
  3260. );
  3261. factory FindThirdPartyInfoByCodeRequest.fromJson(Map<String, dynamic> map) {
  3262. return FindThirdPartyInfoByCodeRequest(
  3263. code: map['Code'],
  3264. token: map['Token'],
  3265. );
  3266. }
  3267. Map<String, dynamic> toJson() {
  3268. final map = super.toJson();
  3269. if(code != null)
  3270. map['Code'] = code;
  3271. return map;
  3272. }
  3273. }
  3274. class FindUserByCodeRequest extends TokenRequest{
  3275. String? userCode;
  3276. FindUserByCodeRequest({
  3277. this.userCode,
  3278. String? token,
  3279. }) : super(
  3280. token: token,
  3281. );
  3282. factory FindUserByCodeRequest.fromJson(Map<String, dynamic> map) {
  3283. return FindUserByCodeRequest(
  3284. userCode: map['UserCode'],
  3285. token: map['Token'],
  3286. );
  3287. }
  3288. Map<String, dynamic> toJson() {
  3289. final map = super.toJson();
  3290. if(userCode != null)
  3291. map['UserCode'] = userCode;
  3292. return map;
  3293. }
  3294. }
  3295. class GetAdminPagesRequest extends PageRequest{
  3296. String? queryType;
  3297. String? keyWord;
  3298. String? roleCode;
  3299. bool isShowSuperRoleCode;
  3300. String? fatherCode;
  3301. GetAdminPagesRequest({
  3302. this.queryType,
  3303. this.keyWord,
  3304. this.roleCode,
  3305. this.isShowSuperRoleCode = false,
  3306. this.fatherCode,
  3307. int pageIndex = 0,
  3308. int pageSize = 0,
  3309. String? token,
  3310. }) : super(
  3311. pageIndex: pageIndex,
  3312. pageSize: pageSize,
  3313. token: token,
  3314. );
  3315. factory GetAdminPagesRequest.fromJson(Map<String, dynamic> map) {
  3316. return GetAdminPagesRequest(
  3317. queryType: map['QueryType'],
  3318. keyWord: map['KeyWord'],
  3319. roleCode: map['RoleCode'],
  3320. isShowSuperRoleCode: map['IsShowSuperRoleCode'],
  3321. fatherCode: map['FatherCode'],
  3322. pageIndex: map['PageIndex'],
  3323. pageSize: map['PageSize'],
  3324. token: map['Token'],
  3325. );
  3326. }
  3327. Map<String, dynamic> toJson() {
  3328. final map = super.toJson();
  3329. if(queryType != null)
  3330. map['QueryType'] = queryType;
  3331. if(keyWord != null)
  3332. map['KeyWord'] = keyWord;
  3333. if(roleCode != null)
  3334. map['RoleCode'] = roleCode;
  3335. map['IsShowSuperRoleCode'] = isShowSuperRoleCode;
  3336. if(fatherCode != null)
  3337. map['FatherCode'] = fatherCode;
  3338. return map;
  3339. }
  3340. }
  3341. class GetAdminRolePagesRequest extends PageRequest{
  3342. String? roleName;
  3343. GetAdminRolePagesRequest({
  3344. this.roleName,
  3345. int pageIndex = 0,
  3346. int pageSize = 0,
  3347. String? token,
  3348. }) : super(
  3349. pageIndex: pageIndex,
  3350. pageSize: pageSize,
  3351. token: token,
  3352. );
  3353. factory GetAdminRolePagesRequest.fromJson(Map<String, dynamic> map) {
  3354. return GetAdminRolePagesRequest(
  3355. roleName: map['RoleName'],
  3356. pageIndex: map['PageIndex'],
  3357. pageSize: map['PageSize'],
  3358. token: map['Token'],
  3359. );
  3360. }
  3361. Map<String, dynamic> toJson() {
  3362. final map = super.toJson();
  3363. if(roleName != null)
  3364. map['RoleName'] = roleName;
  3365. return map;
  3366. }
  3367. }
  3368. class GetDeviceModelSelectRequest extends TokenRequest{
  3369. String? parentCode;
  3370. GetDeviceModelSelectRequest({
  3371. this.parentCode,
  3372. String? token,
  3373. }) : super(
  3374. token: token,
  3375. );
  3376. factory GetDeviceModelSelectRequest.fromJson(Map<String, dynamic> map) {
  3377. return GetDeviceModelSelectRequest(
  3378. parentCode: map['ParentCode'],
  3379. token: map['Token'],
  3380. );
  3381. }
  3382. Map<String, dynamic> toJson() {
  3383. final map = super.toJson();
  3384. if(parentCode != null)
  3385. map['ParentCode'] = parentCode;
  3386. return map;
  3387. }
  3388. }
  3389. class GetDeviceOutputConfigRequest extends TokenRequest{
  3390. DeviceVideoOutputTypeEnum deviceVideoOutputType;
  3391. GetDeviceOutputConfigRequest({
  3392. this.deviceVideoOutputType = DeviceVideoOutputTypeEnum.MergedVideo,
  3393. String? token,
  3394. }) : super(
  3395. token: token,
  3396. );
  3397. factory GetDeviceOutputConfigRequest.fromJson(Map<String, dynamic> map) {
  3398. return GetDeviceOutputConfigRequest(
  3399. deviceVideoOutputType: DeviceVideoOutputTypeEnum.values.firstWhere((e) => e.index == map['DeviceVideoOutputType']),
  3400. token: map['Token'],
  3401. );
  3402. }
  3403. Map<String, dynamic> toJson() {
  3404. final map = super.toJson();
  3405. map['DeviceVideoOutputType'] = deviceVideoOutputType.index;
  3406. return map;
  3407. }
  3408. }
  3409. class GetDeviceBrandModelPageRequest extends PageRequest{
  3410. String? keyword;
  3411. GetDeviceBrandModelPageRequest({
  3412. this.keyword,
  3413. int pageIndex = 0,
  3414. int pageSize = 0,
  3415. String? token,
  3416. }) : super(
  3417. pageIndex: pageIndex,
  3418. pageSize: pageSize,
  3419. token: token,
  3420. );
  3421. factory GetDeviceBrandModelPageRequest.fromJson(Map<String, dynamic> map) {
  3422. return GetDeviceBrandModelPageRequest(
  3423. keyword: map['Keyword'],
  3424. pageIndex: map['PageIndex'],
  3425. pageSize: map['PageSize'],
  3426. token: map['Token'],
  3427. );
  3428. }
  3429. Map<String, dynamic> toJson() {
  3430. final map = super.toJson();
  3431. if(keyword != null)
  3432. map['Keyword'] = keyword;
  3433. return map;
  3434. }
  3435. }
  3436. class GetDevicePagesRequest extends PageRequest{
  3437. String? queryType;
  3438. String? keyword;
  3439. List<String >? hospitals;
  3440. String? adminName;
  3441. String? userName;
  3442. GetDevicePagesRequest({
  3443. this.queryType,
  3444. this.keyword,
  3445. this.hospitals,
  3446. this.adminName,
  3447. this.userName,
  3448. int pageIndex = 0,
  3449. int pageSize = 0,
  3450. String? token,
  3451. }) : super(
  3452. pageIndex: pageIndex,
  3453. pageSize: pageSize,
  3454. token: token,
  3455. );
  3456. factory GetDevicePagesRequest.fromJson(Map<String, dynamic> map) {
  3457. return GetDevicePagesRequest(
  3458. queryType: map['QueryType'],
  3459. keyword: map['Keyword'],
  3460. hospitals: map['Hospitals'] != null ? map['Hospitals'].cast<String>().toList() : null,
  3461. adminName: map['AdminName'],
  3462. userName: map['UserName'],
  3463. pageIndex: map['PageIndex'],
  3464. pageSize: map['PageSize'],
  3465. token: map['Token'],
  3466. );
  3467. }
  3468. Map<String, dynamic> toJson() {
  3469. final map = super.toJson();
  3470. if(queryType != null)
  3471. map['QueryType'] = queryType;
  3472. if(keyword != null)
  3473. map['Keyword'] = keyword;
  3474. if(hospitals != null)
  3475. map['Hospitals'] = hospitals;
  3476. if(adminName != null)
  3477. map['AdminName'] = adminName;
  3478. if(userName != null)
  3479. map['UserName'] = userName;
  3480. return map;
  3481. }
  3482. }
  3483. class GetDeviceTypePagesRequest extends PageRequest{
  3484. String? deviceType;
  3485. String? deviceModel;
  3486. GetDeviceTypePagesRequest({
  3487. this.deviceType,
  3488. this.deviceModel,
  3489. int pageIndex = 0,
  3490. int pageSize = 0,
  3491. String? token,
  3492. }) : super(
  3493. pageIndex: pageIndex,
  3494. pageSize: pageSize,
  3495. token: token,
  3496. );
  3497. factory GetDeviceTypePagesRequest.fromJson(Map<String, dynamic> map) {
  3498. return GetDeviceTypePagesRequest(
  3499. deviceType: map['DeviceType'],
  3500. deviceModel: map['DeviceModel'],
  3501. pageIndex: map['PageIndex'],
  3502. pageSize: map['PageSize'],
  3503. token: map['Token'],
  3504. );
  3505. }
  3506. Map<String, dynamic> toJson() {
  3507. final map = super.toJson();
  3508. if(deviceType != null)
  3509. map['DeviceType'] = deviceType;
  3510. if(deviceModel != null)
  3511. map['DeviceModel'] = deviceModel;
  3512. return map;
  3513. }
  3514. }
  3515. class GetDeviceUserPagesRequest extends PageRequest{
  3516. List<String >? deviceCodes;
  3517. String? queryType;
  3518. String? keyword;
  3519. int type;
  3520. GetDeviceUserPagesRequest({
  3521. this.deviceCodes,
  3522. this.queryType,
  3523. this.keyword,
  3524. this.type = 0,
  3525. int pageIndex = 0,
  3526. int pageSize = 0,
  3527. String? token,
  3528. }) : super(
  3529. pageIndex: pageIndex,
  3530. pageSize: pageSize,
  3531. token: token,
  3532. );
  3533. factory GetDeviceUserPagesRequest.fromJson(Map<String, dynamic> map) {
  3534. return GetDeviceUserPagesRequest(
  3535. deviceCodes: map['DeviceCodes'] != null ? map['DeviceCodes'].cast<String>().toList() : null,
  3536. queryType: map['QueryType'],
  3537. keyword: map['Keyword'],
  3538. type: map['Type'],
  3539. pageIndex: map['PageIndex'],
  3540. pageSize: map['PageSize'],
  3541. token: map['Token'],
  3542. );
  3543. }
  3544. Map<String, dynamic> toJson() {
  3545. final map = super.toJson();
  3546. if(deviceCodes != null)
  3547. map['DeviceCodes'] = deviceCodes;
  3548. if(queryType != null)
  3549. map['QueryType'] = queryType;
  3550. if(keyword != null)
  3551. map['Keyword'] = keyword;
  3552. map['Type'] = type;
  3553. return map;
  3554. }
  3555. }
  3556. class GetDistributedServerRequest extends PageRequest{
  3557. String? keyword;
  3558. GetDistributedServerRequest({
  3559. this.keyword,
  3560. int pageIndex = 0,
  3561. int pageSize = 0,
  3562. String? token,
  3563. }) : super(
  3564. pageIndex: pageIndex,
  3565. pageSize: pageSize,
  3566. token: token,
  3567. );
  3568. factory GetDistributedServerRequest.fromJson(Map<String, dynamic> map) {
  3569. return GetDistributedServerRequest(
  3570. keyword: map['Keyword'],
  3571. pageIndex: map['PageIndex'],
  3572. pageSize: map['PageSize'],
  3573. token: map['Token'],
  3574. );
  3575. }
  3576. Map<String, dynamic> toJson() {
  3577. final map = super.toJson();
  3578. if(keyword != null)
  3579. map['Keyword'] = keyword;
  3580. return map;
  3581. }
  3582. }
  3583. class GetLogPagesRequest extends PageRequest{
  3584. String? level;
  3585. String? keyWord;
  3586. String? exclude;
  3587. DateTime? startTime;
  3588. DateTime? endTime;
  3589. String? requestServerHost;
  3590. GetLogPagesRequest({
  3591. this.level,
  3592. this.keyWord,
  3593. this.exclude,
  3594. this.startTime,
  3595. this.endTime,
  3596. this.requestServerHost,
  3597. int pageIndex = 0,
  3598. int pageSize = 0,
  3599. String? token,
  3600. }) : super(
  3601. pageIndex: pageIndex,
  3602. pageSize: pageSize,
  3603. token: token,
  3604. );
  3605. factory GetLogPagesRequest.fromJson(Map<String, dynamic> map) {
  3606. return GetLogPagesRequest(
  3607. level: map['Level'],
  3608. keyWord: map['KeyWord'],
  3609. exclude: map['Exclude'],
  3610. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  3611. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  3612. requestServerHost: map['RequestServerHost'],
  3613. pageIndex: map['PageIndex'],
  3614. pageSize: map['PageSize'],
  3615. token: map['Token'],
  3616. );
  3617. }
  3618. Map<String, dynamic> toJson() {
  3619. final map = super.toJson();
  3620. if(level != null)
  3621. map['Level'] = level;
  3622. if(keyWord != null)
  3623. map['KeyWord'] = keyWord;
  3624. if(exclude != null)
  3625. map['Exclude'] = exclude;
  3626. if(startTime != null)
  3627. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  3628. if(endTime != null)
  3629. map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
  3630. if(requestServerHost != null)
  3631. map['RequestServerHost'] = requestServerHost;
  3632. return map;
  3633. }
  3634. }
  3635. class GetOrganizationCustomSettingRequest extends TokenRequest{
  3636. String? langugeKey;
  3637. String? settingModule;
  3638. String? organizationCode;
  3639. GetOrganizationCustomSettingRequest({
  3640. this.langugeKey,
  3641. this.settingModule,
  3642. this.organizationCode,
  3643. String? token,
  3644. }) : super(
  3645. token: token,
  3646. );
  3647. factory GetOrganizationCustomSettingRequest.fromJson(Map<String, dynamic> map) {
  3648. return GetOrganizationCustomSettingRequest(
  3649. langugeKey: map['LangugeKey'],
  3650. settingModule: map['SettingModule'],
  3651. organizationCode: map['OrganizationCode'],
  3652. token: map['Token'],
  3653. );
  3654. }
  3655. Map<String, dynamic> toJson() {
  3656. final map = super.toJson();
  3657. if(langugeKey != null)
  3658. map['LangugeKey'] = langugeKey;
  3659. if(settingModule != null)
  3660. map['SettingModule'] = settingModule;
  3661. if(organizationCode != null)
  3662. map['OrganizationCode'] = organizationCode;
  3663. return map;
  3664. }
  3665. }
  3666. class GetOrganizationPagesRequest extends PageRequest{
  3667. String? queryType;
  3668. String? keyword;
  3669. String? state;
  3670. String? isinvented;
  3671. GetOrganizationPagesRequest({
  3672. this.queryType,
  3673. this.keyword,
  3674. this.state,
  3675. this.isinvented,
  3676. int pageIndex = 0,
  3677. int pageSize = 0,
  3678. String? token,
  3679. }) : super(
  3680. pageIndex: pageIndex,
  3681. pageSize: pageSize,
  3682. token: token,
  3683. );
  3684. factory GetOrganizationPagesRequest.fromJson(Map<String, dynamic> map) {
  3685. return GetOrganizationPagesRequest(
  3686. queryType: map['QueryType'],
  3687. keyword: map['Keyword'],
  3688. state: map['State'],
  3689. isinvented: map['Isinvented'],
  3690. pageIndex: map['PageIndex'],
  3691. pageSize: map['PageSize'],
  3692. token: map['Token'],
  3693. );
  3694. }
  3695. Map<String, dynamic> toJson() {
  3696. final map = super.toJson();
  3697. if(queryType != null)
  3698. map['QueryType'] = queryType;
  3699. if(keyword != null)
  3700. map['Keyword'] = keyword;
  3701. if(state != null)
  3702. map['State'] = state;
  3703. if(isinvented != null)
  3704. map['Isinvented'] = isinvented;
  3705. return map;
  3706. }
  3707. }
  3708. class GetOrganizationRequest extends TokenRequest{
  3709. String? organizationCode;
  3710. GetOrganizationRequest({
  3711. this.organizationCode,
  3712. String? token,
  3713. }) : super(
  3714. token: token,
  3715. );
  3716. factory GetOrganizationRequest.fromJson(Map<String, dynamic> map) {
  3717. return GetOrganizationRequest(
  3718. organizationCode: map['OrganizationCode'],
  3719. token: map['Token'],
  3720. );
  3721. }
  3722. Map<String, dynamic> toJson() {
  3723. final map = super.toJson();
  3724. if(organizationCode != null)
  3725. map['OrganizationCode'] = organizationCode;
  3726. return map;
  3727. }
  3728. }
  3729. class GetOrganizationSettingRequest extends TokenRequest{
  3730. OrganizationSettingTypeEnum settingType;
  3731. String? organizationCode;
  3732. GetOrganizationSettingRequest({
  3733. this.settingType = OrganizationSettingTypeEnum.Patient,
  3734. this.organizationCode,
  3735. String? token,
  3736. }) : super(
  3737. token: token,
  3738. );
  3739. factory GetOrganizationSettingRequest.fromJson(Map<String, dynamic> map) {
  3740. return GetOrganizationSettingRequest(
  3741. settingType: OrganizationSettingTypeEnum.values.firstWhere((e) => e.index == map['SettingType']),
  3742. organizationCode: map['OrganizationCode'],
  3743. token: map['Token'],
  3744. );
  3745. }
  3746. Map<String, dynamic> toJson() {
  3747. final map = super.toJson();
  3748. map['SettingType'] = settingType.index;
  3749. if(organizationCode != null)
  3750. map['OrganizationCode'] = organizationCode;
  3751. return map;
  3752. }
  3753. }
  3754. class GetOrganizationUserPagesRequest extends PageRequest{
  3755. String? organizationCode;
  3756. String? queryType;
  3757. String? keyword;
  3758. GetOrganizationUserPagesRequest({
  3759. this.organizationCode,
  3760. this.queryType,
  3761. this.keyword,
  3762. int pageIndex = 0,
  3763. int pageSize = 0,
  3764. String? token,
  3765. }) : super(
  3766. pageIndex: pageIndex,
  3767. pageSize: pageSize,
  3768. token: token,
  3769. );
  3770. factory GetOrganizationUserPagesRequest.fromJson(Map<String, dynamic> map) {
  3771. return GetOrganizationUserPagesRequest(
  3772. organizationCode: map['OrganizationCode'],
  3773. queryType: map['QueryType'],
  3774. keyword: map['Keyword'],
  3775. pageIndex: map['PageIndex'],
  3776. pageSize: map['PageSize'],
  3777. token: map['Token'],
  3778. );
  3779. }
  3780. Map<String, dynamic> toJson() {
  3781. final map = super.toJson();
  3782. if(organizationCode != null)
  3783. map['OrganizationCode'] = organizationCode;
  3784. if(queryType != null)
  3785. map['QueryType'] = queryType;
  3786. if(keyword != null)
  3787. map['Keyword'] = keyword;
  3788. return map;
  3789. }
  3790. }
  3791. class GetRolePagesRequest extends PageRequest{
  3792. String? roleName;
  3793. GetRolePagesRequest({
  3794. this.roleName,
  3795. int pageIndex = 0,
  3796. int pageSize = 0,
  3797. String? token,
  3798. }) : super(
  3799. pageIndex: pageIndex,
  3800. pageSize: pageSize,
  3801. token: token,
  3802. );
  3803. factory GetRolePagesRequest.fromJson(Map<String, dynamic> map) {
  3804. return GetRolePagesRequest(
  3805. roleName: map['RoleName'],
  3806. pageIndex: map['PageIndex'],
  3807. pageSize: map['PageSize'],
  3808. token: map['Token'],
  3809. );
  3810. }
  3811. Map<String, dynamic> toJson() {
  3812. final map = super.toJson();
  3813. if(roleName != null)
  3814. map['RoleName'] = roleName;
  3815. return map;
  3816. }
  3817. }
  3818. class GetShareExamUrlRequest {
  3819. String? requestUrl;
  3820. String? languageCode;
  3821. GetShareExamUrlRequest({
  3822. this.requestUrl,
  3823. this.languageCode,
  3824. });
  3825. factory GetShareExamUrlRequest.fromJson(Map<String, dynamic> map) {
  3826. return GetShareExamUrlRequest(
  3827. requestUrl: map['RequestUrl'],
  3828. languageCode: map['LanguageCode'],
  3829. );
  3830. }
  3831. Map<String, dynamic> toJson() {
  3832. final map = Map<String, dynamic>();
  3833. if(requestUrl != null)
  3834. map['RequestUrl'] = requestUrl;
  3835. if(languageCode != null)
  3836. map['LanguageCode'] = languageCode;
  3837. return map;
  3838. }
  3839. }
  3840. class GetThesaurusItemRequest extends TokenRequest{
  3841. String? thesaurusCode;
  3842. String? thesaurusItemCode;
  3843. GetThesaurusItemRequest({
  3844. this.thesaurusCode,
  3845. this.thesaurusItemCode,
  3846. String? token,
  3847. }) : super(
  3848. token: token,
  3849. );
  3850. factory GetThesaurusItemRequest.fromJson(Map<String, dynamic> map) {
  3851. return GetThesaurusItemRequest(
  3852. thesaurusCode: map['ThesaurusCode'],
  3853. thesaurusItemCode: map['ThesaurusItemCode'],
  3854. token: map['Token'],
  3855. );
  3856. }
  3857. Map<String, dynamic> toJson() {
  3858. final map = super.toJson();
  3859. if(thesaurusCode != null)
  3860. map['ThesaurusCode'] = thesaurusCode;
  3861. if(thesaurusItemCode != null)
  3862. map['ThesaurusItemCode'] = thesaurusItemCode;
  3863. return map;
  3864. }
  3865. }
  3866. class GetThirdPartyInfoPagesRequest extends PageRequest{
  3867. String? name;
  3868. String? isValid;
  3869. GetThirdPartyInfoPagesRequest({
  3870. this.name,
  3871. this.isValid,
  3872. int pageIndex = 0,
  3873. int pageSize = 0,
  3874. String? token,
  3875. }) : super(
  3876. pageIndex: pageIndex,
  3877. pageSize: pageSize,
  3878. token: token,
  3879. );
  3880. factory GetThirdPartyInfoPagesRequest.fromJson(Map<String, dynamic> map) {
  3881. return GetThirdPartyInfoPagesRequest(
  3882. name: map['Name'],
  3883. isValid: map['IsValid'],
  3884. pageIndex: map['PageIndex'],
  3885. pageSize: map['PageSize'],
  3886. token: map['Token'],
  3887. );
  3888. }
  3889. Map<String, dynamic> toJson() {
  3890. final map = super.toJson();
  3891. if(name != null)
  3892. map['Name'] = name;
  3893. if(isValid != null)
  3894. map['IsValid'] = isValid;
  3895. return map;
  3896. }
  3897. }
  3898. class GetUserPagesRequest extends PageRequest{
  3899. String? queryType;
  3900. String? keyword;
  3901. String? queryState;
  3902. GetUserPagesRequest({
  3903. this.queryType,
  3904. this.keyword,
  3905. this.queryState,
  3906. int pageIndex = 0,
  3907. int pageSize = 0,
  3908. String? token,
  3909. }) : super(
  3910. pageIndex: pageIndex,
  3911. pageSize: pageSize,
  3912. token: token,
  3913. );
  3914. factory GetUserPagesRequest.fromJson(Map<String, dynamic> map) {
  3915. return GetUserPagesRequest(
  3916. queryType: map['QueryType'],
  3917. keyword: map['Keyword'],
  3918. queryState: map['QueryState'],
  3919. pageIndex: map['PageIndex'],
  3920. pageSize: map['PageSize'],
  3921. token: map['Token'],
  3922. );
  3923. }
  3924. Map<String, dynamic> toJson() {
  3925. final map = super.toJson();
  3926. if(queryType != null)
  3927. map['QueryType'] = queryType;
  3928. if(keyword != null)
  3929. map['Keyword'] = keyword;
  3930. if(queryState != null)
  3931. map['QueryState'] = queryState;
  3932. return map;
  3933. }
  3934. }
  3935. class ImitateLoginRequest {
  3936. String? account;
  3937. String? password;
  3938. AccountType accountType;
  3939. ImitateLoginRequest({
  3940. this.account,
  3941. this.password,
  3942. this.accountType = AccountType.Admin,
  3943. });
  3944. factory ImitateLoginRequest.fromJson(Map<String, dynamic> map) {
  3945. return ImitateLoginRequest(
  3946. account: map['Account'],
  3947. password: map['Password'],
  3948. accountType: AccountType.values.firstWhere((e) => e.index == map['AccountType']),
  3949. );
  3950. }
  3951. Map<String, dynamic> toJson() {
  3952. final map = Map<String, dynamic>();
  3953. if(account != null)
  3954. map['Account'] = account;
  3955. if(password != null)
  3956. map['Password'] = password;
  3957. map['AccountType'] = accountType.index;
  3958. return map;
  3959. }
  3960. }
  3961. class ImitateLoginResult {
  3962. String? clientId;
  3963. ImitateLoginResult({
  3964. this.clientId,
  3965. });
  3966. factory ImitateLoginResult.fromJson(Map<String, dynamic> map) {
  3967. return ImitateLoginResult(
  3968. clientId: map['ClientId'],
  3969. );
  3970. }
  3971. Map<String, dynamic> toJson() {
  3972. final map = Map<String, dynamic>();
  3973. if(clientId != null)
  3974. map['ClientId'] = clientId;
  3975. return map;
  3976. }
  3977. }
  3978. class LoginRequest {
  3979. String? adminName;
  3980. String? password;
  3981. LoginRequest({
  3982. this.adminName,
  3983. this.password,
  3984. });
  3985. factory LoginRequest.fromJson(Map<String, dynamic> map) {
  3986. return LoginRequest(
  3987. adminName: map['AdminName'],
  3988. password: map['Password'],
  3989. );
  3990. }
  3991. Map<String, dynamic> toJson() {
  3992. final map = Map<String, dynamic>();
  3993. if(adminName != null)
  3994. map['AdminName'] = adminName;
  3995. if(password != null)
  3996. map['Password'] = password;
  3997. return map;
  3998. }
  3999. }
  4000. enum ProductStatusEnum {
  4001. SoldOut,
  4002. Putaway,
  4003. }
  4004. enum ProductTypeEnum {
  4005. Course,
  4006. Other,
  4007. }
  4008. class ManageCreateProductRequest extends TokenRequest{
  4009. String? name;
  4010. String? headImage;
  4011. double price;
  4012. ProductStatusEnum status;
  4013. ProductTypeEnum productType;
  4014. String? belongerCode;
  4015. String? relationInfo;
  4016. ManageCreateProductRequest({
  4017. this.name,
  4018. this.headImage,
  4019. this.price = 0,
  4020. this.status = ProductStatusEnum.SoldOut,
  4021. this.productType = ProductTypeEnum.Course,
  4022. this.belongerCode,
  4023. this.relationInfo,
  4024. String? token,
  4025. }) : super(
  4026. token: token,
  4027. );
  4028. factory ManageCreateProductRequest.fromJson(Map<String, dynamic> map) {
  4029. return ManageCreateProductRequest(
  4030. name: map['Name'],
  4031. headImage: map['HeadImage'],
  4032. price: double.parse(map['Price'].toString()),
  4033. status: ProductStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  4034. productType: ProductTypeEnum.values.firstWhere((e) => e.index == map['ProductType']),
  4035. belongerCode: map['BelongerCode'],
  4036. relationInfo: map['RelationInfo'],
  4037. token: map['Token'],
  4038. );
  4039. }
  4040. Map<String, dynamic> toJson() {
  4041. final map = super.toJson();
  4042. if(name != null)
  4043. map['Name'] = name;
  4044. if(headImage != null)
  4045. map['HeadImage'] = headImage;
  4046. map['Price'] = price;
  4047. map['Status'] = status.index;
  4048. map['ProductType'] = productType.index;
  4049. if(belongerCode != null)
  4050. map['BelongerCode'] = belongerCode;
  4051. if(relationInfo != null)
  4052. map['RelationInfo'] = relationInfo;
  4053. return map;
  4054. }
  4055. }
  4056. class ManageGetOrderDetailRequest extends TokenRequest{
  4057. String? orderCode;
  4058. ManageGetOrderDetailRequest({
  4059. this.orderCode,
  4060. String? token,
  4061. }) : super(
  4062. token: token,
  4063. );
  4064. factory ManageGetOrderDetailRequest.fromJson(Map<String, dynamic> map) {
  4065. return ManageGetOrderDetailRequest(
  4066. orderCode: map['OrderCode'],
  4067. token: map['Token'],
  4068. );
  4069. }
  4070. Map<String, dynamic> toJson() {
  4071. final map = super.toJson();
  4072. if(orderCode != null)
  4073. map['OrderCode'] = orderCode;
  4074. return map;
  4075. }
  4076. }
  4077. class ManageGetOrderPagesRequest extends PageRequest{
  4078. String? keyWord;
  4079. ManageGetOrderPagesRequest({
  4080. this.keyWord,
  4081. int pageIndex = 0,
  4082. int pageSize = 0,
  4083. String? token,
  4084. }) : super(
  4085. pageIndex: pageIndex,
  4086. pageSize: pageSize,
  4087. token: token,
  4088. );
  4089. factory ManageGetOrderPagesRequest.fromJson(Map<String, dynamic> map) {
  4090. return ManageGetOrderPagesRequest(
  4091. keyWord: map['KeyWord'],
  4092. pageIndex: map['PageIndex'],
  4093. pageSize: map['PageSize'],
  4094. token: map['Token'],
  4095. );
  4096. }
  4097. Map<String, dynamic> toJson() {
  4098. final map = super.toJson();
  4099. if(keyWord != null)
  4100. map['KeyWord'] = keyWord;
  4101. return map;
  4102. }
  4103. }
  4104. class ManageGetPaymentRecordsRequest extends PageRequest{
  4105. String? keyword;
  4106. ManageGetPaymentRecordsRequest({
  4107. this.keyword,
  4108. int pageIndex = 0,
  4109. int pageSize = 0,
  4110. String? token,
  4111. }) : super(
  4112. pageIndex: pageIndex,
  4113. pageSize: pageSize,
  4114. token: token,
  4115. );
  4116. factory ManageGetPaymentRecordsRequest.fromJson(Map<String, dynamic> map) {
  4117. return ManageGetPaymentRecordsRequest(
  4118. keyword: map['Keyword'],
  4119. pageIndex: map['PageIndex'],
  4120. pageSize: map['PageSize'],
  4121. token: map['Token'],
  4122. );
  4123. }
  4124. Map<String, dynamic> toJson() {
  4125. final map = super.toJson();
  4126. if(keyword != null)
  4127. map['Keyword'] = keyword;
  4128. return map;
  4129. }
  4130. }
  4131. class ManageUpdateProductRequest extends TokenRequest{
  4132. String? code;
  4133. String? name;
  4134. String? headImage;
  4135. double price;
  4136. ProductStatusEnum status;
  4137. ProductTypeEnum productType;
  4138. String? belongerCode;
  4139. String? relationInfo;
  4140. ManageUpdateProductRequest({
  4141. this.code,
  4142. this.name,
  4143. this.headImage,
  4144. this.price = 0,
  4145. this.status = ProductStatusEnum.SoldOut,
  4146. this.productType = ProductTypeEnum.Course,
  4147. this.belongerCode,
  4148. this.relationInfo,
  4149. String? token,
  4150. }) : super(
  4151. token: token,
  4152. );
  4153. factory ManageUpdateProductRequest.fromJson(Map<String, dynamic> map) {
  4154. return ManageUpdateProductRequest(
  4155. code: map['Code'],
  4156. name: map['Name'],
  4157. headImage: map['HeadImage'],
  4158. price: double.parse(map['Price'].toString()),
  4159. status: ProductStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  4160. productType: ProductTypeEnum.values.firstWhere((e) => e.index == map['ProductType']),
  4161. belongerCode: map['BelongerCode'],
  4162. relationInfo: map['RelationInfo'],
  4163. token: map['Token'],
  4164. );
  4165. }
  4166. Map<String, dynamic> toJson() {
  4167. final map = super.toJson();
  4168. if(code != null)
  4169. map['Code'] = code;
  4170. if(name != null)
  4171. map['Name'] = name;
  4172. if(headImage != null)
  4173. map['HeadImage'] = headImage;
  4174. map['Price'] = price;
  4175. map['Status'] = status.index;
  4176. map['ProductType'] = productType.index;
  4177. if(belongerCode != null)
  4178. map['BelongerCode'] = belongerCode;
  4179. if(relationInfo != null)
  4180. map['RelationInfo'] = relationInfo;
  4181. return map;
  4182. }
  4183. }
  4184. class BaseFeatureInfoDTO extends BaseDTO{
  4185. String? featureCode;
  4186. String? featureName;
  4187. String? fatherCode;
  4188. String? uniqueCode;
  4189. BaseFeatureInfoDTO({
  4190. this.featureCode,
  4191. this.featureName,
  4192. this.fatherCode,
  4193. this.uniqueCode,
  4194. DateTime? createTime,
  4195. DateTime? updateTime,
  4196. }) : super(
  4197. createTime: createTime,
  4198. updateTime: updateTime,
  4199. );
  4200. factory BaseFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  4201. return BaseFeatureInfoDTO(
  4202. featureCode: map['FeatureCode'],
  4203. featureName: map['FeatureName'],
  4204. fatherCode: map['FatherCode'],
  4205. uniqueCode: map['UniqueCode'],
  4206. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4207. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4208. );
  4209. }
  4210. Map<String, dynamic> toJson() {
  4211. final map = super.toJson();
  4212. if(featureCode != null)
  4213. map['FeatureCode'] = featureCode;
  4214. if(featureName != null)
  4215. map['FeatureName'] = featureName;
  4216. if(fatherCode != null)
  4217. map['FatherCode'] = fatherCode;
  4218. if(uniqueCode != null)
  4219. map['UniqueCode'] = uniqueCode;
  4220. return map;
  4221. }
  4222. }
  4223. class AdminFeatureInfoDTO extends BaseFeatureInfoDTO{
  4224. AdminFeatureInfoDTO({
  4225. String? featureCode,
  4226. String? featureName,
  4227. String? fatherCode,
  4228. String? uniqueCode,
  4229. DateTime? createTime,
  4230. DateTime? updateTime,
  4231. }) : super(
  4232. featureCode: featureCode,
  4233. featureName: featureName,
  4234. fatherCode: fatherCode,
  4235. uniqueCode: uniqueCode,
  4236. createTime: createTime,
  4237. updateTime: updateTime,
  4238. );
  4239. factory AdminFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  4240. return AdminFeatureInfoDTO(
  4241. featureCode: map['FeatureCode'],
  4242. featureName: map['FeatureName'],
  4243. fatherCode: map['FatherCode'],
  4244. uniqueCode: map['UniqueCode'],
  4245. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4246. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4247. );
  4248. }
  4249. Map<String, dynamic> toJson() {
  4250. final map = super.toJson();
  4251. return map;
  4252. }
  4253. }
  4254. class ModifyAdminFeatureRequest extends AdminFeatureInfoDTO{
  4255. String? token;
  4256. ModifyAdminFeatureRequest({
  4257. this.token,
  4258. String? featureCode,
  4259. String? featureName,
  4260. String? fatherCode,
  4261. String? uniqueCode,
  4262. DateTime? createTime,
  4263. DateTime? updateTime,
  4264. }) : super(
  4265. featureCode: featureCode,
  4266. featureName: featureName,
  4267. fatherCode: fatherCode,
  4268. uniqueCode: uniqueCode,
  4269. createTime: createTime,
  4270. updateTime: updateTime,
  4271. );
  4272. factory ModifyAdminFeatureRequest.fromJson(Map<String, dynamic> map) {
  4273. return ModifyAdminFeatureRequest(
  4274. token: map['Token'],
  4275. featureCode: map['FeatureCode'],
  4276. featureName: map['FeatureName'],
  4277. fatherCode: map['FatherCode'],
  4278. uniqueCode: map['UniqueCode'],
  4279. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4280. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4281. );
  4282. }
  4283. Map<String, dynamic> toJson() {
  4284. final map = super.toJson();
  4285. if(token != null)
  4286. map['Token'] = token;
  4287. return map;
  4288. }
  4289. }
  4290. class ModifyAdminPasswordRequest extends TokenRequest{
  4291. String? adminCode;
  4292. String? oldPassword;
  4293. String? newPassword;
  4294. ModifyAdminPasswordRequest({
  4295. this.adminCode,
  4296. this.oldPassword,
  4297. this.newPassword,
  4298. String? token,
  4299. }) : super(
  4300. token: token,
  4301. );
  4302. factory ModifyAdminPasswordRequest.fromJson(Map<String, dynamic> map) {
  4303. return ModifyAdminPasswordRequest(
  4304. adminCode: map['AdminCode'],
  4305. oldPassword: map['OldPassword'],
  4306. newPassword: map['NewPassword'],
  4307. token: map['Token'],
  4308. );
  4309. }
  4310. Map<String, dynamic> toJson() {
  4311. final map = super.toJson();
  4312. if(adminCode != null)
  4313. map['AdminCode'] = adminCode;
  4314. if(oldPassword != null)
  4315. map['OldPassword'] = oldPassword;
  4316. if(newPassword != null)
  4317. map['NewPassword'] = newPassword;
  4318. return map;
  4319. }
  4320. }
  4321. class ClearLogOperateDTO {
  4322. String? serverHost;
  4323. DateTime? lastClearTime;
  4324. DateTime? lastClearOperateTime;
  4325. ClearLogOperateDTO({
  4326. this.serverHost,
  4327. this.lastClearTime,
  4328. this.lastClearOperateTime,
  4329. });
  4330. factory ClearLogOperateDTO.fromJson(Map<String, dynamic> map) {
  4331. return ClearLogOperateDTO(
  4332. serverHost: map['ServerHost'],
  4333. lastClearTime: map['LastClearTime'] != null ? DateTime.parse(map['LastClearTime']) : null,
  4334. lastClearOperateTime: map['LastClearOperateTime'] != null ? DateTime.parse(map['LastClearOperateTime']) : null,
  4335. );
  4336. }
  4337. Map<String, dynamic> toJson() {
  4338. final map = Map<String, dynamic>();
  4339. if(serverHost != null)
  4340. map['ServerHost'] = serverHost;
  4341. if(lastClearTime != null)
  4342. map['LastClearTime'] = JsonRpcUtils.dateFormat(lastClearTime!);
  4343. if(lastClearOperateTime != null)
  4344. map['LastClearOperateTime'] = JsonRpcUtils.dateFormat(lastClearOperateTime!);
  4345. return map;
  4346. }
  4347. }
  4348. class AdminInfoDTO extends BaseDTO{
  4349. String? adminCode;
  4350. String? fatherCode;
  4351. String? adminName;
  4352. String? fullName;
  4353. String? secretPassword;
  4354. String? headImageToken;
  4355. String? licenseKey;
  4356. String? lastIP;
  4357. String? phone;
  4358. String? email;
  4359. List<String >? roleCodes;
  4360. LoginLockInfoDTO? loginLockInfo;
  4361. DateTime? passwordUpdateTime;
  4362. List<String >? passwordRecords;
  4363. List<ClearLogOperateDTO >? clearLogOperateList;
  4364. AdminInfoDTO({
  4365. this.adminCode,
  4366. this.fatherCode,
  4367. this.adminName,
  4368. this.fullName,
  4369. this.secretPassword,
  4370. this.headImageToken,
  4371. this.licenseKey,
  4372. this.lastIP,
  4373. this.phone,
  4374. this.email,
  4375. this.roleCodes,
  4376. this.loginLockInfo,
  4377. this.passwordUpdateTime,
  4378. this.passwordRecords,
  4379. this.clearLogOperateList,
  4380. DateTime? createTime,
  4381. DateTime? updateTime,
  4382. }) : super(
  4383. createTime: createTime,
  4384. updateTime: updateTime,
  4385. );
  4386. factory AdminInfoDTO.fromJson(Map<String, dynamic> map) {
  4387. return AdminInfoDTO(
  4388. adminCode: map['AdminCode'],
  4389. fatherCode: map['FatherCode'],
  4390. adminName: map['AdminName'],
  4391. fullName: map['FullName'],
  4392. secretPassword: map['SecretPassword'],
  4393. headImageToken: map['HeadImageToken'],
  4394. licenseKey: map['LicenseKey'],
  4395. lastIP: map['LastIP'],
  4396. phone: map['Phone'],
  4397. email: map['Email'],
  4398. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  4399. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  4400. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  4401. passwordRecords: map['PasswordRecords'] != null ? map['PasswordRecords'].cast<String>().toList() : null,
  4402. clearLogOperateList: map['ClearLogOperateList'] != null ? (map['ClearLogOperateList'] as List).map((e)=>ClearLogOperateDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4403. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4404. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4405. );
  4406. }
  4407. Map<String, dynamic> toJson() {
  4408. final map = super.toJson();
  4409. if(adminCode != null)
  4410. map['AdminCode'] = adminCode;
  4411. if(fatherCode != null)
  4412. map['FatherCode'] = fatherCode;
  4413. if(adminName != null)
  4414. map['AdminName'] = adminName;
  4415. if(fullName != null)
  4416. map['FullName'] = fullName;
  4417. if(secretPassword != null)
  4418. map['SecretPassword'] = secretPassword;
  4419. if(headImageToken != null)
  4420. map['HeadImageToken'] = headImageToken;
  4421. if(licenseKey != null)
  4422. map['LicenseKey'] = licenseKey;
  4423. if(lastIP != null)
  4424. map['LastIP'] = lastIP;
  4425. if(phone != null)
  4426. map['Phone'] = phone;
  4427. if(email != null)
  4428. map['Email'] = email;
  4429. if(roleCodes != null)
  4430. map['RoleCodes'] = roleCodes;
  4431. if(loginLockInfo != null)
  4432. map['LoginLockInfo'] = loginLockInfo;
  4433. if(passwordUpdateTime != null)
  4434. map['PasswordUpdateTime'] = JsonRpcUtils.dateFormat(passwordUpdateTime!);
  4435. if(passwordRecords != null)
  4436. map['PasswordRecords'] = passwordRecords;
  4437. if(clearLogOperateList != null)
  4438. map['ClearLogOperateList'] = clearLogOperateList;
  4439. return map;
  4440. }
  4441. }
  4442. class ModifyAdminRequest extends AdminInfoDTO{
  4443. String? token;
  4444. ModifyAdminRequest({
  4445. this.token,
  4446. String? adminCode,
  4447. String? fatherCode,
  4448. String? adminName,
  4449. String? fullName,
  4450. String? secretPassword,
  4451. String? headImageToken,
  4452. String? licenseKey,
  4453. String? lastIP,
  4454. String? phone,
  4455. String? email,
  4456. List<String >? roleCodes,
  4457. LoginLockInfoDTO? loginLockInfo,
  4458. DateTime? passwordUpdateTime,
  4459. List<String >? passwordRecords,
  4460. List<ClearLogOperateDTO >? clearLogOperateList,
  4461. DateTime? createTime,
  4462. DateTime? updateTime,
  4463. }) : super(
  4464. adminCode: adminCode,
  4465. fatherCode: fatherCode,
  4466. adminName: adminName,
  4467. fullName: fullName,
  4468. secretPassword: secretPassword,
  4469. headImageToken: headImageToken,
  4470. licenseKey: licenseKey,
  4471. lastIP: lastIP,
  4472. phone: phone,
  4473. email: email,
  4474. roleCodes: roleCodes,
  4475. loginLockInfo: loginLockInfo,
  4476. passwordUpdateTime: passwordUpdateTime,
  4477. passwordRecords: passwordRecords,
  4478. clearLogOperateList: clearLogOperateList,
  4479. createTime: createTime,
  4480. updateTime: updateTime,
  4481. );
  4482. factory ModifyAdminRequest.fromJson(Map<String, dynamic> map) {
  4483. return ModifyAdminRequest(
  4484. token: map['Token'],
  4485. adminCode: map['AdminCode'],
  4486. fatherCode: map['FatherCode'],
  4487. adminName: map['AdminName'],
  4488. fullName: map['FullName'],
  4489. secretPassword: map['SecretPassword'],
  4490. headImageToken: map['HeadImageToken'],
  4491. licenseKey: map['LicenseKey'],
  4492. lastIP: map['LastIP'],
  4493. phone: map['Phone'],
  4494. email: map['Email'],
  4495. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  4496. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  4497. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  4498. passwordRecords: map['PasswordRecords'] != null ? map['PasswordRecords'].cast<String>().toList() : null,
  4499. clearLogOperateList: map['ClearLogOperateList'] != null ? (map['ClearLogOperateList'] as List).map((e)=>ClearLogOperateDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4500. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4501. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4502. );
  4503. }
  4504. Map<String, dynamic> toJson() {
  4505. final map = super.toJson();
  4506. if(token != null)
  4507. map['Token'] = token;
  4508. return map;
  4509. }
  4510. }
  4511. class AdminRoleDTO extends BaseRoleDTO{
  4512. String? adminGroupCode;
  4513. int adminNum;
  4514. AdminRoleDTO({
  4515. this.adminGroupCode,
  4516. this.adminNum = 0,
  4517. String? roleCode,
  4518. String? roleName,
  4519. String? description,
  4520. List<UserRoleLanguageConfigDTO >? languageConfigs,
  4521. DateTime? createTime,
  4522. DateTime? updateTime,
  4523. }) : super(
  4524. roleCode: roleCode,
  4525. roleName: roleName,
  4526. description: description,
  4527. languageConfigs: languageConfigs,
  4528. createTime: createTime,
  4529. updateTime: updateTime,
  4530. );
  4531. factory AdminRoleDTO.fromJson(Map<String, dynamic> map) {
  4532. return AdminRoleDTO(
  4533. adminGroupCode: map['AdminGroupCode'],
  4534. adminNum: map['AdminNum'],
  4535. roleCode: map['RoleCode'],
  4536. roleName: map['RoleName'],
  4537. description: map['Description'],
  4538. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4539. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4540. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4541. );
  4542. }
  4543. Map<String, dynamic> toJson() {
  4544. final map = super.toJson();
  4545. if(adminGroupCode != null)
  4546. map['AdminGroupCode'] = adminGroupCode;
  4547. map['AdminNum'] = adminNum;
  4548. return map;
  4549. }
  4550. }
  4551. class ModifyAdminRoleInfoRequest extends AdminRoleDTO{
  4552. String? token;
  4553. List<String >? featuresCodeList;
  4554. ModifyAdminRoleInfoRequest({
  4555. this.token,
  4556. this.featuresCodeList,
  4557. String? adminGroupCode,
  4558. int adminNum = 0,
  4559. String? roleCode,
  4560. String? roleName,
  4561. String? description,
  4562. List<UserRoleLanguageConfigDTO >? languageConfigs,
  4563. DateTime? createTime,
  4564. DateTime? updateTime,
  4565. }) : super(
  4566. adminGroupCode: adminGroupCode,
  4567. adminNum: adminNum,
  4568. roleCode: roleCode,
  4569. roleName: roleName,
  4570. description: description,
  4571. languageConfigs: languageConfigs,
  4572. createTime: createTime,
  4573. updateTime: updateTime,
  4574. );
  4575. factory ModifyAdminRoleInfoRequest.fromJson(Map<String, dynamic> map) {
  4576. return ModifyAdminRoleInfoRequest(
  4577. token: map['Token'],
  4578. featuresCodeList: map['FeaturesCodeList'] != null ? map['FeaturesCodeList'].cast<String>().toList() : null,
  4579. adminGroupCode: map['AdminGroupCode'],
  4580. adminNum: map['AdminNum'],
  4581. roleCode: map['RoleCode'],
  4582. roleName: map['RoleName'],
  4583. description: map['Description'],
  4584. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4585. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4586. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4587. );
  4588. }
  4589. Map<String, dynamic> toJson() {
  4590. final map = super.toJson();
  4591. if(token != null)
  4592. map['Token'] = token;
  4593. if(featuresCodeList != null)
  4594. map['FeaturesCodeList'] = featuresCodeList;
  4595. return map;
  4596. }
  4597. }
  4598. class ModifyAdminsRolesRequest {
  4599. String? token;
  4600. List<String >? adminCodes;
  4601. List<String >? adminRoleCodes;
  4602. ModifyAdminsRolesRequest({
  4603. this.token,
  4604. this.adminCodes,
  4605. this.adminRoleCodes,
  4606. });
  4607. factory ModifyAdminsRolesRequest.fromJson(Map<String, dynamic> map) {
  4608. return ModifyAdminsRolesRequest(
  4609. token: map['Token'],
  4610. adminCodes: map['AdminCodes'] != null ? map['AdminCodes'].cast<String>().toList() : null,
  4611. adminRoleCodes: map['AdminRoleCodes'] != null ? map['AdminRoleCodes'].cast<String>().toList() : null,
  4612. );
  4613. }
  4614. Map<String, dynamic> toJson() {
  4615. final map = Map<String, dynamic>();
  4616. if(token != null)
  4617. map['Token'] = token;
  4618. if(adminCodes != null)
  4619. map['AdminCodes'] = adminCodes;
  4620. if(adminRoleCodes != null)
  4621. map['AdminRoleCodes'] = adminRoleCodes;
  4622. return map;
  4623. }
  4624. }
  4625. class ModifyDeviceRequest2 extends DeviceInfoDTO{
  4626. String? token;
  4627. ModifyDeviceRequest2({
  4628. this.token,
  4629. String? deviceCode,
  4630. String? serialNumber,
  4631. String? password,
  4632. String? name,
  4633. String? description,
  4634. String? deviceModel,
  4635. String? deviceType,
  4636. String? headPicUrl,
  4637. String? deviceSoftwareVersion,
  4638. String? sDKSoftwareVersion,
  4639. String? organizationCode,
  4640. String? departmentCode,
  4641. String? shortCode,
  4642. bool isAutoShared = false,
  4643. bool isEncryptedShow = false,
  4644. DateTime? lastLoginTime,
  4645. String? systemVersion,
  4646. String? cPUModel,
  4647. String? systemLanguage,
  4648. List<String >? diagnosisModules,
  4649. List<String >? reportPosterCodes,
  4650. bool mergedChannel = false,
  4651. int mergedVideoOutputWidth = 0,
  4652. int mergedVideoOutputHeight = 0,
  4653. List<VideoDeviceDTO >? videoDeviceInfos,
  4654. DownloadModeSettingEnum downloadModeSetting = DownloadModeSettingEnum.Auto,
  4655. bool liveOpened = false,
  4656. DateTime? createTime,
  4657. DateTime? updateTime,
  4658. }) : super(
  4659. deviceCode: deviceCode,
  4660. serialNumber: serialNumber,
  4661. password: password,
  4662. name: name,
  4663. description: description,
  4664. deviceModel: deviceModel,
  4665. deviceType: deviceType,
  4666. headPicUrl: headPicUrl,
  4667. deviceSoftwareVersion: deviceSoftwareVersion,
  4668. sDKSoftwareVersion: sDKSoftwareVersion,
  4669. organizationCode: organizationCode,
  4670. departmentCode: departmentCode,
  4671. shortCode: shortCode,
  4672. isAutoShared: isAutoShared,
  4673. isEncryptedShow: isEncryptedShow,
  4674. lastLoginTime: lastLoginTime,
  4675. systemVersion: systemVersion,
  4676. cPUModel: cPUModel,
  4677. systemLanguage: systemLanguage,
  4678. diagnosisModules: diagnosisModules,
  4679. reportPosterCodes: reportPosterCodes,
  4680. mergedChannel: mergedChannel,
  4681. mergedVideoOutputWidth: mergedVideoOutputWidth,
  4682. mergedVideoOutputHeight: mergedVideoOutputHeight,
  4683. videoDeviceInfos: videoDeviceInfos,
  4684. downloadModeSetting: downloadModeSetting,
  4685. liveOpened: liveOpened,
  4686. createTime: createTime,
  4687. updateTime: updateTime,
  4688. );
  4689. factory ModifyDeviceRequest2.fromJson(Map<String, dynamic> map) {
  4690. return ModifyDeviceRequest2(
  4691. token: map['Token'],
  4692. deviceCode: map['DeviceCode'],
  4693. serialNumber: map['SerialNumber'],
  4694. password: map['Password'],
  4695. name: map['Name'],
  4696. description: map['Description'],
  4697. deviceModel: map['DeviceModel'],
  4698. deviceType: map['DeviceType'],
  4699. headPicUrl: map['HeadPicUrl'],
  4700. deviceSoftwareVersion: map['DeviceSoftwareVersion'],
  4701. sDKSoftwareVersion: map['SDKSoftwareVersion'],
  4702. organizationCode: map['OrganizationCode'],
  4703. departmentCode: map['DepartmentCode'],
  4704. shortCode: map['ShortCode'],
  4705. isAutoShared: map['IsAutoShared'],
  4706. isEncryptedShow: map['IsEncryptedShow'],
  4707. lastLoginTime: map['LastLoginTime'] != null ? DateTime.parse(map['LastLoginTime']) : null,
  4708. systemVersion: map['SystemVersion'],
  4709. cPUModel: map['CPUModel'],
  4710. systemLanguage: map['SystemLanguage'],
  4711. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  4712. reportPosterCodes: map['ReportPosterCodes'] != null ? map['ReportPosterCodes'].cast<String>().toList() : null,
  4713. mergedChannel: map['MergedChannel'],
  4714. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  4715. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  4716. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4717. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  4718. liveOpened: map['LiveOpened'],
  4719. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4720. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4721. );
  4722. }
  4723. Map<String, dynamic> toJson() {
  4724. final map = super.toJson();
  4725. if(token != null)
  4726. map['Token'] = token;
  4727. return map;
  4728. }
  4729. }
  4730. class ModifyDeviceDownloadModeRequest extends TokenRequest{
  4731. String? deviceCode;
  4732. DownloadModeSettingEnum downloadModeSetting;
  4733. ModifyDeviceDownloadModeRequest({
  4734. this.deviceCode,
  4735. this.downloadModeSetting = DownloadModeSettingEnum.Auto,
  4736. String? token,
  4737. }) : super(
  4738. token: token,
  4739. );
  4740. factory ModifyDeviceDownloadModeRequest.fromJson(Map<String, dynamic> map) {
  4741. return ModifyDeviceDownloadModeRequest(
  4742. deviceCode: map['DeviceCode'],
  4743. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  4744. token: map['Token'],
  4745. );
  4746. }
  4747. Map<String, dynamic> toJson() {
  4748. final map = super.toJson();
  4749. if(deviceCode != null)
  4750. map['DeviceCode'] = deviceCode;
  4751. map['DownloadModeSetting'] = downloadModeSetting.index;
  4752. return map;
  4753. }
  4754. }
  4755. class ModifyDeviceMergedVideoSizeRequest extends TokenRequest{
  4756. String? deviceCode;
  4757. bool mergedChannel;
  4758. int mergedVideoOutputWidth;
  4759. int mergedVideoOutputHeight;
  4760. List<VideoDeviceDTO >? videoDeviceInfos;
  4761. ModifyDeviceMergedVideoSizeRequest({
  4762. this.deviceCode,
  4763. this.mergedChannel = false,
  4764. this.mergedVideoOutputWidth = 0,
  4765. this.mergedVideoOutputHeight = 0,
  4766. this.videoDeviceInfos,
  4767. String? token,
  4768. }) : super(
  4769. token: token,
  4770. );
  4771. factory ModifyDeviceMergedVideoSizeRequest.fromJson(Map<String, dynamic> map) {
  4772. return ModifyDeviceMergedVideoSizeRequest(
  4773. deviceCode: map['DeviceCode'],
  4774. mergedChannel: map['MergedChannel'],
  4775. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  4776. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  4777. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4778. token: map['Token'],
  4779. );
  4780. }
  4781. Map<String, dynamic> toJson() {
  4782. final map = super.toJson();
  4783. if(deviceCode != null)
  4784. map['DeviceCode'] = deviceCode;
  4785. map['MergedChannel'] = mergedChannel;
  4786. map['MergedVideoOutputWidth'] = mergedVideoOutputWidth;
  4787. map['MergedVideoOutputHeight'] = mergedVideoOutputHeight;
  4788. if(videoDeviceInfos != null)
  4789. map['VideoDeviceInfos'] = videoDeviceInfos;
  4790. return map;
  4791. }
  4792. }
  4793. class DeviceModelClass {
  4794. String? deviceModelCode;
  4795. String? deviceModelName;
  4796. DeviceModelClass({
  4797. this.deviceModelCode,
  4798. this.deviceModelName,
  4799. });
  4800. factory DeviceModelClass.fromJson(Map<String, dynamic> map) {
  4801. return DeviceModelClass(
  4802. deviceModelCode: map['DeviceModelCode'],
  4803. deviceModelName: map['DeviceModelName'],
  4804. );
  4805. }
  4806. Map<String, dynamic> toJson() {
  4807. final map = Map<String, dynamic>();
  4808. if(deviceModelCode != null)
  4809. map['DeviceModelCode'] = deviceModelCode;
  4810. if(deviceModelName != null)
  4811. map['DeviceModelName'] = deviceModelName;
  4812. return map;
  4813. }
  4814. }
  4815. class ModifyDeviceTypeRequest extends TokenRequest{
  4816. String? deviceTypeCode;
  4817. List<DictionaryLanguageConfigDTO >? languageConfigs;
  4818. List<DeviceModelClass >? deviceModelList;
  4819. ModifyDeviceTypeRequest({
  4820. this.deviceTypeCode,
  4821. this.languageConfigs,
  4822. this.deviceModelList,
  4823. String? token,
  4824. }) : super(
  4825. token: token,
  4826. );
  4827. factory ModifyDeviceTypeRequest.fromJson(Map<String, dynamic> map) {
  4828. return ModifyDeviceTypeRequest(
  4829. deviceTypeCode: map['DeviceTypeCode'],
  4830. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>DictionaryLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4831. deviceModelList: map['DeviceModelList'] != null ? (map['DeviceModelList'] as List).map((e)=>DeviceModelClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  4832. token: map['Token'],
  4833. );
  4834. }
  4835. Map<String, dynamic> toJson() {
  4836. final map = super.toJson();
  4837. if(deviceTypeCode != null)
  4838. map['DeviceTypeCode'] = deviceTypeCode;
  4839. if(languageConfigs != null)
  4840. map['LanguageConfigs'] = languageConfigs;
  4841. if(deviceModelList != null)
  4842. map['DeviceModelList'] = deviceModelList;
  4843. return map;
  4844. }
  4845. }
  4846. class ModifyDiagnosisModuleEnableStateRequest extends TokenRequest{
  4847. List<String >? diagnosisModules;
  4848. bool enabled;
  4849. ModifyDiagnosisModuleEnableStateRequest({
  4850. this.diagnosisModules,
  4851. this.enabled = false,
  4852. String? token,
  4853. }) : super(
  4854. token: token,
  4855. );
  4856. factory ModifyDiagnosisModuleEnableStateRequest.fromJson(Map<String, dynamic> map) {
  4857. return ModifyDiagnosisModuleEnableStateRequest(
  4858. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  4859. enabled: map['Enabled'],
  4860. token: map['Token'],
  4861. );
  4862. }
  4863. Map<String, dynamic> toJson() {
  4864. final map = super.toJson();
  4865. if(diagnosisModules != null)
  4866. map['DiagnosisModules'] = diagnosisModules;
  4867. map['Enabled'] = enabled;
  4868. return map;
  4869. }
  4870. }
  4871. class ModifyDiagnosisModulesRequest extends TokenRequest{
  4872. List<String >? diagnosisModules;
  4873. ModifyDiagnosisModulesRequest({
  4874. this.diagnosisModules,
  4875. String? token,
  4876. }) : super(
  4877. token: token,
  4878. );
  4879. factory ModifyDiagnosisModulesRequest.fromJson(Map<String, dynamic> map) {
  4880. return ModifyDiagnosisModulesRequest(
  4881. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  4882. token: map['Token'],
  4883. );
  4884. }
  4885. Map<String, dynamic> toJson() {
  4886. final map = super.toJson();
  4887. if(diagnosisModules != null)
  4888. map['DiagnosisModules'] = diagnosisModules;
  4889. return map;
  4890. }
  4891. }
  4892. class ModifyOrganizationCustomSettingRequest extends TokenRequest{
  4893. String? langugeKey;
  4894. String? settingModule;
  4895. String? settingJson;
  4896. String? organizationCode;
  4897. ModifyOrganizationCustomSettingRequest({
  4898. this.langugeKey,
  4899. this.settingModule,
  4900. this.settingJson,
  4901. this.organizationCode,
  4902. String? token,
  4903. }) : super(
  4904. token: token,
  4905. );
  4906. factory ModifyOrganizationCustomSettingRequest.fromJson(Map<String, dynamic> map) {
  4907. return ModifyOrganizationCustomSettingRequest(
  4908. langugeKey: map['LangugeKey'],
  4909. settingModule: map['SettingModule'],
  4910. settingJson: map['SettingJson'],
  4911. organizationCode: map['OrganizationCode'],
  4912. token: map['Token'],
  4913. );
  4914. }
  4915. Map<String, dynamic> toJson() {
  4916. final map = super.toJson();
  4917. if(langugeKey != null)
  4918. map['LangugeKey'] = langugeKey;
  4919. if(settingModule != null)
  4920. map['SettingModule'] = settingModule;
  4921. if(settingJson != null)
  4922. map['SettingJson'] = settingJson;
  4923. if(organizationCode != null)
  4924. map['OrganizationCode'] = organizationCode;
  4925. return map;
  4926. }
  4927. }
  4928. class ModifyOrganizationDiagnosisModulesRequest extends TokenRequest{
  4929. String? organizationCode;
  4930. List<String >? diagnosisModules;
  4931. ModifyOrganizationDiagnosisModulesRequest({
  4932. this.organizationCode,
  4933. this.diagnosisModules,
  4934. String? token,
  4935. }) : super(
  4936. token: token,
  4937. );
  4938. factory ModifyOrganizationDiagnosisModulesRequest.fromJson(Map<String, dynamic> map) {
  4939. return ModifyOrganizationDiagnosisModulesRequest(
  4940. organizationCode: map['OrganizationCode'],
  4941. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  4942. token: map['Token'],
  4943. );
  4944. }
  4945. Map<String, dynamic> toJson() {
  4946. final map = super.toJson();
  4947. if(organizationCode != null)
  4948. map['OrganizationCode'] = organizationCode;
  4949. if(diagnosisModules != null)
  4950. map['DiagnosisModules'] = diagnosisModules;
  4951. return map;
  4952. }
  4953. }
  4954. class ModifyOrganizationDirectorsRequest extends TokenRequest{
  4955. String? organizationCode;
  4956. List<String >? directors;
  4957. ModifyOrganizationDirectorsRequest({
  4958. this.organizationCode,
  4959. this.directors,
  4960. String? token,
  4961. }) : super(
  4962. token: token,
  4963. );
  4964. factory ModifyOrganizationDirectorsRequest.fromJson(Map<String, dynamic> map) {
  4965. return ModifyOrganizationDirectorsRequest(
  4966. organizationCode: map['OrganizationCode'],
  4967. directors: map['Directors'] != null ? map['Directors'].cast<String>().toList() : null,
  4968. token: map['Token'],
  4969. );
  4970. }
  4971. Map<String, dynamic> toJson() {
  4972. final map = super.toJson();
  4973. if(organizationCode != null)
  4974. map['OrganizationCode'] = organizationCode;
  4975. if(directors != null)
  4976. map['Directors'] = directors;
  4977. return map;
  4978. }
  4979. }
  4980. class ModifyOrganizationRequest extends OrganizationDTO{
  4981. String? token;
  4982. ModifyOrganizationRequest({
  4983. this.token,
  4984. String? description,
  4985. String? rootCode,
  4986. OrganizationTypeEnum organizationType = OrganizationTypeEnum.Corporation,
  4987. List<String >? authorityGroups,
  4988. String? nautica,
  4989. OrganizationStateEnum state = OrganizationStateEnum.WaitAudit,
  4990. List<String >? directors,
  4991. List<String >? assignedAdmins,
  4992. String? patientSettingJson,
  4993. String? examSettingJson,
  4994. String? consultationSettingJson,
  4995. String? patientSettingVersion,
  4996. String? examSettingVersion,
  4997. String? consultationSettingVersion,
  4998. String? parentOrganizationName,
  4999. String? regionCode,
  5000. String? parentCode,
  5001. String? logoUrl,
  5002. OrganizationPatientTypeEnum patientType = OrganizationPatientTypeEnum.Person,
  5003. bool isinvented = false,
  5004. List<SettingDTOClass >? settings,
  5005. List<String >? diagnosisModules,
  5006. bool isEncryptedShow = false,
  5007. double referralLimitHours = 0,
  5008. List<String >? referralOrganizationCodes,
  5009. List<ReferralOrganizationDTO >? referralOrganizations,
  5010. String? organizationCode,
  5011. String? organizationName,
  5012. DateTime? createTime,
  5013. DateTime? updateTime,
  5014. }) : super(
  5015. description: description,
  5016. rootCode: rootCode,
  5017. organizationType: organizationType,
  5018. authorityGroups: authorityGroups,
  5019. nautica: nautica,
  5020. state: state,
  5021. directors: directors,
  5022. assignedAdmins: assignedAdmins,
  5023. patientSettingJson: patientSettingJson,
  5024. examSettingJson: examSettingJson,
  5025. consultationSettingJson: consultationSettingJson,
  5026. patientSettingVersion: patientSettingVersion,
  5027. examSettingVersion: examSettingVersion,
  5028. consultationSettingVersion: consultationSettingVersion,
  5029. parentOrganizationName: parentOrganizationName,
  5030. regionCode: regionCode,
  5031. parentCode: parentCode,
  5032. logoUrl: logoUrl,
  5033. patientType: patientType,
  5034. isinvented: isinvented,
  5035. settings: settings,
  5036. diagnosisModules: diagnosisModules,
  5037. isEncryptedShow: isEncryptedShow,
  5038. referralLimitHours: referralLimitHours,
  5039. referralOrganizationCodes: referralOrganizationCodes,
  5040. referralOrganizations: referralOrganizations,
  5041. organizationCode: organizationCode,
  5042. organizationName: organizationName,
  5043. createTime: createTime,
  5044. updateTime: updateTime,
  5045. );
  5046. factory ModifyOrganizationRequest.fromJson(Map<String, dynamic> map) {
  5047. return ModifyOrganizationRequest(
  5048. token: map['Token'],
  5049. description: map['Description'],
  5050. rootCode: map['RootCode'],
  5051. organizationType: OrganizationTypeEnum.values.firstWhere((e) => e.index == map['OrganizationType']),
  5052. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  5053. nautica: map['Nautica'],
  5054. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  5055. directors: map['Directors'] != null ? map['Directors'].cast<String>().toList() : null,
  5056. assignedAdmins: map['AssignedAdmins'] != null ? map['AssignedAdmins'].cast<String>().toList() : null,
  5057. patientSettingJson: map['PatientSettingJson'],
  5058. examSettingJson: map['ExamSettingJson'],
  5059. consultationSettingJson: map['ConsultationSettingJson'],
  5060. patientSettingVersion: map['PatientSettingVersion'],
  5061. examSettingVersion: map['ExamSettingVersion'],
  5062. consultationSettingVersion: map['ConsultationSettingVersion'],
  5063. parentOrganizationName: map['ParentOrganizationName'],
  5064. regionCode: map['RegionCode'],
  5065. parentCode: map['ParentCode'],
  5066. logoUrl: map['LogoUrl'],
  5067. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  5068. isinvented: map['Isinvented'],
  5069. settings: map['Settings'] != null ? (map['Settings'] as List).map((e)=>SettingDTOClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  5070. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  5071. isEncryptedShow: map['IsEncryptedShow'],
  5072. referralLimitHours: double.parse(map['ReferralLimitHours'].toString()),
  5073. referralOrganizationCodes: map['ReferralOrganizationCodes'] != null ? map['ReferralOrganizationCodes'].cast<String>().toList() : null,
  5074. referralOrganizations: map['ReferralOrganizations'] != null ? (map['ReferralOrganizations'] as List).map((e)=>ReferralOrganizationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  5075. organizationCode: map['OrganizationCode'],
  5076. organizationName: map['OrganizationName'],
  5077. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5078. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5079. );
  5080. }
  5081. Map<String, dynamic> toJson() {
  5082. final map = super.toJson();
  5083. if(token != null)
  5084. map['Token'] = token;
  5085. return map;
  5086. }
  5087. }
  5088. class ModifyOrganizationSettingRequest extends TokenRequest{
  5089. OrganizationSettingTypeEnum settingType;
  5090. String? settingJson;
  5091. String? organizationCode;
  5092. String? cMSTemplateCode;
  5093. ModifyOrganizationSettingRequest({
  5094. this.settingType = OrganizationSettingTypeEnum.Patient,
  5095. this.settingJson,
  5096. this.organizationCode,
  5097. this.cMSTemplateCode,
  5098. String? token,
  5099. }) : super(
  5100. token: token,
  5101. );
  5102. factory ModifyOrganizationSettingRequest.fromJson(Map<String, dynamic> map) {
  5103. return ModifyOrganizationSettingRequest(
  5104. settingType: OrganizationSettingTypeEnum.values.firstWhere((e) => e.index == map['SettingType']),
  5105. settingJson: map['SettingJson'],
  5106. organizationCode: map['OrganizationCode'],
  5107. cMSTemplateCode: map['CMSTemplateCode'],
  5108. token: map['Token'],
  5109. );
  5110. }
  5111. Map<String, dynamic> toJson() {
  5112. final map = super.toJson();
  5113. map['SettingType'] = settingType.index;
  5114. if(settingJson != null)
  5115. map['SettingJson'] = settingJson;
  5116. if(organizationCode != null)
  5117. map['OrganizationCode'] = organizationCode;
  5118. if(cMSTemplateCode != null)
  5119. map['CMSTemplateCode'] = cMSTemplateCode;
  5120. return map;
  5121. }
  5122. }
  5123. class ConsultationBaseInfoItem {
  5124. String? name;
  5125. bool isDefult;
  5126. bool isShow;
  5127. bool required;
  5128. ConsultationBaseInfoItem({
  5129. this.name,
  5130. this.isDefult = false,
  5131. this.isShow = false,
  5132. this.required = false,
  5133. });
  5134. factory ConsultationBaseInfoItem.fromJson(Map<String, dynamic> map) {
  5135. return ConsultationBaseInfoItem(
  5136. name: map['Name'],
  5137. isDefult: map['IsDefult'],
  5138. isShow: map['IsShow'],
  5139. required: map['Required'],
  5140. );
  5141. }
  5142. Map<String, dynamic> toJson() {
  5143. final map = Map<String, dynamic>();
  5144. if(name != null)
  5145. map['Name'] = name;
  5146. map['IsDefult'] = isDefult;
  5147. map['IsShow'] = isShow;
  5148. map['Required'] = required;
  5149. return map;
  5150. }
  5151. }
  5152. class ModifycConsultationBaseInfoSettingRequest extends TokenRequest{
  5153. List<ConsultationBaseInfoItem >? consultationBaseInfoList;
  5154. String? organizationCode;
  5155. ModifycConsultationBaseInfoSettingRequest({
  5156. this.consultationBaseInfoList,
  5157. this.organizationCode,
  5158. String? token,
  5159. }) : super(
  5160. token: token,
  5161. );
  5162. factory ModifycConsultationBaseInfoSettingRequest.fromJson(Map<String, dynamic> map) {
  5163. return ModifycConsultationBaseInfoSettingRequest(
  5164. consultationBaseInfoList: map['ConsultationBaseInfoList'] != null ? (map['ConsultationBaseInfoList'] as List).map((e)=>ConsultationBaseInfoItem.fromJson(e as Map<String,dynamic>)).toList() : null,
  5165. organizationCode: map['OrganizationCode'],
  5166. token: map['Token'],
  5167. );
  5168. }
  5169. Map<String, dynamic> toJson() {
  5170. final map = super.toJson();
  5171. if(consultationBaseInfoList != null)
  5172. map['ConsultationBaseInfoList'] = consultationBaseInfoList;
  5173. if(organizationCode != null)
  5174. map['OrganizationCode'] = organizationCode;
  5175. return map;
  5176. }
  5177. }
  5178. class ModifyOrganizationStateRequest extends TokenRequest{
  5179. String? organizationCode;
  5180. OrganizationStateEnum state;
  5181. ModifyOrganizationStateRequest({
  5182. this.organizationCode,
  5183. this.state = OrganizationStateEnum.WaitAudit,
  5184. String? token,
  5185. }) : super(
  5186. token: token,
  5187. );
  5188. factory ModifyOrganizationStateRequest.fromJson(Map<String, dynamic> map) {
  5189. return ModifyOrganizationStateRequest(
  5190. organizationCode: map['OrganizationCode'],
  5191. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  5192. token: map['Token'],
  5193. );
  5194. }
  5195. Map<String, dynamic> toJson() {
  5196. final map = super.toJson();
  5197. if(organizationCode != null)
  5198. map['OrganizationCode'] = organizationCode;
  5199. map['State'] = state.index;
  5200. return map;
  5201. }
  5202. }
  5203. class ModifyReferralRecordSettingRequest extends TokenRequest{
  5204. double limitHours;
  5205. ModifyReferralRecordSettingRequest({
  5206. this.limitHours = 0,
  5207. String? token,
  5208. }) : super(
  5209. token: token,
  5210. );
  5211. factory ModifyReferralRecordSettingRequest.fromJson(Map<String, dynamic> map) {
  5212. return ModifyReferralRecordSettingRequest(
  5213. limitHours: double.parse(map['LimitHours'].toString()),
  5214. token: map['Token'],
  5215. );
  5216. }
  5217. Map<String, dynamic> toJson() {
  5218. final map = super.toJson();
  5219. map['LimitHours'] = limitHours;
  5220. return map;
  5221. }
  5222. }
  5223. class ModifyReportPosterDevicesRequest extends TokenRequest{
  5224. String? reportPosterCode;
  5225. List<String >? deviceIds;
  5226. ModifyReportPosterDevicesRequest({
  5227. this.reportPosterCode,
  5228. this.deviceIds,
  5229. String? token,
  5230. }) : super(
  5231. token: token,
  5232. );
  5233. factory ModifyReportPosterDevicesRequest.fromJson(Map<String, dynamic> map) {
  5234. return ModifyReportPosterDevicesRequest(
  5235. reportPosterCode: map['ReportPosterCode'],
  5236. deviceIds: map['DeviceIds'] != null ? map['DeviceIds'].cast<String>().toList() : null,
  5237. token: map['Token'],
  5238. );
  5239. }
  5240. Map<String, dynamic> toJson() {
  5241. final map = super.toJson();
  5242. if(reportPosterCode != null)
  5243. map['ReportPosterCode'] = reportPosterCode;
  5244. if(deviceIds != null)
  5245. map['DeviceIds'] = deviceIds;
  5246. return map;
  5247. }
  5248. }
  5249. class ModifyRoleInfoRequest extends RoleDTO{
  5250. String? token;
  5251. List<String >? featuresCodeList;
  5252. ModifyRoleInfoRequest({
  5253. this.token,
  5254. this.featuresCodeList,
  5255. RoleShowTypeEnum roleShowType = RoleShowTypeEnum.NotShow,
  5256. String? iConUrl,
  5257. String? colorStart,
  5258. String? colorEnd,
  5259. RoleQualificationEnum roleQualification = RoleQualificationEnum.NoNeed,
  5260. String? userGroupCode,
  5261. RoleShowTypeEnum fieldShowType = RoleShowTypeEnum.NotShow,
  5262. List<String >? fieldList,
  5263. String? roleCode,
  5264. String? roleName,
  5265. String? description,
  5266. List<UserRoleLanguageConfigDTO >? languageConfigs,
  5267. DateTime? createTime,
  5268. DateTime? updateTime,
  5269. }) : super(
  5270. roleShowType: roleShowType,
  5271. iConUrl: iConUrl,
  5272. colorStart: colorStart,
  5273. colorEnd: colorEnd,
  5274. roleQualification: roleQualification,
  5275. userGroupCode: userGroupCode,
  5276. fieldShowType: fieldShowType,
  5277. fieldList: fieldList,
  5278. roleCode: roleCode,
  5279. roleName: roleName,
  5280. description: description,
  5281. languageConfigs: languageConfigs,
  5282. createTime: createTime,
  5283. updateTime: updateTime,
  5284. );
  5285. factory ModifyRoleInfoRequest.fromJson(Map<String, dynamic> map) {
  5286. return ModifyRoleInfoRequest(
  5287. token: map['Token'],
  5288. featuresCodeList: map['FeaturesCodeList'] != null ? map['FeaturesCodeList'].cast<String>().toList() : null,
  5289. roleShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['RoleShowType']),
  5290. iConUrl: map['IConUrl'],
  5291. colorStart: map['ColorStart'],
  5292. colorEnd: map['ColorEnd'],
  5293. roleQualification: RoleQualificationEnum.values.firstWhere((e) => e.index == map['RoleQualification']),
  5294. userGroupCode: map['UserGroupCode'],
  5295. fieldShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['FieldShowType']),
  5296. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  5297. roleCode: map['RoleCode'],
  5298. roleName: map['RoleName'],
  5299. description: map['Description'],
  5300. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  5301. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5302. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5303. );
  5304. }
  5305. Map<String, dynamic> toJson() {
  5306. final map = super.toJson();
  5307. if(token != null)
  5308. map['Token'] = token;
  5309. if(featuresCodeList != null)
  5310. map['FeaturesCodeList'] = featuresCodeList;
  5311. return map;
  5312. }
  5313. }
  5314. class ThirdPartyInfoDTO extends BaseDTO{
  5315. String? code;
  5316. String? name;
  5317. String? contactPersonName;
  5318. String? contactPhone;
  5319. List<String >? allowedInterfaces;
  5320. bool isValid;
  5321. String? token;
  5322. ThirdPartyInfoDTO({
  5323. this.code,
  5324. this.name,
  5325. this.contactPersonName,
  5326. this.contactPhone,
  5327. this.allowedInterfaces,
  5328. this.isValid = false,
  5329. this.token,
  5330. DateTime? createTime,
  5331. DateTime? updateTime,
  5332. }) : super(
  5333. createTime: createTime,
  5334. updateTime: updateTime,
  5335. );
  5336. factory ThirdPartyInfoDTO.fromJson(Map<String, dynamic> map) {
  5337. return ThirdPartyInfoDTO(
  5338. code: map['Code'],
  5339. name: map['Name'],
  5340. contactPersonName: map['ContactPersonName'],
  5341. contactPhone: map['ContactPhone'],
  5342. allowedInterfaces: map['AllowedInterfaces'] != null ? map['AllowedInterfaces'].cast<String>().toList() : null,
  5343. isValid: map['IsValid'],
  5344. token: map['Token'],
  5345. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5346. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5347. );
  5348. }
  5349. Map<String, dynamic> toJson() {
  5350. final map = super.toJson();
  5351. if(code != null)
  5352. map['Code'] = code;
  5353. if(name != null)
  5354. map['Name'] = name;
  5355. if(contactPersonName != null)
  5356. map['ContactPersonName'] = contactPersonName;
  5357. if(contactPhone != null)
  5358. map['ContactPhone'] = contactPhone;
  5359. if(allowedInterfaces != null)
  5360. map['AllowedInterfaces'] = allowedInterfaces;
  5361. map['IsValid'] = isValid;
  5362. if(token != null)
  5363. map['Token'] = token;
  5364. return map;
  5365. }
  5366. }
  5367. class ModifyThirdPartyInfoRequest extends ThirdPartyInfoDTO{
  5368. ModifyThirdPartyInfoRequest({
  5369. String? token,
  5370. String? code,
  5371. String? name,
  5372. String? contactPersonName,
  5373. String? contactPhone,
  5374. List<String >? allowedInterfaces,
  5375. bool isValid = false,
  5376. DateTime? createTime,
  5377. DateTime? updateTime,
  5378. }) : super(
  5379. code: code,
  5380. name: name,
  5381. contactPersonName: contactPersonName,
  5382. contactPhone: contactPhone,
  5383. allowedInterfaces: allowedInterfaces,
  5384. isValid: isValid,
  5385. token: token,
  5386. createTime: createTime,
  5387. updateTime: updateTime,
  5388. );
  5389. factory ModifyThirdPartyInfoRequest.fromJson(Map<String, dynamic> map) {
  5390. return ModifyThirdPartyInfoRequest(
  5391. token: map['Token'],
  5392. code: map['Code'],
  5393. name: map['Name'],
  5394. contactPersonName: map['ContactPersonName'],
  5395. contactPhone: map['ContactPhone'],
  5396. allowedInterfaces: map['AllowedInterfaces'] != null ? map['AllowedInterfaces'].cast<String>().toList() : null,
  5397. isValid: map['IsValid'],
  5398. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5399. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5400. );
  5401. }
  5402. Map<String, dynamic> toJson() {
  5403. final map = super.toJson();
  5404. return map;
  5405. }
  5406. }
  5407. class UserFeatureInfoDTO extends BaseFeatureInfoDTO{
  5408. UserFeatureInfoDTO({
  5409. String? featureCode,
  5410. String? featureName,
  5411. String? fatherCode,
  5412. String? uniqueCode,
  5413. DateTime? createTime,
  5414. DateTime? updateTime,
  5415. }) : super(
  5416. featureCode: featureCode,
  5417. featureName: featureName,
  5418. fatherCode: fatherCode,
  5419. uniqueCode: uniqueCode,
  5420. createTime: createTime,
  5421. updateTime: updateTime,
  5422. );
  5423. factory UserFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  5424. return UserFeatureInfoDTO(
  5425. featureCode: map['FeatureCode'],
  5426. featureName: map['FeatureName'],
  5427. fatherCode: map['FatherCode'],
  5428. uniqueCode: map['UniqueCode'],
  5429. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5430. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5431. );
  5432. }
  5433. Map<String, dynamic> toJson() {
  5434. final map = super.toJson();
  5435. return map;
  5436. }
  5437. }
  5438. class ModifyUserFeatureRequest extends UserFeatureInfoDTO{
  5439. String? token;
  5440. ModifyUserFeatureRequest({
  5441. this.token,
  5442. String? featureCode,
  5443. String? featureName,
  5444. String? fatherCode,
  5445. String? uniqueCode,
  5446. DateTime? createTime,
  5447. DateTime? updateTime,
  5448. }) : super(
  5449. featureCode: featureCode,
  5450. featureName: featureName,
  5451. fatherCode: fatherCode,
  5452. uniqueCode: uniqueCode,
  5453. createTime: createTime,
  5454. updateTime: updateTime,
  5455. );
  5456. factory ModifyUserFeatureRequest.fromJson(Map<String, dynamic> map) {
  5457. return ModifyUserFeatureRequest(
  5458. token: map['Token'],
  5459. featureCode: map['FeatureCode'],
  5460. featureName: map['FeatureName'],
  5461. fatherCode: map['FatherCode'],
  5462. uniqueCode: map['UniqueCode'],
  5463. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5464. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5465. );
  5466. }
  5467. Map<String, dynamic> toJson() {
  5468. final map = super.toJson();
  5469. if(token != null)
  5470. map['Token'] = token;
  5471. return map;
  5472. }
  5473. }
  5474. enum ManagementUserInfoStateEnum {
  5475. Nonactivated,
  5476. Activated,
  5477. Locked,
  5478. }
  5479. class ManageUserInfoDTO extends UserDTO{
  5480. String? roleName;
  5481. String? departmentName;
  5482. String? hospitalName;
  5483. String? identityApplyCode;
  5484. List<String >? identityCard;
  5485. List<String >? licenseCard;
  5486. String? identityApplyRoleCode;
  5487. String? identityApplyRoleName;
  5488. ManagementUserInfoStateEnum managementUserState;
  5489. ManageUserInfoDTO({
  5490. this.roleName,
  5491. this.departmentName,
  5492. this.hospitalName,
  5493. this.identityApplyCode,
  5494. this.identityCard,
  5495. this.licenseCard,
  5496. this.identityApplyRoleCode,
  5497. this.identityApplyRoleName,
  5498. bool isBatchExportDiagnoseData = false,
  5499. List<String >? fieldList,
  5500. this.managementUserState = ManagementUserInfoStateEnum.Nonactivated,
  5501. String? phone,
  5502. String? email,
  5503. String? nickName,
  5504. String? fullName,
  5505. String? organizationCode,
  5506. String? organizationName,
  5507. String? rootOrganizationCode,
  5508. String? rootOrganizationName,
  5509. List<String >? authorityGroups,
  5510. List<String >? bindDevices,
  5511. String? lastIP,
  5512. int logintimes = 0,
  5513. UserInfoStateEnum userState = UserInfoStateEnum.Nonactivated,
  5514. List<String >? roleCodes,
  5515. List<String >? rankCodes,
  5516. List<String >? positionCodes,
  5517. ApplyStateEnum applyState = ApplyStateEnum.NotApply,
  5518. String? rankName,
  5519. String? positionName,
  5520. bool isDirector = false,
  5521. List<String >? deletePatientCodes,
  5522. String? bindAssistantUserCode,
  5523. String? bindAssistantDoctorUserCode,
  5524. LoginLockInfoDTO? loginLockInfo,
  5525. String? signature,
  5526. String? language,
  5527. bool enableReportLabel = false,
  5528. List<AssociatedInfoDTO >? associatedInfos,
  5529. String? commonPlatformUserId,
  5530. String? bindEmergencyDeviceCode,
  5531. String? userCode,
  5532. String? userName,
  5533. String? headImageUrl,
  5534. DateTime? createTime,
  5535. DateTime? updateTime,
  5536. }) : super(
  5537. phone: phone,
  5538. email: email,
  5539. nickName: nickName,
  5540. fullName: fullName,
  5541. organizationCode: organizationCode,
  5542. organizationName: organizationName,
  5543. rootOrganizationCode: rootOrganizationCode,
  5544. rootOrganizationName: rootOrganizationName,
  5545. authorityGroups: authorityGroups,
  5546. bindDevices: bindDevices,
  5547. lastIP: lastIP,
  5548. logintimes: logintimes,
  5549. userState: userState,
  5550. roleCodes: roleCodes,
  5551. rankCodes: rankCodes,
  5552. positionCodes: positionCodes,
  5553. applyState: applyState,
  5554. rankName: rankName,
  5555. positionName: positionName,
  5556. isDirector: isDirector,
  5557. fieldList: fieldList,
  5558. deletePatientCodes: deletePatientCodes,
  5559. isBatchExportDiagnoseData: isBatchExportDiagnoseData,
  5560. bindAssistantUserCode: bindAssistantUserCode,
  5561. bindAssistantDoctorUserCode: bindAssistantDoctorUserCode,
  5562. loginLockInfo: loginLockInfo,
  5563. signature: signature,
  5564. language: language,
  5565. enableReportLabel: enableReportLabel,
  5566. associatedInfos: associatedInfos,
  5567. commonPlatformUserId: commonPlatformUserId,
  5568. bindEmergencyDeviceCode: bindEmergencyDeviceCode,
  5569. userCode: userCode,
  5570. userName: userName,
  5571. headImageUrl: headImageUrl,
  5572. createTime: createTime,
  5573. updateTime: updateTime,
  5574. );
  5575. factory ManageUserInfoDTO.fromJson(Map<String, dynamic> map) {
  5576. return ManageUserInfoDTO(
  5577. roleName: map['RoleName'],
  5578. departmentName: map['DepartmentName'],
  5579. hospitalName: map['HospitalName'],
  5580. identityApplyCode: map['IdentityApplyCode'],
  5581. identityCard: map['IdentityCard'] != null ? map['IdentityCard'].cast<String>().toList() : null,
  5582. licenseCard: map['LicenseCard'] != null ? map['LicenseCard'].cast<String>().toList() : null,
  5583. identityApplyRoleCode: map['IdentityApplyRoleCode'],
  5584. identityApplyRoleName: map['IdentityApplyRoleName'],
  5585. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  5586. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  5587. managementUserState: ManagementUserInfoStateEnum.values.firstWhere((e) => e.index == map['ManagementUserState']),
  5588. phone: map['Phone'],
  5589. email: map['Email'],
  5590. nickName: map['NickName'],
  5591. fullName: map['FullName'],
  5592. organizationCode: map['OrganizationCode'],
  5593. organizationName: map['OrganizationName'],
  5594. rootOrganizationCode: map['RootOrganizationCode'],
  5595. rootOrganizationName: map['RootOrganizationName'],
  5596. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  5597. bindDevices: map['BindDevices'] != null ? map['BindDevices'].cast<String>().toList() : null,
  5598. lastIP: map['LastIP'],
  5599. logintimes: map['Logintimes'],
  5600. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  5601. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  5602. rankCodes: map['RankCodes'] != null ? map['RankCodes'].cast<String>().toList() : null,
  5603. positionCodes: map['PositionCodes'] != null ? map['PositionCodes'].cast<String>().toList() : null,
  5604. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  5605. rankName: map['RankName'],
  5606. positionName: map['PositionName'],
  5607. isDirector: map['IsDirector'],
  5608. deletePatientCodes: map['DeletePatientCodes'] != null ? map['DeletePatientCodes'].cast<String>().toList() : null,
  5609. bindAssistantUserCode: map['BindAssistantUserCode'],
  5610. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  5611. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  5612. signature: map['Signature'],
  5613. language: map['Language'],
  5614. enableReportLabel: map['EnableReportLabel'],
  5615. associatedInfos: map['AssociatedInfos'] != null ? (map['AssociatedInfos'] as List).map((e)=>AssociatedInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  5616. commonPlatformUserId: map['CommonPlatformUserId'],
  5617. bindEmergencyDeviceCode: map['BindEmergencyDeviceCode'],
  5618. userCode: map['UserCode'],
  5619. userName: map['UserName'],
  5620. headImageUrl: map['HeadImageUrl'],
  5621. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5622. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5623. );
  5624. }
  5625. Map<String, dynamic> toJson() {
  5626. final map = super.toJson();
  5627. if(roleName != null)
  5628. map['RoleName'] = roleName;
  5629. if(departmentName != null)
  5630. map['DepartmentName'] = departmentName;
  5631. if(hospitalName != null)
  5632. map['HospitalName'] = hospitalName;
  5633. if(identityApplyCode != null)
  5634. map['IdentityApplyCode'] = identityApplyCode;
  5635. if(identityCard != null)
  5636. map['IdentityCard'] = identityCard;
  5637. if(licenseCard != null)
  5638. map['LicenseCard'] = licenseCard;
  5639. if(identityApplyRoleCode != null)
  5640. map['IdentityApplyRoleCode'] = identityApplyRoleCode;
  5641. if(identityApplyRoleName != null)
  5642. map['IdentityApplyRoleName'] = identityApplyRoleName;
  5643. map['ManagementUserState'] = managementUserState.index;
  5644. return map;
  5645. }
  5646. }
  5647. class ModifyUserRequest extends ManageUserInfoDTO{
  5648. String? token;
  5649. ModifyUserRequest({
  5650. this.token,
  5651. String? roleName,
  5652. String? departmentName,
  5653. String? hospitalName,
  5654. String? identityApplyCode,
  5655. List<String >? identityCard,
  5656. List<String >? licenseCard,
  5657. String? identityApplyRoleCode,
  5658. String? identityApplyRoleName,
  5659. bool isBatchExportDiagnoseData = false,
  5660. List<String >? fieldList,
  5661. ManagementUserInfoStateEnum managementUserState = ManagementUserInfoStateEnum.Nonactivated,
  5662. String? phone,
  5663. String? email,
  5664. String? nickName,
  5665. String? fullName,
  5666. String? organizationCode,
  5667. String? organizationName,
  5668. String? rootOrganizationCode,
  5669. String? rootOrganizationName,
  5670. List<String >? authorityGroups,
  5671. List<String >? bindDevices,
  5672. String? lastIP,
  5673. int logintimes = 0,
  5674. UserInfoStateEnum userState = UserInfoStateEnum.Nonactivated,
  5675. List<String >? roleCodes,
  5676. List<String >? rankCodes,
  5677. List<String >? positionCodes,
  5678. ApplyStateEnum applyState = ApplyStateEnum.NotApply,
  5679. String? rankName,
  5680. String? positionName,
  5681. bool isDirector = false,
  5682. List<String >? deletePatientCodes,
  5683. String? bindAssistantUserCode,
  5684. String? bindAssistantDoctorUserCode,
  5685. LoginLockInfoDTO? loginLockInfo,
  5686. String? signature,
  5687. String? language,
  5688. bool enableReportLabel = false,
  5689. List<AssociatedInfoDTO >? associatedInfos,
  5690. String? commonPlatformUserId,
  5691. String? bindEmergencyDeviceCode,
  5692. String? userCode,
  5693. String? userName,
  5694. String? headImageUrl,
  5695. DateTime? createTime,
  5696. DateTime? updateTime,
  5697. }) : super(
  5698. roleName: roleName,
  5699. departmentName: departmentName,
  5700. hospitalName: hospitalName,
  5701. identityApplyCode: identityApplyCode,
  5702. identityCard: identityCard,
  5703. licenseCard: licenseCard,
  5704. identityApplyRoleCode: identityApplyRoleCode,
  5705. identityApplyRoleName: identityApplyRoleName,
  5706. isBatchExportDiagnoseData: isBatchExportDiagnoseData,
  5707. fieldList: fieldList,
  5708. managementUserState: managementUserState,
  5709. phone: phone,
  5710. email: email,
  5711. nickName: nickName,
  5712. fullName: fullName,
  5713. organizationCode: organizationCode,
  5714. organizationName: organizationName,
  5715. rootOrganizationCode: rootOrganizationCode,
  5716. rootOrganizationName: rootOrganizationName,
  5717. authorityGroups: authorityGroups,
  5718. bindDevices: bindDevices,
  5719. lastIP: lastIP,
  5720. logintimes: logintimes,
  5721. userState: userState,
  5722. roleCodes: roleCodes,
  5723. rankCodes: rankCodes,
  5724. positionCodes: positionCodes,
  5725. applyState: applyState,
  5726. rankName: rankName,
  5727. positionName: positionName,
  5728. isDirector: isDirector,
  5729. deletePatientCodes: deletePatientCodes,
  5730. bindAssistantUserCode: bindAssistantUserCode,
  5731. bindAssistantDoctorUserCode: bindAssistantDoctorUserCode,
  5732. loginLockInfo: loginLockInfo,
  5733. signature: signature,
  5734. language: language,
  5735. enableReportLabel: enableReportLabel,
  5736. associatedInfos: associatedInfos,
  5737. commonPlatformUserId: commonPlatformUserId,
  5738. bindEmergencyDeviceCode: bindEmergencyDeviceCode,
  5739. userCode: userCode,
  5740. userName: userName,
  5741. headImageUrl: headImageUrl,
  5742. createTime: createTime,
  5743. updateTime: updateTime,
  5744. );
  5745. factory ModifyUserRequest.fromJson(Map<String, dynamic> map) {
  5746. return ModifyUserRequest(
  5747. token: map['Token'],
  5748. roleName: map['RoleName'],
  5749. departmentName: map['DepartmentName'],
  5750. hospitalName: map['HospitalName'],
  5751. identityApplyCode: map['IdentityApplyCode'],
  5752. identityCard: map['IdentityCard'] != null ? map['IdentityCard'].cast<String>().toList() : null,
  5753. licenseCard: map['LicenseCard'] != null ? map['LicenseCard'].cast<String>().toList() : null,
  5754. identityApplyRoleCode: map['IdentityApplyRoleCode'],
  5755. identityApplyRoleName: map['IdentityApplyRoleName'],
  5756. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  5757. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  5758. managementUserState: ManagementUserInfoStateEnum.values.firstWhere((e) => e.index == map['ManagementUserState']),
  5759. phone: map['Phone'],
  5760. email: map['Email'],
  5761. nickName: map['NickName'],
  5762. fullName: map['FullName'],
  5763. organizationCode: map['OrganizationCode'],
  5764. organizationName: map['OrganizationName'],
  5765. rootOrganizationCode: map['RootOrganizationCode'],
  5766. rootOrganizationName: map['RootOrganizationName'],
  5767. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  5768. bindDevices: map['BindDevices'] != null ? map['BindDevices'].cast<String>().toList() : null,
  5769. lastIP: map['LastIP'],
  5770. logintimes: map['Logintimes'],
  5771. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  5772. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  5773. rankCodes: map['RankCodes'] != null ? map['RankCodes'].cast<String>().toList() : null,
  5774. positionCodes: map['PositionCodes'] != null ? map['PositionCodes'].cast<String>().toList() : null,
  5775. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  5776. rankName: map['RankName'],
  5777. positionName: map['PositionName'],
  5778. isDirector: map['IsDirector'],
  5779. deletePatientCodes: map['DeletePatientCodes'] != null ? map['DeletePatientCodes'].cast<String>().toList() : null,
  5780. bindAssistantUserCode: map['BindAssistantUserCode'],
  5781. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  5782. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  5783. signature: map['Signature'],
  5784. language: map['Language'],
  5785. enableReportLabel: map['EnableReportLabel'],
  5786. associatedInfos: map['AssociatedInfos'] != null ? (map['AssociatedInfos'] as List).map((e)=>AssociatedInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  5787. commonPlatformUserId: map['CommonPlatformUserId'],
  5788. bindEmergencyDeviceCode: map['BindEmergencyDeviceCode'],
  5789. userCode: map['UserCode'],
  5790. userName: map['UserName'],
  5791. headImageUrl: map['HeadImageUrl'],
  5792. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5793. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5794. );
  5795. }
  5796. Map<String, dynamic> toJson() {
  5797. final map = super.toJson();
  5798. if(token != null)
  5799. map['Token'] = token;
  5800. return map;
  5801. }
  5802. }
  5803. class PublishReportTemplateRequest extends TokenRequest{
  5804. String? reportTemplateCode;
  5805. PublishReportTemplateRequest({
  5806. this.reportTemplateCode,
  5807. String? token,
  5808. }) : super(
  5809. token: token,
  5810. );
  5811. factory PublishReportTemplateRequest.fromJson(Map<String, dynamic> map) {
  5812. return PublishReportTemplateRequest(
  5813. reportTemplateCode: map['ReportTemplateCode'],
  5814. token: map['Token'],
  5815. );
  5816. }
  5817. Map<String, dynamic> toJson() {
  5818. final map = super.toJson();
  5819. if(reportTemplateCode != null)
  5820. map['ReportTemplateCode'] = reportTemplateCode;
  5821. return map;
  5822. }
  5823. }
  5824. class PublishThesaurusRequest extends TokenRequest{
  5825. String? thesaurusCode;
  5826. PublishThesaurusRequest({
  5827. this.thesaurusCode,
  5828. String? token,
  5829. }) : super(
  5830. token: token,
  5831. );
  5832. factory PublishThesaurusRequest.fromJson(Map<String, dynamic> map) {
  5833. return PublishThesaurusRequest(
  5834. thesaurusCode: map['ThesaurusCode'],
  5835. token: map['Token'],
  5836. );
  5837. }
  5838. Map<String, dynamic> toJson() {
  5839. final map = super.toJson();
  5840. if(thesaurusCode != null)
  5841. map['ThesaurusCode'] = thesaurusCode;
  5842. return map;
  5843. }
  5844. }
  5845. class QueryAnnouncementPageRequest extends PageRequest{
  5846. AnnouncementTypeEnum announcementType;
  5847. AnnouncementStatusEnum announcementStatus;
  5848. String? keyword;
  5849. DateTime? startTime;
  5850. DateTime? endTime;
  5851. QueryAnnouncementPageRequest({
  5852. this.announcementType = AnnouncementTypeEnum.Broadcast,
  5853. this.announcementStatus = AnnouncementStatusEnum.Released,
  5854. this.keyword,
  5855. this.startTime,
  5856. this.endTime,
  5857. int pageIndex = 0,
  5858. int pageSize = 0,
  5859. String? token,
  5860. }) : super(
  5861. pageIndex: pageIndex,
  5862. pageSize: pageSize,
  5863. token: token,
  5864. );
  5865. factory QueryAnnouncementPageRequest.fromJson(Map<String, dynamic> map) {
  5866. return QueryAnnouncementPageRequest(
  5867. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  5868. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  5869. keyword: map['Keyword'],
  5870. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  5871. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  5872. pageIndex: map['PageIndex'],
  5873. pageSize: map['PageSize'],
  5874. token: map['Token'],
  5875. );
  5876. }
  5877. Map<String, dynamic> toJson() {
  5878. final map = super.toJson();
  5879. map['AnnouncementType'] = announcementType.index;
  5880. map['AnnouncementStatus'] = announcementStatus.index;
  5881. if(keyword != null)
  5882. map['Keyword'] = keyword;
  5883. if(startTime != null)
  5884. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  5885. if(endTime != null)
  5886. map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
  5887. return map;
  5888. }
  5889. }
  5890. class QueryDeviceModelBindNumRequest extends TokenRequest{
  5891. String? deviceModelCode;
  5892. QueryDeviceModelBindNumRequest({
  5893. this.deviceModelCode,
  5894. String? token,
  5895. }) : super(
  5896. token: token,
  5897. );
  5898. factory QueryDeviceModelBindNumRequest.fromJson(Map<String, dynamic> map) {
  5899. return QueryDeviceModelBindNumRequest(
  5900. deviceModelCode: map['DeviceModelCode'],
  5901. token: map['Token'],
  5902. );
  5903. }
  5904. Map<String, dynamic> toJson() {
  5905. final map = super.toJson();
  5906. if(deviceModelCode != null)
  5907. map['DeviceModelCode'] = deviceModelCode;
  5908. return map;
  5909. }
  5910. }
  5911. class QueryRoleAdminNumRequest extends TokenRequest{
  5912. String? adminRoleCode;
  5913. QueryRoleAdminNumRequest({
  5914. this.adminRoleCode,
  5915. String? token,
  5916. }) : super(
  5917. token: token,
  5918. );
  5919. factory QueryRoleAdminNumRequest.fromJson(Map<String, dynamic> map) {
  5920. return QueryRoleAdminNumRequest(
  5921. adminRoleCode: map['AdminRoleCode'],
  5922. token: map['Token'],
  5923. );
  5924. }
  5925. Map<String, dynamic> toJson() {
  5926. final map = super.toJson();
  5927. if(adminRoleCode != null)
  5928. map['AdminRoleCode'] = adminRoleCode;
  5929. return map;
  5930. }
  5931. }
  5932. class QueryRoleUserNumRequest extends TokenRequest{
  5933. String? roleCode;
  5934. QueryRoleUserNumRequest({
  5935. this.roleCode,
  5936. String? token,
  5937. }) : super(
  5938. token: token,
  5939. );
  5940. factory QueryRoleUserNumRequest.fromJson(Map<String, dynamic> map) {
  5941. return QueryRoleUserNumRequest(
  5942. roleCode: map['RoleCode'],
  5943. token: map['Token'],
  5944. );
  5945. }
  5946. Map<String, dynamic> toJson() {
  5947. final map = super.toJson();
  5948. if(roleCode != null)
  5949. map['RoleCode'] = roleCode;
  5950. return map;
  5951. }
  5952. }
  5953. class RejectIdentityApplyRequest extends TokenRequest{
  5954. String? identityApplyCode;
  5955. String? rejectReason;
  5956. RejectIdentityApplyRequest({
  5957. this.identityApplyCode,
  5958. this.rejectReason,
  5959. String? token,
  5960. }) : super(
  5961. token: token,
  5962. );
  5963. factory RejectIdentityApplyRequest.fromJson(Map<String, dynamic> map) {
  5964. return RejectIdentityApplyRequest(
  5965. identityApplyCode: map['IdentityApplyCode'],
  5966. rejectReason: map['RejectReason'],
  5967. token: map['Token'],
  5968. );
  5969. }
  5970. Map<String, dynamic> toJson() {
  5971. final map = super.toJson();
  5972. if(identityApplyCode != null)
  5973. map['IdentityApplyCode'] = identityApplyCode;
  5974. if(rejectReason != null)
  5975. map['RejectReason'] = rejectReason;
  5976. return map;
  5977. }
  5978. }
  5979. class RemoveAdminRequest extends TokenRequest{
  5980. String? adminCode;
  5981. RemoveAdminRequest({
  5982. this.adminCode,
  5983. String? token,
  5984. }) : super(
  5985. token: token,
  5986. );
  5987. factory RemoveAdminRequest.fromJson(Map<String, dynamic> map) {
  5988. return RemoveAdminRequest(
  5989. adminCode: map['AdminCode'],
  5990. token: map['Token'],
  5991. );
  5992. }
  5993. Map<String, dynamic> toJson() {
  5994. final map = super.toJson();
  5995. if(adminCode != null)
  5996. map['AdminCode'] = adminCode;
  5997. return map;
  5998. }
  5999. }
  6000. class RemoveOrganizationRequest extends TokenRequest{
  6001. String? organizationCode;
  6002. RemoveOrganizationRequest({
  6003. this.organizationCode,
  6004. String? token,
  6005. }) : super(
  6006. token: token,
  6007. );
  6008. factory RemoveOrganizationRequest.fromJson(Map<String, dynamic> map) {
  6009. return RemoveOrganizationRequest(
  6010. organizationCode: map['OrganizationCode'],
  6011. token: map['Token'],
  6012. );
  6013. }
  6014. Map<String, dynamic> toJson() {
  6015. final map = super.toJson();
  6016. if(organizationCode != null)
  6017. map['OrganizationCode'] = organizationCode;
  6018. return map;
  6019. }
  6020. }
  6021. class RemoveReportLabelRequest extends TokenRequest{
  6022. String? reportLabelCode;
  6023. RemoveReportLabelRequest({
  6024. this.reportLabelCode,
  6025. String? token,
  6026. }) : super(
  6027. token: token,
  6028. );
  6029. factory RemoveReportLabelRequest.fromJson(Map<String, dynamic> map) {
  6030. return RemoveReportLabelRequest(
  6031. reportLabelCode: map['ReportLabelCode'],
  6032. token: map['Token'],
  6033. );
  6034. }
  6035. Map<String, dynamic> toJson() {
  6036. final map = super.toJson();
  6037. if(reportLabelCode != null)
  6038. map['ReportLabelCode'] = reportLabelCode;
  6039. return map;
  6040. }
  6041. }
  6042. class RemoveReportPosterRequest extends TokenRequest{
  6043. String? reportPosterCode;
  6044. RemoveReportPosterRequest({
  6045. this.reportPosterCode,
  6046. String? token,
  6047. }) : super(
  6048. token: token,
  6049. );
  6050. factory RemoveReportPosterRequest.fromJson(Map<String, dynamic> map) {
  6051. return RemoveReportPosterRequest(
  6052. reportPosterCode: map['ReportPosterCode'],
  6053. token: map['Token'],
  6054. );
  6055. }
  6056. Map<String, dynamic> toJson() {
  6057. final map = super.toJson();
  6058. if(reportPosterCode != null)
  6059. map['ReportPosterCode'] = reportPosterCode;
  6060. return map;
  6061. }
  6062. }
  6063. class RemoveUserRequest extends TokenRequest{
  6064. String? userCode;
  6065. RemoveUserRequest({
  6066. this.userCode,
  6067. String? token,
  6068. }) : super(
  6069. token: token,
  6070. );
  6071. factory RemoveUserRequest.fromJson(Map<String, dynamic> map) {
  6072. return RemoveUserRequest(
  6073. userCode: map['UserCode'],
  6074. token: map['Token'],
  6075. );
  6076. }
  6077. Map<String, dynamic> toJson() {
  6078. final map = super.toJson();
  6079. if(userCode != null)
  6080. map['UserCode'] = userCode;
  6081. return map;
  6082. }
  6083. }
  6084. class UnlockAccountRequest extends TokenRequest{
  6085. String? userCode;
  6086. UnlockAccountRequest({
  6087. this.userCode,
  6088. String? token,
  6089. }) : super(
  6090. token: token,
  6091. );
  6092. factory UnlockAccountRequest.fromJson(Map<String, dynamic> map) {
  6093. return UnlockAccountRequest(
  6094. userCode: map['UserCode'],
  6095. token: map['Token'],
  6096. );
  6097. }
  6098. Map<String, dynamic> toJson() {
  6099. final map = super.toJson();
  6100. if(userCode != null)
  6101. map['UserCode'] = userCode;
  6102. return map;
  6103. }
  6104. }
  6105. class ResetUserPasswordRequest extends TokenRequest{
  6106. String? userCode;
  6107. String? passWord;
  6108. ResetUserPasswordRequest({
  6109. this.userCode,
  6110. this.passWord,
  6111. String? token,
  6112. }) : super(
  6113. token: token,
  6114. );
  6115. factory ResetUserPasswordRequest.fromJson(Map<String, dynamic> map) {
  6116. return ResetUserPasswordRequest(
  6117. userCode: map['UserCode'],
  6118. passWord: map['PassWord'],
  6119. token: map['Token'],
  6120. );
  6121. }
  6122. Map<String, dynamic> toJson() {
  6123. final map = super.toJson();
  6124. if(userCode != null)
  6125. map['UserCode'] = userCode;
  6126. if(passWord != null)
  6127. map['PassWord'] = passWord;
  6128. return map;
  6129. }
  6130. }
  6131. class RetryPushReportRecordsRequest extends TokenRequest{
  6132. List<String >? codes;
  6133. RetryPushReportRecordsRequest({
  6134. this.codes,
  6135. String? token,
  6136. }) : super(
  6137. token: token,
  6138. );
  6139. factory RetryPushReportRecordsRequest.fromJson(Map<String, dynamic> map) {
  6140. return RetryPushReportRecordsRequest(
  6141. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  6142. token: map['Token'],
  6143. );
  6144. }
  6145. Map<String, dynamic> toJson() {
  6146. final map = super.toJson();
  6147. if(codes != null)
  6148. map['Codes'] = codes;
  6149. return map;
  6150. }
  6151. }
  6152. class SaveCMSTemplateDetailRequest extends TokenRequest{
  6153. String? cMSTemplateCode;
  6154. String? cMSTemplateName;
  6155. CMSTemplateStatusTypeEnum cMSTemplateStateType;
  6156. String? cMSTemplateJson;
  6157. bool isDefault;
  6158. SaveCMSTemplateDetailRequest({
  6159. this.cMSTemplateCode,
  6160. this.cMSTemplateName,
  6161. this.cMSTemplateStateType = CMSTemplateStatusTypeEnum.UnPublished,
  6162. this.cMSTemplateJson,
  6163. this.isDefault = false,
  6164. String? token,
  6165. }) : super(
  6166. token: token,
  6167. );
  6168. factory SaveCMSTemplateDetailRequest.fromJson(Map<String, dynamic> map) {
  6169. return SaveCMSTemplateDetailRequest(
  6170. cMSTemplateCode: map['CMSTemplateCode'],
  6171. cMSTemplateName: map['CMSTemplateName'],
  6172. cMSTemplateStateType: CMSTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['CMSTemplateStateType']),
  6173. cMSTemplateJson: map['CMSTemplateJson'],
  6174. isDefault: map['IsDefault'],
  6175. token: map['Token'],
  6176. );
  6177. }
  6178. Map<String, dynamic> toJson() {
  6179. final map = super.toJson();
  6180. if(cMSTemplateCode != null)
  6181. map['CMSTemplateCode'] = cMSTemplateCode;
  6182. if(cMSTemplateName != null)
  6183. map['CMSTemplateName'] = cMSTemplateName;
  6184. map['CMSTemplateStateType'] = cMSTemplateStateType.index;
  6185. if(cMSTemplateJson != null)
  6186. map['CMSTemplateJson'] = cMSTemplateJson;
  6187. map['IsDefault'] = isDefault;
  6188. return map;
  6189. }
  6190. }
  6191. class SaveReportLabelRequest extends TokenRequest{
  6192. String? reportLabelCode;
  6193. String? labelName;
  6194. String? languageCode;
  6195. ReportLabelUsageTypeEnum usageType;
  6196. List<String >? labelItems;
  6197. SaveReportLabelRequest({
  6198. this.reportLabelCode,
  6199. this.labelName,
  6200. this.languageCode,
  6201. this.usageType = ReportLabelUsageTypeEnum.People,
  6202. this.labelItems,
  6203. String? token,
  6204. }) : super(
  6205. token: token,
  6206. );
  6207. factory SaveReportLabelRequest.fromJson(Map<String, dynamic> map) {
  6208. return SaveReportLabelRequest(
  6209. reportLabelCode: map['ReportLabelCode'],
  6210. labelName: map['LabelName'],
  6211. languageCode: map['LanguageCode'],
  6212. usageType: ReportLabelUsageTypeEnum.values.firstWhere((e) => e.index == map['UsageType']),
  6213. labelItems: map['LabelItems'] != null ? map['LabelItems'].cast<String>().toList() : null,
  6214. token: map['Token'],
  6215. );
  6216. }
  6217. Map<String, dynamic> toJson() {
  6218. final map = super.toJson();
  6219. if(reportLabelCode != null)
  6220. map['ReportLabelCode'] = reportLabelCode;
  6221. if(labelName != null)
  6222. map['LabelName'] = labelName;
  6223. if(languageCode != null)
  6224. map['LanguageCode'] = languageCode;
  6225. map['UsageType'] = usageType.index;
  6226. if(labelItems != null)
  6227. map['LabelItems'] = labelItems;
  6228. return map;
  6229. }
  6230. }
  6231. enum ReportPosterTypeEnum {
  6232. Default,
  6233. BJAid,
  6234. }
  6235. enum ReportFormatEnum {
  6236. Json,
  6237. Xml,
  6238. }
  6239. class SaveReportPosterRequest extends TokenRequest{
  6240. String? reportPosterCode;
  6241. String? receiverName;
  6242. String? contact;
  6243. String? phone;
  6244. String? targetUrl;
  6245. String? template;
  6246. ReportPosterTypeEnum posterType;
  6247. ReportFormatEnum reportFormat;
  6248. int postTimeout;
  6249. SaveReportPosterRequest({
  6250. this.reportPosterCode,
  6251. this.receiverName,
  6252. this.contact,
  6253. this.phone,
  6254. this.targetUrl,
  6255. this.template,
  6256. this.posterType = ReportPosterTypeEnum.Default,
  6257. this.reportFormat = ReportFormatEnum.Json,
  6258. this.postTimeout = 0,
  6259. String? token,
  6260. }) : super(
  6261. token: token,
  6262. );
  6263. factory SaveReportPosterRequest.fromJson(Map<String, dynamic> map) {
  6264. return SaveReportPosterRequest(
  6265. reportPosterCode: map['ReportPosterCode'],
  6266. receiverName: map['ReceiverName'],
  6267. contact: map['Contact'],
  6268. phone: map['Phone'],
  6269. targetUrl: map['TargetUrl'],
  6270. template: map['Template'],
  6271. posterType: ReportPosterTypeEnum.values.firstWhere((e) => e.index == map['PosterType']),
  6272. reportFormat: ReportFormatEnum.values.firstWhere((e) => e.index == map['ReportFormat']),
  6273. postTimeout: map['PostTimeout'],
  6274. token: map['Token'],
  6275. );
  6276. }
  6277. Map<String, dynamic> toJson() {
  6278. final map = super.toJson();
  6279. if(reportPosterCode != null)
  6280. map['ReportPosterCode'] = reportPosterCode;
  6281. if(receiverName != null)
  6282. map['ReceiverName'] = receiverName;
  6283. if(contact != null)
  6284. map['Contact'] = contact;
  6285. if(phone != null)
  6286. map['Phone'] = phone;
  6287. if(targetUrl != null)
  6288. map['TargetUrl'] = targetUrl;
  6289. if(template != null)
  6290. map['Template'] = template;
  6291. map['PosterType'] = posterType.index;
  6292. map['ReportFormat'] = reportFormat.index;
  6293. map['PostTimeout'] = postTimeout;
  6294. return map;
  6295. }
  6296. }
  6297. class SaveThesaurusRequest extends ThesaurusDTO{
  6298. String? token;
  6299. SaveThesaurusRequest({
  6300. this.token,
  6301. String? thesaurusCode,
  6302. String? thesaurusName,
  6303. ThesaurusStatusTypeEnum thesaurusStateType = ThesaurusStatusTypeEnum.Unpublished,
  6304. ThesaurusTypeEnum thesaurusType = ThesaurusTypeEnum.Default,
  6305. ThesaurusUsageTypeEnum thesaurusUsageType = ThesaurusUsageTypeEnum.People,
  6306. String? organizationCode,
  6307. String? personalCode,
  6308. String? referenceThesaurusCode,
  6309. bool isDefault = false,
  6310. bool isUserDefault = false,
  6311. }) : super(
  6312. thesaurusCode: thesaurusCode,
  6313. thesaurusName: thesaurusName,
  6314. thesaurusStateType: thesaurusStateType,
  6315. thesaurusType: thesaurusType,
  6316. thesaurusUsageType: thesaurusUsageType,
  6317. organizationCode: organizationCode,
  6318. personalCode: personalCode,
  6319. referenceThesaurusCode: referenceThesaurusCode,
  6320. isDefault: isDefault,
  6321. isUserDefault: isUserDefault,
  6322. );
  6323. factory SaveThesaurusRequest.fromJson(Map<String, dynamic> map) {
  6324. return SaveThesaurusRequest(
  6325. token: map['Token'],
  6326. thesaurusCode: map['ThesaurusCode'],
  6327. thesaurusName: map['ThesaurusName'],
  6328. thesaurusStateType: ThesaurusStatusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusStateType']),
  6329. thesaurusType: ThesaurusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusType']),
  6330. thesaurusUsageType: ThesaurusUsageTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusUsageType']),
  6331. organizationCode: map['OrganizationCode'],
  6332. personalCode: map['PersonalCode'],
  6333. referenceThesaurusCode: map['ReferenceThesaurusCode'],
  6334. isDefault: map['IsDefault'],
  6335. isUserDefault: map['IsUserDefault'],
  6336. );
  6337. }
  6338. Map<String, dynamic> toJson() {
  6339. final map = super.toJson();
  6340. if(token != null)
  6341. map['Token'] = token;
  6342. return map;
  6343. }
  6344. }
  6345. class SettingReloadRequest extends TokenRequest{
  6346. String? settingKey;
  6347. SettingReloadRequest({
  6348. this.settingKey,
  6349. String? token,
  6350. }) : super(
  6351. token: token,
  6352. );
  6353. factory SettingReloadRequest.fromJson(Map<String, dynamic> map) {
  6354. return SettingReloadRequest(
  6355. settingKey: map['SettingKey'],
  6356. token: map['Token'],
  6357. );
  6358. }
  6359. Map<String, dynamic> toJson() {
  6360. final map = super.toJson();
  6361. if(settingKey != null)
  6362. map['SettingKey'] = settingKey;
  6363. return map;
  6364. }
  6365. }
  6366. class ShareDeviceRequest extends TokenRequest{
  6367. List<String >? userCodeList;
  6368. List<String >? deviceCodes;
  6369. ShareDeviceRequest({
  6370. this.userCodeList,
  6371. this.deviceCodes,
  6372. String? token,
  6373. }) : super(
  6374. token: token,
  6375. );
  6376. factory ShareDeviceRequest.fromJson(Map<String, dynamic> map) {
  6377. return ShareDeviceRequest(
  6378. userCodeList: map['UserCodeList'] != null ? map['UserCodeList'].cast<String>().toList() : null,
  6379. deviceCodes: map['DeviceCodes'] != null ? map['DeviceCodes'].cast<String>().toList() : null,
  6380. token: map['Token'],
  6381. );
  6382. }
  6383. Map<String, dynamic> toJson() {
  6384. final map = super.toJson();
  6385. if(userCodeList != null)
  6386. map['UserCodeList'] = userCodeList;
  6387. if(deviceCodes != null)
  6388. map['DeviceCodes'] = deviceCodes;
  6389. return map;
  6390. }
  6391. }
  6392. class ThesaurusItemRequest extends TokenRequest{
  6393. String? thesaurusItemCode;
  6394. ThesaurusItemTypeEnum thesaurusItemType;
  6395. String? thesaurusItemName;
  6396. String? parentItemCode;
  6397. String? thesaurusCode;
  6398. String? thesaurusItemDescription;
  6399. String? thesaurusItemConclusion;
  6400. ThesaurusItemRequest({
  6401. this.thesaurusItemCode,
  6402. this.thesaurusItemType = ThesaurusItemTypeEnum.Classification,
  6403. this.thesaurusItemName,
  6404. this.parentItemCode,
  6405. this.thesaurusCode,
  6406. this.thesaurusItemDescription,
  6407. this.thesaurusItemConclusion,
  6408. String? token,
  6409. }) : super(
  6410. token: token,
  6411. );
  6412. factory ThesaurusItemRequest.fromJson(Map<String, dynamic> map) {
  6413. return ThesaurusItemRequest(
  6414. thesaurusItemCode: map['ThesaurusItemCode'],
  6415. thesaurusItemType: ThesaurusItemTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusItemType']),
  6416. thesaurusItemName: map['ThesaurusItemName'],
  6417. parentItemCode: map['ParentItemCode'],
  6418. thesaurusCode: map['ThesaurusCode'],
  6419. thesaurusItemDescription: map['ThesaurusItemDescription'],
  6420. thesaurusItemConclusion: map['ThesaurusItemConclusion'],
  6421. token: map['Token'],
  6422. );
  6423. }
  6424. Map<String, dynamic> toJson() {
  6425. final map = super.toJson();
  6426. if(thesaurusItemCode != null)
  6427. map['ThesaurusItemCode'] = thesaurusItemCode;
  6428. map['ThesaurusItemType'] = thesaurusItemType.index;
  6429. if(thesaurusItemName != null)
  6430. map['ThesaurusItemName'] = thesaurusItemName;
  6431. if(parentItemCode != null)
  6432. map['ParentItemCode'] = parentItemCode;
  6433. if(thesaurusCode != null)
  6434. map['ThesaurusCode'] = thesaurusCode;
  6435. if(thesaurusItemDescription != null)
  6436. map['ThesaurusItemDescription'] = thesaurusItemDescription;
  6437. if(thesaurusItemConclusion != null)
  6438. map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
  6439. return map;
  6440. }
  6441. }
  6442. enum GradingConfigTypeEnum {
  6443. Switch,
  6444. Text,
  6445. }
  6446. class UpdateGradingProtectionConfigEnableRequest extends TokenRequest{
  6447. List<String >? codes;
  6448. GradingConfigTypeEnum configType;
  6449. String? value;
  6450. UpdateGradingProtectionConfigEnableRequest({
  6451. this.codes,
  6452. this.configType = GradingConfigTypeEnum.Switch,
  6453. this.value,
  6454. String? token,
  6455. }) : super(
  6456. token: token,
  6457. );
  6458. factory UpdateGradingProtectionConfigEnableRequest.fromJson(Map<String, dynamic> map) {
  6459. return UpdateGradingProtectionConfigEnableRequest(
  6460. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  6461. configType: GradingConfigTypeEnum.values.firstWhere((e) => e.index == map['ConfigType']),
  6462. value: map['Value'],
  6463. token: map['Token'],
  6464. );
  6465. }
  6466. Map<String, dynamic> toJson() {
  6467. final map = super.toJson();
  6468. if(codes != null)
  6469. map['Codes'] = codes;
  6470. map['ConfigType'] = configType.index;
  6471. if(value != null)
  6472. map['Value'] = value;
  6473. return map;
  6474. }
  6475. }
  6476. class FindVideosByCourseCodeRequest extends TokenRequest{
  6477. String? code;
  6478. String? courseCode;
  6479. FindVideosByCourseCodeRequest({
  6480. this.code,
  6481. this.courseCode,
  6482. String? token,
  6483. }) : super(
  6484. token: token,
  6485. );
  6486. factory FindVideosByCourseCodeRequest.fromJson(Map<String, dynamic> map) {
  6487. return FindVideosByCourseCodeRequest(
  6488. code: map['Code'],
  6489. courseCode: map['CourseCode'],
  6490. token: map['Token'],
  6491. );
  6492. }
  6493. Map<String, dynamic> toJson() {
  6494. final map = super.toJson();
  6495. if(code != null)
  6496. map['Code'] = code;
  6497. if(courseCode != null)
  6498. map['CourseCode'] = courseCode;
  6499. return map;
  6500. }
  6501. }
  6502. class GetOpLogsByCodesFormMasterRequest {
  6503. List<String >? codes;
  6504. GetOpLogsByCodesFormMasterRequest({
  6505. this.codes,
  6506. });
  6507. factory GetOpLogsByCodesFormMasterRequest.fromJson(Map<String, dynamic> map) {
  6508. return GetOpLogsByCodesFormMasterRequest(
  6509. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  6510. );
  6511. }
  6512. Map<String, dynamic> toJson() {
  6513. final map = Map<String, dynamic>();
  6514. if(codes != null)
  6515. map['Codes'] = codes;
  6516. return map;
  6517. }
  6518. }
  6519. class GetOpLogsFormMasterRequest {
  6520. int cursor;
  6521. String? sourceUrl;
  6522. GetOpLogsFormMasterRequest({
  6523. this.cursor = 0,
  6524. this.sourceUrl,
  6525. });
  6526. factory GetOpLogsFormMasterRequest.fromJson(Map<String, dynamic> map) {
  6527. return GetOpLogsFormMasterRequest(
  6528. cursor: map['Cursor'],
  6529. sourceUrl: map['SourceUrl'],
  6530. );
  6531. }
  6532. Map<String, dynamic> toJson() {
  6533. final map = Map<String, dynamic>();
  6534. map['Cursor'] = cursor;
  6535. if(sourceUrl != null)
  6536. map['SourceUrl'] = sourceUrl;
  6537. return map;
  6538. }
  6539. }
  6540. enum MongoDBActionTypeEnum {
  6541. InsertOne,
  6542. InsertOneAsync,
  6543. InsertMany,
  6544. InsertManyAsync,
  6545. DeleteOne,
  6546. DeleteOneAsync,
  6547. DeleteMany,
  6548. DeleteManyAsync,
  6549. FindOneAndDelete,
  6550. FindOneAndDeleteAsync,
  6551. ReplaceOne,
  6552. ReplaceOneAsync,
  6553. FindOneAndReplace,
  6554. FindOneAndReplaceAsync,
  6555. UpdateOne,
  6556. UpdateOneAsync,
  6557. UpdateMany,
  6558. UpdateManyAsync,
  6559. FindOneAndUpdate,
  6560. FindOneAndUpdateAsync,
  6561. }
  6562. class OperationLogDTO {
  6563. int id;
  6564. String? collectionName;
  6565. MongoDBActionTypeEnum actionType;
  6566. String? bsonContent;
  6567. String? filterContent;
  6568. DateTime? createTime;
  6569. String? code;
  6570. String? sourceUrl;
  6571. bool isSimple;
  6572. OperationLogDTO({
  6573. this.id = 0,
  6574. this.collectionName,
  6575. this.actionType = MongoDBActionTypeEnum.InsertOne,
  6576. this.bsonContent,
  6577. this.filterContent,
  6578. this.createTime,
  6579. this.code,
  6580. this.sourceUrl,
  6581. this.isSimple = false,
  6582. });
  6583. factory OperationLogDTO.fromJson(Map<String, dynamic> map) {
  6584. return OperationLogDTO(
  6585. id: map['Id'],
  6586. collectionName: map['CollectionName'],
  6587. actionType: MongoDBActionTypeEnum.values.firstWhere((e) => e.index == map['ActionType']),
  6588. bsonContent: map['BsonContent'],
  6589. filterContent: map['FilterContent'],
  6590. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6591. code: map['Code'],
  6592. sourceUrl: map['SourceUrl'],
  6593. isSimple: map['IsSimple'],
  6594. );
  6595. }
  6596. Map<String, dynamic> toJson() {
  6597. final map = Map<String, dynamic>();
  6598. map['Id'] = id;
  6599. if(collectionName != null)
  6600. map['CollectionName'] = collectionName;
  6601. map['ActionType'] = actionType.index;
  6602. if(bsonContent != null)
  6603. map['BsonContent'] = bsonContent;
  6604. if(filterContent != null)
  6605. map['FilterContent'] = filterContent;
  6606. if(createTime != null)
  6607. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  6608. if(code != null)
  6609. map['Code'] = code;
  6610. if(sourceUrl != null)
  6611. map['SourceUrl'] = sourceUrl;
  6612. map['IsSimple'] = isSimple;
  6613. return map;
  6614. }
  6615. }
  6616. class SyncCompleteOpLogsRequest {
  6617. List<OperationLogDTO >? oplogs;
  6618. SyncCompleteOpLogsRequest({
  6619. this.oplogs,
  6620. });
  6621. factory SyncCompleteOpLogsRequest.fromJson(Map<String, dynamic> map) {
  6622. return SyncCompleteOpLogsRequest(
  6623. oplogs: map['Oplogs'] != null ? (map['Oplogs'] as List).map((e)=>OperationLogDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6624. );
  6625. }
  6626. Map<String, dynamic> toJson() {
  6627. final map = Map<String, dynamic>();
  6628. if(oplogs != null)
  6629. map['Oplogs'] = oplogs;
  6630. return map;
  6631. }
  6632. }
  6633. class SyncOpLogToMasterRequest {
  6634. String? collectionName;
  6635. MongoDBActionTypeEnum actionType;
  6636. String? bsonContent;
  6637. String? filterContent;
  6638. DateTime? createTime;
  6639. String? sourceUrl;
  6640. String? code;
  6641. String? serverID;
  6642. bool isSimple;
  6643. SyncOpLogToMasterRequest({
  6644. this.collectionName,
  6645. this.actionType = MongoDBActionTypeEnum.InsertOne,
  6646. this.bsonContent,
  6647. this.filterContent,
  6648. this.createTime,
  6649. this.sourceUrl,
  6650. this.code,
  6651. this.serverID,
  6652. this.isSimple = false,
  6653. });
  6654. factory SyncOpLogToMasterRequest.fromJson(Map<String, dynamic> map) {
  6655. return SyncOpLogToMasterRequest(
  6656. collectionName: map['CollectionName'],
  6657. actionType: MongoDBActionTypeEnum.values.firstWhere((e) => e.index == map['ActionType']),
  6658. bsonContent: map['BsonContent'],
  6659. filterContent: map['FilterContent'],
  6660. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6661. sourceUrl: map['SourceUrl'],
  6662. code: map['Code'],
  6663. serverID: map['ServerID'],
  6664. isSimple: map['IsSimple'],
  6665. );
  6666. }
  6667. Map<String, dynamic> toJson() {
  6668. final map = Map<String, dynamic>();
  6669. if(collectionName != null)
  6670. map['CollectionName'] = collectionName;
  6671. map['ActionType'] = actionType.index;
  6672. if(bsonContent != null)
  6673. map['BsonContent'] = bsonContent;
  6674. if(filterContent != null)
  6675. map['FilterContent'] = filterContent;
  6676. if(createTime != null)
  6677. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  6678. if(sourceUrl != null)
  6679. map['SourceUrl'] = sourceUrl;
  6680. if(code != null)
  6681. map['Code'] = code;
  6682. if(serverID != null)
  6683. map['ServerID'] = serverID;
  6684. map['IsSimple'] = isSimple;
  6685. return map;
  6686. }
  6687. }
  6688. class NotificationClientInfo {
  6689. String? clientId;
  6690. String? loginServerUrl;
  6691. NotificationClientInfo({
  6692. this.clientId,
  6693. this.loginServerUrl,
  6694. });
  6695. factory NotificationClientInfo.fromJson(Map<String, dynamic> map) {
  6696. return NotificationClientInfo(
  6697. clientId: map['ClientId'],
  6698. loginServerUrl: map['LoginServerUrl'],
  6699. );
  6700. }
  6701. Map<String, dynamic> toJson() {
  6702. final map = Map<String, dynamic>();
  6703. if(clientId != null)
  6704. map['ClientId'] = clientId;
  6705. if(loginServerUrl != null)
  6706. map['LoginServerUrl'] = loginServerUrl;
  6707. return map;
  6708. }
  6709. }
  6710. enum ConsultationMemeberAcceptStatus {
  6711. Default,
  6712. Accepted,
  6713. Rejected,
  6714. }
  6715. enum LiveConsultationRoleEnum {
  6716. Expert,
  6717. General,
  6718. OtherParticipant,
  6719. AssistantDoctor,
  6720. Assistant,
  6721. }
  6722. enum LiveConsultationRoomStatus {
  6723. Default,
  6724. Initiating,
  6725. Cancelled,
  6726. ConnectionTimeout,
  6727. Connected,
  6728. Closed,
  6729. }
  6730. enum VideoProtocol {
  6731. Rtmp,
  6732. Rtc,
  6733. }
  6734. class DeviceJoinLiveConsultationResult {
  6735. String? consultationCode;
  6736. String? deviceCode;
  6737. int roomNo;
  6738. int appId;
  6739. String? deviceSign;
  6740. List<LiveConsultationMember >? memberLiveDatas;
  6741. List<InteractiveBoardDataDTO >? interactiveBoardDatas;
  6742. DeviceJoinLiveConsultationResult({
  6743. this.consultationCode,
  6744. this.deviceCode,
  6745. this.roomNo = 0,
  6746. this.appId = 0,
  6747. this.deviceSign,
  6748. this.memberLiveDatas,
  6749. this.interactiveBoardDatas,
  6750. });
  6751. factory DeviceJoinLiveConsultationResult.fromJson(Map<String, dynamic> map) {
  6752. return DeviceJoinLiveConsultationResult(
  6753. consultationCode: map['ConsultationCode'],
  6754. deviceCode: map['DeviceCode'],
  6755. roomNo: map['RoomNo'],
  6756. appId: map['AppId'],
  6757. deviceSign: map['DeviceSign'],
  6758. memberLiveDatas: map['MemberLiveDatas'] != null ? (map['MemberLiveDatas'] as List).map((e)=>LiveConsultationMember.fromJson(e as Map<String,dynamic>)).toList() : null,
  6759. interactiveBoardDatas: map['InteractiveBoardDatas'] != null ? (map['InteractiveBoardDatas'] as List).map((e)=>InteractiveBoardDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6760. );
  6761. }
  6762. Map<String, dynamic> toJson() {
  6763. final map = Map<String, dynamic>();
  6764. if(consultationCode != null)
  6765. map['ConsultationCode'] = consultationCode;
  6766. if(deviceCode != null)
  6767. map['DeviceCode'] = deviceCode;
  6768. map['RoomNo'] = roomNo;
  6769. map['AppId'] = appId;
  6770. if(deviceSign != null)
  6771. map['DeviceSign'] = deviceSign;
  6772. if(memberLiveDatas != null)
  6773. map['MemberLiveDatas'] = memberLiveDatas;
  6774. if(interactiveBoardDatas != null)
  6775. map['InteractiveBoardDatas'] = interactiveBoardDatas;
  6776. return map;
  6777. }
  6778. }
  6779. class LiveConsultationRoomDTO {
  6780. String? consultationCode;
  6781. LiveConsultationMember? initiator;
  6782. List<LiveConsultationMember >? members;
  6783. List<LiveConsultationMember >? devices;
  6784. LiveConsultationRoomStatus status;
  6785. int roomNo;
  6786. LiveConsultationRoomDTO({
  6787. this.consultationCode,
  6788. this.initiator,
  6789. this.members,
  6790. this.devices,
  6791. this.status = LiveConsultationRoomStatus.Default,
  6792. this.roomNo = 0,
  6793. });
  6794. factory LiveConsultationRoomDTO.fromJson(Map<String, dynamic> map) {
  6795. return LiveConsultationRoomDTO(
  6796. consultationCode: map['ConsultationCode'],
  6797. initiator: map['Initiator'] != null ? LiveConsultationMember.fromJson(map['Initiator']) : null,
  6798. members: map['Members'] != null ? (map['Members'] as List).map((e)=>LiveConsultationMember.fromJson(e as Map<String,dynamic>)).toList() : null,
  6799. devices: map['Devices'] != null ? (map['Devices'] as List).map((e)=>LiveConsultationMember.fromJson(e as Map<String,dynamic>)).toList() : null,
  6800. status: LiveConsultationRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  6801. roomNo: map['RoomNo'],
  6802. );
  6803. }
  6804. Map<String, dynamic> toJson() {
  6805. final map = Map<String, dynamic>();
  6806. if(consultationCode != null)
  6807. map['ConsultationCode'] = consultationCode;
  6808. if(initiator != null)
  6809. map['Initiator'] = initiator;
  6810. if(members != null)
  6811. map['Members'] = members;
  6812. if(devices != null)
  6813. map['Devices'] = devices;
  6814. map['Status'] = status.index;
  6815. map['RoomNo'] = roomNo;
  6816. return map;
  6817. }
  6818. }
  6819. enum BoardTypeEnum {
  6820. ReadOnly,
  6821. Ink,
  6822. Line,
  6823. Erase,
  6824. }
  6825. class FindConsultationSettingRequest extends TokenRequest{
  6826. String? version;
  6827. FindConsultationSettingRequest({
  6828. this.version,
  6829. String? token,
  6830. }) : super(
  6831. token: token,
  6832. );
  6833. factory FindConsultationSettingRequest.fromJson(Map<String, dynamic> map) {
  6834. return FindConsultationSettingRequest(
  6835. version: map['Version'],
  6836. token: map['Token'],
  6837. );
  6838. }
  6839. Map<String, dynamic> toJson() {
  6840. final map = super.toJson();
  6841. if(version != null)
  6842. map['Version'] = version;
  6843. return map;
  6844. }
  6845. }
  6846. class FindOrganizationBindExpertsRequest extends TokenRequest{
  6847. FindOrganizationBindExpertsRequest({
  6848. String? token,
  6849. }) : super(
  6850. token: token,
  6851. );
  6852. factory FindOrganizationBindExpertsRequest.fromJson(Map<String, dynamic> map) {
  6853. return FindOrganizationBindExpertsRequest(
  6854. token: map['Token'],
  6855. );
  6856. }
  6857. Map<String, dynamic> toJson() {
  6858. final map = super.toJson();
  6859. return map;
  6860. }
  6861. }
  6862. class GetEmergencyOrderRequest extends TokenRequest{
  6863. String? emergencySerialNumber;
  6864. GetEmergencyOrderRequest({
  6865. this.emergencySerialNumber,
  6866. String? token,
  6867. }) : super(
  6868. token: token,
  6869. );
  6870. factory GetEmergencyOrderRequest.fromJson(Map<String, dynamic> map) {
  6871. return GetEmergencyOrderRequest(
  6872. emergencySerialNumber: map['EmergencySerialNumber'],
  6873. token: map['Token'],
  6874. );
  6875. }
  6876. Map<String, dynamic> toJson() {
  6877. final map = super.toJson();
  6878. if(emergencySerialNumber != null)
  6879. map['EmergencySerialNumber'] = emergencySerialNumber;
  6880. return map;
  6881. }
  6882. }
  6883. enum AgeUnitsEnum {
  6884. Year,
  6885. YearAndMonth,
  6886. MonthAndWeek,
  6887. WeekAndDay,
  6888. }
  6889. enum AnnounceTypeEnum {
  6890. Broadcast,
  6891. Maintain,
  6892. }
  6893. enum MessageCategoryEnum {
  6894. Consultation,
  6895. Diagnosis,
  6896. Course,
  6897. }
  6898. enum BusinessModuleEnum {
  6899. placeHolder_0,
  6900. RemoteDiagnosis,
  6901. LivingConsultation,
  6902. LivingCourse,
  6903. DeviceLiving,
  6904. RemoteControl,
  6905. }
  6906. enum QueryCMSTemplateStatusTypeEnum {
  6907. UnPublished,
  6908. Published,
  6909. }
  6910. enum QueryCMSMessageStatusEnum {
  6911. UnRead,
  6912. Read,
  6913. }
  6914. enum CMSMessageStatusEnum {
  6915. UnRead,
  6916. Read,
  6917. }
  6918. enum StatisticsPlatformEnum {
  6919. Management,
  6920. CMS,
  6921. }
  6922. enum StatisticsBannerTypeEnum {
  6923. PlatActivity,
  6924. Devices,
  6925. Download,
  6926. }
  6927. enum QueryStatisticsBannerTypeEnum {
  6928. PlatActivity,
  6929. Devices,
  6930. Download,
  6931. }
  6932. enum LogEventLevel {
  6933. Verbose,
  6934. Debug,
  6935. Information,
  6936. Warning,
  6937. Error,
  6938. Fatal,
  6939. }
  6940. enum DiagnosisLabelEnum {
  6941. BIRads1,
  6942. Lipomyoma,
  6943. BIRads2,
  6944. BIRads3,
  6945. BIRads4A,
  6946. BIRads4B,
  6947. BIRads4C,
  6948. BIRads5,
  6949. IntrahepaticHyperechoic,
  6950. HHE,
  6951. CYST,
  6952. PossibleCancer,
  6953. FattyLiver,
  6954. DiffuseLesions,
  6955. Cirrhosis,
  6956. PCLD,
  6957. }
  6958. enum DiagnosisLiverLabelEnum {
  6959. BIRads1,
  6960. Hyperechoic,
  6961. HHE,
  6962. CYST,
  6963. PossibleCancer,
  6964. FattyLiver,
  6965. DiffuseLesions,
  6966. Cirrhosis,
  6967. PCLD,
  6968. }
  6969. enum AIThyroidLabelEnum {
  6970. TIRADS0,
  6971. TIRADS2,
  6972. TIRADS3,
  6973. TIRADS4a,
  6974. TIRADS4b,
  6975. TIRADS4c,
  6976. TIRADS5,
  6977. DiffuseDisease,
  6978. }
  6979. enum FollowUpVisitStatusEnum {
  6980. Unknown,
  6981. PendingVisit,
  6982. VisitCompleted,
  6983. }
  6984. enum GestationalAgeOriginEnum {
  6985. GestationalAge,
  6986. IVF,
  6987. OospermForm,
  6988. BBT,
  6989. LMP,
  6990. }
  6991. enum GetUserListTypeEnum {
  6992. FullName,
  6993. Phone,
  6994. }
  6995. enum HeartbeatTypeEnum {
  6996. ClientToken,
  6997. TerminalToken,
  6998. ThirdpartyToken,
  6999. LiveState,
  7000. RTCState,
  7001. }
  7002. enum LabFileTypeEnum {
  7003. Media,
  7004. ZipFile,
  7005. }
  7006. enum LiveMemberStatusEnum {
  7007. Default,
  7008. Accepted,
  7009. Rejected,
  7010. Joined,
  7011. Left,
  7012. }
  7013. enum LiveProtocolEnum {
  7014. placeHolder_0,
  7015. RTMP,
  7016. RTC,
  7017. }
  7018. enum LiveRoomStatus {
  7019. Default,
  7020. Initiating,
  7021. Cancelled,
  7022. ConnectionTimeout,
  7023. Connected,
  7024. Closed,
  7025. }
  7026. enum LoginProcessorTypeEnum {
  7027. Official,
  7028. Wechat,
  7029. Phone,
  7030. Email,
  7031. placeHolder_4,
  7032. placeHolder_5,
  7033. placeHolder_6,
  7034. placeHolder_7,
  7035. placeHolder_8,
  7036. placeHolder_9,
  7037. placeHolder_10,
  7038. placeHolder_11,
  7039. placeHolder_12,
  7040. placeHolder_13,
  7041. placeHolder_14,
  7042. placeHolder_15,
  7043. placeHolder_16,
  7044. placeHolder_17,
  7045. placeHolder_18,
  7046. placeHolder_19,
  7047. placeHolder_20,
  7048. placeHolder_21,
  7049. placeHolder_22,
  7050. placeHolder_23,
  7051. placeHolder_24,
  7052. placeHolder_25,
  7053. placeHolder_26,
  7054. placeHolder_27,
  7055. placeHolder_28,
  7056. placeHolder_29,
  7057. placeHolder_30,
  7058. placeHolder_31,
  7059. placeHolder_32,
  7060. placeHolder_33,
  7061. placeHolder_34,
  7062. placeHolder_35,
  7063. placeHolder_36,
  7064. placeHolder_37,
  7065. placeHolder_38,
  7066. placeHolder_39,
  7067. placeHolder_40,
  7068. placeHolder_41,
  7069. placeHolder_42,
  7070. placeHolder_43,
  7071. placeHolder_44,
  7072. placeHolder_45,
  7073. placeHolder_46,
  7074. placeHolder_47,
  7075. placeHolder_48,
  7076. placeHolder_49,
  7077. placeHolder_50,
  7078. placeHolder_51,
  7079. placeHolder_52,
  7080. placeHolder_53,
  7081. placeHolder_54,
  7082. placeHolder_55,
  7083. placeHolder_56,
  7084. placeHolder_57,
  7085. placeHolder_58,
  7086. placeHolder_59,
  7087. placeHolder_60,
  7088. placeHolder_61,
  7089. placeHolder_62,
  7090. placeHolder_63,
  7091. placeHolder_64,
  7092. placeHolder_65,
  7093. placeHolder_66,
  7094. placeHolder_67,
  7095. placeHolder_68,
  7096. placeHolder_69,
  7097. placeHolder_70,
  7098. placeHolder_71,
  7099. placeHolder_72,
  7100. placeHolder_73,
  7101. placeHolder_74,
  7102. placeHolder_75,
  7103. placeHolder_76,
  7104. placeHolder_77,
  7105. placeHolder_78,
  7106. placeHolder_79,
  7107. placeHolder_80,
  7108. placeHolder_81,
  7109. placeHolder_82,
  7110. placeHolder_83,
  7111. placeHolder_84,
  7112. placeHolder_85,
  7113. placeHolder_86,
  7114. placeHolder_87,
  7115. placeHolder_88,
  7116. placeHolder_89,
  7117. placeHolder_90,
  7118. placeHolder_91,
  7119. placeHolder_92,
  7120. placeHolder_93,
  7121. placeHolder_94,
  7122. placeHolder_95,
  7123. placeHolder_96,
  7124. placeHolder_97,
  7125. placeHolder_98,
  7126. placeHolder_99,
  7127. placeHolder_100,
  7128. placeHolder_101,
  7129. placeHolder_102,
  7130. placeHolder_103,
  7131. placeHolder_104,
  7132. placeHolder_105,
  7133. placeHolder_106,
  7134. placeHolder_107,
  7135. placeHolder_108,
  7136. placeHolder_109,
  7137. placeHolder_110,
  7138. placeHolder_111,
  7139. placeHolder_112,
  7140. placeHolder_113,
  7141. placeHolder_114,
  7142. placeHolder_115,
  7143. placeHolder_116,
  7144. placeHolder_117,
  7145. placeHolder_118,
  7146. placeHolder_119,
  7147. placeHolder_120,
  7148. placeHolder_121,
  7149. placeHolder_122,
  7150. placeHolder_123,
  7151. placeHolder_124,
  7152. placeHolder_125,
  7153. placeHolder_126,
  7154. placeHolder_127,
  7155. placeHolder_128,
  7156. placeHolder_129,
  7157. placeHolder_130,
  7158. placeHolder_131,
  7159. placeHolder_132,
  7160. placeHolder_133,
  7161. placeHolder_134,
  7162. placeHolder_135,
  7163. placeHolder_136,
  7164. placeHolder_137,
  7165. placeHolder_138,
  7166. placeHolder_139,
  7167. placeHolder_140,
  7168. placeHolder_141,
  7169. placeHolder_142,
  7170. placeHolder_143,
  7171. placeHolder_144,
  7172. placeHolder_145,
  7173. placeHolder_146,
  7174. placeHolder_147,
  7175. placeHolder_148,
  7176. placeHolder_149,
  7177. placeHolder_150,
  7178. placeHolder_151,
  7179. placeHolder_152,
  7180. placeHolder_153,
  7181. placeHolder_154,
  7182. placeHolder_155,
  7183. placeHolder_156,
  7184. placeHolder_157,
  7185. placeHolder_158,
  7186. placeHolder_159,
  7187. placeHolder_160,
  7188. placeHolder_161,
  7189. placeHolder_162,
  7190. placeHolder_163,
  7191. placeHolder_164,
  7192. placeHolder_165,
  7193. placeHolder_166,
  7194. placeHolder_167,
  7195. placeHolder_168,
  7196. placeHolder_169,
  7197. placeHolder_170,
  7198. placeHolder_171,
  7199. placeHolder_172,
  7200. placeHolder_173,
  7201. placeHolder_174,
  7202. placeHolder_175,
  7203. placeHolder_176,
  7204. placeHolder_177,
  7205. placeHolder_178,
  7206. placeHolder_179,
  7207. placeHolder_180,
  7208. placeHolder_181,
  7209. placeHolder_182,
  7210. placeHolder_183,
  7211. placeHolder_184,
  7212. placeHolder_185,
  7213. placeHolder_186,
  7214. placeHolder_187,
  7215. placeHolder_188,
  7216. placeHolder_189,
  7217. placeHolder_190,
  7218. placeHolder_191,
  7219. placeHolder_192,
  7220. placeHolder_193,
  7221. placeHolder_194,
  7222. placeHolder_195,
  7223. placeHolder_196,
  7224. placeHolder_197,
  7225. placeHolder_198,
  7226. placeHolder_199,
  7227. placeHolder_200,
  7228. placeHolder_201,
  7229. placeHolder_202,
  7230. placeHolder_203,
  7231. placeHolder_204,
  7232. placeHolder_205,
  7233. placeHolder_206,
  7234. placeHolder_207,
  7235. placeHolder_208,
  7236. placeHolder_209,
  7237. placeHolder_210,
  7238. placeHolder_211,
  7239. placeHolder_212,
  7240. placeHolder_213,
  7241. placeHolder_214,
  7242. placeHolder_215,
  7243. placeHolder_216,
  7244. placeHolder_217,
  7245. placeHolder_218,
  7246. placeHolder_219,
  7247. placeHolder_220,
  7248. placeHolder_221,
  7249. placeHolder_222,
  7250. placeHolder_223,
  7251. placeHolder_224,
  7252. placeHolder_225,
  7253. placeHolder_226,
  7254. placeHolder_227,
  7255. placeHolder_228,
  7256. placeHolder_229,
  7257. placeHolder_230,
  7258. placeHolder_231,
  7259. placeHolder_232,
  7260. placeHolder_233,
  7261. placeHolder_234,
  7262. placeHolder_235,
  7263. placeHolder_236,
  7264. placeHolder_237,
  7265. placeHolder_238,
  7266. placeHolder_239,
  7267. placeHolder_240,
  7268. placeHolder_241,
  7269. placeHolder_242,
  7270. placeHolder_243,
  7271. placeHolder_244,
  7272. placeHolder_245,
  7273. placeHolder_246,
  7274. placeHolder_247,
  7275. placeHolder_248,
  7276. placeHolder_249,
  7277. placeHolder_250,
  7278. placeHolder_251,
  7279. placeHolder_252,
  7280. placeHolder_253,
  7281. placeHolder_254,
  7282. placeHolder_255,
  7283. placeHolder_256,
  7284. placeHolder_257,
  7285. placeHolder_258,
  7286. placeHolder_259,
  7287. placeHolder_260,
  7288. placeHolder_261,
  7289. placeHolder_262,
  7290. placeHolder_263,
  7291. placeHolder_264,
  7292. placeHolder_265,
  7293. placeHolder_266,
  7294. placeHolder_267,
  7295. placeHolder_268,
  7296. placeHolder_269,
  7297. placeHolder_270,
  7298. placeHolder_271,
  7299. placeHolder_272,
  7300. placeHolder_273,
  7301. placeHolder_274,
  7302. placeHolder_275,
  7303. placeHolder_276,
  7304. placeHolder_277,
  7305. placeHolder_278,
  7306. placeHolder_279,
  7307. placeHolder_280,
  7308. placeHolder_281,
  7309. placeHolder_282,
  7310. placeHolder_283,
  7311. placeHolder_284,
  7312. placeHolder_285,
  7313. placeHolder_286,
  7314. placeHolder_287,
  7315. placeHolder_288,
  7316. placeHolder_289,
  7317. placeHolder_290,
  7318. placeHolder_291,
  7319. placeHolder_292,
  7320. placeHolder_293,
  7321. placeHolder_294,
  7322. placeHolder_295,
  7323. placeHolder_296,
  7324. placeHolder_297,
  7325. placeHolder_298,
  7326. placeHolder_299,
  7327. placeHolder_300,
  7328. placeHolder_301,
  7329. placeHolder_302,
  7330. placeHolder_303,
  7331. placeHolder_304,
  7332. placeHolder_305,
  7333. placeHolder_306,
  7334. placeHolder_307,
  7335. placeHolder_308,
  7336. placeHolder_309,
  7337. placeHolder_310,
  7338. placeHolder_311,
  7339. placeHolder_312,
  7340. placeHolder_313,
  7341. placeHolder_314,
  7342. placeHolder_315,
  7343. placeHolder_316,
  7344. placeHolder_317,
  7345. placeHolder_318,
  7346. placeHolder_319,
  7347. placeHolder_320,
  7348. placeHolder_321,
  7349. placeHolder_322,
  7350. placeHolder_323,
  7351. placeHolder_324,
  7352. placeHolder_325,
  7353. placeHolder_326,
  7354. placeHolder_327,
  7355. placeHolder_328,
  7356. placeHolder_329,
  7357. placeHolder_330,
  7358. placeHolder_331,
  7359. placeHolder_332,
  7360. placeHolder_333,
  7361. placeHolder_334,
  7362. placeHolder_335,
  7363. placeHolder_336,
  7364. placeHolder_337,
  7365. placeHolder_338,
  7366. placeHolder_339,
  7367. placeHolder_340,
  7368. placeHolder_341,
  7369. placeHolder_342,
  7370. placeHolder_343,
  7371. placeHolder_344,
  7372. placeHolder_345,
  7373. placeHolder_346,
  7374. placeHolder_347,
  7375. placeHolder_348,
  7376. placeHolder_349,
  7377. placeHolder_350,
  7378. placeHolder_351,
  7379. placeHolder_352,
  7380. placeHolder_353,
  7381. placeHolder_354,
  7382. placeHolder_355,
  7383. placeHolder_356,
  7384. placeHolder_357,
  7385. placeHolder_358,
  7386. placeHolder_359,
  7387. placeHolder_360,
  7388. placeHolder_361,
  7389. placeHolder_362,
  7390. placeHolder_363,
  7391. placeHolder_364,
  7392. placeHolder_365,
  7393. placeHolder_366,
  7394. placeHolder_367,
  7395. placeHolder_368,
  7396. placeHolder_369,
  7397. placeHolder_370,
  7398. placeHolder_371,
  7399. placeHolder_372,
  7400. placeHolder_373,
  7401. placeHolder_374,
  7402. placeHolder_375,
  7403. placeHolder_376,
  7404. placeHolder_377,
  7405. placeHolder_378,
  7406. placeHolder_379,
  7407. placeHolder_380,
  7408. placeHolder_381,
  7409. placeHolder_382,
  7410. placeHolder_383,
  7411. placeHolder_384,
  7412. placeHolder_385,
  7413. placeHolder_386,
  7414. placeHolder_387,
  7415. placeHolder_388,
  7416. placeHolder_389,
  7417. placeHolder_390,
  7418. placeHolder_391,
  7419. placeHolder_392,
  7420. placeHolder_393,
  7421. placeHolder_394,
  7422. placeHolder_395,
  7423. placeHolder_396,
  7424. placeHolder_397,
  7425. placeHolder_398,
  7426. placeHolder_399,
  7427. placeHolder_400,
  7428. placeHolder_401,
  7429. placeHolder_402,
  7430. placeHolder_403,
  7431. placeHolder_404,
  7432. placeHolder_405,
  7433. placeHolder_406,
  7434. placeHolder_407,
  7435. placeHolder_408,
  7436. placeHolder_409,
  7437. placeHolder_410,
  7438. placeHolder_411,
  7439. placeHolder_412,
  7440. placeHolder_413,
  7441. placeHolder_414,
  7442. placeHolder_415,
  7443. placeHolder_416,
  7444. placeHolder_417,
  7445. placeHolder_418,
  7446. placeHolder_419,
  7447. placeHolder_420,
  7448. placeHolder_421,
  7449. placeHolder_422,
  7450. placeHolder_423,
  7451. placeHolder_424,
  7452. placeHolder_425,
  7453. placeHolder_426,
  7454. placeHolder_427,
  7455. placeHolder_428,
  7456. placeHolder_429,
  7457. placeHolder_430,
  7458. placeHolder_431,
  7459. placeHolder_432,
  7460. placeHolder_433,
  7461. placeHolder_434,
  7462. placeHolder_435,
  7463. placeHolder_436,
  7464. placeHolder_437,
  7465. placeHolder_438,
  7466. placeHolder_439,
  7467. placeHolder_440,
  7468. placeHolder_441,
  7469. placeHolder_442,
  7470. placeHolder_443,
  7471. placeHolder_444,
  7472. placeHolder_445,
  7473. placeHolder_446,
  7474. placeHolder_447,
  7475. placeHolder_448,
  7476. placeHolder_449,
  7477. placeHolder_450,
  7478. placeHolder_451,
  7479. placeHolder_452,
  7480. placeHolder_453,
  7481. placeHolder_454,
  7482. placeHolder_455,
  7483. placeHolder_456,
  7484. placeHolder_457,
  7485. placeHolder_458,
  7486. placeHolder_459,
  7487. placeHolder_460,
  7488. placeHolder_461,
  7489. placeHolder_462,
  7490. placeHolder_463,
  7491. placeHolder_464,
  7492. placeHolder_465,
  7493. placeHolder_466,
  7494. placeHolder_467,
  7495. placeHolder_468,
  7496. placeHolder_469,
  7497. placeHolder_470,
  7498. placeHolder_471,
  7499. placeHolder_472,
  7500. placeHolder_473,
  7501. placeHolder_474,
  7502. placeHolder_475,
  7503. placeHolder_476,
  7504. placeHolder_477,
  7505. placeHolder_478,
  7506. placeHolder_479,
  7507. placeHolder_480,
  7508. placeHolder_481,
  7509. placeHolder_482,
  7510. placeHolder_483,
  7511. placeHolder_484,
  7512. placeHolder_485,
  7513. placeHolder_486,
  7514. placeHolder_487,
  7515. placeHolder_488,
  7516. placeHolder_489,
  7517. placeHolder_490,
  7518. placeHolder_491,
  7519. placeHolder_492,
  7520. placeHolder_493,
  7521. placeHolder_494,
  7522. placeHolder_495,
  7523. placeHolder_496,
  7524. placeHolder_497,
  7525. placeHolder_498,
  7526. placeHolder_499,
  7527. placeHolder_500,
  7528. placeHolder_501,
  7529. placeHolder_502,
  7530. placeHolder_503,
  7531. placeHolder_504,
  7532. placeHolder_505,
  7533. placeHolder_506,
  7534. placeHolder_507,
  7535. placeHolder_508,
  7536. placeHolder_509,
  7537. placeHolder_510,
  7538. placeHolder_511,
  7539. placeHolder_512,
  7540. placeHolder_513,
  7541. placeHolder_514,
  7542. placeHolder_515,
  7543. placeHolder_516,
  7544. placeHolder_517,
  7545. placeHolder_518,
  7546. placeHolder_519,
  7547. placeHolder_520,
  7548. placeHolder_521,
  7549. placeHolder_522,
  7550. placeHolder_523,
  7551. placeHolder_524,
  7552. placeHolder_525,
  7553. placeHolder_526,
  7554. placeHolder_527,
  7555. placeHolder_528,
  7556. placeHolder_529,
  7557. placeHolder_530,
  7558. placeHolder_531,
  7559. placeHolder_532,
  7560. placeHolder_533,
  7561. placeHolder_534,
  7562. placeHolder_535,
  7563. placeHolder_536,
  7564. placeHolder_537,
  7565. placeHolder_538,
  7566. placeHolder_539,
  7567. placeHolder_540,
  7568. placeHolder_541,
  7569. placeHolder_542,
  7570. placeHolder_543,
  7571. placeHolder_544,
  7572. placeHolder_545,
  7573. placeHolder_546,
  7574. placeHolder_547,
  7575. placeHolder_548,
  7576. placeHolder_549,
  7577. placeHolder_550,
  7578. placeHolder_551,
  7579. placeHolder_552,
  7580. placeHolder_553,
  7581. placeHolder_554,
  7582. placeHolder_555,
  7583. placeHolder_556,
  7584. placeHolder_557,
  7585. placeHolder_558,
  7586. placeHolder_559,
  7587. placeHolder_560,
  7588. placeHolder_561,
  7589. placeHolder_562,
  7590. placeHolder_563,
  7591. placeHolder_564,
  7592. placeHolder_565,
  7593. placeHolder_566,
  7594. placeHolder_567,
  7595. placeHolder_568,
  7596. placeHolder_569,
  7597. placeHolder_570,
  7598. placeHolder_571,
  7599. placeHolder_572,
  7600. placeHolder_573,
  7601. placeHolder_574,
  7602. placeHolder_575,
  7603. placeHolder_576,
  7604. placeHolder_577,
  7605. placeHolder_578,
  7606. placeHolder_579,
  7607. placeHolder_580,
  7608. placeHolder_581,
  7609. placeHolder_582,
  7610. placeHolder_583,
  7611. placeHolder_584,
  7612. placeHolder_585,
  7613. placeHolder_586,
  7614. placeHolder_587,
  7615. placeHolder_588,
  7616. placeHolder_589,
  7617. placeHolder_590,
  7618. placeHolder_591,
  7619. placeHolder_592,
  7620. placeHolder_593,
  7621. placeHolder_594,
  7622. placeHolder_595,
  7623. placeHolder_596,
  7624. placeHolder_597,
  7625. placeHolder_598,
  7626. placeHolder_599,
  7627. placeHolder_600,
  7628. placeHolder_601,
  7629. placeHolder_602,
  7630. placeHolder_603,
  7631. placeHolder_604,
  7632. placeHolder_605,
  7633. placeHolder_606,
  7634. placeHolder_607,
  7635. placeHolder_608,
  7636. placeHolder_609,
  7637. placeHolder_610,
  7638. placeHolder_611,
  7639. placeHolder_612,
  7640. placeHolder_613,
  7641. placeHolder_614,
  7642. placeHolder_615,
  7643. placeHolder_616,
  7644. placeHolder_617,
  7645. placeHolder_618,
  7646. placeHolder_619,
  7647. placeHolder_620,
  7648. placeHolder_621,
  7649. placeHolder_622,
  7650. placeHolder_623,
  7651. placeHolder_624,
  7652. placeHolder_625,
  7653. placeHolder_626,
  7654. placeHolder_627,
  7655. placeHolder_628,
  7656. placeHolder_629,
  7657. placeHolder_630,
  7658. placeHolder_631,
  7659. placeHolder_632,
  7660. placeHolder_633,
  7661. placeHolder_634,
  7662. placeHolder_635,
  7663. placeHolder_636,
  7664. placeHolder_637,
  7665. placeHolder_638,
  7666. placeHolder_639,
  7667. placeHolder_640,
  7668. placeHolder_641,
  7669. placeHolder_642,
  7670. placeHolder_643,
  7671. placeHolder_644,
  7672. placeHolder_645,
  7673. placeHolder_646,
  7674. placeHolder_647,
  7675. placeHolder_648,
  7676. placeHolder_649,
  7677. placeHolder_650,
  7678. placeHolder_651,
  7679. placeHolder_652,
  7680. placeHolder_653,
  7681. placeHolder_654,
  7682. placeHolder_655,
  7683. placeHolder_656,
  7684. placeHolder_657,
  7685. placeHolder_658,
  7686. placeHolder_659,
  7687. placeHolder_660,
  7688. placeHolder_661,
  7689. placeHolder_662,
  7690. placeHolder_663,
  7691. placeHolder_664,
  7692. placeHolder_665,
  7693. placeHolder_666,
  7694. placeHolder_667,
  7695. placeHolder_668,
  7696. placeHolder_669,
  7697. placeHolder_670,
  7698. placeHolder_671,
  7699. placeHolder_672,
  7700. placeHolder_673,
  7701. placeHolder_674,
  7702. placeHolder_675,
  7703. placeHolder_676,
  7704. placeHolder_677,
  7705. placeHolder_678,
  7706. placeHolder_679,
  7707. placeHolder_680,
  7708. placeHolder_681,
  7709. placeHolder_682,
  7710. placeHolder_683,
  7711. placeHolder_684,
  7712. placeHolder_685,
  7713. placeHolder_686,
  7714. placeHolder_687,
  7715. placeHolder_688,
  7716. placeHolder_689,
  7717. placeHolder_690,
  7718. placeHolder_691,
  7719. placeHolder_692,
  7720. placeHolder_693,
  7721. placeHolder_694,
  7722. placeHolder_695,
  7723. placeHolder_696,
  7724. placeHolder_697,
  7725. placeHolder_698,
  7726. placeHolder_699,
  7727. placeHolder_700,
  7728. placeHolder_701,
  7729. placeHolder_702,
  7730. placeHolder_703,
  7731. placeHolder_704,
  7732. placeHolder_705,
  7733. placeHolder_706,
  7734. placeHolder_707,
  7735. placeHolder_708,
  7736. placeHolder_709,
  7737. placeHolder_710,
  7738. placeHolder_711,
  7739. placeHolder_712,
  7740. placeHolder_713,
  7741. placeHolder_714,
  7742. placeHolder_715,
  7743. placeHolder_716,
  7744. placeHolder_717,
  7745. placeHolder_718,
  7746. placeHolder_719,
  7747. placeHolder_720,
  7748. placeHolder_721,
  7749. placeHolder_722,
  7750. placeHolder_723,
  7751. placeHolder_724,
  7752. placeHolder_725,
  7753. placeHolder_726,
  7754. placeHolder_727,
  7755. placeHolder_728,
  7756. placeHolder_729,
  7757. placeHolder_730,
  7758. placeHolder_731,
  7759. placeHolder_732,
  7760. placeHolder_733,
  7761. placeHolder_734,
  7762. placeHolder_735,
  7763. placeHolder_736,
  7764. placeHolder_737,
  7765. placeHolder_738,
  7766. placeHolder_739,
  7767. placeHolder_740,
  7768. placeHolder_741,
  7769. placeHolder_742,
  7770. placeHolder_743,
  7771. placeHolder_744,
  7772. placeHolder_745,
  7773. placeHolder_746,
  7774. placeHolder_747,
  7775. placeHolder_748,
  7776. placeHolder_749,
  7777. placeHolder_750,
  7778. placeHolder_751,
  7779. placeHolder_752,
  7780. placeHolder_753,
  7781. placeHolder_754,
  7782. placeHolder_755,
  7783. placeHolder_756,
  7784. placeHolder_757,
  7785. placeHolder_758,
  7786. placeHolder_759,
  7787. placeHolder_760,
  7788. placeHolder_761,
  7789. placeHolder_762,
  7790. placeHolder_763,
  7791. placeHolder_764,
  7792. placeHolder_765,
  7793. placeHolder_766,
  7794. placeHolder_767,
  7795. placeHolder_768,
  7796. placeHolder_769,
  7797. placeHolder_770,
  7798. placeHolder_771,
  7799. placeHolder_772,
  7800. placeHolder_773,
  7801. placeHolder_774,
  7802. placeHolder_775,
  7803. placeHolder_776,
  7804. placeHolder_777,
  7805. placeHolder_778,
  7806. placeHolder_779,
  7807. placeHolder_780,
  7808. placeHolder_781,
  7809. placeHolder_782,
  7810. placeHolder_783,
  7811. placeHolder_784,
  7812. placeHolder_785,
  7813. placeHolder_786,
  7814. placeHolder_787,
  7815. placeHolder_788,
  7816. placeHolder_789,
  7817. placeHolder_790,
  7818. placeHolder_791,
  7819. placeHolder_792,
  7820. placeHolder_793,
  7821. placeHolder_794,
  7822. placeHolder_795,
  7823. placeHolder_796,
  7824. placeHolder_797,
  7825. placeHolder_798,
  7826. placeHolder_799,
  7827. placeHolder_800,
  7828. placeHolder_801,
  7829. placeHolder_802,
  7830. placeHolder_803,
  7831. placeHolder_804,
  7832. placeHolder_805,
  7833. placeHolder_806,
  7834. placeHolder_807,
  7835. placeHolder_808,
  7836. placeHolder_809,
  7837. placeHolder_810,
  7838. placeHolder_811,
  7839. placeHolder_812,
  7840. placeHolder_813,
  7841. placeHolder_814,
  7842. placeHolder_815,
  7843. placeHolder_816,
  7844. placeHolder_817,
  7845. placeHolder_818,
  7846. placeHolder_819,
  7847. placeHolder_820,
  7848. placeHolder_821,
  7849. placeHolder_822,
  7850. placeHolder_823,
  7851. placeHolder_824,
  7852. placeHolder_825,
  7853. placeHolder_826,
  7854. placeHolder_827,
  7855. placeHolder_828,
  7856. placeHolder_829,
  7857. placeHolder_830,
  7858. placeHolder_831,
  7859. placeHolder_832,
  7860. placeHolder_833,
  7861. placeHolder_834,
  7862. placeHolder_835,
  7863. placeHolder_836,
  7864. placeHolder_837,
  7865. placeHolder_838,
  7866. placeHolder_839,
  7867. placeHolder_840,
  7868. placeHolder_841,
  7869. placeHolder_842,
  7870. placeHolder_843,
  7871. placeHolder_844,
  7872. placeHolder_845,
  7873. placeHolder_846,
  7874. placeHolder_847,
  7875. placeHolder_848,
  7876. placeHolder_849,
  7877. placeHolder_850,
  7878. placeHolder_851,
  7879. placeHolder_852,
  7880. placeHolder_853,
  7881. placeHolder_854,
  7882. placeHolder_855,
  7883. placeHolder_856,
  7884. placeHolder_857,
  7885. placeHolder_858,
  7886. placeHolder_859,
  7887. placeHolder_860,
  7888. placeHolder_861,
  7889. placeHolder_862,
  7890. placeHolder_863,
  7891. placeHolder_864,
  7892. placeHolder_865,
  7893. placeHolder_866,
  7894. placeHolder_867,
  7895. placeHolder_868,
  7896. placeHolder_869,
  7897. placeHolder_870,
  7898. placeHolder_871,
  7899. placeHolder_872,
  7900. placeHolder_873,
  7901. placeHolder_874,
  7902. placeHolder_875,
  7903. placeHolder_876,
  7904. placeHolder_877,
  7905. placeHolder_878,
  7906. placeHolder_879,
  7907. placeHolder_880,
  7908. placeHolder_881,
  7909. placeHolder_882,
  7910. placeHolder_883,
  7911. placeHolder_884,
  7912. placeHolder_885,
  7913. placeHolder_886,
  7914. placeHolder_887,
  7915. placeHolder_888,
  7916. placeHolder_889,
  7917. placeHolder_890,
  7918. placeHolder_891,
  7919. placeHolder_892,
  7920. placeHolder_893,
  7921. placeHolder_894,
  7922. placeHolder_895,
  7923. placeHolder_896,
  7924. placeHolder_897,
  7925. placeHolder_898,
  7926. placeHolder_899,
  7927. placeHolder_900,
  7928. placeHolder_901,
  7929. placeHolder_902,
  7930. placeHolder_903,
  7931. placeHolder_904,
  7932. placeHolder_905,
  7933. placeHolder_906,
  7934. placeHolder_907,
  7935. placeHolder_908,
  7936. placeHolder_909,
  7937. placeHolder_910,
  7938. placeHolder_911,
  7939. placeHolder_912,
  7940. placeHolder_913,
  7941. placeHolder_914,
  7942. placeHolder_915,
  7943. placeHolder_916,
  7944. placeHolder_917,
  7945. placeHolder_918,
  7946. placeHolder_919,
  7947. placeHolder_920,
  7948. placeHolder_921,
  7949. placeHolder_922,
  7950. placeHolder_923,
  7951. placeHolder_924,
  7952. placeHolder_925,
  7953. placeHolder_926,
  7954. placeHolder_927,
  7955. placeHolder_928,
  7956. placeHolder_929,
  7957. placeHolder_930,
  7958. placeHolder_931,
  7959. placeHolder_932,
  7960. placeHolder_933,
  7961. placeHolder_934,
  7962. placeHolder_935,
  7963. placeHolder_936,
  7964. placeHolder_937,
  7965. placeHolder_938,
  7966. placeHolder_939,
  7967. placeHolder_940,
  7968. placeHolder_941,
  7969. placeHolder_942,
  7970. placeHolder_943,
  7971. placeHolder_944,
  7972. placeHolder_945,
  7973. placeHolder_946,
  7974. placeHolder_947,
  7975. placeHolder_948,
  7976. placeHolder_949,
  7977. placeHolder_950,
  7978. placeHolder_951,
  7979. placeHolder_952,
  7980. placeHolder_953,
  7981. placeHolder_954,
  7982. placeHolder_955,
  7983. placeHolder_956,
  7984. placeHolder_957,
  7985. placeHolder_958,
  7986. placeHolder_959,
  7987. placeHolder_960,
  7988. placeHolder_961,
  7989. placeHolder_962,
  7990. placeHolder_963,
  7991. placeHolder_964,
  7992. placeHolder_965,
  7993. placeHolder_966,
  7994. placeHolder_967,
  7995. placeHolder_968,
  7996. placeHolder_969,
  7997. placeHolder_970,
  7998. placeHolder_971,
  7999. placeHolder_972,
  8000. placeHolder_973,
  8001. placeHolder_974,
  8002. placeHolder_975,
  8003. placeHolder_976,
  8004. placeHolder_977,
  8005. placeHolder_978,
  8006. placeHolder_979,
  8007. placeHolder_980,
  8008. placeHolder_981,
  8009. placeHolder_982,
  8010. placeHolder_983,
  8011. placeHolder_984,
  8012. placeHolder_985,
  8013. placeHolder_986,
  8014. placeHolder_987,
  8015. placeHolder_988,
  8016. placeHolder_989,
  8017. placeHolder_990,
  8018. placeHolder_991,
  8019. placeHolder_992,
  8020. placeHolder_993,
  8021. placeHolder_994,
  8022. placeHolder_995,
  8023. placeHolder_996,
  8024. placeHolder_997,
  8025. placeHolder_998,
  8026. Unregistered,
  8027. }
  8028. enum PatientGenderEnum {
  8029. NotFilled,
  8030. Male,
  8031. Female,
  8032. }
  8033. enum AnimalGenderEnum {
  8034. AnimalInfoNotFilled,
  8035. AnimalInfoMale,
  8036. AnimalInfoFemale,
  8037. }
  8038. enum RegionGradeEnum {
  8039. Country,
  8040. Province,
  8041. City,
  8042. Area,
  8043. }
  8044. enum RelevanceTypeEnum {
  8045. Course,
  8046. }
  8047. enum RemedicalAIDiagnosisStatusEnum {
  8048. Null,
  8049. NoObviousLesion,
  8050. Benign,
  8051. Malignant,
  8052. BenignAndMalignant,
  8053. }
  8054. enum RemedicalApparatusTypeEnum {
  8055. BreastOuterUpper,
  8056. BreastInnerUpper,
  8057. BreastOuterLower,
  8058. BreastInnerLower,
  8059. Lobe,
  8060. LobeOfUnder,
  8061. LobeOfInter,
  8062. Thyroid,
  8063. Abdomen,
  8064. }
  8065. enum RemedicalImageLocationTypeEnum {
  8066. BreastImageLocation,
  8067. LiverImageLocation,
  8068. ThyroidImageLocation,
  8069. PositionImageLocation,
  8070. }
  8071. enum RemedicalImagePositionTypeEnum {
  8072. None,
  8073. Left,
  8074. Right,
  8075. Middle,
  8076. }
  8077. enum ReportTemplateQueryTypeEnum {
  8078. All,
  8079. Personal,
  8080. Organization,
  8081. }
  8082. enum SyncTypeEnum {
  8083. Initiate,
  8084. Accept,
  8085. Reject,
  8086. CancelInitiate,
  8087. HeartRateJoin,
  8088. NetworkErr,
  8089. HeartRateLeave,
  8090. Leave,
  8091. Close,
  8092. ChangeMuteState,
  8093. ChangeVideoOpenState,
  8094. InviteIn,
  8095. CancelInviteIn,
  8096. AcceptIn,
  8097. RejectIn,
  8098. ChangeConsultationStatus,
  8099. Agree,
  8100. Notification,
  8101. EmergencyAccept,
  8102. ChangeControllingParameter,
  8103. SendInteractiveBoardData,
  8104. ChangeRoom,
  8105. SaveViewer,
  8106. DeleteViewer,
  8107. DeviceAcceptIn,
  8108. SyncControllingParameter,
  8109. }
  8110. enum SyncServiceEnum {
  8111. Live,
  8112. LiveConsultation,
  8113. Notification,
  8114. ScanLogin,
  8115. Device,
  8116. }
  8117. enum WSConnectTypeEnum {
  8118. Default,
  8119. ConsultationSecondWindow,
  8120. EducationSecondWindow,
  8121. }
  8122. enum ASETypeEnum {
  8123. Off,
  8124. Max,
  8125. Mean,
  8126. Both,
  8127. }
  8128. enum StraightLineShapeEnum {
  8129. StraightLine,
  8130. HalfCircle,
  8131. AutoPWVSlope,
  8132. }
  8133. enum DefinitionMeasureItemsEnum {
  8134. Default,
  8135. UserDefined,
  8136. }
  8137. enum DefinitionPriorityEnum {
  8138. Notset,
  8139. Root,
  8140. Global,
  8141. GlobalCategory,
  8142. GlobalApp,
  8143. FactoryDefault,
  8144. OemDefault,
  8145. UserDefined,
  8146. }
  8147. enum MeasureTypeUnitEnum {
  8148. None,
  8149. AreaUnit,
  8150. VelocityUnit,
  8151. TimeUnit,
  8152. }
  8153. enum UnExecuteAction {
  8154. None,
  8155. OneStep,
  8156. AllSteps,
  8157. GeometryOnly,
  8158. }
  8159. class PriorityPair {
  8160. DefinitionPriorityEnum target;
  8161. DefinitionPriorityEnum? base;
  8162. PriorityPair({
  8163. this.target = DefinitionPriorityEnum.Notset,
  8164. this.base,
  8165. });
  8166. factory PriorityPair.fromJson(Map<String, dynamic> map) {
  8167. return PriorityPair(
  8168. target: DefinitionPriorityEnum.values.firstWhere((e) => e.index == map['Target']),
  8169. base: map['Base'] != null ? DefinitionPriorityEnum.values.firstWhere((e) => e.index == map['Base']) : null,
  8170. );
  8171. }
  8172. Map<String, dynamic> toJson() {
  8173. final map = Map<String, dynamic>();
  8174. map['Target'] = target.index;
  8175. if(base != null)
  8176. map['Base'] = base;
  8177. return map;
  8178. }
  8179. }
  8180. class DefinitionPriorityEnumExtension {
  8181. DefinitionPriorityEnumExtension();
  8182. factory DefinitionPriorityEnumExtension.fromJson(Map<String, dynamic> map) {
  8183. return DefinitionPriorityEnumExtension(
  8184. );
  8185. }
  8186. Map<String, dynamic> toJson() {
  8187. final map = Map<String, dynamic>();
  8188. return map;
  8189. }
  8190. }
  8191. enum TracePeakType {
  8192. Normal,
  8193. OnePeak,
  8194. TwoPeaks,
  8195. }
  8196. enum LineWeightType {
  8197. NormalWeight,
  8198. Thin,
  8199. }
  8200. enum IMTType {
  8201. placeHolder_0,
  8202. Post,
  8203. Ant,
  8204. Both,
  8205. }
  8206. enum MeasureSectionType {
  8207. None,
  8208. Root,
  8209. Application,
  8210. MeasureMode,
  8211. Group,
  8212. Folder,
  8213. Item,
  8214. Calculator,
  8215. OutPut,
  8216. Formular,
  8217. Processor,
  8218. TypeParams,
  8219. }
  8220. enum ModeTypeEnum {
  8221. Undefined,
  8222. Tissue,
  8223. Flow,
  8224. Doppler,
  8225. TissueTM,
  8226. }
  8227. enum ResourceDefPriorityEnum {
  8228. Root,
  8229. placeHolder_1,
  8230. placeHolder_2,
  8231. placeHolder_3,
  8232. placeHolder_4,
  8233. placeHolder_5,
  8234. placeHolder_6,
  8235. placeHolder_7,
  8236. placeHolder_8,
  8237. placeHolder_9,
  8238. placeHolder_10,
  8239. placeHolder_11,
  8240. placeHolder_12,
  8241. placeHolder_13,
  8242. placeHolder_14,
  8243. placeHolder_15,
  8244. placeHolder_16,
  8245. placeHolder_17,
  8246. placeHolder_18,
  8247. placeHolder_19,
  8248. placeHolder_20,
  8249. placeHolder_21,
  8250. placeHolder_22,
  8251. placeHolder_23,
  8252. placeHolder_24,
  8253. placeHolder_25,
  8254. placeHolder_26,
  8255. placeHolder_27,
  8256. placeHolder_28,
  8257. placeHolder_29,
  8258. placeHolder_30,
  8259. placeHolder_31,
  8260. placeHolder_32,
  8261. placeHolder_33,
  8262. placeHolder_34,
  8263. placeHolder_35,
  8264. placeHolder_36,
  8265. placeHolder_37,
  8266. placeHolder_38,
  8267. placeHolder_39,
  8268. FactoryDefault,
  8269. placeHolder_41,
  8270. placeHolder_42,
  8271. placeHolder_43,
  8272. placeHolder_44,
  8273. PackageDefault,
  8274. placeHolder_46,
  8275. placeHolder_47,
  8276. placeHolder_48,
  8277. placeHolder_49,
  8278. OemDefault,
  8279. placeHolder_51,
  8280. placeHolder_52,
  8281. placeHolder_53,
  8282. placeHolder_54,
  8283. placeHolder_55,
  8284. placeHolder_56,
  8285. placeHolder_57,
  8286. placeHolder_58,
  8287. placeHolder_59,
  8288. UserDefined,
  8289. }
  8290. enum Unit {
  8291. None,
  8292. percent,
  8293. fraction,
  8294. placeHolder_3,
  8295. placeHolder_4,
  8296. placeHolder_5,
  8297. placeHolder_6,
  8298. placeHolder_7,
  8299. placeHolder_8,
  8300. placeHolder_9,
  8301. cm,
  8302. mm,
  8303. inch,
  8304. ft,
  8305. placeHolder_14,
  8306. placeHolder_15,
  8307. placeHolder_16,
  8308. placeHolder_17,
  8309. placeHolder_18,
  8310. placeHolder_19,
  8311. s,
  8312. minute,
  8313. hour,
  8314. day,
  8315. week,
  8316. week_day,
  8317. Tick,
  8318. msec,
  8319. placeHolder_28,
  8320. placeHolder_29,
  8321. degree,
  8322. radian,
  8323. placeHolder_32,
  8324. placeHolder_33,
  8325. placeHolder_34,
  8326. placeHolder_35,
  8327. placeHolder_36,
  8328. placeHolder_37,
  8329. placeHolder_38,
  8330. placeHolder_39,
  8331. g,
  8332. mg,
  8333. ng,
  8334. kg,
  8335. oz,
  8336. lb,
  8337. lb_oz,
  8338. placeHolder_47,
  8339. placeHolder_48,
  8340. placeHolder_49,
  8341. cm2,
  8342. mm2,
  8343. m2,
  8344. placeHolder_53,
  8345. placeHolder_54,
  8346. placeHolder_55,
  8347. placeHolder_56,
  8348. placeHolder_57,
  8349. placeHolder_58,
  8350. placeHolder_59,
  8351. cm3,
  8352. mm3,
  8353. ml,
  8354. L,
  8355. placeHolder_64,
  8356. placeHolder_65,
  8357. placeHolder_66,
  8358. placeHolder_67,
  8359. placeHolder_68,
  8360. placeHolder_69,
  8361. cms,
  8362. mms,
  8363. ms,
  8364. placeHolder_73,
  8365. placeHolder_74,
  8366. placeHolder_75,
  8367. placeHolder_76,
  8368. placeHolder_77,
  8369. placeHolder_78,
  8370. placeHolder_79,
  8371. cms2,
  8372. mms2,
  8373. placeHolder_82,
  8374. placeHolder_83,
  8375. placeHolder_84,
  8376. placeHolder_85,
  8377. placeHolder_86,
  8378. placeHolder_87,
  8379. placeHolder_88,
  8380. placeHolder_89,
  8381. cm3s,
  8382. mls,
  8383. mlmin,
  8384. Lmin,
  8385. placeHolder_94,
  8386. placeHolder_95,
  8387. placeHolder_96,
  8388. placeHolder_97,
  8389. placeHolder_98,
  8390. placeHolder_99,
  8391. gcm3,
  8392. gml,
  8393. ngml,
  8394. placeHolder_103,
  8395. placeHolder_104,
  8396. placeHolder_105,
  8397. placeHolder_106,
  8398. placeHolder_107,
  8399. placeHolder_108,
  8400. placeHolder_109,
  8401. mmHg,
  8402. placeHolder_111,
  8403. placeHolder_112,
  8404. placeHolder_113,
  8405. placeHolder_114,
  8406. placeHolder_115,
  8407. placeHolder_116,
  8408. placeHolder_117,
  8409. placeHolder_118,
  8410. placeHolder_119,
  8411. mV,
  8412. placeHolder_121,
  8413. placeHolder_122,
  8414. placeHolder_123,
  8415. placeHolder_124,
  8416. placeHolder_125,
  8417. placeHolder_126,
  8418. placeHolder_127,
  8419. placeHolder_128,
  8420. placeHolder_129,
  8421. Hz,
  8422. KHz,
  8423. HR,
  8424. placeHolder_133,
  8425. placeHolder_134,
  8426. placeHolder_135,
  8427. placeHolder_136,
  8428. placeHolder_137,
  8429. placeHolder_138,
  8430. placeHolder_139,
  8431. cm3m2,
  8432. mlm2,
  8433. placeHolder_142,
  8434. placeHolder_143,
  8435. placeHolder_144,
  8436. placeHolder_145,
  8437. placeHolder_146,
  8438. placeHolder_147,
  8439. placeHolder_148,
  8440. placeHolder_149,
  8441. cm3sm2,
  8442. mlsm2,
  8443. placeHolder_152,
  8444. cm3minm2,
  8445. mlminm2,
  8446. Lminm2,
  8447. placeHolder_156,
  8448. placeHolder_157,
  8449. placeHolder_158,
  8450. placeHolder_159,
  8451. circs,
  8452. placeHolder_161,
  8453. placeHolder_162,
  8454. placeHolder_163,
  8455. placeHolder_164,
  8456. placeHolder_165,
  8457. placeHolder_166,
  8458. placeHolder_167,
  8459. placeHolder_168,
  8460. placeHolder_169,
  8461. mlbeat,
  8462. placeHolder_171,
  8463. placeHolder_172,
  8464. placeHolder_173,
  8465. placeHolder_174,
  8466. placeHolder_175,
  8467. placeHolder_176,
  8468. placeHolder_177,
  8469. placeHolder_178,
  8470. placeHolder_179,
  8471. mm2pa,
  8472. d1mpa,
  8473. kpa,
  8474. placeHolder_183,
  8475. placeHolder_184,
  8476. placeHolder_185,
  8477. placeHolder_186,
  8478. placeHolder_187,
  8479. placeHolder_188,
  8480. placeHolder_189,
  8481. mmHgs,
  8482. placeHolder_191,
  8483. placeHolder_192,
  8484. placeHolder_193,
  8485. placeHolder_194,
  8486. placeHolder_195,
  8487. placeHolder_196,
  8488. placeHolder_197,
  8489. placeHolder_198,
  8490. placeHolder_199,
  8491. gm2,
  8492. kgm2,
  8493. placeHolder_202,
  8494. placeHolder_203,
  8495. placeHolder_204,
  8496. placeHolder_205,
  8497. placeHolder_206,
  8498. placeHolder_207,
  8499. placeHolder_208,
  8500. placeHolder_209,
  8501. cm2m2,
  8502. placeHolder_211,
  8503. placeHolder_212,
  8504. placeHolder_213,
  8505. placeHolder_214,
  8506. placeHolder_215,
  8507. placeHolder_216,
  8508. placeHolder_217,
  8509. placeHolder_218,
  8510. placeHolder_219,
  8511. cmm2,
  8512. mmm2,
  8513. placeHolder_222,
  8514. placeHolder_223,
  8515. placeHolder_224,
  8516. placeHolder_225,
  8517. placeHolder_226,
  8518. placeHolder_227,
  8519. placeHolder_228,
  8520. placeHolder_229,
  8521. pers,
  8522. placeHolder_231,
  8523. placeHolder_232,
  8524. placeHolder_233,
  8525. placeHolder_234,
  8526. placeHolder_235,
  8527. placeHolder_236,
  8528. placeHolder_237,
  8529. placeHolder_238,
  8530. placeHolder_239,
  8531. placeHolder_240,
  8532. placeHolder_241,
  8533. placeHolder_242,
  8534. placeHolder_243,
  8535. placeHolder_244,
  8536. placeHolder_245,
  8537. placeHolder_246,
  8538. placeHolder_247,
  8539. placeHolder_248,
  8540. placeHolder_249,
  8541. Celsius,
  8542. Fahrenheit,
  8543. placeHolder_252,
  8544. placeHolder_253,
  8545. placeHolder_254,
  8546. placeHolder_255,
  8547. placeHolder_256,
  8548. placeHolder_257,
  8549. placeHolder_258,
  8550. placeHolder_259,
  8551. Ohm,
  8552. placeHolder_261,
  8553. placeHolder_262,
  8554. placeHolder_263,
  8555. placeHolder_264,
  8556. placeHolder_265,
  8557. placeHolder_266,
  8558. placeHolder_267,
  8559. placeHolder_268,
  8560. placeHolder_269,
  8561. mmHgml,
  8562. }
  8563. enum ArrowOrientation {
  8564. Down,
  8565. Left,
  8566. Up,
  8567. Right,
  8568. }
  8569. class UserScanInfo {
  8570. String? scanCode;
  8571. ScanLoginSource scanLoginSource;
  8572. Platform platform;
  8573. DateTime? createTime;
  8574. DateTime? expireTime;
  8575. String? installVersion;
  8576. LoginResult? loginResult;
  8577. UserScanInfo({
  8578. this.scanCode,
  8579. this.scanLoginSource = ScanLoginSource.PC,
  8580. this.platform = Platform.Windows,
  8581. this.createTime,
  8582. this.expireTime,
  8583. this.installVersion,
  8584. this.loginResult,
  8585. });
  8586. factory UserScanInfo.fromJson(Map<String, dynamic> map) {
  8587. return UserScanInfo(
  8588. scanCode: map['ScanCode'],
  8589. scanLoginSource: ScanLoginSource.values.firstWhere((e) => e.index == map['ScanLoginSource']),
  8590. platform: Platform.values.firstWhere((e) => e.index == map['Platform']),
  8591. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  8592. expireTime: map['ExpireTime'] != null ? DateTime.parse(map['ExpireTime']) : null,
  8593. installVersion: map['InstallVersion'],
  8594. loginResult: map['LoginResult'] != null ? LoginResult.fromJson(map['LoginResult']) : null,
  8595. );
  8596. }
  8597. Map<String, dynamic> toJson() {
  8598. final map = Map<String, dynamic>();
  8599. if(scanCode != null)
  8600. map['ScanCode'] = scanCode;
  8601. map['ScanLoginSource'] = scanLoginSource.index;
  8602. map['Platform'] = platform.index;
  8603. if(createTime != null)
  8604. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  8605. if(expireTime != null)
  8606. map['ExpireTime'] = JsonRpcUtils.dateFormat(expireTime!);
  8607. if(installVersion != null)
  8608. map['InstallVersion'] = installVersion;
  8609. if(loginResult != null)
  8610. map['LoginResult'] = loginResult;
  8611. return map;
  8612. }
  8613. }
  8614. class UserCMSDTO {
  8615. String? cMSData;
  8616. UserCMSDTO({
  8617. this.cMSData,
  8618. });
  8619. factory UserCMSDTO.fromJson(Map<String, dynamic> map) {
  8620. return UserCMSDTO(
  8621. cMSData: map['CMSData'],
  8622. );
  8623. }
  8624. Map<String, dynamic> toJson() {
  8625. final map = Map<String, dynamic>();
  8626. if(cMSData != null)
  8627. map['CMSData'] = cMSData;
  8628. return map;
  8629. }
  8630. }
  8631. class UserPasswordDTO extends BaseDTO{
  8632. String? userCode;
  8633. String? userName;
  8634. String? secretPassword;
  8635. String? phone;
  8636. String? email;
  8637. String? nickName;
  8638. String? fullName;
  8639. String? headImageUrl;
  8640. String? organizationCode;
  8641. String? rootOrganizationCode;
  8642. List<String >? authorityGroups;
  8643. List<String >? bindDevices;
  8644. String? lastIP;
  8645. int logintimes;
  8646. UserInfoStateEnum userState;
  8647. List<String >? roleCodes;
  8648. List<String >? rankCodes;
  8649. List<String >? positionCodes;
  8650. ApplyStateEnum applyState;
  8651. List<String >? fieldList;
  8652. List<String >? deletePatientCodes;
  8653. bool isBatchExportDiagnoseData;
  8654. String? bindAssistantUserCode;
  8655. String? bindAssistantDoctorUserCode;
  8656. DateTime? passwordUpdateTime;
  8657. List<String >? passwordRecords;
  8658. String? signature;
  8659. String? language;
  8660. bool enableReportLabel;
  8661. UserPasswordDTO({
  8662. this.userCode,
  8663. this.userName,
  8664. this.secretPassword,
  8665. this.phone,
  8666. this.email,
  8667. this.nickName,
  8668. this.fullName,
  8669. this.headImageUrl,
  8670. this.organizationCode,
  8671. this.rootOrganizationCode,
  8672. this.authorityGroups,
  8673. this.bindDevices,
  8674. this.lastIP,
  8675. this.logintimes = 0,
  8676. this.userState = UserInfoStateEnum.Nonactivated,
  8677. this.roleCodes,
  8678. this.rankCodes,
  8679. this.positionCodes,
  8680. this.applyState = ApplyStateEnum.NotApply,
  8681. this.fieldList,
  8682. this.deletePatientCodes,
  8683. this.isBatchExportDiagnoseData = false,
  8684. this.bindAssistantUserCode,
  8685. this.bindAssistantDoctorUserCode,
  8686. this.passwordUpdateTime,
  8687. this.passwordRecords,
  8688. this.signature,
  8689. this.language,
  8690. this.enableReportLabel = false,
  8691. DateTime? createTime,
  8692. DateTime? updateTime,
  8693. }) : super(
  8694. createTime: createTime,
  8695. updateTime: updateTime,
  8696. );
  8697. factory UserPasswordDTO.fromJson(Map<String, dynamic> map) {
  8698. return UserPasswordDTO(
  8699. userCode: map['UserCode'],
  8700. userName: map['UserName'],
  8701. secretPassword: map['SecretPassword'],
  8702. phone: map['Phone'],
  8703. email: map['Email'],
  8704. nickName: map['NickName'],
  8705. fullName: map['FullName'],
  8706. headImageUrl: map['HeadImageUrl'],
  8707. organizationCode: map['OrganizationCode'],
  8708. rootOrganizationCode: map['RootOrganizationCode'],
  8709. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  8710. bindDevices: map['BindDevices'] != null ? map['BindDevices'].cast<String>().toList() : null,
  8711. lastIP: map['LastIP'],
  8712. logintimes: map['Logintimes'],
  8713. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  8714. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  8715. rankCodes: map['RankCodes'] != null ? map['RankCodes'].cast<String>().toList() : null,
  8716. positionCodes: map['PositionCodes'] != null ? map['PositionCodes'].cast<String>().toList() : null,
  8717. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  8718. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  8719. deletePatientCodes: map['DeletePatientCodes'] != null ? map['DeletePatientCodes'].cast<String>().toList() : null,
  8720. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  8721. bindAssistantUserCode: map['BindAssistantUserCode'],
  8722. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  8723. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  8724. passwordRecords: map['PasswordRecords'] != null ? map['PasswordRecords'].cast<String>().toList() : null,
  8725. signature: map['Signature'],
  8726. language: map['Language'],
  8727. enableReportLabel: map['EnableReportLabel'],
  8728. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  8729. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  8730. );
  8731. }
  8732. Map<String, dynamic> toJson() {
  8733. final map = super.toJson();
  8734. if(userCode != null)
  8735. map['UserCode'] = userCode;
  8736. if(userName != null)
  8737. map['UserName'] = userName;
  8738. if(secretPassword != null)
  8739. map['SecretPassword'] = secretPassword;
  8740. if(phone != null)
  8741. map['Phone'] = phone;
  8742. if(email != null)
  8743. map['Email'] = email;
  8744. if(nickName != null)
  8745. map['NickName'] = nickName;
  8746. if(fullName != null)
  8747. map['FullName'] = fullName;
  8748. if(headImageUrl != null)
  8749. map['HeadImageUrl'] = headImageUrl;
  8750. if(organizationCode != null)
  8751. map['OrganizationCode'] = organizationCode;
  8752. if(rootOrganizationCode != null)
  8753. map['RootOrganizationCode'] = rootOrganizationCode;
  8754. if(authorityGroups != null)
  8755. map['AuthorityGroups'] = authorityGroups;
  8756. if(bindDevices != null)
  8757. map['BindDevices'] = bindDevices;
  8758. if(lastIP != null)
  8759. map['LastIP'] = lastIP;
  8760. map['Logintimes'] = logintimes;
  8761. map['UserState'] = userState.index;
  8762. if(roleCodes != null)
  8763. map['RoleCodes'] = roleCodes;
  8764. if(rankCodes != null)
  8765. map['RankCodes'] = rankCodes;
  8766. if(positionCodes != null)
  8767. map['PositionCodes'] = positionCodes;
  8768. map['ApplyState'] = applyState.index;
  8769. if(fieldList != null)
  8770. map['FieldList'] = fieldList;
  8771. if(deletePatientCodes != null)
  8772. map['DeletePatientCodes'] = deletePatientCodes;
  8773. map['IsBatchExportDiagnoseData'] = isBatchExportDiagnoseData;
  8774. if(bindAssistantUserCode != null)
  8775. map['BindAssistantUserCode'] = bindAssistantUserCode;
  8776. if(bindAssistantDoctorUserCode != null)
  8777. map['BindAssistantDoctorUserCode'] = bindAssistantDoctorUserCode;
  8778. if(passwordUpdateTime != null)
  8779. map['PasswordUpdateTime'] = JsonRpcUtils.dateFormat(passwordUpdateTime!);
  8780. if(passwordRecords != null)
  8781. map['PasswordRecords'] = passwordRecords;
  8782. if(signature != null)
  8783. map['Signature'] = signature;
  8784. if(language != null)
  8785. map['Language'] = language;
  8786. map['EnableReportLabel'] = enableReportLabel;
  8787. return map;
  8788. }
  8789. }
  8790. class UserTokenDTO {
  8791. String? token;
  8792. bool passwordExpired;
  8793. UserTokenDTO({
  8794. this.token,
  8795. this.passwordExpired = false,
  8796. });
  8797. factory UserTokenDTO.fromJson(Map<String, dynamic> map) {
  8798. return UserTokenDTO(
  8799. token: map['Token'],
  8800. passwordExpired: map['PasswordExpired'],
  8801. );
  8802. }
  8803. Map<String, dynamic> toJson() {
  8804. final map = Map<String, dynamic>();
  8805. if(token != null)
  8806. map['Token'] = token;
  8807. map['PasswordExpired'] = passwordExpired;
  8808. return map;
  8809. }
  8810. }
  8811. class BaseFeatureItemBaseDTO<T> {
  8812. String? id;
  8813. String? label;
  8814. String? fatherCode;
  8815. String? uniqueCode;
  8816. List<T>? children;
  8817. BaseFeatureItemBaseDTO({
  8818. this.id,
  8819. this.label,
  8820. this.fatherCode,
  8821. this.uniqueCode,
  8822. this.children,
  8823. });
  8824. factory BaseFeatureItemBaseDTO.fromJson(Map<String, dynamic> map) {
  8825. List<T> childrenList = [];
  8826. if (map['Children'] != null) {
  8827. childrenList.addAll(
  8828. (map['Children'] as List).map((e) => FJsonConvert.fromJson<T>(e)!));
  8829. }
  8830. return BaseFeatureItemBaseDTO(
  8831. id: map['Id'],
  8832. label: map['Label'],
  8833. fatherCode: map['FatherCode'],
  8834. uniqueCode: map['UniqueCode'],
  8835. children: childrenList,
  8836. );
  8837. }
  8838. Map<String, dynamic> toJson() {
  8839. final map = Map<String, dynamic>();
  8840. if(id != null)
  8841. map['Id'] = id;
  8842. if(label != null)
  8843. map['Label'] = label;
  8844. if(fatherCode != null)
  8845. map['FatherCode'] = fatherCode;
  8846. if(uniqueCode != null)
  8847. map['UniqueCode'] = uniqueCode;
  8848. if(children != null)
  8849. map['Children'] = children;
  8850. return map;
  8851. }
  8852. }
  8853. class UserFeatureItemDTO extends BaseFeatureItemBaseDTO<UserFeatureItemDTO>{
  8854. UserFeatureItemDTO(
  8855. );
  8856. factory UserFeatureItemDTO.fromJson(Map<String, dynamic> map) {
  8857. return UserFeatureItemDTO(
  8858. );
  8859. }
  8860. Map<String, dynamic> toJson() {
  8861. final map = super.toJson();
  8862. return map;
  8863. }
  8864. }
  8865. class UserAuthorityGroupDTO extends BaseDTO{
  8866. String? userGroupCode;
  8867. String? description;
  8868. List<String >? adminCodes;
  8869. List<String >? features;
  8870. String? createAdmin;
  8871. UserAuthorityGroupDTO({
  8872. this.userGroupCode,
  8873. this.description,
  8874. this.adminCodes,
  8875. this.features,
  8876. this.createAdmin,
  8877. DateTime? createTime,
  8878. DateTime? updateTime,
  8879. }) : super(
  8880. createTime: createTime,
  8881. updateTime: updateTime,
  8882. );
  8883. factory UserAuthorityGroupDTO.fromJson(Map<String, dynamic> map) {
  8884. return UserAuthorityGroupDTO(
  8885. userGroupCode: map['UserGroupCode'],
  8886. description: map['Description'],
  8887. adminCodes: map['AdminCodes'] != null ? map['AdminCodes'].cast<String>().toList() : null,
  8888. features: map['Features'] != null ? map['Features'].cast<String>().toList() : null,
  8889. createAdmin: map['CreateAdmin'],
  8890. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  8891. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  8892. );
  8893. }
  8894. Map<String, dynamic> toJson() {
  8895. final map = super.toJson();
  8896. if(userGroupCode != null)
  8897. map['UserGroupCode'] = userGroupCode;
  8898. if(description != null)
  8899. map['Description'] = description;
  8900. if(adminCodes != null)
  8901. map['AdminCodes'] = adminCodes;
  8902. if(features != null)
  8903. map['Features'] = features;
  8904. if(createAdmin != null)
  8905. map['CreateAdmin'] = createAdmin;
  8906. return map;
  8907. }
  8908. }
  8909. class StorageInfoDTO extends BaseDTO{
  8910. String? token;
  8911. String? fileName;
  8912. String? storageRoute;
  8913. StorageInfoDTO({
  8914. this.token,
  8915. this.fileName,
  8916. this.storageRoute,
  8917. DateTime? createTime,
  8918. DateTime? updateTime,
  8919. }) : super(
  8920. createTime: createTime,
  8921. updateTime: updateTime,
  8922. );
  8923. factory StorageInfoDTO.fromJson(Map<String, dynamic> map) {
  8924. return StorageInfoDTO(
  8925. token: map['Token'],
  8926. fileName: map['FileName'],
  8927. storageRoute: map['StorageRoute'],
  8928. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  8929. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  8930. );
  8931. }
  8932. Map<String, dynamic> toJson() {
  8933. final map = super.toJson();
  8934. if(token != null)
  8935. map['Token'] = token;
  8936. if(fileName != null)
  8937. map['FileName'] = fileName;
  8938. if(storageRoute != null)
  8939. map['StorageRoute'] = storageRoute;
  8940. return map;
  8941. }
  8942. }
  8943. class StatisticDTO extends BaseDTO{
  8944. String? statisticCode;
  8945. String? name;
  8946. String? description;
  8947. String? intervalSetting;
  8948. bool enabled;
  8949. String? handleClass;
  8950. String? serverHost;
  8951. StatisticDTO({
  8952. this.statisticCode,
  8953. this.name,
  8954. this.description,
  8955. this.intervalSetting,
  8956. this.enabled = false,
  8957. this.handleClass,
  8958. this.serverHost,
  8959. DateTime? createTime,
  8960. DateTime? updateTime,
  8961. }) : super(
  8962. createTime: createTime,
  8963. updateTime: updateTime,
  8964. );
  8965. factory StatisticDTO.fromJson(Map<String, dynamic> map) {
  8966. return StatisticDTO(
  8967. statisticCode: map['StatisticCode'],
  8968. name: map['Name'],
  8969. description: map['Description'],
  8970. intervalSetting: map['IntervalSetting'],
  8971. enabled: map['Enabled'],
  8972. handleClass: map['HandleClass'],
  8973. serverHost: map['ServerHost'],
  8974. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  8975. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  8976. );
  8977. }
  8978. Map<String, dynamic> toJson() {
  8979. final map = super.toJson();
  8980. if(statisticCode != null)
  8981. map['StatisticCode'] = statisticCode;
  8982. if(name != null)
  8983. map['Name'] = name;
  8984. if(description != null)
  8985. map['Description'] = description;
  8986. if(intervalSetting != null)
  8987. map['IntervalSetting'] = intervalSetting;
  8988. map['Enabled'] = enabled;
  8989. if(handleClass != null)
  8990. map['HandleClass'] = handleClass;
  8991. if(serverHost != null)
  8992. map['ServerHost'] = serverHost;
  8993. return map;
  8994. }
  8995. }
  8996. class StatisticInfoDTO {
  8997. List<String >? xAxisDatas;
  8998. List<List<double> >? yAxisDatas;
  8999. List<StatisticInfoDTO >? children;
  9000. StatisticInfoDTO({
  9001. this.xAxisDatas,
  9002. this.yAxisDatas,
  9003. this.children,
  9004. });
  9005. factory StatisticInfoDTO.fromJson(Map<String, dynamic> map) {
  9006. return StatisticInfoDTO(
  9007. xAxisDatas: map['XAxisDatas'] != null ? map['XAxisDatas'].cast<String>().toList() : null,
  9008. yAxisDatas: map['YAxisDatas'] != null ? map['YAxisDatas'].cast<List<double>>().toList() : null,
  9009. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9010. );
  9011. }
  9012. Map<String, dynamic> toJson() {
  9013. final map = Map<String, dynamic>();
  9014. if(xAxisDatas != null)
  9015. map['XAxisDatas'] = xAxisDatas;
  9016. if(yAxisDatas != null)
  9017. map['YAxisDatas'] = yAxisDatas;
  9018. if(children != null)
  9019. map['Children'] = children;
  9020. return map;
  9021. }
  9022. }
  9023. class StatisticRecordDTO extends BaseDTO{
  9024. String? statisticRecordCode;
  9025. String? statisticCode;
  9026. String? statisticName;
  9027. String? userCode;
  9028. DateTime? lastestUpdateTime;
  9029. DateTime? nextHandleTime;
  9030. List<String >? xAxisDatas;
  9031. List<List<double> >? yAxisDatas;
  9032. List<StatisticInfoDTO >? children;
  9033. StatisticRecordDTO({
  9034. this.statisticRecordCode,
  9035. this.statisticCode,
  9036. this.statisticName,
  9037. this.userCode,
  9038. this.lastestUpdateTime,
  9039. this.nextHandleTime,
  9040. this.xAxisDatas,
  9041. this.yAxisDatas,
  9042. this.children,
  9043. DateTime? createTime,
  9044. DateTime? updateTime,
  9045. }) : super(
  9046. createTime: createTime,
  9047. updateTime: updateTime,
  9048. );
  9049. factory StatisticRecordDTO.fromJson(Map<String, dynamic> map) {
  9050. return StatisticRecordDTO(
  9051. statisticRecordCode: map['StatisticRecordCode'],
  9052. statisticCode: map['StatisticCode'],
  9053. statisticName: map['StatisticName'],
  9054. userCode: map['UserCode'],
  9055. lastestUpdateTime: map['LastestUpdateTime'] != null ? DateTime.parse(map['LastestUpdateTime']) : null,
  9056. nextHandleTime: map['NextHandleTime'] != null ? DateTime.parse(map['NextHandleTime']) : null,
  9057. xAxisDatas: map['XAxisDatas'] != null ? map['XAxisDatas'].cast<String>().toList() : null,
  9058. yAxisDatas: map['YAxisDatas'] != null ? map['YAxisDatas'].cast<List<double>>().toList() : null,
  9059. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9060. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9061. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9062. );
  9063. }
  9064. Map<String, dynamic> toJson() {
  9065. final map = super.toJson();
  9066. if(statisticRecordCode != null)
  9067. map['StatisticRecordCode'] = statisticRecordCode;
  9068. if(statisticCode != null)
  9069. map['StatisticCode'] = statisticCode;
  9070. if(statisticName != null)
  9071. map['StatisticName'] = statisticName;
  9072. if(userCode != null)
  9073. map['UserCode'] = userCode;
  9074. if(lastestUpdateTime != null)
  9075. map['LastestUpdateTime'] = JsonRpcUtils.dateFormat(lastestUpdateTime!);
  9076. if(nextHandleTime != null)
  9077. map['NextHandleTime'] = JsonRpcUtils.dateFormat(nextHandleTime!);
  9078. if(xAxisDatas != null)
  9079. map['XAxisDatas'] = xAxisDatas;
  9080. if(yAxisDatas != null)
  9081. map['YAxisDatas'] = yAxisDatas;
  9082. if(children != null)
  9083. map['Children'] = children;
  9084. return map;
  9085. }
  9086. }
  9087. class ServerListResult extends BaseServerResult{
  9088. bool isDistributed;
  9089. List<ServerInfoDTO >? serverList;
  9090. ServerListResult({
  9091. this.isDistributed = false,
  9092. this.serverList,
  9093. int code = 0,
  9094. }) : super(
  9095. code: code,
  9096. );
  9097. factory ServerListResult.fromJson(Map<String, dynamic> map) {
  9098. return ServerListResult(
  9099. isDistributed: map['IsDistributed'],
  9100. serverList: map['ServerList'] != null ? (map['ServerList'] as List).map((e)=>ServerInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9101. code: map['Code'],
  9102. );
  9103. }
  9104. Map<String, dynamic> toJson() {
  9105. final map = super.toJson();
  9106. map['IsDistributed'] = isDistributed;
  9107. if(serverList != null)
  9108. map['ServerList'] = serverList;
  9109. return map;
  9110. }
  9111. }
  9112. class LoginSuccessResult extends BaseServerResult{
  9113. LoginSuccessResult({
  9114. int code = 0,
  9115. }) : super(
  9116. code: code,
  9117. );
  9118. factory LoginSuccessResult.fromJson(Map<String, dynamic> map) {
  9119. return LoginSuccessResult(
  9120. code: map['Code'],
  9121. );
  9122. }
  9123. Map<String, dynamic> toJson() {
  9124. final map = super.toJson();
  9125. return map;
  9126. }
  9127. }
  9128. class ScheduleDTO extends ClientScheduleDTO{
  9129. List<String >? userCodes;
  9130. String? code;
  9131. ScheduleDTO({
  9132. this.userCodes,
  9133. this.code,
  9134. String? title,
  9135. TransactionStatusEnum status = TransactionStatusEnum.Applied,
  9136. ScheduleTypeEnum scheduleType = ScheduleTypeEnum.Consultation,
  9137. DateTime? startTime,
  9138. DateTime? endTime,
  9139. String? relevanceCode,
  9140. }) : super(
  9141. title: title,
  9142. status: status,
  9143. scheduleType: scheduleType,
  9144. startTime: startTime,
  9145. endTime: endTime,
  9146. relevanceCode: relevanceCode,
  9147. );
  9148. factory ScheduleDTO.fromJson(Map<String, dynamic> map) {
  9149. return ScheduleDTO(
  9150. userCodes: map['UserCodes'] != null ? map['UserCodes'].cast<String>().toList() : null,
  9151. code: map['Code'],
  9152. title: map['Title'],
  9153. status: TransactionStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  9154. scheduleType: ScheduleTypeEnum.values.firstWhere((e) => e.index == map['ScheduleType']),
  9155. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  9156. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  9157. relevanceCode: map['RelevanceCode'],
  9158. );
  9159. }
  9160. Map<String, dynamic> toJson() {
  9161. final map = super.toJson();
  9162. if(userCodes != null)
  9163. map['UserCodes'] = userCodes;
  9164. if(code != null)
  9165. map['Code'] = code;
  9166. return map;
  9167. }
  9168. }
  9169. class LiveMemberDTO {
  9170. String? code;
  9171. LiveMemberEnum memberType;
  9172. String? name;
  9173. String? headImageToken;
  9174. LiveMemberStatus status;
  9175. bool muteOpened;
  9176. bool videoOpened;
  9177. LiveDataDTO? liveData;
  9178. bool isControllingParameter;
  9179. DateTime? firstJoinTime;
  9180. int sortLevel;
  9181. List<VideoDeviceInfoDTO >? videoDeviceInfos;
  9182. LoginSource loginSource;
  9183. LiveMemberDTO({
  9184. this.code,
  9185. this.memberType = LiveMemberEnum.User,
  9186. this.name,
  9187. this.headImageToken,
  9188. this.status = LiveMemberStatus.Default,
  9189. this.muteOpened = false,
  9190. this.videoOpened = false,
  9191. this.liveData,
  9192. this.isControllingParameter = false,
  9193. this.firstJoinTime,
  9194. this.sortLevel = 0,
  9195. this.videoDeviceInfos,
  9196. this.loginSource = LoginSource.PC,
  9197. });
  9198. factory LiveMemberDTO.fromJson(Map<String, dynamic> map) {
  9199. return LiveMemberDTO(
  9200. code: map['Code'],
  9201. memberType: LiveMemberEnum.values.firstWhere((e) => e.index == map['MemberType']),
  9202. name: map['Name'],
  9203. headImageToken: map['HeadImageToken'],
  9204. status: LiveMemberStatus.values.firstWhere((e) => e.index == map['Status']),
  9205. muteOpened: map['MuteOpened'],
  9206. videoOpened: map['VideoOpened'],
  9207. liveData: map['LiveData'] != null ? LiveDataDTO.fromJson(map['LiveData']) : null,
  9208. isControllingParameter: map['IsControllingParameter'],
  9209. firstJoinTime: map['FirstJoinTime'] != null ? DateTime.parse(map['FirstJoinTime']) : null,
  9210. sortLevel: map['SortLevel'],
  9211. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9212. loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
  9213. );
  9214. }
  9215. Map<String, dynamic> toJson() {
  9216. final map = Map<String, dynamic>();
  9217. if(code != null)
  9218. map['Code'] = code;
  9219. map['MemberType'] = memberType.index;
  9220. if(name != null)
  9221. map['Name'] = name;
  9222. if(headImageToken != null)
  9223. map['HeadImageToken'] = headImageToken;
  9224. map['Status'] = status.index;
  9225. map['MuteOpened'] = muteOpened;
  9226. map['VideoOpened'] = videoOpened;
  9227. if(liveData != null)
  9228. map['LiveData'] = liveData;
  9229. map['IsControllingParameter'] = isControllingParameter;
  9230. if(firstJoinTime != null)
  9231. map['FirstJoinTime'] = JsonRpcUtils.dateFormat(firstJoinTime!);
  9232. map['SortLevel'] = sortLevel;
  9233. if(videoDeviceInfos != null)
  9234. map['VideoDeviceInfos'] = videoDeviceInfos;
  9235. map['LoginSource'] = loginSource.index;
  9236. return map;
  9237. }
  9238. }
  9239. class LiveViewerDTO {
  9240. String? userCode;
  9241. String? name;
  9242. DateTime? lastReportTime;
  9243. LiveViewerDTO({
  9244. this.userCode,
  9245. this.name,
  9246. this.lastReportTime,
  9247. });
  9248. factory LiveViewerDTO.fromJson(Map<String, dynamic> map) {
  9249. return LiveViewerDTO(
  9250. userCode: map['UserCode'],
  9251. name: map['Name'],
  9252. lastReportTime: map['LastReportTime'] != null ? DateTime.parse(map['LastReportTime']) : null,
  9253. );
  9254. }
  9255. Map<String, dynamic> toJson() {
  9256. final map = Map<String, dynamic>();
  9257. if(userCode != null)
  9258. map['UserCode'] = userCode;
  9259. if(name != null)
  9260. map['Name'] = name;
  9261. if(lastReportTime != null)
  9262. map['LastReportTime'] = JsonRpcUtils.dateFormat(lastReportTime!);
  9263. return map;
  9264. }
  9265. }
  9266. class LiveRoomInfoDTO {
  9267. String? roomId;
  9268. int roomNo;
  9269. String? msgQueueId;
  9270. List<LiveMemberDTO >? members;
  9271. List<LiveViewerDTO >? viewerInfos;
  9272. LiveMemberDTO? initiator;
  9273. List<LiveMemberDTO >? userInfos;
  9274. List<LiveMemberDTO >? deviceInfos;
  9275. List<LiveMemberDTO >? expertUserInfos;
  9276. List<LiveMemberDTO >? assistantsInfos;
  9277. LiveRoomStatus status;
  9278. String? name;
  9279. DateTime? liveTime;
  9280. int liveStatus;
  9281. List<InteractiveBoardDataDTO >? interactiveBoardDatas;
  9282. LiveRoomInfoDTO({
  9283. this.roomId,
  9284. this.roomNo = 0,
  9285. this.msgQueueId,
  9286. this.members,
  9287. this.viewerInfos,
  9288. this.initiator,
  9289. this.userInfos,
  9290. this.deviceInfos,
  9291. this.expertUserInfos,
  9292. this.assistantsInfos,
  9293. this.status = LiveRoomStatus.Default,
  9294. this.name,
  9295. this.liveTime,
  9296. this.liveStatus = 0,
  9297. this.interactiveBoardDatas,
  9298. });
  9299. factory LiveRoomInfoDTO.fromJson(Map<String, dynamic> map) {
  9300. return LiveRoomInfoDTO(
  9301. roomId: map['RoomId'],
  9302. roomNo: map['RoomNo'],
  9303. msgQueueId: map['MsgQueueId'],
  9304. members: map['Members'] != null ? (map['Members'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9305. viewerInfos: map['ViewerInfos'] != null ? (map['ViewerInfos'] as List).map((e)=>LiveViewerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9306. initiator: map['Initiator'] != null ? LiveMemberDTO.fromJson(map['Initiator']) : null,
  9307. userInfos: map['UserInfos'] != null ? (map['UserInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9308. deviceInfos: map['DeviceInfos'] != null ? (map['DeviceInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9309. expertUserInfos: map['ExpertUserInfos'] != null ? (map['ExpertUserInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9310. assistantsInfos: map['AssistantsInfos'] != null ? (map['AssistantsInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9311. status: LiveRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  9312. name: map['Name'],
  9313. liveTime: map['LiveTime'] != null ? DateTime.parse(map['LiveTime']) : null,
  9314. liveStatus: map['LiveStatus'],
  9315. interactiveBoardDatas: map['InteractiveBoardDatas'] != null ? (map['InteractiveBoardDatas'] as List).map((e)=>InteractiveBoardDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9316. );
  9317. }
  9318. Map<String, dynamic> toJson() {
  9319. final map = Map<String, dynamic>();
  9320. if(roomId != null)
  9321. map['RoomId'] = roomId;
  9322. map['RoomNo'] = roomNo;
  9323. if(msgQueueId != null)
  9324. map['MsgQueueId'] = msgQueueId;
  9325. if(members != null)
  9326. map['Members'] = members;
  9327. if(viewerInfos != null)
  9328. map['ViewerInfos'] = viewerInfos;
  9329. if(initiator != null)
  9330. map['Initiator'] = initiator;
  9331. if(userInfos != null)
  9332. map['UserInfos'] = userInfos;
  9333. if(deviceInfos != null)
  9334. map['DeviceInfos'] = deviceInfos;
  9335. if(expertUserInfos != null)
  9336. map['ExpertUserInfos'] = expertUserInfos;
  9337. if(assistantsInfos != null)
  9338. map['AssistantsInfos'] = assistantsInfos;
  9339. map['Status'] = status.index;
  9340. if(name != null)
  9341. map['Name'] = name;
  9342. if(liveTime != null)
  9343. map['LiveTime'] = JsonRpcUtils.dateFormat(liveTime!);
  9344. map['LiveStatus'] = liveStatus;
  9345. if(interactiveBoardDatas != null)
  9346. map['InteractiveBoardDatas'] = interactiveBoardDatas;
  9347. return map;
  9348. }
  9349. }
  9350. class RtcBoardDataDTO {
  9351. String? userCode;
  9352. String? boardData;
  9353. DateTime? interactiveTime;
  9354. RtcBoardDataDTO({
  9355. this.userCode,
  9356. this.boardData,
  9357. this.interactiveTime,
  9358. });
  9359. factory RtcBoardDataDTO.fromJson(Map<String, dynamic> map) {
  9360. return RtcBoardDataDTO(
  9361. userCode: map['UserCode'],
  9362. boardData: map['BoardData'],
  9363. interactiveTime: map['InteractiveTime'] != null ? DateTime.parse(map['InteractiveTime']) : null,
  9364. );
  9365. }
  9366. Map<String, dynamic> toJson() {
  9367. final map = Map<String, dynamic>();
  9368. if(userCode != null)
  9369. map['UserCode'] = userCode;
  9370. if(boardData != null)
  9371. map['BoardData'] = boardData;
  9372. if(interactiveTime != null)
  9373. map['InteractiveTime'] = JsonRpcUtils.dateFormat(interactiveTime!);
  9374. return map;
  9375. }
  9376. }
  9377. class RtcLiveDataDTO {
  9378. String? pullUrl;
  9379. RtcLiveDataDTO({
  9380. this.pullUrl,
  9381. });
  9382. factory RtcLiveDataDTO.fromJson(Map<String, dynamic> map) {
  9383. return RtcLiveDataDTO(
  9384. pullUrl: map['PullUrl'],
  9385. );
  9386. }
  9387. Map<String, dynamic> toJson() {
  9388. final map = Map<String, dynamic>();
  9389. if(pullUrl != null)
  9390. map['PullUrl'] = pullUrl;
  9391. return map;
  9392. }
  9393. }
  9394. class RtcMemberDTO {
  9395. String? id;
  9396. String? name;
  9397. String? avatarUrl;
  9398. LiveMemberEnum memberType;
  9399. LiveMemberStatus status;
  9400. bool muteOpened;
  9401. bool videoOpened;
  9402. bool isInitiator;
  9403. bool isControllingParameter;
  9404. RtcLiveDataDTO? rtcLiveData;
  9405. RtcMemberDTO({
  9406. this.id,
  9407. this.name,
  9408. this.avatarUrl,
  9409. this.memberType = LiveMemberEnum.User,
  9410. this.status = LiveMemberStatus.Default,
  9411. this.muteOpened = false,
  9412. this.videoOpened = false,
  9413. this.isInitiator = false,
  9414. this.isControllingParameter = false,
  9415. this.rtcLiveData,
  9416. });
  9417. factory RtcMemberDTO.fromJson(Map<String, dynamic> map) {
  9418. return RtcMemberDTO(
  9419. id: map['Id'],
  9420. name: map['Name'],
  9421. avatarUrl: map['AvatarUrl'],
  9422. memberType: LiveMemberEnum.values.firstWhere((e) => e.index == map['MemberType']),
  9423. status: LiveMemberStatus.values.firstWhere((e) => e.index == map['Status']),
  9424. muteOpened: map['MuteOpened'],
  9425. videoOpened: map['VideoOpened'],
  9426. isInitiator: map['IsInitiator'],
  9427. isControllingParameter: map['IsControllingParameter'],
  9428. rtcLiveData: map['RtcLiveData'] != null ? RtcLiveDataDTO.fromJson(map['RtcLiveData']) : null,
  9429. );
  9430. }
  9431. Map<String, dynamic> toJson() {
  9432. final map = Map<String, dynamic>();
  9433. if(id != null)
  9434. map['Id'] = id;
  9435. if(name != null)
  9436. map['Name'] = name;
  9437. if(avatarUrl != null)
  9438. map['AvatarUrl'] = avatarUrl;
  9439. map['MemberType'] = memberType.index;
  9440. map['Status'] = status.index;
  9441. map['MuteOpened'] = muteOpened;
  9442. map['VideoOpened'] = videoOpened;
  9443. map['IsInitiator'] = isInitiator;
  9444. map['IsControllingParameter'] = isControllingParameter;
  9445. if(rtcLiveData != null)
  9446. map['RtcLiveData'] = rtcLiveData;
  9447. return map;
  9448. }
  9449. }
  9450. class RtcViewerDTO {
  9451. String? userCode;
  9452. DateTime? lastReportTime;
  9453. RtcViewerDTO({
  9454. this.userCode,
  9455. this.lastReportTime,
  9456. });
  9457. factory RtcViewerDTO.fromJson(Map<String, dynamic> map) {
  9458. return RtcViewerDTO(
  9459. userCode: map['UserCode'],
  9460. lastReportTime: map['LastReportTime'] != null ? DateTime.parse(map['LastReportTime']) : null,
  9461. );
  9462. }
  9463. Map<String, dynamic> toJson() {
  9464. final map = Map<String, dynamic>();
  9465. if(userCode != null)
  9466. map['UserCode'] = userCode;
  9467. if(lastReportTime != null)
  9468. map['LastReportTime'] = JsonRpcUtils.dateFormat(lastReportTime!);
  9469. return map;
  9470. }
  9471. }
  9472. class RtcRoomDTO {
  9473. String? liveRoomCode;
  9474. String? name;
  9475. String? initiateCode;
  9476. int rtcRoomId;
  9477. int sdkAppId;
  9478. String? msgQueueId;
  9479. LiveRoomStatus status;
  9480. List<RtcMemberDTO >? members;
  9481. List<RtcViewerDTO >? viewers;
  9482. List<RtcBoardDataDTO >? interactiveBoardDatas;
  9483. RtcRoomDTO({
  9484. this.liveRoomCode,
  9485. this.name,
  9486. this.initiateCode,
  9487. this.rtcRoomId = 0,
  9488. this.sdkAppId = 0,
  9489. this.msgQueueId,
  9490. this.status = LiveRoomStatus.Default,
  9491. this.members,
  9492. this.viewers,
  9493. this.interactiveBoardDatas,
  9494. });
  9495. factory RtcRoomDTO.fromJson(Map<String, dynamic> map) {
  9496. return RtcRoomDTO(
  9497. liveRoomCode: map['LiveRoomCode'],
  9498. name: map['Name'],
  9499. initiateCode: map['InitiateCode'],
  9500. rtcRoomId: map['RtcRoomId'],
  9501. sdkAppId: map['SdkAppId'],
  9502. msgQueueId: map['MsgQueueId'],
  9503. status: LiveRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  9504. members: map['Members'] != null ? (map['Members'] as List).map((e)=>RtcMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9505. viewers: map['Viewers'] != null ? (map['Viewers'] as List).map((e)=>RtcViewerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9506. interactiveBoardDatas: map['InteractiveBoardDatas'] != null ? (map['InteractiveBoardDatas'] as List).map((e)=>RtcBoardDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9507. );
  9508. }
  9509. Map<String, dynamic> toJson() {
  9510. final map = Map<String, dynamic>();
  9511. if(liveRoomCode != null)
  9512. map['LiveRoomCode'] = liveRoomCode;
  9513. if(name != null)
  9514. map['Name'] = name;
  9515. if(initiateCode != null)
  9516. map['InitiateCode'] = initiateCode;
  9517. map['RtcRoomId'] = rtcRoomId;
  9518. map['SdkAppId'] = sdkAppId;
  9519. if(msgQueueId != null)
  9520. map['MsgQueueId'] = msgQueueId;
  9521. map['Status'] = status.index;
  9522. if(members != null)
  9523. map['Members'] = members;
  9524. if(viewers != null)
  9525. map['Viewers'] = viewers;
  9526. if(interactiveBoardDatas != null)
  9527. map['InteractiveBoardDatas'] = interactiveBoardDatas;
  9528. return map;
  9529. }
  9530. }
  9531. class ReportElementDTO {
  9532. String? key;
  9533. String? tagId;
  9534. String? name;
  9535. String? aILanguage;
  9536. ReportElementDTO({
  9537. this.key,
  9538. this.tagId,
  9539. this.name,
  9540. this.aILanguage,
  9541. });
  9542. factory ReportElementDTO.fromJson(Map<String, dynamic> map) {
  9543. return ReportElementDTO(
  9544. key: map['Key'],
  9545. tagId: map['TagId'],
  9546. name: map['Name'],
  9547. aILanguage: map['AILanguage'],
  9548. );
  9549. }
  9550. Map<String, dynamic> toJson() {
  9551. final map = Map<String, dynamic>();
  9552. if(key != null)
  9553. map['Key'] = key;
  9554. if(tagId != null)
  9555. map['TagId'] = tagId;
  9556. if(name != null)
  9557. map['Name'] = name;
  9558. if(aILanguage != null)
  9559. map['AILanguage'] = aILanguage;
  9560. return map;
  9561. }
  9562. }
  9563. class ReportPosterDTO extends BaseDTO{
  9564. String? reportPosterCode;
  9565. String? receiverName;
  9566. String? contact;
  9567. String? phone;
  9568. String? targetUrl;
  9569. String? template;
  9570. ReportPosterTypeEnum posterType;
  9571. ReportFormatEnum reportFormat;
  9572. int postTimeout;
  9573. List<String >? deviceIds;
  9574. ReportPosterDTO({
  9575. this.reportPosterCode,
  9576. this.receiverName,
  9577. this.contact,
  9578. this.phone,
  9579. this.targetUrl,
  9580. this.template,
  9581. this.posterType = ReportPosterTypeEnum.Default,
  9582. this.reportFormat = ReportFormatEnum.Json,
  9583. this.postTimeout = 0,
  9584. this.deviceIds,
  9585. DateTime? createTime,
  9586. DateTime? updateTime,
  9587. }) : super(
  9588. createTime: createTime,
  9589. updateTime: updateTime,
  9590. );
  9591. factory ReportPosterDTO.fromJson(Map<String, dynamic> map) {
  9592. return ReportPosterDTO(
  9593. reportPosterCode: map['ReportPosterCode'],
  9594. receiverName: map['ReceiverName'],
  9595. contact: map['Contact'],
  9596. phone: map['Phone'],
  9597. targetUrl: map['TargetUrl'],
  9598. template: map['Template'],
  9599. posterType: ReportPosterTypeEnum.values.firstWhere((e) => e.index == map['PosterType']),
  9600. reportFormat: ReportFormatEnum.values.firstWhere((e) => e.index == map['ReportFormat']),
  9601. postTimeout: map['PostTimeout'],
  9602. deviceIds: map['DeviceIds'] != null ? map['DeviceIds'].cast<String>().toList() : null,
  9603. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9604. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9605. );
  9606. }
  9607. Map<String, dynamic> toJson() {
  9608. final map = super.toJson();
  9609. if(reportPosterCode != null)
  9610. map['ReportPosterCode'] = reportPosterCode;
  9611. if(receiverName != null)
  9612. map['ReceiverName'] = receiverName;
  9613. if(contact != null)
  9614. map['Contact'] = contact;
  9615. if(phone != null)
  9616. map['Phone'] = phone;
  9617. if(targetUrl != null)
  9618. map['TargetUrl'] = targetUrl;
  9619. if(template != null)
  9620. map['Template'] = template;
  9621. map['PosterType'] = posterType.index;
  9622. map['ReportFormat'] = reportFormat.index;
  9623. map['PostTimeout'] = postTimeout;
  9624. if(deviceIds != null)
  9625. map['DeviceIds'] = deviceIds;
  9626. return map;
  9627. }
  9628. }
  9629. class ReportPushRecordDTO extends BaseDTO{
  9630. String? pushRecordCode;
  9631. String? patientId;
  9632. String? patientName;
  9633. String? poseterConfigId;
  9634. PushDataStateEnum state;
  9635. String? poseterConfigName;
  9636. String? reportId;
  9637. String? patientRecordId;
  9638. String? pushResultToken;
  9639. String? pushResponse;
  9640. ReportPushRecordDTO({
  9641. this.pushRecordCode,
  9642. this.patientId,
  9643. this.patientName,
  9644. this.poseterConfigId,
  9645. this.state = PushDataStateEnum.UnDo,
  9646. this.poseterConfigName,
  9647. this.reportId,
  9648. this.patientRecordId,
  9649. this.pushResultToken,
  9650. this.pushResponse,
  9651. DateTime? createTime,
  9652. DateTime? updateTime,
  9653. }) : super(
  9654. createTime: createTime,
  9655. updateTime: updateTime,
  9656. );
  9657. factory ReportPushRecordDTO.fromJson(Map<String, dynamic> map) {
  9658. return ReportPushRecordDTO(
  9659. pushRecordCode: map['PushRecordCode'],
  9660. patientId: map['PatientId'],
  9661. patientName: map['PatientName'],
  9662. poseterConfigId: map['PoseterConfigId'],
  9663. state: PushDataStateEnum.values.firstWhere((e) => e.index == map['State']),
  9664. poseterConfigName: map['PoseterConfigName'],
  9665. reportId: map['ReportId'],
  9666. patientRecordId: map['PatientRecordId'],
  9667. pushResultToken: map['PushResultToken'],
  9668. pushResponse: map['PushResponse'],
  9669. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9670. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9671. );
  9672. }
  9673. Map<String, dynamic> toJson() {
  9674. final map = super.toJson();
  9675. if(pushRecordCode != null)
  9676. map['PushRecordCode'] = pushRecordCode;
  9677. if(patientId != null)
  9678. map['PatientId'] = patientId;
  9679. if(patientName != null)
  9680. map['PatientName'] = patientName;
  9681. if(poseterConfigId != null)
  9682. map['PoseterConfigId'] = poseterConfigId;
  9683. map['State'] = state.index;
  9684. if(poseterConfigName != null)
  9685. map['PoseterConfigName'] = poseterConfigName;
  9686. if(reportId != null)
  9687. map['ReportId'] = reportId;
  9688. if(patientRecordId != null)
  9689. map['PatientRecordId'] = patientRecordId;
  9690. if(pushResultToken != null)
  9691. map['PushResultToken'] = pushResultToken;
  9692. if(pushResponse != null)
  9693. map['PushResponse'] = pushResponse;
  9694. return map;
  9695. }
  9696. }
  9697. class ProbeSettingInfoDTO {
  9698. String? name;
  9699. List<ApplicationSettingInfoDTO >? applications;
  9700. ProbeSettingInfoDTO({
  9701. this.name,
  9702. this.applications,
  9703. });
  9704. factory ProbeSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  9705. return ProbeSettingInfoDTO(
  9706. name: map['Name'],
  9707. applications: map['Applications'] != null ? (map['Applications'] as List).map((e)=>ApplicationSettingInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9708. );
  9709. }
  9710. Map<String, dynamic> toJson() {
  9711. final map = Map<String, dynamic>();
  9712. if(name != null)
  9713. map['Name'] = name;
  9714. if(applications != null)
  9715. map['Applications'] = applications;
  9716. return map;
  9717. }
  9718. }
  9719. class ProbeApplicationSettingInfoDTO {
  9720. List<ProbeSettingInfoDTO >? probes;
  9721. String? activeProbe;
  9722. String? activeApplication;
  9723. int maxNumberForApplication;
  9724. int maxNumberForApplicationOfUserDefine;
  9725. ProbeApplicationSettingInfoDTO({
  9726. this.probes,
  9727. this.activeProbe,
  9728. this.activeApplication,
  9729. this.maxNumberForApplication = 0,
  9730. this.maxNumberForApplicationOfUserDefine = 0,
  9731. });
  9732. factory ProbeApplicationSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  9733. return ProbeApplicationSettingInfoDTO(
  9734. probes: map['Probes'] != null ? (map['Probes'] as List).map((e)=>ProbeSettingInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9735. activeProbe: map['ActiveProbe'],
  9736. activeApplication: map['ActiveApplication'],
  9737. maxNumberForApplication: map['MaxNumberForApplication'],
  9738. maxNumberForApplicationOfUserDefine: map['MaxNumberForApplicationOfUserDefine'],
  9739. );
  9740. }
  9741. Map<String, dynamic> toJson() {
  9742. final map = Map<String, dynamic>();
  9743. if(probes != null)
  9744. map['Probes'] = probes;
  9745. if(activeProbe != null)
  9746. map['ActiveProbe'] = activeProbe;
  9747. if(activeApplication != null)
  9748. map['ActiveApplication'] = activeApplication;
  9749. map['MaxNumberForApplication'] = maxNumberForApplication;
  9750. map['MaxNumberForApplicationOfUserDefine'] = maxNumberForApplicationOfUserDefine;
  9751. return map;
  9752. }
  9753. }
  9754. class RegionItemDTO {
  9755. String? c;
  9756. String? g;
  9757. String? f;
  9758. String? n;
  9759. RegionItemDTO({
  9760. this.c,
  9761. this.g,
  9762. this.f,
  9763. this.n,
  9764. });
  9765. factory RegionItemDTO.fromJson(Map<String, dynamic> map) {
  9766. return RegionItemDTO(
  9767. c: map['c'],
  9768. g: map['g'],
  9769. f: map['f'],
  9770. n: map['n'],
  9771. );
  9772. }
  9773. Map<String, dynamic> toJson() {
  9774. final map = Map<String, dynamic>();
  9775. if(c != null)
  9776. map['c'] = c;
  9777. if(g != null)
  9778. map['g'] = g;
  9779. if(f != null)
  9780. map['f'] = f;
  9781. if(n != null)
  9782. map['n'] = n;
  9783. return map;
  9784. }
  9785. }
  9786. class RegionDataDTO {
  9787. String? lang;
  9788. List<RegionItemDTO >? datas;
  9789. RegionDataDTO({
  9790. this.lang,
  9791. this.datas,
  9792. });
  9793. factory RegionDataDTO.fromJson(Map<String, dynamic> map) {
  9794. return RegionDataDTO(
  9795. lang: map['lang'],
  9796. datas: map['datas'] != null ? (map['datas'] as List).map((e)=>RegionItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9797. );
  9798. }
  9799. Map<String, dynamic> toJson() {
  9800. final map = Map<String, dynamic>();
  9801. if(lang != null)
  9802. map['lang'] = lang;
  9803. if(datas != null)
  9804. map['datas'] = datas;
  9805. return map;
  9806. }
  9807. }
  9808. class ReferralRecordSettingDTO extends BaseDTO{
  9809. String? referralRecordSettingCode;
  9810. double limitHours;
  9811. ReferralRecordSettingDTO({
  9812. this.referralRecordSettingCode,
  9813. this.limitHours = 0,
  9814. DateTime? createTime,
  9815. DateTime? updateTime,
  9816. }) : super(
  9817. createTime: createTime,
  9818. updateTime: updateTime,
  9819. );
  9820. factory ReferralRecordSettingDTO.fromJson(Map<String, dynamic> map) {
  9821. return ReferralRecordSettingDTO(
  9822. referralRecordSettingCode: map['ReferralRecordSettingCode'],
  9823. limitHours: double.parse(map['LimitHours'].toString()),
  9824. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9825. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9826. );
  9827. }
  9828. Map<String, dynamic> toJson() {
  9829. final map = super.toJson();
  9830. if(referralRecordSettingCode != null)
  9831. map['ReferralRecordSettingCode'] = referralRecordSettingCode;
  9832. map['LimitHours'] = limitHours;
  9833. return map;
  9834. }
  9835. }
  9836. class CreatePaymentRecordResultDTO {
  9837. String? paymentRecordCode;
  9838. CreatePaymentRecordResultDTO({
  9839. this.paymentRecordCode,
  9840. });
  9841. factory CreatePaymentRecordResultDTO.fromJson(Map<String, dynamic> map) {
  9842. return CreatePaymentRecordResultDTO(
  9843. paymentRecordCode: map['PaymentRecordCode'],
  9844. );
  9845. }
  9846. Map<String, dynamic> toJson() {
  9847. final map = Map<String, dynamic>();
  9848. if(paymentRecordCode != null)
  9849. map['PaymentRecordCode'] = paymentRecordCode;
  9850. return map;
  9851. }
  9852. }
  9853. class CreateProductDTO extends BaseDTO{
  9854. String? productCode;
  9855. CreateProductDTO({
  9856. this.productCode,
  9857. DateTime? createTime,
  9858. DateTime? updateTime,
  9859. }) : super(
  9860. createTime: createTime,
  9861. updateTime: updateTime,
  9862. );
  9863. factory CreateProductDTO.fromJson(Map<String, dynamic> map) {
  9864. return CreateProductDTO(
  9865. productCode: map['ProductCode'],
  9866. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9867. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9868. );
  9869. }
  9870. Map<String, dynamic> toJson() {
  9871. final map = super.toJson();
  9872. if(productCode != null)
  9873. map['ProductCode'] = productCode;
  9874. return map;
  9875. }
  9876. }
  9877. class PaymentRecordDTO extends BaseDTO{
  9878. String? orderCode;
  9879. double payAmount;
  9880. DateTime? payTime;
  9881. PayStatusEnum payStatus;
  9882. PayTypeEnum payType;
  9883. String? payReqContent;
  9884. String? payResContent;
  9885. PaymentRecordDTO({
  9886. this.orderCode,
  9887. this.payAmount = 0,
  9888. this.payTime,
  9889. this.payStatus = PayStatusEnum.NoPay,
  9890. this.payType = PayTypeEnum.Alipay_PAGE,
  9891. this.payReqContent,
  9892. this.payResContent,
  9893. DateTime? createTime,
  9894. DateTime? updateTime,
  9895. }) : super(
  9896. createTime: createTime,
  9897. updateTime: updateTime,
  9898. );
  9899. factory PaymentRecordDTO.fromJson(Map<String, dynamic> map) {
  9900. return PaymentRecordDTO(
  9901. orderCode: map['OrderCode'],
  9902. payAmount: double.parse(map['PayAmount'].toString()),
  9903. payTime: map['PayTime'] != null ? DateTime.parse(map['PayTime']) : null,
  9904. payStatus: PayStatusEnum.values.firstWhere((e) => e.index == map['PayStatus']),
  9905. payType: PayTypeEnum.values.firstWhere((e) => e.index == map['PayType']),
  9906. payReqContent: map['PayReqContent'],
  9907. payResContent: map['PayResContent'],
  9908. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9909. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9910. );
  9911. }
  9912. Map<String, dynamic> toJson() {
  9913. final map = super.toJson();
  9914. if(orderCode != null)
  9915. map['OrderCode'] = orderCode;
  9916. map['PayAmount'] = payAmount;
  9917. if(payTime != null)
  9918. map['PayTime'] = JsonRpcUtils.dateFormat(payTime!);
  9919. map['PayStatus'] = payStatus.index;
  9920. map['PayType'] = payType.index;
  9921. if(payReqContent != null)
  9922. map['PayReqContent'] = payReqContent;
  9923. if(payResContent != null)
  9924. map['PayResContent'] = payResContent;
  9925. return map;
  9926. }
  9927. }
  9928. class ProductDetailDTO extends BaseDTO{
  9929. String? code;
  9930. String? name;
  9931. String? headImage;
  9932. double price;
  9933. ProductStatusEnum status;
  9934. ProductTypeEnum productType;
  9935. String? belongerCode;
  9936. String? relationInfo;
  9937. ProductDetailDTO({
  9938. this.code,
  9939. this.name,
  9940. this.headImage,
  9941. this.price = 0,
  9942. this.status = ProductStatusEnum.SoldOut,
  9943. this.productType = ProductTypeEnum.Course,
  9944. this.belongerCode,
  9945. this.relationInfo,
  9946. DateTime? createTime,
  9947. DateTime? updateTime,
  9948. }) : super(
  9949. createTime: createTime,
  9950. updateTime: updateTime,
  9951. );
  9952. factory ProductDetailDTO.fromJson(Map<String, dynamic> map) {
  9953. return ProductDetailDTO(
  9954. code: map['Code'],
  9955. name: map['Name'],
  9956. headImage: map['HeadImage'],
  9957. price: double.parse(map['Price'].toString()),
  9958. status: ProductStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  9959. productType: ProductTypeEnum.values.firstWhere((e) => e.index == map['ProductType']),
  9960. belongerCode: map['BelongerCode'],
  9961. relationInfo: map['RelationInfo'],
  9962. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9963. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9964. );
  9965. }
  9966. Map<String, dynamic> toJson() {
  9967. final map = super.toJson();
  9968. if(code != null)
  9969. map['Code'] = code;
  9970. if(name != null)
  9971. map['Name'] = name;
  9972. if(headImage != null)
  9973. map['HeadImage'] = headImage;
  9974. map['Price'] = price;
  9975. map['Status'] = status.index;
  9976. map['ProductType'] = productType.index;
  9977. if(belongerCode != null)
  9978. map['BelongerCode'] = belongerCode;
  9979. if(relationInfo != null)
  9980. map['RelationInfo'] = relationInfo;
  9981. return map;
  9982. }
  9983. }
  9984. class UpdateOrderResultDTO {
  9985. bool isSuccess;
  9986. UpdateOrderResultDTO({
  9987. this.isSuccess = false,
  9988. });
  9989. factory UpdateOrderResultDTO.fromJson(Map<String, dynamic> map) {
  9990. return UpdateOrderResultDTO(
  9991. isSuccess: map['IsSuccess'],
  9992. );
  9993. }
  9994. Map<String, dynamic> toJson() {
  9995. final map = Map<String, dynamic>();
  9996. map['IsSuccess'] = isSuccess;
  9997. return map;
  9998. }
  9999. }
  10000. class UpdatePaymentRecordResultDTO {
  10001. bool isSuccess;
  10002. UpdatePaymentRecordResultDTO({
  10003. this.isSuccess = false,
  10004. });
  10005. factory UpdatePaymentRecordResultDTO.fromJson(Map<String, dynamic> map) {
  10006. return UpdatePaymentRecordResultDTO(
  10007. isSuccess: map['IsSuccess'],
  10008. );
  10009. }
  10010. Map<String, dynamic> toJson() {
  10011. final map = Map<String, dynamic>();
  10012. map['IsSuccess'] = isSuccess;
  10013. return map;
  10014. }
  10015. }
  10016. class UpdateProductDTO {
  10017. bool isSuccess;
  10018. UpdateProductDTO({
  10019. this.isSuccess = false,
  10020. });
  10021. factory UpdateProductDTO.fromJson(Map<String, dynamic> map) {
  10022. return UpdateProductDTO(
  10023. isSuccess: map['IsSuccess'],
  10024. );
  10025. }
  10026. Map<String, dynamic> toJson() {
  10027. final map = Map<String, dynamic>();
  10028. map['IsSuccess'] = isSuccess;
  10029. return map;
  10030. }
  10031. }
  10032. class StatisticDetailSettingDTO {
  10033. String? cMSTemplateCode;
  10034. StatisticDetailSettingDTO({
  10035. this.cMSTemplateCode,
  10036. });
  10037. factory StatisticDetailSettingDTO.fromJson(Map<String, dynamic> map) {
  10038. return StatisticDetailSettingDTO(
  10039. cMSTemplateCode: map['CMSTemplateCode'],
  10040. );
  10041. }
  10042. Map<String, dynamic> toJson() {
  10043. final map = Map<String, dynamic>();
  10044. if(cMSTemplateCode != null)
  10045. map['CMSTemplateCode'] = cMSTemplateCode;
  10046. return map;
  10047. }
  10048. }
  10049. class ClientInfoDTO {
  10050. String? clientId;
  10051. String? name;
  10052. bool isReaded;
  10053. DateTime? deliveryTime;
  10054. DateTime? readTime;
  10055. ClientInfoDTO({
  10056. this.clientId,
  10057. this.name,
  10058. this.isReaded = false,
  10059. this.deliveryTime,
  10060. this.readTime,
  10061. });
  10062. factory ClientInfoDTO.fromJson(Map<String, dynamic> map) {
  10063. return ClientInfoDTO(
  10064. clientId: map['ClientId'],
  10065. name: map['Name'],
  10066. isReaded: map['IsReaded'],
  10067. deliveryTime: map['DeliveryTime'] != null ? DateTime.parse(map['DeliveryTime']) : null,
  10068. readTime: map['ReadTime'] != null ? DateTime.parse(map['ReadTime']) : null,
  10069. );
  10070. }
  10071. Map<String, dynamic> toJson() {
  10072. final map = Map<String, dynamic>();
  10073. if(clientId != null)
  10074. map['ClientId'] = clientId;
  10075. if(name != null)
  10076. map['Name'] = name;
  10077. map['IsReaded'] = isReaded;
  10078. if(deliveryTime != null)
  10079. map['DeliveryTime'] = JsonRpcUtils.dateFormat(deliveryTime!);
  10080. if(readTime != null)
  10081. map['ReadTime'] = JsonRpcUtils.dateFormat(readTime!);
  10082. return map;
  10083. }
  10084. }
  10085. class MessageInfoDTO extends BaseDTO{
  10086. String? code;
  10087. NotificationTypeEnum notificationType;
  10088. String? content;
  10089. String? serverHost;
  10090. DateTime? notifyTime;
  10091. ApplicantTypeEnum receiverType;
  10092. TransactionTypeEnum transactionType;
  10093. String? relevanceCode;
  10094. List<ClientInfoDTO >? clientInfos;
  10095. MessageInfoDTO({
  10096. this.code,
  10097. this.notificationType = NotificationTypeEnum.Unknown,
  10098. this.content,
  10099. this.serverHost,
  10100. this.notifyTime,
  10101. this.receiverType = ApplicantTypeEnum.Client,
  10102. this.transactionType = TransactionTypeEnum.Consultion,
  10103. this.relevanceCode,
  10104. this.clientInfos,
  10105. DateTime? createTime,
  10106. DateTime? updateTime,
  10107. }) : super(
  10108. createTime: createTime,
  10109. updateTime: updateTime,
  10110. );
  10111. factory MessageInfoDTO.fromJson(Map<String, dynamic> map) {
  10112. return MessageInfoDTO(
  10113. code: map['Code'],
  10114. notificationType: NotificationTypeEnum.values.firstWhere((e) => e.index == map['NotificationType']),
  10115. content: map['Content'],
  10116. serverHost: map['ServerHost'],
  10117. notifyTime: map['NotifyTime'] != null ? DateTime.parse(map['NotifyTime']) : null,
  10118. receiverType: ApplicantTypeEnum.values.firstWhere((e) => e.index == map['ReceiverType']),
  10119. transactionType: TransactionTypeEnum.values.firstWhere((e) => e.index == map['TransactionType']),
  10120. relevanceCode: map['RelevanceCode'],
  10121. clientInfos: map['ClientInfos'] != null ? (map['ClientInfos'] as List).map((e)=>ClientInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10122. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  10123. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  10124. );
  10125. }
  10126. Map<String, dynamic> toJson() {
  10127. final map = super.toJson();
  10128. if(code != null)
  10129. map['Code'] = code;
  10130. map['NotificationType'] = notificationType.index;
  10131. if(content != null)
  10132. map['Content'] = content;
  10133. if(serverHost != null)
  10134. map['ServerHost'] = serverHost;
  10135. if(notifyTime != null)
  10136. map['NotifyTime'] = JsonRpcUtils.dateFormat(notifyTime!);
  10137. map['ReceiverType'] = receiverType.index;
  10138. map['TransactionType'] = transactionType.index;
  10139. if(relevanceCode != null)
  10140. map['RelevanceCode'] = relevanceCode;
  10141. if(clientInfos != null)
  10142. map['ClientInfos'] = clientInfos;
  10143. return map;
  10144. }
  10145. }
  10146. class OutputUnitDTO {
  10147. int unit;
  10148. OutputUnitDTO({
  10149. this.unit = 0,
  10150. });
  10151. factory OutputUnitDTO.fromJson(Map<String, dynamic> map) {
  10152. return OutputUnitDTO(
  10153. unit: map['Unit'],
  10154. );
  10155. }
  10156. Map<String, dynamic> toJson() {
  10157. final map = Map<String, dynamic>();
  10158. map['Unit'] = unit;
  10159. return map;
  10160. }
  10161. }
  10162. class FormularMetaDTO {
  10163. String? name;
  10164. FormularMetaDTO({
  10165. this.name,
  10166. });
  10167. factory FormularMetaDTO.fromJson(Map<String, dynamic> map) {
  10168. return FormularMetaDTO(
  10169. name: map['Name'],
  10170. );
  10171. }
  10172. Map<String, dynamic> toJson() {
  10173. final map = Map<String, dynamic>();
  10174. if(name != null)
  10175. map['Name'] = name;
  10176. return map;
  10177. }
  10178. }
  10179. class MeasuredValueDTO {
  10180. String? typeName;
  10181. String? name;
  10182. String? description;
  10183. bool worksheetAffinity;
  10184. String? briefDescription;
  10185. String? value;
  10186. Unit unit;
  10187. Unit targetUnit;
  10188. MeasuredValueDTO({
  10189. this.typeName,
  10190. this.name,
  10191. this.description,
  10192. this.worksheetAffinity = false,
  10193. this.briefDescription,
  10194. this.value,
  10195. this.unit = Unit.None,
  10196. this.targetUnit = Unit.None,
  10197. });
  10198. factory MeasuredValueDTO.fromJson(Map<String, dynamic> map) {
  10199. return MeasuredValueDTO(
  10200. typeName: map['TypeName'],
  10201. name: map['Name'],
  10202. description: map['Description'],
  10203. worksheetAffinity: map['WorksheetAffinity'],
  10204. briefDescription: map['BriefDescription'],
  10205. value: map['Value'],
  10206. unit: Unit.values.firstWhere((e) => e.index == map['Unit']),
  10207. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  10208. );
  10209. }
  10210. Map<String, dynamic> toJson() {
  10211. final map = Map<String, dynamic>();
  10212. if(typeName != null)
  10213. map['TypeName'] = typeName;
  10214. if(name != null)
  10215. map['Name'] = name;
  10216. if(description != null)
  10217. map['Description'] = description;
  10218. map['WorksheetAffinity'] = worksheetAffinity;
  10219. if(briefDescription != null)
  10220. map['BriefDescription'] = briefDescription;
  10221. if(value != null)
  10222. map['Value'] = value;
  10223. map['Unit'] = unit.index;
  10224. map['TargetUnit'] = targetUnit.index;
  10225. return map;
  10226. }
  10227. }
  10228. class MeasuredFeatureDTO {
  10229. String? typeName;
  10230. String? creator;
  10231. String? guid;
  10232. bool showChildFeatures;
  10233. DateTime? timeStamp;
  10234. bool isAutoCalculated;
  10235. List<MeasuredValueDTO >? values;
  10236. List<MeasuredFeatureDTO >? childFeatures;
  10237. MeasuredFeatureDTO({
  10238. this.typeName,
  10239. this.creator,
  10240. this.guid,
  10241. this.showChildFeatures = false,
  10242. this.timeStamp,
  10243. this.isAutoCalculated = false,
  10244. this.values,
  10245. this.childFeatures,
  10246. });
  10247. factory MeasuredFeatureDTO.fromJson(Map<String, dynamic> map) {
  10248. return MeasuredFeatureDTO(
  10249. typeName: map['TypeName'],
  10250. creator: map['Creator'],
  10251. guid: map['Guid'],
  10252. showChildFeatures: map['ShowChildFeatures'],
  10253. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  10254. isAutoCalculated: map['IsAutoCalculated'],
  10255. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10256. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10257. );
  10258. }
  10259. Map<String, dynamic> toJson() {
  10260. final map = Map<String, dynamic>();
  10261. if(typeName != null)
  10262. map['TypeName'] = typeName;
  10263. if(creator != null)
  10264. map['Creator'] = creator;
  10265. if(guid != null)
  10266. map['Guid'] = guid;
  10267. map['ShowChildFeatures'] = showChildFeatures;
  10268. if(timeStamp != null)
  10269. map['TimeStamp'] = JsonRpcUtils.dateFormat(timeStamp!);
  10270. map['IsAutoCalculated'] = isAutoCalculated;
  10271. if(values != null)
  10272. map['Values'] = values;
  10273. if(childFeatures != null)
  10274. map['ChildFeatures'] = childFeatures;
  10275. return map;
  10276. }
  10277. }
  10278. class MeasureExportRecordDTO {
  10279. String? languageCode;
  10280. List<String >? remedicalMeasuredInfoCodes;
  10281. String? exportFileToken;
  10282. DateTime? createTime;
  10283. DateTime? updateTime;
  10284. MeasureExportRecordDTO({
  10285. this.languageCode,
  10286. this.remedicalMeasuredInfoCodes,
  10287. this.exportFileToken,
  10288. this.createTime,
  10289. this.updateTime,
  10290. });
  10291. factory MeasureExportRecordDTO.fromJson(Map<String, dynamic> map) {
  10292. return MeasureExportRecordDTO(
  10293. languageCode: map['LanguageCode'],
  10294. remedicalMeasuredInfoCodes: map['RemedicalMeasuredInfoCodes'] != null ? map['RemedicalMeasuredInfoCodes'].cast<String>().toList() : null,
  10295. exportFileToken: map['ExportFileToken'],
  10296. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  10297. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  10298. );
  10299. }
  10300. Map<String, dynamic> toJson() {
  10301. final map = Map<String, dynamic>();
  10302. if(languageCode != null)
  10303. map['LanguageCode'] = languageCode;
  10304. if(remedicalMeasuredInfoCodes != null)
  10305. map['RemedicalMeasuredInfoCodes'] = remedicalMeasuredInfoCodes;
  10306. if(exportFileToken != null)
  10307. map['ExportFileToken'] = exportFileToken;
  10308. if(createTime != null)
  10309. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  10310. if(updateTime != null)
  10311. map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
  10312. return map;
  10313. }
  10314. }
  10315. class MeasureItemDTO {
  10316. String? name;
  10317. String? description;
  10318. String? briefAnnotation;
  10319. String? typeName;
  10320. MeasureItemDTO({
  10321. this.name,
  10322. this.description,
  10323. this.briefAnnotation,
  10324. this.typeName,
  10325. });
  10326. factory MeasureItemDTO.fromJson(Map<String, dynamic> map) {
  10327. return MeasureItemDTO(
  10328. name: map['Name'],
  10329. description: map['Description'],
  10330. briefAnnotation: map['BriefAnnotation'],
  10331. typeName: map['TypeName'],
  10332. );
  10333. }
  10334. Map<String, dynamic> toJson() {
  10335. final map = Map<String, dynamic>();
  10336. if(name != null)
  10337. map['Name'] = name;
  10338. if(description != null)
  10339. map['Description'] = description;
  10340. if(briefAnnotation != null)
  10341. map['BriefAnnotation'] = briefAnnotation;
  10342. if(typeName != null)
  10343. map['TypeName'] = typeName;
  10344. return map;
  10345. }
  10346. }
  10347. class MeasureResultExcelDTO {
  10348. String? number;
  10349. String? measureItem;
  10350. String? measureResult;
  10351. MeasureResultExcelDTO({
  10352. this.number,
  10353. this.measureItem,
  10354. this.measureResult,
  10355. });
  10356. factory MeasureResultExcelDTO.fromJson(Map<String, dynamic> map) {
  10357. return MeasureResultExcelDTO(
  10358. number: map['Number'],
  10359. measureItem: map['MeasureItem'],
  10360. measureResult: map['MeasureResult'],
  10361. );
  10362. }
  10363. Map<String, dynamic> toJson() {
  10364. final map = Map<String, dynamic>();
  10365. if(number != null)
  10366. map['Number'] = number;
  10367. if(measureItem != null)
  10368. map['MeasureItem'] = measureItem;
  10369. if(measureResult != null)
  10370. map['MeasureResult'] = measureResult;
  10371. return map;
  10372. }
  10373. }
  10374. class MultiMethodItemDTO extends MeasureItemDTO{
  10375. MultiMethodItemDTO({
  10376. String? name,
  10377. String? description,
  10378. String? briefAnnotation,
  10379. String? typeName,
  10380. }) : super(
  10381. name: name,
  10382. description: description,
  10383. briefAnnotation: briefAnnotation,
  10384. typeName: typeName,
  10385. );
  10386. factory MultiMethodItemDTO.fromJson(Map<String, dynamic> map) {
  10387. return MultiMethodItemDTO(
  10388. name: map['Name'],
  10389. description: map['Description'],
  10390. briefAnnotation: map['BriefAnnotation'],
  10391. typeName: map['TypeName'],
  10392. );
  10393. }
  10394. Map<String, dynamic> toJson() {
  10395. final map = super.toJson();
  10396. return map;
  10397. }
  10398. }
  10399. class UserDefinedMeasureApplicationDTO {
  10400. String? version;
  10401. String? id;
  10402. String? categoryName;
  10403. List<UserDefinedMeasureModeDTO >? modes;
  10404. UserDefinedMeasureApplicationDTO({
  10405. this.version,
  10406. this.id,
  10407. this.categoryName,
  10408. this.modes,
  10409. });
  10410. factory UserDefinedMeasureApplicationDTO.fromJson(Map<String, dynamic> map) {
  10411. return UserDefinedMeasureApplicationDTO(
  10412. version: map['Version'],
  10413. id: map['Id'],
  10414. categoryName: map['CategoryName'],
  10415. modes: map['Modes'] != null ? (map['Modes'] as List).map((e)=>UserDefinedMeasureModeDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10416. );
  10417. }
  10418. Map<String, dynamic> toJson() {
  10419. final map = Map<String, dynamic>();
  10420. if(version != null)
  10421. map['Version'] = version;
  10422. if(id != null)
  10423. map['Id'] = id;
  10424. if(categoryName != null)
  10425. map['CategoryName'] = categoryName;
  10426. if(modes != null)
  10427. map['Modes'] = modes;
  10428. return map;
  10429. }
  10430. }
  10431. class UserDefinedCommentDataDTO {
  10432. String? version;
  10433. String? languageCode;
  10434. String? categoryName;
  10435. String? applicationName;
  10436. List<CommentItemDTO >? commentItems;
  10437. UserDefinedCommentDataDTO({
  10438. this.version,
  10439. this.languageCode,
  10440. this.categoryName,
  10441. this.applicationName,
  10442. this.commentItems,
  10443. });
  10444. factory UserDefinedCommentDataDTO.fromJson(Map<String, dynamic> map) {
  10445. return UserDefinedCommentDataDTO(
  10446. version: map['Version'],
  10447. languageCode: map['LanguageCode'],
  10448. categoryName: map['CategoryName'],
  10449. applicationName: map['ApplicationName'],
  10450. commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>CommentItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10451. );
  10452. }
  10453. Map<String, dynamic> toJson() {
  10454. final map = Map<String, dynamic>();
  10455. if(version != null)
  10456. map['Version'] = version;
  10457. if(languageCode != null)
  10458. map['LanguageCode'] = languageCode;
  10459. if(categoryName != null)
  10460. map['CategoryName'] = categoryName;
  10461. if(applicationName != null)
  10462. map['ApplicationName'] = applicationName;
  10463. if(commentItems != null)
  10464. map['CommentItems'] = commentItems;
  10465. return map;
  10466. }
  10467. }
  10468. class UserDefinedMeasureInfoDTO {
  10469. String? userId;
  10470. Map<String,String>? systemSettings;
  10471. List<UserDefinedMeasureApplicationDTO >? measureApplications;
  10472. List<UserDefinedCommentDataDTO >? commentItems;
  10473. UserDefinedMeasureInfoDTO({
  10474. this.userId,
  10475. this.systemSettings,
  10476. this.measureApplications,
  10477. this.commentItems,
  10478. });
  10479. factory UserDefinedMeasureInfoDTO.fromJson(Map<String, dynamic> map) {
  10480. return UserDefinedMeasureInfoDTO(
  10481. userId: map['UserId'],
  10482. systemSettings: map['SystemSettings'] != null ? map['SystemSettings'].cast<String,String>() : null,
  10483. measureApplications: map['MeasureApplications'] != null ? (map['MeasureApplications'] as List).map((e)=>UserDefinedMeasureApplicationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10484. commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>UserDefinedCommentDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10485. );
  10486. }
  10487. Map<String, dynamic> toJson() {
  10488. final map = Map<String, dynamic>();
  10489. if(userId != null)
  10490. map['UserId'] = userId;
  10491. if(systemSettings != null)
  10492. map['SystemSettings'] = systemSettings;
  10493. if(measureApplications != null)
  10494. map['MeasureApplications'] = measureApplications;
  10495. if(commentItems != null)
  10496. map['CommentItems'] = commentItems;
  10497. return map;
  10498. }
  10499. }
  10500. class AbRatioDTO extends MultiMethodItemDTO{
  10501. AbRatioDTO({
  10502. String? name,
  10503. String? description,
  10504. String? briefAnnotation,
  10505. String? typeName,
  10506. }) : super(
  10507. name: name,
  10508. description: description,
  10509. briefAnnotation: briefAnnotation,
  10510. typeName: typeName,
  10511. );
  10512. factory AbRatioDTO.fromJson(Map<String, dynamic> map) {
  10513. return AbRatioDTO(
  10514. name: map['Name'],
  10515. description: map['Description'],
  10516. briefAnnotation: map['BriefAnnotation'],
  10517. typeName: map['TypeName'],
  10518. );
  10519. }
  10520. Map<String, dynamic> toJson() {
  10521. final map = super.toJson();
  10522. return map;
  10523. }
  10524. }
  10525. class AngleDTO extends MeasureItemDTO{
  10526. AngleDTO({
  10527. String? name,
  10528. String? description,
  10529. String? briefAnnotation,
  10530. String? typeName,
  10531. }) : super(
  10532. name: name,
  10533. description: description,
  10534. briefAnnotation: briefAnnotation,
  10535. typeName: typeName,
  10536. );
  10537. factory AngleDTO.fromJson(Map<String, dynamic> map) {
  10538. return AngleDTO(
  10539. name: map['Name'],
  10540. description: map['Description'],
  10541. briefAnnotation: map['BriefAnnotation'],
  10542. typeName: map['TypeName'],
  10543. );
  10544. }
  10545. Map<String, dynamic> toJson() {
  10546. final map = super.toJson();
  10547. return map;
  10548. }
  10549. }
  10550. class AreaPerimeterDTO extends MultiMethodItemDTO{
  10551. AreaPerimeterDTO({
  10552. String? name,
  10553. String? description,
  10554. String? briefAnnotation,
  10555. String? typeName,
  10556. }) : super(
  10557. name: name,
  10558. description: description,
  10559. briefAnnotation: briefAnnotation,
  10560. typeName: typeName,
  10561. );
  10562. factory AreaPerimeterDTO.fromJson(Map<String, dynamic> map) {
  10563. return AreaPerimeterDTO(
  10564. name: map['Name'],
  10565. description: map['Description'],
  10566. briefAnnotation: map['BriefAnnotation'],
  10567. typeName: map['TypeName'],
  10568. );
  10569. }
  10570. Map<String, dynamic> toJson() {
  10571. final map = super.toJson();
  10572. return map;
  10573. }
  10574. }
  10575. class CircleDTO extends MeasureItemDTO{
  10576. CircleDTO({
  10577. String? name,
  10578. String? description,
  10579. String? briefAnnotation,
  10580. String? typeName,
  10581. }) : super(
  10582. name: name,
  10583. description: description,
  10584. briefAnnotation: briefAnnotation,
  10585. typeName: typeName,
  10586. );
  10587. factory CircleDTO.fromJson(Map<String, dynamic> map) {
  10588. return CircleDTO(
  10589. name: map['Name'],
  10590. description: map['Description'],
  10591. briefAnnotation: map['BriefAnnotation'],
  10592. typeName: map['TypeName'],
  10593. );
  10594. }
  10595. Map<String, dynamic> toJson() {
  10596. final map = super.toJson();
  10597. return map;
  10598. }
  10599. }
  10600. class CurveLengthDTO extends MultiMethodItemDTO{
  10601. CurveLengthDTO({
  10602. String? name,
  10603. String? description,
  10604. String? briefAnnotation,
  10605. String? typeName,
  10606. }) : super(
  10607. name: name,
  10608. description: description,
  10609. briefAnnotation: briefAnnotation,
  10610. typeName: typeName,
  10611. );
  10612. factory CurveLengthDTO.fromJson(Map<String, dynamic> map) {
  10613. return CurveLengthDTO(
  10614. name: map['Name'],
  10615. description: map['Description'],
  10616. briefAnnotation: map['BriefAnnotation'],
  10617. typeName: map['TypeName'],
  10618. );
  10619. }
  10620. Map<String, dynamic> toJson() {
  10621. final map = super.toJson();
  10622. return map;
  10623. }
  10624. }
  10625. class EllipseDTO extends MeasureItemDTO{
  10626. EllipseDTO({
  10627. String? name,
  10628. String? description,
  10629. String? briefAnnotation,
  10630. String? typeName,
  10631. }) : super(
  10632. name: name,
  10633. description: description,
  10634. briefAnnotation: briefAnnotation,
  10635. typeName: typeName,
  10636. );
  10637. factory EllipseDTO.fromJson(Map<String, dynamic> map) {
  10638. return EllipseDTO(
  10639. name: map['Name'],
  10640. description: map['Description'],
  10641. briefAnnotation: map['BriefAnnotation'],
  10642. typeName: map['TypeName'],
  10643. );
  10644. }
  10645. Map<String, dynamic> toJson() {
  10646. final map = super.toJson();
  10647. return map;
  10648. }
  10649. }
  10650. class LocationDTO extends MeasureItemDTO{
  10651. LocationDTO({
  10652. String? name,
  10653. String? description,
  10654. String? briefAnnotation,
  10655. String? typeName,
  10656. }) : super(
  10657. name: name,
  10658. description: description,
  10659. briefAnnotation: briefAnnotation,
  10660. typeName: typeName,
  10661. );
  10662. factory LocationDTO.fromJson(Map<String, dynamic> map) {
  10663. return LocationDTO(
  10664. name: map['Name'],
  10665. description: map['Description'],
  10666. briefAnnotation: map['BriefAnnotation'],
  10667. typeName: map['TypeName'],
  10668. );
  10669. }
  10670. Map<String, dynamic> toJson() {
  10671. final map = super.toJson();
  10672. return map;
  10673. }
  10674. }
  10675. class LWHStraightLineDTO extends MeasureItemDTO{
  10676. LWHStraightLineDTO({
  10677. String? name,
  10678. String? description,
  10679. String? briefAnnotation,
  10680. String? typeName,
  10681. }) : super(
  10682. name: name,
  10683. description: description,
  10684. briefAnnotation: briefAnnotation,
  10685. typeName: typeName,
  10686. );
  10687. factory LWHStraightLineDTO.fromJson(Map<String, dynamic> map) {
  10688. return LWHStraightLineDTO(
  10689. name: map['Name'],
  10690. description: map['Description'],
  10691. briefAnnotation: map['BriefAnnotation'],
  10692. typeName: map['TypeName'],
  10693. );
  10694. }
  10695. Map<String, dynamic> toJson() {
  10696. final map = super.toJson();
  10697. return map;
  10698. }
  10699. }
  10700. class PolylineDTO extends MeasureItemDTO{
  10701. PolylineDTO({
  10702. String? name,
  10703. String? description,
  10704. String? briefAnnotation,
  10705. String? typeName,
  10706. }) : super(
  10707. name: name,
  10708. description: description,
  10709. briefAnnotation: briefAnnotation,
  10710. typeName: typeName,
  10711. );
  10712. factory PolylineDTO.fromJson(Map<String, dynamic> map) {
  10713. return PolylineDTO(
  10714. name: map['Name'],
  10715. description: map['Description'],
  10716. briefAnnotation: map['BriefAnnotation'],
  10717. typeName: map['TypeName'],
  10718. );
  10719. }
  10720. Map<String, dynamic> toJson() {
  10721. final map = super.toJson();
  10722. return map;
  10723. }
  10724. }
  10725. class RectDTO extends MeasureItemDTO{
  10726. RectDTO({
  10727. String? name,
  10728. String? description,
  10729. String? briefAnnotation,
  10730. String? typeName,
  10731. }) : super(
  10732. name: name,
  10733. description: description,
  10734. briefAnnotation: briefAnnotation,
  10735. typeName: typeName,
  10736. );
  10737. factory RectDTO.fromJson(Map<String, dynamic> map) {
  10738. return RectDTO(
  10739. name: map['Name'],
  10740. description: map['Description'],
  10741. briefAnnotation: map['BriefAnnotation'],
  10742. typeName: map['TypeName'],
  10743. );
  10744. }
  10745. Map<String, dynamic> toJson() {
  10746. final map = super.toJson();
  10747. return map;
  10748. }
  10749. }
  10750. class StenosisDTO extends MultiMethodItemDTO{
  10751. StenosisDTO({
  10752. String? name,
  10753. String? description,
  10754. String? briefAnnotation,
  10755. String? typeName,
  10756. }) : super(
  10757. name: name,
  10758. description: description,
  10759. briefAnnotation: briefAnnotation,
  10760. typeName: typeName,
  10761. );
  10762. factory StenosisDTO.fromJson(Map<String, dynamic> map) {
  10763. return StenosisDTO(
  10764. name: map['Name'],
  10765. description: map['Description'],
  10766. briefAnnotation: map['BriefAnnotation'],
  10767. typeName: map['TypeName'],
  10768. );
  10769. }
  10770. Map<String, dynamic> toJson() {
  10771. final map = super.toJson();
  10772. return map;
  10773. }
  10774. }
  10775. class StraightLineDTO extends MeasureItemDTO{
  10776. StraightLineDTO({
  10777. String? name,
  10778. String? description,
  10779. String? briefAnnotation,
  10780. String? typeName,
  10781. }) : super(
  10782. name: name,
  10783. description: description,
  10784. briefAnnotation: briefAnnotation,
  10785. typeName: typeName,
  10786. );
  10787. factory StraightLineDTO.fromJson(Map<String, dynamic> map) {
  10788. return StraightLineDTO(
  10789. name: map['Name'],
  10790. description: map['Description'],
  10791. briefAnnotation: map['BriefAnnotation'],
  10792. typeName: map['TypeName'],
  10793. );
  10794. }
  10795. Map<String, dynamic> toJson() {
  10796. final map = super.toJson();
  10797. return map;
  10798. }
  10799. }
  10800. class VolumeDTO extends MultiMethodItemDTO{
  10801. VolumeDTO({
  10802. String? name,
  10803. String? description,
  10804. String? briefAnnotation,
  10805. String? typeName,
  10806. }) : super(
  10807. name: name,
  10808. description: description,
  10809. briefAnnotation: briefAnnotation,
  10810. typeName: typeName,
  10811. );
  10812. factory VolumeDTO.fromJson(Map<String, dynamic> map) {
  10813. return VolumeDTO(
  10814. name: map['Name'],
  10815. description: map['Description'],
  10816. briefAnnotation: map['BriefAnnotation'],
  10817. typeName: map['TypeName'],
  10818. );
  10819. }
  10820. Map<String, dynamic> toJson() {
  10821. final map = super.toJson();
  10822. return map;
  10823. }
  10824. }
  10825. class CardiacAxisFeatureDTO extends MeasuredFeatureDTO{
  10826. String? logicalName;
  10827. String? logicalMode;
  10828. CardiacAxisFeatureDTO({
  10829. String? typeName,
  10830. this.logicalName,
  10831. this.logicalMode,
  10832. String? creator,
  10833. String? guid,
  10834. bool showChildFeatures = false,
  10835. DateTime? timeStamp,
  10836. bool isAutoCalculated = false,
  10837. List<MeasuredValueDTO >? values,
  10838. List<MeasuredFeatureDTO >? childFeatures,
  10839. }) : super(
  10840. typeName: typeName,
  10841. creator: creator,
  10842. guid: guid,
  10843. showChildFeatures: showChildFeatures,
  10844. timeStamp: timeStamp,
  10845. isAutoCalculated: isAutoCalculated,
  10846. values: values,
  10847. childFeatures: childFeatures,
  10848. );
  10849. factory CardiacAxisFeatureDTO.fromJson(Map<String, dynamic> map) {
  10850. return CardiacAxisFeatureDTO(
  10851. typeName: map['TypeName'],
  10852. logicalName: map['LogicalName'],
  10853. logicalMode: map['LogicalMode'],
  10854. creator: map['Creator'],
  10855. guid: map['Guid'],
  10856. showChildFeatures: map['ShowChildFeatures'],
  10857. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  10858. isAutoCalculated: map['IsAutoCalculated'],
  10859. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10860. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10861. );
  10862. }
  10863. Map<String, dynamic> toJson() {
  10864. final map = super.toJson();
  10865. if(logicalName != null)
  10866. map['LogicalName'] = logicalName;
  10867. if(logicalMode != null)
  10868. map['LogicalMode'] = logicalMode;
  10869. return map;
  10870. }
  10871. }
  10872. class CustomCalculatorFeatureDTO extends MeasuredFeatureDTO{
  10873. String? logicalName;
  10874. String? logicalMode;
  10875. CustomCalculatorFeatureDTO({
  10876. String? typeName,
  10877. this.logicalName,
  10878. this.logicalMode,
  10879. String? creator,
  10880. String? guid,
  10881. bool showChildFeatures = false,
  10882. DateTime? timeStamp,
  10883. bool isAutoCalculated = false,
  10884. List<MeasuredValueDTO >? values,
  10885. List<MeasuredFeatureDTO >? childFeatures,
  10886. }) : super(
  10887. typeName: typeName,
  10888. creator: creator,
  10889. guid: guid,
  10890. showChildFeatures: showChildFeatures,
  10891. timeStamp: timeStamp,
  10892. isAutoCalculated: isAutoCalculated,
  10893. values: values,
  10894. childFeatures: childFeatures,
  10895. );
  10896. factory CustomCalculatorFeatureDTO.fromJson(Map<String, dynamic> map) {
  10897. return CustomCalculatorFeatureDTO(
  10898. typeName: map['TypeName'],
  10899. logicalName: map['LogicalName'],
  10900. logicalMode: map['LogicalMode'],
  10901. creator: map['Creator'],
  10902. guid: map['Guid'],
  10903. showChildFeatures: map['ShowChildFeatures'],
  10904. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  10905. isAutoCalculated: map['IsAutoCalculated'],
  10906. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10907. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10908. );
  10909. }
  10910. Map<String, dynamic> toJson() {
  10911. final map = super.toJson();
  10912. if(logicalName != null)
  10913. map['LogicalName'] = logicalName;
  10914. if(logicalMode != null)
  10915. map['LogicalMode'] = logicalMode;
  10916. return map;
  10917. }
  10918. }
  10919. class GeometryFeatureDTO extends MeasuredFeatureDTO{
  10920. bool isVisible;
  10921. String? annotation;
  10922. String? briefAnnotation;
  10923. Unit xUnit;
  10924. Unit yUnit;
  10925. bool showAnnotation;
  10926. bool showCalliper;
  10927. List<PointDTO >? points;
  10928. GeometryFeatureDTO({
  10929. this.isVisible = false,
  10930. this.annotation,
  10931. this.briefAnnotation,
  10932. this.xUnit = Unit.None,
  10933. this.yUnit = Unit.None,
  10934. this.showAnnotation = false,
  10935. this.showCalliper = false,
  10936. this.points,
  10937. String? typeName,
  10938. String? creator,
  10939. String? guid,
  10940. bool showChildFeatures = false,
  10941. DateTime? timeStamp,
  10942. bool isAutoCalculated = false,
  10943. List<MeasuredValueDTO >? values,
  10944. List<MeasuredFeatureDTO >? childFeatures,
  10945. }) : super(
  10946. typeName: typeName,
  10947. creator: creator,
  10948. guid: guid,
  10949. showChildFeatures: showChildFeatures,
  10950. timeStamp: timeStamp,
  10951. isAutoCalculated: isAutoCalculated,
  10952. values: values,
  10953. childFeatures: childFeatures,
  10954. );
  10955. factory GeometryFeatureDTO.fromJson(Map<String, dynamic> map) {
  10956. return GeometryFeatureDTO(
  10957. isVisible: map['IsVisible'],
  10958. annotation: map['Annotation'],
  10959. briefAnnotation: map['BriefAnnotation'],
  10960. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  10961. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  10962. showAnnotation: map['ShowAnnotation'],
  10963. showCalliper: map['ShowCalliper'],
  10964. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10965. typeName: map['TypeName'],
  10966. creator: map['Creator'],
  10967. guid: map['Guid'],
  10968. showChildFeatures: map['ShowChildFeatures'],
  10969. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  10970. isAutoCalculated: map['IsAutoCalculated'],
  10971. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10972. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10973. );
  10974. }
  10975. Map<String, dynamic> toJson() {
  10976. final map = super.toJson();
  10977. map['IsVisible'] = isVisible;
  10978. if(annotation != null)
  10979. map['Annotation'] = annotation;
  10980. if(briefAnnotation != null)
  10981. map['BriefAnnotation'] = briefAnnotation;
  10982. map['XUnit'] = xUnit.index;
  10983. map['YUnit'] = yUnit.index;
  10984. map['ShowAnnotation'] = showAnnotation;
  10985. map['ShowCalliper'] = showCalliper;
  10986. if(points != null)
  10987. map['Points'] = points;
  10988. return map;
  10989. }
  10990. }
  10991. class CardiacCycleDTO {
  10992. int index;
  10993. PointDTO? systoleStart;
  10994. PointDTO? diastoleEnd;
  10995. PointDTO? peakSystolic;
  10996. PointDTO? minimumAbsoluteVelocity;
  10997. CardiacCycleDTO({
  10998. this.index = 0,
  10999. this.systoleStart,
  11000. this.diastoleEnd,
  11001. this.peakSystolic,
  11002. this.minimumAbsoluteVelocity,
  11003. });
  11004. factory CardiacCycleDTO.fromJson(Map<String, dynamic> map) {
  11005. return CardiacCycleDTO(
  11006. index: map['Index'],
  11007. systoleStart: map['SystoleStart'] != null ? PointDTO.fromJson(map['SystoleStart']) : null,
  11008. diastoleEnd: map['DiastoleEnd'] != null ? PointDTO.fromJson(map['DiastoleEnd']) : null,
  11009. peakSystolic: map['PeakSystolic'] != null ? PointDTO.fromJson(map['PeakSystolic']) : null,
  11010. minimumAbsoluteVelocity: map['MinimumAbsoluteVelocity'] != null ? PointDTO.fromJson(map['MinimumAbsoluteVelocity']) : null,
  11011. );
  11012. }
  11013. Map<String, dynamic> toJson() {
  11014. final map = Map<String, dynamic>();
  11015. map['Index'] = index;
  11016. if(systoleStart != null)
  11017. map['SystoleStart'] = systoleStart;
  11018. if(diastoleEnd != null)
  11019. map['DiastoleEnd'] = diastoleEnd;
  11020. if(peakSystolic != null)
  11021. map['PeakSystolic'] = peakSystolic;
  11022. if(minimumAbsoluteVelocity != null)
  11023. map['MinimumAbsoluteVelocity'] = minimumAbsoluteVelocity;
  11024. return map;
  11025. }
  11026. }
  11027. class GrowthPercentileDTO {
  11028. int oBTableCategory;
  11029. String? tableAuthor;
  11030. String? measureItem;
  11031. int gAinDays;
  11032. int status;
  11033. double value;
  11034. double tableDataLimitation;
  11035. double zScoreValue;
  11036. int zScoreStatus;
  11037. GrowthPercentileDTO({
  11038. this.oBTableCategory = 0,
  11039. this.tableAuthor,
  11040. this.measureItem,
  11041. this.gAinDays = 0,
  11042. this.status = 0,
  11043. this.value = 0,
  11044. this.tableDataLimitation = 0,
  11045. this.zScoreValue = 0,
  11046. this.zScoreStatus = 0,
  11047. });
  11048. factory GrowthPercentileDTO.fromJson(Map<String, dynamic> map) {
  11049. return GrowthPercentileDTO(
  11050. oBTableCategory: map['OBTableCategory'],
  11051. tableAuthor: map['TableAuthor'],
  11052. measureItem: map['MeasureItem'],
  11053. gAinDays: map['GAinDays'],
  11054. status: map['Status'],
  11055. value: double.parse(map['Value'].toString()),
  11056. tableDataLimitation: double.parse(map['TableDataLimitation'].toString()),
  11057. zScoreValue: double.parse(map['ZScoreValue'].toString()),
  11058. zScoreStatus: map['ZScoreStatus'],
  11059. );
  11060. }
  11061. Map<String, dynamic> toJson() {
  11062. final map = Map<String, dynamic>();
  11063. map['OBTableCategory'] = oBTableCategory;
  11064. if(tableAuthor != null)
  11065. map['TableAuthor'] = tableAuthor;
  11066. if(measureItem != null)
  11067. map['MeasureItem'] = measureItem;
  11068. map['GAinDays'] = gAinDays;
  11069. map['Status'] = status;
  11070. map['Value'] = value;
  11071. map['TableDataLimitation'] = tableDataLimitation;
  11072. map['ZScoreValue'] = zScoreValue;
  11073. map['ZScoreStatus'] = zScoreStatus;
  11074. return map;
  11075. }
  11076. }
  11077. class GrowthAgeDTO {
  11078. int oBTableCategory;
  11079. String? tableAuthor;
  11080. String? measureItem;
  11081. int days;
  11082. int status;
  11083. int minDays;
  11084. int maxDays;
  11085. GrowthAgeDTO({
  11086. this.oBTableCategory = 0,
  11087. this.tableAuthor,
  11088. this.measureItem,
  11089. this.days = 0,
  11090. this.status = 0,
  11091. this.minDays = 0,
  11092. this.maxDays = 0,
  11093. });
  11094. factory GrowthAgeDTO.fromJson(Map<String, dynamic> map) {
  11095. return GrowthAgeDTO(
  11096. oBTableCategory: map['OBTableCategory'],
  11097. tableAuthor: map['TableAuthor'],
  11098. measureItem: map['MeasureItem'],
  11099. days: map['Days'],
  11100. status: map['Status'],
  11101. minDays: map['MinDays'],
  11102. maxDays: map['MaxDays'],
  11103. );
  11104. }
  11105. Map<String, dynamic> toJson() {
  11106. final map = Map<String, dynamic>();
  11107. map['OBTableCategory'] = oBTableCategory;
  11108. if(tableAuthor != null)
  11109. map['TableAuthor'] = tableAuthor;
  11110. if(measureItem != null)
  11111. map['MeasureItem'] = measureItem;
  11112. map['Days'] = days;
  11113. map['Status'] = status;
  11114. map['MinDays'] = minDays;
  11115. map['MaxDays'] = maxDays;
  11116. return map;
  11117. }
  11118. }
  11119. class FetalGrowthIndexDTO {
  11120. GrowthPercentileDTO? percentile;
  11121. GrowthAgeDTO? growthAge;
  11122. DateTime? estimateDueDate;
  11123. FetalGrowthIndexDTO({
  11124. this.percentile,
  11125. this.growthAge,
  11126. this.estimateDueDate,
  11127. });
  11128. factory FetalGrowthIndexDTO.fromJson(Map<String, dynamic> map) {
  11129. return FetalGrowthIndexDTO(
  11130. percentile: map['Percentile'] != null ? GrowthPercentileDTO.fromJson(map['Percentile']) : null,
  11131. growthAge: map['GrowthAge'] != null ? GrowthAgeDTO.fromJson(map['GrowthAge']) : null,
  11132. estimateDueDate: map['EstimateDueDate'] != null ? DateTime.parse(map['EstimateDueDate']) : null,
  11133. );
  11134. }
  11135. Map<String, dynamic> toJson() {
  11136. final map = Map<String, dynamic>();
  11137. if(percentile != null)
  11138. map['Percentile'] = percentile;
  11139. if(growthAge != null)
  11140. map['GrowthAge'] = growthAge;
  11141. if(estimateDueDate != null)
  11142. map['EstimateDueDate'] = JsonRpcUtils.dateFormat(estimateDueDate!);
  11143. return map;
  11144. }
  11145. }
  11146. class FloatValueDTO extends MeasuredValueDTO{
  11147. FetalGrowthIndexDTO? fetalGrowthIndex;
  11148. String? typeName;
  11149. String? name;
  11150. String? description;
  11151. bool worksheetAffinity;
  11152. String? briefDescription;
  11153. String? value;
  11154. Unit unit;
  11155. Unit targetUnit;
  11156. FloatValueDTO({
  11157. this.fetalGrowthIndex,
  11158. this.typeName,
  11159. this.name,
  11160. this.description,
  11161. this.worksheetAffinity = false,
  11162. this.briefDescription,
  11163. this.value,
  11164. this.unit = Unit.None,
  11165. this.targetUnit = Unit.None,
  11166. });
  11167. factory FloatValueDTO.fromJson(Map<String, dynamic> map) {
  11168. return FloatValueDTO(
  11169. fetalGrowthIndex: map['FetalGrowthIndex'] != null ? FetalGrowthIndexDTO.fromJson(map['FetalGrowthIndex']) : null,
  11170. typeName: map['TypeName'],
  11171. name: map['Name'],
  11172. description: map['Description'],
  11173. worksheetAffinity: map['WorksheetAffinity'],
  11174. briefDescription: map['BriefDescription'],
  11175. value: map['Value'],
  11176. unit: Unit.values.firstWhere((e) => e.index == map['Unit']),
  11177. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  11178. );
  11179. }
  11180. Map<String, dynamic> toJson() {
  11181. final map = super.toJson();
  11182. return map;
  11183. }
  11184. }
  11185. class DopplerTraceFeatureDTO extends GeometryFeatureDTO{
  11186. int avgHeartCycle;
  11187. ASETypeEnum traceType;
  11188. List<PointDTO >? maxTraceLine;
  11189. List<CardiacCycleDTO >? cardiacCycles;
  11190. List<FloatValueDTO >? autoMeasureValues;
  11191. DopplerTraceFeatureDTO({
  11192. String? typeName,
  11193. this.avgHeartCycle = 0,
  11194. this.traceType = ASETypeEnum.Off,
  11195. this.maxTraceLine,
  11196. this.cardiacCycles,
  11197. this.autoMeasureValues,
  11198. bool isVisible = false,
  11199. String? annotation,
  11200. String? briefAnnotation,
  11201. Unit xUnit = Unit.None,
  11202. Unit yUnit = Unit.None,
  11203. bool showAnnotation = false,
  11204. bool showCalliper = false,
  11205. List<PointDTO >? points,
  11206. String? creator,
  11207. String? guid,
  11208. bool showChildFeatures = false,
  11209. DateTime? timeStamp,
  11210. bool isAutoCalculated = false,
  11211. List<MeasuredValueDTO >? values,
  11212. List<MeasuredFeatureDTO >? childFeatures,
  11213. }) : super(
  11214. isVisible: isVisible,
  11215. annotation: annotation,
  11216. briefAnnotation: briefAnnotation,
  11217. xUnit: xUnit,
  11218. yUnit: yUnit,
  11219. showAnnotation: showAnnotation,
  11220. showCalliper: showCalliper,
  11221. points: points,
  11222. typeName: typeName,
  11223. creator: creator,
  11224. guid: guid,
  11225. showChildFeatures: showChildFeatures,
  11226. timeStamp: timeStamp,
  11227. isAutoCalculated: isAutoCalculated,
  11228. values: values,
  11229. childFeatures: childFeatures,
  11230. );
  11231. factory DopplerTraceFeatureDTO.fromJson(Map<String, dynamic> map) {
  11232. return DopplerTraceFeatureDTO(
  11233. typeName: map['TypeName'],
  11234. avgHeartCycle: map['AvgHeartCycle'],
  11235. traceType: ASETypeEnum.values.firstWhere((e) => e.index == map['TraceType']),
  11236. maxTraceLine: map['MaxTraceLine'] != null ? (map['MaxTraceLine'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11237. cardiacCycles: map['CardiacCycles'] != null ? (map['CardiacCycles'] as List).map((e)=>CardiacCycleDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11238. autoMeasureValues: map['AutoMeasureValues'] != null ? (map['AutoMeasureValues'] as List).map((e)=>FloatValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11239. isVisible: map['IsVisible'],
  11240. annotation: map['Annotation'],
  11241. briefAnnotation: map['BriefAnnotation'],
  11242. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11243. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11244. showAnnotation: map['ShowAnnotation'],
  11245. showCalliper: map['ShowCalliper'],
  11246. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11247. creator: map['Creator'],
  11248. guid: map['Guid'],
  11249. showChildFeatures: map['ShowChildFeatures'],
  11250. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11251. isAutoCalculated: map['IsAutoCalculated'],
  11252. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11253. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11254. );
  11255. }
  11256. Map<String, dynamic> toJson() {
  11257. final map = super.toJson();
  11258. map['AvgHeartCycle'] = avgHeartCycle;
  11259. map['TraceType'] = traceType.index;
  11260. if(maxTraceLine != null)
  11261. map['MaxTraceLine'] = maxTraceLine;
  11262. if(cardiacCycles != null)
  11263. map['CardiacCycles'] = cardiacCycles;
  11264. if(autoMeasureValues != null)
  11265. map['AutoMeasureValues'] = autoMeasureValues;
  11266. return map;
  11267. }
  11268. }
  11269. class EllipseFeatureDTO extends GeometryFeatureDTO{
  11270. double angle;
  11271. EllipseFeatureDTO({
  11272. String? typeName,
  11273. this.angle = 0,
  11274. bool isVisible = false,
  11275. String? annotation,
  11276. String? briefAnnotation,
  11277. Unit xUnit = Unit.None,
  11278. Unit yUnit = Unit.None,
  11279. bool showAnnotation = false,
  11280. bool showCalliper = false,
  11281. List<PointDTO >? points,
  11282. String? creator,
  11283. String? guid,
  11284. bool showChildFeatures = false,
  11285. DateTime? timeStamp,
  11286. bool isAutoCalculated = false,
  11287. List<MeasuredValueDTO >? values,
  11288. List<MeasuredFeatureDTO >? childFeatures,
  11289. }) : super(
  11290. isVisible: isVisible,
  11291. annotation: annotation,
  11292. briefAnnotation: briefAnnotation,
  11293. xUnit: xUnit,
  11294. yUnit: yUnit,
  11295. showAnnotation: showAnnotation,
  11296. showCalliper: showCalliper,
  11297. points: points,
  11298. typeName: typeName,
  11299. creator: creator,
  11300. guid: guid,
  11301. showChildFeatures: showChildFeatures,
  11302. timeStamp: timeStamp,
  11303. isAutoCalculated: isAutoCalculated,
  11304. values: values,
  11305. childFeatures: childFeatures,
  11306. );
  11307. factory EllipseFeatureDTO.fromJson(Map<String, dynamic> map) {
  11308. return EllipseFeatureDTO(
  11309. typeName: map['TypeName'],
  11310. angle: double.parse(map['Angle'].toString()),
  11311. isVisible: map['IsVisible'],
  11312. annotation: map['Annotation'],
  11313. briefAnnotation: map['BriefAnnotation'],
  11314. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11315. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11316. showAnnotation: map['ShowAnnotation'],
  11317. showCalliper: map['ShowCalliper'],
  11318. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11319. creator: map['Creator'],
  11320. guid: map['Guid'],
  11321. showChildFeatures: map['ShowChildFeatures'],
  11322. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11323. isAutoCalculated: map['IsAutoCalculated'],
  11324. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11325. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11326. );
  11327. }
  11328. Map<String, dynamic> toJson() {
  11329. final map = super.toJson();
  11330. map['Angle'] = angle;
  11331. return map;
  11332. }
  11333. }
  11334. class AutoMeasureGeometryDTO {
  11335. int index;
  11336. List<PointDTO >? points;
  11337. AutoMeasureGeometryDTO({
  11338. this.index = 0,
  11339. this.points,
  11340. });
  11341. factory AutoMeasureGeometryDTO.fromJson(Map<String, dynamic> map) {
  11342. return AutoMeasureGeometryDTO(
  11343. index: map['Index'],
  11344. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11345. );
  11346. }
  11347. Map<String, dynamic> toJson() {
  11348. final map = Map<String, dynamic>();
  11349. map['Index'] = index;
  11350. if(points != null)
  11351. map['Points'] = points;
  11352. return map;
  11353. }
  11354. }
  11355. class FollicleShapeFeatureDTO extends GeometryFeatureDTO{
  11356. List<AutoMeasureGeometryDTO >? geometries;
  11357. FollicleShapeFeatureDTO({
  11358. String? typeName,
  11359. this.geometries,
  11360. bool isVisible = false,
  11361. String? annotation,
  11362. String? briefAnnotation,
  11363. Unit xUnit = Unit.None,
  11364. Unit yUnit = Unit.None,
  11365. bool showAnnotation = false,
  11366. bool showCalliper = false,
  11367. List<PointDTO >? points,
  11368. String? creator,
  11369. String? guid,
  11370. bool showChildFeatures = false,
  11371. DateTime? timeStamp,
  11372. bool isAutoCalculated = false,
  11373. List<MeasuredValueDTO >? values,
  11374. List<MeasuredFeatureDTO >? childFeatures,
  11375. }) : super(
  11376. isVisible: isVisible,
  11377. annotation: annotation,
  11378. briefAnnotation: briefAnnotation,
  11379. xUnit: xUnit,
  11380. yUnit: yUnit,
  11381. showAnnotation: showAnnotation,
  11382. showCalliper: showCalliper,
  11383. points: points,
  11384. typeName: typeName,
  11385. creator: creator,
  11386. guid: guid,
  11387. showChildFeatures: showChildFeatures,
  11388. timeStamp: timeStamp,
  11389. isAutoCalculated: isAutoCalculated,
  11390. values: values,
  11391. childFeatures: childFeatures,
  11392. );
  11393. factory FollicleShapeFeatureDTO.fromJson(Map<String, dynamic> map) {
  11394. return FollicleShapeFeatureDTO(
  11395. typeName: map['TypeName'],
  11396. geometries: map['Geometries'] != null ? (map['Geometries'] as List).map((e)=>AutoMeasureGeometryDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11397. isVisible: map['IsVisible'],
  11398. annotation: map['Annotation'],
  11399. briefAnnotation: map['BriefAnnotation'],
  11400. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11401. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11402. showAnnotation: map['ShowAnnotation'],
  11403. showCalliper: map['ShowCalliper'],
  11404. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11405. creator: map['Creator'],
  11406. guid: map['Guid'],
  11407. showChildFeatures: map['ShowChildFeatures'],
  11408. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11409. isAutoCalculated: map['IsAutoCalculated'],
  11410. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11411. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11412. );
  11413. }
  11414. Map<String, dynamic> toJson() {
  11415. final map = super.toJson();
  11416. if(geometries != null)
  11417. map['Geometries'] = geometries;
  11418. return map;
  11419. }
  11420. }
  11421. class LocationFeatureDTO extends GeometryFeatureDTO{
  11422. LocationFeatureDTO({
  11423. String? typeName,
  11424. bool isVisible = false,
  11425. String? annotation,
  11426. String? briefAnnotation,
  11427. Unit xUnit = Unit.None,
  11428. Unit yUnit = Unit.None,
  11429. bool showAnnotation = false,
  11430. bool showCalliper = false,
  11431. List<PointDTO >? points,
  11432. String? creator,
  11433. String? guid,
  11434. bool showChildFeatures = false,
  11435. DateTime? timeStamp,
  11436. bool isAutoCalculated = false,
  11437. List<MeasuredValueDTO >? values,
  11438. List<MeasuredFeatureDTO >? childFeatures,
  11439. }) : super(
  11440. isVisible: isVisible,
  11441. annotation: annotation,
  11442. briefAnnotation: briefAnnotation,
  11443. xUnit: xUnit,
  11444. yUnit: yUnit,
  11445. showAnnotation: showAnnotation,
  11446. showCalliper: showCalliper,
  11447. points: points,
  11448. typeName: typeName,
  11449. creator: creator,
  11450. guid: guid,
  11451. showChildFeatures: showChildFeatures,
  11452. timeStamp: timeStamp,
  11453. isAutoCalculated: isAutoCalculated,
  11454. values: values,
  11455. childFeatures: childFeatures,
  11456. );
  11457. factory LocationFeatureDTO.fromJson(Map<String, dynamic> map) {
  11458. return LocationFeatureDTO(
  11459. typeName: map['TypeName'],
  11460. isVisible: map['IsVisible'],
  11461. annotation: map['Annotation'],
  11462. briefAnnotation: map['BriefAnnotation'],
  11463. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11464. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11465. showAnnotation: map['ShowAnnotation'],
  11466. showCalliper: map['ShowCalliper'],
  11467. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11468. creator: map['Creator'],
  11469. guid: map['Guid'],
  11470. showChildFeatures: map['ShowChildFeatures'],
  11471. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11472. isAutoCalculated: map['IsAutoCalculated'],
  11473. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11474. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11475. );
  11476. }
  11477. Map<String, dynamic> toJson() {
  11478. final map = super.toJson();
  11479. return map;
  11480. }
  11481. }
  11482. class RayFeatureDTO extends LocationFeatureDTO{
  11483. bool isReverse;
  11484. double angle;
  11485. RayFeatureDTO({
  11486. String? typeName,
  11487. this.isReverse = false,
  11488. this.angle = 0,
  11489. bool isVisible = false,
  11490. String? annotation,
  11491. String? briefAnnotation,
  11492. Unit xUnit = Unit.None,
  11493. Unit yUnit = Unit.None,
  11494. bool showAnnotation = false,
  11495. bool showCalliper = false,
  11496. List<PointDTO >? points,
  11497. String? creator,
  11498. String? guid,
  11499. bool showChildFeatures = false,
  11500. DateTime? timeStamp,
  11501. bool isAutoCalculated = false,
  11502. List<MeasuredValueDTO >? values,
  11503. List<MeasuredFeatureDTO >? childFeatures,
  11504. }) : super(
  11505. typeName: typeName,
  11506. isVisible: isVisible,
  11507. annotation: annotation,
  11508. briefAnnotation: briefAnnotation,
  11509. xUnit: xUnit,
  11510. yUnit: yUnit,
  11511. showAnnotation: showAnnotation,
  11512. showCalliper: showCalliper,
  11513. points: points,
  11514. creator: creator,
  11515. guid: guid,
  11516. showChildFeatures: showChildFeatures,
  11517. timeStamp: timeStamp,
  11518. isAutoCalculated: isAutoCalculated,
  11519. values: values,
  11520. childFeatures: childFeatures,
  11521. );
  11522. factory RayFeatureDTO.fromJson(Map<String, dynamic> map) {
  11523. return RayFeatureDTO(
  11524. typeName: map['TypeName'],
  11525. isReverse: map['IsReverse'],
  11526. angle: double.parse(map['Angle'].toString()),
  11527. isVisible: map['IsVisible'],
  11528. annotation: map['Annotation'],
  11529. briefAnnotation: map['BriefAnnotation'],
  11530. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11531. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11532. showAnnotation: map['ShowAnnotation'],
  11533. showCalliper: map['ShowCalliper'],
  11534. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11535. creator: map['Creator'],
  11536. guid: map['Guid'],
  11537. showChildFeatures: map['ShowChildFeatures'],
  11538. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11539. isAutoCalculated: map['IsAutoCalculated'],
  11540. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11541. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11542. );
  11543. }
  11544. Map<String, dynamic> toJson() {
  11545. final map = super.toJson();
  11546. map['IsReverse'] = isReverse;
  11547. map['Angle'] = angle;
  11548. return map;
  11549. }
  11550. }
  11551. class ManualTraceFeatureDTO extends GeometryFeatureDTO{
  11552. ManualTraceFeatureDTO({
  11553. String? typeName,
  11554. bool isVisible = false,
  11555. String? annotation,
  11556. String? briefAnnotation,
  11557. Unit xUnit = Unit.None,
  11558. Unit yUnit = Unit.None,
  11559. bool showAnnotation = false,
  11560. bool showCalliper = false,
  11561. List<PointDTO >? points,
  11562. String? creator,
  11563. String? guid,
  11564. bool showChildFeatures = false,
  11565. DateTime? timeStamp,
  11566. bool isAutoCalculated = false,
  11567. List<MeasuredValueDTO >? values,
  11568. List<MeasuredFeatureDTO >? childFeatures,
  11569. }) : super(
  11570. isVisible: isVisible,
  11571. annotation: annotation,
  11572. briefAnnotation: briefAnnotation,
  11573. xUnit: xUnit,
  11574. yUnit: yUnit,
  11575. showAnnotation: showAnnotation,
  11576. showCalliper: showCalliper,
  11577. points: points,
  11578. typeName: typeName,
  11579. creator: creator,
  11580. guid: guid,
  11581. showChildFeatures: showChildFeatures,
  11582. timeStamp: timeStamp,
  11583. isAutoCalculated: isAutoCalculated,
  11584. values: values,
  11585. childFeatures: childFeatures,
  11586. );
  11587. factory ManualTraceFeatureDTO.fromJson(Map<String, dynamic> map) {
  11588. return ManualTraceFeatureDTO(
  11589. typeName: map['TypeName'],
  11590. isVisible: map['IsVisible'],
  11591. annotation: map['Annotation'],
  11592. briefAnnotation: map['BriefAnnotation'],
  11593. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11594. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11595. showAnnotation: map['ShowAnnotation'],
  11596. showCalliper: map['ShowCalliper'],
  11597. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11598. creator: map['Creator'],
  11599. guid: map['Guid'],
  11600. showChildFeatures: map['ShowChildFeatures'],
  11601. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11602. isAutoCalculated: map['IsAutoCalculated'],
  11603. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11604. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11605. );
  11606. }
  11607. Map<String, dynamic> toJson() {
  11608. final map = super.toJson();
  11609. return map;
  11610. }
  11611. }
  11612. class PolyLineFeatureDTO extends MeasuredFeatureDTO{
  11613. bool isClosed;
  11614. double splineTension;
  11615. PolyLineFeatureDTO({
  11616. String? typeName,
  11617. this.isClosed = false,
  11618. this.splineTension = 0,
  11619. String? creator,
  11620. String? guid,
  11621. bool showChildFeatures = false,
  11622. DateTime? timeStamp,
  11623. bool isAutoCalculated = false,
  11624. List<MeasuredValueDTO >? values,
  11625. List<MeasuredFeatureDTO >? childFeatures,
  11626. }) : super(
  11627. typeName: typeName,
  11628. creator: creator,
  11629. guid: guid,
  11630. showChildFeatures: showChildFeatures,
  11631. timeStamp: timeStamp,
  11632. isAutoCalculated: isAutoCalculated,
  11633. values: values,
  11634. childFeatures: childFeatures,
  11635. );
  11636. factory PolyLineFeatureDTO.fromJson(Map<String, dynamic> map) {
  11637. return PolyLineFeatureDTO(
  11638. typeName: map['TypeName'],
  11639. isClosed: map['IsClosed'],
  11640. splineTension: double.parse(map['SplineTension'].toString()),
  11641. creator: map['Creator'],
  11642. guid: map['Guid'],
  11643. showChildFeatures: map['ShowChildFeatures'],
  11644. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11645. isAutoCalculated: map['IsAutoCalculated'],
  11646. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11647. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11648. );
  11649. }
  11650. Map<String, dynamic> toJson() {
  11651. final map = super.toJson();
  11652. map['IsClosed'] = isClosed;
  11653. map['SplineTension'] = splineTension;
  11654. return map;
  11655. }
  11656. }
  11657. class TraceLineFeatureDTO extends PolyLineFeatureDTO{
  11658. TraceLineFeatureDTO({
  11659. String? typeName,
  11660. bool isClosed = false,
  11661. double splineTension = 0,
  11662. String? creator,
  11663. String? guid,
  11664. bool showChildFeatures = false,
  11665. DateTime? timeStamp,
  11666. bool isAutoCalculated = false,
  11667. List<MeasuredValueDTO >? values,
  11668. List<MeasuredFeatureDTO >? childFeatures,
  11669. }) : super(
  11670. typeName: typeName,
  11671. isClosed: isClosed,
  11672. splineTension: splineTension,
  11673. creator: creator,
  11674. guid: guid,
  11675. showChildFeatures: showChildFeatures,
  11676. timeStamp: timeStamp,
  11677. isAutoCalculated: isAutoCalculated,
  11678. values: values,
  11679. childFeatures: childFeatures,
  11680. );
  11681. factory TraceLineFeatureDTO.fromJson(Map<String, dynamic> map) {
  11682. return TraceLineFeatureDTO(
  11683. typeName: map['TypeName'],
  11684. isClosed: map['IsClosed'],
  11685. splineTension: double.parse(map['SplineTension'].toString()),
  11686. creator: map['Creator'],
  11687. guid: map['Guid'],
  11688. showChildFeatures: map['ShowChildFeatures'],
  11689. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11690. isAutoCalculated: map['IsAutoCalculated'],
  11691. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11692. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11693. );
  11694. }
  11695. Map<String, dynamic> toJson() {
  11696. final map = super.toJson();
  11697. return map;
  11698. }
  11699. }
  11700. class SimpsonPathFeatureDTO extends TraceLineFeatureDTO{
  11701. PointDTO? centerLineMovablePoint;
  11702. SimpsonPathFeatureDTO({
  11703. String? typeName,
  11704. this.centerLineMovablePoint,
  11705. bool isClosed = false,
  11706. double splineTension = 0,
  11707. String? creator,
  11708. String? guid,
  11709. bool showChildFeatures = false,
  11710. DateTime? timeStamp,
  11711. bool isAutoCalculated = false,
  11712. List<MeasuredValueDTO >? values,
  11713. List<MeasuredFeatureDTO >? childFeatures,
  11714. }) : super(
  11715. typeName: typeName,
  11716. isClosed: isClosed,
  11717. splineTension: splineTension,
  11718. creator: creator,
  11719. guid: guid,
  11720. showChildFeatures: showChildFeatures,
  11721. timeStamp: timeStamp,
  11722. isAutoCalculated: isAutoCalculated,
  11723. values: values,
  11724. childFeatures: childFeatures,
  11725. );
  11726. factory SimpsonPathFeatureDTO.fromJson(Map<String, dynamic> map) {
  11727. return SimpsonPathFeatureDTO(
  11728. typeName: map['TypeName'],
  11729. centerLineMovablePoint: map['CenterLineMovablePoint'] != null ? PointDTO.fromJson(map['CenterLineMovablePoint']) : null,
  11730. isClosed: map['IsClosed'],
  11731. splineTension: double.parse(map['SplineTension'].toString()),
  11732. creator: map['Creator'],
  11733. guid: map['Guid'],
  11734. showChildFeatures: map['ShowChildFeatures'],
  11735. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11736. isAutoCalculated: map['IsAutoCalculated'],
  11737. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11738. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11739. );
  11740. }
  11741. Map<String, dynamic> toJson() {
  11742. final map = super.toJson();
  11743. if(centerLineMovablePoint != null)
  11744. map['CenterLineMovablePoint'] = centerLineMovablePoint;
  11745. return map;
  11746. }
  11747. }
  11748. class RectFeatureDTO extends GeometryFeatureDTO{
  11749. bool showRootFeature;
  11750. List<MeasuredFeatureDTO >? autoLines;
  11751. RectFeatureDTO({
  11752. String? typeName,
  11753. this.showRootFeature = false,
  11754. this.autoLines,
  11755. bool isVisible = false,
  11756. String? annotation,
  11757. String? briefAnnotation,
  11758. Unit xUnit = Unit.None,
  11759. Unit yUnit = Unit.None,
  11760. bool showAnnotation = false,
  11761. bool showCalliper = false,
  11762. List<PointDTO >? points,
  11763. String? creator,
  11764. String? guid,
  11765. bool showChildFeatures = false,
  11766. DateTime? timeStamp,
  11767. bool isAutoCalculated = false,
  11768. List<MeasuredValueDTO >? values,
  11769. List<MeasuredFeatureDTO >? childFeatures,
  11770. }) : super(
  11771. isVisible: isVisible,
  11772. annotation: annotation,
  11773. briefAnnotation: briefAnnotation,
  11774. xUnit: xUnit,
  11775. yUnit: yUnit,
  11776. showAnnotation: showAnnotation,
  11777. showCalliper: showCalliper,
  11778. points: points,
  11779. typeName: typeName,
  11780. creator: creator,
  11781. guid: guid,
  11782. showChildFeatures: showChildFeatures,
  11783. timeStamp: timeStamp,
  11784. isAutoCalculated: isAutoCalculated,
  11785. values: values,
  11786. childFeatures: childFeatures,
  11787. );
  11788. factory RectFeatureDTO.fromJson(Map<String, dynamic> map) {
  11789. return RectFeatureDTO(
  11790. typeName: map['TypeName'],
  11791. showRootFeature: map['ShowRootFeature'],
  11792. autoLines: map['AutoLines'] != null ? (map['AutoLines'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11793. isVisible: map['IsVisible'],
  11794. annotation: map['Annotation'],
  11795. briefAnnotation: map['BriefAnnotation'],
  11796. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11797. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11798. showAnnotation: map['ShowAnnotation'],
  11799. showCalliper: map['ShowCalliper'],
  11800. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11801. creator: map['Creator'],
  11802. guid: map['Guid'],
  11803. showChildFeatures: map['ShowChildFeatures'],
  11804. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11805. isAutoCalculated: map['IsAutoCalculated'],
  11806. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11807. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11808. );
  11809. }
  11810. Map<String, dynamic> toJson() {
  11811. final map = super.toJson();
  11812. map['ShowRootFeature'] = showRootFeature;
  11813. if(autoLines != null)
  11814. map['AutoLines'] = autoLines;
  11815. return map;
  11816. }
  11817. }
  11818. class FollicleRectFeatureDTO extends RectFeatureDTO{
  11819. FollicleRectFeatureDTO({
  11820. String? typeName,
  11821. bool showRootFeature = false,
  11822. List<MeasuredFeatureDTO >? autoLines,
  11823. bool isVisible = false,
  11824. String? annotation,
  11825. String? briefAnnotation,
  11826. Unit xUnit = Unit.None,
  11827. Unit yUnit = Unit.None,
  11828. bool showAnnotation = false,
  11829. bool showCalliper = false,
  11830. List<PointDTO >? points,
  11831. String? creator,
  11832. String? guid,
  11833. bool showChildFeatures = false,
  11834. DateTime? timeStamp,
  11835. bool isAutoCalculated = false,
  11836. List<MeasuredValueDTO >? values,
  11837. List<MeasuredFeatureDTO >? childFeatures,
  11838. }) : super(
  11839. typeName: typeName,
  11840. showRootFeature: showRootFeature,
  11841. autoLines: autoLines,
  11842. isVisible: isVisible,
  11843. annotation: annotation,
  11844. briefAnnotation: briefAnnotation,
  11845. xUnit: xUnit,
  11846. yUnit: yUnit,
  11847. showAnnotation: showAnnotation,
  11848. showCalliper: showCalliper,
  11849. points: points,
  11850. creator: creator,
  11851. guid: guid,
  11852. showChildFeatures: showChildFeatures,
  11853. timeStamp: timeStamp,
  11854. isAutoCalculated: isAutoCalculated,
  11855. values: values,
  11856. childFeatures: childFeatures,
  11857. );
  11858. factory FollicleRectFeatureDTO.fromJson(Map<String, dynamic> map) {
  11859. return FollicleRectFeatureDTO(
  11860. typeName: map['TypeName'],
  11861. showRootFeature: map['ShowRootFeature'],
  11862. autoLines: map['AutoLines'] != null ? (map['AutoLines'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11863. isVisible: map['IsVisible'],
  11864. annotation: map['Annotation'],
  11865. briefAnnotation: map['BriefAnnotation'],
  11866. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11867. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11868. showAnnotation: map['ShowAnnotation'],
  11869. showCalliper: map['ShowCalliper'],
  11870. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11871. creator: map['Creator'],
  11872. guid: map['Guid'],
  11873. showChildFeatures: map['ShowChildFeatures'],
  11874. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11875. isAutoCalculated: map['IsAutoCalculated'],
  11876. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11877. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11878. );
  11879. }
  11880. Map<String, dynamic> toJson() {
  11881. final map = super.toJson();
  11882. return map;
  11883. }
  11884. }
  11885. class StraightLineFeatureDTO extends GeometryFeatureDTO{
  11886. StraightLineShapeEnum shapeType;
  11887. bool useDashLine;
  11888. StraightLineFeatureDTO({
  11889. String? typeName,
  11890. this.shapeType = StraightLineShapeEnum.StraightLine,
  11891. this.useDashLine = false,
  11892. bool isVisible = false,
  11893. String? annotation,
  11894. String? briefAnnotation,
  11895. Unit xUnit = Unit.None,
  11896. Unit yUnit = Unit.None,
  11897. bool showAnnotation = false,
  11898. bool showCalliper = false,
  11899. List<PointDTO >? points,
  11900. String? creator,
  11901. String? guid,
  11902. bool showChildFeatures = false,
  11903. DateTime? timeStamp,
  11904. bool isAutoCalculated = false,
  11905. List<MeasuredValueDTO >? values,
  11906. List<MeasuredFeatureDTO >? childFeatures,
  11907. }) : super(
  11908. isVisible: isVisible,
  11909. annotation: annotation,
  11910. briefAnnotation: briefAnnotation,
  11911. xUnit: xUnit,
  11912. yUnit: yUnit,
  11913. showAnnotation: showAnnotation,
  11914. showCalliper: showCalliper,
  11915. points: points,
  11916. typeName: typeName,
  11917. creator: creator,
  11918. guid: guid,
  11919. showChildFeatures: showChildFeatures,
  11920. timeStamp: timeStamp,
  11921. isAutoCalculated: isAutoCalculated,
  11922. values: values,
  11923. childFeatures: childFeatures,
  11924. );
  11925. factory StraightLineFeatureDTO.fromJson(Map<String, dynamic> map) {
  11926. return StraightLineFeatureDTO(
  11927. typeName: map['TypeName'],
  11928. shapeType: StraightLineShapeEnum.values.firstWhere((e) => e.index == map['ShapeType']),
  11929. useDashLine: map['UseDashLine'],
  11930. isVisible: map['IsVisible'],
  11931. annotation: map['Annotation'],
  11932. briefAnnotation: map['BriefAnnotation'],
  11933. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11934. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11935. showAnnotation: map['ShowAnnotation'],
  11936. showCalliper: map['ShowCalliper'],
  11937. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11938. creator: map['Creator'],
  11939. guid: map['Guid'],
  11940. showChildFeatures: map['ShowChildFeatures'],
  11941. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11942. isAutoCalculated: map['IsAutoCalculated'],
  11943. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11944. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11945. );
  11946. }
  11947. Map<String, dynamic> toJson() {
  11948. final map = super.toJson();
  11949. map['ShapeType'] = shapeType.index;
  11950. map['UseDashLine'] = useDashLine;
  11951. return map;
  11952. }
  11953. }
  11954. class VasPlaqueSplitterFeatureDTO extends GeometryFeatureDTO{
  11955. int maxZoneCount;
  11956. int currentZoneCount;
  11957. int angle;
  11958. List<PointDTO >? splitterLinesPoints;
  11959. VasPlaqueSplitterFeatureDTO({
  11960. String? typeName,
  11961. this.maxZoneCount = 0,
  11962. this.currentZoneCount = 0,
  11963. this.angle = 0,
  11964. bool isVisible = false,
  11965. this.splitterLinesPoints,
  11966. String? annotation,
  11967. String? briefAnnotation,
  11968. Unit xUnit = Unit.None,
  11969. Unit yUnit = Unit.None,
  11970. bool showAnnotation = false,
  11971. bool showCalliper = false,
  11972. List<PointDTO >? points,
  11973. String? creator,
  11974. String? guid,
  11975. bool showChildFeatures = false,
  11976. DateTime? timeStamp,
  11977. bool isAutoCalculated = false,
  11978. List<MeasuredValueDTO >? values,
  11979. List<MeasuredFeatureDTO >? childFeatures,
  11980. }) : super(
  11981. isVisible: isVisible,
  11982. annotation: annotation,
  11983. briefAnnotation: briefAnnotation,
  11984. xUnit: xUnit,
  11985. yUnit: yUnit,
  11986. showAnnotation: showAnnotation,
  11987. showCalliper: showCalliper,
  11988. points: points,
  11989. typeName: typeName,
  11990. creator: creator,
  11991. guid: guid,
  11992. showChildFeatures: showChildFeatures,
  11993. timeStamp: timeStamp,
  11994. isAutoCalculated: isAutoCalculated,
  11995. values: values,
  11996. childFeatures: childFeatures,
  11997. );
  11998. factory VasPlaqueSplitterFeatureDTO.fromJson(Map<String, dynamic> map) {
  11999. return VasPlaqueSplitterFeatureDTO(
  12000. typeName: map['TypeName'],
  12001. maxZoneCount: map['MaxZoneCount'],
  12002. currentZoneCount: map['CurrentZoneCount'],
  12003. angle: map['Angle'],
  12004. isVisible: map['IsVisible'],
  12005. splitterLinesPoints: map['SplitterLinesPoints'] != null ? (map['SplitterLinesPoints'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12006. annotation: map['Annotation'],
  12007. briefAnnotation: map['BriefAnnotation'],
  12008. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  12009. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  12010. showAnnotation: map['ShowAnnotation'],
  12011. showCalliper: map['ShowCalliper'],
  12012. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12013. creator: map['Creator'],
  12014. guid: map['Guid'],
  12015. showChildFeatures: map['ShowChildFeatures'],
  12016. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  12017. isAutoCalculated: map['IsAutoCalculated'],
  12018. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12019. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12020. );
  12021. }
  12022. Map<String, dynamic> toJson() {
  12023. final map = super.toJson();
  12024. map['MaxZoneCount'] = maxZoneCount;
  12025. map['CurrentZoneCount'] = currentZoneCount;
  12026. map['Angle'] = angle;
  12027. if(splitterLinesPoints != null)
  12028. map['SplitterLinesPoints'] = splitterLinesPoints;
  12029. return map;
  12030. }
  12031. }
  12032. class GrowthNormalRangeDTO {
  12033. String? typeName;
  12034. String? tableAuthor;
  12035. String? measureItem;
  12036. int gAinDays;
  12037. int status;
  12038. double value;
  12039. double minValue;
  12040. double maxValue;
  12041. Unit valueUnit;
  12042. Unit targetUnit;
  12043. GrowthNormalRangeDTO({
  12044. this.typeName,
  12045. this.tableAuthor,
  12046. this.measureItem,
  12047. this.gAinDays = 0,
  12048. this.status = 0,
  12049. this.value = 0,
  12050. this.minValue = 0,
  12051. this.maxValue = 0,
  12052. this.valueUnit = Unit.None,
  12053. this.targetUnit = Unit.None,
  12054. });
  12055. factory GrowthNormalRangeDTO.fromJson(Map<String, dynamic> map) {
  12056. return GrowthNormalRangeDTO(
  12057. typeName: map['TypeName'],
  12058. tableAuthor: map['TableAuthor'],
  12059. measureItem: map['MeasureItem'],
  12060. gAinDays: map['GAinDays'],
  12061. status: map['Status'],
  12062. value: double.parse(map['Value'].toString()),
  12063. minValue: double.parse(map['MinValue'].toString()),
  12064. maxValue: double.parse(map['MaxValue'].toString()),
  12065. valueUnit: Unit.values.firstWhere((e) => e.index == map['ValueUnit']),
  12066. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  12067. );
  12068. }
  12069. Map<String, dynamic> toJson() {
  12070. final map = Map<String, dynamic>();
  12071. if(typeName != null)
  12072. map['TypeName'] = typeName;
  12073. if(tableAuthor != null)
  12074. map['TableAuthor'] = tableAuthor;
  12075. if(measureItem != null)
  12076. map['MeasureItem'] = measureItem;
  12077. map['GAinDays'] = gAinDays;
  12078. map['Status'] = status;
  12079. map['Value'] = value;
  12080. map['MinValue'] = minValue;
  12081. map['MaxValue'] = maxValue;
  12082. map['ValueUnit'] = valueUnit.index;
  12083. map['TargetUnit'] = targetUnit.index;
  12084. return map;
  12085. }
  12086. }
  12087. class EFWRepresentationDTO extends FloatValueDTO{
  12088. EFWRepresentationDTO({
  12089. FetalGrowthIndexDTO? fetalGrowthIndex,
  12090. String? typeName,
  12091. String? name,
  12092. String? description,
  12093. bool worksheetAffinity = false,
  12094. String? briefDescription,
  12095. String? value,
  12096. Unit unit = Unit.None,
  12097. Unit targetUnit = Unit.None,
  12098. }) : super(
  12099. fetalGrowthIndex: fetalGrowthIndex,
  12100. typeName: typeName,
  12101. name: name,
  12102. description: description,
  12103. worksheetAffinity: worksheetAffinity,
  12104. briefDescription: briefDescription,
  12105. value: value,
  12106. unit: unit,
  12107. targetUnit: targetUnit,
  12108. );
  12109. factory EFWRepresentationDTO.fromJson(Map<String, dynamic> map) {
  12110. return EFWRepresentationDTO(
  12111. fetalGrowthIndex: map['FetalGrowthIndex'] != null ? FetalGrowthIndexDTO.fromJson(map['FetalGrowthIndex']) : null,
  12112. typeName: map['TypeName'],
  12113. name: map['Name'],
  12114. description: map['Description'],
  12115. worksheetAffinity: map['WorksheetAffinity'],
  12116. briefDescription: map['BriefDescription'],
  12117. value: map['Value'],
  12118. unit: Unit.values.firstWhere((e) => e.index == map['Unit']),
  12119. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  12120. );
  12121. }
  12122. Map<String, dynamic> toJson() {
  12123. final map = super.toJson();
  12124. return map;
  12125. }
  12126. }
  12127. class AdminExtendInfoDTO extends AdminInfoDTO{
  12128. List<String >? roleNames;
  12129. String? defaultRoleCode;
  12130. String? defaultRoleName;
  12131. bool isLocked;
  12132. AdminExtendInfoDTO({
  12133. this.roleNames,
  12134. this.defaultRoleCode,
  12135. this.defaultRoleName,
  12136. this.isLocked = false,
  12137. String? adminCode,
  12138. String? fatherCode,
  12139. String? adminName,
  12140. String? fullName,
  12141. String? secretPassword,
  12142. String? headImageToken,
  12143. String? licenseKey,
  12144. String? lastIP,
  12145. String? phone,
  12146. String? email,
  12147. List<String >? roleCodes,
  12148. LoginLockInfoDTO? loginLockInfo,
  12149. DateTime? passwordUpdateTime,
  12150. List<String >? passwordRecords,
  12151. List<ClearLogOperateDTO >? clearLogOperateList,
  12152. DateTime? createTime,
  12153. DateTime? updateTime,
  12154. }) : super(
  12155. adminCode: adminCode,
  12156. fatherCode: fatherCode,
  12157. adminName: adminName,
  12158. fullName: fullName,
  12159. secretPassword: secretPassword,
  12160. headImageToken: headImageToken,
  12161. licenseKey: licenseKey,
  12162. lastIP: lastIP,
  12163. phone: phone,
  12164. email: email,
  12165. roleCodes: roleCodes,
  12166. loginLockInfo: loginLockInfo,
  12167. passwordUpdateTime: passwordUpdateTime,
  12168. passwordRecords: passwordRecords,
  12169. clearLogOperateList: clearLogOperateList,
  12170. createTime: createTime,
  12171. updateTime: updateTime,
  12172. );
  12173. factory AdminExtendInfoDTO.fromJson(Map<String, dynamic> map) {
  12174. return AdminExtendInfoDTO(
  12175. roleNames: map['RoleNames'] != null ? map['RoleNames'].cast<String>().toList() : null,
  12176. defaultRoleCode: map['DefaultRoleCode'],
  12177. defaultRoleName: map['DefaultRoleName'],
  12178. isLocked: map['IsLocked'],
  12179. adminCode: map['AdminCode'],
  12180. fatherCode: map['FatherCode'],
  12181. adminName: map['AdminName'],
  12182. fullName: map['FullName'],
  12183. secretPassword: map['SecretPassword'],
  12184. headImageToken: map['HeadImageToken'],
  12185. licenseKey: map['LicenseKey'],
  12186. lastIP: map['LastIP'],
  12187. phone: map['Phone'],
  12188. email: map['Email'],
  12189. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  12190. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  12191. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  12192. passwordRecords: map['PasswordRecords'] != null ? map['PasswordRecords'].cast<String>().toList() : null,
  12193. clearLogOperateList: map['ClearLogOperateList'] != null ? (map['ClearLogOperateList'] as List).map((e)=>ClearLogOperateDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12194. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12195. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12196. );
  12197. }
  12198. Map<String, dynamic> toJson() {
  12199. final map = super.toJson();
  12200. if(roleNames != null)
  12201. map['RoleNames'] = roleNames;
  12202. if(defaultRoleCode != null)
  12203. map['DefaultRoleCode'] = defaultRoleCode;
  12204. if(defaultRoleName != null)
  12205. map['DefaultRoleName'] = defaultRoleName;
  12206. map['IsLocked'] = isLocked;
  12207. return map;
  12208. }
  12209. }
  12210. class AdminLoginResult {
  12211. LoginStateEnum loginState;
  12212. String? token;
  12213. int? lockRemainingTimes;
  12214. bool isDistributedServer;
  12215. bool passwordExpired;
  12216. String? adminName;
  12217. AdminLoginResult({
  12218. this.loginState = LoginStateEnum.Succeed,
  12219. this.token,
  12220. this.lockRemainingTimes,
  12221. this.isDistributedServer = false,
  12222. this.passwordExpired = false,
  12223. this.adminName,
  12224. });
  12225. factory AdminLoginResult.fromJson(Map<String, dynamic> map) {
  12226. return AdminLoginResult(
  12227. loginState: LoginStateEnum.values.firstWhere((e) => e.index == map['LoginState']),
  12228. token: map['Token'],
  12229. lockRemainingTimes: map['LockRemainingTimes'],
  12230. isDistributedServer: map['IsDistributedServer'],
  12231. passwordExpired: map['PasswordExpired'],
  12232. adminName: map['AdminName'],
  12233. );
  12234. }
  12235. Map<String, dynamic> toJson() {
  12236. final map = Map<String, dynamic>();
  12237. map['LoginState'] = loginState.index;
  12238. if(token != null)
  12239. map['Token'] = token;
  12240. if(lockRemainingTimes != null)
  12241. map['LockRemainingTimes'] = lockRemainingTimes;
  12242. map['IsDistributedServer'] = isDistributedServer;
  12243. map['PasswordExpired'] = passwordExpired;
  12244. if(adminName != null)
  12245. map['AdminName'] = adminName;
  12246. return map;
  12247. }
  12248. }
  12249. class WaitDeleteLogBaseDTO {
  12250. int daysAgoList;
  12251. int waitDeleteLogCount;
  12252. WaitDeleteLogBaseDTO({
  12253. this.daysAgoList = 0,
  12254. this.waitDeleteLogCount = 0,
  12255. });
  12256. factory WaitDeleteLogBaseDTO.fromJson(Map<String, dynamic> map) {
  12257. return WaitDeleteLogBaseDTO(
  12258. daysAgoList: map['DaysAgoList'],
  12259. waitDeleteLogCount: map['WaitDeleteLogCount'],
  12260. );
  12261. }
  12262. Map<String, dynamic> toJson() {
  12263. final map = Map<String, dynamic>();
  12264. map['DaysAgoList'] = daysAgoList;
  12265. map['WaitDeleteLogCount'] = waitDeleteLogCount;
  12266. return map;
  12267. }
  12268. }
  12269. class WaitDeleteLogsDTO {
  12270. List<WaitDeleteLogBaseDTO >? waitDeleteLogs;
  12271. int daysAgo;
  12272. String? requestServerHost;
  12273. DateTime? lastClearTime;
  12274. DateTime? lastClearOperateTime;
  12275. WaitDeleteLogsDTO({
  12276. this.waitDeleteLogs,
  12277. this.daysAgo = 0,
  12278. this.requestServerHost,
  12279. this.lastClearTime,
  12280. this.lastClearOperateTime,
  12281. });
  12282. factory WaitDeleteLogsDTO.fromJson(Map<String, dynamic> map) {
  12283. return WaitDeleteLogsDTO(
  12284. waitDeleteLogs: map['WaitDeleteLogs'] != null ? (map['WaitDeleteLogs'] as List).map((e)=>WaitDeleteLogBaseDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12285. daysAgo: map['DaysAgo'],
  12286. requestServerHost: map['RequestServerHost'],
  12287. lastClearTime: map['LastClearTime'] != null ? DateTime.parse(map['LastClearTime']) : null,
  12288. lastClearOperateTime: map['LastClearOperateTime'] != null ? DateTime.parse(map['LastClearOperateTime']) : null,
  12289. );
  12290. }
  12291. Map<String, dynamic> toJson() {
  12292. final map = Map<String, dynamic>();
  12293. if(waitDeleteLogs != null)
  12294. map['WaitDeleteLogs'] = waitDeleteLogs;
  12295. map['DaysAgo'] = daysAgo;
  12296. if(requestServerHost != null)
  12297. map['RequestServerHost'] = requestServerHost;
  12298. if(lastClearTime != null)
  12299. map['LastClearTime'] = JsonRpcUtils.dateFormat(lastClearTime!);
  12300. if(lastClearOperateTime != null)
  12301. map['LastClearOperateTime'] = JsonRpcUtils.dateFormat(lastClearOperateTime!);
  12302. return map;
  12303. }
  12304. }
  12305. class ManageAdminFeatureInfoDTO {
  12306. List<String >? featureCodeList;
  12307. ManageAdminFeatureInfoDTO({
  12308. this.featureCodeList,
  12309. });
  12310. factory ManageAdminFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  12311. return ManageAdminFeatureInfoDTO(
  12312. featureCodeList: map['FeatureCodeList'] != null ? map['FeatureCodeList'].cast<String>().toList() : null,
  12313. );
  12314. }
  12315. Map<String, dynamic> toJson() {
  12316. final map = Map<String, dynamic>();
  12317. if(featureCodeList != null)
  12318. map['FeatureCodeList'] = featureCodeList;
  12319. return map;
  12320. }
  12321. }
  12322. class FeatureDetail {
  12323. String? id;
  12324. FeatureDetail({
  12325. this.id,
  12326. });
  12327. factory FeatureDetail.fromJson(Map<String, dynamic> map) {
  12328. return FeatureDetail(
  12329. id: map['Id'],
  12330. );
  12331. }
  12332. Map<String, dynamic> toJson() {
  12333. final map = Map<String, dynamic>();
  12334. if(id != null)
  12335. map['Id'] = id;
  12336. return map;
  12337. }
  12338. }
  12339. class ManageAdminRoleInfoDTO extends AdminRoleDTO{
  12340. List<FeatureDetail >? featureList;
  12341. ManageAdminRoleInfoDTO({
  12342. this.featureList,
  12343. String? adminGroupCode,
  12344. int adminNum = 0,
  12345. String? roleCode,
  12346. String? roleName,
  12347. String? description,
  12348. List<UserRoleLanguageConfigDTO >? languageConfigs,
  12349. DateTime? createTime,
  12350. DateTime? updateTime,
  12351. }) : super(
  12352. adminGroupCode: adminGroupCode,
  12353. adminNum: adminNum,
  12354. roleCode: roleCode,
  12355. roleName: roleName,
  12356. description: description,
  12357. languageConfigs: languageConfigs,
  12358. createTime: createTime,
  12359. updateTime: updateTime,
  12360. );
  12361. factory ManageAdminRoleInfoDTO.fromJson(Map<String, dynamic> map) {
  12362. return ManageAdminRoleInfoDTO(
  12363. featureList: map['FeatureList'] != null ? (map['FeatureList'] as List).map((e)=>FeatureDetail.fromJson(e as Map<String,dynamic>)).toList() : null,
  12364. adminGroupCode: map['AdminGroupCode'],
  12365. adminNum: map['AdminNum'],
  12366. roleCode: map['RoleCode'],
  12367. roleName: map['RoleName'],
  12368. description: map['Description'],
  12369. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12370. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12371. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12372. );
  12373. }
  12374. Map<String, dynamic> toJson() {
  12375. final map = super.toJson();
  12376. if(featureList != null)
  12377. map['FeatureList'] = featureList;
  12378. return map;
  12379. }
  12380. }
  12381. class ManageCreateProductDTO extends CreateProductDTO{
  12382. ManageCreateProductDTO({
  12383. String? productCode,
  12384. DateTime? createTime,
  12385. DateTime? updateTime,
  12386. }) : super(
  12387. productCode: productCode,
  12388. createTime: createTime,
  12389. updateTime: updateTime,
  12390. );
  12391. factory ManageCreateProductDTO.fromJson(Map<String, dynamic> map) {
  12392. return ManageCreateProductDTO(
  12393. productCode: map['ProductCode'],
  12394. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12395. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12396. );
  12397. }
  12398. Map<String, dynamic> toJson() {
  12399. final map = super.toJson();
  12400. return map;
  12401. }
  12402. }
  12403. class ManageDeviceInfoDTO extends DeviceInfoDTO{
  12404. String? hospitalName;
  12405. String? departmentName;
  12406. String? directorName;
  12407. String? adminName;
  12408. String? shareUserNum;
  12409. String? deviceModelName;
  12410. List<DictionaryLanguageConfigDTO >? languageConfigs;
  12411. ManageDeviceInfoDTO({
  12412. this.hospitalName,
  12413. this.departmentName,
  12414. this.directorName,
  12415. this.adminName,
  12416. this.shareUserNum,
  12417. this.deviceModelName,
  12418. this.languageConfigs,
  12419. String? deviceCode,
  12420. String? serialNumber,
  12421. String? password,
  12422. String? name,
  12423. String? description,
  12424. String? deviceModel,
  12425. String? deviceType,
  12426. String? headPicUrl,
  12427. String? deviceSoftwareVersion,
  12428. String? sDKSoftwareVersion,
  12429. String? organizationCode,
  12430. String? departmentCode,
  12431. String? shortCode,
  12432. bool isAutoShared = false,
  12433. bool isEncryptedShow = false,
  12434. DateTime? lastLoginTime,
  12435. String? systemVersion,
  12436. String? cPUModel,
  12437. String? systemLanguage,
  12438. List<String >? diagnosisModules,
  12439. List<String >? reportPosterCodes,
  12440. bool mergedChannel = false,
  12441. int mergedVideoOutputWidth = 0,
  12442. int mergedVideoOutputHeight = 0,
  12443. List<VideoDeviceDTO >? videoDeviceInfos,
  12444. DownloadModeSettingEnum downloadModeSetting = DownloadModeSettingEnum.Auto,
  12445. bool liveOpened = false,
  12446. DateTime? createTime,
  12447. DateTime? updateTime,
  12448. }) : super(
  12449. deviceCode: deviceCode,
  12450. serialNumber: serialNumber,
  12451. password: password,
  12452. name: name,
  12453. description: description,
  12454. deviceModel: deviceModel,
  12455. deviceType: deviceType,
  12456. headPicUrl: headPicUrl,
  12457. deviceSoftwareVersion: deviceSoftwareVersion,
  12458. sDKSoftwareVersion: sDKSoftwareVersion,
  12459. organizationCode: organizationCode,
  12460. departmentCode: departmentCode,
  12461. shortCode: shortCode,
  12462. isAutoShared: isAutoShared,
  12463. isEncryptedShow: isEncryptedShow,
  12464. lastLoginTime: lastLoginTime,
  12465. systemVersion: systemVersion,
  12466. cPUModel: cPUModel,
  12467. systemLanguage: systemLanguage,
  12468. diagnosisModules: diagnosisModules,
  12469. reportPosterCodes: reportPosterCodes,
  12470. mergedChannel: mergedChannel,
  12471. mergedVideoOutputWidth: mergedVideoOutputWidth,
  12472. mergedVideoOutputHeight: mergedVideoOutputHeight,
  12473. videoDeviceInfos: videoDeviceInfos,
  12474. downloadModeSetting: downloadModeSetting,
  12475. liveOpened: liveOpened,
  12476. createTime: createTime,
  12477. updateTime: updateTime,
  12478. );
  12479. factory ManageDeviceInfoDTO.fromJson(Map<String, dynamic> map) {
  12480. return ManageDeviceInfoDTO(
  12481. hospitalName: map['HospitalName'],
  12482. departmentName: map['DepartmentName'],
  12483. directorName: map['DirectorName'],
  12484. adminName: map['AdminName'],
  12485. shareUserNum: map['ShareUserNum'],
  12486. deviceModelName: map['DeviceModelName'],
  12487. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>DictionaryLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12488. deviceCode: map['DeviceCode'],
  12489. serialNumber: map['SerialNumber'],
  12490. password: map['Password'],
  12491. name: map['Name'],
  12492. description: map['Description'],
  12493. deviceModel: map['DeviceModel'],
  12494. deviceType: map['DeviceType'],
  12495. headPicUrl: map['HeadPicUrl'],
  12496. deviceSoftwareVersion: map['DeviceSoftwareVersion'],
  12497. sDKSoftwareVersion: map['SDKSoftwareVersion'],
  12498. organizationCode: map['OrganizationCode'],
  12499. departmentCode: map['DepartmentCode'],
  12500. shortCode: map['ShortCode'],
  12501. isAutoShared: map['IsAutoShared'],
  12502. isEncryptedShow: map['IsEncryptedShow'],
  12503. lastLoginTime: map['LastLoginTime'] != null ? DateTime.parse(map['LastLoginTime']) : null,
  12504. systemVersion: map['SystemVersion'],
  12505. cPUModel: map['CPUModel'],
  12506. systemLanguage: map['SystemLanguage'],
  12507. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  12508. reportPosterCodes: map['ReportPosterCodes'] != null ? map['ReportPosterCodes'].cast<String>().toList() : null,
  12509. mergedChannel: map['MergedChannel'],
  12510. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  12511. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  12512. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12513. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  12514. liveOpened: map['LiveOpened'],
  12515. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12516. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12517. );
  12518. }
  12519. Map<String, dynamic> toJson() {
  12520. final map = super.toJson();
  12521. if(hospitalName != null)
  12522. map['HospitalName'] = hospitalName;
  12523. if(departmentName != null)
  12524. map['DepartmentName'] = departmentName;
  12525. if(directorName != null)
  12526. map['DirectorName'] = directorName;
  12527. if(adminName != null)
  12528. map['AdminName'] = adminName;
  12529. if(shareUserNum != null)
  12530. map['ShareUserNum'] = shareUserNum;
  12531. if(deviceModelName != null)
  12532. map['DeviceModelName'] = deviceModelName;
  12533. if(languageConfigs != null)
  12534. map['LanguageConfigs'] = languageConfigs;
  12535. return map;
  12536. }
  12537. }
  12538. class ManageDeviceTypeDTO {
  12539. String? dictionaryCode;
  12540. String? value;
  12541. List<DictionaryLanguageConfigDTO >? languageConfigs;
  12542. List<DictionaryDTO >? dictionaryList;
  12543. ManageDeviceTypeDTO({
  12544. this.dictionaryCode,
  12545. this.value,
  12546. this.languageConfigs,
  12547. this.dictionaryList,
  12548. });
  12549. factory ManageDeviceTypeDTO.fromJson(Map<String, dynamic> map) {
  12550. return ManageDeviceTypeDTO(
  12551. dictionaryCode: map['DictionaryCode'],
  12552. value: map['Value'],
  12553. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>DictionaryLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12554. dictionaryList: map['DictionaryList'] != null ? (map['DictionaryList'] as List).map((e)=>DictionaryDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12555. );
  12556. }
  12557. Map<String, dynamic> toJson() {
  12558. final map = Map<String, dynamic>();
  12559. if(dictionaryCode != null)
  12560. map['DictionaryCode'] = dictionaryCode;
  12561. if(value != null)
  12562. map['Value'] = value;
  12563. if(languageConfigs != null)
  12564. map['LanguageConfigs'] = languageConfigs;
  12565. if(dictionaryList != null)
  12566. map['DictionaryList'] = dictionaryList;
  12567. return map;
  12568. }
  12569. }
  12570. class ManageDeviceUserDTO {
  12571. String? userCode;
  12572. String? userName;
  12573. String? phone;
  12574. String? email;
  12575. String? nickName;
  12576. String? fullName;
  12577. String? hospitalName;
  12578. ManageDeviceUserDTO({
  12579. this.userCode,
  12580. this.userName,
  12581. this.phone,
  12582. this.email,
  12583. this.nickName,
  12584. this.fullName,
  12585. this.hospitalName,
  12586. });
  12587. factory ManageDeviceUserDTO.fromJson(Map<String, dynamic> map) {
  12588. return ManageDeviceUserDTO(
  12589. userCode: map['UserCode'],
  12590. userName: map['UserName'],
  12591. phone: map['Phone'],
  12592. email: map['Email'],
  12593. nickName: map['NickName'],
  12594. fullName: map['FullName'],
  12595. hospitalName: map['HospitalName'],
  12596. );
  12597. }
  12598. Map<String, dynamic> toJson() {
  12599. final map = Map<String, dynamic>();
  12600. if(userCode != null)
  12601. map['UserCode'] = userCode;
  12602. if(userName != null)
  12603. map['UserName'] = userName;
  12604. if(phone != null)
  12605. map['Phone'] = phone;
  12606. if(email != null)
  12607. map['Email'] = email;
  12608. if(nickName != null)
  12609. map['NickName'] = nickName;
  12610. if(fullName != null)
  12611. map['FullName'] = fullName;
  12612. if(hospitalName != null)
  12613. map['HospitalName'] = hospitalName;
  12614. return map;
  12615. }
  12616. }
  12617. class ManageOrderDetailDTO extends OrderDetailDTO{
  12618. ManageOrderDetailDTO({
  12619. String? code,
  12620. String? orderUserName,
  12621. String? orderUserCode,
  12622. String? productCode,
  12623. String? tPORderCode,
  12624. String? orderTitle,
  12625. OrderTypeEnum orderType = OrderTypeEnum.General,
  12626. double orderAmount = 0,
  12627. DateTime? payTime,
  12628. PayStatusEnum payStatus = PayStatusEnum.NoPay,
  12629. DateTime? createTime,
  12630. DateTime? updateTime,
  12631. }) : super(
  12632. code: code,
  12633. orderUserName: orderUserName,
  12634. orderUserCode: orderUserCode,
  12635. productCode: productCode,
  12636. tPORderCode: tPORderCode,
  12637. orderTitle: orderTitle,
  12638. orderType: orderType,
  12639. orderAmount: orderAmount,
  12640. payTime: payTime,
  12641. payStatus: payStatus,
  12642. createTime: createTime,
  12643. updateTime: updateTime,
  12644. );
  12645. factory ManageOrderDetailDTO.fromJson(Map<String, dynamic> map) {
  12646. return ManageOrderDetailDTO(
  12647. code: map['Code'],
  12648. orderUserName: map['OrderUserName'],
  12649. orderUserCode: map['OrderUserCode'],
  12650. productCode: map['ProductCode'],
  12651. tPORderCode: map['TPORderCode'],
  12652. orderTitle: map['OrderTitle'],
  12653. orderType: OrderTypeEnum.values.firstWhere((e) => e.index == map['OrderType']),
  12654. orderAmount: double.parse(map['OrderAmount'].toString()),
  12655. payTime: map['PayTime'] != null ? DateTime.parse(map['PayTime']) : null,
  12656. payStatus: PayStatusEnum.values.firstWhere((e) => e.index == map['PayStatus']),
  12657. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12658. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12659. );
  12660. }
  12661. Map<String, dynamic> toJson() {
  12662. final map = super.toJson();
  12663. return map;
  12664. }
  12665. }
  12666. class ManageOrganizationDTO extends OrganizationDTO{
  12667. String? countryName;
  12668. String? provinceName;
  12669. String? cityName;
  12670. String? countryCode;
  12671. String? provinceCode;
  12672. String? cityCode;
  12673. String? directorName;
  12674. String? adminFullName;
  12675. ManageOrganizationDTO({
  12676. this.countryName,
  12677. this.provinceName,
  12678. this.cityName,
  12679. this.countryCode,
  12680. this.provinceCode,
  12681. this.cityCode,
  12682. this.directorName,
  12683. this.adminFullName,
  12684. String? description,
  12685. String? rootCode,
  12686. OrganizationTypeEnum organizationType = OrganizationTypeEnum.Corporation,
  12687. List<String >? authorityGroups,
  12688. String? nautica,
  12689. OrganizationStateEnum state = OrganizationStateEnum.WaitAudit,
  12690. List<String >? directors,
  12691. List<String >? assignedAdmins,
  12692. String? patientSettingJson,
  12693. String? examSettingJson,
  12694. String? consultationSettingJson,
  12695. String? patientSettingVersion,
  12696. String? examSettingVersion,
  12697. String? consultationSettingVersion,
  12698. String? parentOrganizationName,
  12699. String? regionCode,
  12700. String? parentCode,
  12701. String? logoUrl,
  12702. OrganizationPatientTypeEnum patientType = OrganizationPatientTypeEnum.Person,
  12703. bool isinvented = false,
  12704. List<SettingDTOClass >? settings,
  12705. List<String >? diagnosisModules,
  12706. bool isEncryptedShow = false,
  12707. double referralLimitHours = 0,
  12708. List<String >? referralOrganizationCodes,
  12709. List<ReferralOrganizationDTO >? referralOrganizations,
  12710. String? organizationCode,
  12711. String? organizationName,
  12712. DateTime? createTime,
  12713. DateTime? updateTime,
  12714. }) : super(
  12715. description: description,
  12716. rootCode: rootCode,
  12717. organizationType: organizationType,
  12718. authorityGroups: authorityGroups,
  12719. nautica: nautica,
  12720. state: state,
  12721. directors: directors,
  12722. assignedAdmins: assignedAdmins,
  12723. patientSettingJson: patientSettingJson,
  12724. examSettingJson: examSettingJson,
  12725. consultationSettingJson: consultationSettingJson,
  12726. patientSettingVersion: patientSettingVersion,
  12727. examSettingVersion: examSettingVersion,
  12728. consultationSettingVersion: consultationSettingVersion,
  12729. parentOrganizationName: parentOrganizationName,
  12730. regionCode: regionCode,
  12731. parentCode: parentCode,
  12732. logoUrl: logoUrl,
  12733. patientType: patientType,
  12734. isinvented: isinvented,
  12735. settings: settings,
  12736. diagnosisModules: diagnosisModules,
  12737. isEncryptedShow: isEncryptedShow,
  12738. referralLimitHours: referralLimitHours,
  12739. referralOrganizationCodes: referralOrganizationCodes,
  12740. referralOrganizations: referralOrganizations,
  12741. organizationCode: organizationCode,
  12742. organizationName: organizationName,
  12743. createTime: createTime,
  12744. updateTime: updateTime,
  12745. );
  12746. factory ManageOrganizationDTO.fromJson(Map<String, dynamic> map) {
  12747. return ManageOrganizationDTO(
  12748. countryName: map['CountryName'],
  12749. provinceName: map['ProvinceName'],
  12750. cityName: map['CityName'],
  12751. countryCode: map['CountryCode'],
  12752. provinceCode: map['ProvinceCode'],
  12753. cityCode: map['CityCode'],
  12754. directorName: map['DirectorName'],
  12755. adminFullName: map['AdminFullName'],
  12756. description: map['Description'],
  12757. rootCode: map['RootCode'],
  12758. organizationType: OrganizationTypeEnum.values.firstWhere((e) => e.index == map['OrganizationType']),
  12759. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  12760. nautica: map['Nautica'],
  12761. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  12762. directors: map['Directors'] != null ? map['Directors'].cast<String>().toList() : null,
  12763. assignedAdmins: map['AssignedAdmins'] != null ? map['AssignedAdmins'].cast<String>().toList() : null,
  12764. patientSettingJson: map['PatientSettingJson'],
  12765. examSettingJson: map['ExamSettingJson'],
  12766. consultationSettingJson: map['ConsultationSettingJson'],
  12767. patientSettingVersion: map['PatientSettingVersion'],
  12768. examSettingVersion: map['ExamSettingVersion'],
  12769. consultationSettingVersion: map['ConsultationSettingVersion'],
  12770. parentOrganizationName: map['ParentOrganizationName'],
  12771. regionCode: map['RegionCode'],
  12772. parentCode: map['ParentCode'],
  12773. logoUrl: map['LogoUrl'],
  12774. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  12775. isinvented: map['Isinvented'],
  12776. settings: map['Settings'] != null ? (map['Settings'] as List).map((e)=>SettingDTOClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  12777. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  12778. isEncryptedShow: map['IsEncryptedShow'],
  12779. referralLimitHours: double.parse(map['ReferralLimitHours'].toString()),
  12780. referralOrganizationCodes: map['ReferralOrganizationCodes'] != null ? map['ReferralOrganizationCodes'].cast<String>().toList() : null,
  12781. referralOrganizations: map['ReferralOrganizations'] != null ? (map['ReferralOrganizations'] as List).map((e)=>ReferralOrganizationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12782. organizationCode: map['OrganizationCode'],
  12783. organizationName: map['OrganizationName'],
  12784. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12785. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12786. );
  12787. }
  12788. Map<String, dynamic> toJson() {
  12789. final map = super.toJson();
  12790. if(countryName != null)
  12791. map['CountryName'] = countryName;
  12792. if(provinceName != null)
  12793. map['ProvinceName'] = provinceName;
  12794. if(cityName != null)
  12795. map['CityName'] = cityName;
  12796. if(countryCode != null)
  12797. map['CountryCode'] = countryCode;
  12798. if(provinceCode != null)
  12799. map['ProvinceCode'] = provinceCode;
  12800. if(cityCode != null)
  12801. map['CityCode'] = cityCode;
  12802. if(directorName != null)
  12803. map['DirectorName'] = directorName;
  12804. if(adminFullName != null)
  12805. map['AdminFullName'] = adminFullName;
  12806. return map;
  12807. }
  12808. }
  12809. class ManageOrganizationUserDTO {
  12810. String? userCode;
  12811. String? userName;
  12812. String? phone;
  12813. String? email;
  12814. String? nickName;
  12815. String? fullName;
  12816. String? hospitalName;
  12817. ManageOrganizationUserDTO({
  12818. this.userCode,
  12819. this.userName,
  12820. this.phone,
  12821. this.email,
  12822. this.nickName,
  12823. this.fullName,
  12824. this.hospitalName,
  12825. });
  12826. factory ManageOrganizationUserDTO.fromJson(Map<String, dynamic> map) {
  12827. return ManageOrganizationUserDTO(
  12828. userCode: map['UserCode'],
  12829. userName: map['UserName'],
  12830. phone: map['Phone'],
  12831. email: map['Email'],
  12832. nickName: map['NickName'],
  12833. fullName: map['FullName'],
  12834. hospitalName: map['HospitalName'],
  12835. );
  12836. }
  12837. Map<String, dynamic> toJson() {
  12838. final map = Map<String, dynamic>();
  12839. if(userCode != null)
  12840. map['UserCode'] = userCode;
  12841. if(userName != null)
  12842. map['UserName'] = userName;
  12843. if(phone != null)
  12844. map['Phone'] = phone;
  12845. if(email != null)
  12846. map['Email'] = email;
  12847. if(nickName != null)
  12848. map['NickName'] = nickName;
  12849. if(fullName != null)
  12850. map['FullName'] = fullName;
  12851. if(hospitalName != null)
  12852. map['HospitalName'] = hospitalName;
  12853. return map;
  12854. }
  12855. }
  12856. class ManagePaymentRecordDTO extends PaymentRecordDTO{
  12857. ManagePaymentRecordDTO({
  12858. String? orderCode,
  12859. double payAmount = 0,
  12860. DateTime? payTime,
  12861. PayStatusEnum payStatus = PayStatusEnum.NoPay,
  12862. PayTypeEnum payType = PayTypeEnum.Alipay_PAGE,
  12863. String? payReqContent,
  12864. String? payResContent,
  12865. DateTime? createTime,
  12866. DateTime? updateTime,
  12867. }) : super(
  12868. orderCode: orderCode,
  12869. payAmount: payAmount,
  12870. payTime: payTime,
  12871. payStatus: payStatus,
  12872. payType: payType,
  12873. payReqContent: payReqContent,
  12874. payResContent: payResContent,
  12875. createTime: createTime,
  12876. updateTime: updateTime,
  12877. );
  12878. factory ManagePaymentRecordDTO.fromJson(Map<String, dynamic> map) {
  12879. return ManagePaymentRecordDTO(
  12880. orderCode: map['OrderCode'],
  12881. payAmount: double.parse(map['PayAmount'].toString()),
  12882. payTime: map['PayTime'] != null ? DateTime.parse(map['PayTime']) : null,
  12883. payStatus: PayStatusEnum.values.firstWhere((e) => e.index == map['PayStatus']),
  12884. payType: PayTypeEnum.values.firstWhere((e) => e.index == map['PayType']),
  12885. payReqContent: map['PayReqContent'],
  12886. payResContent: map['PayResContent'],
  12887. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12888. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12889. );
  12890. }
  12891. Map<String, dynamic> toJson() {
  12892. final map = super.toJson();
  12893. return map;
  12894. }
  12895. }
  12896. class ManageRoleInfoDTO extends RoleDTO{
  12897. List<FeatureDetail >? featureList;
  12898. ManageRoleInfoDTO({
  12899. this.featureList,
  12900. RoleShowTypeEnum roleShowType = RoleShowTypeEnum.NotShow,
  12901. String? iConUrl,
  12902. String? colorStart,
  12903. String? colorEnd,
  12904. RoleQualificationEnum roleQualification = RoleQualificationEnum.NoNeed,
  12905. String? userGroupCode,
  12906. RoleShowTypeEnum fieldShowType = RoleShowTypeEnum.NotShow,
  12907. List<String >? fieldList,
  12908. String? roleCode,
  12909. String? roleName,
  12910. String? description,
  12911. List<UserRoleLanguageConfigDTO >? languageConfigs,
  12912. DateTime? createTime,
  12913. DateTime? updateTime,
  12914. }) : super(
  12915. roleShowType: roleShowType,
  12916. iConUrl: iConUrl,
  12917. colorStart: colorStart,
  12918. colorEnd: colorEnd,
  12919. roleQualification: roleQualification,
  12920. userGroupCode: userGroupCode,
  12921. fieldShowType: fieldShowType,
  12922. fieldList: fieldList,
  12923. roleCode: roleCode,
  12924. roleName: roleName,
  12925. description: description,
  12926. languageConfigs: languageConfigs,
  12927. createTime: createTime,
  12928. updateTime: updateTime,
  12929. );
  12930. factory ManageRoleInfoDTO.fromJson(Map<String, dynamic> map) {
  12931. return ManageRoleInfoDTO(
  12932. featureList: map['FeatureList'] != null ? (map['FeatureList'] as List).map((e)=>FeatureDetail.fromJson(e as Map<String,dynamic>)).toList() : null,
  12933. roleShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['RoleShowType']),
  12934. iConUrl: map['IConUrl'],
  12935. colorStart: map['ColorStart'],
  12936. colorEnd: map['ColorEnd'],
  12937. roleQualification: RoleQualificationEnum.values.firstWhere((e) => e.index == map['RoleQualification']),
  12938. userGroupCode: map['UserGroupCode'],
  12939. fieldShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['FieldShowType']),
  12940. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  12941. roleCode: map['RoleCode'],
  12942. roleName: map['RoleName'],
  12943. description: map['Description'],
  12944. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12945. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12946. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12947. );
  12948. }
  12949. Map<String, dynamic> toJson() {
  12950. final map = super.toJson();
  12951. if(featureList != null)
  12952. map['FeatureList'] = featureList;
  12953. return map;
  12954. }
  12955. }
  12956. class BaseThesaurusItemBaseDTO<T> {
  12957. String? id;
  12958. String? label;
  12959. String? fatherCode;
  12960. String? thesaurusItemDescription;
  12961. String? thesaurusItemConclusion;
  12962. ThesaurusItemTypeEnum type;
  12963. List<T>? children;
  12964. bool isExistThesaurusItem;
  12965. BaseThesaurusItemBaseDTO({
  12966. this.id,
  12967. this.label,
  12968. this.fatherCode,
  12969. this.thesaurusItemDescription,
  12970. this.thesaurusItemConclusion,
  12971. this.type = ThesaurusItemTypeEnum.Classification,
  12972. this.children,
  12973. this.isExistThesaurusItem = false,
  12974. });
  12975. factory BaseThesaurusItemBaseDTO.fromJson(Map<String, dynamic> map) {
  12976. List<T> childrenList = [];
  12977. if (map['Children'] != null) {
  12978. childrenList.addAll(
  12979. (map['Children'] as List).map((e) => FJsonConvert.fromJson<T>(e)!));
  12980. }
  12981. return BaseThesaurusItemBaseDTO(
  12982. id: map['Id'],
  12983. label: map['Label'],
  12984. fatherCode: map['FatherCode'],
  12985. thesaurusItemDescription: map['ThesaurusItemDescription'],
  12986. thesaurusItemConclusion: map['ThesaurusItemConclusion'],
  12987. type: ThesaurusItemTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  12988. children: childrenList,
  12989. isExistThesaurusItem: map['IsExistThesaurusItem'],
  12990. );
  12991. }
  12992. Map<String, dynamic> toJson() {
  12993. final map = Map<String, dynamic>();
  12994. if(id != null)
  12995. map['Id'] = id;
  12996. if(label != null)
  12997. map['Label'] = label;
  12998. if(fatherCode != null)
  12999. map['FatherCode'] = fatherCode;
  13000. if(thesaurusItemDescription != null)
  13001. map['ThesaurusItemDescription'] = thesaurusItemDescription;
  13002. if(thesaurusItemConclusion != null)
  13003. map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
  13004. map['Type'] = type.index;
  13005. if(children != null)
  13006. map['Children'] = children;
  13007. map['IsExistThesaurusItem'] = isExistThesaurusItem;
  13008. return map;
  13009. }
  13010. }
  13011. class ManageThesaurusItemDTO extends BaseThesaurusItemBaseDTO<ManageThesaurusItemDTO>{
  13012. ManageThesaurusItemDTO(
  13013. );
  13014. factory ManageThesaurusItemDTO.fromJson(Map<String, dynamic> map) {
  13015. return ManageThesaurusItemDTO(
  13016. );
  13017. }
  13018. Map<String, dynamic> toJson() {
  13019. final map = super.toJson();
  13020. return map;
  13021. }
  13022. }
  13023. class ManageUpdateProductDTO extends UpdateProductDTO{
  13024. ManageUpdateProductDTO({
  13025. bool isSuccess = false,
  13026. }) : super(
  13027. isSuccess: isSuccess,
  13028. );
  13029. factory ManageUpdateProductDTO.fromJson(Map<String, dynamic> map) {
  13030. return ManageUpdateProductDTO(
  13031. isSuccess: map['IsSuccess'],
  13032. );
  13033. }
  13034. Map<String, dynamic> toJson() {
  13035. final map = super.toJson();
  13036. return map;
  13037. }
  13038. }
  13039. class OnlineTokenDTO extends TokenDTO{
  13040. String? ipAddress;
  13041. OnlineTokenDTO({
  13042. this.ipAddress,
  13043. int version = 0,
  13044. String? code,
  13045. AccountType accountType = AccountType.Admin,
  13046. String? accountName,
  13047. Platform platform = Platform.Windows,
  13048. LoginSource loginSource = LoginSource.PC,
  13049. String? clientId,
  13050. String? loginServer,
  13051. DateTime? createTime,
  13052. DateTime? expiration,
  13053. int ipValue = 0,
  13054. bool isOnline = false,
  13055. String? installVersion,
  13056. }) : super(
  13057. version: version,
  13058. code: code,
  13059. accountType: accountType,
  13060. accountName: accountName,
  13061. platform: platform,
  13062. loginSource: loginSource,
  13063. clientId: clientId,
  13064. loginServer: loginServer,
  13065. createTime: createTime,
  13066. expiration: expiration,
  13067. ipValue: ipValue,
  13068. isOnline: isOnline,
  13069. installVersion: installVersion,
  13070. );
  13071. factory OnlineTokenDTO.fromJson(Map<String, dynamic> map) {
  13072. return OnlineTokenDTO(
  13073. ipAddress: map['IpAddress'],
  13074. version: map['Version'],
  13075. code: map['Code'],
  13076. accountType: AccountType.values.firstWhere((e) => e.index == map['AccountType']),
  13077. accountName: map['AccountName'],
  13078. platform: Platform.values.firstWhere((e) => e.index == map['Platform']),
  13079. loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
  13080. clientId: map['ClientId'],
  13081. loginServer: map['LoginServer'],
  13082. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13083. expiration: map['Expiration'] != null ? DateTime.parse(map['Expiration']) : null,
  13084. ipValue: map['IpValue'],
  13085. isOnline: map['IsOnline'],
  13086. installVersion: map['InstallVersion'],
  13087. );
  13088. }
  13089. Map<String, dynamic> toJson() {
  13090. final map = super.toJson();
  13091. if(ipAddress != null)
  13092. map['IpAddress'] = ipAddress;
  13093. return map;
  13094. }
  13095. }
  13096. class SelectParentItemDTO extends SelectItemDTO{
  13097. String? parentCode;
  13098. SelectParentItemDTO({
  13099. this.parentCode,
  13100. String? key,
  13101. String? value,
  13102. }) : super(
  13103. key: key,
  13104. value: value,
  13105. );
  13106. factory SelectParentItemDTO.fromJson(Map<String, dynamic> map) {
  13107. return SelectParentItemDTO(
  13108. parentCode: map['ParentCode'],
  13109. key: map['Key'],
  13110. value: map['Value'],
  13111. );
  13112. }
  13113. Map<String, dynamic> toJson() {
  13114. final map = super.toJson();
  13115. if(parentCode != null)
  13116. map['ParentCode'] = parentCode;
  13117. return map;
  13118. }
  13119. }
  13120. class LiveBoardDataDTO {
  13121. String? userCode;
  13122. String? boardData;
  13123. DateTime? interactiveTime;
  13124. LiveBoardDataDTO({
  13125. this.userCode,
  13126. this.boardData,
  13127. this.interactiveTime,
  13128. });
  13129. factory LiveBoardDataDTO.fromJson(Map<String, dynamic> map) {
  13130. return LiveBoardDataDTO(
  13131. userCode: map['UserCode'],
  13132. boardData: map['BoardData'],
  13133. interactiveTime: map['InteractiveTime'] != null ? DateTime.parse(map['InteractiveTime']) : null,
  13134. );
  13135. }
  13136. Map<String, dynamic> toJson() {
  13137. final map = Map<String, dynamic>();
  13138. if(userCode != null)
  13139. map['UserCode'] = userCode;
  13140. if(boardData != null)
  13141. map['BoardData'] = boardData;
  13142. if(interactiveTime != null)
  13143. map['InteractiveTime'] = JsonRpcUtils.dateFormat(interactiveTime!);
  13144. return map;
  13145. }
  13146. }
  13147. class LiveMemberStatusDTO {
  13148. String? code;
  13149. String? liveRoomCode;
  13150. LiveMemberStatus status;
  13151. UserStatusEnum userStatusType;
  13152. String? loginServerUrl;
  13153. LoginSource loginSource;
  13154. LiveMemberStatusDTO({
  13155. this.code,
  13156. this.liveRoomCode,
  13157. this.status = LiveMemberStatus.Default,
  13158. this.userStatusType = UserStatusEnum.NotOnline,
  13159. this.loginServerUrl,
  13160. this.loginSource = LoginSource.PC,
  13161. });
  13162. factory LiveMemberStatusDTO.fromJson(Map<String, dynamic> map) {
  13163. return LiveMemberStatusDTO(
  13164. code: map['Code'],
  13165. liveRoomCode: map['LiveRoomCode'],
  13166. status: LiveMemberStatus.values.firstWhere((e) => e.index == map['Status']),
  13167. userStatusType: UserStatusEnum.values.firstWhere((e) => e.index == map['UserStatusType']),
  13168. loginServerUrl: map['LoginServerUrl'],
  13169. loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
  13170. );
  13171. }
  13172. Map<String, dynamic> toJson() {
  13173. final map = Map<String, dynamic>();
  13174. if(code != null)
  13175. map['Code'] = code;
  13176. if(liveRoomCode != null)
  13177. map['LiveRoomCode'] = liveRoomCode;
  13178. map['Status'] = status.index;
  13179. map['UserStatusType'] = userStatusType.index;
  13180. if(loginServerUrl != null)
  13181. map['LoginServerUrl'] = loginServerUrl;
  13182. map['LoginSource'] = loginSource.index;
  13183. return map;
  13184. }
  13185. }
  13186. class LiveRoomDTO {
  13187. String? liveRoomCode;
  13188. String? name;
  13189. String? relatedCode;
  13190. String? initiatorCode;
  13191. int rtcRoomId;
  13192. int sdkAppId;
  13193. BusinessModuleEnum businessModule;
  13194. LiveRoomStatus status;
  13195. List<LiveMemberDTO >? deviceInfos;
  13196. List<LiveMemberDTO >? userInfos;
  13197. List<LiveViewerDTO >? viewerInfos;
  13198. LiveRoomDTO({
  13199. this.liveRoomCode,
  13200. this.name,
  13201. this.relatedCode,
  13202. this.initiatorCode,
  13203. this.rtcRoomId = 0,
  13204. this.sdkAppId = 0,
  13205. this.businessModule = BusinessModuleEnum.RemoteDiagnosis,
  13206. this.status = LiveRoomStatus.Default,
  13207. this.deviceInfos,
  13208. this.userInfos,
  13209. this.viewerInfos,
  13210. });
  13211. factory LiveRoomDTO.fromJson(Map<String, dynamic> map) {
  13212. return LiveRoomDTO(
  13213. liveRoomCode: map['LiveRoomCode'],
  13214. name: map['Name'],
  13215. relatedCode: map['RelatedCode'],
  13216. initiatorCode: map['InitiatorCode'],
  13217. rtcRoomId: map['RtcRoomId'],
  13218. sdkAppId: map['SdkAppId'],
  13219. businessModule: BusinessModuleEnum.values.firstWhere((e) => e.index == map['BusinessModule']),
  13220. status: LiveRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  13221. deviceInfos: map['DeviceInfos'] != null ? (map['DeviceInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13222. userInfos: map['UserInfos'] != null ? (map['UserInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13223. viewerInfos: map['ViewerInfos'] != null ? (map['ViewerInfos'] as List).map((e)=>LiveViewerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13224. );
  13225. }
  13226. Map<String, dynamic> toJson() {
  13227. final map = Map<String, dynamic>();
  13228. if(liveRoomCode != null)
  13229. map['LiveRoomCode'] = liveRoomCode;
  13230. if(name != null)
  13231. map['Name'] = name;
  13232. if(relatedCode != null)
  13233. map['RelatedCode'] = relatedCode;
  13234. if(initiatorCode != null)
  13235. map['InitiatorCode'] = initiatorCode;
  13236. map['RtcRoomId'] = rtcRoomId;
  13237. map['SdkAppId'] = sdkAppId;
  13238. map['BusinessModule'] = businessModule.index;
  13239. map['Status'] = status.index;
  13240. if(deviceInfos != null)
  13241. map['DeviceInfos'] = deviceInfos;
  13242. if(userInfos != null)
  13243. map['UserInfos'] = userInfos;
  13244. if(viewerInfos != null)
  13245. map['ViewerInfos'] = viewerInfos;
  13246. return map;
  13247. }
  13248. }
  13249. class GradingProtectionConfigDTO extends BaseDTO{
  13250. String? moduleCode;
  13251. String? name;
  13252. String? description;
  13253. GradingConfigTypeEnum configType;
  13254. String? value;
  13255. GradingProtectionConfigDTO({
  13256. this.moduleCode,
  13257. this.name,
  13258. this.description,
  13259. this.configType = GradingConfigTypeEnum.Switch,
  13260. this.value,
  13261. DateTime? createTime,
  13262. DateTime? updateTime,
  13263. }) : super(
  13264. createTime: createTime,
  13265. updateTime: updateTime,
  13266. );
  13267. factory GradingProtectionConfigDTO.fromJson(Map<String, dynamic> map) {
  13268. return GradingProtectionConfigDTO(
  13269. moduleCode: map['ModuleCode'],
  13270. name: map['Name'],
  13271. description: map['Description'],
  13272. configType: GradingConfigTypeEnum.values.firstWhere((e) => e.index == map['ConfigType']),
  13273. value: map['Value'],
  13274. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13275. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13276. );
  13277. }
  13278. Map<String, dynamic> toJson() {
  13279. final map = super.toJson();
  13280. if(moduleCode != null)
  13281. map['ModuleCode'] = moduleCode;
  13282. if(name != null)
  13283. map['Name'] = name;
  13284. if(description != null)
  13285. map['Description'] = description;
  13286. map['ConfigType'] = configType.index;
  13287. if(value != null)
  13288. map['Value'] = value;
  13289. return map;
  13290. }
  13291. }
  13292. class ExaminationPaperDTO {
  13293. String? code;
  13294. String? name;
  13295. double totalScore;
  13296. List<QuestionDetailDTO >? questionList;
  13297. List<String >? caseLabelCodes;
  13298. List<String >? courseLabelCodes;
  13299. DateTime? createTime;
  13300. DateTime? updateTime;
  13301. ExaminationPaperDTO({
  13302. this.code,
  13303. this.name,
  13304. this.totalScore = 0,
  13305. this.questionList,
  13306. this.caseLabelCodes,
  13307. this.courseLabelCodes,
  13308. this.createTime,
  13309. this.updateTime,
  13310. });
  13311. factory ExaminationPaperDTO.fromJson(Map<String, dynamic> map) {
  13312. return ExaminationPaperDTO(
  13313. code: map['Code'],
  13314. name: map['Name'],
  13315. totalScore: double.parse(map['TotalScore'].toString()),
  13316. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>QuestionDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13317. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  13318. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  13319. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13320. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13321. );
  13322. }
  13323. Map<String, dynamic> toJson() {
  13324. final map = Map<String, dynamic>();
  13325. if(code != null)
  13326. map['Code'] = code;
  13327. if(name != null)
  13328. map['Name'] = name;
  13329. map['TotalScore'] = totalScore;
  13330. if(questionList != null)
  13331. map['QuestionList'] = questionList;
  13332. if(caseLabelCodes != null)
  13333. map['CaseLabelCodes'] = caseLabelCodes;
  13334. if(courseLabelCodes != null)
  13335. map['CourseLabelCodes'] = courseLabelCodes;
  13336. if(createTime != null)
  13337. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  13338. if(updateTime != null)
  13339. map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
  13340. return map;
  13341. }
  13342. }
  13343. class ExaminationQuestionDTO extends BaseDTO{
  13344. String? code;
  13345. String? stem;
  13346. QuestionTypeEnum questionType;
  13347. List<QuestionOptionDTO >? questionOptionList;
  13348. List<QuestionFileDTO >? fileList;
  13349. List<String >? caseLabelCodes;
  13350. List<String >? courseLabelCodes;
  13351. bool trueOrFalse;
  13352. ExaminationQuestionDTO({
  13353. this.code,
  13354. this.stem,
  13355. this.questionType = QuestionTypeEnum.Judge,
  13356. this.questionOptionList,
  13357. this.fileList,
  13358. this.caseLabelCodes,
  13359. this.courseLabelCodes,
  13360. this.trueOrFalse = false,
  13361. DateTime? createTime,
  13362. DateTime? updateTime,
  13363. }) : super(
  13364. createTime: createTime,
  13365. updateTime: updateTime,
  13366. );
  13367. factory ExaminationQuestionDTO.fromJson(Map<String, dynamic> map) {
  13368. return ExaminationQuestionDTO(
  13369. code: map['Code'],
  13370. stem: map['Stem'],
  13371. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  13372. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13373. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13374. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  13375. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  13376. trueOrFalse: map['TrueOrFalse'],
  13377. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13378. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13379. );
  13380. }
  13381. Map<String, dynamic> toJson() {
  13382. final map = super.toJson();
  13383. if(code != null)
  13384. map['Code'] = code;
  13385. if(stem != null)
  13386. map['Stem'] = stem;
  13387. map['QuestionType'] = questionType.index;
  13388. if(questionOptionList != null)
  13389. map['QuestionOptionList'] = questionOptionList;
  13390. if(fileList != null)
  13391. map['FileList'] = fileList;
  13392. if(caseLabelCodes != null)
  13393. map['CaseLabelCodes'] = caseLabelCodes;
  13394. if(courseLabelCodes != null)
  13395. map['CourseLabelCodes'] = courseLabelCodes;
  13396. map['TrueOrFalse'] = trueOrFalse;
  13397. return map;
  13398. }
  13399. }
  13400. class StudentExaminationDTO extends BaseStudentExaminationDTO{
  13401. RelevanceTypeEnum relevanceType;
  13402. String? relevanceCode;
  13403. List<ExaminationAnswerDTO >? studentAnswers;
  13404. int submitCount;
  13405. StudentExaminationDTO({
  13406. this.relevanceType = RelevanceTypeEnum.Course,
  13407. this.relevanceCode,
  13408. this.studentAnswers,
  13409. this.submitCount = 0,
  13410. String? code,
  13411. String? examinationCode,
  13412. String? studentCode,
  13413. String? studentName,
  13414. double totalScore = 0,
  13415. }) : super(
  13416. code: code,
  13417. examinationCode: examinationCode,
  13418. studentCode: studentCode,
  13419. studentName: studentName,
  13420. totalScore: totalScore,
  13421. );
  13422. factory StudentExaminationDTO.fromJson(Map<String, dynamic> map) {
  13423. return StudentExaminationDTO(
  13424. relevanceType: RelevanceTypeEnum.values.firstWhere((e) => e.index == map['RelevanceType']),
  13425. relevanceCode: map['RelevanceCode'],
  13426. studentAnswers: map['StudentAnswers'] != null ? (map['StudentAnswers'] as List).map((e)=>ExaminationAnswerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13427. submitCount: map['SubmitCount'],
  13428. code: map['Code'],
  13429. examinationCode: map['ExaminationCode'],
  13430. studentCode: map['StudentCode'],
  13431. studentName: map['StudentName'],
  13432. totalScore: double.parse(map['TotalScore'].toString()),
  13433. );
  13434. }
  13435. Map<String, dynamic> toJson() {
  13436. final map = super.toJson();
  13437. map['RelevanceType'] = relevanceType.index;
  13438. if(relevanceCode != null)
  13439. map['RelevanceCode'] = relevanceCode;
  13440. if(studentAnswers != null)
  13441. map['StudentAnswers'] = studentAnswers;
  13442. map['SubmitCount'] = submitCount;
  13443. return map;
  13444. }
  13445. }
  13446. class DistributedServerInfoDTO extends BaseDTO{
  13447. String? serverCode;
  13448. bool isMaster;
  13449. String? name;
  13450. String? description;
  13451. bool enable;
  13452. DistributedServerTypeEnum serverType;
  13453. String? serverUrl;
  13454. String? lat;
  13455. String? lng;
  13456. List<IPAddressInfoDTO >? assignClientIPList;
  13457. DistributedServerInfoDTO({
  13458. this.serverCode,
  13459. this.isMaster = false,
  13460. this.name,
  13461. this.description,
  13462. this.enable = false,
  13463. this.serverType = DistributedServerTypeEnum.Official,
  13464. this.serverUrl,
  13465. this.lat,
  13466. this.lng,
  13467. this.assignClientIPList,
  13468. DateTime? createTime,
  13469. DateTime? updateTime,
  13470. }) : super(
  13471. createTime: createTime,
  13472. updateTime: updateTime,
  13473. );
  13474. factory DistributedServerInfoDTO.fromJson(Map<String, dynamic> map) {
  13475. return DistributedServerInfoDTO(
  13476. serverCode: map['ServerCode'],
  13477. isMaster: map['IsMaster'],
  13478. name: map['Name'],
  13479. description: map['Description'],
  13480. enable: map['Enable'],
  13481. serverType: DistributedServerTypeEnum.values.firstWhere((e) => e.index == map['ServerType']),
  13482. serverUrl: map['ServerUrl'],
  13483. lat: map['Lat'],
  13484. lng: map['Lng'],
  13485. assignClientIPList: map['AssignClientIPList'] != null ? (map['AssignClientIPList'] as List).map((e)=>IPAddressInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13486. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13487. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13488. );
  13489. }
  13490. Map<String, dynamic> toJson() {
  13491. final map = super.toJson();
  13492. if(serverCode != null)
  13493. map['ServerCode'] = serverCode;
  13494. map['IsMaster'] = isMaster;
  13495. if(name != null)
  13496. map['Name'] = name;
  13497. if(description != null)
  13498. map['Description'] = description;
  13499. map['Enable'] = enable;
  13500. map['ServerType'] = serverType.index;
  13501. if(serverUrl != null)
  13502. map['ServerUrl'] = serverUrl;
  13503. if(lat != null)
  13504. map['Lat'] = lat;
  13505. if(lng != null)
  13506. map['Lng'] = lng;
  13507. if(assignClientIPList != null)
  13508. map['AssignClientIPList'] = assignClientIPList;
  13509. return map;
  13510. }
  13511. }
  13512. class DiagnosisResultDTO {
  13513. int index;
  13514. String? diagnosisResult;
  13515. DiagnosisResultDTO({
  13516. this.index = 0,
  13517. this.diagnosisResult,
  13518. });
  13519. factory DiagnosisResultDTO.fromJson(Map<String, dynamic> map) {
  13520. return DiagnosisResultDTO(
  13521. index: map['Index'],
  13522. diagnosisResult: map['DiagnosisResult'],
  13523. );
  13524. }
  13525. Map<String, dynamic> toJson() {
  13526. final map = Map<String, dynamic>();
  13527. map['Index'] = index;
  13528. if(diagnosisResult != null)
  13529. map['DiagnosisResult'] = diagnosisResult;
  13530. return map;
  13531. }
  13532. }
  13533. class DeviceOutputConfigDTO {
  13534. String? code;
  13535. String? name;
  13536. DeviceVideoOutputTypeEnum deviceVideoOutputType;
  13537. int videoWidth;
  13538. int videoHeight;
  13539. DeviceOutputConfigDTO({
  13540. this.code,
  13541. this.name,
  13542. this.deviceVideoOutputType = DeviceVideoOutputTypeEnum.MergedVideo,
  13543. this.videoWidth = 0,
  13544. this.videoHeight = 0,
  13545. });
  13546. factory DeviceOutputConfigDTO.fromJson(Map<String, dynamic> map) {
  13547. return DeviceOutputConfigDTO(
  13548. code: map['Code'],
  13549. name: map['Name'],
  13550. deviceVideoOutputType: DeviceVideoOutputTypeEnum.values.firstWhere((e) => e.index == map['DeviceVideoOutputType']),
  13551. videoWidth: map['VideoWidth'],
  13552. videoHeight: map['VideoHeight'],
  13553. );
  13554. }
  13555. Map<String, dynamic> toJson() {
  13556. final map = Map<String, dynamic>();
  13557. if(code != null)
  13558. map['Code'] = code;
  13559. if(name != null)
  13560. map['Name'] = name;
  13561. map['DeviceVideoOutputType'] = deviceVideoOutputType.index;
  13562. map['VideoWidth'] = videoWidth;
  13563. map['VideoHeight'] = videoHeight;
  13564. return map;
  13565. }
  13566. }
  13567. class ResolutionDTO {
  13568. String? shortCode;
  13569. int videoWidth;
  13570. int videoHeight;
  13571. ResolutionDTO({
  13572. this.shortCode,
  13573. this.videoWidth = 0,
  13574. this.videoHeight = 0,
  13575. });
  13576. factory ResolutionDTO.fromJson(Map<String, dynamic> map) {
  13577. return ResolutionDTO(
  13578. shortCode: map['ShortCode'],
  13579. videoWidth: map['VideoWidth'],
  13580. videoHeight: map['VideoHeight'],
  13581. );
  13582. }
  13583. Map<String, dynamic> toJson() {
  13584. final map = Map<String, dynamic>();
  13585. if(shortCode != null)
  13586. map['ShortCode'] = shortCode;
  13587. map['VideoWidth'] = videoWidth;
  13588. map['VideoHeight'] = videoHeight;
  13589. return map;
  13590. }
  13591. }
  13592. class BrandModelDetailDTO {
  13593. String? brand;
  13594. String? model;
  13595. List<ResolutionDTO >? resolutions;
  13596. BrandModelDetailDTO({
  13597. this.brand,
  13598. this.model,
  13599. this.resolutions,
  13600. });
  13601. factory BrandModelDetailDTO.fromJson(Map<String, dynamic> map) {
  13602. return BrandModelDetailDTO(
  13603. brand: map['Brand'],
  13604. model: map['Model'],
  13605. resolutions: map['Resolutions'] != null ? (map['Resolutions'] as List).map((e)=>ResolutionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13606. );
  13607. }
  13608. Map<String, dynamic> toJson() {
  13609. final map = Map<String, dynamic>();
  13610. if(brand != null)
  13611. map['Brand'] = brand;
  13612. if(model != null)
  13613. map['Model'] = model;
  13614. if(resolutions != null)
  13615. map['Resolutions'] = resolutions;
  13616. return map;
  13617. }
  13618. }
  13619. class DeviceLiveShareInfoDTO {
  13620. String? deviceCode;
  13621. String? shareUserCode;
  13622. String? shareUserName;
  13623. DateTime? shareTime;
  13624. DeviceLiveShareInfoDTO({
  13625. this.deviceCode,
  13626. this.shareUserCode,
  13627. this.shareUserName,
  13628. this.shareTime,
  13629. });
  13630. factory DeviceLiveShareInfoDTO.fromJson(Map<String, dynamic> map) {
  13631. return DeviceLiveShareInfoDTO(
  13632. deviceCode: map['DeviceCode'],
  13633. shareUserCode: map['ShareUserCode'],
  13634. shareUserName: map['ShareUserName'],
  13635. shareTime: map['ShareTime'] != null ? DateTime.parse(map['ShareTime']) : null,
  13636. );
  13637. }
  13638. Map<String, dynamic> toJson() {
  13639. final map = Map<String, dynamic>();
  13640. if(deviceCode != null)
  13641. map['DeviceCode'] = deviceCode;
  13642. if(shareUserCode != null)
  13643. map['ShareUserCode'] = shareUserCode;
  13644. if(shareUserName != null)
  13645. map['ShareUserName'] = shareUserName;
  13646. if(shareTime != null)
  13647. map['ShareTime'] = JsonRpcUtils.dateFormat(shareTime!);
  13648. return map;
  13649. }
  13650. }
  13651. class BoardPointDTO {
  13652. double x;
  13653. double y;
  13654. BoardPointDTO({
  13655. this.x = 0,
  13656. this.y = 0,
  13657. });
  13658. factory BoardPointDTO.fromJson(Map<String, dynamic> map) {
  13659. return BoardPointDTO(
  13660. x: double.parse(map['X'].toString()),
  13661. y: double.parse(map['Y'].toString()),
  13662. );
  13663. }
  13664. Map<String, dynamic> toJson() {
  13665. final map = Map<String, dynamic>();
  13666. map['X'] = x;
  13667. map['Y'] = y;
  13668. return map;
  13669. }
  13670. }
  13671. class ConsultationExpertDTO extends UserBaseDTO{
  13672. ConsultationExpertDTO({
  13673. String? userCode,
  13674. String? userName,
  13675. String? headImageUrl,
  13676. DateTime? createTime,
  13677. DateTime? updateTime,
  13678. }) : super(
  13679. userCode: userCode,
  13680. userName: userName,
  13681. headImageUrl: headImageUrl,
  13682. createTime: createTime,
  13683. updateTime: updateTime,
  13684. );
  13685. factory ConsultationExpertDTO.fromJson(Map<String, dynamic> map) {
  13686. return ConsultationExpertDTO(
  13687. userCode: map['UserCode'],
  13688. userName: map['UserName'],
  13689. headImageUrl: map['HeadImageUrl'],
  13690. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13691. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13692. );
  13693. }
  13694. Map<String, dynamic> toJson() {
  13695. final map = super.toJson();
  13696. return map;
  13697. }
  13698. }
  13699. class AdminStatisticRecordDTO extends BaseDTO{
  13700. String? adminStatisticRecordCode;
  13701. String? adminStatisticCode;
  13702. String? adminStatisticName;
  13703. String? adminCode;
  13704. String? serverHost;
  13705. DateTime? lastestUpdateTime;
  13706. DateTime? nextHandleTime;
  13707. List<String >? xAxisDatas;
  13708. List<List<double> >? yAxisDatas;
  13709. List<StatisticInfoDTO >? children;
  13710. String? statisticJsonData;
  13711. StatisticsPlatformEnum statisticsPlatform;
  13712. AdminStatisticRecordDTO({
  13713. this.adminStatisticRecordCode,
  13714. this.adminStatisticCode,
  13715. this.adminStatisticName,
  13716. this.adminCode,
  13717. this.serverHost,
  13718. this.lastestUpdateTime,
  13719. this.nextHandleTime,
  13720. this.xAxisDatas,
  13721. this.yAxisDatas,
  13722. this.children,
  13723. this.statisticJsonData,
  13724. this.statisticsPlatform = StatisticsPlatformEnum.Management,
  13725. DateTime? createTime,
  13726. DateTime? updateTime,
  13727. }) : super(
  13728. createTime: createTime,
  13729. updateTime: updateTime,
  13730. );
  13731. factory AdminStatisticRecordDTO.fromJson(Map<String, dynamic> map) {
  13732. return AdminStatisticRecordDTO(
  13733. adminStatisticRecordCode: map['AdminStatisticRecordCode'],
  13734. adminStatisticCode: map['AdminStatisticCode'],
  13735. adminStatisticName: map['AdminStatisticName'],
  13736. adminCode: map['AdminCode'],
  13737. serverHost: map['ServerHost'],
  13738. lastestUpdateTime: map['LastestUpdateTime'] != null ? DateTime.parse(map['LastestUpdateTime']) : null,
  13739. nextHandleTime: map['NextHandleTime'] != null ? DateTime.parse(map['NextHandleTime']) : null,
  13740. xAxisDatas: map['XAxisDatas'] != null ? map['XAxisDatas'].cast<String>().toList() : null,
  13741. yAxisDatas: map['YAxisDatas'] != null ? map['YAxisDatas'].cast<List<double>>().toList() : null,
  13742. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13743. statisticJsonData: map['StatisticJsonData'],
  13744. statisticsPlatform: StatisticsPlatformEnum.values.firstWhere((e) => e.index == map['StatisticsPlatform']),
  13745. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13746. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13747. );
  13748. }
  13749. Map<String, dynamic> toJson() {
  13750. final map = super.toJson();
  13751. if(adminStatisticRecordCode != null)
  13752. map['AdminStatisticRecordCode'] = adminStatisticRecordCode;
  13753. if(adminStatisticCode != null)
  13754. map['AdminStatisticCode'] = adminStatisticCode;
  13755. if(adminStatisticName != null)
  13756. map['AdminStatisticName'] = adminStatisticName;
  13757. if(adminCode != null)
  13758. map['AdminCode'] = adminCode;
  13759. if(serverHost != null)
  13760. map['ServerHost'] = serverHost;
  13761. if(lastestUpdateTime != null)
  13762. map['LastestUpdateTime'] = JsonRpcUtils.dateFormat(lastestUpdateTime!);
  13763. if(nextHandleTime != null)
  13764. map['NextHandleTime'] = JsonRpcUtils.dateFormat(nextHandleTime!);
  13765. if(xAxisDatas != null)
  13766. map['XAxisDatas'] = xAxisDatas;
  13767. if(yAxisDatas != null)
  13768. map['YAxisDatas'] = yAxisDatas;
  13769. if(children != null)
  13770. map['Children'] = children;
  13771. if(statisticJsonData != null)
  13772. map['StatisticJsonData'] = statisticJsonData;
  13773. map['StatisticsPlatform'] = statisticsPlatform.index;
  13774. return map;
  13775. }
  13776. }
  13777. class CMSStatisticRecordDTO extends AdminStatisticRecordDTO{
  13778. CMSStatisticRecordDTO({
  13779. String? statisticJsonData,
  13780. String? adminStatisticRecordCode,
  13781. String? adminStatisticCode,
  13782. String? adminStatisticName,
  13783. String? adminCode,
  13784. String? serverHost,
  13785. DateTime? lastestUpdateTime,
  13786. DateTime? nextHandleTime,
  13787. List<String >? xAxisDatas,
  13788. List<List<double> >? yAxisDatas,
  13789. List<StatisticInfoDTO >? children,
  13790. StatisticsPlatformEnum statisticsPlatform = StatisticsPlatformEnum.Management,
  13791. DateTime? createTime,
  13792. DateTime? updateTime,
  13793. }) : super(
  13794. adminStatisticRecordCode: adminStatisticRecordCode,
  13795. adminStatisticCode: adminStatisticCode,
  13796. adminStatisticName: adminStatisticName,
  13797. adminCode: adminCode,
  13798. serverHost: serverHost,
  13799. lastestUpdateTime: lastestUpdateTime,
  13800. nextHandleTime: nextHandleTime,
  13801. xAxisDatas: xAxisDatas,
  13802. yAxisDatas: yAxisDatas,
  13803. children: children,
  13804. statisticJsonData: statisticJsonData,
  13805. statisticsPlatform: statisticsPlatform,
  13806. createTime: createTime,
  13807. updateTime: updateTime,
  13808. );
  13809. factory CMSStatisticRecordDTO.fromJson(Map<String, dynamic> map) {
  13810. return CMSStatisticRecordDTO(
  13811. statisticJsonData: map['StatisticJsonData'],
  13812. adminStatisticRecordCode: map['AdminStatisticRecordCode'],
  13813. adminStatisticCode: map['AdminStatisticCode'],
  13814. adminStatisticName: map['AdminStatisticName'],
  13815. adminCode: map['AdminCode'],
  13816. serverHost: map['ServerHost'],
  13817. lastestUpdateTime: map['LastestUpdateTime'] != null ? DateTime.parse(map['LastestUpdateTime']) : null,
  13818. nextHandleTime: map['NextHandleTime'] != null ? DateTime.parse(map['NextHandleTime']) : null,
  13819. xAxisDatas: map['XAxisDatas'] != null ? map['XAxisDatas'].cast<String>().toList() : null,
  13820. yAxisDatas: map['YAxisDatas'] != null ? map['YAxisDatas'].cast<List<double>>().toList() : null,
  13821. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13822. statisticsPlatform: StatisticsPlatformEnum.values.firstWhere((e) => e.index == map['StatisticsPlatform']),
  13823. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13824. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13825. );
  13826. }
  13827. Map<String, dynamic> toJson() {
  13828. final map = super.toJson();
  13829. return map;
  13830. }
  13831. }
  13832. class CMSTemplateDTO extends BaseDTO{
  13833. String? cMSTemplateCode;
  13834. String? cMSTemplateName;
  13835. CMSTemplateStatusTypeEnum cMSTemplateStateType;
  13836. String? cMSTemplateJson;
  13837. bool isDefault;
  13838. List<String >? organizationCodes;
  13839. CMSTemplateDTO({
  13840. this.cMSTemplateCode,
  13841. this.cMSTemplateName,
  13842. this.cMSTemplateStateType = CMSTemplateStatusTypeEnum.UnPublished,
  13843. this.cMSTemplateJson,
  13844. this.isDefault = false,
  13845. this.organizationCodes,
  13846. DateTime? createTime,
  13847. DateTime? updateTime,
  13848. }) : super(
  13849. createTime: createTime,
  13850. updateTime: updateTime,
  13851. );
  13852. factory CMSTemplateDTO.fromJson(Map<String, dynamic> map) {
  13853. return CMSTemplateDTO(
  13854. cMSTemplateCode: map['CMSTemplateCode'],
  13855. cMSTemplateName: map['CMSTemplateName'],
  13856. cMSTemplateStateType: CMSTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['CMSTemplateStateType']),
  13857. cMSTemplateJson: map['CMSTemplateJson'],
  13858. isDefault: map['IsDefault'],
  13859. organizationCodes: map['OrganizationCodes'] != null ? map['OrganizationCodes'].cast<String>().toList() : null,
  13860. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13861. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13862. );
  13863. }
  13864. Map<String, dynamic> toJson() {
  13865. final map = super.toJson();
  13866. if(cMSTemplateCode != null)
  13867. map['CMSTemplateCode'] = cMSTemplateCode;
  13868. if(cMSTemplateName != null)
  13869. map['CMSTemplateName'] = cMSTemplateName;
  13870. map['CMSTemplateStateType'] = cMSTemplateStateType.index;
  13871. if(cMSTemplateJson != null)
  13872. map['CMSTemplateJson'] = cMSTemplateJson;
  13873. map['IsDefault'] = isDefault;
  13874. if(organizationCodes != null)
  13875. map['OrganizationCodes'] = organizationCodes;
  13876. return map;
  13877. }
  13878. }
  13879. class StatisticAnnouncesDTO {
  13880. AnnouncementTypeEnum announcementType;
  13881. DateTime? contentTime;
  13882. String? content;
  13883. CMSMessageStatusEnum status;
  13884. StatisticAnnouncesDTO({
  13885. this.announcementType = AnnouncementTypeEnum.Broadcast,
  13886. this.contentTime,
  13887. this.content,
  13888. this.status = CMSMessageStatusEnum.UnRead,
  13889. });
  13890. factory StatisticAnnouncesDTO.fromJson(Map<String, dynamic> map) {
  13891. return StatisticAnnouncesDTO(
  13892. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  13893. contentTime: map['ContentTime'] != null ? DateTime.parse(map['ContentTime']) : null,
  13894. content: map['Content'],
  13895. status: CMSMessageStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  13896. );
  13897. }
  13898. Map<String, dynamic> toJson() {
  13899. final map = Map<String, dynamic>();
  13900. map['AnnouncementType'] = announcementType.index;
  13901. if(contentTime != null)
  13902. map['ContentTime'] = JsonRpcUtils.dateFormat(contentTime!);
  13903. if(content != null)
  13904. map['Content'] = content;
  13905. map['Status'] = status.index;
  13906. return map;
  13907. }
  13908. }
  13909. class StatisticDevicesDTO {
  13910. String? imgUrl;
  13911. String? name;
  13912. String? transferUrl;
  13913. StatisticDevicesDTO({
  13914. this.imgUrl,
  13915. this.name,
  13916. this.transferUrl,
  13917. });
  13918. factory StatisticDevicesDTO.fromJson(Map<String, dynamic> map) {
  13919. return StatisticDevicesDTO(
  13920. imgUrl: map['ImgUrl'],
  13921. name: map['Name'],
  13922. transferUrl: map['TransferUrl'],
  13923. );
  13924. }
  13925. Map<String, dynamic> toJson() {
  13926. final map = Map<String, dynamic>();
  13927. if(imgUrl != null)
  13928. map['ImgUrl'] = imgUrl;
  13929. if(name != null)
  13930. map['Name'] = name;
  13931. if(transferUrl != null)
  13932. map['TransferUrl'] = transferUrl;
  13933. return map;
  13934. }
  13935. }
  13936. class StatisticDownloadDTO {
  13937. String? imgUrl;
  13938. String? transferUrl;
  13939. StatisticDownloadDTO({
  13940. this.imgUrl,
  13941. this.transferUrl,
  13942. });
  13943. factory StatisticDownloadDTO.fromJson(Map<String, dynamic> map) {
  13944. return StatisticDownloadDTO(
  13945. imgUrl: map['ImgUrl'],
  13946. transferUrl: map['TransferUrl'],
  13947. );
  13948. }
  13949. Map<String, dynamic> toJson() {
  13950. final map = Map<String, dynamic>();
  13951. if(imgUrl != null)
  13952. map['ImgUrl'] = imgUrl;
  13953. if(transferUrl != null)
  13954. map['TransferUrl'] = transferUrl;
  13955. return map;
  13956. }
  13957. }
  13958. class StatisticMessagesDTO {
  13959. String? content;
  13960. DateTime? time;
  13961. String? transferUrl;
  13962. CMSMessageStatusEnum status;
  13963. StatisticMessagesDTO({
  13964. this.content,
  13965. this.time,
  13966. this.transferUrl,
  13967. this.status = CMSMessageStatusEnum.UnRead,
  13968. });
  13969. factory StatisticMessagesDTO.fromJson(Map<String, dynamic> map) {
  13970. return StatisticMessagesDTO(
  13971. content: map['Content'],
  13972. time: map['Time'] != null ? DateTime.parse(map['Time']) : null,
  13973. transferUrl: map['TransferUrl'],
  13974. status: CMSMessageStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  13975. );
  13976. }
  13977. Map<String, dynamic> toJson() {
  13978. final map = Map<String, dynamic>();
  13979. if(content != null)
  13980. map['Content'] = content;
  13981. if(time != null)
  13982. map['Time'] = JsonRpcUtils.dateFormat(time!);
  13983. if(transferUrl != null)
  13984. map['TransferUrl'] = transferUrl;
  13985. map['Status'] = status.index;
  13986. return map;
  13987. }
  13988. }
  13989. class StatisticMessageInfoDTO extends StatisticMessagesDTO{
  13990. String? userCode;
  13991. String? messageCode;
  13992. StatisticMessageInfoDTO({
  13993. this.userCode,
  13994. this.messageCode,
  13995. String? content,
  13996. DateTime? time,
  13997. String? transferUrl,
  13998. CMSMessageStatusEnum status = CMSMessageStatusEnum.UnRead,
  13999. }) : super(
  14000. content: content,
  14001. time: time,
  14002. transferUrl: transferUrl,
  14003. status: status,
  14004. );
  14005. factory StatisticMessageInfoDTO.fromJson(Map<String, dynamic> map) {
  14006. return StatisticMessageInfoDTO(
  14007. userCode: map['UserCode'],
  14008. messageCode: map['MessageCode'],
  14009. content: map['Content'],
  14010. time: map['Time'] != null ? DateTime.parse(map['Time']) : null,
  14011. transferUrl: map['TransferUrl'],
  14012. status: CMSMessageStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  14013. );
  14014. }
  14015. Map<String, dynamic> toJson() {
  14016. final map = super.toJson();
  14017. if(userCode != null)
  14018. map['UserCode'] = userCode;
  14019. if(messageCode != null)
  14020. map['MessageCode'] = messageCode;
  14021. return map;
  14022. }
  14023. }
  14024. class StatisticMyPendingDTO {
  14025. String? title;
  14026. double rate;
  14027. StatisticMyPendingDTO({
  14028. this.title,
  14029. this.rate = 0,
  14030. });
  14031. factory StatisticMyPendingDTO.fromJson(Map<String, dynamic> map) {
  14032. return StatisticMyPendingDTO(
  14033. title: map['Title'],
  14034. rate: double.parse(map['Rate'].toString()),
  14035. );
  14036. }
  14037. Map<String, dynamic> toJson() {
  14038. final map = Map<String, dynamic>();
  14039. if(title != null)
  14040. map['Title'] = title;
  14041. map['Rate'] = rate;
  14042. return map;
  14043. }
  14044. }
  14045. class StatisticMyStandingDTO {
  14046. String? title;
  14047. int data;
  14048. String? unit;
  14049. String? transferUrl;
  14050. StatisticMyStandingDTO({
  14051. this.title,
  14052. this.data = 0,
  14053. this.unit,
  14054. this.transferUrl,
  14055. });
  14056. factory StatisticMyStandingDTO.fromJson(Map<String, dynamic> map) {
  14057. return StatisticMyStandingDTO(
  14058. title: map['Title'],
  14059. data: map['Data'],
  14060. unit: map['Unit'],
  14061. transferUrl: map['TransferUrl'],
  14062. );
  14063. }
  14064. Map<String, dynamic> toJson() {
  14065. final map = Map<String, dynamic>();
  14066. if(title != null)
  14067. map['Title'] = title;
  14068. map['Data'] = data;
  14069. if(unit != null)
  14070. map['Unit'] = unit;
  14071. if(transferUrl != null)
  14072. map['TransferUrl'] = transferUrl;
  14073. return map;
  14074. }
  14075. }
  14076. class StatisticPlatActivityDTO {
  14077. String? imgUrl;
  14078. String? transferUrl;
  14079. StatisticPlatActivityDTO({
  14080. this.imgUrl,
  14081. this.transferUrl,
  14082. });
  14083. factory StatisticPlatActivityDTO.fromJson(Map<String, dynamic> map) {
  14084. return StatisticPlatActivityDTO(
  14085. imgUrl: map['ImgUrl'],
  14086. transferUrl: map['TransferUrl'],
  14087. );
  14088. }
  14089. Map<String, dynamic> toJson() {
  14090. final map = Map<String, dynamic>();
  14091. if(imgUrl != null)
  14092. map['ImgUrl'] = imgUrl;
  14093. if(transferUrl != null)
  14094. map['TransferUrl'] = transferUrl;
  14095. return map;
  14096. }
  14097. }
  14098. class StatisticUpdateCourseDTO {
  14099. String? title;
  14100. String? teacher;
  14101. String? thumbnail;
  14102. String? transferUrl;
  14103. StatisticUpdateCourseDTO({
  14104. this.title,
  14105. this.teacher,
  14106. this.thumbnail,
  14107. this.transferUrl,
  14108. });
  14109. factory StatisticUpdateCourseDTO.fromJson(Map<String, dynamic> map) {
  14110. return StatisticUpdateCourseDTO(
  14111. title: map['Title'],
  14112. teacher: map['Teacher'],
  14113. thumbnail: map['Thumbnail'],
  14114. transferUrl: map['TransferUrl'],
  14115. );
  14116. }
  14117. Map<String, dynamic> toJson() {
  14118. final map = Map<String, dynamic>();
  14119. if(title != null)
  14120. map['Title'] = title;
  14121. if(teacher != null)
  14122. map['Teacher'] = teacher;
  14123. if(thumbnail != null)
  14124. map['Thumbnail'] = thumbnail;
  14125. if(transferUrl != null)
  14126. map['TransferUrl'] = transferUrl;
  14127. return map;
  14128. }
  14129. }
  14130. class BaseFeatureItemDTO extends BaseFeatureItemBaseDTO<BaseFeatureItemDTO>{
  14131. BaseFeatureItemDTO(
  14132. );
  14133. factory BaseFeatureItemDTO.fromJson(Map<String, dynamic> map) {
  14134. return BaseFeatureItemDTO(
  14135. );
  14136. }
  14137. Map<String, dynamic> toJson() {
  14138. final map = super.toJson();
  14139. return map;
  14140. }
  14141. }
  14142. class AIDiagnosisLesionSize {
  14143. AIDiagnosisPoint2D? horizontalPoint1;
  14144. AIDiagnosisPoint2D? horizontalPoint2;
  14145. int horizontalLengthInPixel;
  14146. AIDiagnosisPoint2D? verticalPoint1;
  14147. AIDiagnosisPoint2D? verticalPoint2;
  14148. int verticalLengthInPixel;
  14149. AIDiagnosisLesionSize({
  14150. this.horizontalPoint1,
  14151. this.horizontalPoint2,
  14152. this.horizontalLengthInPixel = 0,
  14153. this.verticalPoint1,
  14154. this.verticalPoint2,
  14155. this.verticalLengthInPixel = 0,
  14156. });
  14157. factory AIDiagnosisLesionSize.fromJson(Map<String, dynamic> map) {
  14158. return AIDiagnosisLesionSize(
  14159. horizontalPoint1: map['HorizontalPoint1'] != null ? AIDiagnosisPoint2D.fromJson(map['HorizontalPoint1']) : null,
  14160. horizontalPoint2: map['HorizontalPoint2'] != null ? AIDiagnosisPoint2D.fromJson(map['HorizontalPoint2']) : null,
  14161. horizontalLengthInPixel: map['HorizontalLengthInPixel'],
  14162. verticalPoint1: map['VerticalPoint1'] != null ? AIDiagnosisPoint2D.fromJson(map['VerticalPoint1']) : null,
  14163. verticalPoint2: map['VerticalPoint2'] != null ? AIDiagnosisPoint2D.fromJson(map['VerticalPoint2']) : null,
  14164. verticalLengthInPixel: map['VerticalLengthInPixel'],
  14165. );
  14166. }
  14167. Map<String, dynamic> toJson() {
  14168. final map = Map<String, dynamic>();
  14169. if(horizontalPoint1 != null)
  14170. map['HorizontalPoint1'] = horizontalPoint1;
  14171. if(horizontalPoint2 != null)
  14172. map['HorizontalPoint2'] = horizontalPoint2;
  14173. map['HorizontalLengthInPixel'] = horizontalLengthInPixel;
  14174. if(verticalPoint1 != null)
  14175. map['VerticalPoint1'] = verticalPoint1;
  14176. if(verticalPoint2 != null)
  14177. map['VerticalPoint2'] = verticalPoint2;
  14178. map['VerticalLengthInPixel'] = verticalLengthInPixel;
  14179. return map;
  14180. }
  14181. }
  14182. class ArrowCommentItemDTO {
  14183. ArrowOrientation arrowOrientation;
  14184. String? text;
  14185. ArrowCommentItemDTO({
  14186. this.arrowOrientation = ArrowOrientation.Down,
  14187. this.text,
  14188. });
  14189. factory ArrowCommentItemDTO.fromJson(Map<String, dynamic> map) {
  14190. return ArrowCommentItemDTO(
  14191. arrowOrientation: ArrowOrientation.values.firstWhere((e) => e.index == map['ArrowOrientation']),
  14192. text: map['Text'],
  14193. );
  14194. }
  14195. Map<String, dynamic> toJson() {
  14196. final map = Map<String, dynamic>();
  14197. map['ArrowOrientation'] = arrowOrientation.index;
  14198. if(text != null)
  14199. map['Text'] = text;
  14200. return map;
  14201. }
  14202. }
  14203. class UserDefinedCommentsDTO {
  14204. String? userId;
  14205. List<UserDefinedCommentDataDTO >? commentItems;
  14206. UserDefinedCommentsDTO({
  14207. this.userId,
  14208. this.commentItems,
  14209. });
  14210. factory UserDefinedCommentsDTO.fromJson(Map<String, dynamic> map) {
  14211. return UserDefinedCommentsDTO(
  14212. userId: map['UserId'],
  14213. commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>UserDefinedCommentDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14214. );
  14215. }
  14216. Map<String, dynamic> toJson() {
  14217. final map = Map<String, dynamic>();
  14218. if(userId != null)
  14219. map['UserId'] = userId;
  14220. if(commentItems != null)
  14221. map['CommentItems'] = commentItems;
  14222. return map;
  14223. }
  14224. }
  14225. class AdminStatisticDTO extends BaseDTO{
  14226. String? adminStatisticCode;
  14227. String? name;
  14228. String? description;
  14229. String? intervalSetting;
  14230. bool enabled;
  14231. String? handleClass;
  14232. String? serverHost;
  14233. AdminStatisticDTO({
  14234. this.adminStatisticCode,
  14235. this.name,
  14236. this.description,
  14237. this.intervalSetting,
  14238. this.enabled = false,
  14239. this.handleClass,
  14240. this.serverHost,
  14241. DateTime? createTime,
  14242. DateTime? updateTime,
  14243. }) : super(
  14244. createTime: createTime,
  14245. updateTime: updateTime,
  14246. );
  14247. factory AdminStatisticDTO.fromJson(Map<String, dynamic> map) {
  14248. return AdminStatisticDTO(
  14249. adminStatisticCode: map['AdminStatisticCode'],
  14250. name: map['Name'],
  14251. description: map['Description'],
  14252. intervalSetting: map['IntervalSetting'],
  14253. enabled: map['Enabled'],
  14254. handleClass: map['HandleClass'],
  14255. serverHost: map['ServerHost'],
  14256. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  14257. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  14258. );
  14259. }
  14260. Map<String, dynamic> toJson() {
  14261. final map = super.toJson();
  14262. if(adminStatisticCode != null)
  14263. map['AdminStatisticCode'] = adminStatisticCode;
  14264. if(name != null)
  14265. map['Name'] = name;
  14266. if(description != null)
  14267. map['Description'] = description;
  14268. if(intervalSetting != null)
  14269. map['IntervalSetting'] = intervalSetting;
  14270. map['Enabled'] = enabled;
  14271. if(handleClass != null)
  14272. map['HandleClass'] = handleClass;
  14273. if(serverHost != null)
  14274. map['ServerHost'] = serverHost;
  14275. return map;
  14276. }
  14277. }
  14278. class AdminFeatureItemDTO extends BaseFeatureItemBaseDTO<AdminFeatureItemDTO>{
  14279. AdminFeatureItemDTO(
  14280. );
  14281. factory AdminFeatureItemDTO.fromJson(Map<String, dynamic> map) {
  14282. return AdminFeatureItemDTO(
  14283. );
  14284. }
  14285. Map<String, dynamic> toJson() {
  14286. final map = super.toJson();
  14287. return map;
  14288. }
  14289. }
  14290. class AdminAuthorityGroupDTO extends BaseDTO{
  14291. String? adminGroupCode;
  14292. String? description;
  14293. List<String >? adminCodes;
  14294. List<String >? features;
  14295. String? createAdmin;
  14296. AdminAuthorityGroupDTO({
  14297. this.adminGroupCode,
  14298. this.description,
  14299. this.adminCodes,
  14300. this.features,
  14301. this.createAdmin,
  14302. DateTime? createTime,
  14303. DateTime? updateTime,
  14304. }) : super(
  14305. createTime: createTime,
  14306. updateTime: updateTime,
  14307. );
  14308. factory AdminAuthorityGroupDTO.fromJson(Map<String, dynamic> map) {
  14309. return AdminAuthorityGroupDTO(
  14310. adminGroupCode: map['AdminGroupCode'],
  14311. description: map['Description'],
  14312. adminCodes: map['AdminCodes'] != null ? map['AdminCodes'].cast<String>().toList() : null,
  14313. features: map['Features'] != null ? map['Features'].cast<String>().toList() : null,
  14314. createAdmin: map['CreateAdmin'],
  14315. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  14316. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  14317. );
  14318. }
  14319. Map<String, dynamic> toJson() {
  14320. final map = super.toJson();
  14321. if(adminGroupCode != null)
  14322. map['AdminGroupCode'] = adminGroupCode;
  14323. if(description != null)
  14324. map['Description'] = description;
  14325. if(adminCodes != null)
  14326. map['AdminCodes'] = adminCodes;
  14327. if(features != null)
  14328. map['Features'] = features;
  14329. if(createAdmin != null)
  14330. map['CreateAdmin'] = createAdmin;
  14331. return map;
  14332. }
  14333. }