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.
app/lib/models/pay_result_model.dart

45 lines
939 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/*
* ====================================================
* package :
* author : Created by nansi.
* time : 2019-08-16 09:14
* remark :
* ====================================================
*/
import 'package:json_annotation/json_annotation.dart';
import 'base_model.dart';
part 'pay_result_model.g.dart';
@JsonSerializable()
class PayResultModel extends BaseModel {
PayResult data;
PayResultModel(code,this.data,msg,) : super(code,msg);
factory PayResultModel.fromJson(Map<String, dynamic> srcJson) => _$PayResultModelFromJson(srcJson);
Map<String, dynamic> toJson() => _$PayResultModelToJson(this);
}
@JsonSerializable()
class PayResult extends Object {
/// 0未支付 1已支付
int status;
PayResult(this.status,);
factory PayResult.fromJson(Map<String, dynamic> srcJson) => _$PayResultFromJson(srcJson);
Map<String, dynamic> toJson() => _$PayResultToJson(this);
}