Payload constructor

Payload({
  1. String? webApplicationId,
  2. String? androidApplicationId,
  3. String? iosApplicationId,
  4. String? pg,
  5. String? method,
  6. List<String>? methods,
  7. String? orderName,
  8. String? currency,
  9. double? price,
  10. double? taxFree,
  11. double? depositPrice,
  12. String? orderId,
  13. String? subscriptionId,
  14. String? authenticationId,
  15. Map<String, dynamic>? metadata,
  16. String? userToken,
  17. Extra? extra,
  18. User? user,
  19. List<Item>? items,
  20. String? widgetKey,
  21. bool? widgetUseTerms,
  22. bool? widgetSandbox,
  23. Oopay? widgetOopay,
})

Implementation

Payload({
  this.webApplicationId,
  this.androidApplicationId,
  this.iosApplicationId,
  this.pg,
  this.method,
  this.methods,
  this.orderName,
  this.currency,
  this.price,
  this.taxFree,
  this.depositPrice,
  this.orderId,
  this.subscriptionId,
  this.authenticationId,
  this.metadata,
  this.userToken,
  this.extra,
  this.user,
  this.items,
  this.widgetKey,
  this.widgetUseTerms,
  this.widgetSandbox,
  this.widgetOopay,
}) {
  if(this.extra == null) {
    this.extra = Extra();
  }
}