usingPairs
Add JSON name/value pairs. Typically used with a forEach call, for example:
members.add(Event::getLabels).usingPairs(Map::forEach);
Content copied to clipboard
When used with a named member, the pairs will be added as a new JSON value object:
{
"name": {
"p1": 1,
"p2": 2
}
}
Content copied to clipboard
{
"p1": 1,
"p2": 2
}
Content copied to clipboard
Return
a Member which may be configured further
Parameters
<N>
the name type
<V>
the value type
pairs
callback used to provide the pairs