toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (basePrice != null) 'basePrice': basePrice!,
  if (discount != null) 'discount': discount!,
  if (discountComponents != null) 'discountComponents': discountComponents!,
  if (effectivePrice != null) 'effectivePrice': effectivePrice!,
  if (externalPriceUri != null) 'externalPriceUri': externalPriceUri!,
  if (pricePeriod != null) 'pricePeriod': pricePeriod!,
};