CreativeAssetMetadata.fromJson constructor

CreativeAssetMetadata.fromJson(
  1. Map json_
)

Implementation

CreativeAssetMetadata.fromJson(core.Map json_)
    : this(
        assetIdentifier: json_.containsKey('assetIdentifier')
            ? CreativeAssetId.fromJson(json_['assetIdentifier']
                as core.Map<core.String, core.dynamic>)
            : null,
        clickTags: json_.containsKey('clickTags')
            ? (json_['clickTags'] as core.List)
                .map((value) => ClickTag.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        counterCustomEvents: json_.containsKey('counterCustomEvents')
            ? (json_['counterCustomEvents'] as core.List)
                .map((value) => CreativeCustomEvent.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        detectedFeatures: json_.containsKey('detectedFeatures')
            ? (json_['detectedFeatures'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        exitCustomEvents: json_.containsKey('exitCustomEvents')
            ? (json_['exitCustomEvents'] as core.List)
                .map((value) => CreativeCustomEvent.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        idDimensionValue: json_.containsKey('idDimensionValue')
            ? DimensionValue.fromJson(json_['idDimensionValue']
                as core.Map<core.String, core.dynamic>)
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        mediaRequestInfo: json_.containsKey('mediaRequestInfo')
            ? MediaRequestInfo.fromJson(json_['mediaRequestInfo']
                as core.Map<core.String, core.dynamic>)
            : null,
        mediaResponseInfo: json_.containsKey('mediaResponseInfo')
            ? MediaResponseInfo.fromJson(json_['mediaResponseInfo']
                as core.Map<core.String, core.dynamic>)
            : null,
        richMedia: json_.containsKey('richMedia')
            ? json_['richMedia'] as core.bool
            : null,
        timerCustomEvents: json_.containsKey('timerCustomEvents')
            ? (json_['timerCustomEvents'] as core.List)
                .map((value) => CreativeCustomEvent.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        warnedValidationRules: json_.containsKey('warnedValidationRules')
            ? (json_['warnedValidationRules'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );