duplicate method
Future<InvoiceModel>
duplicate({
- required String id,
- required InvoiceDuplicateRequestMessage data,
- String customApiToken = '',
Implementation
Future<InvoiceModel> duplicate({required String id, required InvoiceDuplicateRequestMessage data, String customApiToken = ''}) async {
var retorno = await apiResource.post(data: data.toMap(), partOfUrl: "/$id/duplicate", apiUserToken: customApiToken);
return InvoiceModel.fromMap(retorno);
}