toMap method

Map<String, Object?> toMap()

Creates a Map object describes the payment object.

Implementation

Map<String, Object?> toMap() {
  return <String, Object?>{
    'productIdentifier': productIdentifier,
    'applicationUsername': applicationUsername,
    'requestData': requestData,
    'quantity': quantity,
    'simulatesAskToBuyInSandbox': simulatesAskToBuyInSandbox,
    'paymentDiscount': paymentDiscount?.toMap(),
  };
}