one static method

RelationshipFetched<ToOne> one(
  1. Response response
)

Implementation

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