toMap method

Map<String, dynamic> toMap()

Converts the ads settings to a map for easier processing.

Implementation

Map<String, dynamic> toMap() {
  return {
    'adTagUrl': adTagUrl,
    'enableDefaultCompanionSlot': enableDefaultCompanionSlot,
    'defaultCompanionSize': defaultCompanionSize?.toMap(),
  };
}