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.
65 lines
1.2 KiB
65 lines
1.2 KiB
/*
|
|
* ====================================================
|
|
* package :
|
|
* author : Created by nansi.
|
|
* time : 2019-07-25 17:01
|
|
* remark :
|
|
* ====================================================
|
|
*/
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'price_model.g.dart';
|
|
|
|
@JsonSerializable()
|
|
class Price extends Object {
|
|
|
|
Min min;
|
|
|
|
Max max;
|
|
|
|
Price(this.min,this.max,);
|
|
|
|
factory Price.fromJson(Map<String, dynamic> srcJson) => _$PriceFromJson(srcJson);
|
|
|
|
Map<String, dynamic> toJson() => _$PriceToJson(this);
|
|
|
|
}
|
|
|
|
|
|
@JsonSerializable()
|
|
class Min extends Object {
|
|
|
|
double originalPrice;
|
|
|
|
double discountPrice;
|
|
|
|
double commission;
|
|
|
|
Min(this.originalPrice,this.discountPrice,this.commission,);
|
|
|
|
factory Min.fromJson(Map<String, dynamic> srcJson) => _$MinFromJson(srcJson);
|
|
|
|
Map<String, dynamic> toJson() => _$MinToJson(this);
|
|
|
|
}
|
|
|
|
|
|
@JsonSerializable()
|
|
class Max extends Object {
|
|
|
|
double originalPrice;
|
|
|
|
double discountPrice;
|
|
|
|
double commission;
|
|
|
|
Max(this.originalPrice,this.discountPrice,this.commission,);
|
|
|
|
factory Max.fromJson(Map<String, dynamic> srcJson) => _$MaxFromJson(srcJson);
|
|
|
|
Map<String, dynamic> toJson() => _$MaxToJson(this);
|
|
|
|
}
|
|
|
|
|