toMap property

Map<String, String?> get toMap

Implementation

Map<String, String?> get toMap {
  Map<String, String?> purchaseMap = new Map<String, String?>();

  if (productId != null) {
    purchaseMap['productId'] = productId;
  }
  if (purchaseToken != null) {
    purchaseMap['purchaseToken'] = purchaseToken;
  }

  return purchaseMap;
}