ReviewStatusInfo.fromJson constructor

ReviewStatusInfo.fromJson(
  1. Map json_
)

Implementation

ReviewStatusInfo.fromJson(core.Map json_)
    : this(
        approvalStatus: json_.containsKey('approvalStatus')
            ? json_['approvalStatus'] as core.String
            : null,
        contentAndPolicyReviewStatus:
            json_.containsKey('contentAndPolicyReviewStatus')
                ? json_['contentAndPolicyReviewStatus'] as core.String
                : null,
        creativeAndLandingPageReviewStatus:
            json_.containsKey('creativeAndLandingPageReviewStatus')
                ? json_['creativeAndLandingPageReviewStatus'] as core.String
                : null,
        exchangeReviewStatuses: json_.containsKey('exchangeReviewStatuses')
            ? (json_['exchangeReviewStatuses'] as core.List)
                .map((value) => ExchangeReviewStatus.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        publisherReviewStatuses: json_.containsKey('publisherReviewStatuses')
            ? (json_['publisherReviewStatuses'] as core.List)
                .map((value) => PublisherReviewStatus.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );