AdItem class

Model representing an ad item in the banner carousel

Constructors

AdItem({required String adId, required String campaignId, required String id, required String imageUrl, required String clickUrl, required String ttl, bool isViewed = false, required String type, required int priority, required int impressionCount, Map<String, dynamic>? action})
AdItem.fromJson(Map<String, dynamic> json)
Create AdItem from JSON map (from native platform)
factory

Properties

action → Map<String, dynamic>?
final
adId → String
final
campaignId → String
final
clickUrl → String
final
hashCode → int
The hash code for this object.
no setteroverride
id → String
final
imageUrl → String
final
impressionCount → int
final
impressionKey → String
Unique key for impression tracking (consistent across track and filter)
no setter
isViewed → bool
final
priority → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
ttl → String
final
type → String
final

Methods

copyWith({String? adId, String? campaignId, String? id, String? imageUrl, String? clickUrl, String? ttl, bool? isViewed, String? type, int? priority, int? impressionCount, Map<String, dynamic>? action}) → AdItem
Create a copy with updated fields
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Convert AdItem to JSON map (for native platform)
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override