Creative.fromJson constructor

Creative.fromJson(
  1. Map json_
)

Implementation

Creative.fromJson(core.Map json_)
    : this(
        accountId: json_.containsKey('accountId')
            ? json_['accountId'] as core.String
            : null,
        adChoicesDestinationUrl: json_.containsKey('adChoicesDestinationUrl')
            ? json_['adChoicesDestinationUrl'] as core.String
            : null,
        adTechnologyProviders: json_.containsKey('adTechnologyProviders')
            ? AdTechnologyProviders.fromJson(json_['adTechnologyProviders']
                as core.Map<core.String, core.dynamic>)
            : null,
        advertiserName: json_.containsKey('advertiserName')
            ? json_['advertiserName'] as core.String
            : null,
        agencyId: json_.containsKey('agencyId')
            ? json_['agencyId'] as core.String
            : null,
        apiUpdateTime: json_.containsKey('apiUpdateTime')
            ? json_['apiUpdateTime'] as core.String
            : null,
        attributes: json_.containsKey('attributes')
            ? (json_['attributes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        clickThroughUrls: json_.containsKey('clickThroughUrls')
            ? (json_['clickThroughUrls'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        corrections: json_.containsKey('corrections')
            ? (json_['corrections'] as core.List)
                .map((value) => Correction.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        creativeId: json_.containsKey('creativeId')
            ? json_['creativeId'] as core.String
            : null,
        dealsStatus: json_.containsKey('dealsStatus')
            ? json_['dealsStatus'] as core.String
            : null,
        declaredClickThroughUrls:
            json_.containsKey('declaredClickThroughUrls')
                ? (json_['declaredClickThroughUrls'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
        detectedAdvertiserIds: json_.containsKey('detectedAdvertiserIds')
            ? (json_['detectedAdvertiserIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        detectedDomains: json_.containsKey('detectedDomains')
            ? (json_['detectedDomains'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        detectedLanguages: json_.containsKey('detectedLanguages')
            ? (json_['detectedLanguages'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        detectedProductCategories:
            json_.containsKey('detectedProductCategories')
                ? (json_['detectedProductCategories'] as core.List)
                    .map((value) => value as core.int)
                    .toList()
                : null,
        detectedSensitiveCategories:
            json_.containsKey('detectedSensitiveCategories')
                ? (json_['detectedSensitiveCategories'] as core.List)
                    .map((value) => value as core.int)
                    .toList()
                : null,
        html: json_.containsKey('html')
            ? HtmlContent.fromJson(
                json_['html'] as core.Map<core.String, core.dynamic>)
            : null,
        impressionTrackingUrls: json_.containsKey('impressionTrackingUrls')
            ? (json_['impressionTrackingUrls'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        native: json_.containsKey('native')
            ? NativeContent.fromJson(
                json_['native'] as core.Map<core.String, core.dynamic>)
            : null,
        openAuctionStatus: json_.containsKey('openAuctionStatus')
            ? json_['openAuctionStatus'] as core.String
            : null,
        restrictedCategories: json_.containsKey('restrictedCategories')
            ? (json_['restrictedCategories'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        servingRestrictions: json_.containsKey('servingRestrictions')
            ? (json_['servingRestrictions'] as core.List)
                .map((value) => ServingRestriction.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        vendorIds: json_.containsKey('vendorIds')
            ? (json_['vendorIds'] as core.List)
                .map((value) => value as core.int)
                .toList()
            : null,
        version: json_.containsKey('version')
            ? json_['version'] as core.int
            : null,
        video: json_.containsKey('video')
            ? VideoContent.fromJson(
                json_['video'] as core.Map<core.String, core.dynamic>)
            : null,
      );