toJson method

Map<String, dynamic> toJson()

Implementation

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