RelatedResourceFetched constructor

RelatedResourceFetched(
  1. HttpResponse http,
  2. Map json
)

Implementation

RelatedResourceFetched(this.http, Map json)
    : resource = InboundDocument(json).dataAsResourceOrNull() {
  final document = InboundDocument(json);
  included.addAll(document.included());
  meta.addAll(document.meta());
  links.addAll(document.links());
}