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.
 
 
 
 
 
 

30 lines
709 B

import 'package:json_annotation/json_annotation.dart';
part 'wx_pay.g.dart';
@JsonSerializable(explicitToJson: true)
class WxPay {
String? appId = '';
String? nonceStr = '';
String? packageValue = '';
String? partnerId = '';
String? prepayId = '';
String? sign = '';
String? timeStamp = '';
WxPay();
factory WxPay.fromJson(Map<String, dynamic> json) => _$WxPayFromJson(json);
Map<String, dynamic> toJson() => _$WxPayToJson(this);
bool isAnyEmpty() {
return (appId?.isEmpty ?? true)
|| (nonceStr?.isEmpty ?? true)
|| (packageValue?.isEmpty ?? true)
|| (partnerId?.isEmpty ?? true)
|| (prepayId?.isEmpty ?? true)
|| (sign?.isEmpty ?? true)
|| (timeStamp?.isEmpty ?? true);
}
}