toJson method

Map<String, dynamic> toJson()

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!,
    };