CollectionFetched constructor

CollectionFetched(
  1. Response rawResponse
)

Implementation

CollectionFetched(this.rawResponse) {
  final document = InboundDocument(rawResponse.document ??
      (throw FormatException('The document must not be empty')));
  collection.addAll(document.dataAsCollection());
  included.addAll(document.included());
  meta.addAll(document.meta());
  links.addAll(document.links());
}