copyWith method

InboxItem copyWith({
  1. String? buttonAppUrl2,
  2. String? buttonAppUrl1,
  3. String? itemType,
  4. int? destinationId,
  5. String? content,
  6. bool? isDeleted,
  7. int? variantId,
  8. int? campaignId,
  9. DateTime? lastUpdated,
  10. String? appUrl,
  11. String? itemId,
  12. String? heading,
  13. DateTime? dateCreated,
  14. String? imageUrl,
  15. String? buttonLabel1,
  16. List<String>? catalogIds,
  17. String? buttonLabel2,
  18. DateTime? expireDate,
  19. String? webUrl,
  20. String? launchUrl,
  21. String? buttonLaunchUrl1,
  22. String? buttonLaunchUrl2,
  23. String? lookupType,
  24. String? templateId,
  25. int? journeyId,
  26. int? channelId,
  27. String? buttonWebUrl1,
  28. String? buttonWebUrl2,
  29. int? status,
  30. String? trackingUrl,
})

Implementation

InboxItem copyWith({
  String? buttonAppUrl2,
  String? buttonAppUrl1,
  String? itemType,
  int? destinationId,
  String? content,
  bool? isDeleted,
  int? variantId,
  int? campaignId,
  DateTime? lastUpdated,
  String? appUrl,
  String? itemId,
  String? heading,
  DateTime? dateCreated,
  String? imageUrl,
  String? buttonLabel1,
  List<String>? catalogIds,
  String? buttonLabel2,
  DateTime? expireDate,
  String? webUrl,
  String? launchUrl,
  String? buttonLaunchUrl1,
  String? buttonLaunchUrl2,
  String? lookupType,
  String? templateId,
  int? journeyId,
  int? channelId,
  String? buttonWebUrl1,
  String? buttonWebUrl2,
  int? status,
  String? trackingUrl,
}) =>
    InboxItem(
      buttonAppUrl2: buttonAppUrl2 ?? this.buttonAppUrl2,
      buttonAppUrl1: buttonAppUrl1 ?? this.buttonAppUrl1,
      itemType: itemType ?? this.itemType,
      destinationId: destinationId ?? this.destinationId,
      content: content ?? this.content,
      isDeleted: isDeleted ?? this.isDeleted,
      variantId: variantId ?? this.variantId,
      campaignId: campaignId ?? this.campaignId,
      lastUpdated: lastUpdated ?? this.lastUpdated,
      appUrl: appUrl ?? this.appUrl,
      itemId: itemId ?? this.itemId,
      heading: heading ?? this.heading,
      dateCreated: dateCreated ?? this.dateCreated,
      imageUrl: imageUrl ?? this.imageUrl,
      buttonLabel1: buttonLabel1 ?? this.buttonLabel1,
      catalogIds: catalogIds ?? this.catalogIds,
      buttonLabel2: buttonLabel2 ?? this.buttonLabel2,
      expireDate: expireDate ?? this.expireDate,
      webUrl: webUrl ?? this.webUrl,
      launchUrl: launchUrl ?? this.launchUrl,
      buttonLaunchUrl1: buttonLaunchUrl1 ?? this.buttonLaunchUrl1,
      buttonLaunchUrl2: buttonLaunchUrl2 ?? this.buttonLaunchUrl2,
      lookupType: lookupType ?? this.lookupType,
      templateId: templateId ?? this.templateId,
      journeyId: journeyId ?? this.journeyId,
      channelId: channelId ?? this.channelId,
      buttonWebUrl1: buttonWebUrl1 ?? this.buttonWebUrl1,
      buttonWebUrl2: buttonWebUrl2 ?? this.buttonWebUrl2,
      status: status ?? this.status,
      trackingUrl: trackingUrl ?? this.trackingUrl,
    );