deleteToOne method

Future<RelationshipUpdated<ToOne>> deleteToOne(
  1. String type,
  2. String id,
  3. String relationship, {
  4. Map<String, String> headers = const {},
})

Implementation

Future<RelationshipUpdated<ToOne>> deleteToOne(
    String type, String id, String relationship,
    {Map<String, String> headers = const {}}) async {
  final response = await send(
      baseUri.relationship(type, id, relationship),
      Request.patch(OutboundDataDocument.one(ToOne.empty()))
        ..headers.addAll(headers));
  return RelationshipUpdated.one(response.http, response.document);
}