bodyTrack property
Implementation
@override
Map<String, Object> get bodyTrack {
var customBody = new Map<String, Object>();
customBody.addAll(
{"t": typeOfEvent, "tid": transactionId, "in": name, "ic": code});
// Add price
if (price != null) customBody['ip'] = price ?? 0;
// Add quantity
if (quantity != null) customBody['iq'] = quantity ?? 0;
// Add category
if (category != null) customBody['iv'] = category ?? 0;
// Add commun body
customBody.addAll(super.communBodyTrack);
return customBody;
}