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.
36 lines
870 B
36 lines
870 B
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<String, dynamic> json) => $WxPayFromJson(json); |
|
|
|
Map<String, dynamic> 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); |
|
} |
|
} |