toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (discountAbsolute != null) 'discountAbsolute': discountAbsolute!,
if (discountPercentage != null) 'discountPercentage': discountPercentage!,
if (discountType != null) 'discountType': discountType!,
};