RefundDTO.fromJson constructor

RefundDTO.fromJson(
  1. Map<String, dynamic> json
)

Implementation

RefundDTO.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  createdAt = json['createdAt'];
  sku = json['sku'];
  quantity = json['quantity'];
  type = json['type'];
  status = json['status'];
  include = json['include'];
  note = json['note'];
  startDate = json['startDate'];
  endDate = json['endDate'];
  purchaseDate = json['purchaseDate'];
  purchasePrice = json['purchasePrice'] != null
      ? double.tryParse(json['purchasePrice'].toString())
      : null;
  purchaseCurrency = json['purchaseCurrency'];
}