getNoteAttachment function

Future<ApiResponse<NoteAttachment>> getNoteAttachment(
  1. ExsitedClient client,
  2. Object attachmentUuid, {
  3. bool? raiseOnError,
  4. String? responseFormat,
})

GET /api/{api_version}/note_attachment/{attachment_uuid}

Any note's attachment as base64, the uuid a note's attachments entry carries, whatever the note is attached to.

Implementation

Future<ApiResponse<NoteAttachment>> getNoteAttachment(
  ExsitedClient client,
  Object attachmentUuid, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(NoteAttachmentsUrls.noteAttachment,
        pathParams: {'attachment_uuid': attachmentUuid},
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: NoteAttachment.fromMap);