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.
38 lines
753 B
38 lines
753 B
2 years ago
|
import 'package:equatable/equatable.dart';
|
||
|
import 'package:json_annotation/json_annotation.dart';
|
||
|
|
||
|
part 'wx_pay_model.g.dart';
|
||
|
|
||
|
@JsonSerializable()
|
||
|
class WxPayModel extends Equatable {
|
||
|
final String prepayId;
|
||
|
final String partnerId;
|
||
|
final String timeStamp;
|
||
|
final String nonceStr;
|
||
|
final String package;
|
||
|
final String sign;
|
||
|
|
||
|
factory WxPayModel.fromJson(Map<String, dynamic> json) =>
|
||
|
_$WxPayModelFromJson(json);
|
||
|
|
||
|
|
||
|
const WxPayModel({
|
||
|
required this.prepayId,
|
||
|
required this.partnerId,
|
||
|
required this.timeStamp,
|
||
|
required this.nonceStr,
|
||
|
required this.package,
|
||
|
required this.sign,
|
||
|
});
|
||
|
|
||
|
@override
|
||
|
List<Object?> get props => [
|
||
|
prepayId,
|
||
|
partnerId,
|
||
|
timeStamp,
|
||
|
nonceStr,
|
||
|
package,
|
||
|
sign,
|
||
|
];
|
||
|
}
|