PlatformSummary.fromJson constructor

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,
      );