DoubleVerify.fromJson constructor

DoubleVerify.fromJson(
  1. Map json_
)

Implementation

DoubleVerify.fromJson(core.Map json_)
    : this(
        appStarRating: json_.containsKey('appStarRating')
            ? DoubleVerifyAppStarRating.fromJson(
                json_['appStarRating'] as core.Map<core.String, core.dynamic>)
            : null,
        avoidedAgeRatings: json_.containsKey('avoidedAgeRatings')
            ? (json_['avoidedAgeRatings'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        brandSafetyCategories: json_.containsKey('brandSafetyCategories')
            ? DoubleVerifyBrandSafetyCategories.fromJson(
                json_['brandSafetyCategories']
                    as core.Map<core.String, core.dynamic>)
            : null,
        customSegmentId: json_.containsKey('customSegmentId')
            ? json_['customSegmentId'] as core.String
            : null,
        displayViewability: json_.containsKey('displayViewability')
            ? DoubleVerifyDisplayViewability.fromJson(
                json_['displayViewability']
                    as core.Map<core.String, core.dynamic>)
            : null,
        fraudInvalidTraffic: json_.containsKey('fraudInvalidTraffic')
            ? DoubleVerifyFraudInvalidTraffic.fromJson(
                json_['fraudInvalidTraffic']
                    as core.Map<core.String, core.dynamic>)
            : null,
        videoViewability: json_.containsKey('videoViewability')
            ? DoubleVerifyVideoViewability.fromJson(json_['videoViewability']
                as core.Map<core.String, core.dynamic>)
            : null,
      );