toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (discountMessage != null) 'discountMessage': discountMessage!,
if (faceValue != null) 'faceValue': faceValue!,
if (purchasePrice != null) 'purchasePrice': purchasePrice!,
};