fromJSON static method
Implementation
static CodeFlag fromJSON(String data) {
switch (data) {
case "male_only":
return CodeFlag.maleOnly;
case "female_only":
return CodeFlag.femaleOnly;
case "deptkinesitherapy":
return CodeFlag.deptkinesitherapy;
case "deptnursing":
return CodeFlag.deptnursing;
case "deptgeneralpractice":
return CodeFlag.deptgeneralpractice;
case "deptsocialworker":
return CodeFlag.deptsocialworker;
case "deptpsychology":
return CodeFlag.deptpsychology;
case "deptadministrative":
return CodeFlag.deptadministrative;
case "deptdietetics":
return CodeFlag.deptdietetics;
case "deptspeechtherapy":
return CodeFlag.deptspeechtherapy;
case "deptdentistry":
return CodeFlag.deptdentistry;
case "deptoccupationaltherapy":
return CodeFlag.deptoccupationaltherapy;
case "depthealthcare":
return CodeFlag.depthealthcare;
case "deptgynecology":
return CodeFlag.deptgynecology;
case "deptpediatry":
return CodeFlag.deptpediatry;
case "deptalgology":
return CodeFlag.deptalgology;
case "deptanatomopathology":
return CodeFlag.deptanatomopathology;
case "deptanesthesiology":
return CodeFlag.deptanesthesiology;
case "deptbacteriology":
return CodeFlag.deptbacteriology;
case "deptcardiacsurgery":
return CodeFlag.deptcardiacsurgery;
case "deptcardiology":
return CodeFlag.deptcardiology;
case "deptchildandadolescentpsychiatry":
return CodeFlag.deptchildandadolescentpsychiatry;
case "deptdermatology":
return CodeFlag.deptdermatology;
case "deptdiabetology":
return CodeFlag.deptdiabetology;
case "deptemergency":
return CodeFlag.deptemergency;
case "deptendocrinology":
return CodeFlag.deptendocrinology;
case "deptgastroenterology":
return CodeFlag.deptgastroenterology;
case "deptgenetics":
return CodeFlag.deptgenetics;
case "deptgeriatry":
return CodeFlag.deptgeriatry;
case "depthandsurgery":
return CodeFlag.depthandsurgery;
case "depthematology":
return CodeFlag.depthematology;
case "deptinfectiousdisease":
return CodeFlag.deptinfectiousdisease;
case "deptintensivecare":
return CodeFlag.deptintensivecare;
case "deptlaboratory":
return CodeFlag.deptlaboratory;
case "deptmajorburns":
return CodeFlag.deptmajorburns;
case "deptmaxillofacialsurgery":
return CodeFlag.deptmaxillofacialsurgery;
case "deptmedicine":
return CodeFlag.deptmedicine;
case "deptmolecularbiology":
return CodeFlag.deptmolecularbiology;
case "deptneonatalogy":
return CodeFlag.deptneonatalogy;
case "deptnephrology":
return CodeFlag.deptnephrology;
case "deptneurology":
return CodeFlag.deptneurology;
case "deptneurosurgery":
return CodeFlag.deptneurosurgery;
case "deptnte":
return CodeFlag.deptnte;
case "deptnuclear":
return CodeFlag.deptnuclear;
case "deptnutritiondietetics":
return CodeFlag.deptnutritiondietetics;
case "deptobstetrics":
return CodeFlag.deptobstetrics;
case "deptoncology":
return CodeFlag.deptoncology;
case "deptophtalmology":
return CodeFlag.deptophtalmology;
case "deptorthopedy":
return CodeFlag.deptorthopedy;
case "deptpalliativecare":
return CodeFlag.deptpalliativecare;
case "deptpediatricintensivecare":
return CodeFlag.deptpediatricintensivecare;
case "deptpediatricsurgery":
return CodeFlag.deptpediatricsurgery;
case "deptpharmacy":
return CodeFlag.deptpharmacy;
case "deptphysicalmedecine":
return CodeFlag.deptphysicalmedecine;
case "deptphysiotherapy":
return CodeFlag.deptphysiotherapy;
case "deptplasticandreparatorysurgery":
return CodeFlag.deptplasticandreparatorysurgery;
case "deptpneumology":
return CodeFlag.deptpneumology;
case "deptpodiatry":
return CodeFlag.deptpodiatry;
case "deptpsychiatry":
return CodeFlag.deptpsychiatry;
case "deptradiology":
return CodeFlag.deptradiology;
case "deptradiotherapy":
return CodeFlag.deptradiotherapy;
case "deptrevalidation":
return CodeFlag.deptrevalidation;
case "deptrheumatology":
return CodeFlag.deptrheumatology;
case "deptrhumatology":
return CodeFlag.deptrhumatology;
case "deptsenology":
return CodeFlag.deptsenology;
case "deptsocialservice":
return CodeFlag.deptsocialservice;
case "deptsportsmedecine":
return CodeFlag.deptsportsmedecine;
case "deptstomatology":
return CodeFlag.deptstomatology;
case "deptsurgery":
return CodeFlag.deptsurgery;
case "deptthoracicsurgery":
return CodeFlag.deptthoracicsurgery;
case "depttoxicology":
return CodeFlag.depttoxicology;
case "depttropicalmedecine":
return CodeFlag.depttropicalmedecine;
case "depturology":
return CodeFlag.depturology;
case "deptvascularsurgery":
return CodeFlag.deptvascularsurgery;
case "deptvisceraldigestiveabdominalsurgery":
return CodeFlag.deptvisceraldigestiveabdominalsurgery;
case "depttransplantsurgery":
return CodeFlag.depttransplantsurgery;
case "deptpercutaneous":
return CodeFlag.deptpercutaneous;
case "deptchildbirth":
return CodeFlag.deptchildbirth;
default:
throw ArgumentError('Invalid CodeFlag entry value $data');
}
}