toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'id'] = this.id;
  json[r'created_at'] = this.createdAt.toUtc().toIso8601String();
  json[r'code'] = this.code;
  json[r'quantity'] = this.quantity;
  json[r'price'] = this.price;
  json[r'total_price'] = this.totalPrice;
  return json;
}