one static method
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());
}