toIdResource method

Map<String, dynamic> toIdResource()

returns the simplest representation of this resource with only the type and the id:

{'type': 'Type', 'id': id}

Implementation

Map<String, dynamic> toIdResource() {
  return toJson(includeAttributes: false);
}