fromJSON static method
Implementation
static Gender fromJSON(String data) {
switch (data) {
case "male":
return Gender.male;
case "female":
return Gender.female;
case "indeterminate":
return Gender.indeterminate;
case "changed":
return Gender.changed;
case "changedToMale":
return Gender.changedToMale;
case "changedToFemale":
return Gender.changedToFemale;
case "unknown":
return Gender.unknown;
default:
throw ArgumentError('Invalid Gender entry value $data');
}
}