AdUnit class Null safety


AdUnit({String? code, AdUnitContentAdsSettings? contentAdsSettings, AdStyle? customStyle, String? id, String? kind, AdUnitMobileContentAdsSettings? mobileContentAdsSettings, String? name, String? status})
AdUnit.fromJson(Map _json)


code String?
Identity code of this ad unit, not necessarily unique across ad clients.
read / write
contentAdsSettings AdUnitContentAdsSettings?
Settings specific to content ads (AFC) and highend mobile content ads (AFMC - deprecated).
read / write
customStyle AdStyle?
Custom style information specific to this ad unit.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id String?
Unique identifier of this ad unit. [...]
read / write
kind String?
Kind of resource this is, in this case adsensehost#adUnit.
read / write
mobileContentAdsSettings AdUnitMobileContentAdsSettings?
Settings specific to WAP mobile content ads (AFMC - deprecated).
read / write
name String?
Name of this ad unit.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
status String?
Status of this ad unit. [...]
read / write


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]