order_pay_response.dart 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. String? wechatPayH5Url;
  23. OrderPayResponse(
  24. 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. factory OrderPayResponse.fromJson(Map<String, dynamic> json) =>
  34. _$OrderPayResponseFromJson(json);
  35. }