core.Map<core.String, core.dynamic> toJson() => { if (lineItemId != null) 'lineItemId': lineItemId!, if (quantity != null) 'quantity': quantity!, };