getById method

Future<InvoiceModel> getById({
  1. required String id,
  2. String apiUserToken = '',
})

Implementation

Future<InvoiceModel> getById({required String id, String apiUserToken = ''}) async {
  var retorno = await apiResource.getById(
    id: id,
    apiUserToken: apiUserToken,
  );

  return InvoiceModel.fromMap(retorno);
}