toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (cost != null) 'cost': cost!,
      if (currencyCode != null) 'currencyCode': currencyCode!,
      if (originalPrice != null) 'originalPrice': originalPrice!,
      if (price != null) 'price': price!,
      if (priceEffectiveTime != null)
        'priceEffectiveTime': priceEffectiveTime!,
      if (priceExpireTime != null) 'priceExpireTime': priceExpireTime!,
      if (priceRange != null) 'priceRange': priceRange!,
    };