fromJSON static method
Implementation
static AccessLevel fromJSON(String data) {
switch (data) {
case "READ":
return AccessLevel.read;
case "WRITE":
return AccessLevel.write;
default:
throw ArgumentError('Invalid AccessLevel entry value $data');
}
}