request_pay_response.dart 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'request_pay_response.g.dart';
  3. @JsonSerializable()
  4. class RequestPayResponse {
  5. /**
  6. * @SerializedName("outTradeNo")
  7. private String orderId;
  8. @SerializedName("wechatPayQrcodeUrl")
  9. private String wechatPayQrcodeUrl;
  10. @SerializedName("wechatPayPrepayJson")
  11. private String wechatPayPrepayJson;
  12. @SerializedName("alipayQrcodeHtml")
  13. private String alipayQrcodeHtml;
  14. @SerializedName("alipayOrderString")
  15. private String alipayOrderString;
  16. */
  17. @JsonKey(name: 'outTradeNo')
  18. String outTradeNo;
  19. @JsonKey(name: 'wechatPayQrcodeUrl')
  20. String? wechatPayQrcodeUrl;
  21. @JsonKey(name: 'wechatPayPrepayJson')
  22. String? wechatPayPrepayJson;
  23. @JsonKey(name: 'alipayQrcodeHtml')
  24. String? alipayQrcodeHtml;
  25. @JsonKey(name: 'alipayOrderString')
  26. String? alipayOrderString;
  27. RequestPayResponse(
  28. {required this.outTradeNo,
  29. this.wechatPayQrcodeUrl,
  30. this.wechatPayPrepayJson,
  31. this.alipayQrcodeHtml,
  32. this.alipayOrderString});
  33. factory RequestPayResponse.fromJson(Map<String, dynamic> json) =>
  34. _$RequestPayResponseFromJson(json);
  35. }