DtoResult Module
Replaces a string or array that is null after JSON deserialization by an empty value, and collects results into all values or all errors.
Functions and values
| Function or value |
Description
|
Full Usage:
blankToNull s
Parameters:
string
Returns: string
|
Returns null for a null or empty string, and the string otherwise. orBlank reads null back as an empty string.
|
Full Usage:
orBlank s
Parameters:
string
Returns: string
|
Returns the string, or an empty string when the string is null after JSON deserialization.
|
Full Usage:
orEmpty xs
Parameters:
'a[]
Returns: 'a[]
Type parameters: 'a |
Returns the array, or an empty array when the array is null after JSON deserialization.
|
|
GenPRES