put method

Future<InvoiceModel> put({
  1. required String id,
  2. required InvoiceModel model,
})

Implementation

Future<InvoiceModel> put({required String id, required InvoiceModel model}) async {
  var retorno = await apiResource.put(id: id, data: model.toMap());
  return InvoiceModel.fromMap(retorno);
}