toMap property
Implementation
Map<String, dynamic> get toMap {
Map<String, dynamic> eventInformation = new Map<String, dynamic>();
if (_currencyCode != null) {
eventInformation['pcc'] = _currencyCode;
}
if (_revenue != null) {
eventInformation['r'] = _revenue;
}
eventInformation["is_revenue_event"] = true;
return eventInformation;
}