StorifyMeAd class

A class representing an advertisement.

Constructors

StorifyMeAd.new({required int id, required String advertiserName, required CreativeType creativeType, String? videoURL, String? imageURL, String? trackingURL, String? clickURL, String? clickThroughCTA, bool? fullScreenCTA, double? adDuration})
Constructs an instance of StorifyMeAd.

Properties

adDuration double?
The duration of the ad (in seconds) for video ads.
final
advertiserName String
The name of the advertiser.
final
clickThroughCTA String?
The call-to-action text displayed on the ad when clicked.
final
clickURL String?
The URL that the ad should navigate to when clicked.
final
creativeType CreativeType
The type of creative used in the ad.
final
fullScreenCTA bool?
Indicates whether the ad should be displayed in full screen mode when clicked.
final
hashCode int
The hash code for this object.
no setterinherited
id int
The unique identifier of the ad.
final
imageURL String?
The URL of the image associated with the ad (if applicable).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trackingURL String?
The URL used for tracking impressions and interactions with the ad.
final
videoURL String?
The URL of the video associated with the ad (if applicable).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the StorifyMeAd instance to a JSON representation.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited