OutboundDataDocument.collection constructor

OutboundDataDocument.collection(
  1. Iterable<Resource> collection
)

Creates an instance of a document containing a collection of resources as the primary data.

Implementation

OutboundDataDocument.collection(Iterable<Resource> collection)
    : data = collection.toList();