implement PermissionContext.fromJSON and Role.fromJSON