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.

55 lines
1.7 KiB

import 'package:huixiang/retrofit/data/exchange_order_goods.dart';
class ExchangeOrder {
ExchangeOrder();
4 years ago
String id;
String createTime;
String createUser;
String updateTime;
String updateUser;
String storeId;
String mid;
String orderCode;
String amount;
int state;
int useTyped;
int isDelete;
List<ExchangeOrderGoods> creditOrderDetailList;
4 years ago
factory ExchangeOrder.fromJson(Map<String, dynamic> json) => ExchangeOrder()
..id = json['id'] as String
..createTime = json['createTime'] as String
..createUser = json['createUser'] as String
..updateTime = json['updateTime'] as String
..updateUser = json['updateUser'] as String
..storeId = json['storeId'] as String
..mid = json['mid'] as String
..orderCode = json['orderCode'] as String
..amount = json['amount'] as String
..state = json['state'] as int
..useTyped = json['useTyped'] as int
..isDelete = json['isDelete'] as int
..creditOrderDetailList = (json['creditOrderDetailList'] as List)
?.map((e) => e == null
? null
: ExchangeOrderGoods.fromJson(e as Map<String, dynamic>))
?.toList();
4 years ago
Map<String, dynamic> toJson() => <String, dynamic>{
'id': this.id,
'createTime': this.createTime,
'createUser': this.createUser,
'updateTime': this.updateTime,
'updateUser': this.updateUser,
'storeId': this.storeId,
'mid': this.mid,
'orderCode': this.orderCode,
'amount': this.amount,
'state': this.state,
'useTyped': this.useTyped,
'isDelete': this.isDelete,
'creditOrderDetailList': this.creditOrderDetailList.map((e) => e.toJson()).toList(),
};
}