from Json
Parses a JSON object matching the exact shape of PageSpec into a new instance. Unknown top-level keys are silently skipped (forward- compatible). Unknown sort values (outside SortDir) are silently dropped. Malformed input (wrong types, truncated escapes, integer overflow, invalid characters) throws IllegalArgumentException.
Shape:
{
"page": 0,
"pageSize": 15,
"filters": { "alias": "value", … },
"sorts": { "alias": "ASC"|"DESC", … },
"caseSensitive": { "alias": true|false, … }
}Content copied to clipboard