order_pay_response.dart 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'order_pay_response.g.dart';
  3. @JsonSerializable()
  4. class OrderPayResponse {
  5. @JsonKey(name: 'outTradeNo')
  6. String outTradeNo;
  7. @JsonKey(name: 'wechatPayQrcodeUrl')
  8. String? wechatPayQrcodeUrl;
  9. @JsonKey(name: 'wechatPayRedirectUrl')
  10. String? wechatPayRedirectUrl;
  11. @JsonKey(name: 'wechatPayPrepayJson')
  12. String? wechatPayPrepayJson;
  13. @JsonKey(name: 'alipayQrcodeHtml')
  14. String? alipayQrcodeHtml;
  15. @JsonKey(name: 'aliPaySubmitHtml')
  16. String? aliPaySubmitHtml;
  17. @JsonKey(name: 'alipayOrderString')
  18. String? alipayOrderString;
  19. @JsonKey(name: 'appAccountToken')
  20. String? appAccountToken;
  21. @JsonKey(name: 'wechatPayH5Url')
  22. int? wechatPayH5Url;
  23. OrderPayResponse({
  24. required this.outTradeNo,
  25. this.wechatPayQrcodeUrl,
  26. this.wechatPayRedirectUrl,
  27. this.wechatPayPrepayJson,
  28. this.alipayQrcodeHtml,
  29. this.aliPaySubmitHtml,
  30. this.alipayOrderString,
  31. this.appAccountToken,
  32. this.wechatPayH5Url,
  33. });
  34. factory OrderPayResponse.fromJson(Map<String, dynamic> json) =>
  35. _$OrderPayResponseFromJson(json);
  36. }