toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (actionType != null) 'actionType': actionType!,
if (ecommerceType != null) 'ecommerceType': ecommerceType!,
if (products != null) 'products': products!,
if (transaction != null) 'transaction': transaction!,
};