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!.toJson(),
      if (images != null)
        'images': images!.map((value) => value.toJson()).toList(),
      if (priceRange != null) 'priceRange': priceRange!.toJson(),
      if (stockState != null) 'stockState': stockState!,
    };