toJson method

Map<String, dynamic> toJson()

Converts the StorifyMeAd instance to a JSON representation.

Returns a map containing the JSON representation of the StorifyMeAd instance.

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'advertiserName': advertiserName,
    'creativeType': creativeType.name,
    'videoURL': videoURL,
    'imageURL': imageURL,
    'trackingURL': trackingURL,
    'clickURL': clickURL,
    'clickThroughCTA': clickThroughCTA,
    'fullScreenCTA': fullScreenCTA,
    'adDuration': adDuration,
  };
}