Payload constructor

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

Implementation

Payload({
  this.applicationId,
  this.clientKey,
  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();
  }
}