toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (availableQuantity != null) 'availableQuantity': availableQuantity!,
      if (canonicalProductUri != null)
        'canonicalProductUri': canonicalProductUri!,
      if (costs != null) 'costs': costs!,
      if (currencyCode != null) 'currencyCode': currencyCode!,
      if (exactPrice != null) 'exactPrice': exactPrice!,
      if (images != null) 'images': images!,
      if (priceRange != null) 'priceRange': priceRange!,
      if (stockState != null) 'stockState': stockState!,
    };