toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (attributes != null) 'attributes': attributes!,
      if (audience != null) 'audience': audience!,
      if (availability != null) 'availability': availability!,
      if (availableQuantity != null) 'availableQuantity': availableQuantity!,
      if (availableTime != null) 'availableTime': availableTime!,
      if (brands != null) 'brands': brands!,
      if (categories != null) 'categories': categories!,
      if (collectionMemberIds != null)
        'collectionMemberIds': collectionMemberIds!,
      if (colorInfo != null) 'colorInfo': colorInfo!,
      if (conditions != null) 'conditions': conditions!,
      if (description != null) 'description': description!,
      if (expireTime != null) 'expireTime': expireTime!,
      if (fulfillmentInfo != null) 'fulfillmentInfo': fulfillmentInfo!,
      if (gtin != null) 'gtin': gtin!,
      if (id != null) 'id': id!,
      if (images != null) 'images': images!,
      if (languageCode != null) 'languageCode': languageCode!,
      if (localInventories != null) 'localInventories': localInventories!,
      if (materials != null) 'materials': materials!,
      if (name != null) 'name': name!,
      if (patterns != null) 'patterns': patterns!,
      if (priceInfo != null) 'priceInfo': priceInfo!,
      if (primaryProductId != null) 'primaryProductId': primaryProductId!,
      if (promotions != null) 'promotions': promotions!,
      if (publishTime != null) 'publishTime': publishTime!,
      if (rating != null) 'rating': rating!,
      if (retrievableFields != null) 'retrievableFields': retrievableFields!,
      if (sizes != null) 'sizes': sizes!,
      if (tags != null) 'tags': tags!,
      if (title != null) 'title': title!,
      if (ttl != null) 'ttl': ttl!,
      if (type != null) 'type': type!,
      if (uri != null) 'uri': uri!,
      if (variants != null) 'variants': variants!,
    };