toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = id;
  data['createdAt'] = createdAt;
  data['sku'] = sku;
  data['quantity'] = quantity;
  data['type'] = type;
  data['status'] = status;
  data['include'] = include;
  data['note'] = note;
  data['startDate'] = startDate;
  data['endDate'] = endDate;
  data['purchaseDate'] = purchaseDate;
  data['purchasePrice'] = purchasePrice;
  data['purchaseCurrency'] = purchaseCurrency;
  return data;
}