copyWith method
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,
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,
);