many static method

RelationshipFetched<ToMany> many(
  1. Response response
)

Implementation

static RelationshipFetched<ToMany> many(Response response) {
  final document = InboundDocument(response.document ??
      (throw FormatException('The document must not be empty')));
  return RelationshipFetched(response, document.asToMany())
    ..included.addAll(document.included());
}