toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (attributes != null) 'attributes': attributes!,
      if (attributionToken != null) 'attributionToken': attributionToken!,
      if (cartId != null) 'cartId': cartId!,
      if (completionDetail != null) 'completionDetail': completionDetail!,
      if (entity != null) 'entity': entity!,
      if (eventTime != null) 'eventTime': eventTime!,
      if (eventType != null) 'eventType': eventType!,
      if (experimentIds != null) 'experimentIds': experimentIds!,
      if (filter != null) 'filter': filter!,
      if (offset != null) 'offset': offset!,
      if (orderBy != null) 'orderBy': orderBy!,
      if (pageCategories != null) 'pageCategories': pageCategories!,
      if (pageViewId != null) 'pageViewId': pageViewId!,
      if (productDetails != null) 'productDetails': productDetails!,
      if (purchaseTransaction != null)
        'purchaseTransaction': purchaseTransaction!,
      if (referrerUri != null) 'referrerUri': referrerUri!,
      if (searchQuery != null) 'searchQuery': searchQuery!,
      if (sessionId != null) 'sessionId': sessionId!,
      if (uri != null) 'uri': uri!,
      if (userInfo != null) 'userInfo': userInfo!,
      if (visitorId != null) 'visitorId': visitorId!,
    };