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.
44 lines
822 B
44 lines
822 B
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
import 'package:recook/models/base_model.dart';
|
|
|
|
part 'order_prepay_model.g.dart';
|
|
|
|
|
|
@JsonSerializable()
|
|
class OrderPrepayModel extends BaseModel {
|
|
|
|
Data data;
|
|
|
|
OrderPrepayModel(code,this.data,msg,):super(code,msg);
|
|
|
|
factory OrderPrepayModel.fromJson(Map<String, dynamic> srcJson) => _$OrderPrepayModelFromJson(srcJson);
|
|
|
|
Map<String, dynamic> toJson() => _$OrderPrepayModelToJson(this);
|
|
|
|
}
|
|
|
|
|
|
@JsonSerializable()
|
|
class Data extends Object {
|
|
|
|
int id;
|
|
|
|
int userId;
|
|
|
|
double actualTotalAmount;
|
|
|
|
int status;
|
|
|
|
String createdAt;
|
|
|
|
Data(this.id,this.userId,this.actualTotalAmount,this.status,this.createdAt,);
|
|
|
|
factory Data.fromJson(Map<String, dynamic> srcJson) => _$DataFromJson(srcJson);
|
|
|
|
Map<String, dynamic> toJson() => _$DataToJson(this);
|
|
|
|
}
|
|
|
|
|