addLineItem method Null safety

Future<Map<String, dynamic>> addLineItem(
  1. String documentId,
  2. Map<String, dynamic> params
)

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);
}