getAll method
Gets all QuickbooksVendor in the Quickbooks API for the given accessToken
and companyId
Implementation
Future<List<QuickbooksVendor>> getAll({
required String accessToken,
required String companyId,
String? conditions,
}) async {
List<Map<String, dynamic>> items = await getMany(
accessToken: accessToken,
companyId: companyId,
conditions: conditions,
location: 'Vendor',
);
List<QuickbooksVendor> results = [];
for (var item in items) {
try {
results.add(QuickbooksVendor.fromMap(item));
} catch (e) {
print(e);
}
}
return results;
}