updateLineItem method Null safety

Future<Map<String, dynamic>> updateLineItem(
  1. String documentId,
  2. String lineItemId,
  3. Map<String, dynamic> params
)

Update line item

Returns a Map containing the updated line item from the params and associated with lineItemId and documentId.

Implementation

Future<Map<String, dynamic>> updateLineItem(
    String documentId, String lineItemId, Map<String, dynamic> params) {
  return request(
      HTTPMethod.put, 'documents/$documentId/line-items/$lineItemId',
      body: params);
}