PlatformSummary.fromJson constructor Null safety

PlatformSummary.fromJson(
  1. Map _json
)

Implementation

PlatformSummary.fromJson(core.Map _json)
    : this(
        betterAdsStatus: _json.containsKey('betterAdsStatus')
            ? _json['betterAdsStatus'] as core.String
            : null,
        enforcementTime: _json.containsKey('enforcementTime')
            ? _json['enforcementTime'] as core.String
            : null,
        filterStatus: _json.containsKey('filterStatus')
            ? _json['filterStatus'] as core.String
            : null,
        lastChangeTime: _json.containsKey('lastChangeTime')
            ? _json['lastChangeTime'] as core.String
            : null,
        region: _json.containsKey('region')
            ? (_json['region'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        reportUrl: _json.containsKey('reportUrl')
            ? _json['reportUrl'] as core.String
            : null,
        underReview: _json.containsKey('underReview')
            ? _json['underReview'] as core.bool
            : null,
      );