toMap property

Map<String, dynamic> get toMap
override

Implementation

Map<String, dynamic> get toMap {
  Map<String, dynamic> eventInformation = super.toMap;
  if (_receipt != null) {
    eventInformation['ptr'] = _receipt;
  }
  if (_transactionId != null) {
    eventInformation['pti'] = _transactionId;
  }
  if (_productId != null) {
    eventInformation['pk'] = _productId;
  }

  return eventInformation;
}