updateRDA method
Implementation
Future<GeneralResponse<PdaPanel>> updateRDA({
required String barcode,
required String servingSize,
}) async {
return loadResponse(() async {
final response =
await _api.updateRDA(barcode: barcode, servingSize: servingSize);
if (response.data != null) {
return PdaPanel.fromJson(response.data);
}
throw Exception('Failed to update RDA');
});
}