addLineItem method Null safety
Add line item
Returns a Map
containing the new created line item from
the params
and added to the document with documentId
.
Implementation
Future<Map<String, dynamic>> addLineItem(
String documentId, Map<String, dynamic> params) {
return request(HTTPMethod.post, 'documents/$documentId/line-items/',
body: params);
}