NativeConfig class
example:
key: "native_ad"
value: {
"enable": true,
"ad_unit_id_android": "ca-app-pub-3940256099942544/6300978111",
"ad_unit_id_ios": "ca-app-pub-3940256099942544/2934735716",
"type": "ADS_MEDIUM",//ADS_SMALL
"position": null,
"distance": null,
"width": 300,
"height": 250
}
- Inheritance
-
- Object
- BaseConfig
- NativeConfig
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
- NativeConfig({bool enable = false, String adUnitIdAndroid = '', String adUnitIdIos = '', int position = 0, int? distance, int? width, int? height, NativeAdType type = NativeAdType.ADS_MEDIUM})
-
NativeConfig.fromJson(Map<
String, dynamic> json) -
factory
Properties
- adUnitId → String
-
no setterinherited
- adUnitIdAndroid ↔ String
-
getter/setter pairinherited
- adUnitIdIos ↔ String
-
getter/setter pairinherited
- distance → int?
-
final
- enable ↔ bool
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int?
-
final
- position → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → NativeAdType
-
final
- width → int?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited