toMap property

Map<String, dynamic> get toMap

Implementation

Map<String, dynamic> get toMap {
  Map<String, dynamic> eventInformation = new Map<String, dynamic>();
  if (_currencyCode != null) {
    eventInformation['pcc'] = _currencyCode;
  }

  eventInformation['r'] = _revenue;
  eventInformation["is_revenue_event"] = true;

  return eventInformation;
}