FastResponseAd class

The FastResponseAd class represents a fast response advertisement, extending the TModel base class. It contains properties that describe the ad's language, title, description, image, URL, ranking, video, discount, button, and price.

Inheritance
  • Object
  • TModel
  • FastResponseAd

Constructors

FastResponseAd.new({required String language, required String title, required String description, required FastResponseAdAsset image, required String url, FastResponseAdRanking? ranking, FastResponseAdAsset? video, String? discount, FastResponseAdMerchant? merchant, String? button, String? price})
Creates a FastResponseAd object with the given properties.
const
FastResponseAd.fromJson(Map<String, dynamic> json)
Creates a FastResponseAd object from a JSON map.
factory

Properties

button String?
The text displayed on the button associated with the ad.
final
description String
The description of the ad.
final
discount String?
The discount text associated with the ad.
final
hashCode int
The hash code for this object.
no setterinherited
image FastResponseAdAsset
The image asset associated with the ad.
final
language String
The language of the ad.
final
merchant FastResponseAdMerchant?
final
price String?
The price text associated with the ad.
final
props List<Object?>
Returns a list of properties used for comparing FastResponseAd objects.
no setter
ranking FastResponseAdRanking?
The ranking associated with the ad.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
title String
The title of the ad.
final
url String
The URL linked to the ad.
final
video FastResponseAdAsset?
The video asset associated with the ad.
final

Methods

assignValue<T>(T? value, {T? defaultValue, bool loose = true}) → T?
inherited
clone() FastResponseAd
Creates a new FastResponseAd object with the same properties.
override
copyWith({String? language, String? title, String? description, FastResponseAdAsset? image, String? url, FastResponseAdMerchant? merchant, FastResponseAdRanking? ranking, FastResponseAdAsset? video, String? discount, String? button, String? price}) FastResponseAd
Creates a new FastResponseAd object with the specified properties replaced by the provided values.
override
copyWithDefaults() → TModel
inherited
merge(covariant FastResponseAd model) FastResponseAd
Merges the properties of the provided model into a new FastResponseAd object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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