copyWith method

SponsoredMessage copyWith({
  1. int? messageId,
  2. int? sponsorChatId,
  3. ChatInviteLinkInfo? sponsorChatInfo,
  4. InternalLinkType? link,
  5. MessageContent? content,
  6. dynamic extra,
  7. int? clientId,
})

Implementation

SponsoredMessage copyWith({
  int? messageId,
  int? sponsorChatId,
  ChatInviteLinkInfo? sponsorChatInfo,
  InternalLinkType? link,
  MessageContent? content,
  dynamic extra,
  int? clientId,
}) => SponsoredMessage(
  messageId: messageId ?? this.messageId,
  sponsorChatId: sponsorChatId ?? this.sponsorChatId,
  sponsorChatInfo: sponsorChatInfo ?? this.sponsorChatInfo,
  link: link ?? this.link,
  content: content ?? this.content,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);