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 (effectivePrice != null) 'effectivePrice': effectivePrice!,
      if (externalPriceUri != null) 'externalPriceUri': externalPriceUri!,
    };