carpPath property

String carpPath

The full CARP web service path to this document.

If the id of this document is known, use the documents CARP endpoint, otherwise use the collections endpoint.

Implementation

String get carpPath => (_id != null)
    ? "/api/studies/${service.app!.studyId}/documents/$id"
    : "/api/studies/${service.app!.studyId}/collections/$path";