getLineItem method Null safety

Future<Map<String, dynamic>> getLineItem(
  1. String documentId,
  2. String lineItemId
)

Get line item

Returns a Map containing the line item from the document with the specified documentId and lineItemId.

Implementation

Future<Map<String, dynamic>> getLineItem(
    String documentId, String lineItemId) {
  return request(
      HTTPMethod.get, 'documents/$documentId/line-items/$lineItemId');
}