$CustomViewabilityMetricConfiguration.fromJson constructor Null safety

$CustomViewabilityMetricConfiguration.fromJson(
  1. Map _json
)

Implementation

$CustomViewabilityMetricConfiguration.fromJson(core.Map _json)
    : this(
        audible: _json.containsKey('audible')
            ? _json['audible'] as core.bool
            : null,
        timeMillis: _json.containsKey('timeMillis')
            ? _json['timeMillis'] as core.int
            : null,
        timePercent: _json.containsKey('timePercent')
            ? _json['timePercent'] as core.int
            : null,
        viewabilityPercent: _json.containsKey('viewabilityPercent')
            ? _json['viewabilityPercent'] as core.int
            : null,
      );