other.m.dart 393 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603
  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 'vinnoServer.m.dart';
  19. import 'position.m.dart';
  20. import 'rank.m.dart';
  21. import 'identityApply.m.dart';
  22. import 'role.m.dart';
  23. import 'region.m.dart';
  24. import 'aSR.m.dart';
  25. import 'deployPlatform.m.dart';
  26. import 'package:fis_jsonrpc/utils.dart';
  27. import 'package:fis_common/json_convert.dart';
  28. class GenerateRoomUrlRequest {
  29. int roomId;
  30. String? uniqueId;
  31. GenerateRoomUrlRequest({
  32. this.roomId = 0,
  33. this.uniqueId,
  34. });
  35. factory GenerateRoomUrlRequest.fromJson(Map<String, dynamic> map) {
  36. return GenerateRoomUrlRequest(
  37. roomId: map['RoomId'],
  38. uniqueId: map['UniqueId'],
  39. );
  40. }
  41. Map<String, dynamic> toJson() {
  42. final map = Map<String, dynamic>();
  43. map['RoomId'] = roomId;
  44. if(uniqueId != null)
  45. map['UniqueId'] = uniqueId;
  46. return map;
  47. }
  48. }
  49. class GenerateRoomUrlResult {
  50. String? rtmpUrl;
  51. String? hlsUrl;
  52. String? flvUrl;
  53. GenerateRoomUrlResult({
  54. this.rtmpUrl,
  55. this.hlsUrl,
  56. this.flvUrl,
  57. });
  58. factory GenerateRoomUrlResult.fromJson(Map<String, dynamic> map) {
  59. return GenerateRoomUrlResult(
  60. rtmpUrl: map['RtmpUrl'],
  61. hlsUrl: map['HlsUrl'],
  62. flvUrl: map['FlvUrl'],
  63. );
  64. }
  65. Map<String, dynamic> toJson() {
  66. final map = Map<String, dynamic>();
  67. if(rtmpUrl != null)
  68. map['RtmpUrl'] = rtmpUrl;
  69. if(hlsUrl != null)
  70. map['HlsUrl'] = hlsUrl;
  71. if(flvUrl != null)
  72. map['FlvUrl'] = flvUrl;
  73. return map;
  74. }
  75. }
  76. class GetRoomIdRequest {
  77. String? uniqueId;
  78. GetRoomIdRequest({
  79. this.uniqueId,
  80. });
  81. factory GetRoomIdRequest.fromJson(Map<String, dynamic> map) {
  82. return GetRoomIdRequest(
  83. uniqueId: map['UniqueId'],
  84. );
  85. }
  86. Map<String, dynamic> toJson() {
  87. final map = Map<String, dynamic>();
  88. if(uniqueId != null)
  89. map['UniqueId'] = uniqueId;
  90. return map;
  91. }
  92. }
  93. class GetRoomIdResult {
  94. int roomId;
  95. GetRoomIdResult({
  96. this.roomId = 0,
  97. });
  98. factory GetRoomIdResult.fromJson(Map<String, dynamic> map) {
  99. return GetRoomIdResult(
  100. roomId: map['RoomId'],
  101. );
  102. }
  103. Map<String, dynamic> toJson() {
  104. final map = Map<String, dynamic>();
  105. map['RoomId'] = roomId;
  106. return map;
  107. }
  108. }
  109. class GetRtcSettingRequest {
  110. GetRtcSettingRequest();
  111. factory GetRtcSettingRequest.fromJson(Map<String, dynamic> map) {
  112. return GetRtcSettingRequest(
  113. );
  114. }
  115. Map<String, dynamic> toJson() {
  116. final map = Map<String, dynamic>();
  117. return map;
  118. }
  119. }
  120. class GetRtcSettingResult {
  121. int appId;
  122. GetRtcSettingResult({
  123. this.appId = 0,
  124. });
  125. factory GetRtcSettingResult.fromJson(Map<String, dynamic> map) {
  126. return GetRtcSettingResult(
  127. appId: map['AppId'],
  128. );
  129. }
  130. Map<String, dynamic> toJson() {
  131. final map = Map<String, dynamic>();
  132. map['AppId'] = appId;
  133. return map;
  134. }
  135. }
  136. class GetUserSignRequest {
  137. String? userId;
  138. GetUserSignRequest({
  139. this.userId,
  140. });
  141. factory GetUserSignRequest.fromJson(Map<String, dynamic> map) {
  142. return GetUserSignRequest(
  143. userId: map['UserId'],
  144. );
  145. }
  146. Map<String, dynamic> toJson() {
  147. final map = Map<String, dynamic>();
  148. if(userId != null)
  149. map['UserId'] = userId;
  150. return map;
  151. }
  152. }
  153. class GetUserSignResult {
  154. String? userSign;
  155. GetUserSignResult({
  156. this.userSign,
  157. });
  158. factory GetUserSignResult.fromJson(Map<String, dynamic> map) {
  159. return GetUserSignResult(
  160. userSign: map['UserSign'],
  161. );
  162. }
  163. Map<String, dynamic> toJson() {
  164. final map = Map<String, dynamic>();
  165. if(userSign != null)
  166. map['UserSign'] = userSign;
  167. return map;
  168. }
  169. }
  170. class StorageInfoResult {
  171. int code;
  172. bool isSuccess;
  173. String? message;
  174. StorageInfoResult({
  175. this.code = 0,
  176. this.isSuccess = false,
  177. this.message,
  178. });
  179. factory StorageInfoResult.fromJson(Map<String, dynamic> map) {
  180. return StorageInfoResult(
  181. code: map['Code'],
  182. isSuccess: map['IsSuccess'],
  183. message: map['Message'],
  184. );
  185. }
  186. Map<String, dynamic> toJson() {
  187. final map = Map<String, dynamic>();
  188. map['Code'] = code;
  189. map['IsSuccess'] = isSuccess;
  190. if(message != null)
  191. map['Message'] = message;
  192. return map;
  193. }
  194. }
  195. class MeasureItemsResult {
  196. MeasureItemsResult();
  197. factory MeasureItemsResult.fromJson(Map<String, dynamic> map) {
  198. return MeasureItemsResult(
  199. );
  200. }
  201. Map<String, dynamic> toJson() {
  202. final map = Map<String, dynamic>();
  203. return map;
  204. }
  205. }
  206. class WaitClearLogResult {
  207. int daysAgo;
  208. int waitDelCount;
  209. WaitClearLogResult({
  210. this.daysAgo = 0,
  211. this.waitDelCount = 0,
  212. });
  213. factory WaitClearLogResult.fromJson(Map<String, dynamic> map) {
  214. return WaitClearLogResult(
  215. daysAgo: map['DaysAgo'],
  216. waitDelCount: map['WaitDelCount'],
  217. );
  218. }
  219. Map<String, dynamic> toJson() {
  220. final map = Map<String, dynamic>();
  221. map['DaysAgo'] = daysAgo;
  222. map['WaitDelCount'] = waitDelCount;
  223. return map;
  224. }
  225. }
  226. class ClearSystemLogRecordResult {
  227. int daysAgo;
  228. String? requestServerHost;
  229. String? clearTime;
  230. List<WaitClearLogResult >? waitClearLogs;
  231. ClearSystemLogRecordResult({
  232. this.daysAgo = 0,
  233. this.requestServerHost,
  234. this.clearTime,
  235. this.waitClearLogs,
  236. });
  237. factory ClearSystemLogRecordResult.fromJson(Map<String, dynamic> map) {
  238. return ClearSystemLogRecordResult(
  239. daysAgo: map['DaysAgo'],
  240. requestServerHost: map['RequestServerHost'],
  241. clearTime: map['ClearTime'],
  242. waitClearLogs: map['WaitClearLogs'] != null ? (map['WaitClearLogs'] as List).map((e)=>WaitClearLogResult.fromJson(e as Map<String,dynamic>)).toList() : null,
  243. );
  244. }
  245. Map<String, dynamic> toJson() {
  246. final map = Map<String, dynamic>();
  247. map['DaysAgo'] = daysAgo;
  248. if(requestServerHost != null)
  249. map['RequestServerHost'] = requestServerHost;
  250. if(clearTime != null)
  251. map['ClearTime'] = clearTime;
  252. if(waitClearLogs != null)
  253. map['WaitClearLogs'] = waitClearLogs;
  254. return map;
  255. }
  256. }
  257. enum CMSTemplateStatusTypeEnum {
  258. UnPublished,
  259. Published,
  260. }
  261. class CMSTemplateResult {
  262. String? cMSTemplateCode;
  263. String? cMSTemplateName;
  264. CMSTemplateStatusTypeEnum cMSTemplateStateType;
  265. String? cMSTemplateJson;
  266. bool isDefault;
  267. DateTime? createTime;
  268. CMSTemplateResult({
  269. this.cMSTemplateCode,
  270. this.cMSTemplateName,
  271. this.cMSTemplateStateType = CMSTemplateStatusTypeEnum.UnPublished,
  272. this.cMSTemplateJson,
  273. this.isDefault = false,
  274. this.createTime,
  275. });
  276. factory CMSTemplateResult.fromJson(Map<String, dynamic> map) {
  277. return CMSTemplateResult(
  278. cMSTemplateCode: map['CMSTemplateCode'],
  279. cMSTemplateName: map['CMSTemplateName'],
  280. cMSTemplateStateType: CMSTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['CMSTemplateStateType']),
  281. cMSTemplateJson: map['CMSTemplateJson'],
  282. isDefault: map['IsDefault'],
  283. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  284. );
  285. }
  286. Map<String, dynamic> toJson() {
  287. final map = Map<String, dynamic>();
  288. if(cMSTemplateCode != null)
  289. map['CMSTemplateCode'] = cMSTemplateCode;
  290. if(cMSTemplateName != null)
  291. map['CMSTemplateName'] = cMSTemplateName;
  292. map['CMSTemplateStateType'] = cMSTemplateStateType.index;
  293. if(cMSTemplateJson != null)
  294. map['CMSTemplateJson'] = cMSTemplateJson;
  295. map['IsDefault'] = isDefault;
  296. if(createTime != null)
  297. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  298. return map;
  299. }
  300. }
  301. class OrganizationBindQueryResult {
  302. int bindDeviceNum;
  303. int bindUserNum;
  304. OrganizationBindQueryResult({
  305. this.bindDeviceNum = 0,
  306. this.bindUserNum = 0,
  307. });
  308. factory OrganizationBindQueryResult.fromJson(Map<String, dynamic> map) {
  309. return OrganizationBindQueryResult(
  310. bindDeviceNum: map['BindDeviceNum'],
  311. bindUserNum: map['BindUserNum'],
  312. );
  313. }
  314. Map<String, dynamic> toJson() {
  315. final map = Map<String, dynamic>();
  316. map['BindDeviceNum'] = bindDeviceNum;
  317. map['BindUserNum'] = bindUserNum;
  318. return map;
  319. }
  320. }
  321. class ShareExamUrlResult {
  322. String? posterUrl;
  323. String? videoUrl;
  324. ShareExamUrlResult({
  325. this.posterUrl,
  326. this.videoUrl,
  327. });
  328. factory ShareExamUrlResult.fromJson(Map<String, dynamic> map) {
  329. return ShareExamUrlResult(
  330. posterUrl: map['PosterUrl'],
  331. videoUrl: map['VideoUrl'],
  332. );
  333. }
  334. Map<String, dynamic> toJson() {
  335. final map = Map<String, dynamic>();
  336. if(posterUrl != null)
  337. map['PosterUrl'] = posterUrl;
  338. if(videoUrl != null)
  339. map['VideoUrl'] = videoUrl;
  340. return map;
  341. }
  342. }
  343. class ApplyLockResult {
  344. bool isSuccess;
  345. String? lockUniqueCode;
  346. ApplyLockResult({
  347. this.isSuccess = false,
  348. this.lockUniqueCode,
  349. });
  350. factory ApplyLockResult.fromJson(Map<String, dynamic> map) {
  351. return ApplyLockResult(
  352. isSuccess: map['IsSuccess'],
  353. lockUniqueCode: map['LockUniqueCode'],
  354. );
  355. }
  356. Map<String, dynamic> toJson() {
  357. final map = Map<String, dynamic>();
  358. map['IsSuccess'] = isSuccess;
  359. if(lockUniqueCode != null)
  360. map['LockUniqueCode'] = lockUniqueCode;
  361. return map;
  362. }
  363. }
  364. class ReleaseLockResult {
  365. bool isSuccess;
  366. ReleaseLockResult({
  367. this.isSuccess = false,
  368. });
  369. factory ReleaseLockResult.fromJson(Map<String, dynamic> map) {
  370. return ReleaseLockResult(
  371. isSuccess: map['IsSuccess'],
  372. );
  373. }
  374. Map<String, dynamic> toJson() {
  375. final map = Map<String, dynamic>();
  376. map['IsSuccess'] = isSuccess;
  377. return map;
  378. }
  379. }
  380. class MarshalByRefObject {
  381. MarshalByRefObject();
  382. factory MarshalByRefObject.fromJson(Map<String, dynamic> map) {
  383. return MarshalByRefObject(
  384. );
  385. }
  386. Map<String, dynamic> toJson() {
  387. final map = Map<String, dynamic>();
  388. return map;
  389. }
  390. }
  391. class Stream extends MarshalByRefObject{
  392. bool canRead;
  393. bool canWrite;
  394. bool canSeek;
  395. bool canTimeout;
  396. int length;
  397. int position;
  398. int readTimeout;
  399. int writeTimeout;
  400. Stream({
  401. this.canRead = false,
  402. this.canWrite = false,
  403. this.canSeek = false,
  404. this.canTimeout = false,
  405. this.length = 0,
  406. this.position = 0,
  407. this.readTimeout = 0,
  408. this.writeTimeout = 0,
  409. }) : super(
  410. );
  411. factory Stream.fromJson(Map<String, dynamic> map) {
  412. return Stream(
  413. canRead: map['CanRead'],
  414. canWrite: map['CanWrite'],
  415. canSeek: map['CanSeek'],
  416. canTimeout: map['CanTimeout'],
  417. length: map['Length'],
  418. position: map['Position'],
  419. readTimeout: map['ReadTimeout'],
  420. writeTimeout: map['WriteTimeout'],
  421. );
  422. }
  423. Map<String, dynamic> toJson() {
  424. final map = super.toJson();
  425. map['CanRead'] = canRead;
  426. map['CanWrite'] = canWrite;
  427. map['CanSeek'] = canSeek;
  428. map['CanTimeout'] = canTimeout;
  429. map['Length'] = length;
  430. map['Position'] = position;
  431. map['ReadTimeout'] = readTimeout;
  432. map['WriteTimeout'] = writeTimeout;
  433. return map;
  434. }
  435. }
  436. class DownloadFileResult {
  437. Stream? merageFileStream;
  438. int fileSize;
  439. DownloadFileResult({
  440. this.merageFileStream,
  441. this.fileSize = 0,
  442. });
  443. factory DownloadFileResult.fromJson(Map<String, dynamic> map) {
  444. return DownloadFileResult(
  445. merageFileStream: map['MerageFileStream'] != null ? Stream.fromJson(map['MerageFileStream']) : null,
  446. fileSize: map['FileSize'],
  447. );
  448. }
  449. Map<String, dynamic> toJson() {
  450. final map = Map<String, dynamic>();
  451. if(merageFileStream != null)
  452. map['MerageFileStream'] = merageFileStream;
  453. map['FileSize'] = fileSize;
  454. return map;
  455. }
  456. }
  457. class BaseLiveResult {
  458. String? roomCode;
  459. int integerRoomId;
  460. String? rtcMessageJson;
  461. BaseLiveResult({
  462. this.roomCode,
  463. this.integerRoomId = 0,
  464. this.rtcMessageJson,
  465. });
  466. factory BaseLiveResult.fromJson(Map<String, dynamic> map) {
  467. return BaseLiveResult(
  468. roomCode: map['RoomCode'],
  469. integerRoomId: map['IntegerRoomId'],
  470. rtcMessageJson: map['RtcMessageJson'],
  471. );
  472. }
  473. Map<String, dynamic> toJson() {
  474. final map = Map<String, dynamic>();
  475. if(roomCode != null)
  476. map['RoomCode'] = roomCode;
  477. map['IntegerRoomId'] = integerRoomId;
  478. if(rtcMessageJson != null)
  479. map['RtcMessageJson'] = rtcMessageJson;
  480. return map;
  481. }
  482. }
  483. class MuteLiveResult extends BaseLiveResult{
  484. bool mute;
  485. MuteLiveResult({
  486. this.mute = false,
  487. String? roomCode,
  488. int integerRoomId = 0,
  489. String? rtcMessageJson,
  490. }) : super(
  491. roomCode: roomCode,
  492. integerRoomId: integerRoomId,
  493. rtcMessageJson: rtcMessageJson,
  494. );
  495. factory MuteLiveResult.fromJson(Map<String, dynamic> map) {
  496. return MuteLiveResult(
  497. mute: map['Mute'],
  498. roomCode: map['RoomCode'],
  499. integerRoomId: map['IntegerRoomId'],
  500. rtcMessageJson: map['RtcMessageJson'],
  501. );
  502. }
  503. Map<String, dynamic> toJson() {
  504. final map = super.toJson();
  505. map['Mute'] = mute;
  506. return map;
  507. }
  508. }
  509. class OpenedVideoLiveResult extends BaseLiveResult{
  510. bool videoOpend;
  511. OpenedVideoLiveResult({
  512. this.videoOpend = false,
  513. String? roomCode,
  514. int integerRoomId = 0,
  515. String? rtcMessageJson,
  516. }) : super(
  517. roomCode: roomCode,
  518. integerRoomId: integerRoomId,
  519. rtcMessageJson: rtcMessageJson,
  520. );
  521. factory OpenedVideoLiveResult.fromJson(Map<String, dynamic> map) {
  522. return OpenedVideoLiveResult(
  523. videoOpend: map['VideoOpend'],
  524. roomCode: map['RoomCode'],
  525. integerRoomId: map['IntegerRoomId'],
  526. rtcMessageJson: map['RtcMessageJson'],
  527. );
  528. }
  529. Map<String, dynamic> toJson() {
  530. final map = super.toJson();
  531. map['VideoOpend'] = videoOpend;
  532. return map;
  533. }
  534. }
  535. class ControllingParameterLiveResult extends BaseLiveResult{
  536. bool isControllingParameter;
  537. ControllingParameterLiveResult({
  538. this.isControllingParameter = false,
  539. String? roomCode,
  540. int integerRoomId = 0,
  541. String? rtcMessageJson,
  542. }) : super(
  543. roomCode: roomCode,
  544. integerRoomId: integerRoomId,
  545. rtcMessageJson: rtcMessageJson,
  546. );
  547. factory ControllingParameterLiveResult.fromJson(Map<String, dynamic> map) {
  548. return ControllingParameterLiveResult(
  549. isControllingParameter: map['IsControllingParameter'],
  550. roomCode: map['RoomCode'],
  551. integerRoomId: map['IntegerRoomId'],
  552. rtcMessageJson: map['RtcMessageJson'],
  553. );
  554. }
  555. Map<String, dynamic> toJson() {
  556. final map = super.toJson();
  557. map['IsControllingParameter'] = isControllingParameter;
  558. return map;
  559. }
  560. }
  561. class ChangeCourseStatusResult extends BaseLiveResult{
  562. CourseStatusEnum status;
  563. ChangeCourseStatusResult({
  564. this.status = CourseStatusEnum.Unknown,
  565. String? roomCode,
  566. int integerRoomId = 0,
  567. String? rtcMessageJson,
  568. }) : super(
  569. roomCode: roomCode,
  570. integerRoomId: integerRoomId,
  571. rtcMessageJson: rtcMessageJson,
  572. );
  573. factory ChangeCourseStatusResult.fromJson(Map<String, dynamic> map) {
  574. return ChangeCourseStatusResult(
  575. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  576. roomCode: map['RoomCode'],
  577. integerRoomId: map['IntegerRoomId'],
  578. rtcMessageJson: map['RtcMessageJson'],
  579. );
  580. }
  581. Map<String, dynamic> toJson() {
  582. final map = super.toJson();
  583. map['Status'] = status.index;
  584. return map;
  585. }
  586. }
  587. class FindConsultationSettingResult {
  588. String? version;
  589. String? settingData;
  590. FindConsultationSettingResult({
  591. this.version,
  592. this.settingData,
  593. });
  594. factory FindConsultationSettingResult.fromJson(Map<String, dynamic> map) {
  595. return FindConsultationSettingResult(
  596. version: map['Version'],
  597. settingData: map['SettingData'],
  598. );
  599. }
  600. Map<String, dynamic> toJson() {
  601. final map = Map<String, dynamic>();
  602. if(version != null)
  603. map['Version'] = version;
  604. if(settingData != null)
  605. map['SettingData'] = settingData;
  606. return map;
  607. }
  608. }
  609. class AddCacheReportPosterRequest extends TokenRequest{
  610. String? reportPosterCode;
  611. AddCacheReportPosterRequest({
  612. this.reportPosterCode,
  613. String? token,
  614. }) : super(
  615. token: token,
  616. );
  617. factory AddCacheReportPosterRequest.fromJson(Map<String, dynamic> map) {
  618. return AddCacheReportPosterRequest(
  619. reportPosterCode: map['ReportPosterCode'],
  620. token: map['Token'],
  621. );
  622. }
  623. Map<String, dynamic> toJson() {
  624. final map = super.toJson();
  625. if(reportPosterCode != null)
  626. map['ReportPosterCode'] = reportPosterCode;
  627. return map;
  628. }
  629. }
  630. class DeleteThesaurusUserCodeRequest extends TokenRequest{
  631. String? thesaurusCode;
  632. DeleteThesaurusUserCodeRequest({
  633. this.thesaurusCode,
  634. String? token,
  635. }) : super(
  636. token: token,
  637. );
  638. factory DeleteThesaurusUserCodeRequest.fromJson(Map<String, dynamic> map) {
  639. return DeleteThesaurusUserCodeRequest(
  640. thesaurusCode: map['ThesaurusCode'],
  641. token: map['Token'],
  642. );
  643. }
  644. Map<String, dynamic> toJson() {
  645. final map = super.toJson();
  646. if(thesaurusCode != null)
  647. map['ThesaurusCode'] = thesaurusCode;
  648. return map;
  649. }
  650. }
  651. class RemoveCacheReportPosterRequest extends TokenRequest{
  652. String? reportPosterCode;
  653. RemoveCacheReportPosterRequest({
  654. this.reportPosterCode,
  655. String? token,
  656. }) : super(
  657. token: token,
  658. );
  659. factory RemoveCacheReportPosterRequest.fromJson(Map<String, dynamic> map) {
  660. return RemoveCacheReportPosterRequest(
  661. reportPosterCode: map['ReportPosterCode'],
  662. token: map['Token'],
  663. );
  664. }
  665. Map<String, dynamic> toJson() {
  666. final map = super.toJson();
  667. if(reportPosterCode != null)
  668. map['ReportPosterCode'] = reportPosterCode;
  669. return map;
  670. }
  671. }
  672. class UpdateThesaurusUserCodeRequest extends TokenRequest{
  673. String? thesaurusCode;
  674. UpdateThesaurusUserCodeRequest({
  675. this.thesaurusCode,
  676. String? token,
  677. }) : super(
  678. token: token,
  679. );
  680. factory UpdateThesaurusUserCodeRequest.fromJson(Map<String, dynamic> map) {
  681. return UpdateThesaurusUserCodeRequest(
  682. thesaurusCode: map['ThesaurusCode'],
  683. token: map['Token'],
  684. );
  685. }
  686. Map<String, dynamic> toJson() {
  687. final map = super.toJson();
  688. if(thesaurusCode != null)
  689. map['ThesaurusCode'] = thesaurusCode;
  690. return map;
  691. }
  692. }
  693. class PushRecordCodesToDeviceRequest extends TokenRequest{
  694. List<String >? recordCodes;
  695. String? deviceCode;
  696. PushRecordCodesToDeviceRequest({
  697. this.recordCodes,
  698. this.deviceCode,
  699. String? token,
  700. }) : super(
  701. token: token,
  702. );
  703. factory PushRecordCodesToDeviceRequest.fromJson(Map<String, dynamic> map) {
  704. return PushRecordCodesToDeviceRequest(
  705. recordCodes: map['RecordCodes'] != null ? map['RecordCodes'].cast<String>().toList() : null,
  706. deviceCode: map['DeviceCode'],
  707. token: map['Token'],
  708. );
  709. }
  710. Map<String, dynamic> toJson() {
  711. final map = super.toJson();
  712. if(recordCodes != null)
  713. map['RecordCodes'] = recordCodes;
  714. if(deviceCode != null)
  715. map['DeviceCode'] = deviceCode;
  716. return map;
  717. }
  718. }
  719. class PayCallbackRequest {
  720. String? keyWord;
  721. PayCallbackRequest({
  722. this.keyWord,
  723. });
  724. factory PayCallbackRequest.fromJson(Map<String, dynamic> map) {
  725. return PayCallbackRequest(
  726. keyWord: map['KeyWord'],
  727. );
  728. }
  729. Map<String, dynamic> toJson() {
  730. final map = Map<String, dynamic>();
  731. if(keyWord != null)
  732. map['KeyWord'] = keyWord;
  733. return map;
  734. }
  735. }
  736. class CloseNotifyQueueRequest {
  737. String? msgQueueId;
  738. CloseNotifyQueueRequest({
  739. this.msgQueueId,
  740. });
  741. factory CloseNotifyQueueRequest.fromJson(Map<String, dynamic> map) {
  742. return CloseNotifyQueueRequest(
  743. msgQueueId: map['MsgQueueId'],
  744. );
  745. }
  746. Map<String, dynamic> toJson() {
  747. final map = Map<String, dynamic>();
  748. if(msgQueueId != null)
  749. map['MsgQueueId'] = msgQueueId;
  750. return map;
  751. }
  752. }
  753. class OpenNotifyQueueRequest {
  754. String? module;
  755. OpenNotifyQueueRequest({
  756. this.module,
  757. });
  758. factory OpenNotifyQueueRequest.fromJson(Map<String, dynamic> map) {
  759. return OpenNotifyQueueRequest(
  760. module: map['Module'],
  761. );
  762. }
  763. Map<String, dynamic> toJson() {
  764. final map = Map<String, dynamic>();
  765. if(module != null)
  766. map['Module'] = module;
  767. return map;
  768. }
  769. }
  770. class ApplyLockRequest {
  771. String? lockKey;
  772. ApplyLockRequest({
  773. this.lockKey,
  774. });
  775. factory ApplyLockRequest.fromJson(Map<String, dynamic> map) {
  776. return ApplyLockRequest(
  777. lockKey: map['LockKey'],
  778. );
  779. }
  780. Map<String, dynamic> toJson() {
  781. final map = Map<String, dynamic>();
  782. if(lockKey != null)
  783. map['LockKey'] = lockKey;
  784. return map;
  785. }
  786. }
  787. class ReleaseLockRequest {
  788. String? lockUniqueCode;
  789. ReleaseLockRequest({
  790. this.lockUniqueCode,
  791. });
  792. factory ReleaseLockRequest.fromJson(Map<String, dynamic> map) {
  793. return ReleaseLockRequest(
  794. lockUniqueCode: map['LockUniqueCode'],
  795. );
  796. }
  797. Map<String, dynamic> toJson() {
  798. final map = Map<String, dynamic>();
  799. if(lockUniqueCode != null)
  800. map['LockUniqueCode'] = lockUniqueCode;
  801. return map;
  802. }
  803. }
  804. class AssignPatientToUsersRequest extends TokenRequest{
  805. String? patientCode;
  806. List<String >? userCodes;
  807. AssignPatientToUsersRequest({
  808. this.patientCode,
  809. this.userCodes,
  810. String? token,
  811. }) : super(
  812. token: token,
  813. );
  814. factory AssignPatientToUsersRequest.fromJson(Map<String, dynamic> map) {
  815. return AssignPatientToUsersRequest(
  816. patientCode: map['PatientCode'],
  817. userCodes: map['UserCodes'] != null ? map['UserCodes'].cast<String>().toList() : null,
  818. token: map['Token'],
  819. );
  820. }
  821. Map<String, dynamic> toJson() {
  822. final map = super.toJson();
  823. if(patientCode != null)
  824. map['PatientCode'] = patientCode;
  825. if(userCodes != null)
  826. map['UserCodes'] = userCodes;
  827. return map;
  828. }
  829. }
  830. class QuestionDetailDTO extends BaseDTO{
  831. String? code;
  832. double score;
  833. QuestionDetailDTO({
  834. this.code,
  835. this.score = 0,
  836. DateTime? createTime,
  837. DateTime? updateTime,
  838. }) : super(
  839. createTime: createTime,
  840. updateTime: updateTime,
  841. );
  842. factory QuestionDetailDTO.fromJson(Map<String, dynamic> map) {
  843. return QuestionDetailDTO(
  844. code: map['Code'],
  845. score: double.parse(map['Score'].toString()),
  846. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  847. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  848. );
  849. }
  850. Map<String, dynamic> toJson() {
  851. final map = super.toJson();
  852. if(code != null)
  853. map['Code'] = code;
  854. map['Score'] = score;
  855. return map;
  856. }
  857. }
  858. class AddExaminationPaperRequest extends TokenRequest{
  859. String? name;
  860. double totalScore;
  861. List<QuestionDetailDTO >? questionList;
  862. List<String >? caseLabelCodes;
  863. List<String >? courseLabelCodes;
  864. AddExaminationPaperRequest({
  865. this.name,
  866. this.totalScore = 0,
  867. this.questionList,
  868. this.caseLabelCodes,
  869. this.courseLabelCodes,
  870. String? token,
  871. }) : super(
  872. token: token,
  873. );
  874. factory AddExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  875. return AddExaminationPaperRequest(
  876. name: map['Name'],
  877. totalScore: double.parse(map['TotalScore'].toString()),
  878. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>QuestionDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  879. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  880. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  881. token: map['Token'],
  882. );
  883. }
  884. Map<String, dynamic> toJson() {
  885. final map = super.toJson();
  886. if(name != null)
  887. map['Name'] = name;
  888. map['TotalScore'] = totalScore;
  889. if(questionList != null)
  890. map['QuestionList'] = questionList;
  891. if(caseLabelCodes != null)
  892. map['CaseLabelCodes'] = caseLabelCodes;
  893. if(courseLabelCodes != null)
  894. map['CourseLabelCodes'] = courseLabelCodes;
  895. return map;
  896. }
  897. }
  898. class CourseLabelRequest extends TokenRequest{
  899. String? code;
  900. List<LabelLanguageConfigDTO >? labelLanguageConfigs;
  901. OrganizationPatientTypeEnum useObjectType;
  902. LabelTypeEnum type;
  903. String? parentCode;
  904. CourseLabelRequest({
  905. this.code,
  906. this.labelLanguageConfigs,
  907. this.useObjectType = OrganizationPatientTypeEnum.Person,
  908. this.type = LabelTypeEnum.Unknown,
  909. this.parentCode,
  910. String? token,
  911. }) : super(
  912. token: token,
  913. );
  914. factory CourseLabelRequest.fromJson(Map<String, dynamic> map) {
  915. return CourseLabelRequest(
  916. code: map['Code'],
  917. labelLanguageConfigs: map['LabelLanguageConfigs'] != null ? (map['LabelLanguageConfigs'] as List).map((e)=>LabelLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  918. useObjectType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['UseObjectType']),
  919. type: LabelTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  920. parentCode: map['ParentCode'],
  921. token: map['Token'],
  922. );
  923. }
  924. Map<String, dynamic> toJson() {
  925. final map = super.toJson();
  926. if(code != null)
  927. map['Code'] = code;
  928. if(labelLanguageConfigs != null)
  929. map['LabelLanguageConfigs'] = labelLanguageConfigs;
  930. map['UseObjectType'] = useObjectType.index;
  931. map['Type'] = type.index;
  932. if(parentCode != null)
  933. map['ParentCode'] = parentCode;
  934. return map;
  935. }
  936. }
  937. class DeleteExaminationPaperRequest extends TokenRequest{
  938. String? examinationPaperCode;
  939. DeleteExaminationPaperRequest({
  940. this.examinationPaperCode,
  941. String? token,
  942. }) : super(
  943. token: token,
  944. );
  945. factory DeleteExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  946. return DeleteExaminationPaperRequest(
  947. examinationPaperCode: map['ExaminationPaperCode'],
  948. token: map['Token'],
  949. );
  950. }
  951. Map<String, dynamic> toJson() {
  952. final map = super.toJson();
  953. if(examinationPaperCode != null)
  954. map['ExaminationPaperCode'] = examinationPaperCode;
  955. return map;
  956. }
  957. }
  958. class FindExaminationQuestionPagesRequest extends PageRequest{
  959. String? searchKey;
  960. List<String >? caseLabelCodes;
  961. List<String >? courseLabelCodes;
  962. List<String >? codes;
  963. List<String >? notInCodes;
  964. FindExaminationQuestionPagesRequest({
  965. this.searchKey,
  966. this.caseLabelCodes,
  967. this.courseLabelCodes,
  968. this.codes,
  969. this.notInCodes,
  970. int pageIndex = 0,
  971. int pageSize = 0,
  972. String? token,
  973. }) : super(
  974. pageIndex: pageIndex,
  975. pageSize: pageSize,
  976. token: token,
  977. );
  978. factory FindExaminationQuestionPagesRequest.fromJson(Map<String, dynamic> map) {
  979. return FindExaminationQuestionPagesRequest(
  980. searchKey: map['SearchKey'],
  981. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  982. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  983. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  984. notInCodes: map['NotInCodes'] != null ? map['NotInCodes'].cast<String>().toList() : null,
  985. pageIndex: map['PageIndex'],
  986. pageSize: map['PageSize'],
  987. token: map['Token'],
  988. );
  989. }
  990. Map<String, dynamic> toJson() {
  991. final map = super.toJson();
  992. if(searchKey != null)
  993. map['SearchKey'] = searchKey;
  994. if(caseLabelCodes != null)
  995. map['CaseLabelCodes'] = caseLabelCodes;
  996. if(courseLabelCodes != null)
  997. map['CourseLabelCodes'] = courseLabelCodes;
  998. if(codes != null)
  999. map['Codes'] = codes;
  1000. if(notInCodes != null)
  1001. map['NotInCodes'] = notInCodes;
  1002. return map;
  1003. }
  1004. }
  1005. class FindExaminationQuestionsByCodesRequest extends TokenRequest{
  1006. List<String >? codes;
  1007. FindExaminationQuestionsByCodesRequest({
  1008. this.codes,
  1009. String? token,
  1010. }) : super(
  1011. token: token,
  1012. );
  1013. factory FindExaminationQuestionsByCodesRequest.fromJson(Map<String, dynamic> map) {
  1014. return FindExaminationQuestionsByCodesRequest(
  1015. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  1016. token: map['Token'],
  1017. );
  1018. }
  1019. Map<String, dynamic> toJson() {
  1020. final map = super.toJson();
  1021. if(codes != null)
  1022. map['Codes'] = codes;
  1023. return map;
  1024. }
  1025. }
  1026. class CreateExaminationQuestionRequest extends TokenRequest{
  1027. String? stem;
  1028. QuestionTypeEnum questionType;
  1029. List<QuestionOptionDTO >? questionOptionList;
  1030. List<QuestionFileDTO >? fileList;
  1031. List<String >? caseLabelCodes;
  1032. List<String >? courseLabelCodes;
  1033. bool trueOrFalse;
  1034. CreateExaminationQuestionRequest({
  1035. this.stem,
  1036. this.questionType = QuestionTypeEnum.Judge,
  1037. this.questionOptionList,
  1038. this.fileList,
  1039. this.caseLabelCodes,
  1040. this.courseLabelCodes,
  1041. this.trueOrFalse = false,
  1042. String? token,
  1043. }) : super(
  1044. token: token,
  1045. );
  1046. factory CreateExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1047. return CreateExaminationQuestionRequest(
  1048. stem: map['Stem'],
  1049. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  1050. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1051. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1052. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  1053. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  1054. trueOrFalse: map['TrueOrFalse'],
  1055. token: map['Token'],
  1056. );
  1057. }
  1058. Map<String, dynamic> toJson() {
  1059. final map = super.toJson();
  1060. if(stem != null)
  1061. map['Stem'] = stem;
  1062. map['QuestionType'] = questionType.index;
  1063. if(questionOptionList != null)
  1064. map['QuestionOptionList'] = questionOptionList;
  1065. if(fileList != null)
  1066. map['FileList'] = fileList;
  1067. if(caseLabelCodes != null)
  1068. map['CaseLabelCodes'] = caseLabelCodes;
  1069. if(courseLabelCodes != null)
  1070. map['CourseLabelCodes'] = courseLabelCodes;
  1071. map['TrueOrFalse'] = trueOrFalse;
  1072. return map;
  1073. }
  1074. }
  1075. class GetExaminationQuestionRequest extends TokenRequest{
  1076. String? code;
  1077. GetExaminationQuestionRequest({
  1078. this.code,
  1079. String? token,
  1080. }) : super(
  1081. token: token,
  1082. );
  1083. factory GetExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1084. return GetExaminationQuestionRequest(
  1085. code: map['Code'],
  1086. token: map['Token'],
  1087. );
  1088. }
  1089. Map<String, dynamic> toJson() {
  1090. final map = super.toJson();
  1091. if(code != null)
  1092. map['Code'] = code;
  1093. return map;
  1094. }
  1095. }
  1096. class UpdateExaminationQuestionRequest extends TokenRequest{
  1097. String? code;
  1098. String? stem;
  1099. QuestionTypeEnum questionType;
  1100. List<QuestionOptionDTO >? questionOptionList;
  1101. List<QuestionFileDTO >? fileList;
  1102. List<String >? caseLabelCodes;
  1103. List<String >? courseLabelCodes;
  1104. bool trueOrFalse;
  1105. UpdateExaminationQuestionRequest({
  1106. this.code,
  1107. this.stem,
  1108. this.questionType = QuestionTypeEnum.Judge,
  1109. this.questionOptionList,
  1110. this.fileList,
  1111. this.caseLabelCodes,
  1112. this.courseLabelCodes,
  1113. this.trueOrFalse = false,
  1114. String? token,
  1115. }) : super(
  1116. token: token,
  1117. );
  1118. factory UpdateExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1119. return UpdateExaminationQuestionRequest(
  1120. code: map['Code'],
  1121. stem: map['Stem'],
  1122. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  1123. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1124. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1125. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  1126. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  1127. trueOrFalse: map['TrueOrFalse'],
  1128. token: map['Token'],
  1129. );
  1130. }
  1131. Map<String, dynamic> toJson() {
  1132. final map = super.toJson();
  1133. if(code != null)
  1134. map['Code'] = code;
  1135. if(stem != null)
  1136. map['Stem'] = stem;
  1137. map['QuestionType'] = questionType.index;
  1138. if(questionOptionList != null)
  1139. map['QuestionOptionList'] = questionOptionList;
  1140. if(fileList != null)
  1141. map['FileList'] = fileList;
  1142. if(caseLabelCodes != null)
  1143. map['CaseLabelCodes'] = caseLabelCodes;
  1144. if(courseLabelCodes != null)
  1145. map['CourseLabelCodes'] = courseLabelCodes;
  1146. map['TrueOrFalse'] = trueOrFalse;
  1147. return map;
  1148. }
  1149. }
  1150. class DeleteExaminationQuestionRequest extends TokenRequest{
  1151. String? code;
  1152. DeleteExaminationQuestionRequest({
  1153. this.code,
  1154. String? token,
  1155. }) : super(
  1156. token: token,
  1157. );
  1158. factory DeleteExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
  1159. return DeleteExaminationQuestionRequest(
  1160. code: map['Code'],
  1161. token: map['Token'],
  1162. );
  1163. }
  1164. Map<String, dynamic> toJson() {
  1165. final map = super.toJson();
  1166. if(code != null)
  1167. map['Code'] = code;
  1168. return map;
  1169. }
  1170. }
  1171. class GetExaminationPaperPagesRequest extends PageRequest{
  1172. String? keyword;
  1173. List<String >? caseLabelCodes;
  1174. List<String >? courseLabelCodes;
  1175. GetExaminationPaperPagesRequest({
  1176. this.keyword,
  1177. this.caseLabelCodes,
  1178. this.courseLabelCodes,
  1179. int pageIndex = 0,
  1180. int pageSize = 0,
  1181. String? token,
  1182. }) : super(
  1183. pageIndex: pageIndex,
  1184. pageSize: pageSize,
  1185. token: token,
  1186. );
  1187. factory GetExaminationPaperPagesRequest.fromJson(Map<String, dynamic> map) {
  1188. return GetExaminationPaperPagesRequest(
  1189. keyword: map['Keyword'],
  1190. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  1191. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  1192. pageIndex: map['PageIndex'],
  1193. pageSize: map['PageSize'],
  1194. token: map['Token'],
  1195. );
  1196. }
  1197. Map<String, dynamic> toJson() {
  1198. final map = super.toJson();
  1199. if(keyword != null)
  1200. map['Keyword'] = keyword;
  1201. if(caseLabelCodes != null)
  1202. map['CaseLabelCodes'] = caseLabelCodes;
  1203. if(courseLabelCodes != null)
  1204. map['CourseLabelCodes'] = courseLabelCodes;
  1205. return map;
  1206. }
  1207. }
  1208. class GetExaminationPaperRequest extends TokenRequest{
  1209. String? examinationPaperCode;
  1210. GetExaminationPaperRequest({
  1211. this.examinationPaperCode,
  1212. String? token,
  1213. }) : super(
  1214. token: token,
  1215. );
  1216. factory GetExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  1217. return GetExaminationPaperRequest(
  1218. examinationPaperCode: map['ExaminationPaperCode'],
  1219. token: map['Token'],
  1220. );
  1221. }
  1222. Map<String, dynamic> toJson() {
  1223. final map = super.toJson();
  1224. if(examinationPaperCode != null)
  1225. map['ExaminationPaperCode'] = examinationPaperCode;
  1226. return map;
  1227. }
  1228. }
  1229. class QueryUserGroupPageRequest extends PageRequest{
  1230. String? keyword;
  1231. QueryUserGroupPageRequest({
  1232. this.keyword,
  1233. int pageIndex = 0,
  1234. int pageSize = 0,
  1235. String? token,
  1236. }) : super(
  1237. pageIndex: pageIndex,
  1238. pageSize: pageSize,
  1239. token: token,
  1240. );
  1241. factory QueryUserGroupPageRequest.fromJson(Map<String, dynamic> map) {
  1242. return QueryUserGroupPageRequest(
  1243. keyword: map['Keyword'],
  1244. pageIndex: map['PageIndex'],
  1245. pageSize: map['PageSize'],
  1246. token: map['Token'],
  1247. );
  1248. }
  1249. Map<String, dynamic> toJson() {
  1250. final map = super.toJson();
  1251. if(keyword != null)
  1252. map['Keyword'] = keyword;
  1253. return map;
  1254. }
  1255. }
  1256. class UpdateExaminationPaperRequest extends TokenRequest{
  1257. String? examinationPaperCode;
  1258. String? name;
  1259. double totalScore;
  1260. List<QuestionDetailDTO >? questionList;
  1261. List<String >? caseLabelCodes;
  1262. List<String >? courseLabelCodes;
  1263. UpdateExaminationPaperRequest({
  1264. this.examinationPaperCode,
  1265. this.name,
  1266. this.totalScore = 0,
  1267. this.questionList,
  1268. this.caseLabelCodes,
  1269. this.courseLabelCodes,
  1270. String? token,
  1271. }) : super(
  1272. token: token,
  1273. );
  1274. factory UpdateExaminationPaperRequest.fromJson(Map<String, dynamic> map) {
  1275. return UpdateExaminationPaperRequest(
  1276. examinationPaperCode: map['ExaminationPaperCode'],
  1277. name: map['Name'],
  1278. totalScore: double.parse(map['TotalScore'].toString()),
  1279. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>QuestionDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1280. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  1281. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  1282. token: map['Token'],
  1283. );
  1284. }
  1285. Map<String, dynamic> toJson() {
  1286. final map = super.toJson();
  1287. if(examinationPaperCode != null)
  1288. map['ExaminationPaperCode'] = examinationPaperCode;
  1289. if(name != null)
  1290. map['Name'] = name;
  1291. map['TotalScore'] = totalScore;
  1292. if(questionList != null)
  1293. map['QuestionList'] = questionList;
  1294. if(caseLabelCodes != null)
  1295. map['CaseLabelCodes'] = caseLabelCodes;
  1296. if(courseLabelCodes != null)
  1297. map['CourseLabelCodes'] = courseLabelCodes;
  1298. return map;
  1299. }
  1300. }
  1301. class QueryCourseLabelPageRequest extends PageRequest{
  1302. String? name;
  1303. String? languageCode;
  1304. LabelTypeEnum type;
  1305. String? parentCode;
  1306. QueryCourseLabelPageRequest({
  1307. this.name,
  1308. this.languageCode,
  1309. this.type = LabelTypeEnum.Unknown,
  1310. this.parentCode,
  1311. int pageIndex = 0,
  1312. int pageSize = 0,
  1313. String? token,
  1314. }) : super(
  1315. pageIndex: pageIndex,
  1316. pageSize: pageSize,
  1317. token: token,
  1318. );
  1319. factory QueryCourseLabelPageRequest.fromJson(Map<String, dynamic> map) {
  1320. return QueryCourseLabelPageRequest(
  1321. name: map['Name'],
  1322. languageCode: map['LanguageCode'],
  1323. type: LabelTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  1324. parentCode: map['ParentCode'],
  1325. pageIndex: map['PageIndex'],
  1326. pageSize: map['PageSize'],
  1327. token: map['Token'],
  1328. );
  1329. }
  1330. Map<String, dynamic> toJson() {
  1331. final map = super.toJson();
  1332. if(name != null)
  1333. map['Name'] = name;
  1334. if(languageCode != null)
  1335. map['LanguageCode'] = languageCode;
  1336. map['Type'] = type.index;
  1337. if(parentCode != null)
  1338. map['ParentCode'] = parentCode;
  1339. return map;
  1340. }
  1341. }
  1342. class AlterDeviceRequest extends TokenRequest{
  1343. String? deviceCode;
  1344. String? serialNumber;
  1345. String? name;
  1346. String? description;
  1347. String? headPicUrl;
  1348. String? organizationCode;
  1349. String? departmentCode;
  1350. bool isAutoShared;
  1351. AlterDeviceRequest({
  1352. this.deviceCode,
  1353. this.serialNumber,
  1354. this.name,
  1355. this.description,
  1356. this.headPicUrl,
  1357. this.organizationCode,
  1358. this.departmentCode,
  1359. this.isAutoShared = false,
  1360. String? token,
  1361. }) : super(
  1362. token: token,
  1363. );
  1364. factory AlterDeviceRequest.fromJson(Map<String, dynamic> map) {
  1365. return AlterDeviceRequest(
  1366. deviceCode: map['DeviceCode'],
  1367. serialNumber: map['SerialNumber'],
  1368. name: map['Name'],
  1369. description: map['Description'],
  1370. headPicUrl: map['HeadPicUrl'],
  1371. organizationCode: map['OrganizationCode'],
  1372. departmentCode: map['DepartmentCode'],
  1373. isAutoShared: map['IsAutoShared'],
  1374. token: map['Token'],
  1375. );
  1376. }
  1377. Map<String, dynamic> toJson() {
  1378. final map = super.toJson();
  1379. if(deviceCode != null)
  1380. map['DeviceCode'] = deviceCode;
  1381. if(serialNumber != null)
  1382. map['SerialNumber'] = serialNumber;
  1383. if(name != null)
  1384. map['Name'] = name;
  1385. if(description != null)
  1386. map['Description'] = description;
  1387. if(headPicUrl != null)
  1388. map['HeadPicUrl'] = headPicUrl;
  1389. if(organizationCode != null)
  1390. map['OrganizationCode'] = organizationCode;
  1391. if(departmentCode != null)
  1392. map['DepartmentCode'] = departmentCode;
  1393. map['IsAutoShared'] = isAutoShared;
  1394. return map;
  1395. }
  1396. }
  1397. class CleanDeviceCacheRequest {
  1398. String? deviceCode;
  1399. CleanDeviceCacheRequest({
  1400. this.deviceCode,
  1401. });
  1402. factory CleanDeviceCacheRequest.fromJson(Map<String, dynamic> map) {
  1403. return CleanDeviceCacheRequest(
  1404. deviceCode: map['DeviceCode'],
  1405. );
  1406. }
  1407. Map<String, dynamic> toJson() {
  1408. final map = Map<String, dynamic>();
  1409. if(deviceCode != null)
  1410. map['DeviceCode'] = deviceCode;
  1411. return map;
  1412. }
  1413. }
  1414. class DeviceDiagnosisChangedNotification extends TokenRequest{
  1415. String? diagnosisModule;
  1416. String? organizationCode;
  1417. String? deviceCode;
  1418. DeviceDiagnosisChangedNotification({
  1419. this.diagnosisModule,
  1420. this.organizationCode,
  1421. this.deviceCode,
  1422. String? token,
  1423. }) : super(
  1424. token: token,
  1425. );
  1426. factory DeviceDiagnosisChangedNotification.fromJson(Map<String, dynamic> map) {
  1427. return DeviceDiagnosisChangedNotification(
  1428. diagnosisModule: map['DiagnosisModule'],
  1429. organizationCode: map['OrganizationCode'],
  1430. deviceCode: map['DeviceCode'],
  1431. token: map['Token'],
  1432. );
  1433. }
  1434. Map<String, dynamic> toJson() {
  1435. final map = super.toJson();
  1436. if(diagnosisModule != null)
  1437. map['DiagnosisModule'] = diagnosisModule;
  1438. if(organizationCode != null)
  1439. map['OrganizationCode'] = organizationCode;
  1440. if(deviceCode != null)
  1441. map['DeviceCode'] = deviceCode;
  1442. return map;
  1443. }
  1444. }
  1445. class DeviceLeaveLiveConsultationRequest extends TokenRequest{
  1446. String? consultationCode;
  1447. DeviceLeaveLiveConsultationRequest({
  1448. this.consultationCode,
  1449. String? token,
  1450. }) : super(
  1451. token: token,
  1452. );
  1453. factory DeviceLeaveLiveConsultationRequest.fromJson(Map<String, dynamic> map) {
  1454. return DeviceLeaveLiveConsultationRequest(
  1455. consultationCode: map['ConsultationCode'],
  1456. token: map['Token'],
  1457. );
  1458. }
  1459. Map<String, dynamic> toJson() {
  1460. final map = super.toJson();
  1461. if(consultationCode != null)
  1462. map['ConsultationCode'] = consultationCode;
  1463. return map;
  1464. }
  1465. }
  1466. class DeviceLeaveLiveConsultationResult {
  1467. bool success;
  1468. DeviceLeaveLiveConsultationResult({
  1469. this.success = false,
  1470. });
  1471. factory DeviceLeaveLiveConsultationResult.fromJson(Map<String, dynamic> map) {
  1472. return DeviceLeaveLiveConsultationResult(
  1473. success: map['Success'],
  1474. );
  1475. }
  1476. Map<String, dynamic> toJson() {
  1477. final map = Map<String, dynamic>();
  1478. map['Success'] = success;
  1479. return map;
  1480. }
  1481. }
  1482. class FindDeviceDiagnosisRequest extends TokenRequest{
  1483. String? deviceCode;
  1484. FindDeviceDiagnosisRequest({
  1485. this.deviceCode,
  1486. String? token,
  1487. }) : super(
  1488. token: token,
  1489. );
  1490. factory FindDeviceDiagnosisRequest.fromJson(Map<String, dynamic> map) {
  1491. return FindDeviceDiagnosisRequest(
  1492. deviceCode: map['DeviceCode'],
  1493. token: map['Token'],
  1494. );
  1495. }
  1496. Map<String, dynamic> toJson() {
  1497. final map = super.toJson();
  1498. if(deviceCode != null)
  1499. map['DeviceCode'] = deviceCode;
  1500. return map;
  1501. }
  1502. }
  1503. class ReportLiveStateResult {
  1504. ReportLiveStateResult();
  1505. factory ReportLiveStateResult.fromJson(Map<String, dynamic> map) {
  1506. return ReportLiveStateResult(
  1507. );
  1508. }
  1509. Map<String, dynamic> toJson() {
  1510. final map = Map<String, dynamic>();
  1511. return map;
  1512. }
  1513. }
  1514. class ConfirmAssociatedWithAccountRequest extends TokenRequest{
  1515. String? emailAddress;
  1516. String? verifyCode;
  1517. ConfirmAssociatedWithAccountRequest({
  1518. this.emailAddress,
  1519. this.verifyCode,
  1520. String? token,
  1521. }) : super(
  1522. token: token,
  1523. );
  1524. factory ConfirmAssociatedWithAccountRequest.fromJson(Map<String, dynamic> map) {
  1525. return ConfirmAssociatedWithAccountRequest(
  1526. emailAddress: map['EmailAddress'],
  1527. verifyCode: map['VerifyCode'],
  1528. token: map['Token'],
  1529. );
  1530. }
  1531. Map<String, dynamic> toJson() {
  1532. final map = super.toJson();
  1533. if(emailAddress != null)
  1534. map['EmailAddress'] = emailAddress;
  1535. if(verifyCode != null)
  1536. map['VerifyCode'] = verifyCode;
  1537. return map;
  1538. }
  1539. }
  1540. class DeleteThesaurusCodeRequest extends TokenRequest{
  1541. String? thesaurusCode;
  1542. DeleteThesaurusCodeRequest({
  1543. this.thesaurusCode,
  1544. String? token,
  1545. }) : super(
  1546. token: token,
  1547. );
  1548. factory DeleteThesaurusCodeRequest.fromJson(Map<String, dynamic> map) {
  1549. return DeleteThesaurusCodeRequest(
  1550. thesaurusCode: map['ThesaurusCode'],
  1551. token: map['Token'],
  1552. );
  1553. }
  1554. Map<String, dynamic> toJson() {
  1555. final map = super.toJson();
  1556. if(thesaurusCode != null)
  1557. map['ThesaurusCode'] = thesaurusCode;
  1558. return map;
  1559. }
  1560. }
  1561. class SignUpRequest extends UserDTO{
  1562. SignUpRequest({
  1563. String? phone,
  1564. String? email,
  1565. String? nickName,
  1566. String? fullName,
  1567. String? organizationCode,
  1568. String? organizationName,
  1569. String? rootOrganizationCode,
  1570. String? rootOrganizationName,
  1571. List<String >? authorityGroups,
  1572. List<String >? bindDevices,
  1573. String? lastIP,
  1574. int logintimes = 0,
  1575. UserInfoStateEnum userState = UserInfoStateEnum.Nonactivated,
  1576. List<String >? roleCodes,
  1577. List<String >? rankCodes,
  1578. List<String >? positionCodes,
  1579. ApplyStateEnum applyState = ApplyStateEnum.NotApply,
  1580. String? rankName,
  1581. String? positionName,
  1582. bool isDirector = false,
  1583. List<String >? fieldList,
  1584. List<String >? deletePatientCodes,
  1585. bool isBatchExportDiagnoseData = false,
  1586. String? bindAssistantUserCode,
  1587. String? bindAssistantDoctorUserCode,
  1588. LoginLockInfoDTO? loginLockInfo,
  1589. String? signature,
  1590. String? language,
  1591. bool enableReportLabel = false,
  1592. List<AssociatedInfoDTO >? associatedInfos,
  1593. String? userCode,
  1594. String? userName,
  1595. String? headImageUrl,
  1596. DateTime? createTime,
  1597. DateTime? updateTime,
  1598. }) : super(
  1599. phone: phone,
  1600. email: email,
  1601. nickName: nickName,
  1602. fullName: fullName,
  1603. organizationCode: organizationCode,
  1604. organizationName: organizationName,
  1605. rootOrganizationCode: rootOrganizationCode,
  1606. rootOrganizationName: rootOrganizationName,
  1607. authorityGroups: authorityGroups,
  1608. bindDevices: bindDevices,
  1609. lastIP: lastIP,
  1610. logintimes: logintimes,
  1611. userState: userState,
  1612. roleCodes: roleCodes,
  1613. rankCodes: rankCodes,
  1614. positionCodes: positionCodes,
  1615. applyState: applyState,
  1616. rankName: rankName,
  1617. positionName: positionName,
  1618. isDirector: isDirector,
  1619. fieldList: fieldList,
  1620. deletePatientCodes: deletePatientCodes,
  1621. isBatchExportDiagnoseData: isBatchExportDiagnoseData,
  1622. bindAssistantUserCode: bindAssistantUserCode,
  1623. bindAssistantDoctorUserCode: bindAssistantDoctorUserCode,
  1624. loginLockInfo: loginLockInfo,
  1625. signature: signature,
  1626. language: language,
  1627. enableReportLabel: enableReportLabel,
  1628. associatedInfos: associatedInfos,
  1629. userCode: userCode,
  1630. userName: userName,
  1631. headImageUrl: headImageUrl,
  1632. createTime: createTime,
  1633. updateTime: updateTime,
  1634. );
  1635. factory SignUpRequest.fromJson(Map<String, dynamic> map) {
  1636. return SignUpRequest(
  1637. phone: map['Phone'],
  1638. email: map['Email'],
  1639. nickName: map['NickName'],
  1640. fullName: map['FullName'],
  1641. organizationCode: map['OrganizationCode'],
  1642. organizationName: map['OrganizationName'],
  1643. rootOrganizationCode: map['RootOrganizationCode'],
  1644. rootOrganizationName: map['RootOrganizationName'],
  1645. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  1646. bindDevices: map['BindDevices'] != null ? map['BindDevices'].cast<String>().toList() : null,
  1647. lastIP: map['LastIP'],
  1648. logintimes: map['Logintimes'],
  1649. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  1650. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  1651. rankCodes: map['RankCodes'] != null ? map['RankCodes'].cast<String>().toList() : null,
  1652. positionCodes: map['PositionCodes'] != null ? map['PositionCodes'].cast<String>().toList() : null,
  1653. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  1654. rankName: map['RankName'],
  1655. positionName: map['PositionName'],
  1656. isDirector: map['IsDirector'],
  1657. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  1658. deletePatientCodes: map['DeletePatientCodes'] != null ? map['DeletePatientCodes'].cast<String>().toList() : null,
  1659. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  1660. bindAssistantUserCode: map['BindAssistantUserCode'],
  1661. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  1662. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  1663. signature: map['Signature'],
  1664. language: map['Language'],
  1665. enableReportLabel: map['EnableReportLabel'],
  1666. associatedInfos: map['AssociatedInfos'] != null ? (map['AssociatedInfos'] as List).map((e)=>AssociatedInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1667. userCode: map['UserCode'],
  1668. userName: map['UserName'],
  1669. headImageUrl: map['HeadImageUrl'],
  1670. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  1671. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  1672. );
  1673. }
  1674. Map<String, dynamic> toJson() {
  1675. final map = super.toJson();
  1676. return map;
  1677. }
  1678. }
  1679. class UpdateThesaurusCodeRequest extends TokenRequest{
  1680. String? thesaurusCode;
  1681. UpdateThesaurusCodeRequest({
  1682. this.thesaurusCode,
  1683. String? token,
  1684. }) : super(
  1685. token: token,
  1686. );
  1687. factory UpdateThesaurusCodeRequest.fromJson(Map<String, dynamic> map) {
  1688. return UpdateThesaurusCodeRequest(
  1689. thesaurusCode: map['ThesaurusCode'],
  1690. token: map['Token'],
  1691. );
  1692. }
  1693. Map<String, dynamic> toJson() {
  1694. final map = super.toJson();
  1695. if(thesaurusCode != null)
  1696. map['ThesaurusCode'] = thesaurusCode;
  1697. return map;
  1698. }
  1699. }
  1700. enum AnnouncementStatusEnum {
  1701. placeHolder_0,
  1702. Released,
  1703. Pending,
  1704. }
  1705. class AnnouncementInfoDTO extends BaseDTO{
  1706. String? code;
  1707. AnnouncementTypeEnum announcementType;
  1708. AnnouncementStatusEnum announcementStatus;
  1709. List<AnnouncementLanguageConfigDTO >? languageConfigs;
  1710. AnnouncementInfoDTO({
  1711. this.code,
  1712. this.announcementType = AnnouncementTypeEnum.Broadcast,
  1713. this.announcementStatus = AnnouncementStatusEnum.Released,
  1714. this.languageConfigs,
  1715. DateTime? createTime,
  1716. DateTime? updateTime,
  1717. }) : super(
  1718. createTime: createTime,
  1719. updateTime: updateTime,
  1720. );
  1721. factory AnnouncementInfoDTO.fromJson(Map<String, dynamic> map) {
  1722. return AnnouncementInfoDTO(
  1723. code: map['Code'],
  1724. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  1725. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  1726. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>AnnouncementLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1727. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  1728. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  1729. );
  1730. }
  1731. Map<String, dynamic> toJson() {
  1732. final map = super.toJson();
  1733. if(code != null)
  1734. map['Code'] = code;
  1735. map['AnnouncementType'] = announcementType.index;
  1736. map['AnnouncementStatus'] = announcementStatus.index;
  1737. if(languageConfigs != null)
  1738. map['LanguageConfigs'] = languageConfigs;
  1739. return map;
  1740. }
  1741. }
  1742. class AddAnnouncementRequest extends AnnouncementInfoDTO{
  1743. AddAnnouncementRequest({
  1744. String? code,
  1745. AnnouncementTypeEnum announcementType = AnnouncementTypeEnum.Broadcast,
  1746. AnnouncementStatusEnum announcementStatus = AnnouncementStatusEnum.Released,
  1747. List<AnnouncementLanguageConfigDTO >? languageConfigs,
  1748. DateTime? createTime,
  1749. DateTime? updateTime,
  1750. }) : super(
  1751. code: code,
  1752. announcementType: announcementType,
  1753. announcementStatus: announcementStatus,
  1754. languageConfigs: languageConfigs,
  1755. createTime: createTime,
  1756. updateTime: updateTime,
  1757. );
  1758. factory AddAnnouncementRequest.fromJson(Map<String, dynamic> map) {
  1759. return AddAnnouncementRequest(
  1760. code: map['Code'],
  1761. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  1762. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  1763. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>AnnouncementLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1764. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  1765. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  1766. );
  1767. }
  1768. Map<String, dynamic> toJson() {
  1769. final map = super.toJson();
  1770. return map;
  1771. }
  1772. }
  1773. class UpdateAnnouncementRequest extends AnnouncementInfoDTO{
  1774. UpdateAnnouncementRequest({
  1775. String? code,
  1776. AnnouncementTypeEnum announcementType = AnnouncementTypeEnum.Broadcast,
  1777. AnnouncementStatusEnum announcementStatus = AnnouncementStatusEnum.Released,
  1778. List<AnnouncementLanguageConfigDTO >? languageConfigs,
  1779. DateTime? createTime,
  1780. DateTime? updateTime,
  1781. }) : super(
  1782. code: code,
  1783. announcementType: announcementType,
  1784. announcementStatus: announcementStatus,
  1785. languageConfigs: languageConfigs,
  1786. createTime: createTime,
  1787. updateTime: updateTime,
  1788. );
  1789. factory UpdateAnnouncementRequest.fromJson(Map<String, dynamic> map) {
  1790. return UpdateAnnouncementRequest(
  1791. code: map['Code'],
  1792. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  1793. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  1794. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>AnnouncementLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1795. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  1796. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  1797. );
  1798. }
  1799. Map<String, dynamic> toJson() {
  1800. final map = super.toJson();
  1801. return map;
  1802. }
  1803. }
  1804. class AddContentConfigRequest extends TokenRequest{
  1805. String? bindTypeKey;
  1806. String? bindTypeValue;
  1807. String? bindContentKey;
  1808. String? bindContentValue;
  1809. AddContentConfigRequest({
  1810. this.bindTypeKey,
  1811. this.bindTypeValue,
  1812. this.bindContentKey,
  1813. this.bindContentValue,
  1814. String? token,
  1815. }) : super(
  1816. token: token,
  1817. );
  1818. factory AddContentConfigRequest.fromJson(Map<String, dynamic> map) {
  1819. return AddContentConfigRequest(
  1820. bindTypeKey: map['BindTypeKey'],
  1821. bindTypeValue: map['BindTypeValue'],
  1822. bindContentKey: map['BindContentKey'],
  1823. bindContentValue: map['BindContentValue'],
  1824. token: map['Token'],
  1825. );
  1826. }
  1827. Map<String, dynamic> toJson() {
  1828. final map = super.toJson();
  1829. if(bindTypeKey != null)
  1830. map['BindTypeKey'] = bindTypeKey;
  1831. if(bindTypeValue != null)
  1832. map['BindTypeValue'] = bindTypeValue;
  1833. if(bindContentKey != null)
  1834. map['BindContentKey'] = bindContentKey;
  1835. if(bindContentValue != null)
  1836. map['BindContentValue'] = bindContentValue;
  1837. return map;
  1838. }
  1839. }
  1840. enum DeviceVideoOutputTypeEnum {
  1841. MergedVideo,
  1842. Desktop,
  1843. Camera,
  1844. }
  1845. class AddDeviceOutputConfigRequest extends TokenRequest{
  1846. DeviceVideoOutputTypeEnum deviceVideoOutputType;
  1847. int videoWidth;
  1848. int videoHeight;
  1849. AddDeviceOutputConfigRequest({
  1850. this.deviceVideoOutputType = DeviceVideoOutputTypeEnum.MergedVideo,
  1851. this.videoWidth = 0,
  1852. this.videoHeight = 0,
  1853. String? token,
  1854. }) : super(
  1855. token: token,
  1856. );
  1857. factory AddDeviceOutputConfigRequest.fromJson(Map<String, dynamic> map) {
  1858. return AddDeviceOutputConfigRequest(
  1859. deviceVideoOutputType: DeviceVideoOutputTypeEnum.values.firstWhere((e) => e.index == map['DeviceVideoOutputType']),
  1860. videoWidth: map['VideoWidth'],
  1861. videoHeight: map['VideoHeight'],
  1862. token: map['Token'],
  1863. );
  1864. }
  1865. Map<String, dynamic> toJson() {
  1866. final map = super.toJson();
  1867. map['DeviceVideoOutputType'] = deviceVideoOutputType.index;
  1868. map['VideoWidth'] = videoWidth;
  1869. map['VideoHeight'] = videoHeight;
  1870. return map;
  1871. }
  1872. }
  1873. class AdminApplyCourseRequest extends TokenRequest{
  1874. String? name;
  1875. String? courseIntro;
  1876. String? teacherCode;
  1877. String? poster;
  1878. DateTime? startTime;
  1879. int duration;
  1880. CourseTypeEnum courseType;
  1881. CourseAudienceTypeEnum audienceType;
  1882. String? coursewareToken;
  1883. String? teacherName;
  1884. CourseViewRangeEnum viewRange;
  1885. List<String >? caseLabelCodes;
  1886. List<String >? courseLabelCodes;
  1887. List<String >? userGroupCodes;
  1888. Decimal? price;
  1889. List<String >? courseVideoCodes;
  1890. List<CourseExaminationDTO >? bindExams;
  1891. List<String >? assistants;
  1892. List<String >? experts;
  1893. bool isAgentCourse;
  1894. AdminApplyCourseRequest({
  1895. this.name,
  1896. this.courseIntro,
  1897. this.teacherCode,
  1898. this.poster,
  1899. this.startTime,
  1900. this.duration = 0,
  1901. this.courseType = CourseTypeEnum.Unknown,
  1902. this.audienceType = CourseAudienceTypeEnum.Unknown,
  1903. this.coursewareToken,
  1904. this.teacherName,
  1905. this.viewRange = CourseViewRangeEnum.All,
  1906. this.caseLabelCodes,
  1907. this.courseLabelCodes,
  1908. this.userGroupCodes,
  1909. this.price,
  1910. this.courseVideoCodes,
  1911. this.bindExams,
  1912. this.assistants,
  1913. this.experts,
  1914. this.isAgentCourse = false,
  1915. String? token,
  1916. }) : super(
  1917. token: token,
  1918. );
  1919. factory AdminApplyCourseRequest.fromJson(Map<String, dynamic> map) {
  1920. return AdminApplyCourseRequest(
  1921. name: map['Name'],
  1922. courseIntro: map['CourseIntro'],
  1923. teacherCode: map['TeacherCode'],
  1924. poster: map['Poster'],
  1925. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  1926. duration: map['Duration'],
  1927. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  1928. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  1929. coursewareToken: map['CoursewareToken'],
  1930. teacherName: map['TeacherName'],
  1931. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  1932. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  1933. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  1934. userGroupCodes: map['UserGroupCodes'] != null ? map['UserGroupCodes'].cast<String>().toList() : null,
  1935. price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
  1936. courseVideoCodes: map['CourseVideoCodes'] != null ? map['CourseVideoCodes'].cast<String>().toList() : null,
  1937. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  1938. assistants: map['Assistants'] != null ? map['Assistants'].cast<String>().toList() : null,
  1939. experts: map['Experts'] != null ? map['Experts'].cast<String>().toList() : null,
  1940. isAgentCourse: map['IsAgentCourse'],
  1941. token: map['Token'],
  1942. );
  1943. }
  1944. Map<String, dynamic> toJson() {
  1945. final map = super.toJson();
  1946. if(name != null)
  1947. map['Name'] = name;
  1948. if(courseIntro != null)
  1949. map['CourseIntro'] = courseIntro;
  1950. if(teacherCode != null)
  1951. map['TeacherCode'] = teacherCode;
  1952. if(poster != null)
  1953. map['Poster'] = poster;
  1954. if(startTime != null)
  1955. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  1956. map['Duration'] = duration;
  1957. map['CourseType'] = courseType.index;
  1958. map['AudienceType'] = audienceType.index;
  1959. if(coursewareToken != null)
  1960. map['CoursewareToken'] = coursewareToken;
  1961. if(teacherName != null)
  1962. map['TeacherName'] = teacherName;
  1963. map['ViewRange'] = viewRange.index;
  1964. if(caseLabelCodes != null)
  1965. map['CaseLabelCodes'] = caseLabelCodes;
  1966. if(courseLabelCodes != null)
  1967. map['CourseLabelCodes'] = courseLabelCodes;
  1968. if(userGroupCodes != null)
  1969. map['UserGroupCodes'] = userGroupCodes;
  1970. if(price != null)
  1971. map['Price'] = price;
  1972. if(courseVideoCodes != null)
  1973. map['CourseVideoCodes'] = courseVideoCodes;
  1974. if(bindExams != null)
  1975. map['BindExams'] = bindExams;
  1976. if(assistants != null)
  1977. map['Assistants'] = assistants;
  1978. if(experts != null)
  1979. map['Experts'] = experts;
  1980. map['IsAgentCourse'] = isAgentCourse;
  1981. return map;
  1982. }
  1983. }
  1984. class AdminApprovalCourseRequest extends TokenRequest{
  1985. String? code;
  1986. CourseStatusEnum status;
  1987. AdminApprovalCourseRequest({
  1988. this.code,
  1989. this.status = CourseStatusEnum.Unknown,
  1990. String? token,
  1991. }) : super(
  1992. token: token,
  1993. );
  1994. factory AdminApprovalCourseRequest.fromJson(Map<String, dynamic> map) {
  1995. return AdminApprovalCourseRequest(
  1996. code: map['Code'],
  1997. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  1998. token: map['Token'],
  1999. );
  2000. }
  2001. Map<String, dynamic> toJson() {
  2002. final map = super.toJson();
  2003. if(code != null)
  2004. map['Code'] = code;
  2005. map['Status'] = status.index;
  2006. return map;
  2007. }
  2008. }
  2009. class AdminDeleteCourseByCodeRequest extends TokenRequest{
  2010. String? code;
  2011. AdminDeleteCourseByCodeRequest({
  2012. this.code,
  2013. String? token,
  2014. }) : super(
  2015. token: token,
  2016. );
  2017. factory AdminDeleteCourseByCodeRequest.fromJson(Map<String, dynamic> map) {
  2018. return AdminDeleteCourseByCodeRequest(
  2019. code: map['Code'],
  2020. token: map['Token'],
  2021. );
  2022. }
  2023. Map<String, dynamic> toJson() {
  2024. final map = super.toJson();
  2025. if(code != null)
  2026. map['Code'] = code;
  2027. return map;
  2028. }
  2029. }
  2030. class AdminFindCoursePagesRequest extends PageRequest{
  2031. String? keyword;
  2032. CourseStatusEnum status;
  2033. String? languageCode;
  2034. CourseTypeEnum courseType;
  2035. CourseAudienceTypeEnum audienceType;
  2036. AdminFindCoursePagesRequest({
  2037. this.keyword,
  2038. this.status = CourseStatusEnum.Unknown,
  2039. this.languageCode,
  2040. this.courseType = CourseTypeEnum.Unknown,
  2041. this.audienceType = CourseAudienceTypeEnum.Unknown,
  2042. int pageIndex = 0,
  2043. int pageSize = 0,
  2044. String? token,
  2045. }) : super(
  2046. pageIndex: pageIndex,
  2047. pageSize: pageSize,
  2048. token: token,
  2049. );
  2050. factory AdminFindCoursePagesRequest.fromJson(Map<String, dynamic> map) {
  2051. return AdminFindCoursePagesRequest(
  2052. keyword: map['Keyword'],
  2053. status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  2054. languageCode: map['LanguageCode'],
  2055. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  2056. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  2057. pageIndex: map['PageIndex'],
  2058. pageSize: map['PageSize'],
  2059. token: map['Token'],
  2060. );
  2061. }
  2062. Map<String, dynamic> toJson() {
  2063. final map = super.toJson();
  2064. if(keyword != null)
  2065. map['Keyword'] = keyword;
  2066. map['Status'] = status.index;
  2067. if(languageCode != null)
  2068. map['LanguageCode'] = languageCode;
  2069. map['CourseType'] = courseType.index;
  2070. map['AudienceType'] = audienceType.index;
  2071. return map;
  2072. }
  2073. }
  2074. class AdminUpdateCourseRequest extends TokenRequest{
  2075. String? code;
  2076. String? name;
  2077. String? courseIntro;
  2078. String? teacherCode;
  2079. String? poster;
  2080. DateTime? startTime;
  2081. int duration;
  2082. CourseTypeEnum courseType;
  2083. CourseAudienceTypeEnum audienceType;
  2084. String? coursewareToken;
  2085. String? teacherName;
  2086. CourseViewRangeEnum viewRange;
  2087. List<String >? caseLabelCodes;
  2088. List<String >? courseLabelCodes;
  2089. List<String >? userGroupCodes;
  2090. Decimal? price;
  2091. List<String >? courseVideoCodes;
  2092. List<CourseExaminationDTO >? bindExams;
  2093. List<String >? assistants;
  2094. List<String >? experts;
  2095. bool isAgentCourse;
  2096. AdminUpdateCourseRequest({
  2097. this.code,
  2098. this.name,
  2099. this.courseIntro,
  2100. this.teacherCode,
  2101. this.poster,
  2102. this.startTime,
  2103. this.duration = 0,
  2104. this.courseType = CourseTypeEnum.Unknown,
  2105. this.audienceType = CourseAudienceTypeEnum.Unknown,
  2106. this.coursewareToken,
  2107. this.teacherName,
  2108. this.viewRange = CourseViewRangeEnum.All,
  2109. this.caseLabelCodes,
  2110. this.courseLabelCodes,
  2111. this.userGroupCodes,
  2112. this.price,
  2113. this.courseVideoCodes,
  2114. this.bindExams,
  2115. this.assistants,
  2116. this.experts,
  2117. this.isAgentCourse = false,
  2118. String? token,
  2119. }) : super(
  2120. token: token,
  2121. );
  2122. factory AdminUpdateCourseRequest.fromJson(Map<String, dynamic> map) {
  2123. return AdminUpdateCourseRequest(
  2124. code: map['Code'],
  2125. name: map['Name'],
  2126. courseIntro: map['CourseIntro'],
  2127. teacherCode: map['TeacherCode'],
  2128. poster: map['Poster'],
  2129. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  2130. duration: map['Duration'],
  2131. courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
  2132. audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
  2133. coursewareToken: map['CoursewareToken'],
  2134. teacherName: map['TeacherName'],
  2135. viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
  2136. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  2137. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  2138. userGroupCodes: map['UserGroupCodes'] != null ? map['UserGroupCodes'].cast<String>().toList() : null,
  2139. price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
  2140. courseVideoCodes: map['CourseVideoCodes'] != null ? map['CourseVideoCodes'].cast<String>().toList() : null,
  2141. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2142. assistants: map['Assistants'] != null ? map['Assistants'].cast<String>().toList() : null,
  2143. experts: map['Experts'] != null ? map['Experts'].cast<String>().toList() : null,
  2144. isAgentCourse: map['IsAgentCourse'],
  2145. token: map['Token'],
  2146. );
  2147. }
  2148. Map<String, dynamic> toJson() {
  2149. final map = super.toJson();
  2150. if(code != null)
  2151. map['Code'] = code;
  2152. if(name != null)
  2153. map['Name'] = name;
  2154. if(courseIntro != null)
  2155. map['CourseIntro'] = courseIntro;
  2156. if(teacherCode != null)
  2157. map['TeacherCode'] = teacherCode;
  2158. if(poster != null)
  2159. map['Poster'] = poster;
  2160. if(startTime != null)
  2161. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  2162. map['Duration'] = duration;
  2163. map['CourseType'] = courseType.index;
  2164. map['AudienceType'] = audienceType.index;
  2165. if(coursewareToken != null)
  2166. map['CoursewareToken'] = coursewareToken;
  2167. if(teacherName != null)
  2168. map['TeacherName'] = teacherName;
  2169. map['ViewRange'] = viewRange.index;
  2170. if(caseLabelCodes != null)
  2171. map['CaseLabelCodes'] = caseLabelCodes;
  2172. if(courseLabelCodes != null)
  2173. map['CourseLabelCodes'] = courseLabelCodes;
  2174. if(userGroupCodes != null)
  2175. map['UserGroupCodes'] = userGroupCodes;
  2176. if(price != null)
  2177. map['Price'] = price;
  2178. if(courseVideoCodes != null)
  2179. map['CourseVideoCodes'] = courseVideoCodes;
  2180. if(bindExams != null)
  2181. map['BindExams'] = bindExams;
  2182. if(assistants != null)
  2183. map['Assistants'] = assistants;
  2184. if(experts != null)
  2185. map['Experts'] = experts;
  2186. map['IsAgentCourse'] = isAgentCourse;
  2187. return map;
  2188. }
  2189. }
  2190. class AdminUpdateCourseBindExamsRequest extends TokenRequest{
  2191. String? code;
  2192. List<CourseExaminationDTO >? bindExams;
  2193. AdminUpdateCourseBindExamsRequest({
  2194. this.code,
  2195. this.bindExams,
  2196. String? token,
  2197. }) : super(
  2198. token: token,
  2199. );
  2200. factory AdminUpdateCourseBindExamsRequest.fromJson(Map<String, dynamic> map) {
  2201. return AdminUpdateCourseBindExamsRequest(
  2202. code: map['Code'],
  2203. bindExams: map['BindExams'] != null ? (map['BindExams'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2204. token: map['Token'],
  2205. );
  2206. }
  2207. Map<String, dynamic> toJson() {
  2208. final map = super.toJson();
  2209. if(code != null)
  2210. map['Code'] = code;
  2211. if(bindExams != null)
  2212. map['BindExams'] = bindExams;
  2213. return map;
  2214. }
  2215. }
  2216. class AssignedAdminsToOrganizationsRequest extends TokenRequest{
  2217. List<String >? assignedAdmins;
  2218. List<String >? organizationCodes;
  2219. AssignedAdminsToOrganizationsRequest({
  2220. this.assignedAdmins,
  2221. this.organizationCodes,
  2222. String? token,
  2223. }) : super(
  2224. token: token,
  2225. );
  2226. factory AssignedAdminsToOrganizationsRequest.fromJson(Map<String, dynamic> map) {
  2227. return AssignedAdminsToOrganizationsRequest(
  2228. assignedAdmins: map['AssignedAdmins'] != null ? map['AssignedAdmins'].cast<String>().toList() : null,
  2229. organizationCodes: map['OrganizationCodes'] != null ? map['OrganizationCodes'].cast<String>().toList() : null,
  2230. token: map['Token'],
  2231. );
  2232. }
  2233. Map<String, dynamic> toJson() {
  2234. final map = super.toJson();
  2235. if(assignedAdmins != null)
  2236. map['AssignedAdmins'] = assignedAdmins;
  2237. if(organizationCodes != null)
  2238. map['OrganizationCodes'] = organizationCodes;
  2239. return map;
  2240. }
  2241. }
  2242. class ConfirmIdentityApplyRequest extends TokenRequest{
  2243. String? identityApplyCode;
  2244. ConfirmIdentityApplyRequest({
  2245. this.identityApplyCode,
  2246. String? token,
  2247. }) : super(
  2248. token: token,
  2249. );
  2250. factory ConfirmIdentityApplyRequest.fromJson(Map<String, dynamic> map) {
  2251. return ConfirmIdentityApplyRequest(
  2252. identityApplyCode: map['IdentityApplyCode'],
  2253. token: map['Token'],
  2254. );
  2255. }
  2256. Map<String, dynamic> toJson() {
  2257. final map = super.toJson();
  2258. if(identityApplyCode != null)
  2259. map['IdentityApplyCode'] = identityApplyCode;
  2260. return map;
  2261. }
  2262. }
  2263. class CreateThirdPartyTokenRequest extends TokenRequest{
  2264. String? code;
  2265. CreateThirdPartyTokenRequest({
  2266. this.code,
  2267. String? token,
  2268. }) : super(
  2269. token: token,
  2270. );
  2271. factory CreateThirdPartyTokenRequest.fromJson(Map<String, dynamic> map) {
  2272. return CreateThirdPartyTokenRequest(
  2273. code: map['Code'],
  2274. token: map['Token'],
  2275. );
  2276. }
  2277. Map<String, dynamic> toJson() {
  2278. final map = super.toJson();
  2279. if(code != null)
  2280. map['Code'] = code;
  2281. return map;
  2282. }
  2283. }
  2284. class DeleteAdminFeatureRequest extends TokenRequest{
  2285. String? adminFeatureCode;
  2286. DeleteAdminFeatureRequest({
  2287. this.adminFeatureCode,
  2288. String? token,
  2289. }) : super(
  2290. token: token,
  2291. );
  2292. factory DeleteAdminFeatureRequest.fromJson(Map<String, dynamic> map) {
  2293. return DeleteAdminFeatureRequest(
  2294. adminFeatureCode: map['AdminFeatureCode'],
  2295. token: map['Token'],
  2296. );
  2297. }
  2298. Map<String, dynamic> toJson() {
  2299. final map = super.toJson();
  2300. if(adminFeatureCode != null)
  2301. map['AdminFeatureCode'] = adminFeatureCode;
  2302. return map;
  2303. }
  2304. }
  2305. class DeleteAdminRoleRequest extends TokenRequest{
  2306. String? adminRoleCode;
  2307. DeleteAdminRoleRequest({
  2308. this.adminRoleCode,
  2309. String? token,
  2310. }) : super(
  2311. token: token,
  2312. );
  2313. factory DeleteAdminRoleRequest.fromJson(Map<String, dynamic> map) {
  2314. return DeleteAdminRoleRequest(
  2315. adminRoleCode: map['AdminRoleCode'],
  2316. token: map['Token'],
  2317. );
  2318. }
  2319. Map<String, dynamic> toJson() {
  2320. final map = super.toJson();
  2321. if(adminRoleCode != null)
  2322. map['AdminRoleCode'] = adminRoleCode;
  2323. return map;
  2324. }
  2325. }
  2326. class DeleteLogsRequest extends TokenRequest{
  2327. int daysAgo;
  2328. String? requestServerHost;
  2329. DeleteLogsRequest({
  2330. this.daysAgo = 0,
  2331. this.requestServerHost,
  2332. String? token,
  2333. }) : super(
  2334. token: token,
  2335. );
  2336. factory DeleteLogsRequest.fromJson(Map<String, dynamic> map) {
  2337. return DeleteLogsRequest(
  2338. daysAgo: map['DaysAgo'],
  2339. requestServerHost: map['RequestServerHost'],
  2340. token: map['Token'],
  2341. );
  2342. }
  2343. Map<String, dynamic> toJson() {
  2344. final map = super.toJson();
  2345. map['DaysAgo'] = daysAgo;
  2346. if(requestServerHost != null)
  2347. map['RequestServerHost'] = requestServerHost;
  2348. return map;
  2349. }
  2350. }
  2351. class QueryClearLogsRequest extends DeleteLogsRequest{
  2352. List<int >? dayAgoList;
  2353. QueryClearLogsRequest({
  2354. this.dayAgoList,
  2355. int daysAgo = 0,
  2356. String? requestServerHost,
  2357. String? token,
  2358. }) : super(
  2359. daysAgo: daysAgo,
  2360. requestServerHost: requestServerHost,
  2361. token: token,
  2362. );
  2363. factory QueryClearLogsRequest.fromJson(Map<String, dynamic> map) {
  2364. return QueryClearLogsRequest(
  2365. dayAgoList: map['DayAgoList'] != null ? map['DayAgoList'].cast<int>().toList() : null,
  2366. daysAgo: map['DaysAgo'],
  2367. requestServerHost: map['RequestServerHost'],
  2368. token: map['Token'],
  2369. );
  2370. }
  2371. Map<String, dynamic> toJson() {
  2372. final map = super.toJson();
  2373. if(dayAgoList != null)
  2374. map['DayAgoList'] = dayAgoList;
  2375. return map;
  2376. }
  2377. }
  2378. class DeleteRoleRequest extends TokenRequest{
  2379. String? roleCode;
  2380. DeleteRoleRequest({
  2381. this.roleCode,
  2382. String? token,
  2383. }) : super(
  2384. token: token,
  2385. );
  2386. factory DeleteRoleRequest.fromJson(Map<String, dynamic> map) {
  2387. return DeleteRoleRequest(
  2388. roleCode: map['RoleCode'],
  2389. token: map['Token'],
  2390. );
  2391. }
  2392. Map<String, dynamic> toJson() {
  2393. final map = super.toJson();
  2394. if(roleCode != null)
  2395. map['RoleCode'] = roleCode;
  2396. return map;
  2397. }
  2398. }
  2399. class DeleteThesaurusRequest extends TokenRequest{
  2400. String? thesaurusCode;
  2401. DeleteThesaurusRequest({
  2402. this.thesaurusCode,
  2403. String? token,
  2404. }) : super(
  2405. token: token,
  2406. );
  2407. factory DeleteThesaurusRequest.fromJson(Map<String, dynamic> map) {
  2408. return DeleteThesaurusRequest(
  2409. thesaurusCode: map['ThesaurusCode'],
  2410. token: map['Token'],
  2411. );
  2412. }
  2413. Map<String, dynamic> toJson() {
  2414. final map = super.toJson();
  2415. if(thesaurusCode != null)
  2416. map['ThesaurusCode'] = thesaurusCode;
  2417. return map;
  2418. }
  2419. }
  2420. class DeleteThirdPartyInfoRequest extends TokenRequest{
  2421. String? code;
  2422. DeleteThirdPartyInfoRequest({
  2423. this.code,
  2424. String? token,
  2425. }) : super(
  2426. token: token,
  2427. );
  2428. factory DeleteThirdPartyInfoRequest.fromJson(Map<String, dynamic> map) {
  2429. return DeleteThirdPartyInfoRequest(
  2430. code: map['Code'],
  2431. token: map['Token'],
  2432. );
  2433. }
  2434. Map<String, dynamic> toJson() {
  2435. final map = super.toJson();
  2436. if(code != null)
  2437. map['Code'] = code;
  2438. return map;
  2439. }
  2440. }
  2441. class DeleteUserFeatureRequest extends TokenRequest{
  2442. String? userFeatureCode;
  2443. DeleteUserFeatureRequest({
  2444. this.userFeatureCode,
  2445. String? token,
  2446. }) : super(
  2447. token: token,
  2448. );
  2449. factory DeleteUserFeatureRequest.fromJson(Map<String, dynamic> map) {
  2450. return DeleteUserFeatureRequest(
  2451. userFeatureCode: map['UserFeatureCode'],
  2452. token: map['Token'],
  2453. );
  2454. }
  2455. Map<String, dynamic> toJson() {
  2456. final map = super.toJson();
  2457. if(userFeatureCode != null)
  2458. map['UserFeatureCode'] = userFeatureCode;
  2459. return map;
  2460. }
  2461. }
  2462. enum DistributedServerTypeEnum {
  2463. Official,
  2464. Private,
  2465. }
  2466. class IPAddressInfoDTO {
  2467. String? startIp;
  2468. String? endIp;
  2469. int longStartIP;
  2470. int longEndIP;
  2471. IPAddressInfoDTO({
  2472. this.startIp,
  2473. this.endIp,
  2474. this.longStartIP = 0,
  2475. this.longEndIP = 0,
  2476. });
  2477. factory IPAddressInfoDTO.fromJson(Map<String, dynamic> map) {
  2478. return IPAddressInfoDTO(
  2479. startIp: map['StartIp'],
  2480. endIp: map['EndIp'],
  2481. longStartIP: map['LongStartIP'],
  2482. longEndIP: map['LongEndIP'],
  2483. );
  2484. }
  2485. Map<String, dynamic> toJson() {
  2486. final map = Map<String, dynamic>();
  2487. if(startIp != null)
  2488. map['StartIp'] = startIp;
  2489. if(endIp != null)
  2490. map['EndIp'] = endIp;
  2491. map['LongStartIP'] = longStartIP;
  2492. map['LongEndIP'] = longEndIP;
  2493. return map;
  2494. }
  2495. }
  2496. class DistributedServerInfoRequest extends TokenRequest{
  2497. String? code;
  2498. List<String >? codes;
  2499. bool isMaster;
  2500. String? name;
  2501. String? description;
  2502. bool enable;
  2503. DistributedServerTypeEnum serverType;
  2504. String? serverUrl;
  2505. String? lat;
  2506. String? lng;
  2507. List<IPAddressInfoDTO >? assignClientIPList;
  2508. DistributedServerInfoRequest({
  2509. this.code,
  2510. this.codes,
  2511. this.isMaster = false,
  2512. this.name,
  2513. this.description,
  2514. this.enable = false,
  2515. this.serverType = DistributedServerTypeEnum.Official,
  2516. this.serverUrl,
  2517. this.lat,
  2518. this.lng,
  2519. this.assignClientIPList,
  2520. String? token,
  2521. }) : super(
  2522. token: token,
  2523. );
  2524. factory DistributedServerInfoRequest.fromJson(Map<String, dynamic> map) {
  2525. return DistributedServerInfoRequest(
  2526. code: map['Code'],
  2527. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  2528. isMaster: map['IsMaster'],
  2529. name: map['Name'],
  2530. description: map['Description'],
  2531. enable: map['Enable'],
  2532. serverType: DistributedServerTypeEnum.values.firstWhere((e) => e.index == map['ServerType']),
  2533. serverUrl: map['ServerUrl'],
  2534. lat: map['Lat'],
  2535. lng: map['Lng'],
  2536. assignClientIPList: map['AssignClientIPList'] != null ? (map['AssignClientIPList'] as List).map((e)=>IPAddressInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  2537. token: map['Token'],
  2538. );
  2539. }
  2540. Map<String, dynamic> toJson() {
  2541. final map = super.toJson();
  2542. if(code != null)
  2543. map['Code'] = code;
  2544. if(codes != null)
  2545. map['Codes'] = codes;
  2546. map['IsMaster'] = isMaster;
  2547. if(name != null)
  2548. map['Name'] = name;
  2549. if(description != null)
  2550. map['Description'] = description;
  2551. map['Enable'] = enable;
  2552. map['ServerType'] = serverType.index;
  2553. if(serverUrl != null)
  2554. map['ServerUrl'] = serverUrl;
  2555. if(lat != null)
  2556. map['Lat'] = lat;
  2557. if(lng != null)
  2558. map['Lng'] = lng;
  2559. if(assignClientIPList != null)
  2560. map['AssignClientIPList'] = assignClientIPList;
  2561. return map;
  2562. }
  2563. }
  2564. class SaveDistributedServerIpRequest extends TokenRequest{
  2565. String? startIp;
  2566. String? endIp;
  2567. String? code;
  2568. SaveDistributedServerIpRequest({
  2569. this.startIp,
  2570. this.endIp,
  2571. this.code,
  2572. String? token,
  2573. }) : super(
  2574. token: token,
  2575. );
  2576. factory SaveDistributedServerIpRequest.fromJson(Map<String, dynamic> map) {
  2577. return SaveDistributedServerIpRequest(
  2578. startIp: map['StartIp'],
  2579. endIp: map['EndIp'],
  2580. code: map['Code'],
  2581. token: map['Token'],
  2582. );
  2583. }
  2584. Map<String, dynamic> toJson() {
  2585. final map = super.toJson();
  2586. if(startIp != null)
  2587. map['StartIp'] = startIp;
  2588. if(endIp != null)
  2589. map['EndIp'] = endIp;
  2590. if(code != null)
  2591. map['Code'] = code;
  2592. return map;
  2593. }
  2594. }
  2595. class GetDistributedServerIpListRequest extends PageRequest{
  2596. String? code;
  2597. String? keyword;
  2598. GetDistributedServerIpListRequest({
  2599. this.code,
  2600. this.keyword,
  2601. int pageIndex = 0,
  2602. int pageSize = 0,
  2603. String? token,
  2604. }) : super(
  2605. pageIndex: pageIndex,
  2606. pageSize: pageSize,
  2607. token: token,
  2608. );
  2609. factory GetDistributedServerIpListRequest.fromJson(Map<String, dynamic> map) {
  2610. return GetDistributedServerIpListRequest(
  2611. code: map['Code'],
  2612. keyword: map['Keyword'],
  2613. pageIndex: map['PageIndex'],
  2614. pageSize: map['PageSize'],
  2615. token: map['Token'],
  2616. );
  2617. }
  2618. Map<String, dynamic> toJson() {
  2619. final map = super.toJson();
  2620. if(code != null)
  2621. map['Code'] = code;
  2622. if(keyword != null)
  2623. map['Keyword'] = keyword;
  2624. return map;
  2625. }
  2626. }
  2627. class FindAdminByCodeRequest extends TokenRequest{
  2628. String? adminCode;
  2629. FindAdminByCodeRequest({
  2630. this.adminCode,
  2631. String? token,
  2632. }) : super(
  2633. token: token,
  2634. );
  2635. factory FindAdminByCodeRequest.fromJson(Map<String, dynamic> map) {
  2636. return FindAdminByCodeRequest(
  2637. adminCode: map['AdminCode'],
  2638. token: map['Token'],
  2639. );
  2640. }
  2641. Map<String, dynamic> toJson() {
  2642. final map = super.toJson();
  2643. if(adminCode != null)
  2644. map['AdminCode'] = adminCode;
  2645. return map;
  2646. }
  2647. }
  2648. class FindAdminRoleByCodeRequest extends TokenRequest{
  2649. String? adminRoleCode;
  2650. FindAdminRoleByCodeRequest({
  2651. this.adminRoleCode,
  2652. String? token,
  2653. }) : super(
  2654. token: token,
  2655. );
  2656. factory FindAdminRoleByCodeRequest.fromJson(Map<String, dynamic> map) {
  2657. return FindAdminRoleByCodeRequest(
  2658. adminRoleCode: map['AdminRoleCode'],
  2659. token: map['Token'],
  2660. );
  2661. }
  2662. Map<String, dynamic> toJson() {
  2663. final map = super.toJson();
  2664. if(adminRoleCode != null)
  2665. map['AdminRoleCode'] = adminRoleCode;
  2666. return map;
  2667. }
  2668. }
  2669. class FindAdminStatisticRecordsRequest extends TokenRequest{
  2670. String? languageCode;
  2671. FindAdminStatisticRecordsRequest({
  2672. this.languageCode,
  2673. String? token,
  2674. }) : super(
  2675. token: token,
  2676. );
  2677. factory FindAdminStatisticRecordsRequest.fromJson(Map<String, dynamic> map) {
  2678. return FindAdminStatisticRecordsRequest(
  2679. languageCode: map['LanguageCode'],
  2680. token: map['Token'],
  2681. );
  2682. }
  2683. Map<String, dynamic> toJson() {
  2684. final map = super.toJson();
  2685. if(languageCode != null)
  2686. map['LanguageCode'] = languageCode;
  2687. return map;
  2688. }
  2689. }
  2690. class FindCMSStatisticRequest extends TokenRequest{
  2691. String? clientId;
  2692. FindCMSStatisticRequest({
  2693. this.clientId,
  2694. String? token,
  2695. }) : super(
  2696. token: token,
  2697. );
  2698. factory FindCMSStatisticRequest.fromJson(Map<String, dynamic> map) {
  2699. return FindCMSStatisticRequest(
  2700. clientId: map['ClientId'],
  2701. token: map['Token'],
  2702. );
  2703. }
  2704. Map<String, dynamic> toJson() {
  2705. final map = super.toJson();
  2706. if(clientId != null)
  2707. map['ClientId'] = clientId;
  2708. return map;
  2709. }
  2710. }
  2711. class FindCMSTemplateByUserRequest extends TokenRequest{
  2712. String? clientId;
  2713. FindCMSTemplateByUserRequest({
  2714. this.clientId,
  2715. String? token,
  2716. }) : super(
  2717. token: token,
  2718. );
  2719. factory FindCMSTemplateByUserRequest.fromJson(Map<String, dynamic> map) {
  2720. return FindCMSTemplateByUserRequest(
  2721. clientId: map['ClientId'],
  2722. token: map['Token'],
  2723. );
  2724. }
  2725. Map<String, dynamic> toJson() {
  2726. final map = super.toJson();
  2727. if(clientId != null)
  2728. map['ClientId'] = clientId;
  2729. return map;
  2730. }
  2731. }
  2732. class FindCMSTemplateDetailRequest extends TokenRequest{
  2733. String? cMSTemplateCode;
  2734. FindCMSTemplateDetailRequest({
  2735. this.cMSTemplateCode,
  2736. String? token,
  2737. }) : super(
  2738. token: token,
  2739. );
  2740. factory FindCMSTemplateDetailRequest.fromJson(Map<String, dynamic> map) {
  2741. return FindCMSTemplateDetailRequest(
  2742. cMSTemplateCode: map['CMSTemplateCode'],
  2743. token: map['Token'],
  2744. );
  2745. }
  2746. Map<String, dynamic> toJson() {
  2747. final map = super.toJson();
  2748. if(cMSTemplateCode != null)
  2749. map['CMSTemplateCode'] = cMSTemplateCode;
  2750. return map;
  2751. }
  2752. }
  2753. class FindCMSTemplatePageRequest extends PageRequest{
  2754. String? searchKey;
  2755. FindCMSTemplatePageRequest({
  2756. this.searchKey,
  2757. int pageIndex = 0,
  2758. int pageSize = 0,
  2759. String? token,
  2760. }) : super(
  2761. pageIndex: pageIndex,
  2762. pageSize: pageSize,
  2763. token: token,
  2764. );
  2765. factory FindCMSTemplatePageRequest.fromJson(Map<String, dynamic> map) {
  2766. return FindCMSTemplatePageRequest(
  2767. searchKey: map['SearchKey'],
  2768. pageIndex: map['PageIndex'],
  2769. pageSize: map['PageSize'],
  2770. token: map['Token'],
  2771. );
  2772. }
  2773. Map<String, dynamic> toJson() {
  2774. final map = super.toJson();
  2775. if(searchKey != null)
  2776. map['SearchKey'] = searchKey;
  2777. return map;
  2778. }
  2779. }
  2780. class FindContentConfigRequest extends TokenRequest{
  2781. int type;
  2782. String? parentCode;
  2783. FindContentConfigRequest({
  2784. this.type = 0,
  2785. this.parentCode,
  2786. String? token,
  2787. }) : super(
  2788. token: token,
  2789. );
  2790. factory FindContentConfigRequest.fromJson(Map<String, dynamic> map) {
  2791. return FindContentConfigRequest(
  2792. type: map['Type'],
  2793. parentCode: map['ParentCode'],
  2794. token: map['Token'],
  2795. );
  2796. }
  2797. Map<String, dynamic> toJson() {
  2798. final map = super.toJson();
  2799. map['Type'] = type;
  2800. if(parentCode != null)
  2801. map['ParentCode'] = parentCode;
  2802. return map;
  2803. }
  2804. }
  2805. class FindDeviceDiagnosisModulesRequest2 extends TokenRequest{
  2806. String? deviceCode;
  2807. FindDeviceDiagnosisModulesRequest2({
  2808. this.deviceCode,
  2809. String? token,
  2810. }) : super(
  2811. token: token,
  2812. );
  2813. factory FindDeviceDiagnosisModulesRequest2.fromJson(Map<String, dynamic> map) {
  2814. return FindDeviceDiagnosisModulesRequest2(
  2815. deviceCode: map['DeviceCode'],
  2816. token: map['Token'],
  2817. );
  2818. }
  2819. Map<String, dynamic> toJson() {
  2820. final map = super.toJson();
  2821. if(deviceCode != null)
  2822. map['DeviceCode'] = deviceCode;
  2823. return map;
  2824. }
  2825. }
  2826. class FindDiagnosisModuleByPageRequest extends PageRequest{
  2827. FindDiagnosisModuleByPageRequest({
  2828. int pageIndex = 0,
  2829. int pageSize = 0,
  2830. String? token,
  2831. }) : super(
  2832. pageIndex: pageIndex,
  2833. pageSize: pageSize,
  2834. token: token,
  2835. );
  2836. factory FindDiagnosisModuleByPageRequest.fromJson(Map<String, dynamic> map) {
  2837. return FindDiagnosisModuleByPageRequest(
  2838. pageIndex: map['PageIndex'],
  2839. pageSize: map['PageSize'],
  2840. token: map['Token'],
  2841. );
  2842. }
  2843. Map<String, dynamic> toJson() {
  2844. final map = super.toJson();
  2845. return map;
  2846. }
  2847. }
  2848. class FindGradingProtectionConfigByPageRequest extends PageRequest{
  2849. String? keyword;
  2850. FindGradingProtectionConfigByPageRequest({
  2851. this.keyword,
  2852. int pageIndex = 0,
  2853. int pageSize = 0,
  2854. String? token,
  2855. }) : super(
  2856. pageIndex: pageIndex,
  2857. pageSize: pageSize,
  2858. token: token,
  2859. );
  2860. factory FindGradingProtectionConfigByPageRequest.fromJson(Map<String, dynamic> map) {
  2861. return FindGradingProtectionConfigByPageRequest(
  2862. keyword: map['Keyword'],
  2863. pageIndex: map['PageIndex'],
  2864. pageSize: map['PageSize'],
  2865. token: map['Token'],
  2866. );
  2867. }
  2868. Map<String, dynamic> toJson() {
  2869. final map = super.toJson();
  2870. if(keyword != null)
  2871. map['Keyword'] = keyword;
  2872. return map;
  2873. }
  2874. }
  2875. class FindOrganizationDiagnosisModulesRequest extends TokenRequest{
  2876. String? organizationCode;
  2877. FindOrganizationDiagnosisModulesRequest({
  2878. this.organizationCode,
  2879. String? token,
  2880. }) : super(
  2881. token: token,
  2882. );
  2883. factory FindOrganizationDiagnosisModulesRequest.fromJson(Map<String, dynamic> map) {
  2884. return FindOrganizationDiagnosisModulesRequest(
  2885. organizationCode: map['OrganizationCode'],
  2886. token: map['Token'],
  2887. );
  2888. }
  2889. Map<String, dynamic> toJson() {
  2890. final map = super.toJson();
  2891. if(organizationCode != null)
  2892. map['OrganizationCode'] = organizationCode;
  2893. return map;
  2894. }
  2895. }
  2896. class FindReferralRecordSettingRequest extends TokenRequest{
  2897. FindReferralRecordSettingRequest({
  2898. String? token,
  2899. }) : super(
  2900. token: token,
  2901. );
  2902. factory FindReferralRecordSettingRequest.fromJson(Map<String, dynamic> map) {
  2903. return FindReferralRecordSettingRequest(
  2904. token: map['Token'],
  2905. );
  2906. }
  2907. Map<String, dynamic> toJson() {
  2908. final map = super.toJson();
  2909. return map;
  2910. }
  2911. }
  2912. class FindRelatedDeviceCodesRequest extends TokenRequest{
  2913. String? reportPosterCode;
  2914. FindRelatedDeviceCodesRequest({
  2915. this.reportPosterCode,
  2916. String? token,
  2917. }) : super(
  2918. token: token,
  2919. );
  2920. factory FindRelatedDeviceCodesRequest.fromJson(Map<String, dynamic> map) {
  2921. return FindRelatedDeviceCodesRequest(
  2922. reportPosterCode: map['ReportPosterCode'],
  2923. token: map['Token'],
  2924. );
  2925. }
  2926. Map<String, dynamic> toJson() {
  2927. final map = super.toJson();
  2928. if(reportPosterCode != null)
  2929. map['ReportPosterCode'] = reportPosterCode;
  2930. return map;
  2931. }
  2932. }
  2933. class FindReportLabelByCodeRequest extends TokenRequest{
  2934. String? reportLabelCode;
  2935. FindReportLabelByCodeRequest({
  2936. this.reportLabelCode,
  2937. String? token,
  2938. }) : super(
  2939. token: token,
  2940. );
  2941. factory FindReportLabelByCodeRequest.fromJson(Map<String, dynamic> map) {
  2942. return FindReportLabelByCodeRequest(
  2943. reportLabelCode: map['ReportLabelCode'],
  2944. token: map['Token'],
  2945. );
  2946. }
  2947. Map<String, dynamic> toJson() {
  2948. final map = super.toJson();
  2949. if(reportLabelCode != null)
  2950. map['ReportLabelCode'] = reportLabelCode;
  2951. return map;
  2952. }
  2953. }
  2954. class FindReportLabelByPageRequest extends PageRequest{
  2955. String? keyword;
  2956. FindReportLabelByPageRequest({
  2957. this.keyword,
  2958. int pageIndex = 0,
  2959. int pageSize = 0,
  2960. String? token,
  2961. }) : super(
  2962. pageIndex: pageIndex,
  2963. pageSize: pageSize,
  2964. token: token,
  2965. );
  2966. factory FindReportLabelByPageRequest.fromJson(Map<String, dynamic> map) {
  2967. return FindReportLabelByPageRequest(
  2968. keyword: map['Keyword'],
  2969. pageIndex: map['PageIndex'],
  2970. pageSize: map['PageSize'],
  2971. token: map['Token'],
  2972. );
  2973. }
  2974. Map<String, dynamic> toJson() {
  2975. final map = super.toJson();
  2976. if(keyword != null)
  2977. map['Keyword'] = keyword;
  2978. return map;
  2979. }
  2980. }
  2981. class FindReportPosterByCodeRequest extends TokenRequest{
  2982. String? reportPosterCode;
  2983. FindReportPosterByCodeRequest({
  2984. this.reportPosterCode,
  2985. String? token,
  2986. }) : super(
  2987. token: token,
  2988. );
  2989. factory FindReportPosterByCodeRequest.fromJson(Map<String, dynamic> map) {
  2990. return FindReportPosterByCodeRequest(
  2991. reportPosterCode: map['ReportPosterCode'],
  2992. token: map['Token'],
  2993. );
  2994. }
  2995. Map<String, dynamic> toJson() {
  2996. final map = super.toJson();
  2997. if(reportPosterCode != null)
  2998. map['ReportPosterCode'] = reportPosterCode;
  2999. return map;
  3000. }
  3001. }
  3002. class FindReportPosterByPageRequest extends PageRequest{
  3003. String? keyword;
  3004. FindReportPosterByPageRequest({
  3005. this.keyword,
  3006. int pageIndex = 0,
  3007. int pageSize = 0,
  3008. String? token,
  3009. }) : super(
  3010. pageIndex: pageIndex,
  3011. pageSize: pageSize,
  3012. token: token,
  3013. );
  3014. factory FindReportPosterByPageRequest.fromJson(Map<String, dynamic> map) {
  3015. return FindReportPosterByPageRequest(
  3016. keyword: map['Keyword'],
  3017. pageIndex: map['PageIndex'],
  3018. pageSize: map['PageSize'],
  3019. token: map['Token'],
  3020. );
  3021. }
  3022. Map<String, dynamic> toJson() {
  3023. final map = super.toJson();
  3024. if(keyword != null)
  3025. map['Keyword'] = keyword;
  3026. return map;
  3027. }
  3028. }
  3029. class FindReportPreviewUrlRequest extends TokenRequest{
  3030. String? reportCode;
  3031. String? languageCode;
  3032. FindReportPreviewUrlRequest({
  3033. this.reportCode,
  3034. this.languageCode,
  3035. String? token,
  3036. }) : super(
  3037. token: token,
  3038. );
  3039. factory FindReportPreviewUrlRequest.fromJson(Map<String, dynamic> map) {
  3040. return FindReportPreviewUrlRequest(
  3041. reportCode: map['ReportCode'],
  3042. languageCode: map['LanguageCode'],
  3043. token: map['Token'],
  3044. );
  3045. }
  3046. Map<String, dynamic> toJson() {
  3047. final map = super.toJson();
  3048. if(reportCode != null)
  3049. map['ReportCode'] = reportCode;
  3050. if(languageCode != null)
  3051. map['LanguageCode'] = languageCode;
  3052. return map;
  3053. }
  3054. }
  3055. enum PushDataStateEnum {
  3056. UnDo,
  3057. Successful,
  3058. Failed,
  3059. All,
  3060. }
  3061. class FindReportPushRecordsByPageRequest extends PageRequest{
  3062. String? keyword;
  3063. PushDataStateEnum queryState;
  3064. FindReportPushRecordsByPageRequest({
  3065. this.keyword,
  3066. this.queryState = PushDataStateEnum.UnDo,
  3067. int pageIndex = 0,
  3068. int pageSize = 0,
  3069. String? token,
  3070. }) : super(
  3071. pageIndex: pageIndex,
  3072. pageSize: pageSize,
  3073. token: token,
  3074. );
  3075. factory FindReportPushRecordsByPageRequest.fromJson(Map<String, dynamic> map) {
  3076. return FindReportPushRecordsByPageRequest(
  3077. keyword: map['Keyword'],
  3078. queryState: PushDataStateEnum.values.firstWhere((e) => e.index == map['QueryState']),
  3079. pageIndex: map['PageIndex'],
  3080. pageSize: map['PageSize'],
  3081. token: map['Token'],
  3082. );
  3083. }
  3084. Map<String, dynamic> toJson() {
  3085. final map = super.toJson();
  3086. if(keyword != null)
  3087. map['Keyword'] = keyword;
  3088. map['QueryState'] = queryState.index;
  3089. return map;
  3090. }
  3091. }
  3092. class FindReportShareConentRequest extends TokenRequest{
  3093. String? shortCode;
  3094. FindReportShareConentRequest({
  3095. this.shortCode,
  3096. String? token,
  3097. }) : super(
  3098. token: token,
  3099. );
  3100. factory FindReportShareConentRequest.fromJson(Map<String, dynamic> map) {
  3101. return FindReportShareConentRequest(
  3102. shortCode: map['ShortCode'],
  3103. token: map['Token'],
  3104. );
  3105. }
  3106. Map<String, dynamic> toJson() {
  3107. final map = super.toJson();
  3108. if(shortCode != null)
  3109. map['ShortCode'] = shortCode;
  3110. return map;
  3111. }
  3112. }
  3113. class FindReportTemplateUserPagesRequest extends PageRequest{
  3114. String? reportTemplateCode;
  3115. String? keyword;
  3116. FindReportTemplateUserPagesRequest({
  3117. this.reportTemplateCode,
  3118. this.keyword,
  3119. int pageIndex = 0,
  3120. int pageSize = 0,
  3121. String? token,
  3122. }) : super(
  3123. pageIndex: pageIndex,
  3124. pageSize: pageSize,
  3125. token: token,
  3126. );
  3127. factory FindReportTemplateUserPagesRequest.fromJson(Map<String, dynamic> map) {
  3128. return FindReportTemplateUserPagesRequest(
  3129. reportTemplateCode: map['ReportTemplateCode'],
  3130. keyword: map['Keyword'],
  3131. pageIndex: map['PageIndex'],
  3132. pageSize: map['PageSize'],
  3133. token: map['Token'],
  3134. );
  3135. }
  3136. Map<String, dynamic> toJson() {
  3137. final map = super.toJson();
  3138. if(reportTemplateCode != null)
  3139. map['ReportTemplateCode'] = reportTemplateCode;
  3140. if(keyword != null)
  3141. map['Keyword'] = keyword;
  3142. return map;
  3143. }
  3144. }
  3145. class FindRoleByCodeRequest extends TokenRequest{
  3146. String? roleCode;
  3147. FindRoleByCodeRequest({
  3148. this.roleCode,
  3149. String? token,
  3150. }) : super(
  3151. token: token,
  3152. );
  3153. factory FindRoleByCodeRequest.fromJson(Map<String, dynamic> map) {
  3154. return FindRoleByCodeRequest(
  3155. roleCode: map['RoleCode'],
  3156. token: map['Token'],
  3157. );
  3158. }
  3159. Map<String, dynamic> toJson() {
  3160. final map = super.toJson();
  3161. if(roleCode != null)
  3162. map['RoleCode'] = roleCode;
  3163. return map;
  3164. }
  3165. }
  3166. class FindThesaurusByCodeRequest extends TokenRequest{
  3167. String? thesaurusCode;
  3168. FindThesaurusByCodeRequest({
  3169. this.thesaurusCode,
  3170. String? token,
  3171. }) : super(
  3172. token: token,
  3173. );
  3174. factory FindThesaurusByCodeRequest.fromJson(Map<String, dynamic> map) {
  3175. return FindThesaurusByCodeRequest(
  3176. thesaurusCode: map['ThesaurusCode'],
  3177. token: map['Token'],
  3178. );
  3179. }
  3180. Map<String, dynamic> toJson() {
  3181. final map = super.toJson();
  3182. if(thesaurusCode != null)
  3183. map['ThesaurusCode'] = thesaurusCode;
  3184. return map;
  3185. }
  3186. }
  3187. class FindThesaurusPagesRequest extends PageRequest{
  3188. String? keyword;
  3189. FindThesaurusPagesRequest({
  3190. this.keyword,
  3191. int pageIndex = 0,
  3192. int pageSize = 0,
  3193. String? token,
  3194. }) : super(
  3195. pageIndex: pageIndex,
  3196. pageSize: pageSize,
  3197. token: token,
  3198. );
  3199. factory FindThesaurusPagesRequest.fromJson(Map<String, dynamic> map) {
  3200. return FindThesaurusPagesRequest(
  3201. keyword: map['Keyword'],
  3202. pageIndex: map['PageIndex'],
  3203. pageSize: map['PageSize'],
  3204. token: map['Token'],
  3205. );
  3206. }
  3207. Map<String, dynamic> toJson() {
  3208. final map = super.toJson();
  3209. if(keyword != null)
  3210. map['Keyword'] = keyword;
  3211. return map;
  3212. }
  3213. }
  3214. class FindThesaurusUserPagesRequest extends PageRequest{
  3215. String? thesaurusCode;
  3216. String? keyword;
  3217. FindThesaurusUserPagesRequest({
  3218. this.thesaurusCode,
  3219. this.keyword,
  3220. int pageIndex = 0,
  3221. int pageSize = 0,
  3222. String? token,
  3223. }) : super(
  3224. pageIndex: pageIndex,
  3225. pageSize: pageSize,
  3226. token: token,
  3227. );
  3228. factory FindThesaurusUserPagesRequest.fromJson(Map<String, dynamic> map) {
  3229. return FindThesaurusUserPagesRequest(
  3230. thesaurusCode: map['ThesaurusCode'],
  3231. keyword: map['Keyword'],
  3232. pageIndex: map['PageIndex'],
  3233. pageSize: map['PageSize'],
  3234. token: map['Token'],
  3235. );
  3236. }
  3237. Map<String, dynamic> toJson() {
  3238. final map = super.toJson();
  3239. if(thesaurusCode != null)
  3240. map['ThesaurusCode'] = thesaurusCode;
  3241. if(keyword != null)
  3242. map['Keyword'] = keyword;
  3243. return map;
  3244. }
  3245. }
  3246. class FindThirdPartyInfoByCodeRequest extends TokenRequest{
  3247. String? code;
  3248. FindThirdPartyInfoByCodeRequest({
  3249. this.code,
  3250. String? token,
  3251. }) : super(
  3252. token: token,
  3253. );
  3254. factory FindThirdPartyInfoByCodeRequest.fromJson(Map<String, dynamic> map) {
  3255. return FindThirdPartyInfoByCodeRequest(
  3256. code: map['Code'],
  3257. token: map['Token'],
  3258. );
  3259. }
  3260. Map<String, dynamic> toJson() {
  3261. final map = super.toJson();
  3262. if(code != null)
  3263. map['Code'] = code;
  3264. return map;
  3265. }
  3266. }
  3267. class FindUserByCodeRequest extends TokenRequest{
  3268. String? userCode;
  3269. FindUserByCodeRequest({
  3270. this.userCode,
  3271. String? token,
  3272. }) : super(
  3273. token: token,
  3274. );
  3275. factory FindUserByCodeRequest.fromJson(Map<String, dynamic> map) {
  3276. return FindUserByCodeRequest(
  3277. userCode: map['UserCode'],
  3278. token: map['Token'],
  3279. );
  3280. }
  3281. Map<String, dynamic> toJson() {
  3282. final map = super.toJson();
  3283. if(userCode != null)
  3284. map['UserCode'] = userCode;
  3285. return map;
  3286. }
  3287. }
  3288. class GetAdminPagesRequest extends PageRequest{
  3289. String? queryType;
  3290. String? keyWord;
  3291. String? roleCode;
  3292. bool isShowSuperRoleCode;
  3293. String? fatherCode;
  3294. GetAdminPagesRequest({
  3295. this.queryType,
  3296. this.keyWord,
  3297. this.roleCode,
  3298. this.isShowSuperRoleCode = false,
  3299. this.fatherCode,
  3300. int pageIndex = 0,
  3301. int pageSize = 0,
  3302. String? token,
  3303. }) : super(
  3304. pageIndex: pageIndex,
  3305. pageSize: pageSize,
  3306. token: token,
  3307. );
  3308. factory GetAdminPagesRequest.fromJson(Map<String, dynamic> map) {
  3309. return GetAdminPagesRequest(
  3310. queryType: map['QueryType'],
  3311. keyWord: map['KeyWord'],
  3312. roleCode: map['RoleCode'],
  3313. isShowSuperRoleCode: map['IsShowSuperRoleCode'],
  3314. fatherCode: map['FatherCode'],
  3315. pageIndex: map['PageIndex'],
  3316. pageSize: map['PageSize'],
  3317. token: map['Token'],
  3318. );
  3319. }
  3320. Map<String, dynamic> toJson() {
  3321. final map = super.toJson();
  3322. if(queryType != null)
  3323. map['QueryType'] = queryType;
  3324. if(keyWord != null)
  3325. map['KeyWord'] = keyWord;
  3326. if(roleCode != null)
  3327. map['RoleCode'] = roleCode;
  3328. map['IsShowSuperRoleCode'] = isShowSuperRoleCode;
  3329. if(fatherCode != null)
  3330. map['FatherCode'] = fatherCode;
  3331. return map;
  3332. }
  3333. }
  3334. class GetAdminRolePagesRequest extends PageRequest{
  3335. String? roleName;
  3336. GetAdminRolePagesRequest({
  3337. this.roleName,
  3338. int pageIndex = 0,
  3339. int pageSize = 0,
  3340. String? token,
  3341. }) : super(
  3342. pageIndex: pageIndex,
  3343. pageSize: pageSize,
  3344. token: token,
  3345. );
  3346. factory GetAdminRolePagesRequest.fromJson(Map<String, dynamic> map) {
  3347. return GetAdminRolePagesRequest(
  3348. roleName: map['RoleName'],
  3349. pageIndex: map['PageIndex'],
  3350. pageSize: map['PageSize'],
  3351. token: map['Token'],
  3352. );
  3353. }
  3354. Map<String, dynamic> toJson() {
  3355. final map = super.toJson();
  3356. if(roleName != null)
  3357. map['RoleName'] = roleName;
  3358. return map;
  3359. }
  3360. }
  3361. class GetDeviceModelSelectRequest extends TokenRequest{
  3362. String? parentCode;
  3363. GetDeviceModelSelectRequest({
  3364. this.parentCode,
  3365. String? token,
  3366. }) : super(
  3367. token: token,
  3368. );
  3369. factory GetDeviceModelSelectRequest.fromJson(Map<String, dynamic> map) {
  3370. return GetDeviceModelSelectRequest(
  3371. parentCode: map['ParentCode'],
  3372. token: map['Token'],
  3373. );
  3374. }
  3375. Map<String, dynamic> toJson() {
  3376. final map = super.toJson();
  3377. if(parentCode != null)
  3378. map['ParentCode'] = parentCode;
  3379. return map;
  3380. }
  3381. }
  3382. class GetDeviceOutputConfigRequest extends TokenRequest{
  3383. DeviceVideoOutputTypeEnum deviceVideoOutputType;
  3384. GetDeviceOutputConfigRequest({
  3385. this.deviceVideoOutputType = DeviceVideoOutputTypeEnum.MergedVideo,
  3386. String? token,
  3387. }) : super(
  3388. token: token,
  3389. );
  3390. factory GetDeviceOutputConfigRequest.fromJson(Map<String, dynamic> map) {
  3391. return GetDeviceOutputConfigRequest(
  3392. deviceVideoOutputType: DeviceVideoOutputTypeEnum.values.firstWhere((e) => e.index == map['DeviceVideoOutputType']),
  3393. token: map['Token'],
  3394. );
  3395. }
  3396. Map<String, dynamic> toJson() {
  3397. final map = super.toJson();
  3398. map['DeviceVideoOutputType'] = deviceVideoOutputType.index;
  3399. return map;
  3400. }
  3401. }
  3402. class GetDevicePagesRequest extends PageRequest{
  3403. String? queryType;
  3404. String? keyword;
  3405. List<String >? hospitals;
  3406. String? adminName;
  3407. String? userName;
  3408. GetDevicePagesRequest({
  3409. this.queryType,
  3410. this.keyword,
  3411. this.hospitals,
  3412. this.adminName,
  3413. this.userName,
  3414. int pageIndex = 0,
  3415. int pageSize = 0,
  3416. String? token,
  3417. }) : super(
  3418. pageIndex: pageIndex,
  3419. pageSize: pageSize,
  3420. token: token,
  3421. );
  3422. factory GetDevicePagesRequest.fromJson(Map<String, dynamic> map) {
  3423. return GetDevicePagesRequest(
  3424. queryType: map['QueryType'],
  3425. keyword: map['Keyword'],
  3426. hospitals: map['Hospitals'] != null ? map['Hospitals'].cast<String>().toList() : null,
  3427. adminName: map['AdminName'],
  3428. userName: map['UserName'],
  3429. pageIndex: map['PageIndex'],
  3430. pageSize: map['PageSize'],
  3431. token: map['Token'],
  3432. );
  3433. }
  3434. Map<String, dynamic> toJson() {
  3435. final map = super.toJson();
  3436. if(queryType != null)
  3437. map['QueryType'] = queryType;
  3438. if(keyword != null)
  3439. map['Keyword'] = keyword;
  3440. if(hospitals != null)
  3441. map['Hospitals'] = hospitals;
  3442. if(adminName != null)
  3443. map['AdminName'] = adminName;
  3444. if(userName != null)
  3445. map['UserName'] = userName;
  3446. return map;
  3447. }
  3448. }
  3449. class GetDeviceTypePagesRequest extends PageRequest{
  3450. String? deviceType;
  3451. String? deviceModel;
  3452. GetDeviceTypePagesRequest({
  3453. this.deviceType,
  3454. this.deviceModel,
  3455. int pageIndex = 0,
  3456. int pageSize = 0,
  3457. String? token,
  3458. }) : super(
  3459. pageIndex: pageIndex,
  3460. pageSize: pageSize,
  3461. token: token,
  3462. );
  3463. factory GetDeviceTypePagesRequest.fromJson(Map<String, dynamic> map) {
  3464. return GetDeviceTypePagesRequest(
  3465. deviceType: map['DeviceType'],
  3466. deviceModel: map['DeviceModel'],
  3467. pageIndex: map['PageIndex'],
  3468. pageSize: map['PageSize'],
  3469. token: map['Token'],
  3470. );
  3471. }
  3472. Map<String, dynamic> toJson() {
  3473. final map = super.toJson();
  3474. if(deviceType != null)
  3475. map['DeviceType'] = deviceType;
  3476. if(deviceModel != null)
  3477. map['DeviceModel'] = deviceModel;
  3478. return map;
  3479. }
  3480. }
  3481. class GetDeviceUserPagesRequest extends PageRequest{
  3482. List<String >? deviceCodes;
  3483. String? queryType;
  3484. String? keyword;
  3485. int type;
  3486. GetDeviceUserPagesRequest({
  3487. this.deviceCodes,
  3488. this.queryType,
  3489. this.keyword,
  3490. this.type = 0,
  3491. int pageIndex = 0,
  3492. int pageSize = 0,
  3493. String? token,
  3494. }) : super(
  3495. pageIndex: pageIndex,
  3496. pageSize: pageSize,
  3497. token: token,
  3498. );
  3499. factory GetDeviceUserPagesRequest.fromJson(Map<String, dynamic> map) {
  3500. return GetDeviceUserPagesRequest(
  3501. deviceCodes: map['DeviceCodes'] != null ? map['DeviceCodes'].cast<String>().toList() : null,
  3502. queryType: map['QueryType'],
  3503. keyword: map['Keyword'],
  3504. type: map['Type'],
  3505. pageIndex: map['PageIndex'],
  3506. pageSize: map['PageSize'],
  3507. token: map['Token'],
  3508. );
  3509. }
  3510. Map<String, dynamic> toJson() {
  3511. final map = super.toJson();
  3512. if(deviceCodes != null)
  3513. map['DeviceCodes'] = deviceCodes;
  3514. if(queryType != null)
  3515. map['QueryType'] = queryType;
  3516. if(keyword != null)
  3517. map['Keyword'] = keyword;
  3518. map['Type'] = type;
  3519. return map;
  3520. }
  3521. }
  3522. class GetDistributedServerRequest extends PageRequest{
  3523. String? keyword;
  3524. GetDistributedServerRequest({
  3525. this.keyword,
  3526. int pageIndex = 0,
  3527. int pageSize = 0,
  3528. String? token,
  3529. }) : super(
  3530. pageIndex: pageIndex,
  3531. pageSize: pageSize,
  3532. token: token,
  3533. );
  3534. factory GetDistributedServerRequest.fromJson(Map<String, dynamic> map) {
  3535. return GetDistributedServerRequest(
  3536. keyword: map['Keyword'],
  3537. pageIndex: map['PageIndex'],
  3538. pageSize: map['PageSize'],
  3539. token: map['Token'],
  3540. );
  3541. }
  3542. Map<String, dynamic> toJson() {
  3543. final map = super.toJson();
  3544. if(keyword != null)
  3545. map['Keyword'] = keyword;
  3546. return map;
  3547. }
  3548. }
  3549. class GetLogPagesRequest extends PageRequest{
  3550. String? level;
  3551. String? keyWord;
  3552. String? exclude;
  3553. DateTime? startTime;
  3554. DateTime? endTime;
  3555. String? requestServerHost;
  3556. GetLogPagesRequest({
  3557. this.level,
  3558. this.keyWord,
  3559. this.exclude,
  3560. this.startTime,
  3561. this.endTime,
  3562. this.requestServerHost,
  3563. int pageIndex = 0,
  3564. int pageSize = 0,
  3565. String? token,
  3566. }) : super(
  3567. pageIndex: pageIndex,
  3568. pageSize: pageSize,
  3569. token: token,
  3570. );
  3571. factory GetLogPagesRequest.fromJson(Map<String, dynamic> map) {
  3572. return GetLogPagesRequest(
  3573. level: map['Level'],
  3574. keyWord: map['KeyWord'],
  3575. exclude: map['Exclude'],
  3576. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  3577. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  3578. requestServerHost: map['RequestServerHost'],
  3579. pageIndex: map['PageIndex'],
  3580. pageSize: map['PageSize'],
  3581. token: map['Token'],
  3582. );
  3583. }
  3584. Map<String, dynamic> toJson() {
  3585. final map = super.toJson();
  3586. if(level != null)
  3587. map['Level'] = level;
  3588. if(keyWord != null)
  3589. map['KeyWord'] = keyWord;
  3590. if(exclude != null)
  3591. map['Exclude'] = exclude;
  3592. if(startTime != null)
  3593. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  3594. if(endTime != null)
  3595. map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
  3596. if(requestServerHost != null)
  3597. map['RequestServerHost'] = requestServerHost;
  3598. return map;
  3599. }
  3600. }
  3601. class GetOrganizationCustomSettingRequest extends TokenRequest{
  3602. String? langugeKey;
  3603. String? settingModule;
  3604. String? organizationCode;
  3605. GetOrganizationCustomSettingRequest({
  3606. this.langugeKey,
  3607. this.settingModule,
  3608. this.organizationCode,
  3609. String? token,
  3610. }) : super(
  3611. token: token,
  3612. );
  3613. factory GetOrganizationCustomSettingRequest.fromJson(Map<String, dynamic> map) {
  3614. return GetOrganizationCustomSettingRequest(
  3615. langugeKey: map['LangugeKey'],
  3616. settingModule: map['SettingModule'],
  3617. organizationCode: map['OrganizationCode'],
  3618. token: map['Token'],
  3619. );
  3620. }
  3621. Map<String, dynamic> toJson() {
  3622. final map = super.toJson();
  3623. if(langugeKey != null)
  3624. map['LangugeKey'] = langugeKey;
  3625. if(settingModule != null)
  3626. map['SettingModule'] = settingModule;
  3627. if(organizationCode != null)
  3628. map['OrganizationCode'] = organizationCode;
  3629. return map;
  3630. }
  3631. }
  3632. class GetOrganizationPagesRequest extends PageRequest{
  3633. String? queryType;
  3634. String? keyword;
  3635. String? state;
  3636. String? isinvented;
  3637. GetOrganizationPagesRequest({
  3638. this.queryType,
  3639. this.keyword,
  3640. this.state,
  3641. this.isinvented,
  3642. int pageIndex = 0,
  3643. int pageSize = 0,
  3644. String? token,
  3645. }) : super(
  3646. pageIndex: pageIndex,
  3647. pageSize: pageSize,
  3648. token: token,
  3649. );
  3650. factory GetOrganizationPagesRequest.fromJson(Map<String, dynamic> map) {
  3651. return GetOrganizationPagesRequest(
  3652. queryType: map['QueryType'],
  3653. keyword: map['Keyword'],
  3654. state: map['State'],
  3655. isinvented: map['Isinvented'],
  3656. pageIndex: map['PageIndex'],
  3657. pageSize: map['PageSize'],
  3658. token: map['Token'],
  3659. );
  3660. }
  3661. Map<String, dynamic> toJson() {
  3662. final map = super.toJson();
  3663. if(queryType != null)
  3664. map['QueryType'] = queryType;
  3665. if(keyword != null)
  3666. map['Keyword'] = keyword;
  3667. if(state != null)
  3668. map['State'] = state;
  3669. if(isinvented != null)
  3670. map['Isinvented'] = isinvented;
  3671. return map;
  3672. }
  3673. }
  3674. class GetOrganizationRequest extends TokenRequest{
  3675. String? organizationCode;
  3676. GetOrganizationRequest({
  3677. this.organizationCode,
  3678. String? token,
  3679. }) : super(
  3680. token: token,
  3681. );
  3682. factory GetOrganizationRequest.fromJson(Map<String, dynamic> map) {
  3683. return GetOrganizationRequest(
  3684. organizationCode: map['OrganizationCode'],
  3685. token: map['Token'],
  3686. );
  3687. }
  3688. Map<String, dynamic> toJson() {
  3689. final map = super.toJson();
  3690. if(organizationCode != null)
  3691. map['OrganizationCode'] = organizationCode;
  3692. return map;
  3693. }
  3694. }
  3695. class GetOrganizationSettingRequest extends TokenRequest{
  3696. OrganizationSettingTypeEnum settingType;
  3697. String? organizationCode;
  3698. GetOrganizationSettingRequest({
  3699. this.settingType = OrganizationSettingTypeEnum.Patient,
  3700. this.organizationCode,
  3701. String? token,
  3702. }) : super(
  3703. token: token,
  3704. );
  3705. factory GetOrganizationSettingRequest.fromJson(Map<String, dynamic> map) {
  3706. return GetOrganizationSettingRequest(
  3707. settingType: OrganizationSettingTypeEnum.values.firstWhere((e) => e.index == map['SettingType']),
  3708. organizationCode: map['OrganizationCode'],
  3709. token: map['Token'],
  3710. );
  3711. }
  3712. Map<String, dynamic> toJson() {
  3713. final map = super.toJson();
  3714. map['SettingType'] = settingType.index;
  3715. if(organizationCode != null)
  3716. map['OrganizationCode'] = organizationCode;
  3717. return map;
  3718. }
  3719. }
  3720. class GetOrganizationUserPagesRequest extends PageRequest{
  3721. String? organizationCode;
  3722. String? queryType;
  3723. String? keyword;
  3724. GetOrganizationUserPagesRequest({
  3725. this.organizationCode,
  3726. this.queryType,
  3727. this.keyword,
  3728. int pageIndex = 0,
  3729. int pageSize = 0,
  3730. String? token,
  3731. }) : super(
  3732. pageIndex: pageIndex,
  3733. pageSize: pageSize,
  3734. token: token,
  3735. );
  3736. factory GetOrganizationUserPagesRequest.fromJson(Map<String, dynamic> map) {
  3737. return GetOrganizationUserPagesRequest(
  3738. organizationCode: map['OrganizationCode'],
  3739. queryType: map['QueryType'],
  3740. keyword: map['Keyword'],
  3741. pageIndex: map['PageIndex'],
  3742. pageSize: map['PageSize'],
  3743. token: map['Token'],
  3744. );
  3745. }
  3746. Map<String, dynamic> toJson() {
  3747. final map = super.toJson();
  3748. if(organizationCode != null)
  3749. map['OrganizationCode'] = organizationCode;
  3750. if(queryType != null)
  3751. map['QueryType'] = queryType;
  3752. if(keyword != null)
  3753. map['Keyword'] = keyword;
  3754. return map;
  3755. }
  3756. }
  3757. class GetRolePagesRequest extends PageRequest{
  3758. String? roleName;
  3759. GetRolePagesRequest({
  3760. this.roleName,
  3761. int pageIndex = 0,
  3762. int pageSize = 0,
  3763. String? token,
  3764. }) : super(
  3765. pageIndex: pageIndex,
  3766. pageSize: pageSize,
  3767. token: token,
  3768. );
  3769. factory GetRolePagesRequest.fromJson(Map<String, dynamic> map) {
  3770. return GetRolePagesRequest(
  3771. roleName: map['RoleName'],
  3772. pageIndex: map['PageIndex'],
  3773. pageSize: map['PageSize'],
  3774. token: map['Token'],
  3775. );
  3776. }
  3777. Map<String, dynamic> toJson() {
  3778. final map = super.toJson();
  3779. if(roleName != null)
  3780. map['RoleName'] = roleName;
  3781. return map;
  3782. }
  3783. }
  3784. class GetShareExamUrlRequest {
  3785. String? requestUrl;
  3786. String? languageCode;
  3787. GetShareExamUrlRequest({
  3788. this.requestUrl,
  3789. this.languageCode,
  3790. });
  3791. factory GetShareExamUrlRequest.fromJson(Map<String, dynamic> map) {
  3792. return GetShareExamUrlRequest(
  3793. requestUrl: map['RequestUrl'],
  3794. languageCode: map['LanguageCode'],
  3795. );
  3796. }
  3797. Map<String, dynamic> toJson() {
  3798. final map = Map<String, dynamic>();
  3799. if(requestUrl != null)
  3800. map['RequestUrl'] = requestUrl;
  3801. if(languageCode != null)
  3802. map['LanguageCode'] = languageCode;
  3803. return map;
  3804. }
  3805. }
  3806. class GetThesaurusItemRequest extends TokenRequest{
  3807. String? thesaurusCode;
  3808. String? thesaurusItemCode;
  3809. GetThesaurusItemRequest({
  3810. this.thesaurusCode,
  3811. this.thesaurusItemCode,
  3812. String? token,
  3813. }) : super(
  3814. token: token,
  3815. );
  3816. factory GetThesaurusItemRequest.fromJson(Map<String, dynamic> map) {
  3817. return GetThesaurusItemRequest(
  3818. thesaurusCode: map['ThesaurusCode'],
  3819. thesaurusItemCode: map['ThesaurusItemCode'],
  3820. token: map['Token'],
  3821. );
  3822. }
  3823. Map<String, dynamic> toJson() {
  3824. final map = super.toJson();
  3825. if(thesaurusCode != null)
  3826. map['ThesaurusCode'] = thesaurusCode;
  3827. if(thesaurusItemCode != null)
  3828. map['ThesaurusItemCode'] = thesaurusItemCode;
  3829. return map;
  3830. }
  3831. }
  3832. class GetThirdPartyInfoPagesRequest extends PageRequest{
  3833. String? name;
  3834. String? isValid;
  3835. GetThirdPartyInfoPagesRequest({
  3836. this.name,
  3837. this.isValid,
  3838. int pageIndex = 0,
  3839. int pageSize = 0,
  3840. String? token,
  3841. }) : super(
  3842. pageIndex: pageIndex,
  3843. pageSize: pageSize,
  3844. token: token,
  3845. );
  3846. factory GetThirdPartyInfoPagesRequest.fromJson(Map<String, dynamic> map) {
  3847. return GetThirdPartyInfoPagesRequest(
  3848. name: map['Name'],
  3849. isValid: map['IsValid'],
  3850. pageIndex: map['PageIndex'],
  3851. pageSize: map['PageSize'],
  3852. token: map['Token'],
  3853. );
  3854. }
  3855. Map<String, dynamic> toJson() {
  3856. final map = super.toJson();
  3857. if(name != null)
  3858. map['Name'] = name;
  3859. if(isValid != null)
  3860. map['IsValid'] = isValid;
  3861. return map;
  3862. }
  3863. }
  3864. class GetUserPagesRequest extends PageRequest{
  3865. String? queryType;
  3866. String? keyword;
  3867. String? queryState;
  3868. GetUserPagesRequest({
  3869. this.queryType,
  3870. this.keyword,
  3871. this.queryState,
  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 GetUserPagesRequest.fromJson(Map<String, dynamic> map) {
  3881. return GetUserPagesRequest(
  3882. queryType: map['QueryType'],
  3883. keyword: map['Keyword'],
  3884. queryState: map['QueryState'],
  3885. pageIndex: map['PageIndex'],
  3886. pageSize: map['PageSize'],
  3887. token: map['Token'],
  3888. );
  3889. }
  3890. Map<String, dynamic> toJson() {
  3891. final map = super.toJson();
  3892. if(queryType != null)
  3893. map['QueryType'] = queryType;
  3894. if(keyword != null)
  3895. map['Keyword'] = keyword;
  3896. if(queryState != null)
  3897. map['QueryState'] = queryState;
  3898. return map;
  3899. }
  3900. }
  3901. class ImitateLoginRequest {
  3902. String? account;
  3903. String? password;
  3904. AccountType accountType;
  3905. ImitateLoginRequest({
  3906. this.account,
  3907. this.password,
  3908. this.accountType = AccountType.Admin,
  3909. });
  3910. factory ImitateLoginRequest.fromJson(Map<String, dynamic> map) {
  3911. return ImitateLoginRequest(
  3912. account: map['Account'],
  3913. password: map['Password'],
  3914. accountType: AccountType.values.firstWhere((e) => e.index == map['AccountType']),
  3915. );
  3916. }
  3917. Map<String, dynamic> toJson() {
  3918. final map = Map<String, dynamic>();
  3919. if(account != null)
  3920. map['Account'] = account;
  3921. if(password != null)
  3922. map['Password'] = password;
  3923. map['AccountType'] = accountType.index;
  3924. return map;
  3925. }
  3926. }
  3927. class ImitateLoginResult {
  3928. String? clientId;
  3929. ImitateLoginResult({
  3930. this.clientId,
  3931. });
  3932. factory ImitateLoginResult.fromJson(Map<String, dynamic> map) {
  3933. return ImitateLoginResult(
  3934. clientId: map['ClientId'],
  3935. );
  3936. }
  3937. Map<String, dynamic> toJson() {
  3938. final map = Map<String, dynamic>();
  3939. if(clientId != null)
  3940. map['ClientId'] = clientId;
  3941. return map;
  3942. }
  3943. }
  3944. class LoginRequest {
  3945. String? adminName;
  3946. String? password;
  3947. LoginRequest({
  3948. this.adminName,
  3949. this.password,
  3950. });
  3951. factory LoginRequest.fromJson(Map<String, dynamic> map) {
  3952. return LoginRequest(
  3953. adminName: map['AdminName'],
  3954. password: map['Password'],
  3955. );
  3956. }
  3957. Map<String, dynamic> toJson() {
  3958. final map = Map<String, dynamic>();
  3959. if(adminName != null)
  3960. map['AdminName'] = adminName;
  3961. if(password != null)
  3962. map['Password'] = password;
  3963. return map;
  3964. }
  3965. }
  3966. enum ProductStatusEnum {
  3967. SoldOut,
  3968. Putaway,
  3969. }
  3970. enum ProductTypeEnum {
  3971. Course,
  3972. Other,
  3973. }
  3974. class ManageCreateProductRequest extends TokenRequest{
  3975. String? name;
  3976. String? headImage;
  3977. double price;
  3978. ProductStatusEnum status;
  3979. ProductTypeEnum productType;
  3980. String? belongerCode;
  3981. String? relationInfo;
  3982. ManageCreateProductRequest({
  3983. this.name,
  3984. this.headImage,
  3985. this.price = 0,
  3986. this.status = ProductStatusEnum.SoldOut,
  3987. this.productType = ProductTypeEnum.Course,
  3988. this.belongerCode,
  3989. this.relationInfo,
  3990. String? token,
  3991. }) : super(
  3992. token: token,
  3993. );
  3994. factory ManageCreateProductRequest.fromJson(Map<String, dynamic> map) {
  3995. return ManageCreateProductRequest(
  3996. name: map['Name'],
  3997. headImage: map['HeadImage'],
  3998. price: double.parse(map['Price'].toString()),
  3999. status: ProductStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  4000. productType: ProductTypeEnum.values.firstWhere((e) => e.index == map['ProductType']),
  4001. belongerCode: map['BelongerCode'],
  4002. relationInfo: map['RelationInfo'],
  4003. token: map['Token'],
  4004. );
  4005. }
  4006. Map<String, dynamic> toJson() {
  4007. final map = super.toJson();
  4008. if(name != null)
  4009. map['Name'] = name;
  4010. if(headImage != null)
  4011. map['HeadImage'] = headImage;
  4012. map['Price'] = price;
  4013. map['Status'] = status.index;
  4014. map['ProductType'] = productType.index;
  4015. if(belongerCode != null)
  4016. map['BelongerCode'] = belongerCode;
  4017. if(relationInfo != null)
  4018. map['RelationInfo'] = relationInfo;
  4019. return map;
  4020. }
  4021. }
  4022. class ManageGetOrderDetailRequest extends TokenRequest{
  4023. String? orderCode;
  4024. ManageGetOrderDetailRequest({
  4025. this.orderCode,
  4026. String? token,
  4027. }) : super(
  4028. token: token,
  4029. );
  4030. factory ManageGetOrderDetailRequest.fromJson(Map<String, dynamic> map) {
  4031. return ManageGetOrderDetailRequest(
  4032. orderCode: map['OrderCode'],
  4033. token: map['Token'],
  4034. );
  4035. }
  4036. Map<String, dynamic> toJson() {
  4037. final map = super.toJson();
  4038. if(orderCode != null)
  4039. map['OrderCode'] = orderCode;
  4040. return map;
  4041. }
  4042. }
  4043. class ManageGetOrderPagesRequest extends PageRequest{
  4044. String? keyWord;
  4045. ManageGetOrderPagesRequest({
  4046. this.keyWord,
  4047. int pageIndex = 0,
  4048. int pageSize = 0,
  4049. String? token,
  4050. }) : super(
  4051. pageIndex: pageIndex,
  4052. pageSize: pageSize,
  4053. token: token,
  4054. );
  4055. factory ManageGetOrderPagesRequest.fromJson(Map<String, dynamic> map) {
  4056. return ManageGetOrderPagesRequest(
  4057. keyWord: map['KeyWord'],
  4058. pageIndex: map['PageIndex'],
  4059. pageSize: map['PageSize'],
  4060. token: map['Token'],
  4061. );
  4062. }
  4063. Map<String, dynamic> toJson() {
  4064. final map = super.toJson();
  4065. if(keyWord != null)
  4066. map['KeyWord'] = keyWord;
  4067. return map;
  4068. }
  4069. }
  4070. class ManageGetPaymentRecordsRequest extends PageRequest{
  4071. String? keyword;
  4072. ManageGetPaymentRecordsRequest({
  4073. this.keyword,
  4074. int pageIndex = 0,
  4075. int pageSize = 0,
  4076. String? token,
  4077. }) : super(
  4078. pageIndex: pageIndex,
  4079. pageSize: pageSize,
  4080. token: token,
  4081. );
  4082. factory ManageGetPaymentRecordsRequest.fromJson(Map<String, dynamic> map) {
  4083. return ManageGetPaymentRecordsRequest(
  4084. keyword: map['Keyword'],
  4085. pageIndex: map['PageIndex'],
  4086. pageSize: map['PageSize'],
  4087. token: map['Token'],
  4088. );
  4089. }
  4090. Map<String, dynamic> toJson() {
  4091. final map = super.toJson();
  4092. if(keyword != null)
  4093. map['Keyword'] = keyword;
  4094. return map;
  4095. }
  4096. }
  4097. class ManageUpdateProductRequest extends TokenRequest{
  4098. String? code;
  4099. String? name;
  4100. String? headImage;
  4101. double price;
  4102. ProductStatusEnum status;
  4103. ProductTypeEnum productType;
  4104. String? belongerCode;
  4105. String? relationInfo;
  4106. ManageUpdateProductRequest({
  4107. this.code,
  4108. this.name,
  4109. this.headImage,
  4110. this.price = 0,
  4111. this.status = ProductStatusEnum.SoldOut,
  4112. this.productType = ProductTypeEnum.Course,
  4113. this.belongerCode,
  4114. this.relationInfo,
  4115. String? token,
  4116. }) : super(
  4117. token: token,
  4118. );
  4119. factory ManageUpdateProductRequest.fromJson(Map<String, dynamic> map) {
  4120. return ManageUpdateProductRequest(
  4121. code: map['Code'],
  4122. name: map['Name'],
  4123. headImage: map['HeadImage'],
  4124. price: double.parse(map['Price'].toString()),
  4125. status: ProductStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  4126. productType: ProductTypeEnum.values.firstWhere((e) => e.index == map['ProductType']),
  4127. belongerCode: map['BelongerCode'],
  4128. relationInfo: map['RelationInfo'],
  4129. token: map['Token'],
  4130. );
  4131. }
  4132. Map<String, dynamic> toJson() {
  4133. final map = super.toJson();
  4134. if(code != null)
  4135. map['Code'] = code;
  4136. if(name != null)
  4137. map['Name'] = name;
  4138. if(headImage != null)
  4139. map['HeadImage'] = headImage;
  4140. map['Price'] = price;
  4141. map['Status'] = status.index;
  4142. map['ProductType'] = productType.index;
  4143. if(belongerCode != null)
  4144. map['BelongerCode'] = belongerCode;
  4145. if(relationInfo != null)
  4146. map['RelationInfo'] = relationInfo;
  4147. return map;
  4148. }
  4149. }
  4150. class BaseFeatureInfoDTO extends BaseDTO{
  4151. String? featureCode;
  4152. String? featureName;
  4153. String? fatherCode;
  4154. String? uniqueCode;
  4155. BaseFeatureInfoDTO({
  4156. this.featureCode,
  4157. this.featureName,
  4158. this.fatherCode,
  4159. this.uniqueCode,
  4160. DateTime? createTime,
  4161. DateTime? updateTime,
  4162. }) : super(
  4163. createTime: createTime,
  4164. updateTime: updateTime,
  4165. );
  4166. factory BaseFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  4167. return BaseFeatureInfoDTO(
  4168. featureCode: map['FeatureCode'],
  4169. featureName: map['FeatureName'],
  4170. fatherCode: map['FatherCode'],
  4171. uniqueCode: map['UniqueCode'],
  4172. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4173. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4174. );
  4175. }
  4176. Map<String, dynamic> toJson() {
  4177. final map = super.toJson();
  4178. if(featureCode != null)
  4179. map['FeatureCode'] = featureCode;
  4180. if(featureName != null)
  4181. map['FeatureName'] = featureName;
  4182. if(fatherCode != null)
  4183. map['FatherCode'] = fatherCode;
  4184. if(uniqueCode != null)
  4185. map['UniqueCode'] = uniqueCode;
  4186. return map;
  4187. }
  4188. }
  4189. class AdminFeatureInfoDTO extends BaseFeatureInfoDTO{
  4190. AdminFeatureInfoDTO({
  4191. String? featureCode,
  4192. String? featureName,
  4193. String? fatherCode,
  4194. String? uniqueCode,
  4195. DateTime? createTime,
  4196. DateTime? updateTime,
  4197. }) : super(
  4198. featureCode: featureCode,
  4199. featureName: featureName,
  4200. fatherCode: fatherCode,
  4201. uniqueCode: uniqueCode,
  4202. createTime: createTime,
  4203. updateTime: updateTime,
  4204. );
  4205. factory AdminFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  4206. return AdminFeatureInfoDTO(
  4207. featureCode: map['FeatureCode'],
  4208. featureName: map['FeatureName'],
  4209. fatherCode: map['FatherCode'],
  4210. uniqueCode: map['UniqueCode'],
  4211. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4212. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4213. );
  4214. }
  4215. Map<String, dynamic> toJson() {
  4216. final map = super.toJson();
  4217. return map;
  4218. }
  4219. }
  4220. class ModifyAdminFeatureRequest extends AdminFeatureInfoDTO{
  4221. String? token;
  4222. ModifyAdminFeatureRequest({
  4223. this.token,
  4224. String? featureCode,
  4225. String? featureName,
  4226. String? fatherCode,
  4227. String? uniqueCode,
  4228. DateTime? createTime,
  4229. DateTime? updateTime,
  4230. }) : super(
  4231. featureCode: featureCode,
  4232. featureName: featureName,
  4233. fatherCode: fatherCode,
  4234. uniqueCode: uniqueCode,
  4235. createTime: createTime,
  4236. updateTime: updateTime,
  4237. );
  4238. factory ModifyAdminFeatureRequest.fromJson(Map<String, dynamic> map) {
  4239. return ModifyAdminFeatureRequest(
  4240. token: map['Token'],
  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. if(token != null)
  4252. map['Token'] = token;
  4253. return map;
  4254. }
  4255. }
  4256. class ModifyAdminPasswordRequest extends TokenRequest{
  4257. String? adminCode;
  4258. String? oldPassword;
  4259. String? newPassword;
  4260. ModifyAdminPasswordRequest({
  4261. this.adminCode,
  4262. this.oldPassword,
  4263. this.newPassword,
  4264. String? token,
  4265. }) : super(
  4266. token: token,
  4267. );
  4268. factory ModifyAdminPasswordRequest.fromJson(Map<String, dynamic> map) {
  4269. return ModifyAdminPasswordRequest(
  4270. adminCode: map['AdminCode'],
  4271. oldPassword: map['OldPassword'],
  4272. newPassword: map['NewPassword'],
  4273. token: map['Token'],
  4274. );
  4275. }
  4276. Map<String, dynamic> toJson() {
  4277. final map = super.toJson();
  4278. if(adminCode != null)
  4279. map['AdminCode'] = adminCode;
  4280. if(oldPassword != null)
  4281. map['OldPassword'] = oldPassword;
  4282. if(newPassword != null)
  4283. map['NewPassword'] = newPassword;
  4284. return map;
  4285. }
  4286. }
  4287. class ClearLogOperateDTO {
  4288. String? serverHost;
  4289. DateTime? lastClearTime;
  4290. DateTime? lastClearOperateTime;
  4291. ClearLogOperateDTO({
  4292. this.serverHost,
  4293. this.lastClearTime,
  4294. this.lastClearOperateTime,
  4295. });
  4296. factory ClearLogOperateDTO.fromJson(Map<String, dynamic> map) {
  4297. return ClearLogOperateDTO(
  4298. serverHost: map['ServerHost'],
  4299. lastClearTime: map['LastClearTime'] != null ? DateTime.parse(map['LastClearTime']) : null,
  4300. lastClearOperateTime: map['LastClearOperateTime'] != null ? DateTime.parse(map['LastClearOperateTime']) : null,
  4301. );
  4302. }
  4303. Map<String, dynamic> toJson() {
  4304. final map = Map<String, dynamic>();
  4305. if(serverHost != null)
  4306. map['ServerHost'] = serverHost;
  4307. if(lastClearTime != null)
  4308. map['LastClearTime'] = JsonRpcUtils.dateFormat(lastClearTime!);
  4309. if(lastClearOperateTime != null)
  4310. map['LastClearOperateTime'] = JsonRpcUtils.dateFormat(lastClearOperateTime!);
  4311. return map;
  4312. }
  4313. }
  4314. class AdminInfoDTO extends BaseDTO{
  4315. String? adminCode;
  4316. String? fatherCode;
  4317. String? adminName;
  4318. String? fullName;
  4319. String? secretPassword;
  4320. String? headImageToken;
  4321. String? licenseKey;
  4322. String? lastIP;
  4323. String? phone;
  4324. String? email;
  4325. List<String >? roleCodes;
  4326. LoginLockInfoDTO? loginLockInfo;
  4327. DateTime? passwordUpdateTime;
  4328. List<String >? passwordRecords;
  4329. List<ClearLogOperateDTO >? clearLogOperateList;
  4330. AdminInfoDTO({
  4331. this.adminCode,
  4332. this.fatherCode,
  4333. this.adminName,
  4334. this.fullName,
  4335. this.secretPassword,
  4336. this.headImageToken,
  4337. this.licenseKey,
  4338. this.lastIP,
  4339. this.phone,
  4340. this.email,
  4341. this.roleCodes,
  4342. this.loginLockInfo,
  4343. this.passwordUpdateTime,
  4344. this.passwordRecords,
  4345. this.clearLogOperateList,
  4346. DateTime? createTime,
  4347. DateTime? updateTime,
  4348. }) : super(
  4349. createTime: createTime,
  4350. updateTime: updateTime,
  4351. );
  4352. factory AdminInfoDTO.fromJson(Map<String, dynamic> map) {
  4353. return AdminInfoDTO(
  4354. adminCode: map['AdminCode'],
  4355. fatherCode: map['FatherCode'],
  4356. adminName: map['AdminName'],
  4357. fullName: map['FullName'],
  4358. secretPassword: map['SecretPassword'],
  4359. headImageToken: map['HeadImageToken'],
  4360. licenseKey: map['LicenseKey'],
  4361. lastIP: map['LastIP'],
  4362. phone: map['Phone'],
  4363. email: map['Email'],
  4364. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  4365. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  4366. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  4367. passwordRecords: map['PasswordRecords'] != null ? map['PasswordRecords'].cast<String>().toList() : null,
  4368. clearLogOperateList: map['ClearLogOperateList'] != null ? (map['ClearLogOperateList'] as List).map((e)=>ClearLogOperateDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4369. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4370. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4371. );
  4372. }
  4373. Map<String, dynamic> toJson() {
  4374. final map = super.toJson();
  4375. if(adminCode != null)
  4376. map['AdminCode'] = adminCode;
  4377. if(fatherCode != null)
  4378. map['FatherCode'] = fatherCode;
  4379. if(adminName != null)
  4380. map['AdminName'] = adminName;
  4381. if(fullName != null)
  4382. map['FullName'] = fullName;
  4383. if(secretPassword != null)
  4384. map['SecretPassword'] = secretPassword;
  4385. if(headImageToken != null)
  4386. map['HeadImageToken'] = headImageToken;
  4387. if(licenseKey != null)
  4388. map['LicenseKey'] = licenseKey;
  4389. if(lastIP != null)
  4390. map['LastIP'] = lastIP;
  4391. if(phone != null)
  4392. map['Phone'] = phone;
  4393. if(email != null)
  4394. map['Email'] = email;
  4395. if(roleCodes != null)
  4396. map['RoleCodes'] = roleCodes;
  4397. if(loginLockInfo != null)
  4398. map['LoginLockInfo'] = loginLockInfo;
  4399. if(passwordUpdateTime != null)
  4400. map['PasswordUpdateTime'] = JsonRpcUtils.dateFormat(passwordUpdateTime!);
  4401. if(passwordRecords != null)
  4402. map['PasswordRecords'] = passwordRecords;
  4403. if(clearLogOperateList != null)
  4404. map['ClearLogOperateList'] = clearLogOperateList;
  4405. return map;
  4406. }
  4407. }
  4408. class ModifyAdminRequest extends AdminInfoDTO{
  4409. String? token;
  4410. ModifyAdminRequest({
  4411. this.token,
  4412. String? adminCode,
  4413. String? fatherCode,
  4414. String? adminName,
  4415. String? fullName,
  4416. String? secretPassword,
  4417. String? headImageToken,
  4418. String? licenseKey,
  4419. String? lastIP,
  4420. String? phone,
  4421. String? email,
  4422. List<String >? roleCodes,
  4423. LoginLockInfoDTO? loginLockInfo,
  4424. DateTime? passwordUpdateTime,
  4425. List<String >? passwordRecords,
  4426. List<ClearLogOperateDTO >? clearLogOperateList,
  4427. DateTime? createTime,
  4428. DateTime? updateTime,
  4429. }) : super(
  4430. adminCode: adminCode,
  4431. fatherCode: fatherCode,
  4432. adminName: adminName,
  4433. fullName: fullName,
  4434. secretPassword: secretPassword,
  4435. headImageToken: headImageToken,
  4436. licenseKey: licenseKey,
  4437. lastIP: lastIP,
  4438. phone: phone,
  4439. email: email,
  4440. roleCodes: roleCodes,
  4441. loginLockInfo: loginLockInfo,
  4442. passwordUpdateTime: passwordUpdateTime,
  4443. passwordRecords: passwordRecords,
  4444. clearLogOperateList: clearLogOperateList,
  4445. createTime: createTime,
  4446. updateTime: updateTime,
  4447. );
  4448. factory ModifyAdminRequest.fromJson(Map<String, dynamic> map) {
  4449. return ModifyAdminRequest(
  4450. token: map['Token'],
  4451. adminCode: map['AdminCode'],
  4452. fatherCode: map['FatherCode'],
  4453. adminName: map['AdminName'],
  4454. fullName: map['FullName'],
  4455. secretPassword: map['SecretPassword'],
  4456. headImageToken: map['HeadImageToken'],
  4457. licenseKey: map['LicenseKey'],
  4458. lastIP: map['LastIP'],
  4459. phone: map['Phone'],
  4460. email: map['Email'],
  4461. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  4462. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  4463. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  4464. passwordRecords: map['PasswordRecords'] != null ? map['PasswordRecords'].cast<String>().toList() : null,
  4465. clearLogOperateList: map['ClearLogOperateList'] != null ? (map['ClearLogOperateList'] as List).map((e)=>ClearLogOperateDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4466. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4467. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4468. );
  4469. }
  4470. Map<String, dynamic> toJson() {
  4471. final map = super.toJson();
  4472. if(token != null)
  4473. map['Token'] = token;
  4474. return map;
  4475. }
  4476. }
  4477. class AdminRoleDTO extends BaseRoleDTO{
  4478. String? adminGroupCode;
  4479. int adminNum;
  4480. AdminRoleDTO({
  4481. this.adminGroupCode,
  4482. this.adminNum = 0,
  4483. String? roleCode,
  4484. String? roleName,
  4485. String? description,
  4486. List<UserRoleLanguageConfigDTO >? languageConfigs,
  4487. DateTime? createTime,
  4488. DateTime? updateTime,
  4489. }) : super(
  4490. roleCode: roleCode,
  4491. roleName: roleName,
  4492. description: description,
  4493. languageConfigs: languageConfigs,
  4494. createTime: createTime,
  4495. updateTime: updateTime,
  4496. );
  4497. factory AdminRoleDTO.fromJson(Map<String, dynamic> map) {
  4498. return AdminRoleDTO(
  4499. adminGroupCode: map['AdminGroupCode'],
  4500. adminNum: map['AdminNum'],
  4501. roleCode: map['RoleCode'],
  4502. roleName: map['RoleName'],
  4503. description: map['Description'],
  4504. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4505. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4506. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4507. );
  4508. }
  4509. Map<String, dynamic> toJson() {
  4510. final map = super.toJson();
  4511. if(adminGroupCode != null)
  4512. map['AdminGroupCode'] = adminGroupCode;
  4513. map['AdminNum'] = adminNum;
  4514. return map;
  4515. }
  4516. }
  4517. class ModifyAdminRoleInfoRequest extends AdminRoleDTO{
  4518. String? token;
  4519. List<String >? featuresCodeList;
  4520. ModifyAdminRoleInfoRequest({
  4521. this.token,
  4522. this.featuresCodeList,
  4523. String? adminGroupCode,
  4524. int adminNum = 0,
  4525. String? roleCode,
  4526. String? roleName,
  4527. String? description,
  4528. List<UserRoleLanguageConfigDTO >? languageConfigs,
  4529. DateTime? createTime,
  4530. DateTime? updateTime,
  4531. }) : super(
  4532. adminGroupCode: adminGroupCode,
  4533. adminNum: adminNum,
  4534. roleCode: roleCode,
  4535. roleName: roleName,
  4536. description: description,
  4537. languageConfigs: languageConfigs,
  4538. createTime: createTime,
  4539. updateTime: updateTime,
  4540. );
  4541. factory ModifyAdminRoleInfoRequest.fromJson(Map<String, dynamic> map) {
  4542. return ModifyAdminRoleInfoRequest(
  4543. token: map['Token'],
  4544. featuresCodeList: map['FeaturesCodeList'] != null ? map['FeaturesCodeList'].cast<String>().toList() : null,
  4545. adminGroupCode: map['AdminGroupCode'],
  4546. adminNum: map['AdminNum'],
  4547. roleCode: map['RoleCode'],
  4548. roleName: map['RoleName'],
  4549. description: map['Description'],
  4550. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4551. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4552. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4553. );
  4554. }
  4555. Map<String, dynamic> toJson() {
  4556. final map = super.toJson();
  4557. if(token != null)
  4558. map['Token'] = token;
  4559. if(featuresCodeList != null)
  4560. map['FeaturesCodeList'] = featuresCodeList;
  4561. return map;
  4562. }
  4563. }
  4564. class ModifyAdminsRolesRequest {
  4565. String? token;
  4566. List<String >? adminCodes;
  4567. List<String >? adminRoleCodes;
  4568. ModifyAdminsRolesRequest({
  4569. this.token,
  4570. this.adminCodes,
  4571. this.adminRoleCodes,
  4572. });
  4573. factory ModifyAdminsRolesRequest.fromJson(Map<String, dynamic> map) {
  4574. return ModifyAdminsRolesRequest(
  4575. token: map['Token'],
  4576. adminCodes: map['AdminCodes'] != null ? map['AdminCodes'].cast<String>().toList() : null,
  4577. adminRoleCodes: map['AdminRoleCodes'] != null ? map['AdminRoleCodes'].cast<String>().toList() : null,
  4578. );
  4579. }
  4580. Map<String, dynamic> toJson() {
  4581. final map = Map<String, dynamic>();
  4582. if(token != null)
  4583. map['Token'] = token;
  4584. if(adminCodes != null)
  4585. map['AdminCodes'] = adminCodes;
  4586. if(adminRoleCodes != null)
  4587. map['AdminRoleCodes'] = adminRoleCodes;
  4588. return map;
  4589. }
  4590. }
  4591. class ModifyDeviceRequest2 extends DeviceInfoDTO{
  4592. String? token;
  4593. ModifyDeviceRequest2({
  4594. this.token,
  4595. String? deviceCode,
  4596. String? serialNumber,
  4597. String? password,
  4598. String? name,
  4599. String? description,
  4600. String? deviceModel,
  4601. String? deviceType,
  4602. String? headPicUrl,
  4603. String? deviceSoftwareVersion,
  4604. String? sDKSoftwareVersion,
  4605. String? organizationCode,
  4606. String? departmentCode,
  4607. String? shortCode,
  4608. bool isAutoShared = false,
  4609. bool isEncryptedShow = false,
  4610. DateTime? lastLoginTime,
  4611. String? systemVersion,
  4612. String? cPUModel,
  4613. String? systemLanguage,
  4614. List<String >? diagnosisModules,
  4615. List<String >? reportPosterCodes,
  4616. bool mergedChannel = false,
  4617. int mergedVideoOutputWidth = 0,
  4618. int mergedVideoOutputHeight = 0,
  4619. List<VideoDeviceDTO >? videoDeviceInfos,
  4620. DownloadModeSettingEnum downloadModeSetting = DownloadModeSettingEnum.Auto,
  4621. bool liveOpened = false,
  4622. DateTime? createTime,
  4623. DateTime? updateTime,
  4624. }) : super(
  4625. deviceCode: deviceCode,
  4626. serialNumber: serialNumber,
  4627. password: password,
  4628. name: name,
  4629. description: description,
  4630. deviceModel: deviceModel,
  4631. deviceType: deviceType,
  4632. headPicUrl: headPicUrl,
  4633. deviceSoftwareVersion: deviceSoftwareVersion,
  4634. sDKSoftwareVersion: sDKSoftwareVersion,
  4635. organizationCode: organizationCode,
  4636. departmentCode: departmentCode,
  4637. shortCode: shortCode,
  4638. isAutoShared: isAutoShared,
  4639. isEncryptedShow: isEncryptedShow,
  4640. lastLoginTime: lastLoginTime,
  4641. systemVersion: systemVersion,
  4642. cPUModel: cPUModel,
  4643. systemLanguage: systemLanguage,
  4644. diagnosisModules: diagnosisModules,
  4645. reportPosterCodes: reportPosterCodes,
  4646. mergedChannel: mergedChannel,
  4647. mergedVideoOutputWidth: mergedVideoOutputWidth,
  4648. mergedVideoOutputHeight: mergedVideoOutputHeight,
  4649. videoDeviceInfos: videoDeviceInfos,
  4650. downloadModeSetting: downloadModeSetting,
  4651. liveOpened: liveOpened,
  4652. createTime: createTime,
  4653. updateTime: updateTime,
  4654. );
  4655. factory ModifyDeviceRequest2.fromJson(Map<String, dynamic> map) {
  4656. return ModifyDeviceRequest2(
  4657. token: map['Token'],
  4658. deviceCode: map['DeviceCode'],
  4659. serialNumber: map['SerialNumber'],
  4660. password: map['Password'],
  4661. name: map['Name'],
  4662. description: map['Description'],
  4663. deviceModel: map['DeviceModel'],
  4664. deviceType: map['DeviceType'],
  4665. headPicUrl: map['HeadPicUrl'],
  4666. deviceSoftwareVersion: map['DeviceSoftwareVersion'],
  4667. sDKSoftwareVersion: map['SDKSoftwareVersion'],
  4668. organizationCode: map['OrganizationCode'],
  4669. departmentCode: map['DepartmentCode'],
  4670. shortCode: map['ShortCode'],
  4671. isAutoShared: map['IsAutoShared'],
  4672. isEncryptedShow: map['IsEncryptedShow'],
  4673. lastLoginTime: map['LastLoginTime'] != null ? DateTime.parse(map['LastLoginTime']) : null,
  4674. systemVersion: map['SystemVersion'],
  4675. cPUModel: map['CPUModel'],
  4676. systemLanguage: map['SystemLanguage'],
  4677. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  4678. reportPosterCodes: map['ReportPosterCodes'] != null ? map['ReportPosterCodes'].cast<String>().toList() : null,
  4679. mergedChannel: map['MergedChannel'],
  4680. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  4681. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  4682. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4683. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  4684. liveOpened: map['LiveOpened'],
  4685. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  4686. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  4687. );
  4688. }
  4689. Map<String, dynamic> toJson() {
  4690. final map = super.toJson();
  4691. if(token != null)
  4692. map['Token'] = token;
  4693. return map;
  4694. }
  4695. }
  4696. class ModifyDeviceDownloadModeRequest extends TokenRequest{
  4697. String? deviceCode;
  4698. DownloadModeSettingEnum downloadModeSetting;
  4699. ModifyDeviceDownloadModeRequest({
  4700. this.deviceCode,
  4701. this.downloadModeSetting = DownloadModeSettingEnum.Auto,
  4702. String? token,
  4703. }) : super(
  4704. token: token,
  4705. );
  4706. factory ModifyDeviceDownloadModeRequest.fromJson(Map<String, dynamic> map) {
  4707. return ModifyDeviceDownloadModeRequest(
  4708. deviceCode: map['DeviceCode'],
  4709. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  4710. token: map['Token'],
  4711. );
  4712. }
  4713. Map<String, dynamic> toJson() {
  4714. final map = super.toJson();
  4715. if(deviceCode != null)
  4716. map['DeviceCode'] = deviceCode;
  4717. map['DownloadModeSetting'] = downloadModeSetting.index;
  4718. return map;
  4719. }
  4720. }
  4721. class ModifyDeviceMergedVideoSizeRequest extends TokenRequest{
  4722. String? deviceCode;
  4723. bool mergedChannel;
  4724. int mergedVideoOutputWidth;
  4725. int mergedVideoOutputHeight;
  4726. List<VideoDeviceDTO >? videoDeviceInfos;
  4727. ModifyDeviceMergedVideoSizeRequest({
  4728. this.deviceCode,
  4729. this.mergedChannel = false,
  4730. this.mergedVideoOutputWidth = 0,
  4731. this.mergedVideoOutputHeight = 0,
  4732. this.videoDeviceInfos,
  4733. String? token,
  4734. }) : super(
  4735. token: token,
  4736. );
  4737. factory ModifyDeviceMergedVideoSizeRequest.fromJson(Map<String, dynamic> map) {
  4738. return ModifyDeviceMergedVideoSizeRequest(
  4739. deviceCode: map['DeviceCode'],
  4740. mergedChannel: map['MergedChannel'],
  4741. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  4742. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  4743. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  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['MergedChannel'] = mergedChannel;
  4752. map['MergedVideoOutputWidth'] = mergedVideoOutputWidth;
  4753. map['MergedVideoOutputHeight'] = mergedVideoOutputHeight;
  4754. if(videoDeviceInfos != null)
  4755. map['VideoDeviceInfos'] = videoDeviceInfos;
  4756. return map;
  4757. }
  4758. }
  4759. class DeviceModelClass {
  4760. String? deviceModelCode;
  4761. String? deviceModelName;
  4762. DeviceModelClass({
  4763. this.deviceModelCode,
  4764. this.deviceModelName,
  4765. });
  4766. factory DeviceModelClass.fromJson(Map<String, dynamic> map) {
  4767. return DeviceModelClass(
  4768. deviceModelCode: map['DeviceModelCode'],
  4769. deviceModelName: map['DeviceModelName'],
  4770. );
  4771. }
  4772. Map<String, dynamic> toJson() {
  4773. final map = Map<String, dynamic>();
  4774. if(deviceModelCode != null)
  4775. map['DeviceModelCode'] = deviceModelCode;
  4776. if(deviceModelName != null)
  4777. map['DeviceModelName'] = deviceModelName;
  4778. return map;
  4779. }
  4780. }
  4781. class ModifyDeviceTypeRequest extends TokenRequest{
  4782. String? deviceTypeCode;
  4783. List<DictionaryLanguageConfigDTO >? languageConfigs;
  4784. List<DeviceModelClass >? deviceModelList;
  4785. ModifyDeviceTypeRequest({
  4786. this.deviceTypeCode,
  4787. this.languageConfigs,
  4788. this.deviceModelList,
  4789. String? token,
  4790. }) : super(
  4791. token: token,
  4792. );
  4793. factory ModifyDeviceTypeRequest.fromJson(Map<String, dynamic> map) {
  4794. return ModifyDeviceTypeRequest(
  4795. deviceTypeCode: map['DeviceTypeCode'],
  4796. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>DictionaryLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  4797. deviceModelList: map['DeviceModelList'] != null ? (map['DeviceModelList'] as List).map((e)=>DeviceModelClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  4798. token: map['Token'],
  4799. );
  4800. }
  4801. Map<String, dynamic> toJson() {
  4802. final map = super.toJson();
  4803. if(deviceTypeCode != null)
  4804. map['DeviceTypeCode'] = deviceTypeCode;
  4805. if(languageConfigs != null)
  4806. map['LanguageConfigs'] = languageConfigs;
  4807. if(deviceModelList != null)
  4808. map['DeviceModelList'] = deviceModelList;
  4809. return map;
  4810. }
  4811. }
  4812. class ModifyDiagnosisModuleEnableStateRequest extends TokenRequest{
  4813. List<String >? diagnosisModules;
  4814. bool enabled;
  4815. ModifyDiagnosisModuleEnableStateRequest({
  4816. this.diagnosisModules,
  4817. this.enabled = false,
  4818. String? token,
  4819. }) : super(
  4820. token: token,
  4821. );
  4822. factory ModifyDiagnosisModuleEnableStateRequest.fromJson(Map<String, dynamic> map) {
  4823. return ModifyDiagnosisModuleEnableStateRequest(
  4824. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  4825. enabled: map['Enabled'],
  4826. token: map['Token'],
  4827. );
  4828. }
  4829. Map<String, dynamic> toJson() {
  4830. final map = super.toJson();
  4831. if(diagnosisModules != null)
  4832. map['DiagnosisModules'] = diagnosisModules;
  4833. map['Enabled'] = enabled;
  4834. return map;
  4835. }
  4836. }
  4837. class ModifyDiagnosisModulesRequest extends TokenRequest{
  4838. List<String >? diagnosisModules;
  4839. ModifyDiagnosisModulesRequest({
  4840. this.diagnosisModules,
  4841. String? token,
  4842. }) : super(
  4843. token: token,
  4844. );
  4845. factory ModifyDiagnosisModulesRequest.fromJson(Map<String, dynamic> map) {
  4846. return ModifyDiagnosisModulesRequest(
  4847. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  4848. token: map['Token'],
  4849. );
  4850. }
  4851. Map<String, dynamic> toJson() {
  4852. final map = super.toJson();
  4853. if(diagnosisModules != null)
  4854. map['DiagnosisModules'] = diagnosisModules;
  4855. return map;
  4856. }
  4857. }
  4858. class ModifyOrganizationCustomSettingRequest extends TokenRequest{
  4859. String? langugeKey;
  4860. String? settingModule;
  4861. String? settingJson;
  4862. String? organizationCode;
  4863. ModifyOrganizationCustomSettingRequest({
  4864. this.langugeKey,
  4865. this.settingModule,
  4866. this.settingJson,
  4867. this.organizationCode,
  4868. String? token,
  4869. }) : super(
  4870. token: token,
  4871. );
  4872. factory ModifyOrganizationCustomSettingRequest.fromJson(Map<String, dynamic> map) {
  4873. return ModifyOrganizationCustomSettingRequest(
  4874. langugeKey: map['LangugeKey'],
  4875. settingModule: map['SettingModule'],
  4876. settingJson: map['SettingJson'],
  4877. organizationCode: map['OrganizationCode'],
  4878. token: map['Token'],
  4879. );
  4880. }
  4881. Map<String, dynamic> toJson() {
  4882. final map = super.toJson();
  4883. if(langugeKey != null)
  4884. map['LangugeKey'] = langugeKey;
  4885. if(settingModule != null)
  4886. map['SettingModule'] = settingModule;
  4887. if(settingJson != null)
  4888. map['SettingJson'] = settingJson;
  4889. if(organizationCode != null)
  4890. map['OrganizationCode'] = organizationCode;
  4891. return map;
  4892. }
  4893. }
  4894. class ModifyOrganizationDiagnosisModulesRequest extends TokenRequest{
  4895. String? organizationCode;
  4896. List<String >? diagnosisModules;
  4897. ModifyOrganizationDiagnosisModulesRequest({
  4898. this.organizationCode,
  4899. this.diagnosisModules,
  4900. String? token,
  4901. }) : super(
  4902. token: token,
  4903. );
  4904. factory ModifyOrganizationDiagnosisModulesRequest.fromJson(Map<String, dynamic> map) {
  4905. return ModifyOrganizationDiagnosisModulesRequest(
  4906. organizationCode: map['OrganizationCode'],
  4907. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  4908. token: map['Token'],
  4909. );
  4910. }
  4911. Map<String, dynamic> toJson() {
  4912. final map = super.toJson();
  4913. if(organizationCode != null)
  4914. map['OrganizationCode'] = organizationCode;
  4915. if(diagnosisModules != null)
  4916. map['DiagnosisModules'] = diagnosisModules;
  4917. return map;
  4918. }
  4919. }
  4920. class ModifyOrganizationDirectorsRequest extends TokenRequest{
  4921. String? organizationCode;
  4922. List<String >? directors;
  4923. ModifyOrganizationDirectorsRequest({
  4924. this.organizationCode,
  4925. this.directors,
  4926. String? token,
  4927. }) : super(
  4928. token: token,
  4929. );
  4930. factory ModifyOrganizationDirectorsRequest.fromJson(Map<String, dynamic> map) {
  4931. return ModifyOrganizationDirectorsRequest(
  4932. organizationCode: map['OrganizationCode'],
  4933. directors: map['Directors'] != null ? map['Directors'].cast<String>().toList() : null,
  4934. token: map['Token'],
  4935. );
  4936. }
  4937. Map<String, dynamic> toJson() {
  4938. final map = super.toJson();
  4939. if(organizationCode != null)
  4940. map['OrganizationCode'] = organizationCode;
  4941. if(directors != null)
  4942. map['Directors'] = directors;
  4943. return map;
  4944. }
  4945. }
  4946. class ModifyOrganizationRequest extends OrganizationDTO{
  4947. String? token;
  4948. ModifyOrganizationRequest({
  4949. this.token,
  4950. String? description,
  4951. String? rootCode,
  4952. OrganizationTypeEnum organizationType = OrganizationTypeEnum.Corporation,
  4953. List<String >? authorityGroups,
  4954. String? nautica,
  4955. OrganizationStateEnum state = OrganizationStateEnum.WaitAudit,
  4956. List<String >? directors,
  4957. List<String >? assignedAdmins,
  4958. String? patientSettingJson,
  4959. String? examSettingJson,
  4960. String? consultationSettingJson,
  4961. String? patientSettingVersion,
  4962. String? examSettingVersion,
  4963. String? consultationSettingVersion,
  4964. String? parentOrganizationName,
  4965. String? regionCode,
  4966. String? parentCode,
  4967. String? logoUrl,
  4968. OrganizationPatientTypeEnum patientType = OrganizationPatientTypeEnum.Person,
  4969. bool isinvented = false,
  4970. List<SettingDTOClass >? settings,
  4971. List<String >? diagnosisModules,
  4972. bool isEncryptedShow = false,
  4973. double referralLimitHours = 0,
  4974. List<String >? referralOrganizationCodes,
  4975. List<ReferralOrganizationDTO >? referralOrganizations,
  4976. String? organizationCode,
  4977. String? organizationName,
  4978. DateTime? createTime,
  4979. DateTime? updateTime,
  4980. }) : super(
  4981. description: description,
  4982. rootCode: rootCode,
  4983. organizationType: organizationType,
  4984. authorityGroups: authorityGroups,
  4985. nautica: nautica,
  4986. state: state,
  4987. directors: directors,
  4988. assignedAdmins: assignedAdmins,
  4989. patientSettingJson: patientSettingJson,
  4990. examSettingJson: examSettingJson,
  4991. consultationSettingJson: consultationSettingJson,
  4992. patientSettingVersion: patientSettingVersion,
  4993. examSettingVersion: examSettingVersion,
  4994. consultationSettingVersion: consultationSettingVersion,
  4995. parentOrganizationName: parentOrganizationName,
  4996. regionCode: regionCode,
  4997. parentCode: parentCode,
  4998. logoUrl: logoUrl,
  4999. patientType: patientType,
  5000. isinvented: isinvented,
  5001. settings: settings,
  5002. diagnosisModules: diagnosisModules,
  5003. isEncryptedShow: isEncryptedShow,
  5004. referralLimitHours: referralLimitHours,
  5005. referralOrganizationCodes: referralOrganizationCodes,
  5006. referralOrganizations: referralOrganizations,
  5007. organizationCode: organizationCode,
  5008. organizationName: organizationName,
  5009. createTime: createTime,
  5010. updateTime: updateTime,
  5011. );
  5012. factory ModifyOrganizationRequest.fromJson(Map<String, dynamic> map) {
  5013. return ModifyOrganizationRequest(
  5014. token: map['Token'],
  5015. description: map['Description'],
  5016. rootCode: map['RootCode'],
  5017. organizationType: OrganizationTypeEnum.values.firstWhere((e) => e.index == map['OrganizationType']),
  5018. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  5019. nautica: map['Nautica'],
  5020. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  5021. directors: map['Directors'] != null ? map['Directors'].cast<String>().toList() : null,
  5022. assignedAdmins: map['AssignedAdmins'] != null ? map['AssignedAdmins'].cast<String>().toList() : null,
  5023. patientSettingJson: map['PatientSettingJson'],
  5024. examSettingJson: map['ExamSettingJson'],
  5025. consultationSettingJson: map['ConsultationSettingJson'],
  5026. patientSettingVersion: map['PatientSettingVersion'],
  5027. examSettingVersion: map['ExamSettingVersion'],
  5028. consultationSettingVersion: map['ConsultationSettingVersion'],
  5029. parentOrganizationName: map['ParentOrganizationName'],
  5030. regionCode: map['RegionCode'],
  5031. parentCode: map['ParentCode'],
  5032. logoUrl: map['LogoUrl'],
  5033. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  5034. isinvented: map['Isinvented'],
  5035. settings: map['Settings'] != null ? (map['Settings'] as List).map((e)=>SettingDTOClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  5036. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  5037. isEncryptedShow: map['IsEncryptedShow'],
  5038. referralLimitHours: double.parse(map['ReferralLimitHours'].toString()),
  5039. referralOrganizationCodes: map['ReferralOrganizationCodes'] != null ? map['ReferralOrganizationCodes'].cast<String>().toList() : null,
  5040. referralOrganizations: map['ReferralOrganizations'] != null ? (map['ReferralOrganizations'] as List).map((e)=>ReferralOrganizationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  5041. organizationCode: map['OrganizationCode'],
  5042. organizationName: map['OrganizationName'],
  5043. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5044. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5045. );
  5046. }
  5047. Map<String, dynamic> toJson() {
  5048. final map = super.toJson();
  5049. if(token != null)
  5050. map['Token'] = token;
  5051. return map;
  5052. }
  5053. }
  5054. class ModifyOrganizationSettingRequest extends TokenRequest{
  5055. OrganizationSettingTypeEnum settingType;
  5056. String? settingJson;
  5057. String? organizationCode;
  5058. String? cMSTemplateCode;
  5059. ModifyOrganizationSettingRequest({
  5060. this.settingType = OrganizationSettingTypeEnum.Patient,
  5061. this.settingJson,
  5062. this.organizationCode,
  5063. this.cMSTemplateCode,
  5064. String? token,
  5065. }) : super(
  5066. token: token,
  5067. );
  5068. factory ModifyOrganizationSettingRequest.fromJson(Map<String, dynamic> map) {
  5069. return ModifyOrganizationSettingRequest(
  5070. settingType: OrganizationSettingTypeEnum.values.firstWhere((e) => e.index == map['SettingType']),
  5071. settingJson: map['SettingJson'],
  5072. organizationCode: map['OrganizationCode'],
  5073. cMSTemplateCode: map['CMSTemplateCode'],
  5074. token: map['Token'],
  5075. );
  5076. }
  5077. Map<String, dynamic> toJson() {
  5078. final map = super.toJson();
  5079. map['SettingType'] = settingType.index;
  5080. if(settingJson != null)
  5081. map['SettingJson'] = settingJson;
  5082. if(organizationCode != null)
  5083. map['OrganizationCode'] = organizationCode;
  5084. if(cMSTemplateCode != null)
  5085. map['CMSTemplateCode'] = cMSTemplateCode;
  5086. return map;
  5087. }
  5088. }
  5089. class ConsultationBaseInfoItem {
  5090. String? name;
  5091. bool isDefult;
  5092. bool isShow;
  5093. bool required;
  5094. ConsultationBaseInfoItem({
  5095. this.name,
  5096. this.isDefult = false,
  5097. this.isShow = false,
  5098. this.required = false,
  5099. });
  5100. factory ConsultationBaseInfoItem.fromJson(Map<String, dynamic> map) {
  5101. return ConsultationBaseInfoItem(
  5102. name: map['Name'],
  5103. isDefult: map['IsDefult'],
  5104. isShow: map['IsShow'],
  5105. required: map['Required'],
  5106. );
  5107. }
  5108. Map<String, dynamic> toJson() {
  5109. final map = Map<String, dynamic>();
  5110. if(name != null)
  5111. map['Name'] = name;
  5112. map['IsDefult'] = isDefult;
  5113. map['IsShow'] = isShow;
  5114. map['Required'] = required;
  5115. return map;
  5116. }
  5117. }
  5118. class ModifycConsultationBaseInfoSettingRequest extends TokenRequest{
  5119. List<ConsultationBaseInfoItem >? consultationBaseInfoList;
  5120. String? organizationCode;
  5121. ModifycConsultationBaseInfoSettingRequest({
  5122. this.consultationBaseInfoList,
  5123. this.organizationCode,
  5124. String? token,
  5125. }) : super(
  5126. token: token,
  5127. );
  5128. factory ModifycConsultationBaseInfoSettingRequest.fromJson(Map<String, dynamic> map) {
  5129. return ModifycConsultationBaseInfoSettingRequest(
  5130. consultationBaseInfoList: map['ConsultationBaseInfoList'] != null ? (map['ConsultationBaseInfoList'] as List).map((e)=>ConsultationBaseInfoItem.fromJson(e as Map<String,dynamic>)).toList() : null,
  5131. organizationCode: map['OrganizationCode'],
  5132. token: map['Token'],
  5133. );
  5134. }
  5135. Map<String, dynamic> toJson() {
  5136. final map = super.toJson();
  5137. if(consultationBaseInfoList != null)
  5138. map['ConsultationBaseInfoList'] = consultationBaseInfoList;
  5139. if(organizationCode != null)
  5140. map['OrganizationCode'] = organizationCode;
  5141. return map;
  5142. }
  5143. }
  5144. class ModifyOrganizationStateRequest extends TokenRequest{
  5145. String? organizationCode;
  5146. OrganizationStateEnum state;
  5147. ModifyOrganizationStateRequest({
  5148. this.organizationCode,
  5149. this.state = OrganizationStateEnum.WaitAudit,
  5150. String? token,
  5151. }) : super(
  5152. token: token,
  5153. );
  5154. factory ModifyOrganizationStateRequest.fromJson(Map<String, dynamic> map) {
  5155. return ModifyOrganizationStateRequest(
  5156. organizationCode: map['OrganizationCode'],
  5157. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  5158. token: map['Token'],
  5159. );
  5160. }
  5161. Map<String, dynamic> toJson() {
  5162. final map = super.toJson();
  5163. if(organizationCode != null)
  5164. map['OrganizationCode'] = organizationCode;
  5165. map['State'] = state.index;
  5166. return map;
  5167. }
  5168. }
  5169. class ModifyReferralRecordSettingRequest extends TokenRequest{
  5170. double limitHours;
  5171. ModifyReferralRecordSettingRequest({
  5172. this.limitHours = 0,
  5173. String? token,
  5174. }) : super(
  5175. token: token,
  5176. );
  5177. factory ModifyReferralRecordSettingRequest.fromJson(Map<String, dynamic> map) {
  5178. return ModifyReferralRecordSettingRequest(
  5179. limitHours: double.parse(map['LimitHours'].toString()),
  5180. token: map['Token'],
  5181. );
  5182. }
  5183. Map<String, dynamic> toJson() {
  5184. final map = super.toJson();
  5185. map['LimitHours'] = limitHours;
  5186. return map;
  5187. }
  5188. }
  5189. class ModifyReportPosterDevicesRequest extends TokenRequest{
  5190. String? reportPosterCode;
  5191. List<String >? deviceIds;
  5192. ModifyReportPosterDevicesRequest({
  5193. this.reportPosterCode,
  5194. this.deviceIds,
  5195. String? token,
  5196. }) : super(
  5197. token: token,
  5198. );
  5199. factory ModifyReportPosterDevicesRequest.fromJson(Map<String, dynamic> map) {
  5200. return ModifyReportPosterDevicesRequest(
  5201. reportPosterCode: map['ReportPosterCode'],
  5202. deviceIds: map['DeviceIds'] != null ? map['DeviceIds'].cast<String>().toList() : null,
  5203. token: map['Token'],
  5204. );
  5205. }
  5206. Map<String, dynamic> toJson() {
  5207. final map = super.toJson();
  5208. if(reportPosterCode != null)
  5209. map['ReportPosterCode'] = reportPosterCode;
  5210. if(deviceIds != null)
  5211. map['DeviceIds'] = deviceIds;
  5212. return map;
  5213. }
  5214. }
  5215. class ModifyRoleInfoRequest extends RoleDTO{
  5216. String? token;
  5217. List<String >? featuresCodeList;
  5218. ModifyRoleInfoRequest({
  5219. this.token,
  5220. this.featuresCodeList,
  5221. RoleShowTypeEnum roleShowType = RoleShowTypeEnum.NotShow,
  5222. String? iConUrl,
  5223. String? colorStart,
  5224. String? colorEnd,
  5225. RoleQualificationEnum roleQualification = RoleQualificationEnum.NoNeed,
  5226. String? userGroupCode,
  5227. RoleShowTypeEnum fieldShowType = RoleShowTypeEnum.NotShow,
  5228. List<String >? fieldList,
  5229. String? roleCode,
  5230. String? roleName,
  5231. String? description,
  5232. List<UserRoleLanguageConfigDTO >? languageConfigs,
  5233. DateTime? createTime,
  5234. DateTime? updateTime,
  5235. }) : super(
  5236. roleShowType: roleShowType,
  5237. iConUrl: iConUrl,
  5238. colorStart: colorStart,
  5239. colorEnd: colorEnd,
  5240. roleQualification: roleQualification,
  5241. userGroupCode: userGroupCode,
  5242. fieldShowType: fieldShowType,
  5243. fieldList: fieldList,
  5244. roleCode: roleCode,
  5245. roleName: roleName,
  5246. description: description,
  5247. languageConfigs: languageConfigs,
  5248. createTime: createTime,
  5249. updateTime: updateTime,
  5250. );
  5251. factory ModifyRoleInfoRequest.fromJson(Map<String, dynamic> map) {
  5252. return ModifyRoleInfoRequest(
  5253. token: map['Token'],
  5254. featuresCodeList: map['FeaturesCodeList'] != null ? map['FeaturesCodeList'].cast<String>().toList() : null,
  5255. roleShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['RoleShowType']),
  5256. iConUrl: map['IConUrl'],
  5257. colorStart: map['ColorStart'],
  5258. colorEnd: map['ColorEnd'],
  5259. roleQualification: RoleQualificationEnum.values.firstWhere((e) => e.index == map['RoleQualification']),
  5260. userGroupCode: map['UserGroupCode'],
  5261. fieldShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['FieldShowType']),
  5262. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  5263. roleCode: map['RoleCode'],
  5264. roleName: map['RoleName'],
  5265. description: map['Description'],
  5266. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  5267. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5268. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5269. );
  5270. }
  5271. Map<String, dynamic> toJson() {
  5272. final map = super.toJson();
  5273. if(token != null)
  5274. map['Token'] = token;
  5275. if(featuresCodeList != null)
  5276. map['FeaturesCodeList'] = featuresCodeList;
  5277. return map;
  5278. }
  5279. }
  5280. class ThirdPartyInfoDTO extends BaseDTO{
  5281. String? code;
  5282. String? name;
  5283. String? contactPersonName;
  5284. String? contactPhone;
  5285. List<String >? allowedInterfaces;
  5286. bool isValid;
  5287. String? token;
  5288. ThirdPartyInfoDTO({
  5289. this.code,
  5290. this.name,
  5291. this.contactPersonName,
  5292. this.contactPhone,
  5293. this.allowedInterfaces,
  5294. this.isValid = false,
  5295. this.token,
  5296. DateTime? createTime,
  5297. DateTime? updateTime,
  5298. }) : super(
  5299. createTime: createTime,
  5300. updateTime: updateTime,
  5301. );
  5302. factory ThirdPartyInfoDTO.fromJson(Map<String, dynamic> map) {
  5303. return ThirdPartyInfoDTO(
  5304. code: map['Code'],
  5305. name: map['Name'],
  5306. contactPersonName: map['ContactPersonName'],
  5307. contactPhone: map['ContactPhone'],
  5308. allowedInterfaces: map['AllowedInterfaces'] != null ? map['AllowedInterfaces'].cast<String>().toList() : null,
  5309. isValid: map['IsValid'],
  5310. token: map['Token'],
  5311. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5312. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5313. );
  5314. }
  5315. Map<String, dynamic> toJson() {
  5316. final map = super.toJson();
  5317. if(code != null)
  5318. map['Code'] = code;
  5319. if(name != null)
  5320. map['Name'] = name;
  5321. if(contactPersonName != null)
  5322. map['ContactPersonName'] = contactPersonName;
  5323. if(contactPhone != null)
  5324. map['ContactPhone'] = contactPhone;
  5325. if(allowedInterfaces != null)
  5326. map['AllowedInterfaces'] = allowedInterfaces;
  5327. map['IsValid'] = isValid;
  5328. if(token != null)
  5329. map['Token'] = token;
  5330. return map;
  5331. }
  5332. }
  5333. class ModifyThirdPartyInfoRequest extends ThirdPartyInfoDTO{
  5334. ModifyThirdPartyInfoRequest({
  5335. String? token,
  5336. String? code,
  5337. String? name,
  5338. String? contactPersonName,
  5339. String? contactPhone,
  5340. List<String >? allowedInterfaces,
  5341. bool isValid = false,
  5342. DateTime? createTime,
  5343. DateTime? updateTime,
  5344. }) : super(
  5345. code: code,
  5346. name: name,
  5347. contactPersonName: contactPersonName,
  5348. contactPhone: contactPhone,
  5349. allowedInterfaces: allowedInterfaces,
  5350. isValid: isValid,
  5351. token: token,
  5352. createTime: createTime,
  5353. updateTime: updateTime,
  5354. );
  5355. factory ModifyThirdPartyInfoRequest.fromJson(Map<String, dynamic> map) {
  5356. return ModifyThirdPartyInfoRequest(
  5357. token: map['Token'],
  5358. code: map['Code'],
  5359. name: map['Name'],
  5360. contactPersonName: map['ContactPersonName'],
  5361. contactPhone: map['ContactPhone'],
  5362. allowedInterfaces: map['AllowedInterfaces'] != null ? map['AllowedInterfaces'].cast<String>().toList() : null,
  5363. isValid: map['IsValid'],
  5364. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5365. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5366. );
  5367. }
  5368. Map<String, dynamic> toJson() {
  5369. final map = super.toJson();
  5370. return map;
  5371. }
  5372. }
  5373. class UserFeatureInfoDTO extends BaseFeatureInfoDTO{
  5374. UserFeatureInfoDTO({
  5375. String? featureCode,
  5376. String? featureName,
  5377. String? fatherCode,
  5378. String? uniqueCode,
  5379. DateTime? createTime,
  5380. DateTime? updateTime,
  5381. }) : super(
  5382. featureCode: featureCode,
  5383. featureName: featureName,
  5384. fatherCode: fatherCode,
  5385. uniqueCode: uniqueCode,
  5386. createTime: createTime,
  5387. updateTime: updateTime,
  5388. );
  5389. factory UserFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  5390. return UserFeatureInfoDTO(
  5391. featureCode: map['FeatureCode'],
  5392. featureName: map['FeatureName'],
  5393. fatherCode: map['FatherCode'],
  5394. uniqueCode: map['UniqueCode'],
  5395. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5396. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5397. );
  5398. }
  5399. Map<String, dynamic> toJson() {
  5400. final map = super.toJson();
  5401. return map;
  5402. }
  5403. }
  5404. class ModifyUserFeatureRequest extends UserFeatureInfoDTO{
  5405. String? token;
  5406. ModifyUserFeatureRequest({
  5407. this.token,
  5408. String? featureCode,
  5409. String? featureName,
  5410. String? fatherCode,
  5411. String? uniqueCode,
  5412. DateTime? createTime,
  5413. DateTime? updateTime,
  5414. }) : super(
  5415. featureCode: featureCode,
  5416. featureName: featureName,
  5417. fatherCode: fatherCode,
  5418. uniqueCode: uniqueCode,
  5419. createTime: createTime,
  5420. updateTime: updateTime,
  5421. );
  5422. factory ModifyUserFeatureRequest.fromJson(Map<String, dynamic> map) {
  5423. return ModifyUserFeatureRequest(
  5424. token: map['Token'],
  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. if(token != null)
  5436. map['Token'] = token;
  5437. return map;
  5438. }
  5439. }
  5440. enum ManagementUserInfoStateEnum {
  5441. Nonactivated,
  5442. Activated,
  5443. Locked,
  5444. }
  5445. class ManageUserInfoDTO extends UserDTO{
  5446. String? roleName;
  5447. String? departmentName;
  5448. String? hospitalName;
  5449. String? identityApplyCode;
  5450. List<String >? identityCard;
  5451. List<String >? licenseCard;
  5452. String? identityApplyRoleCode;
  5453. String? identityApplyRoleName;
  5454. ManagementUserInfoStateEnum managementUserState;
  5455. ManageUserInfoDTO({
  5456. this.roleName,
  5457. this.departmentName,
  5458. this.hospitalName,
  5459. this.identityApplyCode,
  5460. this.identityCard,
  5461. this.licenseCard,
  5462. this.identityApplyRoleCode,
  5463. this.identityApplyRoleName,
  5464. bool isBatchExportDiagnoseData = false,
  5465. List<String >? fieldList,
  5466. this.managementUserState = ManagementUserInfoStateEnum.Nonactivated,
  5467. String? phone,
  5468. String? email,
  5469. String? nickName,
  5470. String? fullName,
  5471. String? organizationCode,
  5472. String? organizationName,
  5473. String? rootOrganizationCode,
  5474. String? rootOrganizationName,
  5475. List<String >? authorityGroups,
  5476. List<String >? bindDevices,
  5477. String? lastIP,
  5478. int logintimes = 0,
  5479. UserInfoStateEnum userState = UserInfoStateEnum.Nonactivated,
  5480. List<String >? roleCodes,
  5481. List<String >? rankCodes,
  5482. List<String >? positionCodes,
  5483. ApplyStateEnum applyState = ApplyStateEnum.NotApply,
  5484. String? rankName,
  5485. String? positionName,
  5486. bool isDirector = false,
  5487. List<String >? deletePatientCodes,
  5488. String? bindAssistantUserCode,
  5489. String? bindAssistantDoctorUserCode,
  5490. LoginLockInfoDTO? loginLockInfo,
  5491. String? signature,
  5492. String? language,
  5493. bool enableReportLabel = false,
  5494. List<AssociatedInfoDTO >? associatedInfos,
  5495. String? userCode,
  5496. String? userName,
  5497. String? headImageUrl,
  5498. DateTime? createTime,
  5499. DateTime? updateTime,
  5500. }) : super(
  5501. phone: phone,
  5502. email: email,
  5503. nickName: nickName,
  5504. fullName: fullName,
  5505. organizationCode: organizationCode,
  5506. organizationName: organizationName,
  5507. rootOrganizationCode: rootOrganizationCode,
  5508. rootOrganizationName: rootOrganizationName,
  5509. authorityGroups: authorityGroups,
  5510. bindDevices: bindDevices,
  5511. lastIP: lastIP,
  5512. logintimes: logintimes,
  5513. userState: userState,
  5514. roleCodes: roleCodes,
  5515. rankCodes: rankCodes,
  5516. positionCodes: positionCodes,
  5517. applyState: applyState,
  5518. rankName: rankName,
  5519. positionName: positionName,
  5520. isDirector: isDirector,
  5521. fieldList: fieldList,
  5522. deletePatientCodes: deletePatientCodes,
  5523. isBatchExportDiagnoseData: isBatchExportDiagnoseData,
  5524. bindAssistantUserCode: bindAssistantUserCode,
  5525. bindAssistantDoctorUserCode: bindAssistantDoctorUserCode,
  5526. loginLockInfo: loginLockInfo,
  5527. signature: signature,
  5528. language: language,
  5529. enableReportLabel: enableReportLabel,
  5530. associatedInfos: associatedInfos,
  5531. userCode: userCode,
  5532. userName: userName,
  5533. headImageUrl: headImageUrl,
  5534. createTime: createTime,
  5535. updateTime: updateTime,
  5536. );
  5537. factory ManageUserInfoDTO.fromJson(Map<String, dynamic> map) {
  5538. return ManageUserInfoDTO(
  5539. roleName: map['RoleName'],
  5540. departmentName: map['DepartmentName'],
  5541. hospitalName: map['HospitalName'],
  5542. identityApplyCode: map['IdentityApplyCode'],
  5543. identityCard: map['IdentityCard'] != null ? map['IdentityCard'].cast<String>().toList() : null,
  5544. licenseCard: map['LicenseCard'] != null ? map['LicenseCard'].cast<String>().toList() : null,
  5545. identityApplyRoleCode: map['IdentityApplyRoleCode'],
  5546. identityApplyRoleName: map['IdentityApplyRoleName'],
  5547. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  5548. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  5549. managementUserState: ManagementUserInfoStateEnum.values.firstWhere((e) => e.index == map['ManagementUserState']),
  5550. phone: map['Phone'],
  5551. email: map['Email'],
  5552. nickName: map['NickName'],
  5553. fullName: map['FullName'],
  5554. organizationCode: map['OrganizationCode'],
  5555. organizationName: map['OrganizationName'],
  5556. rootOrganizationCode: map['RootOrganizationCode'],
  5557. rootOrganizationName: map['RootOrganizationName'],
  5558. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  5559. bindDevices: map['BindDevices'] != null ? map['BindDevices'].cast<String>().toList() : null,
  5560. lastIP: map['LastIP'],
  5561. logintimes: map['Logintimes'],
  5562. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  5563. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  5564. rankCodes: map['RankCodes'] != null ? map['RankCodes'].cast<String>().toList() : null,
  5565. positionCodes: map['PositionCodes'] != null ? map['PositionCodes'].cast<String>().toList() : null,
  5566. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  5567. rankName: map['RankName'],
  5568. positionName: map['PositionName'],
  5569. isDirector: map['IsDirector'],
  5570. deletePatientCodes: map['DeletePatientCodes'] != null ? map['DeletePatientCodes'].cast<String>().toList() : null,
  5571. bindAssistantUserCode: map['BindAssistantUserCode'],
  5572. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  5573. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  5574. signature: map['Signature'],
  5575. language: map['Language'],
  5576. enableReportLabel: map['EnableReportLabel'],
  5577. associatedInfos: map['AssociatedInfos'] != null ? (map['AssociatedInfos'] as List).map((e)=>AssociatedInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  5578. userCode: map['UserCode'],
  5579. userName: map['UserName'],
  5580. headImageUrl: map['HeadImageUrl'],
  5581. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5582. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5583. );
  5584. }
  5585. Map<String, dynamic> toJson() {
  5586. final map = super.toJson();
  5587. if(roleName != null)
  5588. map['RoleName'] = roleName;
  5589. if(departmentName != null)
  5590. map['DepartmentName'] = departmentName;
  5591. if(hospitalName != null)
  5592. map['HospitalName'] = hospitalName;
  5593. if(identityApplyCode != null)
  5594. map['IdentityApplyCode'] = identityApplyCode;
  5595. if(identityCard != null)
  5596. map['IdentityCard'] = identityCard;
  5597. if(licenseCard != null)
  5598. map['LicenseCard'] = licenseCard;
  5599. if(identityApplyRoleCode != null)
  5600. map['IdentityApplyRoleCode'] = identityApplyRoleCode;
  5601. if(identityApplyRoleName != null)
  5602. map['IdentityApplyRoleName'] = identityApplyRoleName;
  5603. map['ManagementUserState'] = managementUserState.index;
  5604. return map;
  5605. }
  5606. }
  5607. class ModifyUserRequest extends ManageUserInfoDTO{
  5608. String? token;
  5609. ModifyUserRequest({
  5610. this.token,
  5611. String? roleName,
  5612. String? departmentName,
  5613. String? hospitalName,
  5614. String? identityApplyCode,
  5615. List<String >? identityCard,
  5616. List<String >? licenseCard,
  5617. String? identityApplyRoleCode,
  5618. String? identityApplyRoleName,
  5619. bool isBatchExportDiagnoseData = false,
  5620. List<String >? fieldList,
  5621. ManagementUserInfoStateEnum managementUserState = ManagementUserInfoStateEnum.Nonactivated,
  5622. String? phone,
  5623. String? email,
  5624. String? nickName,
  5625. String? fullName,
  5626. String? organizationCode,
  5627. String? organizationName,
  5628. String? rootOrganizationCode,
  5629. String? rootOrganizationName,
  5630. List<String >? authorityGroups,
  5631. List<String >? bindDevices,
  5632. String? lastIP,
  5633. int logintimes = 0,
  5634. UserInfoStateEnum userState = UserInfoStateEnum.Nonactivated,
  5635. List<String >? roleCodes,
  5636. List<String >? rankCodes,
  5637. List<String >? positionCodes,
  5638. ApplyStateEnum applyState = ApplyStateEnum.NotApply,
  5639. String? rankName,
  5640. String? positionName,
  5641. bool isDirector = false,
  5642. List<String >? deletePatientCodes,
  5643. String? bindAssistantUserCode,
  5644. String? bindAssistantDoctorUserCode,
  5645. LoginLockInfoDTO? loginLockInfo,
  5646. String? signature,
  5647. String? language,
  5648. bool enableReportLabel = false,
  5649. List<AssociatedInfoDTO >? associatedInfos,
  5650. String? userCode,
  5651. String? userName,
  5652. String? headImageUrl,
  5653. DateTime? createTime,
  5654. DateTime? updateTime,
  5655. }) : super(
  5656. roleName: roleName,
  5657. departmentName: departmentName,
  5658. hospitalName: hospitalName,
  5659. identityApplyCode: identityApplyCode,
  5660. identityCard: identityCard,
  5661. licenseCard: licenseCard,
  5662. identityApplyRoleCode: identityApplyRoleCode,
  5663. identityApplyRoleName: identityApplyRoleName,
  5664. isBatchExportDiagnoseData: isBatchExportDiagnoseData,
  5665. fieldList: fieldList,
  5666. managementUserState: managementUserState,
  5667. phone: phone,
  5668. email: email,
  5669. nickName: nickName,
  5670. fullName: fullName,
  5671. organizationCode: organizationCode,
  5672. organizationName: organizationName,
  5673. rootOrganizationCode: rootOrganizationCode,
  5674. rootOrganizationName: rootOrganizationName,
  5675. authorityGroups: authorityGroups,
  5676. bindDevices: bindDevices,
  5677. lastIP: lastIP,
  5678. logintimes: logintimes,
  5679. userState: userState,
  5680. roleCodes: roleCodes,
  5681. rankCodes: rankCodes,
  5682. positionCodes: positionCodes,
  5683. applyState: applyState,
  5684. rankName: rankName,
  5685. positionName: positionName,
  5686. isDirector: isDirector,
  5687. deletePatientCodes: deletePatientCodes,
  5688. bindAssistantUserCode: bindAssistantUserCode,
  5689. bindAssistantDoctorUserCode: bindAssistantDoctorUserCode,
  5690. loginLockInfo: loginLockInfo,
  5691. signature: signature,
  5692. language: language,
  5693. enableReportLabel: enableReportLabel,
  5694. associatedInfos: associatedInfos,
  5695. userCode: userCode,
  5696. userName: userName,
  5697. headImageUrl: headImageUrl,
  5698. createTime: createTime,
  5699. updateTime: updateTime,
  5700. );
  5701. factory ModifyUserRequest.fromJson(Map<String, dynamic> map) {
  5702. return ModifyUserRequest(
  5703. token: map['Token'],
  5704. roleName: map['RoleName'],
  5705. departmentName: map['DepartmentName'],
  5706. hospitalName: map['HospitalName'],
  5707. identityApplyCode: map['IdentityApplyCode'],
  5708. identityCard: map['IdentityCard'] != null ? map['IdentityCard'].cast<String>().toList() : null,
  5709. licenseCard: map['LicenseCard'] != null ? map['LicenseCard'].cast<String>().toList() : null,
  5710. identityApplyRoleCode: map['IdentityApplyRoleCode'],
  5711. identityApplyRoleName: map['IdentityApplyRoleName'],
  5712. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  5713. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  5714. managementUserState: ManagementUserInfoStateEnum.values.firstWhere((e) => e.index == map['ManagementUserState']),
  5715. phone: map['Phone'],
  5716. email: map['Email'],
  5717. nickName: map['NickName'],
  5718. fullName: map['FullName'],
  5719. organizationCode: map['OrganizationCode'],
  5720. organizationName: map['OrganizationName'],
  5721. rootOrganizationCode: map['RootOrganizationCode'],
  5722. rootOrganizationName: map['RootOrganizationName'],
  5723. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  5724. bindDevices: map['BindDevices'] != null ? map['BindDevices'].cast<String>().toList() : null,
  5725. lastIP: map['LastIP'],
  5726. logintimes: map['Logintimes'],
  5727. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  5728. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  5729. rankCodes: map['RankCodes'] != null ? map['RankCodes'].cast<String>().toList() : null,
  5730. positionCodes: map['PositionCodes'] != null ? map['PositionCodes'].cast<String>().toList() : null,
  5731. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  5732. rankName: map['RankName'],
  5733. positionName: map['PositionName'],
  5734. isDirector: map['IsDirector'],
  5735. deletePatientCodes: map['DeletePatientCodes'] != null ? map['DeletePatientCodes'].cast<String>().toList() : null,
  5736. bindAssistantUserCode: map['BindAssistantUserCode'],
  5737. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  5738. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  5739. signature: map['Signature'],
  5740. language: map['Language'],
  5741. enableReportLabel: map['EnableReportLabel'],
  5742. associatedInfos: map['AssociatedInfos'] != null ? (map['AssociatedInfos'] as List).map((e)=>AssociatedInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  5743. userCode: map['UserCode'],
  5744. userName: map['UserName'],
  5745. headImageUrl: map['HeadImageUrl'],
  5746. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  5747. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  5748. );
  5749. }
  5750. Map<String, dynamic> toJson() {
  5751. final map = super.toJson();
  5752. if(token != null)
  5753. map['Token'] = token;
  5754. return map;
  5755. }
  5756. }
  5757. class PublishReportTemplateRequest extends TokenRequest{
  5758. String? reportTemplateCode;
  5759. PublishReportTemplateRequest({
  5760. this.reportTemplateCode,
  5761. String? token,
  5762. }) : super(
  5763. token: token,
  5764. );
  5765. factory PublishReportTemplateRequest.fromJson(Map<String, dynamic> map) {
  5766. return PublishReportTemplateRequest(
  5767. reportTemplateCode: map['ReportTemplateCode'],
  5768. token: map['Token'],
  5769. );
  5770. }
  5771. Map<String, dynamic> toJson() {
  5772. final map = super.toJson();
  5773. if(reportTemplateCode != null)
  5774. map['ReportTemplateCode'] = reportTemplateCode;
  5775. return map;
  5776. }
  5777. }
  5778. class PublishThesaurusRequest extends TokenRequest{
  5779. String? thesaurusCode;
  5780. PublishThesaurusRequest({
  5781. this.thesaurusCode,
  5782. String? token,
  5783. }) : super(
  5784. token: token,
  5785. );
  5786. factory PublishThesaurusRequest.fromJson(Map<String, dynamic> map) {
  5787. return PublishThesaurusRequest(
  5788. thesaurusCode: map['ThesaurusCode'],
  5789. token: map['Token'],
  5790. );
  5791. }
  5792. Map<String, dynamic> toJson() {
  5793. final map = super.toJson();
  5794. if(thesaurusCode != null)
  5795. map['ThesaurusCode'] = thesaurusCode;
  5796. return map;
  5797. }
  5798. }
  5799. class QueryAnnouncementPageRequest extends PageRequest{
  5800. AnnouncementTypeEnum announcementType;
  5801. AnnouncementStatusEnum announcementStatus;
  5802. String? keyword;
  5803. DateTime? startTime;
  5804. DateTime? endTime;
  5805. QueryAnnouncementPageRequest({
  5806. this.announcementType = AnnouncementTypeEnum.Broadcast,
  5807. this.announcementStatus = AnnouncementStatusEnum.Released,
  5808. this.keyword,
  5809. this.startTime,
  5810. this.endTime,
  5811. int pageIndex = 0,
  5812. int pageSize = 0,
  5813. String? token,
  5814. }) : super(
  5815. pageIndex: pageIndex,
  5816. pageSize: pageSize,
  5817. token: token,
  5818. );
  5819. factory QueryAnnouncementPageRequest.fromJson(Map<String, dynamic> map) {
  5820. return QueryAnnouncementPageRequest(
  5821. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  5822. announcementStatus: AnnouncementStatusEnum.values.firstWhere((e) => e.index == map['AnnouncementStatus']),
  5823. keyword: map['Keyword'],
  5824. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  5825. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  5826. pageIndex: map['PageIndex'],
  5827. pageSize: map['PageSize'],
  5828. token: map['Token'],
  5829. );
  5830. }
  5831. Map<String, dynamic> toJson() {
  5832. final map = super.toJson();
  5833. map['AnnouncementType'] = announcementType.index;
  5834. map['AnnouncementStatus'] = announcementStatus.index;
  5835. if(keyword != null)
  5836. map['Keyword'] = keyword;
  5837. if(startTime != null)
  5838. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  5839. if(endTime != null)
  5840. map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
  5841. return map;
  5842. }
  5843. }
  5844. class QueryDeviceModelBindNumRequest extends TokenRequest{
  5845. String? deviceModelCode;
  5846. QueryDeviceModelBindNumRequest({
  5847. this.deviceModelCode,
  5848. String? token,
  5849. }) : super(
  5850. token: token,
  5851. );
  5852. factory QueryDeviceModelBindNumRequest.fromJson(Map<String, dynamic> map) {
  5853. return QueryDeviceModelBindNumRequest(
  5854. deviceModelCode: map['DeviceModelCode'],
  5855. token: map['Token'],
  5856. );
  5857. }
  5858. Map<String, dynamic> toJson() {
  5859. final map = super.toJson();
  5860. if(deviceModelCode != null)
  5861. map['DeviceModelCode'] = deviceModelCode;
  5862. return map;
  5863. }
  5864. }
  5865. class QueryRoleAdminNumRequest extends TokenRequest{
  5866. String? adminRoleCode;
  5867. QueryRoleAdminNumRequest({
  5868. this.adminRoleCode,
  5869. String? token,
  5870. }) : super(
  5871. token: token,
  5872. );
  5873. factory QueryRoleAdminNumRequest.fromJson(Map<String, dynamic> map) {
  5874. return QueryRoleAdminNumRequest(
  5875. adminRoleCode: map['AdminRoleCode'],
  5876. token: map['Token'],
  5877. );
  5878. }
  5879. Map<String, dynamic> toJson() {
  5880. final map = super.toJson();
  5881. if(adminRoleCode != null)
  5882. map['AdminRoleCode'] = adminRoleCode;
  5883. return map;
  5884. }
  5885. }
  5886. class QueryRoleUserNumRequest extends TokenRequest{
  5887. String? roleCode;
  5888. QueryRoleUserNumRequest({
  5889. this.roleCode,
  5890. String? token,
  5891. }) : super(
  5892. token: token,
  5893. );
  5894. factory QueryRoleUserNumRequest.fromJson(Map<String, dynamic> map) {
  5895. return QueryRoleUserNumRequest(
  5896. roleCode: map['RoleCode'],
  5897. token: map['Token'],
  5898. );
  5899. }
  5900. Map<String, dynamic> toJson() {
  5901. final map = super.toJson();
  5902. if(roleCode != null)
  5903. map['RoleCode'] = roleCode;
  5904. return map;
  5905. }
  5906. }
  5907. class RejectIdentityApplyRequest extends TokenRequest{
  5908. String? identityApplyCode;
  5909. String? rejectReason;
  5910. RejectIdentityApplyRequest({
  5911. this.identityApplyCode,
  5912. this.rejectReason,
  5913. String? token,
  5914. }) : super(
  5915. token: token,
  5916. );
  5917. factory RejectIdentityApplyRequest.fromJson(Map<String, dynamic> map) {
  5918. return RejectIdentityApplyRequest(
  5919. identityApplyCode: map['IdentityApplyCode'],
  5920. rejectReason: map['RejectReason'],
  5921. token: map['Token'],
  5922. );
  5923. }
  5924. Map<String, dynamic> toJson() {
  5925. final map = super.toJson();
  5926. if(identityApplyCode != null)
  5927. map['IdentityApplyCode'] = identityApplyCode;
  5928. if(rejectReason != null)
  5929. map['RejectReason'] = rejectReason;
  5930. return map;
  5931. }
  5932. }
  5933. class RemoveAdminRequest extends TokenRequest{
  5934. String? adminCode;
  5935. RemoveAdminRequest({
  5936. this.adminCode,
  5937. String? token,
  5938. }) : super(
  5939. token: token,
  5940. );
  5941. factory RemoveAdminRequest.fromJson(Map<String, dynamic> map) {
  5942. return RemoveAdminRequest(
  5943. adminCode: map['AdminCode'],
  5944. token: map['Token'],
  5945. );
  5946. }
  5947. Map<String, dynamic> toJson() {
  5948. final map = super.toJson();
  5949. if(adminCode != null)
  5950. map['AdminCode'] = adminCode;
  5951. return map;
  5952. }
  5953. }
  5954. class RemoveOrganizationRequest extends TokenRequest{
  5955. String? organizationCode;
  5956. RemoveOrganizationRequest({
  5957. this.organizationCode,
  5958. String? token,
  5959. }) : super(
  5960. token: token,
  5961. );
  5962. factory RemoveOrganizationRequest.fromJson(Map<String, dynamic> map) {
  5963. return RemoveOrganizationRequest(
  5964. organizationCode: map['OrganizationCode'],
  5965. token: map['Token'],
  5966. );
  5967. }
  5968. Map<String, dynamic> toJson() {
  5969. final map = super.toJson();
  5970. if(organizationCode != null)
  5971. map['OrganizationCode'] = organizationCode;
  5972. return map;
  5973. }
  5974. }
  5975. class RemoveReportLabelRequest extends TokenRequest{
  5976. String? reportLabelCode;
  5977. RemoveReportLabelRequest({
  5978. this.reportLabelCode,
  5979. String? token,
  5980. }) : super(
  5981. token: token,
  5982. );
  5983. factory RemoveReportLabelRequest.fromJson(Map<String, dynamic> map) {
  5984. return RemoveReportLabelRequest(
  5985. reportLabelCode: map['ReportLabelCode'],
  5986. token: map['Token'],
  5987. );
  5988. }
  5989. Map<String, dynamic> toJson() {
  5990. final map = super.toJson();
  5991. if(reportLabelCode != null)
  5992. map['ReportLabelCode'] = reportLabelCode;
  5993. return map;
  5994. }
  5995. }
  5996. class RemoveReportPosterRequest extends TokenRequest{
  5997. String? reportPosterCode;
  5998. RemoveReportPosterRequest({
  5999. this.reportPosterCode,
  6000. String? token,
  6001. }) : super(
  6002. token: token,
  6003. );
  6004. factory RemoveReportPosterRequest.fromJson(Map<String, dynamic> map) {
  6005. return RemoveReportPosterRequest(
  6006. reportPosterCode: map['ReportPosterCode'],
  6007. token: map['Token'],
  6008. );
  6009. }
  6010. Map<String, dynamic> toJson() {
  6011. final map = super.toJson();
  6012. if(reportPosterCode != null)
  6013. map['ReportPosterCode'] = reportPosterCode;
  6014. return map;
  6015. }
  6016. }
  6017. class RemoveUserRequest extends TokenRequest{
  6018. String? userCode;
  6019. RemoveUserRequest({
  6020. this.userCode,
  6021. String? token,
  6022. }) : super(
  6023. token: token,
  6024. );
  6025. factory RemoveUserRequest.fromJson(Map<String, dynamic> map) {
  6026. return RemoveUserRequest(
  6027. userCode: map['UserCode'],
  6028. token: map['Token'],
  6029. );
  6030. }
  6031. Map<String, dynamic> toJson() {
  6032. final map = super.toJson();
  6033. if(userCode != null)
  6034. map['UserCode'] = userCode;
  6035. return map;
  6036. }
  6037. }
  6038. class UnlockAccountRequest extends TokenRequest{
  6039. String? userCode;
  6040. UnlockAccountRequest({
  6041. this.userCode,
  6042. String? token,
  6043. }) : super(
  6044. token: token,
  6045. );
  6046. factory UnlockAccountRequest.fromJson(Map<String, dynamic> map) {
  6047. return UnlockAccountRequest(
  6048. userCode: map['UserCode'],
  6049. token: map['Token'],
  6050. );
  6051. }
  6052. Map<String, dynamic> toJson() {
  6053. final map = super.toJson();
  6054. if(userCode != null)
  6055. map['UserCode'] = userCode;
  6056. return map;
  6057. }
  6058. }
  6059. class ResetUserPasswordRequest extends TokenRequest{
  6060. String? userCode;
  6061. String? passWord;
  6062. ResetUserPasswordRequest({
  6063. this.userCode,
  6064. this.passWord,
  6065. String? token,
  6066. }) : super(
  6067. token: token,
  6068. );
  6069. factory ResetUserPasswordRequest.fromJson(Map<String, dynamic> map) {
  6070. return ResetUserPasswordRequest(
  6071. userCode: map['UserCode'],
  6072. passWord: map['PassWord'],
  6073. token: map['Token'],
  6074. );
  6075. }
  6076. Map<String, dynamic> toJson() {
  6077. final map = super.toJson();
  6078. if(userCode != null)
  6079. map['UserCode'] = userCode;
  6080. if(passWord != null)
  6081. map['PassWord'] = passWord;
  6082. return map;
  6083. }
  6084. }
  6085. class RetryPushReportRecordsRequest extends TokenRequest{
  6086. List<String >? codes;
  6087. RetryPushReportRecordsRequest({
  6088. this.codes,
  6089. String? token,
  6090. }) : super(
  6091. token: token,
  6092. );
  6093. factory RetryPushReportRecordsRequest.fromJson(Map<String, dynamic> map) {
  6094. return RetryPushReportRecordsRequest(
  6095. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  6096. token: map['Token'],
  6097. );
  6098. }
  6099. Map<String, dynamic> toJson() {
  6100. final map = super.toJson();
  6101. if(codes != null)
  6102. map['Codes'] = codes;
  6103. return map;
  6104. }
  6105. }
  6106. class SaveCMSTemplateDetailRequest extends TokenRequest{
  6107. String? cMSTemplateCode;
  6108. String? cMSTemplateName;
  6109. CMSTemplateStatusTypeEnum cMSTemplateStateType;
  6110. String? cMSTemplateJson;
  6111. bool isDefault;
  6112. SaveCMSTemplateDetailRequest({
  6113. this.cMSTemplateCode,
  6114. this.cMSTemplateName,
  6115. this.cMSTemplateStateType = CMSTemplateStatusTypeEnum.UnPublished,
  6116. this.cMSTemplateJson,
  6117. this.isDefault = false,
  6118. String? token,
  6119. }) : super(
  6120. token: token,
  6121. );
  6122. factory SaveCMSTemplateDetailRequest.fromJson(Map<String, dynamic> map) {
  6123. return SaveCMSTemplateDetailRequest(
  6124. cMSTemplateCode: map['CMSTemplateCode'],
  6125. cMSTemplateName: map['CMSTemplateName'],
  6126. cMSTemplateStateType: CMSTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['CMSTemplateStateType']),
  6127. cMSTemplateJson: map['CMSTemplateJson'],
  6128. isDefault: map['IsDefault'],
  6129. token: map['Token'],
  6130. );
  6131. }
  6132. Map<String, dynamic> toJson() {
  6133. final map = super.toJson();
  6134. if(cMSTemplateCode != null)
  6135. map['CMSTemplateCode'] = cMSTemplateCode;
  6136. if(cMSTemplateName != null)
  6137. map['CMSTemplateName'] = cMSTemplateName;
  6138. map['CMSTemplateStateType'] = cMSTemplateStateType.index;
  6139. if(cMSTemplateJson != null)
  6140. map['CMSTemplateJson'] = cMSTemplateJson;
  6141. map['IsDefault'] = isDefault;
  6142. return map;
  6143. }
  6144. }
  6145. class SaveReportLabelRequest extends TokenRequest{
  6146. String? reportLabelCode;
  6147. String? labelName;
  6148. String? languageCode;
  6149. ReportLabelUsageTypeEnum usageType;
  6150. List<String >? labelItems;
  6151. SaveReportLabelRequest({
  6152. this.reportLabelCode,
  6153. this.labelName,
  6154. this.languageCode,
  6155. this.usageType = ReportLabelUsageTypeEnum.People,
  6156. this.labelItems,
  6157. String? token,
  6158. }) : super(
  6159. token: token,
  6160. );
  6161. factory SaveReportLabelRequest.fromJson(Map<String, dynamic> map) {
  6162. return SaveReportLabelRequest(
  6163. reportLabelCode: map['ReportLabelCode'],
  6164. labelName: map['LabelName'],
  6165. languageCode: map['LanguageCode'],
  6166. usageType: ReportLabelUsageTypeEnum.values.firstWhere((e) => e.index == map['UsageType']),
  6167. labelItems: map['LabelItems'] != null ? map['LabelItems'].cast<String>().toList() : null,
  6168. token: map['Token'],
  6169. );
  6170. }
  6171. Map<String, dynamic> toJson() {
  6172. final map = super.toJson();
  6173. if(reportLabelCode != null)
  6174. map['ReportLabelCode'] = reportLabelCode;
  6175. if(labelName != null)
  6176. map['LabelName'] = labelName;
  6177. if(languageCode != null)
  6178. map['LanguageCode'] = languageCode;
  6179. map['UsageType'] = usageType.index;
  6180. if(labelItems != null)
  6181. map['LabelItems'] = labelItems;
  6182. return map;
  6183. }
  6184. }
  6185. enum ReportPosterTypeEnum {
  6186. Default,
  6187. BJAid,
  6188. }
  6189. enum ReportFormatEnum {
  6190. Json,
  6191. Xml,
  6192. }
  6193. class SaveReportPosterRequest extends TokenRequest{
  6194. String? reportPosterCode;
  6195. String? receiverName;
  6196. String? contact;
  6197. String? phone;
  6198. String? targetUrl;
  6199. String? template;
  6200. ReportPosterTypeEnum posterType;
  6201. ReportFormatEnum reportFormat;
  6202. int postTimeout;
  6203. SaveReportPosterRequest({
  6204. this.reportPosterCode,
  6205. this.receiverName,
  6206. this.contact,
  6207. this.phone,
  6208. this.targetUrl,
  6209. this.template,
  6210. this.posterType = ReportPosterTypeEnum.Default,
  6211. this.reportFormat = ReportFormatEnum.Json,
  6212. this.postTimeout = 0,
  6213. String? token,
  6214. }) : super(
  6215. token: token,
  6216. );
  6217. factory SaveReportPosterRequest.fromJson(Map<String, dynamic> map) {
  6218. return SaveReportPosterRequest(
  6219. reportPosterCode: map['ReportPosterCode'],
  6220. receiverName: map['ReceiverName'],
  6221. contact: map['Contact'],
  6222. phone: map['Phone'],
  6223. targetUrl: map['TargetUrl'],
  6224. template: map['Template'],
  6225. posterType: ReportPosterTypeEnum.values.firstWhere((e) => e.index == map['PosterType']),
  6226. reportFormat: ReportFormatEnum.values.firstWhere((e) => e.index == map['ReportFormat']),
  6227. postTimeout: map['PostTimeout'],
  6228. token: map['Token'],
  6229. );
  6230. }
  6231. Map<String, dynamic> toJson() {
  6232. final map = super.toJson();
  6233. if(reportPosterCode != null)
  6234. map['ReportPosterCode'] = reportPosterCode;
  6235. if(receiverName != null)
  6236. map['ReceiverName'] = receiverName;
  6237. if(contact != null)
  6238. map['Contact'] = contact;
  6239. if(phone != null)
  6240. map['Phone'] = phone;
  6241. if(targetUrl != null)
  6242. map['TargetUrl'] = targetUrl;
  6243. if(template != null)
  6244. map['Template'] = template;
  6245. map['PosterType'] = posterType.index;
  6246. map['ReportFormat'] = reportFormat.index;
  6247. map['PostTimeout'] = postTimeout;
  6248. return map;
  6249. }
  6250. }
  6251. class SaveThesaurusRequest extends ThesaurusDTO{
  6252. String? token;
  6253. SaveThesaurusRequest({
  6254. this.token,
  6255. String? thesaurusCode,
  6256. String? thesaurusName,
  6257. ThesaurusStatusTypeEnum thesaurusStateType = ThesaurusStatusTypeEnum.Unpublished,
  6258. ThesaurusTypeEnum thesaurusType = ThesaurusTypeEnum.Default,
  6259. ThesaurusUsageTypeEnum thesaurusUsageType = ThesaurusUsageTypeEnum.People,
  6260. String? organizationCode,
  6261. String? personalCode,
  6262. String? referenceThesaurusCode,
  6263. bool isDefault = false,
  6264. bool isUserDefault = false,
  6265. }) : super(
  6266. thesaurusCode: thesaurusCode,
  6267. thesaurusName: thesaurusName,
  6268. thesaurusStateType: thesaurusStateType,
  6269. thesaurusType: thesaurusType,
  6270. thesaurusUsageType: thesaurusUsageType,
  6271. organizationCode: organizationCode,
  6272. personalCode: personalCode,
  6273. referenceThesaurusCode: referenceThesaurusCode,
  6274. isDefault: isDefault,
  6275. isUserDefault: isUserDefault,
  6276. );
  6277. factory SaveThesaurusRequest.fromJson(Map<String, dynamic> map) {
  6278. return SaveThesaurusRequest(
  6279. token: map['Token'],
  6280. thesaurusCode: map['ThesaurusCode'],
  6281. thesaurusName: map['ThesaurusName'],
  6282. thesaurusStateType: ThesaurusStatusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusStateType']),
  6283. thesaurusType: ThesaurusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusType']),
  6284. thesaurusUsageType: ThesaurusUsageTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusUsageType']),
  6285. organizationCode: map['OrganizationCode'],
  6286. personalCode: map['PersonalCode'],
  6287. referenceThesaurusCode: map['ReferenceThesaurusCode'],
  6288. isDefault: map['IsDefault'],
  6289. isUserDefault: map['IsUserDefault'],
  6290. );
  6291. }
  6292. Map<String, dynamic> toJson() {
  6293. final map = super.toJson();
  6294. if(token != null)
  6295. map['Token'] = token;
  6296. return map;
  6297. }
  6298. }
  6299. class SettingReloadRequest extends TokenRequest{
  6300. String? settingKey;
  6301. SettingReloadRequest({
  6302. this.settingKey,
  6303. String? token,
  6304. }) : super(
  6305. token: token,
  6306. );
  6307. factory SettingReloadRequest.fromJson(Map<String, dynamic> map) {
  6308. return SettingReloadRequest(
  6309. settingKey: map['SettingKey'],
  6310. token: map['Token'],
  6311. );
  6312. }
  6313. Map<String, dynamic> toJson() {
  6314. final map = super.toJson();
  6315. if(settingKey != null)
  6316. map['SettingKey'] = settingKey;
  6317. return map;
  6318. }
  6319. }
  6320. class ShareDeviceRequest extends TokenRequest{
  6321. List<String >? userCodeList;
  6322. List<String >? deviceCodes;
  6323. ShareDeviceRequest({
  6324. this.userCodeList,
  6325. this.deviceCodes,
  6326. String? token,
  6327. }) : super(
  6328. token: token,
  6329. );
  6330. factory ShareDeviceRequest.fromJson(Map<String, dynamic> map) {
  6331. return ShareDeviceRequest(
  6332. userCodeList: map['UserCodeList'] != null ? map['UserCodeList'].cast<String>().toList() : null,
  6333. deviceCodes: map['DeviceCodes'] != null ? map['DeviceCodes'].cast<String>().toList() : null,
  6334. token: map['Token'],
  6335. );
  6336. }
  6337. Map<String, dynamic> toJson() {
  6338. final map = super.toJson();
  6339. if(userCodeList != null)
  6340. map['UserCodeList'] = userCodeList;
  6341. if(deviceCodes != null)
  6342. map['DeviceCodes'] = deviceCodes;
  6343. return map;
  6344. }
  6345. }
  6346. class ThesaurusItemRequest extends TokenRequest{
  6347. String? thesaurusItemCode;
  6348. ThesaurusItemTypeEnum thesaurusItemType;
  6349. String? thesaurusItemName;
  6350. String? parentItemCode;
  6351. String? thesaurusCode;
  6352. String? thesaurusItemDescription;
  6353. String? thesaurusItemConclusion;
  6354. ThesaurusItemRequest({
  6355. this.thesaurusItemCode,
  6356. this.thesaurusItemType = ThesaurusItemTypeEnum.Classification,
  6357. this.thesaurusItemName,
  6358. this.parentItemCode,
  6359. this.thesaurusCode,
  6360. this.thesaurusItemDescription,
  6361. this.thesaurusItemConclusion,
  6362. String? token,
  6363. }) : super(
  6364. token: token,
  6365. );
  6366. factory ThesaurusItemRequest.fromJson(Map<String, dynamic> map) {
  6367. return ThesaurusItemRequest(
  6368. thesaurusItemCode: map['ThesaurusItemCode'],
  6369. thesaurusItemType: ThesaurusItemTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusItemType']),
  6370. thesaurusItemName: map['ThesaurusItemName'],
  6371. parentItemCode: map['ParentItemCode'],
  6372. thesaurusCode: map['ThesaurusCode'],
  6373. thesaurusItemDescription: map['ThesaurusItemDescription'],
  6374. thesaurusItemConclusion: map['ThesaurusItemConclusion'],
  6375. token: map['Token'],
  6376. );
  6377. }
  6378. Map<String, dynamic> toJson() {
  6379. final map = super.toJson();
  6380. if(thesaurusItemCode != null)
  6381. map['ThesaurusItemCode'] = thesaurusItemCode;
  6382. map['ThesaurusItemType'] = thesaurusItemType.index;
  6383. if(thesaurusItemName != null)
  6384. map['ThesaurusItemName'] = thesaurusItemName;
  6385. if(parentItemCode != null)
  6386. map['ParentItemCode'] = parentItemCode;
  6387. if(thesaurusCode != null)
  6388. map['ThesaurusCode'] = thesaurusCode;
  6389. if(thesaurusItemDescription != null)
  6390. map['ThesaurusItemDescription'] = thesaurusItemDescription;
  6391. if(thesaurusItemConclusion != null)
  6392. map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
  6393. return map;
  6394. }
  6395. }
  6396. enum GradingConfigTypeEnum {
  6397. Switch,
  6398. Text,
  6399. }
  6400. class UpdateGradingProtectionConfigEnableRequest extends TokenRequest{
  6401. List<String >? codes;
  6402. GradingConfigTypeEnum configType;
  6403. String? value;
  6404. UpdateGradingProtectionConfigEnableRequest({
  6405. this.codes,
  6406. this.configType = GradingConfigTypeEnum.Switch,
  6407. this.value,
  6408. String? token,
  6409. }) : super(
  6410. token: token,
  6411. );
  6412. factory UpdateGradingProtectionConfigEnableRequest.fromJson(Map<String, dynamic> map) {
  6413. return UpdateGradingProtectionConfigEnableRequest(
  6414. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  6415. configType: GradingConfigTypeEnum.values.firstWhere((e) => e.index == map['ConfigType']),
  6416. value: map['Value'],
  6417. token: map['Token'],
  6418. );
  6419. }
  6420. Map<String, dynamic> toJson() {
  6421. final map = super.toJson();
  6422. if(codes != null)
  6423. map['Codes'] = codes;
  6424. map['ConfigType'] = configType.index;
  6425. if(value != null)
  6426. map['Value'] = value;
  6427. return map;
  6428. }
  6429. }
  6430. class FindVideosByCourseCodeRequest extends TokenRequest{
  6431. String? code;
  6432. String? courseCode;
  6433. FindVideosByCourseCodeRequest({
  6434. this.code,
  6435. this.courseCode,
  6436. String? token,
  6437. }) : super(
  6438. token: token,
  6439. );
  6440. factory FindVideosByCourseCodeRequest.fromJson(Map<String, dynamic> map) {
  6441. return FindVideosByCourseCodeRequest(
  6442. code: map['Code'],
  6443. courseCode: map['CourseCode'],
  6444. token: map['Token'],
  6445. );
  6446. }
  6447. Map<String, dynamic> toJson() {
  6448. final map = super.toJson();
  6449. if(code != null)
  6450. map['Code'] = code;
  6451. if(courseCode != null)
  6452. map['CourseCode'] = courseCode;
  6453. return map;
  6454. }
  6455. }
  6456. class GetOpLogsByCodesFormMasterRequest {
  6457. List<String >? codes;
  6458. GetOpLogsByCodesFormMasterRequest({
  6459. this.codes,
  6460. });
  6461. factory GetOpLogsByCodesFormMasterRequest.fromJson(Map<String, dynamic> map) {
  6462. return GetOpLogsByCodesFormMasterRequest(
  6463. codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
  6464. );
  6465. }
  6466. Map<String, dynamic> toJson() {
  6467. final map = Map<String, dynamic>();
  6468. if(codes != null)
  6469. map['Codes'] = codes;
  6470. return map;
  6471. }
  6472. }
  6473. class GetOpLogsFormMasterRequest {
  6474. int cursor;
  6475. String? sourceUrl;
  6476. GetOpLogsFormMasterRequest({
  6477. this.cursor = 0,
  6478. this.sourceUrl,
  6479. });
  6480. factory GetOpLogsFormMasterRequest.fromJson(Map<String, dynamic> map) {
  6481. return GetOpLogsFormMasterRequest(
  6482. cursor: map['Cursor'],
  6483. sourceUrl: map['SourceUrl'],
  6484. );
  6485. }
  6486. Map<String, dynamic> toJson() {
  6487. final map = Map<String, dynamic>();
  6488. map['Cursor'] = cursor;
  6489. if(sourceUrl != null)
  6490. map['SourceUrl'] = sourceUrl;
  6491. return map;
  6492. }
  6493. }
  6494. enum MongoDBActionTypeEnum {
  6495. InsertOne,
  6496. InsertOneAsync,
  6497. InsertMany,
  6498. InsertManyAsync,
  6499. DeleteOne,
  6500. DeleteOneAsync,
  6501. DeleteMany,
  6502. DeleteManyAsync,
  6503. FindOneAndDelete,
  6504. FindOneAndDeleteAsync,
  6505. ReplaceOne,
  6506. ReplaceOneAsync,
  6507. FindOneAndReplace,
  6508. FindOneAndReplaceAsync,
  6509. UpdateOne,
  6510. UpdateOneAsync,
  6511. UpdateMany,
  6512. UpdateManyAsync,
  6513. FindOneAndUpdate,
  6514. FindOneAndUpdateAsync,
  6515. }
  6516. class OperationLogDTO {
  6517. int id;
  6518. String? collectionName;
  6519. MongoDBActionTypeEnum actionType;
  6520. String? bsonContent;
  6521. String? filterContent;
  6522. DateTime? createTime;
  6523. String? code;
  6524. String? sourceUrl;
  6525. bool isSimple;
  6526. OperationLogDTO({
  6527. this.id = 0,
  6528. this.collectionName,
  6529. this.actionType = MongoDBActionTypeEnum.InsertOne,
  6530. this.bsonContent,
  6531. this.filterContent,
  6532. this.createTime,
  6533. this.code,
  6534. this.sourceUrl,
  6535. this.isSimple = false,
  6536. });
  6537. factory OperationLogDTO.fromJson(Map<String, dynamic> map) {
  6538. return OperationLogDTO(
  6539. id: map['Id'],
  6540. collectionName: map['CollectionName'],
  6541. actionType: MongoDBActionTypeEnum.values.firstWhere((e) => e.index == map['ActionType']),
  6542. bsonContent: map['BsonContent'],
  6543. filterContent: map['FilterContent'],
  6544. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6545. code: map['Code'],
  6546. sourceUrl: map['SourceUrl'],
  6547. isSimple: map['IsSimple'],
  6548. );
  6549. }
  6550. Map<String, dynamic> toJson() {
  6551. final map = Map<String, dynamic>();
  6552. map['Id'] = id;
  6553. if(collectionName != null)
  6554. map['CollectionName'] = collectionName;
  6555. map['ActionType'] = actionType.index;
  6556. if(bsonContent != null)
  6557. map['BsonContent'] = bsonContent;
  6558. if(filterContent != null)
  6559. map['FilterContent'] = filterContent;
  6560. if(createTime != null)
  6561. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  6562. if(code != null)
  6563. map['Code'] = code;
  6564. if(sourceUrl != null)
  6565. map['SourceUrl'] = sourceUrl;
  6566. map['IsSimple'] = isSimple;
  6567. return map;
  6568. }
  6569. }
  6570. class SyncCompleteOpLogsRequest {
  6571. List<OperationLogDTO >? oplogs;
  6572. SyncCompleteOpLogsRequest({
  6573. this.oplogs,
  6574. });
  6575. factory SyncCompleteOpLogsRequest.fromJson(Map<String, dynamic> map) {
  6576. return SyncCompleteOpLogsRequest(
  6577. oplogs: map['Oplogs'] != null ? (map['Oplogs'] as List).map((e)=>OperationLogDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6578. );
  6579. }
  6580. Map<String, dynamic> toJson() {
  6581. final map = Map<String, dynamic>();
  6582. if(oplogs != null)
  6583. map['Oplogs'] = oplogs;
  6584. return map;
  6585. }
  6586. }
  6587. class SyncOpLogToMasterRequest {
  6588. String? collectionName;
  6589. MongoDBActionTypeEnum actionType;
  6590. String? bsonContent;
  6591. String? filterContent;
  6592. DateTime? createTime;
  6593. String? sourceUrl;
  6594. String? code;
  6595. String? serverID;
  6596. bool isSimple;
  6597. SyncOpLogToMasterRequest({
  6598. this.collectionName,
  6599. this.actionType = MongoDBActionTypeEnum.InsertOne,
  6600. this.bsonContent,
  6601. this.filterContent,
  6602. this.createTime,
  6603. this.sourceUrl,
  6604. this.code,
  6605. this.serverID,
  6606. this.isSimple = false,
  6607. });
  6608. factory SyncOpLogToMasterRequest.fromJson(Map<String, dynamic> map) {
  6609. return SyncOpLogToMasterRequest(
  6610. collectionName: map['CollectionName'],
  6611. actionType: MongoDBActionTypeEnum.values.firstWhere((e) => e.index == map['ActionType']),
  6612. bsonContent: map['BsonContent'],
  6613. filterContent: map['FilterContent'],
  6614. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  6615. sourceUrl: map['SourceUrl'],
  6616. code: map['Code'],
  6617. serverID: map['ServerID'],
  6618. isSimple: map['IsSimple'],
  6619. );
  6620. }
  6621. Map<String, dynamic> toJson() {
  6622. final map = Map<String, dynamic>();
  6623. if(collectionName != null)
  6624. map['CollectionName'] = collectionName;
  6625. map['ActionType'] = actionType.index;
  6626. if(bsonContent != null)
  6627. map['BsonContent'] = bsonContent;
  6628. if(filterContent != null)
  6629. map['FilterContent'] = filterContent;
  6630. if(createTime != null)
  6631. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  6632. if(sourceUrl != null)
  6633. map['SourceUrl'] = sourceUrl;
  6634. if(code != null)
  6635. map['Code'] = code;
  6636. if(serverID != null)
  6637. map['ServerID'] = serverID;
  6638. map['IsSimple'] = isSimple;
  6639. return map;
  6640. }
  6641. }
  6642. class NotificationClientInfo {
  6643. String? clientId;
  6644. String? loginServerUrl;
  6645. NotificationClientInfo({
  6646. this.clientId,
  6647. this.loginServerUrl,
  6648. });
  6649. factory NotificationClientInfo.fromJson(Map<String, dynamic> map) {
  6650. return NotificationClientInfo(
  6651. clientId: map['ClientId'],
  6652. loginServerUrl: map['LoginServerUrl'],
  6653. );
  6654. }
  6655. Map<String, dynamic> toJson() {
  6656. final map = Map<String, dynamic>();
  6657. if(clientId != null)
  6658. map['ClientId'] = clientId;
  6659. if(loginServerUrl != null)
  6660. map['LoginServerUrl'] = loginServerUrl;
  6661. return map;
  6662. }
  6663. }
  6664. enum ConsultationMemeberAcceptStatus {
  6665. Default,
  6666. Accepted,
  6667. Rejected,
  6668. }
  6669. enum LiveConsultationRoleEnum {
  6670. Expert,
  6671. General,
  6672. OtherParticipant,
  6673. AssistantDoctor,
  6674. Assistant,
  6675. }
  6676. enum LiveConsultationRoomStatus {
  6677. Default,
  6678. Initiating,
  6679. Cancelled,
  6680. ConnectionTimeout,
  6681. Connected,
  6682. Closed,
  6683. }
  6684. enum VideoProtocol {
  6685. Rtmp,
  6686. Rtc,
  6687. }
  6688. class DeviceJoinLiveConsultationResult {
  6689. String? consultationCode;
  6690. String? deviceCode;
  6691. int roomNo;
  6692. int appId;
  6693. String? deviceSign;
  6694. List<LiveConsultationMember >? memberLiveDatas;
  6695. List<InteractiveBoardDataDTO >? interactiveBoardDatas;
  6696. DeviceJoinLiveConsultationResult({
  6697. this.consultationCode,
  6698. this.deviceCode,
  6699. this.roomNo = 0,
  6700. this.appId = 0,
  6701. this.deviceSign,
  6702. this.memberLiveDatas,
  6703. this.interactiveBoardDatas,
  6704. });
  6705. factory DeviceJoinLiveConsultationResult.fromJson(Map<String, dynamic> map) {
  6706. return DeviceJoinLiveConsultationResult(
  6707. consultationCode: map['ConsultationCode'],
  6708. deviceCode: map['DeviceCode'],
  6709. roomNo: map['RoomNo'],
  6710. appId: map['AppId'],
  6711. deviceSign: map['DeviceSign'],
  6712. memberLiveDatas: map['MemberLiveDatas'] != null ? (map['MemberLiveDatas'] as List).map((e)=>LiveConsultationMember.fromJson(e as Map<String,dynamic>)).toList() : null,
  6713. interactiveBoardDatas: map['InteractiveBoardDatas'] != null ? (map['InteractiveBoardDatas'] as List).map((e)=>InteractiveBoardDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  6714. );
  6715. }
  6716. Map<String, dynamic> toJson() {
  6717. final map = Map<String, dynamic>();
  6718. if(consultationCode != null)
  6719. map['ConsultationCode'] = consultationCode;
  6720. if(deviceCode != null)
  6721. map['DeviceCode'] = deviceCode;
  6722. map['RoomNo'] = roomNo;
  6723. map['AppId'] = appId;
  6724. if(deviceSign != null)
  6725. map['DeviceSign'] = deviceSign;
  6726. if(memberLiveDatas != null)
  6727. map['MemberLiveDatas'] = memberLiveDatas;
  6728. if(interactiveBoardDatas != null)
  6729. map['InteractiveBoardDatas'] = interactiveBoardDatas;
  6730. return map;
  6731. }
  6732. }
  6733. class LiveConsultationRoomDTO {
  6734. String? consultationCode;
  6735. LiveConsultationMember? initiator;
  6736. List<LiveConsultationMember >? members;
  6737. List<LiveConsultationMember >? devices;
  6738. LiveConsultationRoomStatus status;
  6739. int roomNo;
  6740. LiveConsultationRoomDTO({
  6741. this.consultationCode,
  6742. this.initiator,
  6743. this.members,
  6744. this.devices,
  6745. this.status = LiveConsultationRoomStatus.Default,
  6746. this.roomNo = 0,
  6747. });
  6748. factory LiveConsultationRoomDTO.fromJson(Map<String, dynamic> map) {
  6749. return LiveConsultationRoomDTO(
  6750. consultationCode: map['ConsultationCode'],
  6751. initiator: map['Initiator'] != null ? LiveConsultationMember.fromJson(map['Initiator']) : null,
  6752. members: map['Members'] != null ? (map['Members'] as List).map((e)=>LiveConsultationMember.fromJson(e as Map<String,dynamic>)).toList() : null,
  6753. devices: map['Devices'] != null ? (map['Devices'] as List).map((e)=>LiveConsultationMember.fromJson(e as Map<String,dynamic>)).toList() : null,
  6754. status: LiveConsultationRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  6755. roomNo: map['RoomNo'],
  6756. );
  6757. }
  6758. Map<String, dynamic> toJson() {
  6759. final map = Map<String, dynamic>();
  6760. if(consultationCode != null)
  6761. map['ConsultationCode'] = consultationCode;
  6762. if(initiator != null)
  6763. map['Initiator'] = initiator;
  6764. if(members != null)
  6765. map['Members'] = members;
  6766. if(devices != null)
  6767. map['Devices'] = devices;
  6768. map['Status'] = status.index;
  6769. map['RoomNo'] = roomNo;
  6770. return map;
  6771. }
  6772. }
  6773. enum BoardTypeEnum {
  6774. ReadOnly,
  6775. Ink,
  6776. Line,
  6777. Erase,
  6778. }
  6779. class FindConsultationSettingRequest extends TokenRequest{
  6780. String? version;
  6781. FindConsultationSettingRequest({
  6782. this.version,
  6783. String? token,
  6784. }) : super(
  6785. token: token,
  6786. );
  6787. factory FindConsultationSettingRequest.fromJson(Map<String, dynamic> map) {
  6788. return FindConsultationSettingRequest(
  6789. version: map['Version'],
  6790. token: map['Token'],
  6791. );
  6792. }
  6793. Map<String, dynamic> toJson() {
  6794. final map = super.toJson();
  6795. if(version != null)
  6796. map['Version'] = version;
  6797. return map;
  6798. }
  6799. }
  6800. class FindOrganizationBindExpertsRequest extends TokenRequest{
  6801. FindOrganizationBindExpertsRequest({
  6802. String? token,
  6803. }) : super(
  6804. token: token,
  6805. );
  6806. factory FindOrganizationBindExpertsRequest.fromJson(Map<String, dynamic> map) {
  6807. return FindOrganizationBindExpertsRequest(
  6808. token: map['Token'],
  6809. );
  6810. }
  6811. Map<String, dynamic> toJson() {
  6812. final map = super.toJson();
  6813. return map;
  6814. }
  6815. }
  6816. class GetEmergencyOrderRequest extends TokenRequest{
  6817. String? emergencySerialNumber;
  6818. GetEmergencyOrderRequest({
  6819. this.emergencySerialNumber,
  6820. String? token,
  6821. }) : super(
  6822. token: token,
  6823. );
  6824. factory GetEmergencyOrderRequest.fromJson(Map<String, dynamic> map) {
  6825. return GetEmergencyOrderRequest(
  6826. emergencySerialNumber: map['EmergencySerialNumber'],
  6827. token: map['Token'],
  6828. );
  6829. }
  6830. Map<String, dynamic> toJson() {
  6831. final map = super.toJson();
  6832. if(emergencySerialNumber != null)
  6833. map['EmergencySerialNumber'] = emergencySerialNumber;
  6834. return map;
  6835. }
  6836. }
  6837. enum AgeUnitsEnum {
  6838. Year,
  6839. YearAndMonth,
  6840. MonthAndWeek,
  6841. WeekAndDay,
  6842. }
  6843. enum AnnounceTypeEnum {
  6844. Broadcast,
  6845. Maintain,
  6846. }
  6847. enum MessageCategoryEnum {
  6848. Consultation,
  6849. Diagnosis,
  6850. Course,
  6851. }
  6852. enum BusinessModuleEnum {
  6853. placeHolder_0,
  6854. RemoteDiagnosis,
  6855. LivingConsultation,
  6856. LivingCourse,
  6857. DeviceLiving,
  6858. RemoteControl,
  6859. }
  6860. enum QueryCMSTemplateStatusTypeEnum {
  6861. UnPublished,
  6862. Published,
  6863. }
  6864. enum QueryCMSMessageStatusEnum {
  6865. UnRead,
  6866. Read,
  6867. }
  6868. enum CMSMessageStatusEnum {
  6869. UnRead,
  6870. Read,
  6871. }
  6872. enum StatisticsPlatformEnum {
  6873. Management,
  6874. CMS,
  6875. }
  6876. enum StatisticsBannerTypeEnum {
  6877. PlatActivity,
  6878. Devices,
  6879. Download,
  6880. }
  6881. enum QueryStatisticsBannerTypeEnum {
  6882. PlatActivity,
  6883. Devices,
  6884. Download,
  6885. }
  6886. enum LogEventLevel {
  6887. Verbose,
  6888. Debug,
  6889. Information,
  6890. Warning,
  6891. Error,
  6892. Fatal,
  6893. }
  6894. enum DiagnosisLabelEnum {
  6895. BIRads1,
  6896. Lipomyoma,
  6897. BIRads2,
  6898. BIRads3,
  6899. BIRads4A,
  6900. BIRads4B,
  6901. BIRads4C,
  6902. BIRads5,
  6903. IntrahepaticHyperechoic,
  6904. HHE,
  6905. CYST,
  6906. PossibleCancer,
  6907. FattyLiver,
  6908. DiffuseLesions,
  6909. Cirrhosis,
  6910. PCLD,
  6911. }
  6912. enum DiagnosisLiverLabelEnum {
  6913. BIRads1,
  6914. Hyperechoic,
  6915. HHE,
  6916. CYST,
  6917. PossibleCancer,
  6918. FattyLiver,
  6919. DiffuseLesions,
  6920. Cirrhosis,
  6921. PCLD,
  6922. }
  6923. enum FollowUpVisitStatusEnum {
  6924. Unknown,
  6925. PendingVisit,
  6926. VisitCompleted,
  6927. }
  6928. enum GestationalAgeOriginEnum {
  6929. GestationalAge,
  6930. IVF,
  6931. OospermForm,
  6932. BBT,
  6933. LMP,
  6934. }
  6935. enum GetUserListTypeEnum {
  6936. FullName,
  6937. Phone,
  6938. }
  6939. enum HeartbeatTypeEnum {
  6940. ClientToken,
  6941. TerminalToken,
  6942. ThirdpartyToken,
  6943. LiveState,
  6944. RTCState,
  6945. }
  6946. enum LiveMemberStatusEnum {
  6947. Default,
  6948. Accepted,
  6949. Rejected,
  6950. Joined,
  6951. Left,
  6952. }
  6953. enum LiveProtocolEnum {
  6954. placeHolder_0,
  6955. RTMP,
  6956. RTC,
  6957. }
  6958. enum LiveRoomStatus {
  6959. Default,
  6960. Initiating,
  6961. Cancelled,
  6962. ConnectionTimeout,
  6963. Connected,
  6964. Closed,
  6965. }
  6966. enum LoginProcessorTypeEnum {
  6967. Official,
  6968. Wechat,
  6969. Phone,
  6970. Email,
  6971. placeHolder_4,
  6972. placeHolder_5,
  6973. placeHolder_6,
  6974. placeHolder_7,
  6975. placeHolder_8,
  6976. placeHolder_9,
  6977. placeHolder_10,
  6978. placeHolder_11,
  6979. placeHolder_12,
  6980. placeHolder_13,
  6981. placeHolder_14,
  6982. placeHolder_15,
  6983. placeHolder_16,
  6984. placeHolder_17,
  6985. placeHolder_18,
  6986. placeHolder_19,
  6987. placeHolder_20,
  6988. placeHolder_21,
  6989. placeHolder_22,
  6990. placeHolder_23,
  6991. placeHolder_24,
  6992. placeHolder_25,
  6993. placeHolder_26,
  6994. placeHolder_27,
  6995. placeHolder_28,
  6996. placeHolder_29,
  6997. placeHolder_30,
  6998. placeHolder_31,
  6999. placeHolder_32,
  7000. placeHolder_33,
  7001. placeHolder_34,
  7002. placeHolder_35,
  7003. placeHolder_36,
  7004. placeHolder_37,
  7005. placeHolder_38,
  7006. placeHolder_39,
  7007. placeHolder_40,
  7008. placeHolder_41,
  7009. placeHolder_42,
  7010. placeHolder_43,
  7011. placeHolder_44,
  7012. placeHolder_45,
  7013. placeHolder_46,
  7014. placeHolder_47,
  7015. placeHolder_48,
  7016. placeHolder_49,
  7017. placeHolder_50,
  7018. placeHolder_51,
  7019. placeHolder_52,
  7020. placeHolder_53,
  7021. placeHolder_54,
  7022. placeHolder_55,
  7023. placeHolder_56,
  7024. placeHolder_57,
  7025. placeHolder_58,
  7026. placeHolder_59,
  7027. placeHolder_60,
  7028. placeHolder_61,
  7029. placeHolder_62,
  7030. placeHolder_63,
  7031. placeHolder_64,
  7032. placeHolder_65,
  7033. placeHolder_66,
  7034. placeHolder_67,
  7035. placeHolder_68,
  7036. placeHolder_69,
  7037. placeHolder_70,
  7038. placeHolder_71,
  7039. placeHolder_72,
  7040. placeHolder_73,
  7041. placeHolder_74,
  7042. placeHolder_75,
  7043. placeHolder_76,
  7044. placeHolder_77,
  7045. placeHolder_78,
  7046. placeHolder_79,
  7047. placeHolder_80,
  7048. placeHolder_81,
  7049. placeHolder_82,
  7050. placeHolder_83,
  7051. placeHolder_84,
  7052. placeHolder_85,
  7053. placeHolder_86,
  7054. placeHolder_87,
  7055. placeHolder_88,
  7056. placeHolder_89,
  7057. placeHolder_90,
  7058. placeHolder_91,
  7059. placeHolder_92,
  7060. placeHolder_93,
  7061. placeHolder_94,
  7062. placeHolder_95,
  7063. placeHolder_96,
  7064. placeHolder_97,
  7065. placeHolder_98,
  7066. placeHolder_99,
  7067. placeHolder_100,
  7068. placeHolder_101,
  7069. placeHolder_102,
  7070. placeHolder_103,
  7071. placeHolder_104,
  7072. placeHolder_105,
  7073. placeHolder_106,
  7074. placeHolder_107,
  7075. placeHolder_108,
  7076. placeHolder_109,
  7077. placeHolder_110,
  7078. placeHolder_111,
  7079. placeHolder_112,
  7080. placeHolder_113,
  7081. placeHolder_114,
  7082. placeHolder_115,
  7083. placeHolder_116,
  7084. placeHolder_117,
  7085. placeHolder_118,
  7086. placeHolder_119,
  7087. placeHolder_120,
  7088. placeHolder_121,
  7089. placeHolder_122,
  7090. placeHolder_123,
  7091. placeHolder_124,
  7092. placeHolder_125,
  7093. placeHolder_126,
  7094. placeHolder_127,
  7095. placeHolder_128,
  7096. placeHolder_129,
  7097. placeHolder_130,
  7098. placeHolder_131,
  7099. placeHolder_132,
  7100. placeHolder_133,
  7101. placeHolder_134,
  7102. placeHolder_135,
  7103. placeHolder_136,
  7104. placeHolder_137,
  7105. placeHolder_138,
  7106. placeHolder_139,
  7107. placeHolder_140,
  7108. placeHolder_141,
  7109. placeHolder_142,
  7110. placeHolder_143,
  7111. placeHolder_144,
  7112. placeHolder_145,
  7113. placeHolder_146,
  7114. placeHolder_147,
  7115. placeHolder_148,
  7116. placeHolder_149,
  7117. placeHolder_150,
  7118. placeHolder_151,
  7119. placeHolder_152,
  7120. placeHolder_153,
  7121. placeHolder_154,
  7122. placeHolder_155,
  7123. placeHolder_156,
  7124. placeHolder_157,
  7125. placeHolder_158,
  7126. placeHolder_159,
  7127. placeHolder_160,
  7128. placeHolder_161,
  7129. placeHolder_162,
  7130. placeHolder_163,
  7131. placeHolder_164,
  7132. placeHolder_165,
  7133. placeHolder_166,
  7134. placeHolder_167,
  7135. placeHolder_168,
  7136. placeHolder_169,
  7137. placeHolder_170,
  7138. placeHolder_171,
  7139. placeHolder_172,
  7140. placeHolder_173,
  7141. placeHolder_174,
  7142. placeHolder_175,
  7143. placeHolder_176,
  7144. placeHolder_177,
  7145. placeHolder_178,
  7146. placeHolder_179,
  7147. placeHolder_180,
  7148. placeHolder_181,
  7149. placeHolder_182,
  7150. placeHolder_183,
  7151. placeHolder_184,
  7152. placeHolder_185,
  7153. placeHolder_186,
  7154. placeHolder_187,
  7155. placeHolder_188,
  7156. placeHolder_189,
  7157. placeHolder_190,
  7158. placeHolder_191,
  7159. placeHolder_192,
  7160. placeHolder_193,
  7161. placeHolder_194,
  7162. placeHolder_195,
  7163. placeHolder_196,
  7164. placeHolder_197,
  7165. placeHolder_198,
  7166. placeHolder_199,
  7167. placeHolder_200,
  7168. placeHolder_201,
  7169. placeHolder_202,
  7170. placeHolder_203,
  7171. placeHolder_204,
  7172. placeHolder_205,
  7173. placeHolder_206,
  7174. placeHolder_207,
  7175. placeHolder_208,
  7176. placeHolder_209,
  7177. placeHolder_210,
  7178. placeHolder_211,
  7179. placeHolder_212,
  7180. placeHolder_213,
  7181. placeHolder_214,
  7182. placeHolder_215,
  7183. placeHolder_216,
  7184. placeHolder_217,
  7185. placeHolder_218,
  7186. placeHolder_219,
  7187. placeHolder_220,
  7188. placeHolder_221,
  7189. placeHolder_222,
  7190. placeHolder_223,
  7191. placeHolder_224,
  7192. placeHolder_225,
  7193. placeHolder_226,
  7194. placeHolder_227,
  7195. placeHolder_228,
  7196. placeHolder_229,
  7197. placeHolder_230,
  7198. placeHolder_231,
  7199. placeHolder_232,
  7200. placeHolder_233,
  7201. placeHolder_234,
  7202. placeHolder_235,
  7203. placeHolder_236,
  7204. placeHolder_237,
  7205. placeHolder_238,
  7206. placeHolder_239,
  7207. placeHolder_240,
  7208. placeHolder_241,
  7209. placeHolder_242,
  7210. placeHolder_243,
  7211. placeHolder_244,
  7212. placeHolder_245,
  7213. placeHolder_246,
  7214. placeHolder_247,
  7215. placeHolder_248,
  7216. placeHolder_249,
  7217. placeHolder_250,
  7218. placeHolder_251,
  7219. placeHolder_252,
  7220. placeHolder_253,
  7221. placeHolder_254,
  7222. placeHolder_255,
  7223. placeHolder_256,
  7224. placeHolder_257,
  7225. placeHolder_258,
  7226. placeHolder_259,
  7227. placeHolder_260,
  7228. placeHolder_261,
  7229. placeHolder_262,
  7230. placeHolder_263,
  7231. placeHolder_264,
  7232. placeHolder_265,
  7233. placeHolder_266,
  7234. placeHolder_267,
  7235. placeHolder_268,
  7236. placeHolder_269,
  7237. placeHolder_270,
  7238. placeHolder_271,
  7239. placeHolder_272,
  7240. placeHolder_273,
  7241. placeHolder_274,
  7242. placeHolder_275,
  7243. placeHolder_276,
  7244. placeHolder_277,
  7245. placeHolder_278,
  7246. placeHolder_279,
  7247. placeHolder_280,
  7248. placeHolder_281,
  7249. placeHolder_282,
  7250. placeHolder_283,
  7251. placeHolder_284,
  7252. placeHolder_285,
  7253. placeHolder_286,
  7254. placeHolder_287,
  7255. placeHolder_288,
  7256. placeHolder_289,
  7257. placeHolder_290,
  7258. placeHolder_291,
  7259. placeHolder_292,
  7260. placeHolder_293,
  7261. placeHolder_294,
  7262. placeHolder_295,
  7263. placeHolder_296,
  7264. placeHolder_297,
  7265. placeHolder_298,
  7266. placeHolder_299,
  7267. placeHolder_300,
  7268. placeHolder_301,
  7269. placeHolder_302,
  7270. placeHolder_303,
  7271. placeHolder_304,
  7272. placeHolder_305,
  7273. placeHolder_306,
  7274. placeHolder_307,
  7275. placeHolder_308,
  7276. placeHolder_309,
  7277. placeHolder_310,
  7278. placeHolder_311,
  7279. placeHolder_312,
  7280. placeHolder_313,
  7281. placeHolder_314,
  7282. placeHolder_315,
  7283. placeHolder_316,
  7284. placeHolder_317,
  7285. placeHolder_318,
  7286. placeHolder_319,
  7287. placeHolder_320,
  7288. placeHolder_321,
  7289. placeHolder_322,
  7290. placeHolder_323,
  7291. placeHolder_324,
  7292. placeHolder_325,
  7293. placeHolder_326,
  7294. placeHolder_327,
  7295. placeHolder_328,
  7296. placeHolder_329,
  7297. placeHolder_330,
  7298. placeHolder_331,
  7299. placeHolder_332,
  7300. placeHolder_333,
  7301. placeHolder_334,
  7302. placeHolder_335,
  7303. placeHolder_336,
  7304. placeHolder_337,
  7305. placeHolder_338,
  7306. placeHolder_339,
  7307. placeHolder_340,
  7308. placeHolder_341,
  7309. placeHolder_342,
  7310. placeHolder_343,
  7311. placeHolder_344,
  7312. placeHolder_345,
  7313. placeHolder_346,
  7314. placeHolder_347,
  7315. placeHolder_348,
  7316. placeHolder_349,
  7317. placeHolder_350,
  7318. placeHolder_351,
  7319. placeHolder_352,
  7320. placeHolder_353,
  7321. placeHolder_354,
  7322. placeHolder_355,
  7323. placeHolder_356,
  7324. placeHolder_357,
  7325. placeHolder_358,
  7326. placeHolder_359,
  7327. placeHolder_360,
  7328. placeHolder_361,
  7329. placeHolder_362,
  7330. placeHolder_363,
  7331. placeHolder_364,
  7332. placeHolder_365,
  7333. placeHolder_366,
  7334. placeHolder_367,
  7335. placeHolder_368,
  7336. placeHolder_369,
  7337. placeHolder_370,
  7338. placeHolder_371,
  7339. placeHolder_372,
  7340. placeHolder_373,
  7341. placeHolder_374,
  7342. placeHolder_375,
  7343. placeHolder_376,
  7344. placeHolder_377,
  7345. placeHolder_378,
  7346. placeHolder_379,
  7347. placeHolder_380,
  7348. placeHolder_381,
  7349. placeHolder_382,
  7350. placeHolder_383,
  7351. placeHolder_384,
  7352. placeHolder_385,
  7353. placeHolder_386,
  7354. placeHolder_387,
  7355. placeHolder_388,
  7356. placeHolder_389,
  7357. placeHolder_390,
  7358. placeHolder_391,
  7359. placeHolder_392,
  7360. placeHolder_393,
  7361. placeHolder_394,
  7362. placeHolder_395,
  7363. placeHolder_396,
  7364. placeHolder_397,
  7365. placeHolder_398,
  7366. placeHolder_399,
  7367. placeHolder_400,
  7368. placeHolder_401,
  7369. placeHolder_402,
  7370. placeHolder_403,
  7371. placeHolder_404,
  7372. placeHolder_405,
  7373. placeHolder_406,
  7374. placeHolder_407,
  7375. placeHolder_408,
  7376. placeHolder_409,
  7377. placeHolder_410,
  7378. placeHolder_411,
  7379. placeHolder_412,
  7380. placeHolder_413,
  7381. placeHolder_414,
  7382. placeHolder_415,
  7383. placeHolder_416,
  7384. placeHolder_417,
  7385. placeHolder_418,
  7386. placeHolder_419,
  7387. placeHolder_420,
  7388. placeHolder_421,
  7389. placeHolder_422,
  7390. placeHolder_423,
  7391. placeHolder_424,
  7392. placeHolder_425,
  7393. placeHolder_426,
  7394. placeHolder_427,
  7395. placeHolder_428,
  7396. placeHolder_429,
  7397. placeHolder_430,
  7398. placeHolder_431,
  7399. placeHolder_432,
  7400. placeHolder_433,
  7401. placeHolder_434,
  7402. placeHolder_435,
  7403. placeHolder_436,
  7404. placeHolder_437,
  7405. placeHolder_438,
  7406. placeHolder_439,
  7407. placeHolder_440,
  7408. placeHolder_441,
  7409. placeHolder_442,
  7410. placeHolder_443,
  7411. placeHolder_444,
  7412. placeHolder_445,
  7413. placeHolder_446,
  7414. placeHolder_447,
  7415. placeHolder_448,
  7416. placeHolder_449,
  7417. placeHolder_450,
  7418. placeHolder_451,
  7419. placeHolder_452,
  7420. placeHolder_453,
  7421. placeHolder_454,
  7422. placeHolder_455,
  7423. placeHolder_456,
  7424. placeHolder_457,
  7425. placeHolder_458,
  7426. placeHolder_459,
  7427. placeHolder_460,
  7428. placeHolder_461,
  7429. placeHolder_462,
  7430. placeHolder_463,
  7431. placeHolder_464,
  7432. placeHolder_465,
  7433. placeHolder_466,
  7434. placeHolder_467,
  7435. placeHolder_468,
  7436. placeHolder_469,
  7437. placeHolder_470,
  7438. placeHolder_471,
  7439. placeHolder_472,
  7440. placeHolder_473,
  7441. placeHolder_474,
  7442. placeHolder_475,
  7443. placeHolder_476,
  7444. placeHolder_477,
  7445. placeHolder_478,
  7446. placeHolder_479,
  7447. placeHolder_480,
  7448. placeHolder_481,
  7449. placeHolder_482,
  7450. placeHolder_483,
  7451. placeHolder_484,
  7452. placeHolder_485,
  7453. placeHolder_486,
  7454. placeHolder_487,
  7455. placeHolder_488,
  7456. placeHolder_489,
  7457. placeHolder_490,
  7458. placeHolder_491,
  7459. placeHolder_492,
  7460. placeHolder_493,
  7461. placeHolder_494,
  7462. placeHolder_495,
  7463. placeHolder_496,
  7464. placeHolder_497,
  7465. placeHolder_498,
  7466. placeHolder_499,
  7467. placeHolder_500,
  7468. placeHolder_501,
  7469. placeHolder_502,
  7470. placeHolder_503,
  7471. placeHolder_504,
  7472. placeHolder_505,
  7473. placeHolder_506,
  7474. placeHolder_507,
  7475. placeHolder_508,
  7476. placeHolder_509,
  7477. placeHolder_510,
  7478. placeHolder_511,
  7479. placeHolder_512,
  7480. placeHolder_513,
  7481. placeHolder_514,
  7482. placeHolder_515,
  7483. placeHolder_516,
  7484. placeHolder_517,
  7485. placeHolder_518,
  7486. placeHolder_519,
  7487. placeHolder_520,
  7488. placeHolder_521,
  7489. placeHolder_522,
  7490. placeHolder_523,
  7491. placeHolder_524,
  7492. placeHolder_525,
  7493. placeHolder_526,
  7494. placeHolder_527,
  7495. placeHolder_528,
  7496. placeHolder_529,
  7497. placeHolder_530,
  7498. placeHolder_531,
  7499. placeHolder_532,
  7500. placeHolder_533,
  7501. placeHolder_534,
  7502. placeHolder_535,
  7503. placeHolder_536,
  7504. placeHolder_537,
  7505. placeHolder_538,
  7506. placeHolder_539,
  7507. placeHolder_540,
  7508. placeHolder_541,
  7509. placeHolder_542,
  7510. placeHolder_543,
  7511. placeHolder_544,
  7512. placeHolder_545,
  7513. placeHolder_546,
  7514. placeHolder_547,
  7515. placeHolder_548,
  7516. placeHolder_549,
  7517. placeHolder_550,
  7518. placeHolder_551,
  7519. placeHolder_552,
  7520. placeHolder_553,
  7521. placeHolder_554,
  7522. placeHolder_555,
  7523. placeHolder_556,
  7524. placeHolder_557,
  7525. placeHolder_558,
  7526. placeHolder_559,
  7527. placeHolder_560,
  7528. placeHolder_561,
  7529. placeHolder_562,
  7530. placeHolder_563,
  7531. placeHolder_564,
  7532. placeHolder_565,
  7533. placeHolder_566,
  7534. placeHolder_567,
  7535. placeHolder_568,
  7536. placeHolder_569,
  7537. placeHolder_570,
  7538. placeHolder_571,
  7539. placeHolder_572,
  7540. placeHolder_573,
  7541. placeHolder_574,
  7542. placeHolder_575,
  7543. placeHolder_576,
  7544. placeHolder_577,
  7545. placeHolder_578,
  7546. placeHolder_579,
  7547. placeHolder_580,
  7548. placeHolder_581,
  7549. placeHolder_582,
  7550. placeHolder_583,
  7551. placeHolder_584,
  7552. placeHolder_585,
  7553. placeHolder_586,
  7554. placeHolder_587,
  7555. placeHolder_588,
  7556. placeHolder_589,
  7557. placeHolder_590,
  7558. placeHolder_591,
  7559. placeHolder_592,
  7560. placeHolder_593,
  7561. placeHolder_594,
  7562. placeHolder_595,
  7563. placeHolder_596,
  7564. placeHolder_597,
  7565. placeHolder_598,
  7566. placeHolder_599,
  7567. placeHolder_600,
  7568. placeHolder_601,
  7569. placeHolder_602,
  7570. placeHolder_603,
  7571. placeHolder_604,
  7572. placeHolder_605,
  7573. placeHolder_606,
  7574. placeHolder_607,
  7575. placeHolder_608,
  7576. placeHolder_609,
  7577. placeHolder_610,
  7578. placeHolder_611,
  7579. placeHolder_612,
  7580. placeHolder_613,
  7581. placeHolder_614,
  7582. placeHolder_615,
  7583. placeHolder_616,
  7584. placeHolder_617,
  7585. placeHolder_618,
  7586. placeHolder_619,
  7587. placeHolder_620,
  7588. placeHolder_621,
  7589. placeHolder_622,
  7590. placeHolder_623,
  7591. placeHolder_624,
  7592. placeHolder_625,
  7593. placeHolder_626,
  7594. placeHolder_627,
  7595. placeHolder_628,
  7596. placeHolder_629,
  7597. placeHolder_630,
  7598. placeHolder_631,
  7599. placeHolder_632,
  7600. placeHolder_633,
  7601. placeHolder_634,
  7602. placeHolder_635,
  7603. placeHolder_636,
  7604. placeHolder_637,
  7605. placeHolder_638,
  7606. placeHolder_639,
  7607. placeHolder_640,
  7608. placeHolder_641,
  7609. placeHolder_642,
  7610. placeHolder_643,
  7611. placeHolder_644,
  7612. placeHolder_645,
  7613. placeHolder_646,
  7614. placeHolder_647,
  7615. placeHolder_648,
  7616. placeHolder_649,
  7617. placeHolder_650,
  7618. placeHolder_651,
  7619. placeHolder_652,
  7620. placeHolder_653,
  7621. placeHolder_654,
  7622. placeHolder_655,
  7623. placeHolder_656,
  7624. placeHolder_657,
  7625. placeHolder_658,
  7626. placeHolder_659,
  7627. placeHolder_660,
  7628. placeHolder_661,
  7629. placeHolder_662,
  7630. placeHolder_663,
  7631. placeHolder_664,
  7632. placeHolder_665,
  7633. placeHolder_666,
  7634. placeHolder_667,
  7635. placeHolder_668,
  7636. placeHolder_669,
  7637. placeHolder_670,
  7638. placeHolder_671,
  7639. placeHolder_672,
  7640. placeHolder_673,
  7641. placeHolder_674,
  7642. placeHolder_675,
  7643. placeHolder_676,
  7644. placeHolder_677,
  7645. placeHolder_678,
  7646. placeHolder_679,
  7647. placeHolder_680,
  7648. placeHolder_681,
  7649. placeHolder_682,
  7650. placeHolder_683,
  7651. placeHolder_684,
  7652. placeHolder_685,
  7653. placeHolder_686,
  7654. placeHolder_687,
  7655. placeHolder_688,
  7656. placeHolder_689,
  7657. placeHolder_690,
  7658. placeHolder_691,
  7659. placeHolder_692,
  7660. placeHolder_693,
  7661. placeHolder_694,
  7662. placeHolder_695,
  7663. placeHolder_696,
  7664. placeHolder_697,
  7665. placeHolder_698,
  7666. placeHolder_699,
  7667. placeHolder_700,
  7668. placeHolder_701,
  7669. placeHolder_702,
  7670. placeHolder_703,
  7671. placeHolder_704,
  7672. placeHolder_705,
  7673. placeHolder_706,
  7674. placeHolder_707,
  7675. placeHolder_708,
  7676. placeHolder_709,
  7677. placeHolder_710,
  7678. placeHolder_711,
  7679. placeHolder_712,
  7680. placeHolder_713,
  7681. placeHolder_714,
  7682. placeHolder_715,
  7683. placeHolder_716,
  7684. placeHolder_717,
  7685. placeHolder_718,
  7686. placeHolder_719,
  7687. placeHolder_720,
  7688. placeHolder_721,
  7689. placeHolder_722,
  7690. placeHolder_723,
  7691. placeHolder_724,
  7692. placeHolder_725,
  7693. placeHolder_726,
  7694. placeHolder_727,
  7695. placeHolder_728,
  7696. placeHolder_729,
  7697. placeHolder_730,
  7698. placeHolder_731,
  7699. placeHolder_732,
  7700. placeHolder_733,
  7701. placeHolder_734,
  7702. placeHolder_735,
  7703. placeHolder_736,
  7704. placeHolder_737,
  7705. placeHolder_738,
  7706. placeHolder_739,
  7707. placeHolder_740,
  7708. placeHolder_741,
  7709. placeHolder_742,
  7710. placeHolder_743,
  7711. placeHolder_744,
  7712. placeHolder_745,
  7713. placeHolder_746,
  7714. placeHolder_747,
  7715. placeHolder_748,
  7716. placeHolder_749,
  7717. placeHolder_750,
  7718. placeHolder_751,
  7719. placeHolder_752,
  7720. placeHolder_753,
  7721. placeHolder_754,
  7722. placeHolder_755,
  7723. placeHolder_756,
  7724. placeHolder_757,
  7725. placeHolder_758,
  7726. placeHolder_759,
  7727. placeHolder_760,
  7728. placeHolder_761,
  7729. placeHolder_762,
  7730. placeHolder_763,
  7731. placeHolder_764,
  7732. placeHolder_765,
  7733. placeHolder_766,
  7734. placeHolder_767,
  7735. placeHolder_768,
  7736. placeHolder_769,
  7737. placeHolder_770,
  7738. placeHolder_771,
  7739. placeHolder_772,
  7740. placeHolder_773,
  7741. placeHolder_774,
  7742. placeHolder_775,
  7743. placeHolder_776,
  7744. placeHolder_777,
  7745. placeHolder_778,
  7746. placeHolder_779,
  7747. placeHolder_780,
  7748. placeHolder_781,
  7749. placeHolder_782,
  7750. placeHolder_783,
  7751. placeHolder_784,
  7752. placeHolder_785,
  7753. placeHolder_786,
  7754. placeHolder_787,
  7755. placeHolder_788,
  7756. placeHolder_789,
  7757. placeHolder_790,
  7758. placeHolder_791,
  7759. placeHolder_792,
  7760. placeHolder_793,
  7761. placeHolder_794,
  7762. placeHolder_795,
  7763. placeHolder_796,
  7764. placeHolder_797,
  7765. placeHolder_798,
  7766. placeHolder_799,
  7767. placeHolder_800,
  7768. placeHolder_801,
  7769. placeHolder_802,
  7770. placeHolder_803,
  7771. placeHolder_804,
  7772. placeHolder_805,
  7773. placeHolder_806,
  7774. placeHolder_807,
  7775. placeHolder_808,
  7776. placeHolder_809,
  7777. placeHolder_810,
  7778. placeHolder_811,
  7779. placeHolder_812,
  7780. placeHolder_813,
  7781. placeHolder_814,
  7782. placeHolder_815,
  7783. placeHolder_816,
  7784. placeHolder_817,
  7785. placeHolder_818,
  7786. placeHolder_819,
  7787. placeHolder_820,
  7788. placeHolder_821,
  7789. placeHolder_822,
  7790. placeHolder_823,
  7791. placeHolder_824,
  7792. placeHolder_825,
  7793. placeHolder_826,
  7794. placeHolder_827,
  7795. placeHolder_828,
  7796. placeHolder_829,
  7797. placeHolder_830,
  7798. placeHolder_831,
  7799. placeHolder_832,
  7800. placeHolder_833,
  7801. placeHolder_834,
  7802. placeHolder_835,
  7803. placeHolder_836,
  7804. placeHolder_837,
  7805. placeHolder_838,
  7806. placeHolder_839,
  7807. placeHolder_840,
  7808. placeHolder_841,
  7809. placeHolder_842,
  7810. placeHolder_843,
  7811. placeHolder_844,
  7812. placeHolder_845,
  7813. placeHolder_846,
  7814. placeHolder_847,
  7815. placeHolder_848,
  7816. placeHolder_849,
  7817. placeHolder_850,
  7818. placeHolder_851,
  7819. placeHolder_852,
  7820. placeHolder_853,
  7821. placeHolder_854,
  7822. placeHolder_855,
  7823. placeHolder_856,
  7824. placeHolder_857,
  7825. placeHolder_858,
  7826. placeHolder_859,
  7827. placeHolder_860,
  7828. placeHolder_861,
  7829. placeHolder_862,
  7830. placeHolder_863,
  7831. placeHolder_864,
  7832. placeHolder_865,
  7833. placeHolder_866,
  7834. placeHolder_867,
  7835. placeHolder_868,
  7836. placeHolder_869,
  7837. placeHolder_870,
  7838. placeHolder_871,
  7839. placeHolder_872,
  7840. placeHolder_873,
  7841. placeHolder_874,
  7842. placeHolder_875,
  7843. placeHolder_876,
  7844. placeHolder_877,
  7845. placeHolder_878,
  7846. placeHolder_879,
  7847. placeHolder_880,
  7848. placeHolder_881,
  7849. placeHolder_882,
  7850. placeHolder_883,
  7851. placeHolder_884,
  7852. placeHolder_885,
  7853. placeHolder_886,
  7854. placeHolder_887,
  7855. placeHolder_888,
  7856. placeHolder_889,
  7857. placeHolder_890,
  7858. placeHolder_891,
  7859. placeHolder_892,
  7860. placeHolder_893,
  7861. placeHolder_894,
  7862. placeHolder_895,
  7863. placeHolder_896,
  7864. placeHolder_897,
  7865. placeHolder_898,
  7866. placeHolder_899,
  7867. placeHolder_900,
  7868. placeHolder_901,
  7869. placeHolder_902,
  7870. placeHolder_903,
  7871. placeHolder_904,
  7872. placeHolder_905,
  7873. placeHolder_906,
  7874. placeHolder_907,
  7875. placeHolder_908,
  7876. placeHolder_909,
  7877. placeHolder_910,
  7878. placeHolder_911,
  7879. placeHolder_912,
  7880. placeHolder_913,
  7881. placeHolder_914,
  7882. placeHolder_915,
  7883. placeHolder_916,
  7884. placeHolder_917,
  7885. placeHolder_918,
  7886. placeHolder_919,
  7887. placeHolder_920,
  7888. placeHolder_921,
  7889. placeHolder_922,
  7890. placeHolder_923,
  7891. placeHolder_924,
  7892. placeHolder_925,
  7893. placeHolder_926,
  7894. placeHolder_927,
  7895. placeHolder_928,
  7896. placeHolder_929,
  7897. placeHolder_930,
  7898. placeHolder_931,
  7899. placeHolder_932,
  7900. placeHolder_933,
  7901. placeHolder_934,
  7902. placeHolder_935,
  7903. placeHolder_936,
  7904. placeHolder_937,
  7905. placeHolder_938,
  7906. placeHolder_939,
  7907. placeHolder_940,
  7908. placeHolder_941,
  7909. placeHolder_942,
  7910. placeHolder_943,
  7911. placeHolder_944,
  7912. placeHolder_945,
  7913. placeHolder_946,
  7914. placeHolder_947,
  7915. placeHolder_948,
  7916. placeHolder_949,
  7917. placeHolder_950,
  7918. placeHolder_951,
  7919. placeHolder_952,
  7920. placeHolder_953,
  7921. placeHolder_954,
  7922. placeHolder_955,
  7923. placeHolder_956,
  7924. placeHolder_957,
  7925. placeHolder_958,
  7926. placeHolder_959,
  7927. placeHolder_960,
  7928. placeHolder_961,
  7929. placeHolder_962,
  7930. placeHolder_963,
  7931. placeHolder_964,
  7932. placeHolder_965,
  7933. placeHolder_966,
  7934. placeHolder_967,
  7935. placeHolder_968,
  7936. placeHolder_969,
  7937. placeHolder_970,
  7938. placeHolder_971,
  7939. placeHolder_972,
  7940. placeHolder_973,
  7941. placeHolder_974,
  7942. placeHolder_975,
  7943. placeHolder_976,
  7944. placeHolder_977,
  7945. placeHolder_978,
  7946. placeHolder_979,
  7947. placeHolder_980,
  7948. placeHolder_981,
  7949. placeHolder_982,
  7950. placeHolder_983,
  7951. placeHolder_984,
  7952. placeHolder_985,
  7953. placeHolder_986,
  7954. placeHolder_987,
  7955. placeHolder_988,
  7956. placeHolder_989,
  7957. placeHolder_990,
  7958. placeHolder_991,
  7959. placeHolder_992,
  7960. placeHolder_993,
  7961. placeHolder_994,
  7962. placeHolder_995,
  7963. placeHolder_996,
  7964. placeHolder_997,
  7965. placeHolder_998,
  7966. Unregistered,
  7967. }
  7968. enum PatientGenderEnum {
  7969. NotFilled,
  7970. Male,
  7971. Female,
  7972. }
  7973. enum AnimalGenderEnum {
  7974. AnimalInfoNotFilled,
  7975. AnimalInfoMale,
  7976. AnimalInfoFemale,
  7977. }
  7978. enum RegionGradeEnum {
  7979. Country,
  7980. Province,
  7981. City,
  7982. Area,
  7983. }
  7984. enum RelevanceTypeEnum {
  7985. Course,
  7986. }
  7987. enum RemedicalAIDiagnosisStatusEnum {
  7988. Null,
  7989. NoObviousLesion,
  7990. Benign,
  7991. Malignant,
  7992. BenignAndMalignant,
  7993. }
  7994. enum RemedicalApparatusTypeEnum {
  7995. BreastOuterUpper,
  7996. BreastInnerUpper,
  7997. BreastOuterLower,
  7998. BreastInnerLower,
  7999. Lobe,
  8000. LobeOfUnder,
  8001. LobeOfInter,
  8002. Thyroid,
  8003. Abdomen,
  8004. }
  8005. enum RemedicalImageLocationTypeEnum {
  8006. BreastImageLocation,
  8007. LiverImageLocation,
  8008. ThyroidImageLocation,
  8009. PositionImageLocation,
  8010. }
  8011. enum RemedicalImagePositionTypeEnum {
  8012. None,
  8013. Left,
  8014. Right,
  8015. Middle,
  8016. }
  8017. enum ReportTemplateQueryTypeEnum {
  8018. All,
  8019. Personal,
  8020. Organization,
  8021. }
  8022. enum SyncTypeEnum {
  8023. Initiate,
  8024. Accept,
  8025. Reject,
  8026. CancelInitiate,
  8027. HeartRateJoin,
  8028. NetworkErr,
  8029. HeartRateLeave,
  8030. Leave,
  8031. Close,
  8032. ChangeMuteState,
  8033. ChangeVideoOpenState,
  8034. InviteIn,
  8035. CancelInviteIn,
  8036. AcceptIn,
  8037. RejectIn,
  8038. ChangeConsultationStatus,
  8039. Agree,
  8040. Notification,
  8041. EmergencyAccept,
  8042. ChangeControllingParameter,
  8043. SendInteractiveBoardData,
  8044. ChangeRoom,
  8045. SaveViewer,
  8046. DeleteViewer,
  8047. DeviceAcceptIn,
  8048. }
  8049. enum SyncServiceEnum {
  8050. Live,
  8051. LiveConsultation,
  8052. Notification,
  8053. ScanLogin,
  8054. }
  8055. enum WSConnectTypeEnum {
  8056. Default,
  8057. ConsultationSecondWindow,
  8058. EducationSecondWindow,
  8059. }
  8060. enum ASETypeEnum {
  8061. Off,
  8062. Max,
  8063. Mean,
  8064. Both,
  8065. }
  8066. enum StraightLineShapeEnum {
  8067. StraightLine,
  8068. HalfCircle,
  8069. AutoPWVSlope,
  8070. }
  8071. enum DefinitionMeasureItemsEnum {
  8072. Default,
  8073. UserDefined,
  8074. }
  8075. enum DefinitionPriorityEnum {
  8076. Notset,
  8077. Root,
  8078. Global,
  8079. GlobalCategory,
  8080. GlobalApp,
  8081. FactoryDefault,
  8082. OemDefault,
  8083. UserDefined,
  8084. }
  8085. enum MeasureTypeUnitEnum {
  8086. None,
  8087. AreaUnit,
  8088. VelocityUnit,
  8089. TimeUnit,
  8090. }
  8091. enum UnExecuteAction {
  8092. None,
  8093. OneStep,
  8094. AllSteps,
  8095. GeometryOnly,
  8096. }
  8097. class PriorityPair {
  8098. DefinitionPriorityEnum target;
  8099. DefinitionPriorityEnum? base;
  8100. PriorityPair({
  8101. this.target = DefinitionPriorityEnum.Notset,
  8102. this.base,
  8103. });
  8104. factory PriorityPair.fromJson(Map<String, dynamic> map) {
  8105. return PriorityPair(
  8106. target: DefinitionPriorityEnum.values.firstWhere((e) => e.index == map['Target']),
  8107. base: map['Base'] != null ? DefinitionPriorityEnum.values.firstWhere((e) => e.index == map['Base']) : null,
  8108. );
  8109. }
  8110. Map<String, dynamic> toJson() {
  8111. final map = Map<String, dynamic>();
  8112. map['Target'] = target.index;
  8113. if(base != null)
  8114. map['Base'] = base;
  8115. return map;
  8116. }
  8117. }
  8118. class DefinitionPriorityEnumExtension {
  8119. DefinitionPriorityEnumExtension();
  8120. factory DefinitionPriorityEnumExtension.fromJson(Map<String, dynamic> map) {
  8121. return DefinitionPriorityEnumExtension(
  8122. );
  8123. }
  8124. Map<String, dynamic> toJson() {
  8125. final map = Map<String, dynamic>();
  8126. return map;
  8127. }
  8128. }
  8129. enum TracePeakType {
  8130. Normal,
  8131. OnePeak,
  8132. TwoPeaks,
  8133. }
  8134. enum LineWeightType {
  8135. NormalWeight,
  8136. Thin,
  8137. }
  8138. enum IMTType {
  8139. placeHolder_0,
  8140. Post,
  8141. Ant,
  8142. Both,
  8143. }
  8144. enum MeasureSectionType {
  8145. None,
  8146. Root,
  8147. Application,
  8148. MeasureMode,
  8149. Group,
  8150. Folder,
  8151. Item,
  8152. Calculator,
  8153. OutPut,
  8154. Formular,
  8155. Processor,
  8156. TypeParams,
  8157. }
  8158. enum ModeTypeEnum {
  8159. Undefined,
  8160. Tissue,
  8161. Flow,
  8162. Doppler,
  8163. TissueTM,
  8164. }
  8165. enum ResourceDefPriorityEnum {
  8166. Root,
  8167. placeHolder_1,
  8168. placeHolder_2,
  8169. placeHolder_3,
  8170. placeHolder_4,
  8171. placeHolder_5,
  8172. placeHolder_6,
  8173. placeHolder_7,
  8174. placeHolder_8,
  8175. placeHolder_9,
  8176. placeHolder_10,
  8177. placeHolder_11,
  8178. placeHolder_12,
  8179. placeHolder_13,
  8180. placeHolder_14,
  8181. placeHolder_15,
  8182. placeHolder_16,
  8183. placeHolder_17,
  8184. placeHolder_18,
  8185. placeHolder_19,
  8186. placeHolder_20,
  8187. placeHolder_21,
  8188. placeHolder_22,
  8189. placeHolder_23,
  8190. placeHolder_24,
  8191. placeHolder_25,
  8192. placeHolder_26,
  8193. placeHolder_27,
  8194. placeHolder_28,
  8195. placeHolder_29,
  8196. placeHolder_30,
  8197. placeHolder_31,
  8198. placeHolder_32,
  8199. placeHolder_33,
  8200. placeHolder_34,
  8201. placeHolder_35,
  8202. placeHolder_36,
  8203. placeHolder_37,
  8204. placeHolder_38,
  8205. placeHolder_39,
  8206. FactoryDefault,
  8207. placeHolder_41,
  8208. placeHolder_42,
  8209. placeHolder_43,
  8210. placeHolder_44,
  8211. PackageDefault,
  8212. placeHolder_46,
  8213. placeHolder_47,
  8214. placeHolder_48,
  8215. placeHolder_49,
  8216. OemDefault,
  8217. placeHolder_51,
  8218. placeHolder_52,
  8219. placeHolder_53,
  8220. placeHolder_54,
  8221. placeHolder_55,
  8222. placeHolder_56,
  8223. placeHolder_57,
  8224. placeHolder_58,
  8225. placeHolder_59,
  8226. UserDefined,
  8227. }
  8228. enum Unit {
  8229. None,
  8230. percent,
  8231. fraction,
  8232. placeHolder_3,
  8233. placeHolder_4,
  8234. placeHolder_5,
  8235. placeHolder_6,
  8236. placeHolder_7,
  8237. placeHolder_8,
  8238. placeHolder_9,
  8239. cm,
  8240. mm,
  8241. inch,
  8242. ft,
  8243. placeHolder_14,
  8244. placeHolder_15,
  8245. placeHolder_16,
  8246. placeHolder_17,
  8247. placeHolder_18,
  8248. placeHolder_19,
  8249. s,
  8250. minute,
  8251. hour,
  8252. day,
  8253. week,
  8254. week_day,
  8255. Tick,
  8256. msec,
  8257. placeHolder_28,
  8258. placeHolder_29,
  8259. degree,
  8260. radian,
  8261. placeHolder_32,
  8262. placeHolder_33,
  8263. placeHolder_34,
  8264. placeHolder_35,
  8265. placeHolder_36,
  8266. placeHolder_37,
  8267. placeHolder_38,
  8268. placeHolder_39,
  8269. g,
  8270. mg,
  8271. ng,
  8272. kg,
  8273. oz,
  8274. lb,
  8275. lb_oz,
  8276. placeHolder_47,
  8277. placeHolder_48,
  8278. placeHolder_49,
  8279. cm2,
  8280. mm2,
  8281. m2,
  8282. placeHolder_53,
  8283. placeHolder_54,
  8284. placeHolder_55,
  8285. placeHolder_56,
  8286. placeHolder_57,
  8287. placeHolder_58,
  8288. placeHolder_59,
  8289. cm3,
  8290. mm3,
  8291. ml,
  8292. L,
  8293. placeHolder_64,
  8294. placeHolder_65,
  8295. placeHolder_66,
  8296. placeHolder_67,
  8297. placeHolder_68,
  8298. placeHolder_69,
  8299. cms,
  8300. mms,
  8301. ms,
  8302. placeHolder_73,
  8303. placeHolder_74,
  8304. placeHolder_75,
  8305. placeHolder_76,
  8306. placeHolder_77,
  8307. placeHolder_78,
  8308. placeHolder_79,
  8309. cms2,
  8310. mms2,
  8311. placeHolder_82,
  8312. placeHolder_83,
  8313. placeHolder_84,
  8314. placeHolder_85,
  8315. placeHolder_86,
  8316. placeHolder_87,
  8317. placeHolder_88,
  8318. placeHolder_89,
  8319. cm3s,
  8320. mls,
  8321. mlmin,
  8322. Lmin,
  8323. placeHolder_94,
  8324. placeHolder_95,
  8325. placeHolder_96,
  8326. placeHolder_97,
  8327. placeHolder_98,
  8328. placeHolder_99,
  8329. gcm3,
  8330. gml,
  8331. ngml,
  8332. placeHolder_103,
  8333. placeHolder_104,
  8334. placeHolder_105,
  8335. placeHolder_106,
  8336. placeHolder_107,
  8337. placeHolder_108,
  8338. placeHolder_109,
  8339. mmHg,
  8340. placeHolder_111,
  8341. placeHolder_112,
  8342. placeHolder_113,
  8343. placeHolder_114,
  8344. placeHolder_115,
  8345. placeHolder_116,
  8346. placeHolder_117,
  8347. placeHolder_118,
  8348. placeHolder_119,
  8349. mV,
  8350. placeHolder_121,
  8351. placeHolder_122,
  8352. placeHolder_123,
  8353. placeHolder_124,
  8354. placeHolder_125,
  8355. placeHolder_126,
  8356. placeHolder_127,
  8357. placeHolder_128,
  8358. placeHolder_129,
  8359. Hz,
  8360. KHz,
  8361. HR,
  8362. placeHolder_133,
  8363. placeHolder_134,
  8364. placeHolder_135,
  8365. placeHolder_136,
  8366. placeHolder_137,
  8367. placeHolder_138,
  8368. placeHolder_139,
  8369. cm3m2,
  8370. mlm2,
  8371. placeHolder_142,
  8372. placeHolder_143,
  8373. placeHolder_144,
  8374. placeHolder_145,
  8375. placeHolder_146,
  8376. placeHolder_147,
  8377. placeHolder_148,
  8378. placeHolder_149,
  8379. cm3sm2,
  8380. mlsm2,
  8381. placeHolder_152,
  8382. cm3minm2,
  8383. mlminm2,
  8384. Lminm2,
  8385. placeHolder_156,
  8386. placeHolder_157,
  8387. placeHolder_158,
  8388. placeHolder_159,
  8389. circs,
  8390. placeHolder_161,
  8391. placeHolder_162,
  8392. placeHolder_163,
  8393. placeHolder_164,
  8394. placeHolder_165,
  8395. placeHolder_166,
  8396. placeHolder_167,
  8397. placeHolder_168,
  8398. placeHolder_169,
  8399. mlbeat,
  8400. placeHolder_171,
  8401. placeHolder_172,
  8402. placeHolder_173,
  8403. placeHolder_174,
  8404. placeHolder_175,
  8405. placeHolder_176,
  8406. placeHolder_177,
  8407. placeHolder_178,
  8408. placeHolder_179,
  8409. mm2pa,
  8410. d1mpa,
  8411. kpa,
  8412. placeHolder_183,
  8413. placeHolder_184,
  8414. placeHolder_185,
  8415. placeHolder_186,
  8416. placeHolder_187,
  8417. placeHolder_188,
  8418. placeHolder_189,
  8419. mmHgs,
  8420. placeHolder_191,
  8421. placeHolder_192,
  8422. placeHolder_193,
  8423. placeHolder_194,
  8424. placeHolder_195,
  8425. placeHolder_196,
  8426. placeHolder_197,
  8427. placeHolder_198,
  8428. placeHolder_199,
  8429. gm2,
  8430. kgm2,
  8431. placeHolder_202,
  8432. placeHolder_203,
  8433. placeHolder_204,
  8434. placeHolder_205,
  8435. placeHolder_206,
  8436. placeHolder_207,
  8437. placeHolder_208,
  8438. placeHolder_209,
  8439. cm2m2,
  8440. placeHolder_211,
  8441. placeHolder_212,
  8442. placeHolder_213,
  8443. placeHolder_214,
  8444. placeHolder_215,
  8445. placeHolder_216,
  8446. placeHolder_217,
  8447. placeHolder_218,
  8448. placeHolder_219,
  8449. cmm2,
  8450. mmm2,
  8451. placeHolder_222,
  8452. placeHolder_223,
  8453. placeHolder_224,
  8454. placeHolder_225,
  8455. placeHolder_226,
  8456. placeHolder_227,
  8457. placeHolder_228,
  8458. placeHolder_229,
  8459. pers,
  8460. placeHolder_231,
  8461. placeHolder_232,
  8462. placeHolder_233,
  8463. placeHolder_234,
  8464. placeHolder_235,
  8465. placeHolder_236,
  8466. placeHolder_237,
  8467. placeHolder_238,
  8468. placeHolder_239,
  8469. placeHolder_240,
  8470. placeHolder_241,
  8471. placeHolder_242,
  8472. placeHolder_243,
  8473. placeHolder_244,
  8474. placeHolder_245,
  8475. placeHolder_246,
  8476. placeHolder_247,
  8477. placeHolder_248,
  8478. placeHolder_249,
  8479. Celsius,
  8480. Fahrenheit,
  8481. placeHolder_252,
  8482. placeHolder_253,
  8483. placeHolder_254,
  8484. placeHolder_255,
  8485. placeHolder_256,
  8486. placeHolder_257,
  8487. placeHolder_258,
  8488. placeHolder_259,
  8489. Ohm,
  8490. placeHolder_261,
  8491. placeHolder_262,
  8492. placeHolder_263,
  8493. placeHolder_264,
  8494. placeHolder_265,
  8495. placeHolder_266,
  8496. placeHolder_267,
  8497. placeHolder_268,
  8498. placeHolder_269,
  8499. mmHgml,
  8500. }
  8501. enum ArrowOrientation {
  8502. Down,
  8503. Left,
  8504. Up,
  8505. Right,
  8506. }
  8507. class UserScanInfo {
  8508. String? scanCode;
  8509. ScanLoginSource scanLoginSource;
  8510. Platform platform;
  8511. DateTime? createTime;
  8512. DateTime? expireTime;
  8513. String? installVersion;
  8514. LoginResult? loginResult;
  8515. UserScanInfo({
  8516. this.scanCode,
  8517. this.scanLoginSource = ScanLoginSource.PC,
  8518. this.platform = Platform.Windows,
  8519. this.createTime,
  8520. this.expireTime,
  8521. this.installVersion,
  8522. this.loginResult,
  8523. });
  8524. factory UserScanInfo.fromJson(Map<String, dynamic> map) {
  8525. return UserScanInfo(
  8526. scanCode: map['ScanCode'],
  8527. scanLoginSource: ScanLoginSource.values.firstWhere((e) => e.index == map['ScanLoginSource']),
  8528. platform: Platform.values.firstWhere((e) => e.index == map['Platform']),
  8529. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  8530. expireTime: map['ExpireTime'] != null ? DateTime.parse(map['ExpireTime']) : null,
  8531. installVersion: map['InstallVersion'],
  8532. loginResult: map['LoginResult'] != null ? LoginResult.fromJson(map['LoginResult']) : null,
  8533. );
  8534. }
  8535. Map<String, dynamic> toJson() {
  8536. final map = Map<String, dynamic>();
  8537. if(scanCode != null)
  8538. map['ScanCode'] = scanCode;
  8539. map['ScanLoginSource'] = scanLoginSource.index;
  8540. map['Platform'] = platform.index;
  8541. if(createTime != null)
  8542. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  8543. if(expireTime != null)
  8544. map['ExpireTime'] = JsonRpcUtils.dateFormat(expireTime!);
  8545. if(installVersion != null)
  8546. map['InstallVersion'] = installVersion;
  8547. if(loginResult != null)
  8548. map['LoginResult'] = loginResult;
  8549. return map;
  8550. }
  8551. }
  8552. class UserCMSDTO {
  8553. String? cMSData;
  8554. UserCMSDTO({
  8555. this.cMSData,
  8556. });
  8557. factory UserCMSDTO.fromJson(Map<String, dynamic> map) {
  8558. return UserCMSDTO(
  8559. cMSData: map['CMSData'],
  8560. );
  8561. }
  8562. Map<String, dynamic> toJson() {
  8563. final map = Map<String, dynamic>();
  8564. if(cMSData != null)
  8565. map['CMSData'] = cMSData;
  8566. return map;
  8567. }
  8568. }
  8569. class UserPasswordDTO extends BaseDTO{
  8570. String? userCode;
  8571. String? userName;
  8572. String? secretPassword;
  8573. String? phone;
  8574. String? email;
  8575. String? nickName;
  8576. String? fullName;
  8577. String? headImageUrl;
  8578. String? organizationCode;
  8579. String? rootOrganizationCode;
  8580. List<String >? authorityGroups;
  8581. List<String >? bindDevices;
  8582. String? lastIP;
  8583. int logintimes;
  8584. UserInfoStateEnum userState;
  8585. List<String >? roleCodes;
  8586. List<String >? rankCodes;
  8587. List<String >? positionCodes;
  8588. ApplyStateEnum applyState;
  8589. List<String >? fieldList;
  8590. List<String >? deletePatientCodes;
  8591. bool isBatchExportDiagnoseData;
  8592. String? bindAssistantUserCode;
  8593. String? bindAssistantDoctorUserCode;
  8594. DateTime? passwordUpdateTime;
  8595. List<String >? passwordRecords;
  8596. String? signature;
  8597. String? language;
  8598. bool enableReportLabel;
  8599. UserPasswordDTO({
  8600. this.userCode,
  8601. this.userName,
  8602. this.secretPassword,
  8603. this.phone,
  8604. this.email,
  8605. this.nickName,
  8606. this.fullName,
  8607. this.headImageUrl,
  8608. this.organizationCode,
  8609. this.rootOrganizationCode,
  8610. this.authorityGroups,
  8611. this.bindDevices,
  8612. this.lastIP,
  8613. this.logintimes = 0,
  8614. this.userState = UserInfoStateEnum.Nonactivated,
  8615. this.roleCodes,
  8616. this.rankCodes,
  8617. this.positionCodes,
  8618. this.applyState = ApplyStateEnum.NotApply,
  8619. this.fieldList,
  8620. this.deletePatientCodes,
  8621. this.isBatchExportDiagnoseData = false,
  8622. this.bindAssistantUserCode,
  8623. this.bindAssistantDoctorUserCode,
  8624. this.passwordUpdateTime,
  8625. this.passwordRecords,
  8626. this.signature,
  8627. this.language,
  8628. this.enableReportLabel = false,
  8629. DateTime? createTime,
  8630. DateTime? updateTime,
  8631. }) : super(
  8632. createTime: createTime,
  8633. updateTime: updateTime,
  8634. );
  8635. factory UserPasswordDTO.fromJson(Map<String, dynamic> map) {
  8636. return UserPasswordDTO(
  8637. userCode: map['UserCode'],
  8638. userName: map['UserName'],
  8639. secretPassword: map['SecretPassword'],
  8640. phone: map['Phone'],
  8641. email: map['Email'],
  8642. nickName: map['NickName'],
  8643. fullName: map['FullName'],
  8644. headImageUrl: map['HeadImageUrl'],
  8645. organizationCode: map['OrganizationCode'],
  8646. rootOrganizationCode: map['RootOrganizationCode'],
  8647. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  8648. bindDevices: map['BindDevices'] != null ? map['BindDevices'].cast<String>().toList() : null,
  8649. lastIP: map['LastIP'],
  8650. logintimes: map['Logintimes'],
  8651. userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
  8652. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  8653. rankCodes: map['RankCodes'] != null ? map['RankCodes'].cast<String>().toList() : null,
  8654. positionCodes: map['PositionCodes'] != null ? map['PositionCodes'].cast<String>().toList() : null,
  8655. applyState: ApplyStateEnum.values.firstWhere((e) => e.index == map['ApplyState']),
  8656. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  8657. deletePatientCodes: map['DeletePatientCodes'] != null ? map['DeletePatientCodes'].cast<String>().toList() : null,
  8658. isBatchExportDiagnoseData: map['IsBatchExportDiagnoseData'],
  8659. bindAssistantUserCode: map['BindAssistantUserCode'],
  8660. bindAssistantDoctorUserCode: map['BindAssistantDoctorUserCode'],
  8661. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  8662. passwordRecords: map['PasswordRecords'] != null ? map['PasswordRecords'].cast<String>().toList() : null,
  8663. signature: map['Signature'],
  8664. language: map['Language'],
  8665. enableReportLabel: map['EnableReportLabel'],
  8666. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  8667. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  8668. );
  8669. }
  8670. Map<String, dynamic> toJson() {
  8671. final map = super.toJson();
  8672. if(userCode != null)
  8673. map['UserCode'] = userCode;
  8674. if(userName != null)
  8675. map['UserName'] = userName;
  8676. if(secretPassword != null)
  8677. map['SecretPassword'] = secretPassword;
  8678. if(phone != null)
  8679. map['Phone'] = phone;
  8680. if(email != null)
  8681. map['Email'] = email;
  8682. if(nickName != null)
  8683. map['NickName'] = nickName;
  8684. if(fullName != null)
  8685. map['FullName'] = fullName;
  8686. if(headImageUrl != null)
  8687. map['HeadImageUrl'] = headImageUrl;
  8688. if(organizationCode != null)
  8689. map['OrganizationCode'] = organizationCode;
  8690. if(rootOrganizationCode != null)
  8691. map['RootOrganizationCode'] = rootOrganizationCode;
  8692. if(authorityGroups != null)
  8693. map['AuthorityGroups'] = authorityGroups;
  8694. if(bindDevices != null)
  8695. map['BindDevices'] = bindDevices;
  8696. if(lastIP != null)
  8697. map['LastIP'] = lastIP;
  8698. map['Logintimes'] = logintimes;
  8699. map['UserState'] = userState.index;
  8700. if(roleCodes != null)
  8701. map['RoleCodes'] = roleCodes;
  8702. if(rankCodes != null)
  8703. map['RankCodes'] = rankCodes;
  8704. if(positionCodes != null)
  8705. map['PositionCodes'] = positionCodes;
  8706. map['ApplyState'] = applyState.index;
  8707. if(fieldList != null)
  8708. map['FieldList'] = fieldList;
  8709. if(deletePatientCodes != null)
  8710. map['DeletePatientCodes'] = deletePatientCodes;
  8711. map['IsBatchExportDiagnoseData'] = isBatchExportDiagnoseData;
  8712. if(bindAssistantUserCode != null)
  8713. map['BindAssistantUserCode'] = bindAssistantUserCode;
  8714. if(bindAssistantDoctorUserCode != null)
  8715. map['BindAssistantDoctorUserCode'] = bindAssistantDoctorUserCode;
  8716. if(passwordUpdateTime != null)
  8717. map['PasswordUpdateTime'] = JsonRpcUtils.dateFormat(passwordUpdateTime!);
  8718. if(passwordRecords != null)
  8719. map['PasswordRecords'] = passwordRecords;
  8720. if(signature != null)
  8721. map['Signature'] = signature;
  8722. if(language != null)
  8723. map['Language'] = language;
  8724. map['EnableReportLabel'] = enableReportLabel;
  8725. return map;
  8726. }
  8727. }
  8728. class UserTokenDTO {
  8729. String? token;
  8730. bool passwordExpired;
  8731. UserTokenDTO({
  8732. this.token,
  8733. this.passwordExpired = false,
  8734. });
  8735. factory UserTokenDTO.fromJson(Map<String, dynamic> map) {
  8736. return UserTokenDTO(
  8737. token: map['Token'],
  8738. passwordExpired: map['PasswordExpired'],
  8739. );
  8740. }
  8741. Map<String, dynamic> toJson() {
  8742. final map = Map<String, dynamic>();
  8743. if(token != null)
  8744. map['Token'] = token;
  8745. map['PasswordExpired'] = passwordExpired;
  8746. return map;
  8747. }
  8748. }
  8749. class BaseFeatureItemBaseDTO<T> {
  8750. String? id;
  8751. String? label;
  8752. String? fatherCode;
  8753. String? uniqueCode;
  8754. List<T>? children;
  8755. BaseFeatureItemBaseDTO({
  8756. this.id,
  8757. this.label,
  8758. this.fatherCode,
  8759. this.uniqueCode,
  8760. this.children,
  8761. });
  8762. factory BaseFeatureItemBaseDTO.fromJson(Map<String, dynamic> map) {
  8763. List<T> childrenList = [];
  8764. if (map['Children'] != null) {
  8765. childrenList.addAll(
  8766. (map['Children'] as List).map((e) => FJsonConvert.fromJson<T>(e)!));
  8767. }
  8768. return BaseFeatureItemBaseDTO(
  8769. id: map['Id'],
  8770. label: map['Label'],
  8771. fatherCode: map['FatherCode'],
  8772. uniqueCode: map['UniqueCode'],
  8773. children: childrenList,
  8774. );
  8775. }
  8776. Map<String, dynamic> toJson() {
  8777. final map = Map<String, dynamic>();
  8778. if(id != null)
  8779. map['Id'] = id;
  8780. if(label != null)
  8781. map['Label'] = label;
  8782. if(fatherCode != null)
  8783. map['FatherCode'] = fatherCode;
  8784. if(uniqueCode != null)
  8785. map['UniqueCode'] = uniqueCode;
  8786. if(children != null)
  8787. map['Children'] = children;
  8788. return map;
  8789. }
  8790. }
  8791. class UserFeatureItemDTO extends BaseFeatureItemBaseDTO<UserFeatureItemDTO>{
  8792. UserFeatureItemDTO(
  8793. );
  8794. factory UserFeatureItemDTO.fromJson(Map<String, dynamic> map) {
  8795. return UserFeatureItemDTO(
  8796. );
  8797. }
  8798. Map<String, dynamic> toJson() {
  8799. final map = super.toJson();
  8800. return map;
  8801. }
  8802. }
  8803. class UserAuthorityGroupDTO extends BaseDTO{
  8804. String? userGroupCode;
  8805. String? description;
  8806. List<String >? adminCodes;
  8807. List<String >? features;
  8808. String? createAdmin;
  8809. UserAuthorityGroupDTO({
  8810. this.userGroupCode,
  8811. this.description,
  8812. this.adminCodes,
  8813. this.features,
  8814. this.createAdmin,
  8815. DateTime? createTime,
  8816. DateTime? updateTime,
  8817. }) : super(
  8818. createTime: createTime,
  8819. updateTime: updateTime,
  8820. );
  8821. factory UserAuthorityGroupDTO.fromJson(Map<String, dynamic> map) {
  8822. return UserAuthorityGroupDTO(
  8823. userGroupCode: map['UserGroupCode'],
  8824. description: map['Description'],
  8825. adminCodes: map['AdminCodes'] != null ? map['AdminCodes'].cast<String>().toList() : null,
  8826. features: map['Features'] != null ? map['Features'].cast<String>().toList() : null,
  8827. createAdmin: map['CreateAdmin'],
  8828. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  8829. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  8830. );
  8831. }
  8832. Map<String, dynamic> toJson() {
  8833. final map = super.toJson();
  8834. if(userGroupCode != null)
  8835. map['UserGroupCode'] = userGroupCode;
  8836. if(description != null)
  8837. map['Description'] = description;
  8838. if(adminCodes != null)
  8839. map['AdminCodes'] = adminCodes;
  8840. if(features != null)
  8841. map['Features'] = features;
  8842. if(createAdmin != null)
  8843. map['CreateAdmin'] = createAdmin;
  8844. return map;
  8845. }
  8846. }
  8847. class StorageInfoDTO extends BaseDTO{
  8848. String? token;
  8849. String? fileName;
  8850. String? storageRoute;
  8851. StorageInfoDTO({
  8852. this.token,
  8853. this.fileName,
  8854. this.storageRoute,
  8855. DateTime? createTime,
  8856. DateTime? updateTime,
  8857. }) : super(
  8858. createTime: createTime,
  8859. updateTime: updateTime,
  8860. );
  8861. factory StorageInfoDTO.fromJson(Map<String, dynamic> map) {
  8862. return StorageInfoDTO(
  8863. token: map['Token'],
  8864. fileName: map['FileName'],
  8865. storageRoute: map['StorageRoute'],
  8866. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  8867. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  8868. );
  8869. }
  8870. Map<String, dynamic> toJson() {
  8871. final map = super.toJson();
  8872. if(token != null)
  8873. map['Token'] = token;
  8874. if(fileName != null)
  8875. map['FileName'] = fileName;
  8876. if(storageRoute != null)
  8877. map['StorageRoute'] = storageRoute;
  8878. return map;
  8879. }
  8880. }
  8881. class StatisticDTO extends BaseDTO{
  8882. String? statisticCode;
  8883. String? name;
  8884. String? description;
  8885. String? intervalSetting;
  8886. bool enabled;
  8887. String? handleClass;
  8888. String? serverHost;
  8889. StatisticDTO({
  8890. this.statisticCode,
  8891. this.name,
  8892. this.description,
  8893. this.intervalSetting,
  8894. this.enabled = false,
  8895. this.handleClass,
  8896. this.serverHost,
  8897. DateTime? createTime,
  8898. DateTime? updateTime,
  8899. }) : super(
  8900. createTime: createTime,
  8901. updateTime: updateTime,
  8902. );
  8903. factory StatisticDTO.fromJson(Map<String, dynamic> map) {
  8904. return StatisticDTO(
  8905. statisticCode: map['StatisticCode'],
  8906. name: map['Name'],
  8907. description: map['Description'],
  8908. intervalSetting: map['IntervalSetting'],
  8909. enabled: map['Enabled'],
  8910. handleClass: map['HandleClass'],
  8911. serverHost: map['ServerHost'],
  8912. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  8913. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  8914. );
  8915. }
  8916. Map<String, dynamic> toJson() {
  8917. final map = super.toJson();
  8918. if(statisticCode != null)
  8919. map['StatisticCode'] = statisticCode;
  8920. if(name != null)
  8921. map['Name'] = name;
  8922. if(description != null)
  8923. map['Description'] = description;
  8924. if(intervalSetting != null)
  8925. map['IntervalSetting'] = intervalSetting;
  8926. map['Enabled'] = enabled;
  8927. if(handleClass != null)
  8928. map['HandleClass'] = handleClass;
  8929. if(serverHost != null)
  8930. map['ServerHost'] = serverHost;
  8931. return map;
  8932. }
  8933. }
  8934. class StatisticInfoDTO {
  8935. List<String >? xAxisDatas;
  8936. List<List<double> >? yAxisDatas;
  8937. List<StatisticInfoDTO >? children;
  8938. StatisticInfoDTO({
  8939. this.xAxisDatas,
  8940. this.yAxisDatas,
  8941. this.children,
  8942. });
  8943. factory StatisticInfoDTO.fromJson(Map<String, dynamic> map) {
  8944. return StatisticInfoDTO(
  8945. xAxisDatas: map['XAxisDatas'] != null ? map['XAxisDatas'].cast<String>().toList() : null,
  8946. yAxisDatas: map['YAxisDatas'] != null ? map['YAxisDatas'].cast<List<double>>().toList() : null,
  8947. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8948. );
  8949. }
  8950. Map<String, dynamic> toJson() {
  8951. final map = Map<String, dynamic>();
  8952. if(xAxisDatas != null)
  8953. map['XAxisDatas'] = xAxisDatas;
  8954. if(yAxisDatas != null)
  8955. map['YAxisDatas'] = yAxisDatas;
  8956. if(children != null)
  8957. map['Children'] = children;
  8958. return map;
  8959. }
  8960. }
  8961. class StatisticRecordDTO extends BaseDTO{
  8962. String? statisticRecordCode;
  8963. String? statisticCode;
  8964. String? statisticName;
  8965. String? userCode;
  8966. DateTime? lastestUpdateTime;
  8967. DateTime? nextHandleTime;
  8968. List<String >? xAxisDatas;
  8969. List<List<double> >? yAxisDatas;
  8970. List<StatisticInfoDTO >? children;
  8971. StatisticRecordDTO({
  8972. this.statisticRecordCode,
  8973. this.statisticCode,
  8974. this.statisticName,
  8975. this.userCode,
  8976. this.lastestUpdateTime,
  8977. this.nextHandleTime,
  8978. this.xAxisDatas,
  8979. this.yAxisDatas,
  8980. this.children,
  8981. DateTime? createTime,
  8982. DateTime? updateTime,
  8983. }) : super(
  8984. createTime: createTime,
  8985. updateTime: updateTime,
  8986. );
  8987. factory StatisticRecordDTO.fromJson(Map<String, dynamic> map) {
  8988. return StatisticRecordDTO(
  8989. statisticRecordCode: map['StatisticRecordCode'],
  8990. statisticCode: map['StatisticCode'],
  8991. statisticName: map['StatisticName'],
  8992. userCode: map['UserCode'],
  8993. lastestUpdateTime: map['LastestUpdateTime'] != null ? DateTime.parse(map['LastestUpdateTime']) : null,
  8994. nextHandleTime: map['NextHandleTime'] != null ? DateTime.parse(map['NextHandleTime']) : null,
  8995. xAxisDatas: map['XAxisDatas'] != null ? map['XAxisDatas'].cast<String>().toList() : null,
  8996. yAxisDatas: map['YAxisDatas'] != null ? map['YAxisDatas'].cast<List<double>>().toList() : null,
  8997. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  8998. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  8999. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9000. );
  9001. }
  9002. Map<String, dynamic> toJson() {
  9003. final map = super.toJson();
  9004. if(statisticRecordCode != null)
  9005. map['StatisticRecordCode'] = statisticRecordCode;
  9006. if(statisticCode != null)
  9007. map['StatisticCode'] = statisticCode;
  9008. if(statisticName != null)
  9009. map['StatisticName'] = statisticName;
  9010. if(userCode != null)
  9011. map['UserCode'] = userCode;
  9012. if(lastestUpdateTime != null)
  9013. map['LastestUpdateTime'] = JsonRpcUtils.dateFormat(lastestUpdateTime!);
  9014. if(nextHandleTime != null)
  9015. map['NextHandleTime'] = JsonRpcUtils.dateFormat(nextHandleTime!);
  9016. if(xAxisDatas != null)
  9017. map['XAxisDatas'] = xAxisDatas;
  9018. if(yAxisDatas != null)
  9019. map['YAxisDatas'] = yAxisDatas;
  9020. if(children != null)
  9021. map['Children'] = children;
  9022. return map;
  9023. }
  9024. }
  9025. class ServerListResult extends BaseServerResult{
  9026. bool isDistributed;
  9027. List<ServerInfoDTO >? serverList;
  9028. ServerListResult({
  9029. this.isDistributed = false,
  9030. this.serverList,
  9031. int code = 0,
  9032. }) : super(
  9033. code: code,
  9034. );
  9035. factory ServerListResult.fromJson(Map<String, dynamic> map) {
  9036. return ServerListResult(
  9037. isDistributed: map['IsDistributed'],
  9038. serverList: map['ServerList'] != null ? (map['ServerList'] as List).map((e)=>ServerInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9039. code: map['Code'],
  9040. );
  9041. }
  9042. Map<String, dynamic> toJson() {
  9043. final map = super.toJson();
  9044. map['IsDistributed'] = isDistributed;
  9045. if(serverList != null)
  9046. map['ServerList'] = serverList;
  9047. return map;
  9048. }
  9049. }
  9050. class LoginSuccessResult extends BaseServerResult{
  9051. LoginSuccessResult({
  9052. int code = 0,
  9053. }) : super(
  9054. code: code,
  9055. );
  9056. factory LoginSuccessResult.fromJson(Map<String, dynamic> map) {
  9057. return LoginSuccessResult(
  9058. code: map['Code'],
  9059. );
  9060. }
  9061. Map<String, dynamic> toJson() {
  9062. final map = super.toJson();
  9063. return map;
  9064. }
  9065. }
  9066. class ScheduleDTO extends ClientScheduleDTO{
  9067. List<String >? userCodes;
  9068. String? code;
  9069. ScheduleDTO({
  9070. this.userCodes,
  9071. this.code,
  9072. String? title,
  9073. TransactionStatusEnum status = TransactionStatusEnum.Applied,
  9074. ScheduleTypeEnum scheduleType = ScheduleTypeEnum.Consultation,
  9075. DateTime? startTime,
  9076. DateTime? endTime,
  9077. String? relevanceCode,
  9078. }) : super(
  9079. title: title,
  9080. status: status,
  9081. scheduleType: scheduleType,
  9082. startTime: startTime,
  9083. endTime: endTime,
  9084. relevanceCode: relevanceCode,
  9085. );
  9086. factory ScheduleDTO.fromJson(Map<String, dynamic> map) {
  9087. return ScheduleDTO(
  9088. userCodes: map['UserCodes'] != null ? map['UserCodes'].cast<String>().toList() : null,
  9089. code: map['Code'],
  9090. title: map['Title'],
  9091. status: TransactionStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  9092. scheduleType: ScheduleTypeEnum.values.firstWhere((e) => e.index == map['ScheduleType']),
  9093. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  9094. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  9095. relevanceCode: map['RelevanceCode'],
  9096. );
  9097. }
  9098. Map<String, dynamic> toJson() {
  9099. final map = super.toJson();
  9100. if(userCodes != null)
  9101. map['UserCodes'] = userCodes;
  9102. if(code != null)
  9103. map['Code'] = code;
  9104. return map;
  9105. }
  9106. }
  9107. class LiveMemberDTO {
  9108. String? code;
  9109. LiveMemberEnum memberType;
  9110. String? name;
  9111. String? headImageToken;
  9112. LiveMemberStatus status;
  9113. bool muteOpened;
  9114. bool videoOpened;
  9115. LiveDataDTO? liveData;
  9116. bool isControllingParameter;
  9117. DateTime? firstJoinTime;
  9118. int sortLevel;
  9119. List<VideoDeviceInfoDTO >? videoDeviceInfos;
  9120. LoginSource loginSource;
  9121. LiveMemberDTO({
  9122. this.code,
  9123. this.memberType = LiveMemberEnum.User,
  9124. this.name,
  9125. this.headImageToken,
  9126. this.status = LiveMemberStatus.Default,
  9127. this.muteOpened = false,
  9128. this.videoOpened = false,
  9129. this.liveData,
  9130. this.isControllingParameter = false,
  9131. this.firstJoinTime,
  9132. this.sortLevel = 0,
  9133. this.videoDeviceInfos,
  9134. this.loginSource = LoginSource.PC,
  9135. });
  9136. factory LiveMemberDTO.fromJson(Map<String, dynamic> map) {
  9137. return LiveMemberDTO(
  9138. code: map['Code'],
  9139. memberType: LiveMemberEnum.values.firstWhere((e) => e.index == map['MemberType']),
  9140. name: map['Name'],
  9141. headImageToken: map['HeadImageToken'],
  9142. status: LiveMemberStatus.values.firstWhere((e) => e.index == map['Status']),
  9143. muteOpened: map['MuteOpened'],
  9144. videoOpened: map['VideoOpened'],
  9145. liveData: map['LiveData'] != null ? LiveDataDTO.fromJson(map['LiveData']) : null,
  9146. isControllingParameter: map['IsControllingParameter'],
  9147. firstJoinTime: map['FirstJoinTime'] != null ? DateTime.parse(map['FirstJoinTime']) : null,
  9148. sortLevel: map['SortLevel'],
  9149. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9150. loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
  9151. );
  9152. }
  9153. Map<String, dynamic> toJson() {
  9154. final map = Map<String, dynamic>();
  9155. if(code != null)
  9156. map['Code'] = code;
  9157. map['MemberType'] = memberType.index;
  9158. if(name != null)
  9159. map['Name'] = name;
  9160. if(headImageToken != null)
  9161. map['HeadImageToken'] = headImageToken;
  9162. map['Status'] = status.index;
  9163. map['MuteOpened'] = muteOpened;
  9164. map['VideoOpened'] = videoOpened;
  9165. if(liveData != null)
  9166. map['LiveData'] = liveData;
  9167. map['IsControllingParameter'] = isControllingParameter;
  9168. if(firstJoinTime != null)
  9169. map['FirstJoinTime'] = JsonRpcUtils.dateFormat(firstJoinTime!);
  9170. map['SortLevel'] = sortLevel;
  9171. if(videoDeviceInfos != null)
  9172. map['VideoDeviceInfos'] = videoDeviceInfos;
  9173. map['LoginSource'] = loginSource.index;
  9174. return map;
  9175. }
  9176. }
  9177. class LiveViewerDTO {
  9178. String? userCode;
  9179. String? name;
  9180. DateTime? lastReportTime;
  9181. LiveViewerDTO({
  9182. this.userCode,
  9183. this.name,
  9184. this.lastReportTime,
  9185. });
  9186. factory LiveViewerDTO.fromJson(Map<String, dynamic> map) {
  9187. return LiveViewerDTO(
  9188. userCode: map['UserCode'],
  9189. name: map['Name'],
  9190. lastReportTime: map['LastReportTime'] != null ? DateTime.parse(map['LastReportTime']) : null,
  9191. );
  9192. }
  9193. Map<String, dynamic> toJson() {
  9194. final map = Map<String, dynamic>();
  9195. if(userCode != null)
  9196. map['UserCode'] = userCode;
  9197. if(name != null)
  9198. map['Name'] = name;
  9199. if(lastReportTime != null)
  9200. map['LastReportTime'] = JsonRpcUtils.dateFormat(lastReportTime!);
  9201. return map;
  9202. }
  9203. }
  9204. class LiveRoomInfoDTO {
  9205. String? roomId;
  9206. int roomNo;
  9207. String? msgQueueId;
  9208. List<LiveMemberDTO >? members;
  9209. List<LiveViewerDTO >? viewerInfos;
  9210. LiveMemberDTO? initiator;
  9211. List<LiveMemberDTO >? userInfos;
  9212. List<LiveMemberDTO >? deviceInfos;
  9213. List<LiveMemberDTO >? expertUserInfos;
  9214. List<LiveMemberDTO >? assistantsInfos;
  9215. LiveRoomStatus status;
  9216. String? name;
  9217. DateTime? liveTime;
  9218. int liveStatus;
  9219. List<InteractiveBoardDataDTO >? interactiveBoardDatas;
  9220. LiveRoomInfoDTO({
  9221. this.roomId,
  9222. this.roomNo = 0,
  9223. this.msgQueueId,
  9224. this.members,
  9225. this.viewerInfos,
  9226. this.initiator,
  9227. this.userInfos,
  9228. this.deviceInfos,
  9229. this.expertUserInfos,
  9230. this.assistantsInfos,
  9231. this.status = LiveRoomStatus.Default,
  9232. this.name,
  9233. this.liveTime,
  9234. this.liveStatus = 0,
  9235. this.interactiveBoardDatas,
  9236. });
  9237. factory LiveRoomInfoDTO.fromJson(Map<String, dynamic> map) {
  9238. return LiveRoomInfoDTO(
  9239. roomId: map['RoomId'],
  9240. roomNo: map['RoomNo'],
  9241. msgQueueId: map['MsgQueueId'],
  9242. members: map['Members'] != null ? (map['Members'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9243. viewerInfos: map['ViewerInfos'] != null ? (map['ViewerInfos'] as List).map((e)=>LiveViewerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9244. initiator: map['Initiator'] != null ? LiveMemberDTO.fromJson(map['Initiator']) : null,
  9245. userInfos: map['UserInfos'] != null ? (map['UserInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9246. deviceInfos: map['DeviceInfos'] != null ? (map['DeviceInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9247. expertUserInfos: map['ExpertUserInfos'] != null ? (map['ExpertUserInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9248. assistantsInfos: map['AssistantsInfos'] != null ? (map['AssistantsInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9249. status: LiveRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  9250. name: map['Name'],
  9251. liveTime: map['LiveTime'] != null ? DateTime.parse(map['LiveTime']) : null,
  9252. liveStatus: map['LiveStatus'],
  9253. interactiveBoardDatas: map['InteractiveBoardDatas'] != null ? (map['InteractiveBoardDatas'] as List).map((e)=>InteractiveBoardDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9254. );
  9255. }
  9256. Map<String, dynamic> toJson() {
  9257. final map = Map<String, dynamic>();
  9258. if(roomId != null)
  9259. map['RoomId'] = roomId;
  9260. map['RoomNo'] = roomNo;
  9261. if(msgQueueId != null)
  9262. map['MsgQueueId'] = msgQueueId;
  9263. if(members != null)
  9264. map['Members'] = members;
  9265. if(viewerInfos != null)
  9266. map['ViewerInfos'] = viewerInfos;
  9267. if(initiator != null)
  9268. map['Initiator'] = initiator;
  9269. if(userInfos != null)
  9270. map['UserInfos'] = userInfos;
  9271. if(deviceInfos != null)
  9272. map['DeviceInfos'] = deviceInfos;
  9273. if(expertUserInfos != null)
  9274. map['ExpertUserInfos'] = expertUserInfos;
  9275. if(assistantsInfos != null)
  9276. map['AssistantsInfos'] = assistantsInfos;
  9277. map['Status'] = status.index;
  9278. if(name != null)
  9279. map['Name'] = name;
  9280. if(liveTime != null)
  9281. map['LiveTime'] = JsonRpcUtils.dateFormat(liveTime!);
  9282. map['LiveStatus'] = liveStatus;
  9283. if(interactiveBoardDatas != null)
  9284. map['InteractiveBoardDatas'] = interactiveBoardDatas;
  9285. return map;
  9286. }
  9287. }
  9288. class RtcBoardDataDTO {
  9289. String? userCode;
  9290. String? boardData;
  9291. DateTime? interactiveTime;
  9292. RtcBoardDataDTO({
  9293. this.userCode,
  9294. this.boardData,
  9295. this.interactiveTime,
  9296. });
  9297. factory RtcBoardDataDTO.fromJson(Map<String, dynamic> map) {
  9298. return RtcBoardDataDTO(
  9299. userCode: map['UserCode'],
  9300. boardData: map['BoardData'],
  9301. interactiveTime: map['InteractiveTime'] != null ? DateTime.parse(map['InteractiveTime']) : null,
  9302. );
  9303. }
  9304. Map<String, dynamic> toJson() {
  9305. final map = Map<String, dynamic>();
  9306. if(userCode != null)
  9307. map['UserCode'] = userCode;
  9308. if(boardData != null)
  9309. map['BoardData'] = boardData;
  9310. if(interactiveTime != null)
  9311. map['InteractiveTime'] = JsonRpcUtils.dateFormat(interactiveTime!);
  9312. return map;
  9313. }
  9314. }
  9315. class RtcLiveDataDTO {
  9316. String? pullUrl;
  9317. RtcLiveDataDTO({
  9318. this.pullUrl,
  9319. });
  9320. factory RtcLiveDataDTO.fromJson(Map<String, dynamic> map) {
  9321. return RtcLiveDataDTO(
  9322. pullUrl: map['PullUrl'],
  9323. );
  9324. }
  9325. Map<String, dynamic> toJson() {
  9326. final map = Map<String, dynamic>();
  9327. if(pullUrl != null)
  9328. map['PullUrl'] = pullUrl;
  9329. return map;
  9330. }
  9331. }
  9332. class RtcMemberDTO {
  9333. String? id;
  9334. String? name;
  9335. String? avatarUrl;
  9336. LiveMemberEnum memberType;
  9337. LiveMemberStatus status;
  9338. bool muteOpened;
  9339. bool videoOpened;
  9340. bool isInitiator;
  9341. bool isControllingParameter;
  9342. RtcLiveDataDTO? rtcLiveData;
  9343. RtcMemberDTO({
  9344. this.id,
  9345. this.name,
  9346. this.avatarUrl,
  9347. this.memberType = LiveMemberEnum.User,
  9348. this.status = LiveMemberStatus.Default,
  9349. this.muteOpened = false,
  9350. this.videoOpened = false,
  9351. this.isInitiator = false,
  9352. this.isControllingParameter = false,
  9353. this.rtcLiveData,
  9354. });
  9355. factory RtcMemberDTO.fromJson(Map<String, dynamic> map) {
  9356. return RtcMemberDTO(
  9357. id: map['Id'],
  9358. name: map['Name'],
  9359. avatarUrl: map['AvatarUrl'],
  9360. memberType: LiveMemberEnum.values.firstWhere((e) => e.index == map['MemberType']),
  9361. status: LiveMemberStatus.values.firstWhere((e) => e.index == map['Status']),
  9362. muteOpened: map['MuteOpened'],
  9363. videoOpened: map['VideoOpened'],
  9364. isInitiator: map['IsInitiator'],
  9365. isControllingParameter: map['IsControllingParameter'],
  9366. rtcLiveData: map['RtcLiveData'] != null ? RtcLiveDataDTO.fromJson(map['RtcLiveData']) : null,
  9367. );
  9368. }
  9369. Map<String, dynamic> toJson() {
  9370. final map = Map<String, dynamic>();
  9371. if(id != null)
  9372. map['Id'] = id;
  9373. if(name != null)
  9374. map['Name'] = name;
  9375. if(avatarUrl != null)
  9376. map['AvatarUrl'] = avatarUrl;
  9377. map['MemberType'] = memberType.index;
  9378. map['Status'] = status.index;
  9379. map['MuteOpened'] = muteOpened;
  9380. map['VideoOpened'] = videoOpened;
  9381. map['IsInitiator'] = isInitiator;
  9382. map['IsControllingParameter'] = isControllingParameter;
  9383. if(rtcLiveData != null)
  9384. map['RtcLiveData'] = rtcLiveData;
  9385. return map;
  9386. }
  9387. }
  9388. class RtcViewerDTO {
  9389. String? userCode;
  9390. DateTime? lastReportTime;
  9391. RtcViewerDTO({
  9392. this.userCode,
  9393. this.lastReportTime,
  9394. });
  9395. factory RtcViewerDTO.fromJson(Map<String, dynamic> map) {
  9396. return RtcViewerDTO(
  9397. userCode: map['UserCode'],
  9398. lastReportTime: map['LastReportTime'] != null ? DateTime.parse(map['LastReportTime']) : null,
  9399. );
  9400. }
  9401. Map<String, dynamic> toJson() {
  9402. final map = Map<String, dynamic>();
  9403. if(userCode != null)
  9404. map['UserCode'] = userCode;
  9405. if(lastReportTime != null)
  9406. map['LastReportTime'] = JsonRpcUtils.dateFormat(lastReportTime!);
  9407. return map;
  9408. }
  9409. }
  9410. class RtcRoomDTO {
  9411. String? liveRoomCode;
  9412. String? name;
  9413. String? initiateCode;
  9414. int rtcRoomId;
  9415. int sdkAppId;
  9416. String? msgQueueId;
  9417. LiveRoomStatus status;
  9418. List<RtcMemberDTO >? members;
  9419. List<RtcViewerDTO >? viewers;
  9420. List<RtcBoardDataDTO >? interactiveBoardDatas;
  9421. RtcRoomDTO({
  9422. this.liveRoomCode,
  9423. this.name,
  9424. this.initiateCode,
  9425. this.rtcRoomId = 0,
  9426. this.sdkAppId = 0,
  9427. this.msgQueueId,
  9428. this.status = LiveRoomStatus.Default,
  9429. this.members,
  9430. this.viewers,
  9431. this.interactiveBoardDatas,
  9432. });
  9433. factory RtcRoomDTO.fromJson(Map<String, dynamic> map) {
  9434. return RtcRoomDTO(
  9435. liveRoomCode: map['LiveRoomCode'],
  9436. name: map['Name'],
  9437. initiateCode: map['InitiateCode'],
  9438. rtcRoomId: map['RtcRoomId'],
  9439. sdkAppId: map['SdkAppId'],
  9440. msgQueueId: map['MsgQueueId'],
  9441. status: LiveRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  9442. members: map['Members'] != null ? (map['Members'] as List).map((e)=>RtcMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9443. viewers: map['Viewers'] != null ? (map['Viewers'] as List).map((e)=>RtcViewerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9444. interactiveBoardDatas: map['InteractiveBoardDatas'] != null ? (map['InteractiveBoardDatas'] as List).map((e)=>RtcBoardDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9445. );
  9446. }
  9447. Map<String, dynamic> toJson() {
  9448. final map = Map<String, dynamic>();
  9449. if(liveRoomCode != null)
  9450. map['LiveRoomCode'] = liveRoomCode;
  9451. if(name != null)
  9452. map['Name'] = name;
  9453. if(initiateCode != null)
  9454. map['InitiateCode'] = initiateCode;
  9455. map['RtcRoomId'] = rtcRoomId;
  9456. map['SdkAppId'] = sdkAppId;
  9457. if(msgQueueId != null)
  9458. map['MsgQueueId'] = msgQueueId;
  9459. map['Status'] = status.index;
  9460. if(members != null)
  9461. map['Members'] = members;
  9462. if(viewers != null)
  9463. map['Viewers'] = viewers;
  9464. if(interactiveBoardDatas != null)
  9465. map['InteractiveBoardDatas'] = interactiveBoardDatas;
  9466. return map;
  9467. }
  9468. }
  9469. class ReportElementDTO {
  9470. String? key;
  9471. String? tagId;
  9472. String? name;
  9473. String? aILanguage;
  9474. ReportElementDTO({
  9475. this.key,
  9476. this.tagId,
  9477. this.name,
  9478. this.aILanguage,
  9479. });
  9480. factory ReportElementDTO.fromJson(Map<String, dynamic> map) {
  9481. return ReportElementDTO(
  9482. key: map['Key'],
  9483. tagId: map['TagId'],
  9484. name: map['Name'],
  9485. aILanguage: map['AILanguage'],
  9486. );
  9487. }
  9488. Map<String, dynamic> toJson() {
  9489. final map = Map<String, dynamic>();
  9490. if(key != null)
  9491. map['Key'] = key;
  9492. if(tagId != null)
  9493. map['TagId'] = tagId;
  9494. if(name != null)
  9495. map['Name'] = name;
  9496. if(aILanguage != null)
  9497. map['AILanguage'] = aILanguage;
  9498. return map;
  9499. }
  9500. }
  9501. class ReportPosterDTO extends BaseDTO{
  9502. String? reportPosterCode;
  9503. String? receiverName;
  9504. String? contact;
  9505. String? phone;
  9506. String? targetUrl;
  9507. String? template;
  9508. ReportPosterTypeEnum posterType;
  9509. ReportFormatEnum reportFormat;
  9510. int postTimeout;
  9511. List<String >? deviceIds;
  9512. ReportPosterDTO({
  9513. this.reportPosterCode,
  9514. this.receiverName,
  9515. this.contact,
  9516. this.phone,
  9517. this.targetUrl,
  9518. this.template,
  9519. this.posterType = ReportPosterTypeEnum.Default,
  9520. this.reportFormat = ReportFormatEnum.Json,
  9521. this.postTimeout = 0,
  9522. this.deviceIds,
  9523. DateTime? createTime,
  9524. DateTime? updateTime,
  9525. }) : super(
  9526. createTime: createTime,
  9527. updateTime: updateTime,
  9528. );
  9529. factory ReportPosterDTO.fromJson(Map<String, dynamic> map) {
  9530. return ReportPosterDTO(
  9531. reportPosterCode: map['ReportPosterCode'],
  9532. receiverName: map['ReceiverName'],
  9533. contact: map['Contact'],
  9534. phone: map['Phone'],
  9535. targetUrl: map['TargetUrl'],
  9536. template: map['Template'],
  9537. posterType: ReportPosterTypeEnum.values.firstWhere((e) => e.index == map['PosterType']),
  9538. reportFormat: ReportFormatEnum.values.firstWhere((e) => e.index == map['ReportFormat']),
  9539. postTimeout: map['PostTimeout'],
  9540. deviceIds: map['DeviceIds'] != null ? map['DeviceIds'].cast<String>().toList() : null,
  9541. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9542. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9543. );
  9544. }
  9545. Map<String, dynamic> toJson() {
  9546. final map = super.toJson();
  9547. if(reportPosterCode != null)
  9548. map['ReportPosterCode'] = reportPosterCode;
  9549. if(receiverName != null)
  9550. map['ReceiverName'] = receiverName;
  9551. if(contact != null)
  9552. map['Contact'] = contact;
  9553. if(phone != null)
  9554. map['Phone'] = phone;
  9555. if(targetUrl != null)
  9556. map['TargetUrl'] = targetUrl;
  9557. if(template != null)
  9558. map['Template'] = template;
  9559. map['PosterType'] = posterType.index;
  9560. map['ReportFormat'] = reportFormat.index;
  9561. map['PostTimeout'] = postTimeout;
  9562. if(deviceIds != null)
  9563. map['DeviceIds'] = deviceIds;
  9564. return map;
  9565. }
  9566. }
  9567. class ReportPushRecordDTO extends BaseDTO{
  9568. String? pushRecordCode;
  9569. String? patientId;
  9570. String? patientName;
  9571. String? poseterConfigId;
  9572. PushDataStateEnum state;
  9573. String? poseterConfigName;
  9574. String? reportId;
  9575. String? patientRecordId;
  9576. String? pushResultToken;
  9577. String? pushResponse;
  9578. ReportPushRecordDTO({
  9579. this.pushRecordCode,
  9580. this.patientId,
  9581. this.patientName,
  9582. this.poseterConfigId,
  9583. this.state = PushDataStateEnum.UnDo,
  9584. this.poseterConfigName,
  9585. this.reportId,
  9586. this.patientRecordId,
  9587. this.pushResultToken,
  9588. this.pushResponse,
  9589. DateTime? createTime,
  9590. DateTime? updateTime,
  9591. }) : super(
  9592. createTime: createTime,
  9593. updateTime: updateTime,
  9594. );
  9595. factory ReportPushRecordDTO.fromJson(Map<String, dynamic> map) {
  9596. return ReportPushRecordDTO(
  9597. pushRecordCode: map['PushRecordCode'],
  9598. patientId: map['PatientId'],
  9599. patientName: map['PatientName'],
  9600. poseterConfigId: map['PoseterConfigId'],
  9601. state: PushDataStateEnum.values.firstWhere((e) => e.index == map['State']),
  9602. poseterConfigName: map['PoseterConfigName'],
  9603. reportId: map['ReportId'],
  9604. patientRecordId: map['PatientRecordId'],
  9605. pushResultToken: map['PushResultToken'],
  9606. pushResponse: map['PushResponse'],
  9607. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9608. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9609. );
  9610. }
  9611. Map<String, dynamic> toJson() {
  9612. final map = super.toJson();
  9613. if(pushRecordCode != null)
  9614. map['PushRecordCode'] = pushRecordCode;
  9615. if(patientId != null)
  9616. map['PatientId'] = patientId;
  9617. if(patientName != null)
  9618. map['PatientName'] = patientName;
  9619. if(poseterConfigId != null)
  9620. map['PoseterConfigId'] = poseterConfigId;
  9621. map['State'] = state.index;
  9622. if(poseterConfigName != null)
  9623. map['PoseterConfigName'] = poseterConfigName;
  9624. if(reportId != null)
  9625. map['ReportId'] = reportId;
  9626. if(patientRecordId != null)
  9627. map['PatientRecordId'] = patientRecordId;
  9628. if(pushResultToken != null)
  9629. map['PushResultToken'] = pushResultToken;
  9630. if(pushResponse != null)
  9631. map['PushResponse'] = pushResponse;
  9632. return map;
  9633. }
  9634. }
  9635. class ProbeSettingInfoDTO {
  9636. String? name;
  9637. List<ApplicationSettingInfoDTO >? applications;
  9638. ProbeSettingInfoDTO({
  9639. this.name,
  9640. this.applications,
  9641. });
  9642. factory ProbeSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  9643. return ProbeSettingInfoDTO(
  9644. name: map['Name'],
  9645. applications: map['Applications'] != null ? (map['Applications'] as List).map((e)=>ApplicationSettingInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9646. );
  9647. }
  9648. Map<String, dynamic> toJson() {
  9649. final map = Map<String, dynamic>();
  9650. if(name != null)
  9651. map['Name'] = name;
  9652. if(applications != null)
  9653. map['Applications'] = applications;
  9654. return map;
  9655. }
  9656. }
  9657. class ProbeApplicationSettingInfoDTO {
  9658. List<ProbeSettingInfoDTO >? probes;
  9659. String? activeProbe;
  9660. String? activeApplication;
  9661. int maxNumberForApplication;
  9662. int maxNumberForApplicationOfUserDefine;
  9663. ProbeApplicationSettingInfoDTO({
  9664. this.probes,
  9665. this.activeProbe,
  9666. this.activeApplication,
  9667. this.maxNumberForApplication = 0,
  9668. this.maxNumberForApplicationOfUserDefine = 0,
  9669. });
  9670. factory ProbeApplicationSettingInfoDTO.fromJson(Map<String, dynamic> map) {
  9671. return ProbeApplicationSettingInfoDTO(
  9672. probes: map['Probes'] != null ? (map['Probes'] as List).map((e)=>ProbeSettingInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9673. activeProbe: map['ActiveProbe'],
  9674. activeApplication: map['ActiveApplication'],
  9675. maxNumberForApplication: map['MaxNumberForApplication'],
  9676. maxNumberForApplicationOfUserDefine: map['MaxNumberForApplicationOfUserDefine'],
  9677. );
  9678. }
  9679. Map<String, dynamic> toJson() {
  9680. final map = Map<String, dynamic>();
  9681. if(probes != null)
  9682. map['Probes'] = probes;
  9683. if(activeProbe != null)
  9684. map['ActiveProbe'] = activeProbe;
  9685. if(activeApplication != null)
  9686. map['ActiveApplication'] = activeApplication;
  9687. map['MaxNumberForApplication'] = maxNumberForApplication;
  9688. map['MaxNumberForApplicationOfUserDefine'] = maxNumberForApplicationOfUserDefine;
  9689. return map;
  9690. }
  9691. }
  9692. class RegionItemDTO {
  9693. String? c;
  9694. String? g;
  9695. String? f;
  9696. String? n;
  9697. RegionItemDTO({
  9698. this.c,
  9699. this.g,
  9700. this.f,
  9701. this.n,
  9702. });
  9703. factory RegionItemDTO.fromJson(Map<String, dynamic> map) {
  9704. return RegionItemDTO(
  9705. c: map['c'],
  9706. g: map['g'],
  9707. f: map['f'],
  9708. n: map['n'],
  9709. );
  9710. }
  9711. Map<String, dynamic> toJson() {
  9712. final map = Map<String, dynamic>();
  9713. if(c != null)
  9714. map['c'] = c;
  9715. if(g != null)
  9716. map['g'] = g;
  9717. if(f != null)
  9718. map['f'] = f;
  9719. if(n != null)
  9720. map['n'] = n;
  9721. return map;
  9722. }
  9723. }
  9724. class RegionDataDTO {
  9725. String? lang;
  9726. List<RegionItemDTO >? datas;
  9727. RegionDataDTO({
  9728. this.lang,
  9729. this.datas,
  9730. });
  9731. factory RegionDataDTO.fromJson(Map<String, dynamic> map) {
  9732. return RegionDataDTO(
  9733. lang: map['lang'],
  9734. datas: map['datas'] != null ? (map['datas'] as List).map((e)=>RegionItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  9735. );
  9736. }
  9737. Map<String, dynamic> toJson() {
  9738. final map = Map<String, dynamic>();
  9739. if(lang != null)
  9740. map['lang'] = lang;
  9741. if(datas != null)
  9742. map['datas'] = datas;
  9743. return map;
  9744. }
  9745. }
  9746. class ReferralRecordSettingDTO extends BaseDTO{
  9747. String? referralRecordSettingCode;
  9748. double limitHours;
  9749. ReferralRecordSettingDTO({
  9750. this.referralRecordSettingCode,
  9751. this.limitHours = 0,
  9752. DateTime? createTime,
  9753. DateTime? updateTime,
  9754. }) : super(
  9755. createTime: createTime,
  9756. updateTime: updateTime,
  9757. );
  9758. factory ReferralRecordSettingDTO.fromJson(Map<String, dynamic> map) {
  9759. return ReferralRecordSettingDTO(
  9760. referralRecordSettingCode: map['ReferralRecordSettingCode'],
  9761. limitHours: double.parse(map['LimitHours'].toString()),
  9762. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9763. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9764. );
  9765. }
  9766. Map<String, dynamic> toJson() {
  9767. final map = super.toJson();
  9768. if(referralRecordSettingCode != null)
  9769. map['ReferralRecordSettingCode'] = referralRecordSettingCode;
  9770. map['LimitHours'] = limitHours;
  9771. return map;
  9772. }
  9773. }
  9774. class CreatePaymentRecordResultDTO {
  9775. String? paymentRecordCode;
  9776. CreatePaymentRecordResultDTO({
  9777. this.paymentRecordCode,
  9778. });
  9779. factory CreatePaymentRecordResultDTO.fromJson(Map<String, dynamic> map) {
  9780. return CreatePaymentRecordResultDTO(
  9781. paymentRecordCode: map['PaymentRecordCode'],
  9782. );
  9783. }
  9784. Map<String, dynamic> toJson() {
  9785. final map = Map<String, dynamic>();
  9786. if(paymentRecordCode != null)
  9787. map['PaymentRecordCode'] = paymentRecordCode;
  9788. return map;
  9789. }
  9790. }
  9791. class CreateProductDTO extends BaseDTO{
  9792. String? productCode;
  9793. CreateProductDTO({
  9794. this.productCode,
  9795. DateTime? createTime,
  9796. DateTime? updateTime,
  9797. }) : super(
  9798. createTime: createTime,
  9799. updateTime: updateTime,
  9800. );
  9801. factory CreateProductDTO.fromJson(Map<String, dynamic> map) {
  9802. return CreateProductDTO(
  9803. productCode: map['ProductCode'],
  9804. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9805. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9806. );
  9807. }
  9808. Map<String, dynamic> toJson() {
  9809. final map = super.toJson();
  9810. if(productCode != null)
  9811. map['ProductCode'] = productCode;
  9812. return map;
  9813. }
  9814. }
  9815. class PaymentRecordDTO extends BaseDTO{
  9816. String? orderCode;
  9817. double payAmount;
  9818. DateTime? payTime;
  9819. PayStatusEnum payStatus;
  9820. PayTypeEnum payType;
  9821. String? payReqContent;
  9822. String? payResContent;
  9823. PaymentRecordDTO({
  9824. this.orderCode,
  9825. this.payAmount = 0,
  9826. this.payTime,
  9827. this.payStatus = PayStatusEnum.NoPay,
  9828. this.payType = PayTypeEnum.Alipay_PAGE,
  9829. this.payReqContent,
  9830. this.payResContent,
  9831. DateTime? createTime,
  9832. DateTime? updateTime,
  9833. }) : super(
  9834. createTime: createTime,
  9835. updateTime: updateTime,
  9836. );
  9837. factory PaymentRecordDTO.fromJson(Map<String, dynamic> map) {
  9838. return PaymentRecordDTO(
  9839. orderCode: map['OrderCode'],
  9840. payAmount: double.parse(map['PayAmount'].toString()),
  9841. payTime: map['PayTime'] != null ? DateTime.parse(map['PayTime']) : null,
  9842. payStatus: PayStatusEnum.values.firstWhere((e) => e.index == map['PayStatus']),
  9843. payType: PayTypeEnum.values.firstWhere((e) => e.index == map['PayType']),
  9844. payReqContent: map['PayReqContent'],
  9845. payResContent: map['PayResContent'],
  9846. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9847. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9848. );
  9849. }
  9850. Map<String, dynamic> toJson() {
  9851. final map = super.toJson();
  9852. if(orderCode != null)
  9853. map['OrderCode'] = orderCode;
  9854. map['PayAmount'] = payAmount;
  9855. if(payTime != null)
  9856. map['PayTime'] = JsonRpcUtils.dateFormat(payTime!);
  9857. map['PayStatus'] = payStatus.index;
  9858. map['PayType'] = payType.index;
  9859. if(payReqContent != null)
  9860. map['PayReqContent'] = payReqContent;
  9861. if(payResContent != null)
  9862. map['PayResContent'] = payResContent;
  9863. return map;
  9864. }
  9865. }
  9866. class ProductDetailDTO extends BaseDTO{
  9867. String? code;
  9868. String? name;
  9869. String? headImage;
  9870. double price;
  9871. ProductStatusEnum status;
  9872. ProductTypeEnum productType;
  9873. String? belongerCode;
  9874. String? relationInfo;
  9875. ProductDetailDTO({
  9876. this.code,
  9877. this.name,
  9878. this.headImage,
  9879. this.price = 0,
  9880. this.status = ProductStatusEnum.SoldOut,
  9881. this.productType = ProductTypeEnum.Course,
  9882. this.belongerCode,
  9883. this.relationInfo,
  9884. DateTime? createTime,
  9885. DateTime? updateTime,
  9886. }) : super(
  9887. createTime: createTime,
  9888. updateTime: updateTime,
  9889. );
  9890. factory ProductDetailDTO.fromJson(Map<String, dynamic> map) {
  9891. return ProductDetailDTO(
  9892. code: map['Code'],
  9893. name: map['Name'],
  9894. headImage: map['HeadImage'],
  9895. price: double.parse(map['Price'].toString()),
  9896. status: ProductStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  9897. productType: ProductTypeEnum.values.firstWhere((e) => e.index == map['ProductType']),
  9898. belongerCode: map['BelongerCode'],
  9899. relationInfo: map['RelationInfo'],
  9900. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  9901. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  9902. );
  9903. }
  9904. Map<String, dynamic> toJson() {
  9905. final map = super.toJson();
  9906. if(code != null)
  9907. map['Code'] = code;
  9908. if(name != null)
  9909. map['Name'] = name;
  9910. if(headImage != null)
  9911. map['HeadImage'] = headImage;
  9912. map['Price'] = price;
  9913. map['Status'] = status.index;
  9914. map['ProductType'] = productType.index;
  9915. if(belongerCode != null)
  9916. map['BelongerCode'] = belongerCode;
  9917. if(relationInfo != null)
  9918. map['RelationInfo'] = relationInfo;
  9919. return map;
  9920. }
  9921. }
  9922. class UpdateOrderResultDTO {
  9923. bool isSuccess;
  9924. UpdateOrderResultDTO({
  9925. this.isSuccess = false,
  9926. });
  9927. factory UpdateOrderResultDTO.fromJson(Map<String, dynamic> map) {
  9928. return UpdateOrderResultDTO(
  9929. isSuccess: map['IsSuccess'],
  9930. );
  9931. }
  9932. Map<String, dynamic> toJson() {
  9933. final map = Map<String, dynamic>();
  9934. map['IsSuccess'] = isSuccess;
  9935. return map;
  9936. }
  9937. }
  9938. class UpdatePaymentRecordResultDTO {
  9939. bool isSuccess;
  9940. UpdatePaymentRecordResultDTO({
  9941. this.isSuccess = false,
  9942. });
  9943. factory UpdatePaymentRecordResultDTO.fromJson(Map<String, dynamic> map) {
  9944. return UpdatePaymentRecordResultDTO(
  9945. isSuccess: map['IsSuccess'],
  9946. );
  9947. }
  9948. Map<String, dynamic> toJson() {
  9949. final map = Map<String, dynamic>();
  9950. map['IsSuccess'] = isSuccess;
  9951. return map;
  9952. }
  9953. }
  9954. class UpdateProductDTO {
  9955. bool isSuccess;
  9956. UpdateProductDTO({
  9957. this.isSuccess = false,
  9958. });
  9959. factory UpdateProductDTO.fromJson(Map<String, dynamic> map) {
  9960. return UpdateProductDTO(
  9961. isSuccess: map['IsSuccess'],
  9962. );
  9963. }
  9964. Map<String, dynamic> toJson() {
  9965. final map = Map<String, dynamic>();
  9966. map['IsSuccess'] = isSuccess;
  9967. return map;
  9968. }
  9969. }
  9970. class StatisticDetailSettingDTO {
  9971. String? cMSTemplateCode;
  9972. StatisticDetailSettingDTO({
  9973. this.cMSTemplateCode,
  9974. });
  9975. factory StatisticDetailSettingDTO.fromJson(Map<String, dynamic> map) {
  9976. return StatisticDetailSettingDTO(
  9977. cMSTemplateCode: map['CMSTemplateCode'],
  9978. );
  9979. }
  9980. Map<String, dynamic> toJson() {
  9981. final map = Map<String, dynamic>();
  9982. if(cMSTemplateCode != null)
  9983. map['CMSTemplateCode'] = cMSTemplateCode;
  9984. return map;
  9985. }
  9986. }
  9987. class ClientInfoDTO {
  9988. String? clientId;
  9989. String? name;
  9990. bool isReaded;
  9991. DateTime? deliveryTime;
  9992. DateTime? readTime;
  9993. ClientInfoDTO({
  9994. this.clientId,
  9995. this.name,
  9996. this.isReaded = false,
  9997. this.deliveryTime,
  9998. this.readTime,
  9999. });
  10000. factory ClientInfoDTO.fromJson(Map<String, dynamic> map) {
  10001. return ClientInfoDTO(
  10002. clientId: map['ClientId'],
  10003. name: map['Name'],
  10004. isReaded: map['IsReaded'],
  10005. deliveryTime: map['DeliveryTime'] != null ? DateTime.parse(map['DeliveryTime']) : null,
  10006. readTime: map['ReadTime'] != null ? DateTime.parse(map['ReadTime']) : null,
  10007. );
  10008. }
  10009. Map<String, dynamic> toJson() {
  10010. final map = Map<String, dynamic>();
  10011. if(clientId != null)
  10012. map['ClientId'] = clientId;
  10013. if(name != null)
  10014. map['Name'] = name;
  10015. map['IsReaded'] = isReaded;
  10016. if(deliveryTime != null)
  10017. map['DeliveryTime'] = JsonRpcUtils.dateFormat(deliveryTime!);
  10018. if(readTime != null)
  10019. map['ReadTime'] = JsonRpcUtils.dateFormat(readTime!);
  10020. return map;
  10021. }
  10022. }
  10023. class MessageInfoDTO extends BaseDTO{
  10024. String? code;
  10025. NotificationTypeEnum notificationType;
  10026. String? content;
  10027. String? serverHost;
  10028. DateTime? notifyTime;
  10029. ApplicantTypeEnum receiverType;
  10030. TransactionTypeEnum transactionType;
  10031. String? relevanceCode;
  10032. List<ClientInfoDTO >? clientInfos;
  10033. MessageInfoDTO({
  10034. this.code,
  10035. this.notificationType = NotificationTypeEnum.Unknown,
  10036. this.content,
  10037. this.serverHost,
  10038. this.notifyTime,
  10039. this.receiverType = ApplicantTypeEnum.Client,
  10040. this.transactionType = TransactionTypeEnum.Consultion,
  10041. this.relevanceCode,
  10042. this.clientInfos,
  10043. DateTime? createTime,
  10044. DateTime? updateTime,
  10045. }) : super(
  10046. createTime: createTime,
  10047. updateTime: updateTime,
  10048. );
  10049. factory MessageInfoDTO.fromJson(Map<String, dynamic> map) {
  10050. return MessageInfoDTO(
  10051. code: map['Code'],
  10052. notificationType: NotificationTypeEnum.values.firstWhere((e) => e.index == map['NotificationType']),
  10053. content: map['Content'],
  10054. serverHost: map['ServerHost'],
  10055. notifyTime: map['NotifyTime'] != null ? DateTime.parse(map['NotifyTime']) : null,
  10056. receiverType: ApplicantTypeEnum.values.firstWhere((e) => e.index == map['ReceiverType']),
  10057. transactionType: TransactionTypeEnum.values.firstWhere((e) => e.index == map['TransactionType']),
  10058. relevanceCode: map['RelevanceCode'],
  10059. clientInfos: map['ClientInfos'] != null ? (map['ClientInfos'] as List).map((e)=>ClientInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10060. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  10061. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  10062. );
  10063. }
  10064. Map<String, dynamic> toJson() {
  10065. final map = super.toJson();
  10066. if(code != null)
  10067. map['Code'] = code;
  10068. map['NotificationType'] = notificationType.index;
  10069. if(content != null)
  10070. map['Content'] = content;
  10071. if(serverHost != null)
  10072. map['ServerHost'] = serverHost;
  10073. if(notifyTime != null)
  10074. map['NotifyTime'] = JsonRpcUtils.dateFormat(notifyTime!);
  10075. map['ReceiverType'] = receiverType.index;
  10076. map['TransactionType'] = transactionType.index;
  10077. if(relevanceCode != null)
  10078. map['RelevanceCode'] = relevanceCode;
  10079. if(clientInfos != null)
  10080. map['ClientInfos'] = clientInfos;
  10081. return map;
  10082. }
  10083. }
  10084. class OutputUnitDTO {
  10085. int unit;
  10086. OutputUnitDTO({
  10087. this.unit = 0,
  10088. });
  10089. factory OutputUnitDTO.fromJson(Map<String, dynamic> map) {
  10090. return OutputUnitDTO(
  10091. unit: map['Unit'],
  10092. );
  10093. }
  10094. Map<String, dynamic> toJson() {
  10095. final map = Map<String, dynamic>();
  10096. map['Unit'] = unit;
  10097. return map;
  10098. }
  10099. }
  10100. class FormularMetaDTO {
  10101. String? name;
  10102. FormularMetaDTO({
  10103. this.name,
  10104. });
  10105. factory FormularMetaDTO.fromJson(Map<String, dynamic> map) {
  10106. return FormularMetaDTO(
  10107. name: map['Name'],
  10108. );
  10109. }
  10110. Map<String, dynamic> toJson() {
  10111. final map = Map<String, dynamic>();
  10112. if(name != null)
  10113. map['Name'] = name;
  10114. return map;
  10115. }
  10116. }
  10117. class MeasuredValueDTO {
  10118. String? typeName;
  10119. String? name;
  10120. String? description;
  10121. bool worksheetAffinity;
  10122. String? briefDescription;
  10123. String? value;
  10124. Unit unit;
  10125. Unit targetUnit;
  10126. MeasuredValueDTO({
  10127. this.typeName,
  10128. this.name,
  10129. this.description,
  10130. this.worksheetAffinity = false,
  10131. this.briefDescription,
  10132. this.value,
  10133. this.unit = Unit.None,
  10134. this.targetUnit = Unit.None,
  10135. });
  10136. factory MeasuredValueDTO.fromJson(Map<String, dynamic> map) {
  10137. return MeasuredValueDTO(
  10138. typeName: map['TypeName'],
  10139. name: map['Name'],
  10140. description: map['Description'],
  10141. worksheetAffinity: map['WorksheetAffinity'],
  10142. briefDescription: map['BriefDescription'],
  10143. value: map['Value'],
  10144. unit: Unit.values.firstWhere((e) => e.index == map['Unit']),
  10145. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  10146. );
  10147. }
  10148. Map<String, dynamic> toJson() {
  10149. final map = Map<String, dynamic>();
  10150. if(typeName != null)
  10151. map['TypeName'] = typeName;
  10152. if(name != null)
  10153. map['Name'] = name;
  10154. if(description != null)
  10155. map['Description'] = description;
  10156. map['WorksheetAffinity'] = worksheetAffinity;
  10157. if(briefDescription != null)
  10158. map['BriefDescription'] = briefDescription;
  10159. if(value != null)
  10160. map['Value'] = value;
  10161. map['Unit'] = unit.index;
  10162. map['TargetUnit'] = targetUnit.index;
  10163. return map;
  10164. }
  10165. }
  10166. class MeasuredFeatureDTO {
  10167. String? typeName;
  10168. String? creator;
  10169. String? guid;
  10170. bool showChildFeatures;
  10171. DateTime? timeStamp;
  10172. bool isAutoCalculated;
  10173. List<MeasuredValueDTO >? values;
  10174. List<MeasuredFeatureDTO >? childFeatures;
  10175. MeasuredFeatureDTO({
  10176. this.typeName,
  10177. this.creator,
  10178. this.guid,
  10179. this.showChildFeatures = false,
  10180. this.timeStamp,
  10181. this.isAutoCalculated = false,
  10182. this.values,
  10183. this.childFeatures,
  10184. });
  10185. factory MeasuredFeatureDTO.fromJson(Map<String, dynamic> map) {
  10186. return MeasuredFeatureDTO(
  10187. typeName: map['TypeName'],
  10188. creator: map['Creator'],
  10189. guid: map['Guid'],
  10190. showChildFeatures: map['ShowChildFeatures'],
  10191. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  10192. isAutoCalculated: map['IsAutoCalculated'],
  10193. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10194. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10195. );
  10196. }
  10197. Map<String, dynamic> toJson() {
  10198. final map = Map<String, dynamic>();
  10199. if(typeName != null)
  10200. map['TypeName'] = typeName;
  10201. if(creator != null)
  10202. map['Creator'] = creator;
  10203. if(guid != null)
  10204. map['Guid'] = guid;
  10205. map['ShowChildFeatures'] = showChildFeatures;
  10206. if(timeStamp != null)
  10207. map['TimeStamp'] = JsonRpcUtils.dateFormat(timeStamp!);
  10208. map['IsAutoCalculated'] = isAutoCalculated;
  10209. if(values != null)
  10210. map['Values'] = values;
  10211. if(childFeatures != null)
  10212. map['ChildFeatures'] = childFeatures;
  10213. return map;
  10214. }
  10215. }
  10216. class MeasureItemDTO {
  10217. String? name;
  10218. String? description;
  10219. String? briefAnnotation;
  10220. String? typeName;
  10221. MeasureItemDTO({
  10222. this.name,
  10223. this.description,
  10224. this.briefAnnotation,
  10225. this.typeName,
  10226. });
  10227. factory MeasureItemDTO.fromJson(Map<String, dynamic> map) {
  10228. return MeasureItemDTO(
  10229. name: map['Name'],
  10230. description: map['Description'],
  10231. briefAnnotation: map['BriefAnnotation'],
  10232. typeName: map['TypeName'],
  10233. );
  10234. }
  10235. Map<String, dynamic> toJson() {
  10236. final map = Map<String, dynamic>();
  10237. if(name != null)
  10238. map['Name'] = name;
  10239. if(description != null)
  10240. map['Description'] = description;
  10241. if(briefAnnotation != null)
  10242. map['BriefAnnotation'] = briefAnnotation;
  10243. if(typeName != null)
  10244. map['TypeName'] = typeName;
  10245. return map;
  10246. }
  10247. }
  10248. class MultiMethodItemDTO extends MeasureItemDTO{
  10249. MultiMethodItemDTO({
  10250. String? name,
  10251. String? description,
  10252. String? briefAnnotation,
  10253. String? typeName,
  10254. }) : super(
  10255. name: name,
  10256. description: description,
  10257. briefAnnotation: briefAnnotation,
  10258. typeName: typeName,
  10259. );
  10260. factory MultiMethodItemDTO.fromJson(Map<String, dynamic> map) {
  10261. return MultiMethodItemDTO(
  10262. name: map['Name'],
  10263. description: map['Description'],
  10264. briefAnnotation: map['BriefAnnotation'],
  10265. typeName: map['TypeName'],
  10266. );
  10267. }
  10268. Map<String, dynamic> toJson() {
  10269. final map = super.toJson();
  10270. return map;
  10271. }
  10272. }
  10273. class UserDefinedMeasureApplicationDTO {
  10274. String? version;
  10275. String? id;
  10276. String? categoryName;
  10277. List<UserDefinedMeasureModeDTO >? modes;
  10278. UserDefinedMeasureApplicationDTO({
  10279. this.version,
  10280. this.id,
  10281. this.categoryName,
  10282. this.modes,
  10283. });
  10284. factory UserDefinedMeasureApplicationDTO.fromJson(Map<String, dynamic> map) {
  10285. return UserDefinedMeasureApplicationDTO(
  10286. version: map['Version'],
  10287. id: map['Id'],
  10288. categoryName: map['CategoryName'],
  10289. modes: map['Modes'] != null ? (map['Modes'] as List).map((e)=>UserDefinedMeasureModeDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10290. );
  10291. }
  10292. Map<String, dynamic> toJson() {
  10293. final map = Map<String, dynamic>();
  10294. if(version != null)
  10295. map['Version'] = version;
  10296. if(id != null)
  10297. map['Id'] = id;
  10298. if(categoryName != null)
  10299. map['CategoryName'] = categoryName;
  10300. if(modes != null)
  10301. map['Modes'] = modes;
  10302. return map;
  10303. }
  10304. }
  10305. class UserDefinedCommentDataDTO {
  10306. String? version;
  10307. String? languageCode;
  10308. String? categoryName;
  10309. String? applicationName;
  10310. List<CommentItemDTO >? commentItems;
  10311. UserDefinedCommentDataDTO({
  10312. this.version,
  10313. this.languageCode,
  10314. this.categoryName,
  10315. this.applicationName,
  10316. this.commentItems,
  10317. });
  10318. factory UserDefinedCommentDataDTO.fromJson(Map<String, dynamic> map) {
  10319. return UserDefinedCommentDataDTO(
  10320. version: map['Version'],
  10321. languageCode: map['LanguageCode'],
  10322. categoryName: map['CategoryName'],
  10323. applicationName: map['ApplicationName'],
  10324. commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>CommentItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10325. );
  10326. }
  10327. Map<String, dynamic> toJson() {
  10328. final map = Map<String, dynamic>();
  10329. if(version != null)
  10330. map['Version'] = version;
  10331. if(languageCode != null)
  10332. map['LanguageCode'] = languageCode;
  10333. if(categoryName != null)
  10334. map['CategoryName'] = categoryName;
  10335. if(applicationName != null)
  10336. map['ApplicationName'] = applicationName;
  10337. if(commentItems != null)
  10338. map['CommentItems'] = commentItems;
  10339. return map;
  10340. }
  10341. }
  10342. class UserDefinedMeasureInfoDTO {
  10343. String? userId;
  10344. Map<String,String>? systemSettings;
  10345. List<UserDefinedMeasureApplicationDTO >? measureApplications;
  10346. List<UserDefinedCommentDataDTO >? commentItems;
  10347. UserDefinedMeasureInfoDTO({
  10348. this.userId,
  10349. this.systemSettings,
  10350. this.measureApplications,
  10351. this.commentItems,
  10352. });
  10353. factory UserDefinedMeasureInfoDTO.fromJson(Map<String, dynamic> map) {
  10354. return UserDefinedMeasureInfoDTO(
  10355. userId: map['UserId'],
  10356. systemSettings: map['SystemSettings'] != null ? map['SystemSettings'].cast<String,String>() : null,
  10357. measureApplications: map['MeasureApplications'] != null ? (map['MeasureApplications'] as List).map((e)=>UserDefinedMeasureApplicationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10358. commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>UserDefinedCommentDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10359. );
  10360. }
  10361. Map<String, dynamic> toJson() {
  10362. final map = Map<String, dynamic>();
  10363. if(userId != null)
  10364. map['UserId'] = userId;
  10365. if(systemSettings != null)
  10366. map['SystemSettings'] = systemSettings;
  10367. if(measureApplications != null)
  10368. map['MeasureApplications'] = measureApplications;
  10369. if(commentItems != null)
  10370. map['CommentItems'] = commentItems;
  10371. return map;
  10372. }
  10373. }
  10374. class AbRatioDTO extends MultiMethodItemDTO{
  10375. AbRatioDTO({
  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 AbRatioDTO.fromJson(Map<String, dynamic> map) {
  10387. return AbRatioDTO(
  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 AngleDTO extends MeasureItemDTO{
  10400. AngleDTO({
  10401. String? name,
  10402. String? description,
  10403. String? briefAnnotation,
  10404. String? typeName,
  10405. }) : super(
  10406. name: name,
  10407. description: description,
  10408. briefAnnotation: briefAnnotation,
  10409. typeName: typeName,
  10410. );
  10411. factory AngleDTO.fromJson(Map<String, dynamic> map) {
  10412. return AngleDTO(
  10413. name: map['Name'],
  10414. description: map['Description'],
  10415. briefAnnotation: map['BriefAnnotation'],
  10416. typeName: map['TypeName'],
  10417. );
  10418. }
  10419. Map<String, dynamic> toJson() {
  10420. final map = super.toJson();
  10421. return map;
  10422. }
  10423. }
  10424. class AreaPerimeterDTO extends MultiMethodItemDTO{
  10425. AreaPerimeterDTO({
  10426. String? name,
  10427. String? description,
  10428. String? briefAnnotation,
  10429. String? typeName,
  10430. }) : super(
  10431. name: name,
  10432. description: description,
  10433. briefAnnotation: briefAnnotation,
  10434. typeName: typeName,
  10435. );
  10436. factory AreaPerimeterDTO.fromJson(Map<String, dynamic> map) {
  10437. return AreaPerimeterDTO(
  10438. name: map['Name'],
  10439. description: map['Description'],
  10440. briefAnnotation: map['BriefAnnotation'],
  10441. typeName: map['TypeName'],
  10442. );
  10443. }
  10444. Map<String, dynamic> toJson() {
  10445. final map = super.toJson();
  10446. return map;
  10447. }
  10448. }
  10449. class CircleDTO extends MeasureItemDTO{
  10450. CircleDTO({
  10451. String? name,
  10452. String? description,
  10453. String? briefAnnotation,
  10454. String? typeName,
  10455. }) : super(
  10456. name: name,
  10457. description: description,
  10458. briefAnnotation: briefAnnotation,
  10459. typeName: typeName,
  10460. );
  10461. factory CircleDTO.fromJson(Map<String, dynamic> map) {
  10462. return CircleDTO(
  10463. name: map['Name'],
  10464. description: map['Description'],
  10465. briefAnnotation: map['BriefAnnotation'],
  10466. typeName: map['TypeName'],
  10467. );
  10468. }
  10469. Map<String, dynamic> toJson() {
  10470. final map = super.toJson();
  10471. return map;
  10472. }
  10473. }
  10474. class CurveLengthDTO extends MultiMethodItemDTO{
  10475. CurveLengthDTO({
  10476. String? name,
  10477. String? description,
  10478. String? briefAnnotation,
  10479. String? typeName,
  10480. }) : super(
  10481. name: name,
  10482. description: description,
  10483. briefAnnotation: briefAnnotation,
  10484. typeName: typeName,
  10485. );
  10486. factory CurveLengthDTO.fromJson(Map<String, dynamic> map) {
  10487. return CurveLengthDTO(
  10488. name: map['Name'],
  10489. description: map['Description'],
  10490. briefAnnotation: map['BriefAnnotation'],
  10491. typeName: map['TypeName'],
  10492. );
  10493. }
  10494. Map<String, dynamic> toJson() {
  10495. final map = super.toJson();
  10496. return map;
  10497. }
  10498. }
  10499. class EllipseDTO extends MeasureItemDTO{
  10500. EllipseDTO({
  10501. String? name,
  10502. String? description,
  10503. String? briefAnnotation,
  10504. String? typeName,
  10505. }) : super(
  10506. name: name,
  10507. description: description,
  10508. briefAnnotation: briefAnnotation,
  10509. typeName: typeName,
  10510. );
  10511. factory EllipseDTO.fromJson(Map<String, dynamic> map) {
  10512. return EllipseDTO(
  10513. name: map['Name'],
  10514. description: map['Description'],
  10515. briefAnnotation: map['BriefAnnotation'],
  10516. typeName: map['TypeName'],
  10517. );
  10518. }
  10519. Map<String, dynamic> toJson() {
  10520. final map = super.toJson();
  10521. return map;
  10522. }
  10523. }
  10524. class LocationDTO extends MeasureItemDTO{
  10525. LocationDTO({
  10526. String? name,
  10527. String? description,
  10528. String? briefAnnotation,
  10529. String? typeName,
  10530. }) : super(
  10531. name: name,
  10532. description: description,
  10533. briefAnnotation: briefAnnotation,
  10534. typeName: typeName,
  10535. );
  10536. factory LocationDTO.fromJson(Map<String, dynamic> map) {
  10537. return LocationDTO(
  10538. name: map['Name'],
  10539. description: map['Description'],
  10540. briefAnnotation: map['BriefAnnotation'],
  10541. typeName: map['TypeName'],
  10542. );
  10543. }
  10544. Map<String, dynamic> toJson() {
  10545. final map = super.toJson();
  10546. return map;
  10547. }
  10548. }
  10549. class LWHStraightLineDTO extends MeasureItemDTO{
  10550. LWHStraightLineDTO({
  10551. String? name,
  10552. String? description,
  10553. String? briefAnnotation,
  10554. String? typeName,
  10555. }) : super(
  10556. name: name,
  10557. description: description,
  10558. briefAnnotation: briefAnnotation,
  10559. typeName: typeName,
  10560. );
  10561. factory LWHStraightLineDTO.fromJson(Map<String, dynamic> map) {
  10562. return LWHStraightLineDTO(
  10563. name: map['Name'],
  10564. description: map['Description'],
  10565. briefAnnotation: map['BriefAnnotation'],
  10566. typeName: map['TypeName'],
  10567. );
  10568. }
  10569. Map<String, dynamic> toJson() {
  10570. final map = super.toJson();
  10571. return map;
  10572. }
  10573. }
  10574. class PolylineDTO extends MeasureItemDTO{
  10575. PolylineDTO({
  10576. String? name,
  10577. String? description,
  10578. String? briefAnnotation,
  10579. String? typeName,
  10580. }) : super(
  10581. name: name,
  10582. description: description,
  10583. briefAnnotation: briefAnnotation,
  10584. typeName: typeName,
  10585. );
  10586. factory PolylineDTO.fromJson(Map<String, dynamic> map) {
  10587. return PolylineDTO(
  10588. name: map['Name'],
  10589. description: map['Description'],
  10590. briefAnnotation: map['BriefAnnotation'],
  10591. typeName: map['TypeName'],
  10592. );
  10593. }
  10594. Map<String, dynamic> toJson() {
  10595. final map = super.toJson();
  10596. return map;
  10597. }
  10598. }
  10599. class RectDTO extends MeasureItemDTO{
  10600. RectDTO({
  10601. String? name,
  10602. String? description,
  10603. String? briefAnnotation,
  10604. String? typeName,
  10605. }) : super(
  10606. name: name,
  10607. description: description,
  10608. briefAnnotation: briefAnnotation,
  10609. typeName: typeName,
  10610. );
  10611. factory RectDTO.fromJson(Map<String, dynamic> map) {
  10612. return RectDTO(
  10613. name: map['Name'],
  10614. description: map['Description'],
  10615. briefAnnotation: map['BriefAnnotation'],
  10616. typeName: map['TypeName'],
  10617. );
  10618. }
  10619. Map<String, dynamic> toJson() {
  10620. final map = super.toJson();
  10621. return map;
  10622. }
  10623. }
  10624. class StenosisDTO extends MultiMethodItemDTO{
  10625. StenosisDTO({
  10626. String? name,
  10627. String? description,
  10628. String? briefAnnotation,
  10629. String? typeName,
  10630. }) : super(
  10631. name: name,
  10632. description: description,
  10633. briefAnnotation: briefAnnotation,
  10634. typeName: typeName,
  10635. );
  10636. factory StenosisDTO.fromJson(Map<String, dynamic> map) {
  10637. return StenosisDTO(
  10638. name: map['Name'],
  10639. description: map['Description'],
  10640. briefAnnotation: map['BriefAnnotation'],
  10641. typeName: map['TypeName'],
  10642. );
  10643. }
  10644. Map<String, dynamic> toJson() {
  10645. final map = super.toJson();
  10646. return map;
  10647. }
  10648. }
  10649. class StraightLineDTO extends MeasureItemDTO{
  10650. StraightLineDTO({
  10651. String? name,
  10652. String? description,
  10653. String? briefAnnotation,
  10654. String? typeName,
  10655. }) : super(
  10656. name: name,
  10657. description: description,
  10658. briefAnnotation: briefAnnotation,
  10659. typeName: typeName,
  10660. );
  10661. factory StraightLineDTO.fromJson(Map<String, dynamic> map) {
  10662. return StraightLineDTO(
  10663. name: map['Name'],
  10664. description: map['Description'],
  10665. briefAnnotation: map['BriefAnnotation'],
  10666. typeName: map['TypeName'],
  10667. );
  10668. }
  10669. Map<String, dynamic> toJson() {
  10670. final map = super.toJson();
  10671. return map;
  10672. }
  10673. }
  10674. class VolumeDTO extends MultiMethodItemDTO{
  10675. VolumeDTO({
  10676. String? name,
  10677. String? description,
  10678. String? briefAnnotation,
  10679. String? typeName,
  10680. }) : super(
  10681. name: name,
  10682. description: description,
  10683. briefAnnotation: briefAnnotation,
  10684. typeName: typeName,
  10685. );
  10686. factory VolumeDTO.fromJson(Map<String, dynamic> map) {
  10687. return VolumeDTO(
  10688. name: map['Name'],
  10689. description: map['Description'],
  10690. briefAnnotation: map['BriefAnnotation'],
  10691. typeName: map['TypeName'],
  10692. );
  10693. }
  10694. Map<String, dynamic> toJson() {
  10695. final map = super.toJson();
  10696. return map;
  10697. }
  10698. }
  10699. class CardiacAxisFeatureDTO extends MeasuredFeatureDTO{
  10700. String? logicalName;
  10701. String? logicalMode;
  10702. CardiacAxisFeatureDTO({
  10703. String? typeName,
  10704. this.logicalName,
  10705. this.logicalMode,
  10706. String? creator,
  10707. String? guid,
  10708. bool showChildFeatures = false,
  10709. DateTime? timeStamp,
  10710. bool isAutoCalculated = false,
  10711. List<MeasuredValueDTO >? values,
  10712. List<MeasuredFeatureDTO >? childFeatures,
  10713. }) : super(
  10714. typeName: typeName,
  10715. creator: creator,
  10716. guid: guid,
  10717. showChildFeatures: showChildFeatures,
  10718. timeStamp: timeStamp,
  10719. isAutoCalculated: isAutoCalculated,
  10720. values: values,
  10721. childFeatures: childFeatures,
  10722. );
  10723. factory CardiacAxisFeatureDTO.fromJson(Map<String, dynamic> map) {
  10724. return CardiacAxisFeatureDTO(
  10725. typeName: map['TypeName'],
  10726. logicalName: map['LogicalName'],
  10727. logicalMode: map['LogicalMode'],
  10728. creator: map['Creator'],
  10729. guid: map['Guid'],
  10730. showChildFeatures: map['ShowChildFeatures'],
  10731. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  10732. isAutoCalculated: map['IsAutoCalculated'],
  10733. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10734. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10735. );
  10736. }
  10737. Map<String, dynamic> toJson() {
  10738. final map = super.toJson();
  10739. if(logicalName != null)
  10740. map['LogicalName'] = logicalName;
  10741. if(logicalMode != null)
  10742. map['LogicalMode'] = logicalMode;
  10743. return map;
  10744. }
  10745. }
  10746. class CustomCalculatorFeatureDTO extends MeasuredFeatureDTO{
  10747. String? logicalName;
  10748. String? logicalMode;
  10749. CustomCalculatorFeatureDTO({
  10750. String? typeName,
  10751. this.logicalName,
  10752. this.logicalMode,
  10753. String? creator,
  10754. String? guid,
  10755. bool showChildFeatures = false,
  10756. DateTime? timeStamp,
  10757. bool isAutoCalculated = false,
  10758. List<MeasuredValueDTO >? values,
  10759. List<MeasuredFeatureDTO >? childFeatures,
  10760. }) : super(
  10761. typeName: typeName,
  10762. creator: creator,
  10763. guid: guid,
  10764. showChildFeatures: showChildFeatures,
  10765. timeStamp: timeStamp,
  10766. isAutoCalculated: isAutoCalculated,
  10767. values: values,
  10768. childFeatures: childFeatures,
  10769. );
  10770. factory CustomCalculatorFeatureDTO.fromJson(Map<String, dynamic> map) {
  10771. return CustomCalculatorFeatureDTO(
  10772. typeName: map['TypeName'],
  10773. logicalName: map['LogicalName'],
  10774. logicalMode: map['LogicalMode'],
  10775. creator: map['Creator'],
  10776. guid: map['Guid'],
  10777. showChildFeatures: map['ShowChildFeatures'],
  10778. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  10779. isAutoCalculated: map['IsAutoCalculated'],
  10780. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10781. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10782. );
  10783. }
  10784. Map<String, dynamic> toJson() {
  10785. final map = super.toJson();
  10786. if(logicalName != null)
  10787. map['LogicalName'] = logicalName;
  10788. if(logicalMode != null)
  10789. map['LogicalMode'] = logicalMode;
  10790. return map;
  10791. }
  10792. }
  10793. class GeometryFeatureDTO extends MeasuredFeatureDTO{
  10794. bool isVisible;
  10795. String? annotation;
  10796. String? briefAnnotation;
  10797. Unit xUnit;
  10798. Unit yUnit;
  10799. bool showAnnotation;
  10800. bool showCalliper;
  10801. List<PointDTO >? points;
  10802. GeometryFeatureDTO({
  10803. this.isVisible = false,
  10804. this.annotation,
  10805. this.briefAnnotation,
  10806. this.xUnit = Unit.None,
  10807. this.yUnit = Unit.None,
  10808. this.showAnnotation = false,
  10809. this.showCalliper = false,
  10810. this.points,
  10811. String? typeName,
  10812. String? creator,
  10813. String? guid,
  10814. bool showChildFeatures = false,
  10815. DateTime? timeStamp,
  10816. bool isAutoCalculated = false,
  10817. List<MeasuredValueDTO >? values,
  10818. List<MeasuredFeatureDTO >? childFeatures,
  10819. }) : super(
  10820. typeName: typeName,
  10821. creator: creator,
  10822. guid: guid,
  10823. showChildFeatures: showChildFeatures,
  10824. timeStamp: timeStamp,
  10825. isAutoCalculated: isAutoCalculated,
  10826. values: values,
  10827. childFeatures: childFeatures,
  10828. );
  10829. factory GeometryFeatureDTO.fromJson(Map<String, dynamic> map) {
  10830. return GeometryFeatureDTO(
  10831. isVisible: map['IsVisible'],
  10832. annotation: map['Annotation'],
  10833. briefAnnotation: map['BriefAnnotation'],
  10834. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  10835. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  10836. showAnnotation: map['ShowAnnotation'],
  10837. showCalliper: map['ShowCalliper'],
  10838. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10839. typeName: map['TypeName'],
  10840. creator: map['Creator'],
  10841. guid: map['Guid'],
  10842. showChildFeatures: map['ShowChildFeatures'],
  10843. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  10844. isAutoCalculated: map['IsAutoCalculated'],
  10845. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10846. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  10847. );
  10848. }
  10849. Map<String, dynamic> toJson() {
  10850. final map = super.toJson();
  10851. map['IsVisible'] = isVisible;
  10852. if(annotation != null)
  10853. map['Annotation'] = annotation;
  10854. if(briefAnnotation != null)
  10855. map['BriefAnnotation'] = briefAnnotation;
  10856. map['XUnit'] = xUnit.index;
  10857. map['YUnit'] = yUnit.index;
  10858. map['ShowAnnotation'] = showAnnotation;
  10859. map['ShowCalliper'] = showCalliper;
  10860. if(points != null)
  10861. map['Points'] = points;
  10862. return map;
  10863. }
  10864. }
  10865. class CardiacCycleDTO {
  10866. int index;
  10867. PointDTO? systoleStart;
  10868. PointDTO? diastoleEnd;
  10869. PointDTO? peakSystolic;
  10870. PointDTO? minimumAbsoluteVelocity;
  10871. CardiacCycleDTO({
  10872. this.index = 0,
  10873. this.systoleStart,
  10874. this.diastoleEnd,
  10875. this.peakSystolic,
  10876. this.minimumAbsoluteVelocity,
  10877. });
  10878. factory CardiacCycleDTO.fromJson(Map<String, dynamic> map) {
  10879. return CardiacCycleDTO(
  10880. index: map['Index'],
  10881. systoleStart: map['SystoleStart'] != null ? PointDTO.fromJson(map['SystoleStart']) : null,
  10882. diastoleEnd: map['DiastoleEnd'] != null ? PointDTO.fromJson(map['DiastoleEnd']) : null,
  10883. peakSystolic: map['PeakSystolic'] != null ? PointDTO.fromJson(map['PeakSystolic']) : null,
  10884. minimumAbsoluteVelocity: map['MinimumAbsoluteVelocity'] != null ? PointDTO.fromJson(map['MinimumAbsoluteVelocity']) : null,
  10885. );
  10886. }
  10887. Map<String, dynamic> toJson() {
  10888. final map = Map<String, dynamic>();
  10889. map['Index'] = index;
  10890. if(systoleStart != null)
  10891. map['SystoleStart'] = systoleStart;
  10892. if(diastoleEnd != null)
  10893. map['DiastoleEnd'] = diastoleEnd;
  10894. if(peakSystolic != null)
  10895. map['PeakSystolic'] = peakSystolic;
  10896. if(minimumAbsoluteVelocity != null)
  10897. map['MinimumAbsoluteVelocity'] = minimumAbsoluteVelocity;
  10898. return map;
  10899. }
  10900. }
  10901. class GrowthPercentileDTO {
  10902. int oBTableCategory;
  10903. String? tableAuthor;
  10904. String? measureItem;
  10905. int gAinDays;
  10906. int status;
  10907. double value;
  10908. double tableDataLimitation;
  10909. double zScoreValue;
  10910. int zScoreStatus;
  10911. GrowthPercentileDTO({
  10912. this.oBTableCategory = 0,
  10913. this.tableAuthor,
  10914. this.measureItem,
  10915. this.gAinDays = 0,
  10916. this.status = 0,
  10917. this.value = 0,
  10918. this.tableDataLimitation = 0,
  10919. this.zScoreValue = 0,
  10920. this.zScoreStatus = 0,
  10921. });
  10922. factory GrowthPercentileDTO.fromJson(Map<String, dynamic> map) {
  10923. return GrowthPercentileDTO(
  10924. oBTableCategory: map['OBTableCategory'],
  10925. tableAuthor: map['TableAuthor'],
  10926. measureItem: map['MeasureItem'],
  10927. gAinDays: map['GAinDays'],
  10928. status: map['Status'],
  10929. value: double.parse(map['Value'].toString()),
  10930. tableDataLimitation: double.parse(map['TableDataLimitation'].toString()),
  10931. zScoreValue: double.parse(map['ZScoreValue'].toString()),
  10932. zScoreStatus: map['ZScoreStatus'],
  10933. );
  10934. }
  10935. Map<String, dynamic> toJson() {
  10936. final map = Map<String, dynamic>();
  10937. map['OBTableCategory'] = oBTableCategory;
  10938. if(tableAuthor != null)
  10939. map['TableAuthor'] = tableAuthor;
  10940. if(measureItem != null)
  10941. map['MeasureItem'] = measureItem;
  10942. map['GAinDays'] = gAinDays;
  10943. map['Status'] = status;
  10944. map['Value'] = value;
  10945. map['TableDataLimitation'] = tableDataLimitation;
  10946. map['ZScoreValue'] = zScoreValue;
  10947. map['ZScoreStatus'] = zScoreStatus;
  10948. return map;
  10949. }
  10950. }
  10951. class GrowthAgeDTO {
  10952. int oBTableCategory;
  10953. String? tableAuthor;
  10954. String? measureItem;
  10955. int days;
  10956. int status;
  10957. int minDays;
  10958. int maxDays;
  10959. GrowthAgeDTO({
  10960. this.oBTableCategory = 0,
  10961. this.tableAuthor,
  10962. this.measureItem,
  10963. this.days = 0,
  10964. this.status = 0,
  10965. this.minDays = 0,
  10966. this.maxDays = 0,
  10967. });
  10968. factory GrowthAgeDTO.fromJson(Map<String, dynamic> map) {
  10969. return GrowthAgeDTO(
  10970. oBTableCategory: map['OBTableCategory'],
  10971. tableAuthor: map['TableAuthor'],
  10972. measureItem: map['MeasureItem'],
  10973. days: map['Days'],
  10974. status: map['Status'],
  10975. minDays: map['MinDays'],
  10976. maxDays: map['MaxDays'],
  10977. );
  10978. }
  10979. Map<String, dynamic> toJson() {
  10980. final map = Map<String, dynamic>();
  10981. map['OBTableCategory'] = oBTableCategory;
  10982. if(tableAuthor != null)
  10983. map['TableAuthor'] = tableAuthor;
  10984. if(measureItem != null)
  10985. map['MeasureItem'] = measureItem;
  10986. map['Days'] = days;
  10987. map['Status'] = status;
  10988. map['MinDays'] = minDays;
  10989. map['MaxDays'] = maxDays;
  10990. return map;
  10991. }
  10992. }
  10993. class FetalGrowthIndexDTO {
  10994. GrowthPercentileDTO? percentile;
  10995. GrowthAgeDTO? growthAge;
  10996. DateTime? estimateDueDate;
  10997. FetalGrowthIndexDTO({
  10998. this.percentile,
  10999. this.growthAge,
  11000. this.estimateDueDate,
  11001. });
  11002. factory FetalGrowthIndexDTO.fromJson(Map<String, dynamic> map) {
  11003. return FetalGrowthIndexDTO(
  11004. percentile: map['Percentile'] != null ? GrowthPercentileDTO.fromJson(map['Percentile']) : null,
  11005. growthAge: map['GrowthAge'] != null ? GrowthAgeDTO.fromJson(map['GrowthAge']) : null,
  11006. estimateDueDate: map['EstimateDueDate'] != null ? DateTime.parse(map['EstimateDueDate']) : null,
  11007. );
  11008. }
  11009. Map<String, dynamic> toJson() {
  11010. final map = Map<String, dynamic>();
  11011. if(percentile != null)
  11012. map['Percentile'] = percentile;
  11013. if(growthAge != null)
  11014. map['GrowthAge'] = growthAge;
  11015. if(estimateDueDate != null)
  11016. map['EstimateDueDate'] = JsonRpcUtils.dateFormat(estimateDueDate!);
  11017. return map;
  11018. }
  11019. }
  11020. class FloatValueDTO extends MeasuredValueDTO{
  11021. FetalGrowthIndexDTO? fetalGrowthIndex;
  11022. String? typeName;
  11023. String? name;
  11024. String? description;
  11025. bool worksheetAffinity;
  11026. String? briefDescription;
  11027. String? value;
  11028. Unit unit;
  11029. Unit targetUnit;
  11030. FloatValueDTO({
  11031. this.fetalGrowthIndex,
  11032. this.typeName,
  11033. this.name,
  11034. this.description,
  11035. this.worksheetAffinity = false,
  11036. this.briefDescription,
  11037. this.value,
  11038. this.unit = Unit.None,
  11039. this.targetUnit = Unit.None,
  11040. });
  11041. factory FloatValueDTO.fromJson(Map<String, dynamic> map) {
  11042. return FloatValueDTO(
  11043. fetalGrowthIndex: map['FetalGrowthIndex'] != null ? FetalGrowthIndexDTO.fromJson(map['FetalGrowthIndex']) : null,
  11044. typeName: map['TypeName'],
  11045. name: map['Name'],
  11046. description: map['Description'],
  11047. worksheetAffinity: map['WorksheetAffinity'],
  11048. briefDescription: map['BriefDescription'],
  11049. value: map['Value'],
  11050. unit: Unit.values.firstWhere((e) => e.index == map['Unit']),
  11051. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  11052. );
  11053. }
  11054. Map<String, dynamic> toJson() {
  11055. final map = super.toJson();
  11056. return map;
  11057. }
  11058. }
  11059. class DopplerTraceFeatureDTO extends GeometryFeatureDTO{
  11060. int avgHeartCycle;
  11061. ASETypeEnum traceType;
  11062. List<PointDTO >? maxTraceLine;
  11063. List<CardiacCycleDTO >? cardiacCycles;
  11064. List<FloatValueDTO >? autoMeasureValues;
  11065. DopplerTraceFeatureDTO({
  11066. String? typeName,
  11067. this.avgHeartCycle = 0,
  11068. this.traceType = ASETypeEnum.Off,
  11069. this.maxTraceLine,
  11070. this.cardiacCycles,
  11071. this.autoMeasureValues,
  11072. bool isVisible = false,
  11073. String? annotation,
  11074. String? briefAnnotation,
  11075. Unit xUnit = Unit.None,
  11076. Unit yUnit = Unit.None,
  11077. bool showAnnotation = false,
  11078. bool showCalliper = false,
  11079. List<PointDTO >? points,
  11080. String? creator,
  11081. String? guid,
  11082. bool showChildFeatures = false,
  11083. DateTime? timeStamp,
  11084. bool isAutoCalculated = false,
  11085. List<MeasuredValueDTO >? values,
  11086. List<MeasuredFeatureDTO >? childFeatures,
  11087. }) : super(
  11088. isVisible: isVisible,
  11089. annotation: annotation,
  11090. briefAnnotation: briefAnnotation,
  11091. xUnit: xUnit,
  11092. yUnit: yUnit,
  11093. showAnnotation: showAnnotation,
  11094. showCalliper: showCalliper,
  11095. points: points,
  11096. typeName: typeName,
  11097. creator: creator,
  11098. guid: guid,
  11099. showChildFeatures: showChildFeatures,
  11100. timeStamp: timeStamp,
  11101. isAutoCalculated: isAutoCalculated,
  11102. values: values,
  11103. childFeatures: childFeatures,
  11104. );
  11105. factory DopplerTraceFeatureDTO.fromJson(Map<String, dynamic> map) {
  11106. return DopplerTraceFeatureDTO(
  11107. typeName: map['TypeName'],
  11108. avgHeartCycle: map['AvgHeartCycle'],
  11109. traceType: ASETypeEnum.values.firstWhere((e) => e.index == map['TraceType']),
  11110. maxTraceLine: map['MaxTraceLine'] != null ? (map['MaxTraceLine'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11111. cardiacCycles: map['CardiacCycles'] != null ? (map['CardiacCycles'] as List).map((e)=>CardiacCycleDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11112. autoMeasureValues: map['AutoMeasureValues'] != null ? (map['AutoMeasureValues'] as List).map((e)=>FloatValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11113. isVisible: map['IsVisible'],
  11114. annotation: map['Annotation'],
  11115. briefAnnotation: map['BriefAnnotation'],
  11116. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11117. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11118. showAnnotation: map['ShowAnnotation'],
  11119. showCalliper: map['ShowCalliper'],
  11120. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11121. creator: map['Creator'],
  11122. guid: map['Guid'],
  11123. showChildFeatures: map['ShowChildFeatures'],
  11124. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11125. isAutoCalculated: map['IsAutoCalculated'],
  11126. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11127. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11128. );
  11129. }
  11130. Map<String, dynamic> toJson() {
  11131. final map = super.toJson();
  11132. map['AvgHeartCycle'] = avgHeartCycle;
  11133. map['TraceType'] = traceType.index;
  11134. if(maxTraceLine != null)
  11135. map['MaxTraceLine'] = maxTraceLine;
  11136. if(cardiacCycles != null)
  11137. map['CardiacCycles'] = cardiacCycles;
  11138. if(autoMeasureValues != null)
  11139. map['AutoMeasureValues'] = autoMeasureValues;
  11140. return map;
  11141. }
  11142. }
  11143. class EllipseFeatureDTO extends GeometryFeatureDTO{
  11144. double angle;
  11145. EllipseFeatureDTO({
  11146. String? typeName,
  11147. this.angle = 0,
  11148. bool isVisible = false,
  11149. String? annotation,
  11150. String? briefAnnotation,
  11151. Unit xUnit = Unit.None,
  11152. Unit yUnit = Unit.None,
  11153. bool showAnnotation = false,
  11154. bool showCalliper = false,
  11155. List<PointDTO >? points,
  11156. String? creator,
  11157. String? guid,
  11158. bool showChildFeatures = false,
  11159. DateTime? timeStamp,
  11160. bool isAutoCalculated = false,
  11161. List<MeasuredValueDTO >? values,
  11162. List<MeasuredFeatureDTO >? childFeatures,
  11163. }) : super(
  11164. isVisible: isVisible,
  11165. annotation: annotation,
  11166. briefAnnotation: briefAnnotation,
  11167. xUnit: xUnit,
  11168. yUnit: yUnit,
  11169. showAnnotation: showAnnotation,
  11170. showCalliper: showCalliper,
  11171. points: points,
  11172. typeName: typeName,
  11173. creator: creator,
  11174. guid: guid,
  11175. showChildFeatures: showChildFeatures,
  11176. timeStamp: timeStamp,
  11177. isAutoCalculated: isAutoCalculated,
  11178. values: values,
  11179. childFeatures: childFeatures,
  11180. );
  11181. factory EllipseFeatureDTO.fromJson(Map<String, dynamic> map) {
  11182. return EllipseFeatureDTO(
  11183. typeName: map['TypeName'],
  11184. angle: double.parse(map['Angle'].toString()),
  11185. isVisible: map['IsVisible'],
  11186. annotation: map['Annotation'],
  11187. briefAnnotation: map['BriefAnnotation'],
  11188. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11189. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11190. showAnnotation: map['ShowAnnotation'],
  11191. showCalliper: map['ShowCalliper'],
  11192. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11193. creator: map['Creator'],
  11194. guid: map['Guid'],
  11195. showChildFeatures: map['ShowChildFeatures'],
  11196. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11197. isAutoCalculated: map['IsAutoCalculated'],
  11198. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11199. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11200. );
  11201. }
  11202. Map<String, dynamic> toJson() {
  11203. final map = super.toJson();
  11204. map['Angle'] = angle;
  11205. return map;
  11206. }
  11207. }
  11208. class AutoMeasureGeometryDTO {
  11209. int index;
  11210. List<PointDTO >? points;
  11211. AutoMeasureGeometryDTO({
  11212. this.index = 0,
  11213. this.points,
  11214. });
  11215. factory AutoMeasureGeometryDTO.fromJson(Map<String, dynamic> map) {
  11216. return AutoMeasureGeometryDTO(
  11217. index: map['Index'],
  11218. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11219. );
  11220. }
  11221. Map<String, dynamic> toJson() {
  11222. final map = Map<String, dynamic>();
  11223. map['Index'] = index;
  11224. if(points != null)
  11225. map['Points'] = points;
  11226. return map;
  11227. }
  11228. }
  11229. class FollicleShapeFeatureDTO extends GeometryFeatureDTO{
  11230. List<AutoMeasureGeometryDTO >? geometries;
  11231. FollicleShapeFeatureDTO({
  11232. String? typeName,
  11233. this.geometries,
  11234. bool isVisible = false,
  11235. String? annotation,
  11236. String? briefAnnotation,
  11237. Unit xUnit = Unit.None,
  11238. Unit yUnit = Unit.None,
  11239. bool showAnnotation = false,
  11240. bool showCalliper = false,
  11241. List<PointDTO >? points,
  11242. String? creator,
  11243. String? guid,
  11244. bool showChildFeatures = false,
  11245. DateTime? timeStamp,
  11246. bool isAutoCalculated = false,
  11247. List<MeasuredValueDTO >? values,
  11248. List<MeasuredFeatureDTO >? childFeatures,
  11249. }) : super(
  11250. isVisible: isVisible,
  11251. annotation: annotation,
  11252. briefAnnotation: briefAnnotation,
  11253. xUnit: xUnit,
  11254. yUnit: yUnit,
  11255. showAnnotation: showAnnotation,
  11256. showCalliper: showCalliper,
  11257. points: points,
  11258. typeName: typeName,
  11259. creator: creator,
  11260. guid: guid,
  11261. showChildFeatures: showChildFeatures,
  11262. timeStamp: timeStamp,
  11263. isAutoCalculated: isAutoCalculated,
  11264. values: values,
  11265. childFeatures: childFeatures,
  11266. );
  11267. factory FollicleShapeFeatureDTO.fromJson(Map<String, dynamic> map) {
  11268. return FollicleShapeFeatureDTO(
  11269. typeName: map['TypeName'],
  11270. geometries: map['Geometries'] != null ? (map['Geometries'] as List).map((e)=>AutoMeasureGeometryDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11271. isVisible: map['IsVisible'],
  11272. annotation: map['Annotation'],
  11273. briefAnnotation: map['BriefAnnotation'],
  11274. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11275. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11276. showAnnotation: map['ShowAnnotation'],
  11277. showCalliper: map['ShowCalliper'],
  11278. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11279. creator: map['Creator'],
  11280. guid: map['Guid'],
  11281. showChildFeatures: map['ShowChildFeatures'],
  11282. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11283. isAutoCalculated: map['IsAutoCalculated'],
  11284. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11285. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11286. );
  11287. }
  11288. Map<String, dynamic> toJson() {
  11289. final map = super.toJson();
  11290. if(geometries != null)
  11291. map['Geometries'] = geometries;
  11292. return map;
  11293. }
  11294. }
  11295. class LocationFeatureDTO extends GeometryFeatureDTO{
  11296. LocationFeatureDTO({
  11297. String? typeName,
  11298. bool isVisible = false,
  11299. String? annotation,
  11300. String? briefAnnotation,
  11301. Unit xUnit = Unit.None,
  11302. Unit yUnit = Unit.None,
  11303. bool showAnnotation = false,
  11304. bool showCalliper = false,
  11305. List<PointDTO >? points,
  11306. String? creator,
  11307. String? guid,
  11308. bool showChildFeatures = false,
  11309. DateTime? timeStamp,
  11310. bool isAutoCalculated = false,
  11311. List<MeasuredValueDTO >? values,
  11312. List<MeasuredFeatureDTO >? childFeatures,
  11313. }) : super(
  11314. isVisible: isVisible,
  11315. annotation: annotation,
  11316. briefAnnotation: briefAnnotation,
  11317. xUnit: xUnit,
  11318. yUnit: yUnit,
  11319. showAnnotation: showAnnotation,
  11320. showCalliper: showCalliper,
  11321. points: points,
  11322. typeName: typeName,
  11323. creator: creator,
  11324. guid: guid,
  11325. showChildFeatures: showChildFeatures,
  11326. timeStamp: timeStamp,
  11327. isAutoCalculated: isAutoCalculated,
  11328. values: values,
  11329. childFeatures: childFeatures,
  11330. );
  11331. factory LocationFeatureDTO.fromJson(Map<String, dynamic> map) {
  11332. return LocationFeatureDTO(
  11333. typeName: map['TypeName'],
  11334. isVisible: map['IsVisible'],
  11335. annotation: map['Annotation'],
  11336. briefAnnotation: map['BriefAnnotation'],
  11337. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11338. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11339. showAnnotation: map['ShowAnnotation'],
  11340. showCalliper: map['ShowCalliper'],
  11341. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11342. creator: map['Creator'],
  11343. guid: map['Guid'],
  11344. showChildFeatures: map['ShowChildFeatures'],
  11345. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11346. isAutoCalculated: map['IsAutoCalculated'],
  11347. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11348. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11349. );
  11350. }
  11351. Map<String, dynamic> toJson() {
  11352. final map = super.toJson();
  11353. return map;
  11354. }
  11355. }
  11356. class RayFeatureDTO extends LocationFeatureDTO{
  11357. bool isReverse;
  11358. double angle;
  11359. RayFeatureDTO({
  11360. String? typeName,
  11361. this.isReverse = false,
  11362. this.angle = 0,
  11363. bool isVisible = false,
  11364. String? annotation,
  11365. String? briefAnnotation,
  11366. Unit xUnit = Unit.None,
  11367. Unit yUnit = Unit.None,
  11368. bool showAnnotation = false,
  11369. bool showCalliper = false,
  11370. List<PointDTO >? points,
  11371. String? creator,
  11372. String? guid,
  11373. bool showChildFeatures = false,
  11374. DateTime? timeStamp,
  11375. bool isAutoCalculated = false,
  11376. List<MeasuredValueDTO >? values,
  11377. List<MeasuredFeatureDTO >? childFeatures,
  11378. }) : super(
  11379. typeName: typeName,
  11380. isVisible: isVisible,
  11381. annotation: annotation,
  11382. briefAnnotation: briefAnnotation,
  11383. xUnit: xUnit,
  11384. yUnit: yUnit,
  11385. showAnnotation: showAnnotation,
  11386. showCalliper: showCalliper,
  11387. points: points,
  11388. creator: creator,
  11389. guid: guid,
  11390. showChildFeatures: showChildFeatures,
  11391. timeStamp: timeStamp,
  11392. isAutoCalculated: isAutoCalculated,
  11393. values: values,
  11394. childFeatures: childFeatures,
  11395. );
  11396. factory RayFeatureDTO.fromJson(Map<String, dynamic> map) {
  11397. return RayFeatureDTO(
  11398. typeName: map['TypeName'],
  11399. isReverse: map['IsReverse'],
  11400. angle: double.parse(map['Angle'].toString()),
  11401. isVisible: map['IsVisible'],
  11402. annotation: map['Annotation'],
  11403. briefAnnotation: map['BriefAnnotation'],
  11404. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11405. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11406. showAnnotation: map['ShowAnnotation'],
  11407. showCalliper: map['ShowCalliper'],
  11408. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11409. creator: map['Creator'],
  11410. guid: map['Guid'],
  11411. showChildFeatures: map['ShowChildFeatures'],
  11412. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11413. isAutoCalculated: map['IsAutoCalculated'],
  11414. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11415. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11416. );
  11417. }
  11418. Map<String, dynamic> toJson() {
  11419. final map = super.toJson();
  11420. map['IsReverse'] = isReverse;
  11421. map['Angle'] = angle;
  11422. return map;
  11423. }
  11424. }
  11425. class ManualTraceFeatureDTO extends GeometryFeatureDTO{
  11426. ManualTraceFeatureDTO({
  11427. String? typeName,
  11428. bool isVisible = false,
  11429. String? annotation,
  11430. String? briefAnnotation,
  11431. Unit xUnit = Unit.None,
  11432. Unit yUnit = Unit.None,
  11433. bool showAnnotation = false,
  11434. bool showCalliper = false,
  11435. List<PointDTO >? points,
  11436. String? creator,
  11437. String? guid,
  11438. bool showChildFeatures = false,
  11439. DateTime? timeStamp,
  11440. bool isAutoCalculated = false,
  11441. List<MeasuredValueDTO >? values,
  11442. List<MeasuredFeatureDTO >? childFeatures,
  11443. }) : super(
  11444. isVisible: isVisible,
  11445. annotation: annotation,
  11446. briefAnnotation: briefAnnotation,
  11447. xUnit: xUnit,
  11448. yUnit: yUnit,
  11449. showAnnotation: showAnnotation,
  11450. showCalliper: showCalliper,
  11451. points: points,
  11452. typeName: typeName,
  11453. creator: creator,
  11454. guid: guid,
  11455. showChildFeatures: showChildFeatures,
  11456. timeStamp: timeStamp,
  11457. isAutoCalculated: isAutoCalculated,
  11458. values: values,
  11459. childFeatures: childFeatures,
  11460. );
  11461. factory ManualTraceFeatureDTO.fromJson(Map<String, dynamic> map) {
  11462. return ManualTraceFeatureDTO(
  11463. typeName: map['TypeName'],
  11464. isVisible: map['IsVisible'],
  11465. annotation: map['Annotation'],
  11466. briefAnnotation: map['BriefAnnotation'],
  11467. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11468. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11469. showAnnotation: map['ShowAnnotation'],
  11470. showCalliper: map['ShowCalliper'],
  11471. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11472. creator: map['Creator'],
  11473. guid: map['Guid'],
  11474. showChildFeatures: map['ShowChildFeatures'],
  11475. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11476. isAutoCalculated: map['IsAutoCalculated'],
  11477. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11478. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11479. );
  11480. }
  11481. Map<String, dynamic> toJson() {
  11482. final map = super.toJson();
  11483. return map;
  11484. }
  11485. }
  11486. class PolyLineFeatureDTO extends MeasuredFeatureDTO{
  11487. bool isClosed;
  11488. double splineTension;
  11489. PolyLineFeatureDTO({
  11490. String? typeName,
  11491. this.isClosed = false,
  11492. this.splineTension = 0,
  11493. String? creator,
  11494. String? guid,
  11495. bool showChildFeatures = false,
  11496. DateTime? timeStamp,
  11497. bool isAutoCalculated = false,
  11498. List<MeasuredValueDTO >? values,
  11499. List<MeasuredFeatureDTO >? childFeatures,
  11500. }) : super(
  11501. typeName: typeName,
  11502. creator: creator,
  11503. guid: guid,
  11504. showChildFeatures: showChildFeatures,
  11505. timeStamp: timeStamp,
  11506. isAutoCalculated: isAutoCalculated,
  11507. values: values,
  11508. childFeatures: childFeatures,
  11509. );
  11510. factory PolyLineFeatureDTO.fromJson(Map<String, dynamic> map) {
  11511. return PolyLineFeatureDTO(
  11512. typeName: map['TypeName'],
  11513. isClosed: map['IsClosed'],
  11514. splineTension: double.parse(map['SplineTension'].toString()),
  11515. creator: map['Creator'],
  11516. guid: map['Guid'],
  11517. showChildFeatures: map['ShowChildFeatures'],
  11518. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11519. isAutoCalculated: map['IsAutoCalculated'],
  11520. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11521. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11522. );
  11523. }
  11524. Map<String, dynamic> toJson() {
  11525. final map = super.toJson();
  11526. map['IsClosed'] = isClosed;
  11527. map['SplineTension'] = splineTension;
  11528. return map;
  11529. }
  11530. }
  11531. class TraceLineFeatureDTO extends PolyLineFeatureDTO{
  11532. TraceLineFeatureDTO({
  11533. String? typeName,
  11534. bool isClosed = false,
  11535. double splineTension = 0,
  11536. String? creator,
  11537. String? guid,
  11538. bool showChildFeatures = false,
  11539. DateTime? timeStamp,
  11540. bool isAutoCalculated = false,
  11541. List<MeasuredValueDTO >? values,
  11542. List<MeasuredFeatureDTO >? childFeatures,
  11543. }) : super(
  11544. typeName: typeName,
  11545. isClosed: isClosed,
  11546. splineTension: splineTension,
  11547. creator: creator,
  11548. guid: guid,
  11549. showChildFeatures: showChildFeatures,
  11550. timeStamp: timeStamp,
  11551. isAutoCalculated: isAutoCalculated,
  11552. values: values,
  11553. childFeatures: childFeatures,
  11554. );
  11555. factory TraceLineFeatureDTO.fromJson(Map<String, dynamic> map) {
  11556. return TraceLineFeatureDTO(
  11557. typeName: map['TypeName'],
  11558. isClosed: map['IsClosed'],
  11559. splineTension: double.parse(map['SplineTension'].toString()),
  11560. creator: map['Creator'],
  11561. guid: map['Guid'],
  11562. showChildFeatures: map['ShowChildFeatures'],
  11563. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11564. isAutoCalculated: map['IsAutoCalculated'],
  11565. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11566. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11567. );
  11568. }
  11569. Map<String, dynamic> toJson() {
  11570. final map = super.toJson();
  11571. return map;
  11572. }
  11573. }
  11574. class SimpsonPathFeatureDTO extends TraceLineFeatureDTO{
  11575. PointDTO? centerLineMovablePoint;
  11576. SimpsonPathFeatureDTO({
  11577. String? typeName,
  11578. this.centerLineMovablePoint,
  11579. bool isClosed = false,
  11580. double splineTension = 0,
  11581. String? creator,
  11582. String? guid,
  11583. bool showChildFeatures = false,
  11584. DateTime? timeStamp,
  11585. bool isAutoCalculated = false,
  11586. List<MeasuredValueDTO >? values,
  11587. List<MeasuredFeatureDTO >? childFeatures,
  11588. }) : super(
  11589. typeName: typeName,
  11590. isClosed: isClosed,
  11591. splineTension: splineTension,
  11592. creator: creator,
  11593. guid: guid,
  11594. showChildFeatures: showChildFeatures,
  11595. timeStamp: timeStamp,
  11596. isAutoCalculated: isAutoCalculated,
  11597. values: values,
  11598. childFeatures: childFeatures,
  11599. );
  11600. factory SimpsonPathFeatureDTO.fromJson(Map<String, dynamic> map) {
  11601. return SimpsonPathFeatureDTO(
  11602. typeName: map['TypeName'],
  11603. centerLineMovablePoint: map['CenterLineMovablePoint'] != null ? PointDTO.fromJson(map['CenterLineMovablePoint']) : null,
  11604. isClosed: map['IsClosed'],
  11605. splineTension: double.parse(map['SplineTension'].toString()),
  11606. creator: map['Creator'],
  11607. guid: map['Guid'],
  11608. showChildFeatures: map['ShowChildFeatures'],
  11609. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11610. isAutoCalculated: map['IsAutoCalculated'],
  11611. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11612. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11613. );
  11614. }
  11615. Map<String, dynamic> toJson() {
  11616. final map = super.toJson();
  11617. if(centerLineMovablePoint != null)
  11618. map['CenterLineMovablePoint'] = centerLineMovablePoint;
  11619. return map;
  11620. }
  11621. }
  11622. class RectFeatureDTO extends GeometryFeatureDTO{
  11623. bool showRootFeature;
  11624. List<MeasuredFeatureDTO >? autoLines;
  11625. RectFeatureDTO({
  11626. String? typeName,
  11627. this.showRootFeature = false,
  11628. this.autoLines,
  11629. bool isVisible = false,
  11630. String? annotation,
  11631. String? briefAnnotation,
  11632. Unit xUnit = Unit.None,
  11633. Unit yUnit = Unit.None,
  11634. bool showAnnotation = false,
  11635. bool showCalliper = false,
  11636. List<PointDTO >? points,
  11637. String? creator,
  11638. String? guid,
  11639. bool showChildFeatures = false,
  11640. DateTime? timeStamp,
  11641. bool isAutoCalculated = false,
  11642. List<MeasuredValueDTO >? values,
  11643. List<MeasuredFeatureDTO >? childFeatures,
  11644. }) : super(
  11645. isVisible: isVisible,
  11646. annotation: annotation,
  11647. briefAnnotation: briefAnnotation,
  11648. xUnit: xUnit,
  11649. yUnit: yUnit,
  11650. showAnnotation: showAnnotation,
  11651. showCalliper: showCalliper,
  11652. points: points,
  11653. typeName: typeName,
  11654. creator: creator,
  11655. guid: guid,
  11656. showChildFeatures: showChildFeatures,
  11657. timeStamp: timeStamp,
  11658. isAutoCalculated: isAutoCalculated,
  11659. values: values,
  11660. childFeatures: childFeatures,
  11661. );
  11662. factory RectFeatureDTO.fromJson(Map<String, dynamic> map) {
  11663. return RectFeatureDTO(
  11664. typeName: map['TypeName'],
  11665. showRootFeature: map['ShowRootFeature'],
  11666. autoLines: map['AutoLines'] != null ? (map['AutoLines'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11667. isVisible: map['IsVisible'],
  11668. annotation: map['Annotation'],
  11669. briefAnnotation: map['BriefAnnotation'],
  11670. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11671. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11672. showAnnotation: map['ShowAnnotation'],
  11673. showCalliper: map['ShowCalliper'],
  11674. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11675. creator: map['Creator'],
  11676. guid: map['Guid'],
  11677. showChildFeatures: map['ShowChildFeatures'],
  11678. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11679. isAutoCalculated: map['IsAutoCalculated'],
  11680. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11681. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11682. );
  11683. }
  11684. Map<String, dynamic> toJson() {
  11685. final map = super.toJson();
  11686. map['ShowRootFeature'] = showRootFeature;
  11687. if(autoLines != null)
  11688. map['AutoLines'] = autoLines;
  11689. return map;
  11690. }
  11691. }
  11692. class FollicleRectFeatureDTO extends RectFeatureDTO{
  11693. FollicleRectFeatureDTO({
  11694. String? typeName,
  11695. bool showRootFeature = false,
  11696. List<MeasuredFeatureDTO >? autoLines,
  11697. bool isVisible = false,
  11698. String? annotation,
  11699. String? briefAnnotation,
  11700. Unit xUnit = Unit.None,
  11701. Unit yUnit = Unit.None,
  11702. bool showAnnotation = false,
  11703. bool showCalliper = false,
  11704. List<PointDTO >? points,
  11705. String? creator,
  11706. String? guid,
  11707. bool showChildFeatures = false,
  11708. DateTime? timeStamp,
  11709. bool isAutoCalculated = false,
  11710. List<MeasuredValueDTO >? values,
  11711. List<MeasuredFeatureDTO >? childFeatures,
  11712. }) : super(
  11713. typeName: typeName,
  11714. showRootFeature: showRootFeature,
  11715. autoLines: autoLines,
  11716. isVisible: isVisible,
  11717. annotation: annotation,
  11718. briefAnnotation: briefAnnotation,
  11719. xUnit: xUnit,
  11720. yUnit: yUnit,
  11721. showAnnotation: showAnnotation,
  11722. showCalliper: showCalliper,
  11723. points: points,
  11724. creator: creator,
  11725. guid: guid,
  11726. showChildFeatures: showChildFeatures,
  11727. timeStamp: timeStamp,
  11728. isAutoCalculated: isAutoCalculated,
  11729. values: values,
  11730. childFeatures: childFeatures,
  11731. );
  11732. factory FollicleRectFeatureDTO.fromJson(Map<String, dynamic> map) {
  11733. return FollicleRectFeatureDTO(
  11734. typeName: map['TypeName'],
  11735. showRootFeature: map['ShowRootFeature'],
  11736. autoLines: map['AutoLines'] != null ? (map['AutoLines'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11737. isVisible: map['IsVisible'],
  11738. annotation: map['Annotation'],
  11739. briefAnnotation: map['BriefAnnotation'],
  11740. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11741. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11742. showAnnotation: map['ShowAnnotation'],
  11743. showCalliper: map['ShowCalliper'],
  11744. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11745. creator: map['Creator'],
  11746. guid: map['Guid'],
  11747. showChildFeatures: map['ShowChildFeatures'],
  11748. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11749. isAutoCalculated: map['IsAutoCalculated'],
  11750. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11751. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11752. );
  11753. }
  11754. Map<String, dynamic> toJson() {
  11755. final map = super.toJson();
  11756. return map;
  11757. }
  11758. }
  11759. class StraightLineFeatureDTO extends GeometryFeatureDTO{
  11760. StraightLineShapeEnum shapeType;
  11761. bool useDashLine;
  11762. StraightLineFeatureDTO({
  11763. String? typeName,
  11764. this.shapeType = StraightLineShapeEnum.StraightLine,
  11765. this.useDashLine = false,
  11766. bool isVisible = false,
  11767. String? annotation,
  11768. String? briefAnnotation,
  11769. Unit xUnit = Unit.None,
  11770. Unit yUnit = Unit.None,
  11771. bool showAnnotation = false,
  11772. bool showCalliper = false,
  11773. List<PointDTO >? points,
  11774. String? creator,
  11775. String? guid,
  11776. bool showChildFeatures = false,
  11777. DateTime? timeStamp,
  11778. bool isAutoCalculated = false,
  11779. List<MeasuredValueDTO >? values,
  11780. List<MeasuredFeatureDTO >? childFeatures,
  11781. }) : super(
  11782. isVisible: isVisible,
  11783. annotation: annotation,
  11784. briefAnnotation: briefAnnotation,
  11785. xUnit: xUnit,
  11786. yUnit: yUnit,
  11787. showAnnotation: showAnnotation,
  11788. showCalliper: showCalliper,
  11789. points: points,
  11790. typeName: typeName,
  11791. creator: creator,
  11792. guid: guid,
  11793. showChildFeatures: showChildFeatures,
  11794. timeStamp: timeStamp,
  11795. isAutoCalculated: isAutoCalculated,
  11796. values: values,
  11797. childFeatures: childFeatures,
  11798. );
  11799. factory StraightLineFeatureDTO.fromJson(Map<String, dynamic> map) {
  11800. return StraightLineFeatureDTO(
  11801. typeName: map['TypeName'],
  11802. shapeType: StraightLineShapeEnum.values.firstWhere((e) => e.index == map['ShapeType']),
  11803. useDashLine: map['UseDashLine'],
  11804. isVisible: map['IsVisible'],
  11805. annotation: map['Annotation'],
  11806. briefAnnotation: map['BriefAnnotation'],
  11807. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11808. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11809. showAnnotation: map['ShowAnnotation'],
  11810. showCalliper: map['ShowCalliper'],
  11811. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11812. creator: map['Creator'],
  11813. guid: map['Guid'],
  11814. showChildFeatures: map['ShowChildFeatures'],
  11815. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11816. isAutoCalculated: map['IsAutoCalculated'],
  11817. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11818. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11819. );
  11820. }
  11821. Map<String, dynamic> toJson() {
  11822. final map = super.toJson();
  11823. map['ShapeType'] = shapeType.index;
  11824. map['UseDashLine'] = useDashLine;
  11825. return map;
  11826. }
  11827. }
  11828. class VasPlaqueSplitterFeatureDTO extends GeometryFeatureDTO{
  11829. int maxZoneCount;
  11830. int currentZoneCount;
  11831. int angle;
  11832. List<PointDTO >? splitterLinesPoints;
  11833. VasPlaqueSplitterFeatureDTO({
  11834. String? typeName,
  11835. this.maxZoneCount = 0,
  11836. this.currentZoneCount = 0,
  11837. this.angle = 0,
  11838. bool isVisible = false,
  11839. this.splitterLinesPoints,
  11840. String? annotation,
  11841. String? briefAnnotation,
  11842. Unit xUnit = Unit.None,
  11843. Unit yUnit = Unit.None,
  11844. bool showAnnotation = false,
  11845. bool showCalliper = false,
  11846. List<PointDTO >? points,
  11847. String? creator,
  11848. String? guid,
  11849. bool showChildFeatures = false,
  11850. DateTime? timeStamp,
  11851. bool isAutoCalculated = false,
  11852. List<MeasuredValueDTO >? values,
  11853. List<MeasuredFeatureDTO >? childFeatures,
  11854. }) : super(
  11855. isVisible: isVisible,
  11856. annotation: annotation,
  11857. briefAnnotation: briefAnnotation,
  11858. xUnit: xUnit,
  11859. yUnit: yUnit,
  11860. showAnnotation: showAnnotation,
  11861. showCalliper: showCalliper,
  11862. points: points,
  11863. typeName: typeName,
  11864. creator: creator,
  11865. guid: guid,
  11866. showChildFeatures: showChildFeatures,
  11867. timeStamp: timeStamp,
  11868. isAutoCalculated: isAutoCalculated,
  11869. values: values,
  11870. childFeatures: childFeatures,
  11871. );
  11872. factory VasPlaqueSplitterFeatureDTO.fromJson(Map<String, dynamic> map) {
  11873. return VasPlaqueSplitterFeatureDTO(
  11874. typeName: map['TypeName'],
  11875. maxZoneCount: map['MaxZoneCount'],
  11876. currentZoneCount: map['CurrentZoneCount'],
  11877. angle: map['Angle'],
  11878. isVisible: map['IsVisible'],
  11879. splitterLinesPoints: map['SplitterLinesPoints'] != null ? (map['SplitterLinesPoints'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11880. annotation: map['Annotation'],
  11881. briefAnnotation: map['BriefAnnotation'],
  11882. xUnit: Unit.values.firstWhere((e) => e.index == map['XUnit']),
  11883. yUnit: Unit.values.firstWhere((e) => e.index == map['YUnit']),
  11884. showAnnotation: map['ShowAnnotation'],
  11885. showCalliper: map['ShowCalliper'],
  11886. points: map['Points'] != null ? (map['Points'] as List).map((e)=>PointDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11887. creator: map['Creator'],
  11888. guid: map['Guid'],
  11889. showChildFeatures: map['ShowChildFeatures'],
  11890. timeStamp: map['TimeStamp'] != null ? DateTime.parse(map['TimeStamp']) : null,
  11891. isAutoCalculated: map['IsAutoCalculated'],
  11892. values: map['Values'] != null ? (map['Values'] as List).map((e)=>MeasuredValueDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11893. childFeatures: map['ChildFeatures'] != null ? (map['ChildFeatures'] as List).map((e)=>MeasuredFeatureDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  11894. );
  11895. }
  11896. Map<String, dynamic> toJson() {
  11897. final map = super.toJson();
  11898. map['MaxZoneCount'] = maxZoneCount;
  11899. map['CurrentZoneCount'] = currentZoneCount;
  11900. map['Angle'] = angle;
  11901. if(splitterLinesPoints != null)
  11902. map['SplitterLinesPoints'] = splitterLinesPoints;
  11903. return map;
  11904. }
  11905. }
  11906. class GrowthNormalRangeDTO {
  11907. String? typeName;
  11908. String? tableAuthor;
  11909. String? measureItem;
  11910. int gAinDays;
  11911. int status;
  11912. double value;
  11913. double minValue;
  11914. double maxValue;
  11915. Unit valueUnit;
  11916. Unit targetUnit;
  11917. GrowthNormalRangeDTO({
  11918. this.typeName,
  11919. this.tableAuthor,
  11920. this.measureItem,
  11921. this.gAinDays = 0,
  11922. this.status = 0,
  11923. this.value = 0,
  11924. this.minValue = 0,
  11925. this.maxValue = 0,
  11926. this.valueUnit = Unit.None,
  11927. this.targetUnit = Unit.None,
  11928. });
  11929. factory GrowthNormalRangeDTO.fromJson(Map<String, dynamic> map) {
  11930. return GrowthNormalRangeDTO(
  11931. typeName: map['TypeName'],
  11932. tableAuthor: map['TableAuthor'],
  11933. measureItem: map['MeasureItem'],
  11934. gAinDays: map['GAinDays'],
  11935. status: map['Status'],
  11936. value: double.parse(map['Value'].toString()),
  11937. minValue: double.parse(map['MinValue'].toString()),
  11938. maxValue: double.parse(map['MaxValue'].toString()),
  11939. valueUnit: Unit.values.firstWhere((e) => e.index == map['ValueUnit']),
  11940. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  11941. );
  11942. }
  11943. Map<String, dynamic> toJson() {
  11944. final map = Map<String, dynamic>();
  11945. if(typeName != null)
  11946. map['TypeName'] = typeName;
  11947. if(tableAuthor != null)
  11948. map['TableAuthor'] = tableAuthor;
  11949. if(measureItem != null)
  11950. map['MeasureItem'] = measureItem;
  11951. map['GAinDays'] = gAinDays;
  11952. map['Status'] = status;
  11953. map['Value'] = value;
  11954. map['MinValue'] = minValue;
  11955. map['MaxValue'] = maxValue;
  11956. map['ValueUnit'] = valueUnit.index;
  11957. map['TargetUnit'] = targetUnit.index;
  11958. return map;
  11959. }
  11960. }
  11961. class EFWRepresentationDTO extends FloatValueDTO{
  11962. EFWRepresentationDTO({
  11963. FetalGrowthIndexDTO? fetalGrowthIndex,
  11964. String? typeName,
  11965. String? name,
  11966. String? description,
  11967. bool worksheetAffinity = false,
  11968. String? briefDescription,
  11969. String? value,
  11970. Unit unit = Unit.None,
  11971. Unit targetUnit = Unit.None,
  11972. }) : super(
  11973. fetalGrowthIndex: fetalGrowthIndex,
  11974. typeName: typeName,
  11975. name: name,
  11976. description: description,
  11977. worksheetAffinity: worksheetAffinity,
  11978. briefDescription: briefDescription,
  11979. value: value,
  11980. unit: unit,
  11981. targetUnit: targetUnit,
  11982. );
  11983. factory EFWRepresentationDTO.fromJson(Map<String, dynamic> map) {
  11984. return EFWRepresentationDTO(
  11985. fetalGrowthIndex: map['FetalGrowthIndex'] != null ? FetalGrowthIndexDTO.fromJson(map['FetalGrowthIndex']) : null,
  11986. typeName: map['TypeName'],
  11987. name: map['Name'],
  11988. description: map['Description'],
  11989. worksheetAffinity: map['WorksheetAffinity'],
  11990. briefDescription: map['BriefDescription'],
  11991. value: map['Value'],
  11992. unit: Unit.values.firstWhere((e) => e.index == map['Unit']),
  11993. targetUnit: Unit.values.firstWhere((e) => e.index == map['TargetUnit']),
  11994. );
  11995. }
  11996. Map<String, dynamic> toJson() {
  11997. final map = super.toJson();
  11998. return map;
  11999. }
  12000. }
  12001. class AdminExtendInfoDTO extends AdminInfoDTO{
  12002. List<String >? roleNames;
  12003. String? defaultRoleCode;
  12004. String? defaultRoleName;
  12005. bool isLocked;
  12006. AdminExtendInfoDTO({
  12007. this.roleNames,
  12008. this.defaultRoleCode,
  12009. this.defaultRoleName,
  12010. this.isLocked = false,
  12011. String? adminCode,
  12012. String? fatherCode,
  12013. String? adminName,
  12014. String? fullName,
  12015. String? secretPassword,
  12016. String? headImageToken,
  12017. String? licenseKey,
  12018. String? lastIP,
  12019. String? phone,
  12020. String? email,
  12021. List<String >? roleCodes,
  12022. LoginLockInfoDTO? loginLockInfo,
  12023. DateTime? passwordUpdateTime,
  12024. List<String >? passwordRecords,
  12025. List<ClearLogOperateDTO >? clearLogOperateList,
  12026. DateTime? createTime,
  12027. DateTime? updateTime,
  12028. }) : super(
  12029. adminCode: adminCode,
  12030. fatherCode: fatherCode,
  12031. adminName: adminName,
  12032. fullName: fullName,
  12033. secretPassword: secretPassword,
  12034. headImageToken: headImageToken,
  12035. licenseKey: licenseKey,
  12036. lastIP: lastIP,
  12037. phone: phone,
  12038. email: email,
  12039. roleCodes: roleCodes,
  12040. loginLockInfo: loginLockInfo,
  12041. passwordUpdateTime: passwordUpdateTime,
  12042. passwordRecords: passwordRecords,
  12043. clearLogOperateList: clearLogOperateList,
  12044. createTime: createTime,
  12045. updateTime: updateTime,
  12046. );
  12047. factory AdminExtendInfoDTO.fromJson(Map<String, dynamic> map) {
  12048. return AdminExtendInfoDTO(
  12049. roleNames: map['RoleNames'] != null ? map['RoleNames'].cast<String>().toList() : null,
  12050. defaultRoleCode: map['DefaultRoleCode'],
  12051. defaultRoleName: map['DefaultRoleName'],
  12052. isLocked: map['IsLocked'],
  12053. adminCode: map['AdminCode'],
  12054. fatherCode: map['FatherCode'],
  12055. adminName: map['AdminName'],
  12056. fullName: map['FullName'],
  12057. secretPassword: map['SecretPassword'],
  12058. headImageToken: map['HeadImageToken'],
  12059. licenseKey: map['LicenseKey'],
  12060. lastIP: map['LastIP'],
  12061. phone: map['Phone'],
  12062. email: map['Email'],
  12063. roleCodes: map['RoleCodes'] != null ? map['RoleCodes'].cast<String>().toList() : null,
  12064. loginLockInfo: map['LoginLockInfo'] != null ? LoginLockInfoDTO.fromJson(map['LoginLockInfo']) : null,
  12065. passwordUpdateTime: map['PasswordUpdateTime'] != null ? DateTime.parse(map['PasswordUpdateTime']) : null,
  12066. passwordRecords: map['PasswordRecords'] != null ? map['PasswordRecords'].cast<String>().toList() : null,
  12067. clearLogOperateList: map['ClearLogOperateList'] != null ? (map['ClearLogOperateList'] as List).map((e)=>ClearLogOperateDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12068. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12069. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12070. );
  12071. }
  12072. Map<String, dynamic> toJson() {
  12073. final map = super.toJson();
  12074. if(roleNames != null)
  12075. map['RoleNames'] = roleNames;
  12076. if(defaultRoleCode != null)
  12077. map['DefaultRoleCode'] = defaultRoleCode;
  12078. if(defaultRoleName != null)
  12079. map['DefaultRoleName'] = defaultRoleName;
  12080. map['IsLocked'] = isLocked;
  12081. return map;
  12082. }
  12083. }
  12084. class AdminLoginResult {
  12085. LoginStateEnum loginState;
  12086. String? token;
  12087. int? lockRemainingTimes;
  12088. bool isDistributedServer;
  12089. bool passwordExpired;
  12090. String? adminName;
  12091. AdminLoginResult({
  12092. this.loginState = LoginStateEnum.Succeed,
  12093. this.token,
  12094. this.lockRemainingTimes,
  12095. this.isDistributedServer = false,
  12096. this.passwordExpired = false,
  12097. this.adminName,
  12098. });
  12099. factory AdminLoginResult.fromJson(Map<String, dynamic> map) {
  12100. return AdminLoginResult(
  12101. loginState: LoginStateEnum.values.firstWhere((e) => e.index == map['LoginState']),
  12102. token: map['Token'],
  12103. lockRemainingTimes: map['LockRemainingTimes'],
  12104. isDistributedServer: map['IsDistributedServer'],
  12105. passwordExpired: map['PasswordExpired'],
  12106. adminName: map['AdminName'],
  12107. );
  12108. }
  12109. Map<String, dynamic> toJson() {
  12110. final map = Map<String, dynamic>();
  12111. map['LoginState'] = loginState.index;
  12112. if(token != null)
  12113. map['Token'] = token;
  12114. if(lockRemainingTimes != null)
  12115. map['LockRemainingTimes'] = lockRemainingTimes;
  12116. map['IsDistributedServer'] = isDistributedServer;
  12117. map['PasswordExpired'] = passwordExpired;
  12118. if(adminName != null)
  12119. map['AdminName'] = adminName;
  12120. return map;
  12121. }
  12122. }
  12123. class WaitDeleteLogBaseDTO {
  12124. int daysAgoList;
  12125. int waitDeleteLogCount;
  12126. WaitDeleteLogBaseDTO({
  12127. this.daysAgoList = 0,
  12128. this.waitDeleteLogCount = 0,
  12129. });
  12130. factory WaitDeleteLogBaseDTO.fromJson(Map<String, dynamic> map) {
  12131. return WaitDeleteLogBaseDTO(
  12132. daysAgoList: map['DaysAgoList'],
  12133. waitDeleteLogCount: map['WaitDeleteLogCount'],
  12134. );
  12135. }
  12136. Map<String, dynamic> toJson() {
  12137. final map = Map<String, dynamic>();
  12138. map['DaysAgoList'] = daysAgoList;
  12139. map['WaitDeleteLogCount'] = waitDeleteLogCount;
  12140. return map;
  12141. }
  12142. }
  12143. class WaitDeleteLogsDTO {
  12144. List<WaitDeleteLogBaseDTO >? waitDeleteLogs;
  12145. int daysAgo;
  12146. String? requestServerHost;
  12147. DateTime? lastClearTime;
  12148. DateTime? lastClearOperateTime;
  12149. WaitDeleteLogsDTO({
  12150. this.waitDeleteLogs,
  12151. this.daysAgo = 0,
  12152. this.requestServerHost,
  12153. this.lastClearTime,
  12154. this.lastClearOperateTime,
  12155. });
  12156. factory WaitDeleteLogsDTO.fromJson(Map<String, dynamic> map) {
  12157. return WaitDeleteLogsDTO(
  12158. waitDeleteLogs: map['WaitDeleteLogs'] != null ? (map['WaitDeleteLogs'] as List).map((e)=>WaitDeleteLogBaseDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12159. daysAgo: map['DaysAgo'],
  12160. requestServerHost: map['RequestServerHost'],
  12161. lastClearTime: map['LastClearTime'] != null ? DateTime.parse(map['LastClearTime']) : null,
  12162. lastClearOperateTime: map['LastClearOperateTime'] != null ? DateTime.parse(map['LastClearOperateTime']) : null,
  12163. );
  12164. }
  12165. Map<String, dynamic> toJson() {
  12166. final map = Map<String, dynamic>();
  12167. if(waitDeleteLogs != null)
  12168. map['WaitDeleteLogs'] = waitDeleteLogs;
  12169. map['DaysAgo'] = daysAgo;
  12170. if(requestServerHost != null)
  12171. map['RequestServerHost'] = requestServerHost;
  12172. if(lastClearTime != null)
  12173. map['LastClearTime'] = JsonRpcUtils.dateFormat(lastClearTime!);
  12174. if(lastClearOperateTime != null)
  12175. map['LastClearOperateTime'] = JsonRpcUtils.dateFormat(lastClearOperateTime!);
  12176. return map;
  12177. }
  12178. }
  12179. class ManageAdminFeatureInfoDTO {
  12180. List<String >? featureCodeList;
  12181. ManageAdminFeatureInfoDTO({
  12182. this.featureCodeList,
  12183. });
  12184. factory ManageAdminFeatureInfoDTO.fromJson(Map<String, dynamic> map) {
  12185. return ManageAdminFeatureInfoDTO(
  12186. featureCodeList: map['FeatureCodeList'] != null ? map['FeatureCodeList'].cast<String>().toList() : null,
  12187. );
  12188. }
  12189. Map<String, dynamic> toJson() {
  12190. final map = Map<String, dynamic>();
  12191. if(featureCodeList != null)
  12192. map['FeatureCodeList'] = featureCodeList;
  12193. return map;
  12194. }
  12195. }
  12196. class FeatureDetail {
  12197. String? id;
  12198. FeatureDetail({
  12199. this.id,
  12200. });
  12201. factory FeatureDetail.fromJson(Map<String, dynamic> map) {
  12202. return FeatureDetail(
  12203. id: map['Id'],
  12204. );
  12205. }
  12206. Map<String, dynamic> toJson() {
  12207. final map = Map<String, dynamic>();
  12208. if(id != null)
  12209. map['Id'] = id;
  12210. return map;
  12211. }
  12212. }
  12213. class ManageAdminRoleInfoDTO extends AdminRoleDTO{
  12214. List<FeatureDetail >? featureList;
  12215. ManageAdminRoleInfoDTO({
  12216. this.featureList,
  12217. String? adminGroupCode,
  12218. int adminNum = 0,
  12219. String? roleCode,
  12220. String? roleName,
  12221. String? description,
  12222. List<UserRoleLanguageConfigDTO >? languageConfigs,
  12223. DateTime? createTime,
  12224. DateTime? updateTime,
  12225. }) : super(
  12226. adminGroupCode: adminGroupCode,
  12227. adminNum: adminNum,
  12228. roleCode: roleCode,
  12229. roleName: roleName,
  12230. description: description,
  12231. languageConfigs: languageConfigs,
  12232. createTime: createTime,
  12233. updateTime: updateTime,
  12234. );
  12235. factory ManageAdminRoleInfoDTO.fromJson(Map<String, dynamic> map) {
  12236. return ManageAdminRoleInfoDTO(
  12237. featureList: map['FeatureList'] != null ? (map['FeatureList'] as List).map((e)=>FeatureDetail.fromJson(e as Map<String,dynamic>)).toList() : null,
  12238. adminGroupCode: map['AdminGroupCode'],
  12239. adminNum: map['AdminNum'],
  12240. roleCode: map['RoleCode'],
  12241. roleName: map['RoleName'],
  12242. description: map['Description'],
  12243. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12244. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12245. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12246. );
  12247. }
  12248. Map<String, dynamic> toJson() {
  12249. final map = super.toJson();
  12250. if(featureList != null)
  12251. map['FeatureList'] = featureList;
  12252. return map;
  12253. }
  12254. }
  12255. class ManageCreateProductDTO extends CreateProductDTO{
  12256. ManageCreateProductDTO({
  12257. String? productCode,
  12258. DateTime? createTime,
  12259. DateTime? updateTime,
  12260. }) : super(
  12261. productCode: productCode,
  12262. createTime: createTime,
  12263. updateTime: updateTime,
  12264. );
  12265. factory ManageCreateProductDTO.fromJson(Map<String, dynamic> map) {
  12266. return ManageCreateProductDTO(
  12267. productCode: map['ProductCode'],
  12268. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12269. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12270. );
  12271. }
  12272. Map<String, dynamic> toJson() {
  12273. final map = super.toJson();
  12274. return map;
  12275. }
  12276. }
  12277. class ManageDeviceInfoDTO extends DeviceInfoDTO{
  12278. String? hospitalName;
  12279. String? departmentName;
  12280. String? directorName;
  12281. String? adminName;
  12282. String? shareUserNum;
  12283. String? deviceModelName;
  12284. List<DictionaryLanguageConfigDTO >? languageConfigs;
  12285. ManageDeviceInfoDTO({
  12286. this.hospitalName,
  12287. this.departmentName,
  12288. this.directorName,
  12289. this.adminName,
  12290. this.shareUserNum,
  12291. this.deviceModelName,
  12292. this.languageConfigs,
  12293. String? deviceCode,
  12294. String? serialNumber,
  12295. String? password,
  12296. String? name,
  12297. String? description,
  12298. String? deviceModel,
  12299. String? deviceType,
  12300. String? headPicUrl,
  12301. String? deviceSoftwareVersion,
  12302. String? sDKSoftwareVersion,
  12303. String? organizationCode,
  12304. String? departmentCode,
  12305. String? shortCode,
  12306. bool isAutoShared = false,
  12307. bool isEncryptedShow = false,
  12308. DateTime? lastLoginTime,
  12309. String? systemVersion,
  12310. String? cPUModel,
  12311. String? systemLanguage,
  12312. List<String >? diagnosisModules,
  12313. List<String >? reportPosterCodes,
  12314. bool mergedChannel = false,
  12315. int mergedVideoOutputWidth = 0,
  12316. int mergedVideoOutputHeight = 0,
  12317. List<VideoDeviceDTO >? videoDeviceInfos,
  12318. DownloadModeSettingEnum downloadModeSetting = DownloadModeSettingEnum.Auto,
  12319. bool liveOpened = false,
  12320. DateTime? createTime,
  12321. DateTime? updateTime,
  12322. }) : super(
  12323. deviceCode: deviceCode,
  12324. serialNumber: serialNumber,
  12325. password: password,
  12326. name: name,
  12327. description: description,
  12328. deviceModel: deviceModel,
  12329. deviceType: deviceType,
  12330. headPicUrl: headPicUrl,
  12331. deviceSoftwareVersion: deviceSoftwareVersion,
  12332. sDKSoftwareVersion: sDKSoftwareVersion,
  12333. organizationCode: organizationCode,
  12334. departmentCode: departmentCode,
  12335. shortCode: shortCode,
  12336. isAutoShared: isAutoShared,
  12337. isEncryptedShow: isEncryptedShow,
  12338. lastLoginTime: lastLoginTime,
  12339. systemVersion: systemVersion,
  12340. cPUModel: cPUModel,
  12341. systemLanguage: systemLanguage,
  12342. diagnosisModules: diagnosisModules,
  12343. reportPosterCodes: reportPosterCodes,
  12344. mergedChannel: mergedChannel,
  12345. mergedVideoOutputWidth: mergedVideoOutputWidth,
  12346. mergedVideoOutputHeight: mergedVideoOutputHeight,
  12347. videoDeviceInfos: videoDeviceInfos,
  12348. downloadModeSetting: downloadModeSetting,
  12349. liveOpened: liveOpened,
  12350. createTime: createTime,
  12351. updateTime: updateTime,
  12352. );
  12353. factory ManageDeviceInfoDTO.fromJson(Map<String, dynamic> map) {
  12354. return ManageDeviceInfoDTO(
  12355. hospitalName: map['HospitalName'],
  12356. departmentName: map['DepartmentName'],
  12357. directorName: map['DirectorName'],
  12358. adminName: map['AdminName'],
  12359. shareUserNum: map['ShareUserNum'],
  12360. deviceModelName: map['DeviceModelName'],
  12361. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>DictionaryLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12362. deviceCode: map['DeviceCode'],
  12363. serialNumber: map['SerialNumber'],
  12364. password: map['Password'],
  12365. name: map['Name'],
  12366. description: map['Description'],
  12367. deviceModel: map['DeviceModel'],
  12368. deviceType: map['DeviceType'],
  12369. headPicUrl: map['HeadPicUrl'],
  12370. deviceSoftwareVersion: map['DeviceSoftwareVersion'],
  12371. sDKSoftwareVersion: map['SDKSoftwareVersion'],
  12372. organizationCode: map['OrganizationCode'],
  12373. departmentCode: map['DepartmentCode'],
  12374. shortCode: map['ShortCode'],
  12375. isAutoShared: map['IsAutoShared'],
  12376. isEncryptedShow: map['IsEncryptedShow'],
  12377. lastLoginTime: map['LastLoginTime'] != null ? DateTime.parse(map['LastLoginTime']) : null,
  12378. systemVersion: map['SystemVersion'],
  12379. cPUModel: map['CPUModel'],
  12380. systemLanguage: map['SystemLanguage'],
  12381. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  12382. reportPosterCodes: map['ReportPosterCodes'] != null ? map['ReportPosterCodes'].cast<String>().toList() : null,
  12383. mergedChannel: map['MergedChannel'],
  12384. mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
  12385. mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
  12386. videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12387. downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
  12388. liveOpened: map['LiveOpened'],
  12389. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12390. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12391. );
  12392. }
  12393. Map<String, dynamic> toJson() {
  12394. final map = super.toJson();
  12395. if(hospitalName != null)
  12396. map['HospitalName'] = hospitalName;
  12397. if(departmentName != null)
  12398. map['DepartmentName'] = departmentName;
  12399. if(directorName != null)
  12400. map['DirectorName'] = directorName;
  12401. if(adminName != null)
  12402. map['AdminName'] = adminName;
  12403. if(shareUserNum != null)
  12404. map['ShareUserNum'] = shareUserNum;
  12405. if(deviceModelName != null)
  12406. map['DeviceModelName'] = deviceModelName;
  12407. if(languageConfigs != null)
  12408. map['LanguageConfigs'] = languageConfigs;
  12409. return map;
  12410. }
  12411. }
  12412. class ManageDeviceTypeDTO {
  12413. String? dictionaryCode;
  12414. String? value;
  12415. List<DictionaryLanguageConfigDTO >? languageConfigs;
  12416. List<DictionaryDTO >? dictionaryList;
  12417. ManageDeviceTypeDTO({
  12418. this.dictionaryCode,
  12419. this.value,
  12420. this.languageConfigs,
  12421. this.dictionaryList,
  12422. });
  12423. factory ManageDeviceTypeDTO.fromJson(Map<String, dynamic> map) {
  12424. return ManageDeviceTypeDTO(
  12425. dictionaryCode: map['DictionaryCode'],
  12426. value: map['Value'],
  12427. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>DictionaryLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12428. dictionaryList: map['DictionaryList'] != null ? (map['DictionaryList'] as List).map((e)=>DictionaryDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12429. );
  12430. }
  12431. Map<String, dynamic> toJson() {
  12432. final map = Map<String, dynamic>();
  12433. if(dictionaryCode != null)
  12434. map['DictionaryCode'] = dictionaryCode;
  12435. if(value != null)
  12436. map['Value'] = value;
  12437. if(languageConfigs != null)
  12438. map['LanguageConfigs'] = languageConfigs;
  12439. if(dictionaryList != null)
  12440. map['DictionaryList'] = dictionaryList;
  12441. return map;
  12442. }
  12443. }
  12444. class ManageDeviceUserDTO {
  12445. String? userCode;
  12446. String? userName;
  12447. String? phone;
  12448. String? email;
  12449. String? nickName;
  12450. String? fullName;
  12451. String? hospitalName;
  12452. ManageDeviceUserDTO({
  12453. this.userCode,
  12454. this.userName,
  12455. this.phone,
  12456. this.email,
  12457. this.nickName,
  12458. this.fullName,
  12459. this.hospitalName,
  12460. });
  12461. factory ManageDeviceUserDTO.fromJson(Map<String, dynamic> map) {
  12462. return ManageDeviceUserDTO(
  12463. userCode: map['UserCode'],
  12464. userName: map['UserName'],
  12465. phone: map['Phone'],
  12466. email: map['Email'],
  12467. nickName: map['NickName'],
  12468. fullName: map['FullName'],
  12469. hospitalName: map['HospitalName'],
  12470. );
  12471. }
  12472. Map<String, dynamic> toJson() {
  12473. final map = Map<String, dynamic>();
  12474. if(userCode != null)
  12475. map['UserCode'] = userCode;
  12476. if(userName != null)
  12477. map['UserName'] = userName;
  12478. if(phone != null)
  12479. map['Phone'] = phone;
  12480. if(email != null)
  12481. map['Email'] = email;
  12482. if(nickName != null)
  12483. map['NickName'] = nickName;
  12484. if(fullName != null)
  12485. map['FullName'] = fullName;
  12486. if(hospitalName != null)
  12487. map['HospitalName'] = hospitalName;
  12488. return map;
  12489. }
  12490. }
  12491. class ManageOrderDetailDTO extends OrderDetailDTO{
  12492. ManageOrderDetailDTO({
  12493. String? code,
  12494. String? orderUserName,
  12495. String? orderUserCode,
  12496. String? productCode,
  12497. String? tPORderCode,
  12498. String? orderTitle,
  12499. OrderTypeEnum orderType = OrderTypeEnum.General,
  12500. double orderAmount = 0,
  12501. DateTime? payTime,
  12502. PayStatusEnum payStatus = PayStatusEnum.NoPay,
  12503. DateTime? createTime,
  12504. DateTime? updateTime,
  12505. }) : super(
  12506. code: code,
  12507. orderUserName: orderUserName,
  12508. orderUserCode: orderUserCode,
  12509. productCode: productCode,
  12510. tPORderCode: tPORderCode,
  12511. orderTitle: orderTitle,
  12512. orderType: orderType,
  12513. orderAmount: orderAmount,
  12514. payTime: payTime,
  12515. payStatus: payStatus,
  12516. createTime: createTime,
  12517. updateTime: updateTime,
  12518. );
  12519. factory ManageOrderDetailDTO.fromJson(Map<String, dynamic> map) {
  12520. return ManageOrderDetailDTO(
  12521. code: map['Code'],
  12522. orderUserName: map['OrderUserName'],
  12523. orderUserCode: map['OrderUserCode'],
  12524. productCode: map['ProductCode'],
  12525. tPORderCode: map['TPORderCode'],
  12526. orderTitle: map['OrderTitle'],
  12527. orderType: OrderTypeEnum.values.firstWhere((e) => e.index == map['OrderType']),
  12528. orderAmount: double.parse(map['OrderAmount'].toString()),
  12529. payTime: map['PayTime'] != null ? DateTime.parse(map['PayTime']) : null,
  12530. payStatus: PayStatusEnum.values.firstWhere((e) => e.index == map['PayStatus']),
  12531. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12532. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12533. );
  12534. }
  12535. Map<String, dynamic> toJson() {
  12536. final map = super.toJson();
  12537. return map;
  12538. }
  12539. }
  12540. class ManageOrganizationDTO extends OrganizationDTO{
  12541. String? countryName;
  12542. String? provinceName;
  12543. String? cityName;
  12544. String? countryCode;
  12545. String? provinceCode;
  12546. String? cityCode;
  12547. String? directorName;
  12548. String? adminFullName;
  12549. ManageOrganizationDTO({
  12550. this.countryName,
  12551. this.provinceName,
  12552. this.cityName,
  12553. this.countryCode,
  12554. this.provinceCode,
  12555. this.cityCode,
  12556. this.directorName,
  12557. this.adminFullName,
  12558. String? description,
  12559. String? rootCode,
  12560. OrganizationTypeEnum organizationType = OrganizationTypeEnum.Corporation,
  12561. List<String >? authorityGroups,
  12562. String? nautica,
  12563. OrganizationStateEnum state = OrganizationStateEnum.WaitAudit,
  12564. List<String >? directors,
  12565. List<String >? assignedAdmins,
  12566. String? patientSettingJson,
  12567. String? examSettingJson,
  12568. String? consultationSettingJson,
  12569. String? patientSettingVersion,
  12570. String? examSettingVersion,
  12571. String? consultationSettingVersion,
  12572. String? parentOrganizationName,
  12573. String? regionCode,
  12574. String? parentCode,
  12575. String? logoUrl,
  12576. OrganizationPatientTypeEnum patientType = OrganizationPatientTypeEnum.Person,
  12577. bool isinvented = false,
  12578. List<SettingDTOClass >? settings,
  12579. List<String >? diagnosisModules,
  12580. bool isEncryptedShow = false,
  12581. double referralLimitHours = 0,
  12582. List<String >? referralOrganizationCodes,
  12583. List<ReferralOrganizationDTO >? referralOrganizations,
  12584. String? organizationCode,
  12585. String? organizationName,
  12586. DateTime? createTime,
  12587. DateTime? updateTime,
  12588. }) : super(
  12589. description: description,
  12590. rootCode: rootCode,
  12591. organizationType: organizationType,
  12592. authorityGroups: authorityGroups,
  12593. nautica: nautica,
  12594. state: state,
  12595. directors: directors,
  12596. assignedAdmins: assignedAdmins,
  12597. patientSettingJson: patientSettingJson,
  12598. examSettingJson: examSettingJson,
  12599. consultationSettingJson: consultationSettingJson,
  12600. patientSettingVersion: patientSettingVersion,
  12601. examSettingVersion: examSettingVersion,
  12602. consultationSettingVersion: consultationSettingVersion,
  12603. parentOrganizationName: parentOrganizationName,
  12604. regionCode: regionCode,
  12605. parentCode: parentCode,
  12606. logoUrl: logoUrl,
  12607. patientType: patientType,
  12608. isinvented: isinvented,
  12609. settings: settings,
  12610. diagnosisModules: diagnosisModules,
  12611. isEncryptedShow: isEncryptedShow,
  12612. referralLimitHours: referralLimitHours,
  12613. referralOrganizationCodes: referralOrganizationCodes,
  12614. referralOrganizations: referralOrganizations,
  12615. organizationCode: organizationCode,
  12616. organizationName: organizationName,
  12617. createTime: createTime,
  12618. updateTime: updateTime,
  12619. );
  12620. factory ManageOrganizationDTO.fromJson(Map<String, dynamic> map) {
  12621. return ManageOrganizationDTO(
  12622. countryName: map['CountryName'],
  12623. provinceName: map['ProvinceName'],
  12624. cityName: map['CityName'],
  12625. countryCode: map['CountryCode'],
  12626. provinceCode: map['ProvinceCode'],
  12627. cityCode: map['CityCode'],
  12628. directorName: map['DirectorName'],
  12629. adminFullName: map['AdminFullName'],
  12630. description: map['Description'],
  12631. rootCode: map['RootCode'],
  12632. organizationType: OrganizationTypeEnum.values.firstWhere((e) => e.index == map['OrganizationType']),
  12633. authorityGroups: map['AuthorityGroups'] != null ? map['AuthorityGroups'].cast<String>().toList() : null,
  12634. nautica: map['Nautica'],
  12635. state: OrganizationStateEnum.values.firstWhere((e) => e.index == map['State']),
  12636. directors: map['Directors'] != null ? map['Directors'].cast<String>().toList() : null,
  12637. assignedAdmins: map['AssignedAdmins'] != null ? map['AssignedAdmins'].cast<String>().toList() : null,
  12638. patientSettingJson: map['PatientSettingJson'],
  12639. examSettingJson: map['ExamSettingJson'],
  12640. consultationSettingJson: map['ConsultationSettingJson'],
  12641. patientSettingVersion: map['PatientSettingVersion'],
  12642. examSettingVersion: map['ExamSettingVersion'],
  12643. consultationSettingVersion: map['ConsultationSettingVersion'],
  12644. parentOrganizationName: map['ParentOrganizationName'],
  12645. regionCode: map['RegionCode'],
  12646. parentCode: map['ParentCode'],
  12647. logoUrl: map['LogoUrl'],
  12648. patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
  12649. isinvented: map['Isinvented'],
  12650. settings: map['Settings'] != null ? (map['Settings'] as List).map((e)=>SettingDTOClass.fromJson(e as Map<String,dynamic>)).toList() : null,
  12651. diagnosisModules: map['DiagnosisModules'] != null ? map['DiagnosisModules'].cast<String>().toList() : null,
  12652. isEncryptedShow: map['IsEncryptedShow'],
  12653. referralLimitHours: double.parse(map['ReferralLimitHours'].toString()),
  12654. referralOrganizationCodes: map['ReferralOrganizationCodes'] != null ? map['ReferralOrganizationCodes'].cast<String>().toList() : null,
  12655. referralOrganizations: map['ReferralOrganizations'] != null ? (map['ReferralOrganizations'] as List).map((e)=>ReferralOrganizationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12656. organizationCode: map['OrganizationCode'],
  12657. organizationName: map['OrganizationName'],
  12658. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12659. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12660. );
  12661. }
  12662. Map<String, dynamic> toJson() {
  12663. final map = super.toJson();
  12664. if(countryName != null)
  12665. map['CountryName'] = countryName;
  12666. if(provinceName != null)
  12667. map['ProvinceName'] = provinceName;
  12668. if(cityName != null)
  12669. map['CityName'] = cityName;
  12670. if(countryCode != null)
  12671. map['CountryCode'] = countryCode;
  12672. if(provinceCode != null)
  12673. map['ProvinceCode'] = provinceCode;
  12674. if(cityCode != null)
  12675. map['CityCode'] = cityCode;
  12676. if(directorName != null)
  12677. map['DirectorName'] = directorName;
  12678. if(adminFullName != null)
  12679. map['AdminFullName'] = adminFullName;
  12680. return map;
  12681. }
  12682. }
  12683. class ManageOrganizationUserDTO {
  12684. String? userCode;
  12685. String? userName;
  12686. String? phone;
  12687. String? email;
  12688. String? nickName;
  12689. String? fullName;
  12690. String? hospitalName;
  12691. ManageOrganizationUserDTO({
  12692. this.userCode,
  12693. this.userName,
  12694. this.phone,
  12695. this.email,
  12696. this.nickName,
  12697. this.fullName,
  12698. this.hospitalName,
  12699. });
  12700. factory ManageOrganizationUserDTO.fromJson(Map<String, dynamic> map) {
  12701. return ManageOrganizationUserDTO(
  12702. userCode: map['UserCode'],
  12703. userName: map['UserName'],
  12704. phone: map['Phone'],
  12705. email: map['Email'],
  12706. nickName: map['NickName'],
  12707. fullName: map['FullName'],
  12708. hospitalName: map['HospitalName'],
  12709. );
  12710. }
  12711. Map<String, dynamic> toJson() {
  12712. final map = Map<String, dynamic>();
  12713. if(userCode != null)
  12714. map['UserCode'] = userCode;
  12715. if(userName != null)
  12716. map['UserName'] = userName;
  12717. if(phone != null)
  12718. map['Phone'] = phone;
  12719. if(email != null)
  12720. map['Email'] = email;
  12721. if(nickName != null)
  12722. map['NickName'] = nickName;
  12723. if(fullName != null)
  12724. map['FullName'] = fullName;
  12725. if(hospitalName != null)
  12726. map['HospitalName'] = hospitalName;
  12727. return map;
  12728. }
  12729. }
  12730. class ManagePaymentRecordDTO extends PaymentRecordDTO{
  12731. ManagePaymentRecordDTO({
  12732. String? orderCode,
  12733. double payAmount = 0,
  12734. DateTime? payTime,
  12735. PayStatusEnum payStatus = PayStatusEnum.NoPay,
  12736. PayTypeEnum payType = PayTypeEnum.Alipay_PAGE,
  12737. String? payReqContent,
  12738. String? payResContent,
  12739. DateTime? createTime,
  12740. DateTime? updateTime,
  12741. }) : super(
  12742. orderCode: orderCode,
  12743. payAmount: payAmount,
  12744. payTime: payTime,
  12745. payStatus: payStatus,
  12746. payType: payType,
  12747. payReqContent: payReqContent,
  12748. payResContent: payResContent,
  12749. createTime: createTime,
  12750. updateTime: updateTime,
  12751. );
  12752. factory ManagePaymentRecordDTO.fromJson(Map<String, dynamic> map) {
  12753. return ManagePaymentRecordDTO(
  12754. orderCode: map['OrderCode'],
  12755. payAmount: double.parse(map['PayAmount'].toString()),
  12756. payTime: map['PayTime'] != null ? DateTime.parse(map['PayTime']) : null,
  12757. payStatus: PayStatusEnum.values.firstWhere((e) => e.index == map['PayStatus']),
  12758. payType: PayTypeEnum.values.firstWhere((e) => e.index == map['PayType']),
  12759. payReqContent: map['PayReqContent'],
  12760. payResContent: map['PayResContent'],
  12761. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12762. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12763. );
  12764. }
  12765. Map<String, dynamic> toJson() {
  12766. final map = super.toJson();
  12767. return map;
  12768. }
  12769. }
  12770. class ManageRoleInfoDTO extends RoleDTO{
  12771. List<FeatureDetail >? featureList;
  12772. ManageRoleInfoDTO({
  12773. this.featureList,
  12774. RoleShowTypeEnum roleShowType = RoleShowTypeEnum.NotShow,
  12775. String? iConUrl,
  12776. String? colorStart,
  12777. String? colorEnd,
  12778. RoleQualificationEnum roleQualification = RoleQualificationEnum.NoNeed,
  12779. String? userGroupCode,
  12780. RoleShowTypeEnum fieldShowType = RoleShowTypeEnum.NotShow,
  12781. List<String >? fieldList,
  12782. String? roleCode,
  12783. String? roleName,
  12784. String? description,
  12785. List<UserRoleLanguageConfigDTO >? languageConfigs,
  12786. DateTime? createTime,
  12787. DateTime? updateTime,
  12788. }) : super(
  12789. roleShowType: roleShowType,
  12790. iConUrl: iConUrl,
  12791. colorStart: colorStart,
  12792. colorEnd: colorEnd,
  12793. roleQualification: roleQualification,
  12794. userGroupCode: userGroupCode,
  12795. fieldShowType: fieldShowType,
  12796. fieldList: fieldList,
  12797. roleCode: roleCode,
  12798. roleName: roleName,
  12799. description: description,
  12800. languageConfigs: languageConfigs,
  12801. createTime: createTime,
  12802. updateTime: updateTime,
  12803. );
  12804. factory ManageRoleInfoDTO.fromJson(Map<String, dynamic> map) {
  12805. return ManageRoleInfoDTO(
  12806. featureList: map['FeatureList'] != null ? (map['FeatureList'] as List).map((e)=>FeatureDetail.fromJson(e as Map<String,dynamic>)).toList() : null,
  12807. roleShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['RoleShowType']),
  12808. iConUrl: map['IConUrl'],
  12809. colorStart: map['ColorStart'],
  12810. colorEnd: map['ColorEnd'],
  12811. roleQualification: RoleQualificationEnum.values.firstWhere((e) => e.index == map['RoleQualification']),
  12812. userGroupCode: map['UserGroupCode'],
  12813. fieldShowType: RoleShowTypeEnum.values.firstWhere((e) => e.index == map['FieldShowType']),
  12814. fieldList: map['FieldList'] != null ? map['FieldList'].cast<String>().toList() : null,
  12815. roleCode: map['RoleCode'],
  12816. roleName: map['RoleName'],
  12817. description: map['Description'],
  12818. languageConfigs: map['LanguageConfigs'] != null ? (map['LanguageConfigs'] as List).map((e)=>UserRoleLanguageConfigDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  12819. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12820. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  12821. );
  12822. }
  12823. Map<String, dynamic> toJson() {
  12824. final map = super.toJson();
  12825. if(featureList != null)
  12826. map['FeatureList'] = featureList;
  12827. return map;
  12828. }
  12829. }
  12830. class BaseThesaurusItemBaseDTO<T> {
  12831. String? id;
  12832. String? label;
  12833. String? fatherCode;
  12834. String? thesaurusItemDescription;
  12835. String? thesaurusItemConclusion;
  12836. ThesaurusItemTypeEnum type;
  12837. List<T>? children;
  12838. bool isExistThesaurusItem;
  12839. BaseThesaurusItemBaseDTO({
  12840. this.id,
  12841. this.label,
  12842. this.fatherCode,
  12843. this.thesaurusItemDescription,
  12844. this.thesaurusItemConclusion,
  12845. this.type = ThesaurusItemTypeEnum.Classification,
  12846. this.children,
  12847. this.isExistThesaurusItem = false,
  12848. });
  12849. factory BaseThesaurusItemBaseDTO.fromJson(Map<String, dynamic> map) {
  12850. List<T> childrenList = [];
  12851. if (map['Children'] != null) {
  12852. childrenList.addAll(
  12853. (map['Children'] as List).map((e) => FJsonConvert.fromJson<T>(e)!));
  12854. }
  12855. return BaseThesaurusItemBaseDTO(
  12856. id: map['Id'],
  12857. label: map['Label'],
  12858. fatherCode: map['FatherCode'],
  12859. thesaurusItemDescription: map['ThesaurusItemDescription'],
  12860. thesaurusItemConclusion: map['ThesaurusItemConclusion'],
  12861. type: ThesaurusItemTypeEnum.values.firstWhere((e) => e.index == map['Type']),
  12862. children: childrenList,
  12863. isExistThesaurusItem: map['IsExistThesaurusItem'],
  12864. );
  12865. }
  12866. Map<String, dynamic> toJson() {
  12867. final map = Map<String, dynamic>();
  12868. if(id != null)
  12869. map['Id'] = id;
  12870. if(label != null)
  12871. map['Label'] = label;
  12872. if(fatherCode != null)
  12873. map['FatherCode'] = fatherCode;
  12874. if(thesaurusItemDescription != null)
  12875. map['ThesaurusItemDescription'] = thesaurusItemDescription;
  12876. if(thesaurusItemConclusion != null)
  12877. map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
  12878. map['Type'] = type.index;
  12879. if(children != null)
  12880. map['Children'] = children;
  12881. map['IsExistThesaurusItem'] = isExistThesaurusItem;
  12882. return map;
  12883. }
  12884. }
  12885. class ManageThesaurusItemDTO extends BaseThesaurusItemBaseDTO<ManageThesaurusItemDTO>{
  12886. ManageThesaurusItemDTO(
  12887. );
  12888. factory ManageThesaurusItemDTO.fromJson(Map<String, dynamic> map) {
  12889. return ManageThesaurusItemDTO(
  12890. );
  12891. }
  12892. Map<String, dynamic> toJson() {
  12893. final map = super.toJson();
  12894. return map;
  12895. }
  12896. }
  12897. class ManageUpdateProductDTO extends UpdateProductDTO{
  12898. ManageUpdateProductDTO({
  12899. bool isSuccess = false,
  12900. }) : super(
  12901. isSuccess: isSuccess,
  12902. );
  12903. factory ManageUpdateProductDTO.fromJson(Map<String, dynamic> map) {
  12904. return ManageUpdateProductDTO(
  12905. isSuccess: map['IsSuccess'],
  12906. );
  12907. }
  12908. Map<String, dynamic> toJson() {
  12909. final map = super.toJson();
  12910. return map;
  12911. }
  12912. }
  12913. class OnlineTokenDTO extends TokenDTO{
  12914. String? ipAddress;
  12915. OnlineTokenDTO({
  12916. this.ipAddress,
  12917. int version = 0,
  12918. String? code,
  12919. AccountType accountType = AccountType.Admin,
  12920. String? accountName,
  12921. Platform platform = Platform.Windows,
  12922. LoginSource loginSource = LoginSource.PC,
  12923. String? clientId,
  12924. String? loginServer,
  12925. DateTime? createTime,
  12926. DateTime? expiration,
  12927. int ipValue = 0,
  12928. bool isOnline = false,
  12929. String? installVersion,
  12930. }) : super(
  12931. version: version,
  12932. code: code,
  12933. accountType: accountType,
  12934. accountName: accountName,
  12935. platform: platform,
  12936. loginSource: loginSource,
  12937. clientId: clientId,
  12938. loginServer: loginServer,
  12939. createTime: createTime,
  12940. expiration: expiration,
  12941. ipValue: ipValue,
  12942. isOnline: isOnline,
  12943. installVersion: installVersion,
  12944. );
  12945. factory OnlineTokenDTO.fromJson(Map<String, dynamic> map) {
  12946. return OnlineTokenDTO(
  12947. ipAddress: map['IpAddress'],
  12948. version: map['Version'],
  12949. code: map['Code'],
  12950. accountType: AccountType.values.firstWhere((e) => e.index == map['AccountType']),
  12951. accountName: map['AccountName'],
  12952. platform: Platform.values.firstWhere((e) => e.index == map['Platform']),
  12953. loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
  12954. clientId: map['ClientId'],
  12955. loginServer: map['LoginServer'],
  12956. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  12957. expiration: map['Expiration'] != null ? DateTime.parse(map['Expiration']) : null,
  12958. ipValue: map['IpValue'],
  12959. isOnline: map['IsOnline'],
  12960. installVersion: map['InstallVersion'],
  12961. );
  12962. }
  12963. Map<String, dynamic> toJson() {
  12964. final map = super.toJson();
  12965. if(ipAddress != null)
  12966. map['IpAddress'] = ipAddress;
  12967. return map;
  12968. }
  12969. }
  12970. class SelectParentItemDTO extends SelectItemDTO{
  12971. String? parentCode;
  12972. SelectParentItemDTO({
  12973. this.parentCode,
  12974. String? key,
  12975. String? value,
  12976. }) : super(
  12977. key: key,
  12978. value: value,
  12979. );
  12980. factory SelectParentItemDTO.fromJson(Map<String, dynamic> map) {
  12981. return SelectParentItemDTO(
  12982. parentCode: map['ParentCode'],
  12983. key: map['Key'],
  12984. value: map['Value'],
  12985. );
  12986. }
  12987. Map<String, dynamic> toJson() {
  12988. final map = super.toJson();
  12989. if(parentCode != null)
  12990. map['ParentCode'] = parentCode;
  12991. return map;
  12992. }
  12993. }
  12994. class LiveBoardDataDTO {
  12995. String? userCode;
  12996. String? boardData;
  12997. DateTime? interactiveTime;
  12998. LiveBoardDataDTO({
  12999. this.userCode,
  13000. this.boardData,
  13001. this.interactiveTime,
  13002. });
  13003. factory LiveBoardDataDTO.fromJson(Map<String, dynamic> map) {
  13004. return LiveBoardDataDTO(
  13005. userCode: map['UserCode'],
  13006. boardData: map['BoardData'],
  13007. interactiveTime: map['InteractiveTime'] != null ? DateTime.parse(map['InteractiveTime']) : null,
  13008. );
  13009. }
  13010. Map<String, dynamic> toJson() {
  13011. final map = Map<String, dynamic>();
  13012. if(userCode != null)
  13013. map['UserCode'] = userCode;
  13014. if(boardData != null)
  13015. map['BoardData'] = boardData;
  13016. if(interactiveTime != null)
  13017. map['InteractiveTime'] = JsonRpcUtils.dateFormat(interactiveTime!);
  13018. return map;
  13019. }
  13020. }
  13021. class LiveMemberStatusDTO {
  13022. String? code;
  13023. String? liveRoomCode;
  13024. LiveMemberStatus status;
  13025. UserStatusEnum userStatusType;
  13026. String? loginServerUrl;
  13027. LoginSource loginSource;
  13028. LiveMemberStatusDTO({
  13029. this.code,
  13030. this.liveRoomCode,
  13031. this.status = LiveMemberStatus.Default,
  13032. this.userStatusType = UserStatusEnum.NotOnline,
  13033. this.loginServerUrl,
  13034. this.loginSource = LoginSource.PC,
  13035. });
  13036. factory LiveMemberStatusDTO.fromJson(Map<String, dynamic> map) {
  13037. return LiveMemberStatusDTO(
  13038. code: map['Code'],
  13039. liveRoomCode: map['LiveRoomCode'],
  13040. status: LiveMemberStatus.values.firstWhere((e) => e.index == map['Status']),
  13041. userStatusType: UserStatusEnum.values.firstWhere((e) => e.index == map['UserStatusType']),
  13042. loginServerUrl: map['LoginServerUrl'],
  13043. loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
  13044. );
  13045. }
  13046. Map<String, dynamic> toJson() {
  13047. final map = Map<String, dynamic>();
  13048. if(code != null)
  13049. map['Code'] = code;
  13050. if(liveRoomCode != null)
  13051. map['LiveRoomCode'] = liveRoomCode;
  13052. map['Status'] = status.index;
  13053. map['UserStatusType'] = userStatusType.index;
  13054. if(loginServerUrl != null)
  13055. map['LoginServerUrl'] = loginServerUrl;
  13056. map['LoginSource'] = loginSource.index;
  13057. return map;
  13058. }
  13059. }
  13060. class LiveRoomDTO {
  13061. String? liveRoomCode;
  13062. String? name;
  13063. String? relatedCode;
  13064. String? initiatorCode;
  13065. int rtcRoomId;
  13066. int sdkAppId;
  13067. BusinessModuleEnum businessModule;
  13068. LiveRoomStatus status;
  13069. List<LiveMemberDTO >? deviceInfos;
  13070. List<LiveMemberDTO >? userInfos;
  13071. List<LiveViewerDTO >? viewerInfos;
  13072. LiveRoomDTO({
  13073. this.liveRoomCode,
  13074. this.name,
  13075. this.relatedCode,
  13076. this.initiatorCode,
  13077. this.rtcRoomId = 0,
  13078. this.sdkAppId = 0,
  13079. this.businessModule = BusinessModuleEnum.RemoteDiagnosis,
  13080. this.status = LiveRoomStatus.Default,
  13081. this.deviceInfos,
  13082. this.userInfos,
  13083. this.viewerInfos,
  13084. });
  13085. factory LiveRoomDTO.fromJson(Map<String, dynamic> map) {
  13086. return LiveRoomDTO(
  13087. liveRoomCode: map['LiveRoomCode'],
  13088. name: map['Name'],
  13089. relatedCode: map['RelatedCode'],
  13090. initiatorCode: map['InitiatorCode'],
  13091. rtcRoomId: map['RtcRoomId'],
  13092. sdkAppId: map['SdkAppId'],
  13093. businessModule: BusinessModuleEnum.values.firstWhere((e) => e.index == map['BusinessModule']),
  13094. status: LiveRoomStatus.values.firstWhere((e) => e.index == map['Status']),
  13095. deviceInfos: map['DeviceInfos'] != null ? (map['DeviceInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13096. userInfos: map['UserInfos'] != null ? (map['UserInfos'] as List).map((e)=>LiveMemberDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13097. viewerInfos: map['ViewerInfos'] != null ? (map['ViewerInfos'] as List).map((e)=>LiveViewerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13098. );
  13099. }
  13100. Map<String, dynamic> toJson() {
  13101. final map = Map<String, dynamic>();
  13102. if(liveRoomCode != null)
  13103. map['LiveRoomCode'] = liveRoomCode;
  13104. if(name != null)
  13105. map['Name'] = name;
  13106. if(relatedCode != null)
  13107. map['RelatedCode'] = relatedCode;
  13108. if(initiatorCode != null)
  13109. map['InitiatorCode'] = initiatorCode;
  13110. map['RtcRoomId'] = rtcRoomId;
  13111. map['SdkAppId'] = sdkAppId;
  13112. map['BusinessModule'] = businessModule.index;
  13113. map['Status'] = status.index;
  13114. if(deviceInfos != null)
  13115. map['DeviceInfos'] = deviceInfos;
  13116. if(userInfos != null)
  13117. map['UserInfos'] = userInfos;
  13118. if(viewerInfos != null)
  13119. map['ViewerInfos'] = viewerInfos;
  13120. return map;
  13121. }
  13122. }
  13123. class GradingProtectionConfigDTO extends BaseDTO{
  13124. String? moduleCode;
  13125. String? name;
  13126. String? description;
  13127. GradingConfigTypeEnum configType;
  13128. String? value;
  13129. GradingProtectionConfigDTO({
  13130. this.moduleCode,
  13131. this.name,
  13132. this.description,
  13133. this.configType = GradingConfigTypeEnum.Switch,
  13134. this.value,
  13135. DateTime? createTime,
  13136. DateTime? updateTime,
  13137. }) : super(
  13138. createTime: createTime,
  13139. updateTime: updateTime,
  13140. );
  13141. factory GradingProtectionConfigDTO.fromJson(Map<String, dynamic> map) {
  13142. return GradingProtectionConfigDTO(
  13143. moduleCode: map['ModuleCode'],
  13144. name: map['Name'],
  13145. description: map['Description'],
  13146. configType: GradingConfigTypeEnum.values.firstWhere((e) => e.index == map['ConfigType']),
  13147. value: map['Value'],
  13148. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13149. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13150. );
  13151. }
  13152. Map<String, dynamic> toJson() {
  13153. final map = super.toJson();
  13154. if(moduleCode != null)
  13155. map['ModuleCode'] = moduleCode;
  13156. if(name != null)
  13157. map['Name'] = name;
  13158. if(description != null)
  13159. map['Description'] = description;
  13160. map['ConfigType'] = configType.index;
  13161. if(value != null)
  13162. map['Value'] = value;
  13163. return map;
  13164. }
  13165. }
  13166. class ExaminationPaperDTO {
  13167. String? code;
  13168. String? name;
  13169. double totalScore;
  13170. List<QuestionDetailDTO >? questionList;
  13171. List<String >? caseLabelCodes;
  13172. List<String >? courseLabelCodes;
  13173. DateTime? createTime;
  13174. DateTime? updateTime;
  13175. ExaminationPaperDTO({
  13176. this.code,
  13177. this.name,
  13178. this.totalScore = 0,
  13179. this.questionList,
  13180. this.caseLabelCodes,
  13181. this.courseLabelCodes,
  13182. this.createTime,
  13183. this.updateTime,
  13184. });
  13185. factory ExaminationPaperDTO.fromJson(Map<String, dynamic> map) {
  13186. return ExaminationPaperDTO(
  13187. code: map['Code'],
  13188. name: map['Name'],
  13189. totalScore: double.parse(map['TotalScore'].toString()),
  13190. questionList: map['QuestionList'] != null ? (map['QuestionList'] as List).map((e)=>QuestionDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13191. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  13192. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  13193. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13194. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13195. );
  13196. }
  13197. Map<String, dynamic> toJson() {
  13198. final map = Map<String, dynamic>();
  13199. if(code != null)
  13200. map['Code'] = code;
  13201. if(name != null)
  13202. map['Name'] = name;
  13203. map['TotalScore'] = totalScore;
  13204. if(questionList != null)
  13205. map['QuestionList'] = questionList;
  13206. if(caseLabelCodes != null)
  13207. map['CaseLabelCodes'] = caseLabelCodes;
  13208. if(courseLabelCodes != null)
  13209. map['CourseLabelCodes'] = courseLabelCodes;
  13210. if(createTime != null)
  13211. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  13212. if(updateTime != null)
  13213. map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
  13214. return map;
  13215. }
  13216. }
  13217. class ExaminationQuestionDTO extends BaseDTO{
  13218. String? code;
  13219. String? stem;
  13220. QuestionTypeEnum questionType;
  13221. List<QuestionOptionDTO >? questionOptionList;
  13222. List<QuestionFileDTO >? fileList;
  13223. List<String >? caseLabelCodes;
  13224. List<String >? courseLabelCodes;
  13225. bool trueOrFalse;
  13226. ExaminationQuestionDTO({
  13227. this.code,
  13228. this.stem,
  13229. this.questionType = QuestionTypeEnum.Judge,
  13230. this.questionOptionList,
  13231. this.fileList,
  13232. this.caseLabelCodes,
  13233. this.courseLabelCodes,
  13234. this.trueOrFalse = false,
  13235. DateTime? createTime,
  13236. DateTime? updateTime,
  13237. }) : super(
  13238. createTime: createTime,
  13239. updateTime: updateTime,
  13240. );
  13241. factory ExaminationQuestionDTO.fromJson(Map<String, dynamic> map) {
  13242. return ExaminationQuestionDTO(
  13243. code: map['Code'],
  13244. stem: map['Stem'],
  13245. questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
  13246. questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13247. fileList: map['FileList'] != null ? (map['FileList'] as List).map((e)=>QuestionFileDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13248. caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
  13249. courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
  13250. trueOrFalse: map['TrueOrFalse'],
  13251. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13252. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13253. );
  13254. }
  13255. Map<String, dynamic> toJson() {
  13256. final map = super.toJson();
  13257. if(code != null)
  13258. map['Code'] = code;
  13259. if(stem != null)
  13260. map['Stem'] = stem;
  13261. map['QuestionType'] = questionType.index;
  13262. if(questionOptionList != null)
  13263. map['QuestionOptionList'] = questionOptionList;
  13264. if(fileList != null)
  13265. map['FileList'] = fileList;
  13266. if(caseLabelCodes != null)
  13267. map['CaseLabelCodes'] = caseLabelCodes;
  13268. if(courseLabelCodes != null)
  13269. map['CourseLabelCodes'] = courseLabelCodes;
  13270. map['TrueOrFalse'] = trueOrFalse;
  13271. return map;
  13272. }
  13273. }
  13274. class StudentExaminationDTO extends BaseStudentExaminationDTO{
  13275. RelevanceTypeEnum relevanceType;
  13276. String? relevanceCode;
  13277. List<ExaminationAnswerDTO >? studentAnswers;
  13278. int submitCount;
  13279. StudentExaminationDTO({
  13280. this.relevanceType = RelevanceTypeEnum.Course,
  13281. this.relevanceCode,
  13282. this.studentAnswers,
  13283. this.submitCount = 0,
  13284. String? code,
  13285. String? examinationCode,
  13286. String? studentCode,
  13287. String? studentName,
  13288. double totalScore = 0,
  13289. }) : super(
  13290. code: code,
  13291. examinationCode: examinationCode,
  13292. studentCode: studentCode,
  13293. studentName: studentName,
  13294. totalScore: totalScore,
  13295. );
  13296. factory StudentExaminationDTO.fromJson(Map<String, dynamic> map) {
  13297. return StudentExaminationDTO(
  13298. relevanceType: RelevanceTypeEnum.values.firstWhere((e) => e.index == map['RelevanceType']),
  13299. relevanceCode: map['RelevanceCode'],
  13300. studentAnswers: map['StudentAnswers'] != null ? (map['StudentAnswers'] as List).map((e)=>ExaminationAnswerDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13301. submitCount: map['SubmitCount'],
  13302. code: map['Code'],
  13303. examinationCode: map['ExaminationCode'],
  13304. studentCode: map['StudentCode'],
  13305. studentName: map['StudentName'],
  13306. totalScore: double.parse(map['TotalScore'].toString()),
  13307. );
  13308. }
  13309. Map<String, dynamic> toJson() {
  13310. final map = super.toJson();
  13311. map['RelevanceType'] = relevanceType.index;
  13312. if(relevanceCode != null)
  13313. map['RelevanceCode'] = relevanceCode;
  13314. if(studentAnswers != null)
  13315. map['StudentAnswers'] = studentAnswers;
  13316. map['SubmitCount'] = submitCount;
  13317. return map;
  13318. }
  13319. }
  13320. class DistributedServerInfoDTO extends BaseDTO{
  13321. String? serverCode;
  13322. bool isMaster;
  13323. String? name;
  13324. String? description;
  13325. bool enable;
  13326. DistributedServerTypeEnum serverType;
  13327. String? serverUrl;
  13328. String? lat;
  13329. String? lng;
  13330. List<IPAddressInfoDTO >? assignClientIPList;
  13331. DistributedServerInfoDTO({
  13332. this.serverCode,
  13333. this.isMaster = false,
  13334. this.name,
  13335. this.description,
  13336. this.enable = false,
  13337. this.serverType = DistributedServerTypeEnum.Official,
  13338. this.serverUrl,
  13339. this.lat,
  13340. this.lng,
  13341. this.assignClientIPList,
  13342. DateTime? createTime,
  13343. DateTime? updateTime,
  13344. }) : super(
  13345. createTime: createTime,
  13346. updateTime: updateTime,
  13347. );
  13348. factory DistributedServerInfoDTO.fromJson(Map<String, dynamic> map) {
  13349. return DistributedServerInfoDTO(
  13350. serverCode: map['ServerCode'],
  13351. isMaster: map['IsMaster'],
  13352. name: map['Name'],
  13353. description: map['Description'],
  13354. enable: map['Enable'],
  13355. serverType: DistributedServerTypeEnum.values.firstWhere((e) => e.index == map['ServerType']),
  13356. serverUrl: map['ServerUrl'],
  13357. lat: map['Lat'],
  13358. lng: map['Lng'],
  13359. assignClientIPList: map['AssignClientIPList'] != null ? (map['AssignClientIPList'] as List).map((e)=>IPAddressInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13360. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13361. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13362. );
  13363. }
  13364. Map<String, dynamic> toJson() {
  13365. final map = super.toJson();
  13366. if(serverCode != null)
  13367. map['ServerCode'] = serverCode;
  13368. map['IsMaster'] = isMaster;
  13369. if(name != null)
  13370. map['Name'] = name;
  13371. if(description != null)
  13372. map['Description'] = description;
  13373. map['Enable'] = enable;
  13374. map['ServerType'] = serverType.index;
  13375. if(serverUrl != null)
  13376. map['ServerUrl'] = serverUrl;
  13377. if(lat != null)
  13378. map['Lat'] = lat;
  13379. if(lng != null)
  13380. map['Lng'] = lng;
  13381. if(assignClientIPList != null)
  13382. map['AssignClientIPList'] = assignClientIPList;
  13383. return map;
  13384. }
  13385. }
  13386. class DiagnosisResultDTO {
  13387. int index;
  13388. String? diagnosisResult;
  13389. DiagnosisResultDTO({
  13390. this.index = 0,
  13391. this.diagnosisResult,
  13392. });
  13393. factory DiagnosisResultDTO.fromJson(Map<String, dynamic> map) {
  13394. return DiagnosisResultDTO(
  13395. index: map['Index'],
  13396. diagnosisResult: map['DiagnosisResult'],
  13397. );
  13398. }
  13399. Map<String, dynamic> toJson() {
  13400. final map = Map<String, dynamic>();
  13401. map['Index'] = index;
  13402. if(diagnosisResult != null)
  13403. map['DiagnosisResult'] = diagnosisResult;
  13404. return map;
  13405. }
  13406. }
  13407. class DeviceOutputConfigDTO {
  13408. String? code;
  13409. String? name;
  13410. DeviceVideoOutputTypeEnum deviceVideoOutputType;
  13411. int videoWidth;
  13412. int videoHeight;
  13413. DeviceOutputConfigDTO({
  13414. this.code,
  13415. this.name,
  13416. this.deviceVideoOutputType = DeviceVideoOutputTypeEnum.MergedVideo,
  13417. this.videoWidth = 0,
  13418. this.videoHeight = 0,
  13419. });
  13420. factory DeviceOutputConfigDTO.fromJson(Map<String, dynamic> map) {
  13421. return DeviceOutputConfigDTO(
  13422. code: map['Code'],
  13423. name: map['Name'],
  13424. deviceVideoOutputType: DeviceVideoOutputTypeEnum.values.firstWhere((e) => e.index == map['DeviceVideoOutputType']),
  13425. videoWidth: map['VideoWidth'],
  13426. videoHeight: map['VideoHeight'],
  13427. );
  13428. }
  13429. Map<String, dynamic> toJson() {
  13430. final map = Map<String, dynamic>();
  13431. if(code != null)
  13432. map['Code'] = code;
  13433. if(name != null)
  13434. map['Name'] = name;
  13435. map['DeviceVideoOutputType'] = deviceVideoOutputType.index;
  13436. map['VideoWidth'] = videoWidth;
  13437. map['VideoHeight'] = videoHeight;
  13438. return map;
  13439. }
  13440. }
  13441. class BoardPointDTO {
  13442. double x;
  13443. double y;
  13444. BoardPointDTO({
  13445. this.x = 0,
  13446. this.y = 0,
  13447. });
  13448. factory BoardPointDTO.fromJson(Map<String, dynamic> map) {
  13449. return BoardPointDTO(
  13450. x: double.parse(map['X'].toString()),
  13451. y: double.parse(map['Y'].toString()),
  13452. );
  13453. }
  13454. Map<String, dynamic> toJson() {
  13455. final map = Map<String, dynamic>();
  13456. map['X'] = x;
  13457. map['Y'] = y;
  13458. return map;
  13459. }
  13460. }
  13461. class ConsultationExpertDTO extends UserBaseDTO{
  13462. ConsultationExpertDTO({
  13463. String? userCode,
  13464. String? userName,
  13465. String? headImageUrl,
  13466. DateTime? createTime,
  13467. DateTime? updateTime,
  13468. }) : super(
  13469. userCode: userCode,
  13470. userName: userName,
  13471. headImageUrl: headImageUrl,
  13472. createTime: createTime,
  13473. updateTime: updateTime,
  13474. );
  13475. factory ConsultationExpertDTO.fromJson(Map<String, dynamic> map) {
  13476. return ConsultationExpertDTO(
  13477. userCode: map['UserCode'],
  13478. userName: map['UserName'],
  13479. headImageUrl: map['HeadImageUrl'],
  13480. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13481. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13482. );
  13483. }
  13484. Map<String, dynamic> toJson() {
  13485. final map = super.toJson();
  13486. return map;
  13487. }
  13488. }
  13489. class AdminStatisticRecordDTO extends BaseDTO{
  13490. String? adminStatisticRecordCode;
  13491. String? adminStatisticCode;
  13492. String? adminStatisticName;
  13493. String? adminCode;
  13494. String? serverHost;
  13495. DateTime? lastestUpdateTime;
  13496. DateTime? nextHandleTime;
  13497. List<String >? xAxisDatas;
  13498. List<List<double> >? yAxisDatas;
  13499. List<StatisticInfoDTO >? children;
  13500. String? statisticJsonData;
  13501. StatisticsPlatformEnum statisticsPlatform;
  13502. AdminStatisticRecordDTO({
  13503. this.adminStatisticRecordCode,
  13504. this.adminStatisticCode,
  13505. this.adminStatisticName,
  13506. this.adminCode,
  13507. this.serverHost,
  13508. this.lastestUpdateTime,
  13509. this.nextHandleTime,
  13510. this.xAxisDatas,
  13511. this.yAxisDatas,
  13512. this.children,
  13513. this.statisticJsonData,
  13514. this.statisticsPlatform = StatisticsPlatformEnum.Management,
  13515. DateTime? createTime,
  13516. DateTime? updateTime,
  13517. }) : super(
  13518. createTime: createTime,
  13519. updateTime: updateTime,
  13520. );
  13521. factory AdminStatisticRecordDTO.fromJson(Map<String, dynamic> map) {
  13522. return AdminStatisticRecordDTO(
  13523. adminStatisticRecordCode: map['AdminStatisticRecordCode'],
  13524. adminStatisticCode: map['AdminStatisticCode'],
  13525. adminStatisticName: map['AdminStatisticName'],
  13526. adminCode: map['AdminCode'],
  13527. serverHost: map['ServerHost'],
  13528. lastestUpdateTime: map['LastestUpdateTime'] != null ? DateTime.parse(map['LastestUpdateTime']) : null,
  13529. nextHandleTime: map['NextHandleTime'] != null ? DateTime.parse(map['NextHandleTime']) : null,
  13530. xAxisDatas: map['XAxisDatas'] != null ? map['XAxisDatas'].cast<String>().toList() : null,
  13531. yAxisDatas: map['YAxisDatas'] != null ? map['YAxisDatas'].cast<List<double>>().toList() : null,
  13532. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13533. statisticJsonData: map['StatisticJsonData'],
  13534. statisticsPlatform: StatisticsPlatformEnum.values.firstWhere((e) => e.index == map['StatisticsPlatform']),
  13535. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13536. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13537. );
  13538. }
  13539. Map<String, dynamic> toJson() {
  13540. final map = super.toJson();
  13541. if(adminStatisticRecordCode != null)
  13542. map['AdminStatisticRecordCode'] = adminStatisticRecordCode;
  13543. if(adminStatisticCode != null)
  13544. map['AdminStatisticCode'] = adminStatisticCode;
  13545. if(adminStatisticName != null)
  13546. map['AdminStatisticName'] = adminStatisticName;
  13547. if(adminCode != null)
  13548. map['AdminCode'] = adminCode;
  13549. if(serverHost != null)
  13550. map['ServerHost'] = serverHost;
  13551. if(lastestUpdateTime != null)
  13552. map['LastestUpdateTime'] = JsonRpcUtils.dateFormat(lastestUpdateTime!);
  13553. if(nextHandleTime != null)
  13554. map['NextHandleTime'] = JsonRpcUtils.dateFormat(nextHandleTime!);
  13555. if(xAxisDatas != null)
  13556. map['XAxisDatas'] = xAxisDatas;
  13557. if(yAxisDatas != null)
  13558. map['YAxisDatas'] = yAxisDatas;
  13559. if(children != null)
  13560. map['Children'] = children;
  13561. if(statisticJsonData != null)
  13562. map['StatisticJsonData'] = statisticJsonData;
  13563. map['StatisticsPlatform'] = statisticsPlatform.index;
  13564. return map;
  13565. }
  13566. }
  13567. class CMSStatisticRecordDTO extends AdminStatisticRecordDTO{
  13568. CMSStatisticRecordDTO({
  13569. String? statisticJsonData,
  13570. String? adminStatisticRecordCode,
  13571. String? adminStatisticCode,
  13572. String? adminStatisticName,
  13573. String? adminCode,
  13574. String? serverHost,
  13575. DateTime? lastestUpdateTime,
  13576. DateTime? nextHandleTime,
  13577. List<String >? xAxisDatas,
  13578. List<List<double> >? yAxisDatas,
  13579. List<StatisticInfoDTO >? children,
  13580. StatisticsPlatformEnum statisticsPlatform = StatisticsPlatformEnum.Management,
  13581. DateTime? createTime,
  13582. DateTime? updateTime,
  13583. }) : super(
  13584. adminStatisticRecordCode: adminStatisticRecordCode,
  13585. adminStatisticCode: adminStatisticCode,
  13586. adminStatisticName: adminStatisticName,
  13587. adminCode: adminCode,
  13588. serverHost: serverHost,
  13589. lastestUpdateTime: lastestUpdateTime,
  13590. nextHandleTime: nextHandleTime,
  13591. xAxisDatas: xAxisDatas,
  13592. yAxisDatas: yAxisDatas,
  13593. children: children,
  13594. statisticJsonData: statisticJsonData,
  13595. statisticsPlatform: statisticsPlatform,
  13596. createTime: createTime,
  13597. updateTime: updateTime,
  13598. );
  13599. factory CMSStatisticRecordDTO.fromJson(Map<String, dynamic> map) {
  13600. return CMSStatisticRecordDTO(
  13601. statisticJsonData: map['StatisticJsonData'],
  13602. adminStatisticRecordCode: map['AdminStatisticRecordCode'],
  13603. adminStatisticCode: map['AdminStatisticCode'],
  13604. adminStatisticName: map['AdminStatisticName'],
  13605. adminCode: map['AdminCode'],
  13606. serverHost: map['ServerHost'],
  13607. lastestUpdateTime: map['LastestUpdateTime'] != null ? DateTime.parse(map['LastestUpdateTime']) : null,
  13608. nextHandleTime: map['NextHandleTime'] != null ? DateTime.parse(map['NextHandleTime']) : null,
  13609. xAxisDatas: map['XAxisDatas'] != null ? map['XAxisDatas'].cast<String>().toList() : null,
  13610. yAxisDatas: map['YAxisDatas'] != null ? map['YAxisDatas'].cast<List<double>>().toList() : null,
  13611. children: map['Children'] != null ? (map['Children'] as List).map((e)=>StatisticInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  13612. statisticsPlatform: StatisticsPlatformEnum.values.firstWhere((e) => e.index == map['StatisticsPlatform']),
  13613. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13614. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13615. );
  13616. }
  13617. Map<String, dynamic> toJson() {
  13618. final map = super.toJson();
  13619. return map;
  13620. }
  13621. }
  13622. class CMSTemplateDTO extends BaseDTO{
  13623. String? cMSTemplateCode;
  13624. String? cMSTemplateName;
  13625. CMSTemplateStatusTypeEnum cMSTemplateStateType;
  13626. String? cMSTemplateJson;
  13627. bool isDefault;
  13628. List<String >? organizationCodes;
  13629. CMSTemplateDTO({
  13630. this.cMSTemplateCode,
  13631. this.cMSTemplateName,
  13632. this.cMSTemplateStateType = CMSTemplateStatusTypeEnum.UnPublished,
  13633. this.cMSTemplateJson,
  13634. this.isDefault = false,
  13635. this.organizationCodes,
  13636. DateTime? createTime,
  13637. DateTime? updateTime,
  13638. }) : super(
  13639. createTime: createTime,
  13640. updateTime: updateTime,
  13641. );
  13642. factory CMSTemplateDTO.fromJson(Map<String, dynamic> map) {
  13643. return CMSTemplateDTO(
  13644. cMSTemplateCode: map['CMSTemplateCode'],
  13645. cMSTemplateName: map['CMSTemplateName'],
  13646. cMSTemplateStateType: CMSTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['CMSTemplateStateType']),
  13647. cMSTemplateJson: map['CMSTemplateJson'],
  13648. isDefault: map['IsDefault'],
  13649. organizationCodes: map['OrganizationCodes'] != null ? map['OrganizationCodes'].cast<String>().toList() : null,
  13650. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  13651. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  13652. );
  13653. }
  13654. Map<String, dynamic> toJson() {
  13655. final map = super.toJson();
  13656. if(cMSTemplateCode != null)
  13657. map['CMSTemplateCode'] = cMSTemplateCode;
  13658. if(cMSTemplateName != null)
  13659. map['CMSTemplateName'] = cMSTemplateName;
  13660. map['CMSTemplateStateType'] = cMSTemplateStateType.index;
  13661. if(cMSTemplateJson != null)
  13662. map['CMSTemplateJson'] = cMSTemplateJson;
  13663. map['IsDefault'] = isDefault;
  13664. if(organizationCodes != null)
  13665. map['OrganizationCodes'] = organizationCodes;
  13666. return map;
  13667. }
  13668. }
  13669. class StatisticAnnouncesDTO {
  13670. AnnouncementTypeEnum announcementType;
  13671. DateTime? contentTime;
  13672. String? content;
  13673. CMSMessageStatusEnum status;
  13674. StatisticAnnouncesDTO({
  13675. this.announcementType = AnnouncementTypeEnum.Broadcast,
  13676. this.contentTime,
  13677. this.content,
  13678. this.status = CMSMessageStatusEnum.UnRead,
  13679. });
  13680. factory StatisticAnnouncesDTO.fromJson(Map<String, dynamic> map) {
  13681. return StatisticAnnouncesDTO(
  13682. announcementType: AnnouncementTypeEnum.values.firstWhere((e) => e.index == map['AnnouncementType']),
  13683. contentTime: map['ContentTime'] != null ? DateTime.parse(map['ContentTime']) : null,
  13684. content: map['Content'],
  13685. status: CMSMessageStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  13686. );
  13687. }
  13688. Map<String, dynamic> toJson() {
  13689. final map = Map<String, dynamic>();
  13690. map['AnnouncementType'] = announcementType.index;
  13691. if(contentTime != null)
  13692. map['ContentTime'] = JsonRpcUtils.dateFormat(contentTime!);
  13693. if(content != null)
  13694. map['Content'] = content;
  13695. map['Status'] = status.index;
  13696. return map;
  13697. }
  13698. }
  13699. class StatisticDevicesDTO {
  13700. String? imgUrl;
  13701. String? name;
  13702. String? transferUrl;
  13703. StatisticDevicesDTO({
  13704. this.imgUrl,
  13705. this.name,
  13706. this.transferUrl,
  13707. });
  13708. factory StatisticDevicesDTO.fromJson(Map<String, dynamic> map) {
  13709. return StatisticDevicesDTO(
  13710. imgUrl: map['ImgUrl'],
  13711. name: map['Name'],
  13712. transferUrl: map['TransferUrl'],
  13713. );
  13714. }
  13715. Map<String, dynamic> toJson() {
  13716. final map = Map<String, dynamic>();
  13717. if(imgUrl != null)
  13718. map['ImgUrl'] = imgUrl;
  13719. if(name != null)
  13720. map['Name'] = name;
  13721. if(transferUrl != null)
  13722. map['TransferUrl'] = transferUrl;
  13723. return map;
  13724. }
  13725. }
  13726. class StatisticDownloadDTO {
  13727. String? imgUrl;
  13728. String? transferUrl;
  13729. StatisticDownloadDTO({
  13730. this.imgUrl,
  13731. this.transferUrl,
  13732. });
  13733. factory StatisticDownloadDTO.fromJson(Map<String, dynamic> map) {
  13734. return StatisticDownloadDTO(
  13735. imgUrl: map['ImgUrl'],
  13736. transferUrl: map['TransferUrl'],
  13737. );
  13738. }
  13739. Map<String, dynamic> toJson() {
  13740. final map = Map<String, dynamic>();
  13741. if(imgUrl != null)
  13742. map['ImgUrl'] = imgUrl;
  13743. if(transferUrl != null)
  13744. map['TransferUrl'] = transferUrl;
  13745. return map;
  13746. }
  13747. }
  13748. class StatisticMessagesDTO {
  13749. String? content;
  13750. DateTime? time;
  13751. String? transferUrl;
  13752. CMSMessageStatusEnum status;
  13753. StatisticMessagesDTO({
  13754. this.content,
  13755. this.time,
  13756. this.transferUrl,
  13757. this.status = CMSMessageStatusEnum.UnRead,
  13758. });
  13759. factory StatisticMessagesDTO.fromJson(Map<String, dynamic> map) {
  13760. return StatisticMessagesDTO(
  13761. content: map['Content'],
  13762. time: map['Time'] != null ? DateTime.parse(map['Time']) : null,
  13763. transferUrl: map['TransferUrl'],
  13764. status: CMSMessageStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  13765. );
  13766. }
  13767. Map<String, dynamic> toJson() {
  13768. final map = Map<String, dynamic>();
  13769. if(content != null)
  13770. map['Content'] = content;
  13771. if(time != null)
  13772. map['Time'] = JsonRpcUtils.dateFormat(time!);
  13773. if(transferUrl != null)
  13774. map['TransferUrl'] = transferUrl;
  13775. map['Status'] = status.index;
  13776. return map;
  13777. }
  13778. }
  13779. class StatisticMessageInfoDTO extends StatisticMessagesDTO{
  13780. String? userCode;
  13781. String? messageCode;
  13782. StatisticMessageInfoDTO({
  13783. this.userCode,
  13784. this.messageCode,
  13785. String? content,
  13786. DateTime? time,
  13787. String? transferUrl,
  13788. CMSMessageStatusEnum status = CMSMessageStatusEnum.UnRead,
  13789. }) : super(
  13790. content: content,
  13791. time: time,
  13792. transferUrl: transferUrl,
  13793. status: status,
  13794. );
  13795. factory StatisticMessageInfoDTO.fromJson(Map<String, dynamic> map) {
  13796. return StatisticMessageInfoDTO(
  13797. userCode: map['UserCode'],
  13798. messageCode: map['MessageCode'],
  13799. content: map['Content'],
  13800. time: map['Time'] != null ? DateTime.parse(map['Time']) : null,
  13801. transferUrl: map['TransferUrl'],
  13802. status: CMSMessageStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  13803. );
  13804. }
  13805. Map<String, dynamic> toJson() {
  13806. final map = super.toJson();
  13807. if(userCode != null)
  13808. map['UserCode'] = userCode;
  13809. if(messageCode != null)
  13810. map['MessageCode'] = messageCode;
  13811. return map;
  13812. }
  13813. }
  13814. class StatisticMyPendingDTO {
  13815. String? title;
  13816. double rate;
  13817. StatisticMyPendingDTO({
  13818. this.title,
  13819. this.rate = 0,
  13820. });
  13821. factory StatisticMyPendingDTO.fromJson(Map<String, dynamic> map) {
  13822. return StatisticMyPendingDTO(
  13823. title: map['Title'],
  13824. rate: double.parse(map['Rate'].toString()),
  13825. );
  13826. }
  13827. Map<String, dynamic> toJson() {
  13828. final map = Map<String, dynamic>();
  13829. if(title != null)
  13830. map['Title'] = title;
  13831. map['Rate'] = rate;
  13832. return map;
  13833. }
  13834. }
  13835. class StatisticMyStandingDTO {
  13836. String? title;
  13837. int data;
  13838. String? unit;
  13839. String? transferUrl;
  13840. StatisticMyStandingDTO({
  13841. this.title,
  13842. this.data = 0,
  13843. this.unit,
  13844. this.transferUrl,
  13845. });
  13846. factory StatisticMyStandingDTO.fromJson(Map<String, dynamic> map) {
  13847. return StatisticMyStandingDTO(
  13848. title: map['Title'],
  13849. data: map['Data'],
  13850. unit: map['Unit'],
  13851. transferUrl: map['TransferUrl'],
  13852. );
  13853. }
  13854. Map<String, dynamic> toJson() {
  13855. final map = Map<String, dynamic>();
  13856. if(title != null)
  13857. map['Title'] = title;
  13858. map['Data'] = data;
  13859. if(unit != null)
  13860. map['Unit'] = unit;
  13861. if(transferUrl != null)
  13862. map['TransferUrl'] = transferUrl;
  13863. return map;
  13864. }
  13865. }
  13866. class StatisticPlatActivityDTO {
  13867. String? imgUrl;
  13868. String? transferUrl;
  13869. StatisticPlatActivityDTO({
  13870. this.imgUrl,
  13871. this.transferUrl,
  13872. });
  13873. factory StatisticPlatActivityDTO.fromJson(Map<String, dynamic> map) {
  13874. return StatisticPlatActivityDTO(
  13875. imgUrl: map['ImgUrl'],
  13876. transferUrl: map['TransferUrl'],
  13877. );
  13878. }
  13879. Map<String, dynamic> toJson() {
  13880. final map = Map<String, dynamic>();
  13881. if(imgUrl != null)
  13882. map['ImgUrl'] = imgUrl;
  13883. if(transferUrl != null)
  13884. map['TransferUrl'] = transferUrl;
  13885. return map;
  13886. }
  13887. }
  13888. class StatisticUpdateCourseDTO {
  13889. String? title;
  13890. String? teacher;
  13891. String? thumbnail;
  13892. String? transferUrl;
  13893. StatisticUpdateCourseDTO({
  13894. this.title,
  13895. this.teacher,
  13896. this.thumbnail,
  13897. this.transferUrl,
  13898. });
  13899. factory StatisticUpdateCourseDTO.fromJson(Map<String, dynamic> map) {
  13900. return StatisticUpdateCourseDTO(
  13901. title: map['Title'],
  13902. teacher: map['Teacher'],
  13903. thumbnail: map['Thumbnail'],
  13904. transferUrl: map['TransferUrl'],
  13905. );
  13906. }
  13907. Map<String, dynamic> toJson() {
  13908. final map = Map<String, dynamic>();
  13909. if(title != null)
  13910. map['Title'] = title;
  13911. if(teacher != null)
  13912. map['Teacher'] = teacher;
  13913. if(thumbnail != null)
  13914. map['Thumbnail'] = thumbnail;
  13915. if(transferUrl != null)
  13916. map['TransferUrl'] = transferUrl;
  13917. return map;
  13918. }
  13919. }
  13920. class BaseFeatureItemDTO extends BaseFeatureItemBaseDTO<BaseFeatureItemDTO>{
  13921. BaseFeatureItemDTO(
  13922. );
  13923. factory BaseFeatureItemDTO.fromJson(Map<String, dynamic> map) {
  13924. return BaseFeatureItemDTO(
  13925. );
  13926. }
  13927. Map<String, dynamic> toJson() {
  13928. final map = super.toJson();
  13929. return map;
  13930. }
  13931. }
  13932. class AIDiagnosisLesionSize {
  13933. AIDiagnosisPoint2D? horizontalPoint1;
  13934. AIDiagnosisPoint2D? horizontalPoint2;
  13935. int horizontalLengthInPixel;
  13936. AIDiagnosisPoint2D? verticalPoint1;
  13937. AIDiagnosisPoint2D? verticalPoint2;
  13938. int verticalLengthInPixel;
  13939. AIDiagnosisLesionSize({
  13940. this.horizontalPoint1,
  13941. this.horizontalPoint2,
  13942. this.horizontalLengthInPixel = 0,
  13943. this.verticalPoint1,
  13944. this.verticalPoint2,
  13945. this.verticalLengthInPixel = 0,
  13946. });
  13947. factory AIDiagnosisLesionSize.fromJson(Map<String, dynamic> map) {
  13948. return AIDiagnosisLesionSize(
  13949. horizontalPoint1: map['HorizontalPoint1'] != null ? AIDiagnosisPoint2D.fromJson(map['HorizontalPoint1']) : null,
  13950. horizontalPoint2: map['HorizontalPoint2'] != null ? AIDiagnosisPoint2D.fromJson(map['HorizontalPoint2']) : null,
  13951. horizontalLengthInPixel: map['HorizontalLengthInPixel'],
  13952. verticalPoint1: map['VerticalPoint1'] != null ? AIDiagnosisPoint2D.fromJson(map['VerticalPoint1']) : null,
  13953. verticalPoint2: map['VerticalPoint2'] != null ? AIDiagnosisPoint2D.fromJson(map['VerticalPoint2']) : null,
  13954. verticalLengthInPixel: map['VerticalLengthInPixel'],
  13955. );
  13956. }
  13957. Map<String, dynamic> toJson() {
  13958. final map = Map<String, dynamic>();
  13959. if(horizontalPoint1 != null)
  13960. map['HorizontalPoint1'] = horizontalPoint1;
  13961. if(horizontalPoint2 != null)
  13962. map['HorizontalPoint2'] = horizontalPoint2;
  13963. map['HorizontalLengthInPixel'] = horizontalLengthInPixel;
  13964. if(verticalPoint1 != null)
  13965. map['VerticalPoint1'] = verticalPoint1;
  13966. if(verticalPoint2 != null)
  13967. map['VerticalPoint2'] = verticalPoint2;
  13968. map['VerticalLengthInPixel'] = verticalLengthInPixel;
  13969. return map;
  13970. }
  13971. }
  13972. class ArrowCommentItemDTO {
  13973. ArrowOrientation arrowOrientation;
  13974. String? text;
  13975. ArrowCommentItemDTO({
  13976. this.arrowOrientation = ArrowOrientation.Down,
  13977. this.text,
  13978. });
  13979. factory ArrowCommentItemDTO.fromJson(Map<String, dynamic> map) {
  13980. return ArrowCommentItemDTO(
  13981. arrowOrientation: ArrowOrientation.values.firstWhere((e) => e.index == map['ArrowOrientation']),
  13982. text: map['Text'],
  13983. );
  13984. }
  13985. Map<String, dynamic> toJson() {
  13986. final map = Map<String, dynamic>();
  13987. map['ArrowOrientation'] = arrowOrientation.index;
  13988. if(text != null)
  13989. map['Text'] = text;
  13990. return map;
  13991. }
  13992. }
  13993. class UserDefinedCommentsDTO {
  13994. String? userId;
  13995. List<UserDefinedCommentDataDTO >? commentItems;
  13996. UserDefinedCommentsDTO({
  13997. this.userId,
  13998. this.commentItems,
  13999. });
  14000. factory UserDefinedCommentsDTO.fromJson(Map<String, dynamic> map) {
  14001. return UserDefinedCommentsDTO(
  14002. userId: map['UserId'],
  14003. commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>UserDefinedCommentDataDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  14004. );
  14005. }
  14006. Map<String, dynamic> toJson() {
  14007. final map = Map<String, dynamic>();
  14008. if(userId != null)
  14009. map['UserId'] = userId;
  14010. if(commentItems != null)
  14011. map['CommentItems'] = commentItems;
  14012. return map;
  14013. }
  14014. }
  14015. class AdminStatisticDTO extends BaseDTO{
  14016. String? adminStatisticCode;
  14017. String? name;
  14018. String? description;
  14019. String? intervalSetting;
  14020. bool enabled;
  14021. String? handleClass;
  14022. String? serverHost;
  14023. AdminStatisticDTO({
  14024. this.adminStatisticCode,
  14025. this.name,
  14026. this.description,
  14027. this.intervalSetting,
  14028. this.enabled = false,
  14029. this.handleClass,
  14030. this.serverHost,
  14031. DateTime? createTime,
  14032. DateTime? updateTime,
  14033. }) : super(
  14034. createTime: createTime,
  14035. updateTime: updateTime,
  14036. );
  14037. factory AdminStatisticDTO.fromJson(Map<String, dynamic> map) {
  14038. return AdminStatisticDTO(
  14039. adminStatisticCode: map['AdminStatisticCode'],
  14040. name: map['Name'],
  14041. description: map['Description'],
  14042. intervalSetting: map['IntervalSetting'],
  14043. enabled: map['Enabled'],
  14044. handleClass: map['HandleClass'],
  14045. serverHost: map['ServerHost'],
  14046. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  14047. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  14048. );
  14049. }
  14050. Map<String, dynamic> toJson() {
  14051. final map = super.toJson();
  14052. if(adminStatisticCode != null)
  14053. map['AdminStatisticCode'] = adminStatisticCode;
  14054. if(name != null)
  14055. map['Name'] = name;
  14056. if(description != null)
  14057. map['Description'] = description;
  14058. if(intervalSetting != null)
  14059. map['IntervalSetting'] = intervalSetting;
  14060. map['Enabled'] = enabled;
  14061. if(handleClass != null)
  14062. map['HandleClass'] = handleClass;
  14063. if(serverHost != null)
  14064. map['ServerHost'] = serverHost;
  14065. return map;
  14066. }
  14067. }
  14068. class AdminFeatureItemDTO extends BaseFeatureItemBaseDTO<AdminFeatureItemDTO>{
  14069. AdminFeatureItemDTO(
  14070. );
  14071. factory AdminFeatureItemDTO.fromJson(Map<String, dynamic> map) {
  14072. return AdminFeatureItemDTO(
  14073. );
  14074. }
  14075. Map<String, dynamic> toJson() {
  14076. final map = super.toJson();
  14077. return map;
  14078. }
  14079. }
  14080. class AdminAuthorityGroupDTO extends BaseDTO{
  14081. String? adminGroupCode;
  14082. String? description;
  14083. List<String >? adminCodes;
  14084. List<String >? features;
  14085. String? createAdmin;
  14086. AdminAuthorityGroupDTO({
  14087. this.adminGroupCode,
  14088. this.description,
  14089. this.adminCodes,
  14090. this.features,
  14091. this.createAdmin,
  14092. DateTime? createTime,
  14093. DateTime? updateTime,
  14094. }) : super(
  14095. createTime: createTime,
  14096. updateTime: updateTime,
  14097. );
  14098. factory AdminAuthorityGroupDTO.fromJson(Map<String, dynamic> map) {
  14099. return AdminAuthorityGroupDTO(
  14100. adminGroupCode: map['AdminGroupCode'],
  14101. description: map['Description'],
  14102. adminCodes: map['AdminCodes'] != null ? map['AdminCodes'].cast<String>().toList() : null,
  14103. features: map['Features'] != null ? map['Features'].cast<String>().toList() : null,
  14104. createAdmin: map['CreateAdmin'],
  14105. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  14106. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  14107. );
  14108. }
  14109. Map<String, dynamic> toJson() {
  14110. final map = super.toJson();
  14111. if(adminGroupCode != null)
  14112. map['AdminGroupCode'] = adminGroupCode;
  14113. if(description != null)
  14114. map['Description'] = description;
  14115. if(adminCodes != null)
  14116. map['AdminCodes'] = adminCodes;
  14117. if(features != null)
  14118. map['Features'] = features;
  14119. if(createAdmin != null)
  14120. map['CreateAdmin'] = createAdmin;
  14121. return map;
  14122. }
  14123. }