RelatedResourceFetched constructor
RelatedResourceFetched(
- Response rawResponse
Implementation
RelatedResourceFetched(this.rawResponse) {
final document = InboundDocument(rawResponse.document ??
(throw FormatException('The document must not be empty')));
resource = document.dataAsResourceOrNull();
included.addAll(document.included());
meta.addAll(document.meta());
links.addAll(document.links());
}