You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.5 KiB

/// appId : ""
/// nonceStr : ""
/// packageValue : ""
/// partnerId : ""
/// prepayId : ""
/// sign : ""
/// timeStamp : ""
class WxPay {
String _appId;
String _nonceStr;
String _packageValue;
String _partnerId;
String _prepayId;
String _sign;
String _timeStamp;
String get appId => _appId;
String get nonceStr => _nonceStr;
String get packageValue => _packageValue;
String get partnerId => _partnerId;
String get prepayId => _prepayId;
String get sign => _sign;
String get timeStamp => _timeStamp;
WxPay({
String appId,
String nonceStr,
String packageValue,
String partnerId,
String prepayId,
String sign,
String timeStamp}){
_appId = appId;
_nonceStr = nonceStr;
_packageValue = packageValue;
_partnerId = partnerId;
_prepayId = prepayId;
_sign = sign;
_timeStamp = timeStamp;
}
WxPay.fromJson(dynamic json) {
_appId = json["appId"];
_nonceStr = json["nonceStr"];
_packageValue = json["packageValue"];
_partnerId = json["partnerId"];
_prepayId = json["prepayId"];
_sign = json["sign"];
_timeStamp = json["timeStamp"];
}
Map<String, dynamic> toJson() {
var map = <String, dynamic>{};
map["appId"] = _appId;
map["nonceStr"] = _nonceStr;
map["packageValue"] = _packageValue;
map["partnerId"] = _partnerId;
map["prepayId"] = _prepayId;
map["sign"] = _sign;
map["timeStamp"] = _timeStamp;
return map;
}
}