toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final items = this.items;
  final quantity = this.quantity;
  return {
    if (items != null) 'Items': items,
    if (quantity != null) 'Quantity': quantity,
  };
}