fromJSON static method
Implementation
static DocumentLocation fromJSON(String data) {
switch (data) {
case "annex":
return DocumentLocation.annex;
case "body":
return DocumentLocation.body;
default:
throw ArgumentError('Invalid DocumentLocation entry value $data');
}
}