get method
Gets a QuickbooksTaxRate from the Quickbooks API with the given
accessToken
, companyId
and id
.
Returns null if no data found.
Implementation
Future<QuickbooksTaxRate?> get({
required String accessToken,
required String companyId,
required String id,
}) async {
Map<String, dynamic>? item = await getOne(
accessToken: accessToken,
companyId: companyId,
id: id,
location: 'TaxRate',
);
if (item == null) {
return null;
}
try {
var result = QuickbooksTaxRate.fromMap(item);
return result;
} catch (_) {
return null;
}
}