import 'package:json_annotation/json_annotation.dart'; part 'order_pay_response.g.dart'; @JsonSerializable() class OrderPayResponse { @JsonKey(name: 'outTradeNo') String outTradeNo; // @JsonKey(name: 'wechatPayQrcodeUrl') // String? wechatPayQrcodeUrl; // @JsonKey(name: 'wechatPayRedirectUrl') // String? wechatPayRedirectUrl; // @JsonKey(name: 'wechatPayPrepayJson') // String? wechatPayPrepayJson; // @JsonKey(name: 'alipayQrcodeHtml') // String? alipayQrcodeHtml; // @JsonKey(name: 'aliPaySubmitHtml') // String? aliPaySubmitHtml; // @JsonKey(name: 'alipayOrderString') // String? alipayOrderString; @JsonKey(name: 'appAccountToken') String? appAccountToken; // @JsonKey(name: 'wechatPayH5Url') // String? wechatPayH5Url; OrderPayResponse( this.outTradeNo, // this.wechatPayQrcodeUrl, // this.wechatPayRedirectUrl, // this.wechatPayPrepayJson, // this.alipayQrcodeHtml, // this.aliPaySubmitHtml, // this.alipayOrderString, this.appAccountToken, // this.wechatPayH5Url ); factory OrderPayResponse.fromJson(Map json) => _$OrderPayResponseFromJson(json); }