import 'package:huixiang/generated/json/base/json_field.dart'; import 'package:huixiang/generated/json/wx_pay.g.dart'; import 'dart:convert'; export 'package:huixiang/generated/json/wx_pay.g.dart'; @JsonSerializable() class WxPay { String? appId = ''; String? nonceStr = ''; String? packageValue = ''; String? partnerId = ''; String? prepayId = ''; String? sign = ''; String? timeStamp = ''; WxPay(); factory WxPay.fromJson(Map json) => $WxPayFromJson(json); Map toJson() => $WxPayToJson(this); @override String toString() { return jsonEncode(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); } }