fromJSON static method
Implementation
static DeactivationReason fromJSON(String data) {
switch (data) {
case "deceased":
return DeactivationReason.deceased;
case "moved":
return DeactivationReason.moved;
case "other_doctor":
return DeactivationReason.otherDoctor;
case "retired":
return DeactivationReason.retired;
case "no_contact":
return DeactivationReason.noContact;
case "unknown":
return DeactivationReason.unknown;
case "none":
return DeactivationReason.none;
default:
throw ArgumentError('Invalid DeactivationReason entry value $data');
}
}