parent
14c196f071
commit
0e3b3d098d
@ -1,4 +1,4 @@
|
||||
{
|
||||
"flutterSdkVersion": "2.8.1",
|
||||
"flutterSdkVersion": "2.10.2",
|
||||
"flavors": {}
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
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,
|
||||
];
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'wx_pay_model.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
WxPayModel _$WxPayModelFromJson(Map<String, dynamic> json) => WxPayModel(
|
||||
prepayId: json['prepayId'] as String,
|
||||
partnerId: json['partnerId'] as String,
|
||||
timeStamp: json['timeStamp'] as String,
|
||||
nonceStr: json['nonceStr'] as String,
|
||||
package: json['package'] as String,
|
||||
sign: json['sign'] as String,
|
||||
);
|
Loading…
Reference in new issue