ScreenWiseModel.fromGlobalOnly constructor

ScreenWiseModel.fromGlobalOnly(
  1. Map global
)

Implementation

ScreenWiseModel.fromGlobalOnly(Map global) {
  this.bannerNew = global['bannerNew'] ?? [];

  this.banner = (global['banner'] ?? 0);

  this.native = (global['native'] ?? 0);

  this.localAdFlag = (global['globalAdFlag'] ?? true);

  this.gridCount = (global['globalGridCount'] ?? 2);

  this.isNativeEnable = (global['isNativeEnable'] ?? true);

  this.overRideReward = (global['overRideReward'] ?? true);

  this.localClick = (global['globalClick'] ?? [0, 1, 2, 3]);

  this.localFail =
      (global['globalAdFail'] ?? {"0": 1, "1": 2, "2": 3, "3": 0});

  this.overRideTimer = (global['overRideTimer'] ?? false);
  // Default 20 Seconds
  this.overRideTimerValue = (global['overRideTimerValue'] ?? 20);
  this.maxFailed = (global['maxFailed'] ?? 4);
}