fromJSON static method
Implementation
static RequestedPermission fromJSON(String data) {
switch (data) {
case "MAX_READ":
return RequestedPermission.maxRead;
case "FULL_READ":
return RequestedPermission.fullRead;
case "MAX_WRITE":
return RequestedPermission.maxWrite;
case "FULL_WRITE":
return RequestedPermission.fullWrite;
case "ROOT":
return RequestedPermission.root;
default:
throw ArgumentError('Invalid RequestedPermission entry value $data');
}
}