CreativeAsset.fromJson constructor

CreativeAsset.fromJson(
  1. Map json_
)

Implementation

CreativeAsset.fromJson(core.Map json_)
    : this(
        actionScript3: json_.containsKey('actionScript3')
            ? json_['actionScript3'] as core.bool
            : null,
        active:
            json_.containsKey('active') ? json_['active'] as core.bool : null,
        additionalSizes: json_.containsKey('additionalSizes')
            ? (json_['additionalSizes'] as core.List)
                .map((value) => Size.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        alignment: json_.containsKey('alignment')
            ? json_['alignment'] as core.String
            : null,
        artworkType: json_.containsKey('artworkType')
            ? json_['artworkType'] as core.String
            : null,
        assetIdentifier: json_.containsKey('assetIdentifier')
            ? CreativeAssetId.fromJson(json_['assetIdentifier']
                as core.Map<core.String, core.dynamic>)
            : null,
        audioBitRate: json_.containsKey('audioBitRate')
            ? json_['audioBitRate'] as core.int
            : null,
        audioSampleRate: json_.containsKey('audioSampleRate')
            ? json_['audioSampleRate'] as core.int
            : null,
        backupImageExit: json_.containsKey('backupImageExit')
            ? CreativeCustomEvent.fromJson(json_['backupImageExit']
                as core.Map<core.String, core.dynamic>)
            : null,
        bitRate: json_.containsKey('bitRate')
            ? json_['bitRate'] as core.int
            : null,
        childAssetType: json_.containsKey('childAssetType')
            ? json_['childAssetType'] as core.String
            : null,
        collapsedSize: json_.containsKey('collapsedSize')
            ? Size.fromJson(
                json_['collapsedSize'] as core.Map<core.String, core.dynamic>)
            : null,
        companionCreativeIds: json_.containsKey('companionCreativeIds')
            ? (json_['companionCreativeIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        customStartTimeValue: json_.containsKey('customStartTimeValue')
            ? json_['customStartTimeValue'] as core.int
            : null,
        detectedFeatures: json_.containsKey('detectedFeatures')
            ? (json_['detectedFeatures'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        displayType: json_.containsKey('displayType')
            ? json_['displayType'] as core.String
            : null,
        duration: json_.containsKey('duration')
            ? json_['duration'] as core.int
            : null,
        durationType: json_.containsKey('durationType')
            ? json_['durationType'] as core.String
            : null,
        expandedDimension: json_.containsKey('expandedDimension')
            ? Size.fromJson(json_['expandedDimension']
                as core.Map<core.String, core.dynamic>)
            : null,
        fileSize: json_.containsKey('fileSize')
            ? json_['fileSize'] as core.String
            : null,
        flashVersion: json_.containsKey('flashVersion')
            ? json_['flashVersion'] as core.int
            : null,
        frameRate: json_.containsKey('frameRate')
            ? (json_['frameRate'] as core.num).toDouble()
            : null,
        hideFlashObjects: json_.containsKey('hideFlashObjects')
            ? json_['hideFlashObjects'] as core.bool
            : null,
        hideSelectionBoxes: json_.containsKey('hideSelectionBoxes')
            ? json_['hideSelectionBoxes'] as core.bool
            : null,
        horizontallyLocked: json_.containsKey('horizontallyLocked')
            ? json_['horizontallyLocked'] as core.bool
            : 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,
        mediaDuration: json_.containsKey('mediaDuration')
            ? (json_['mediaDuration'] as core.num).toDouble()
            : null,
        mimeType: json_.containsKey('mimeType')
            ? json_['mimeType'] as core.String
            : null,
        offset: json_.containsKey('offset')
            ? OffsetPosition.fromJson(
                json_['offset'] as core.Map<core.String, core.dynamic>)
            : null,
        orientation: json_.containsKey('orientation')
            ? json_['orientation'] as core.String
            : null,
        originalBackup: json_.containsKey('originalBackup')
            ? json_['originalBackup'] as core.bool
            : null,
        politeLoad: json_.containsKey('politeLoad')
            ? json_['politeLoad'] as core.bool
            : null,
        position: json_.containsKey('position')
            ? OffsetPosition.fromJson(
                json_['position'] as core.Map<core.String, core.dynamic>)
            : null,
        positionLeftUnit: json_.containsKey('positionLeftUnit')
            ? json_['positionLeftUnit'] as core.String
            : null,
        positionTopUnit: json_.containsKey('positionTopUnit')
            ? json_['positionTopUnit'] as core.String
            : null,
        progressiveServingUrl: json_.containsKey('progressiveServingUrl')
            ? json_['progressiveServingUrl'] as core.String
            : null,
        pushdown: json_.containsKey('pushdown')
            ? json_['pushdown'] as core.bool
            : null,
        pushdownDuration: json_.containsKey('pushdownDuration')
            ? (json_['pushdownDuration'] as core.num).toDouble()
            : null,
        role: json_.containsKey('role') ? json_['role'] as core.String : null,
        size: json_.containsKey('size')
            ? Size.fromJson(
                json_['size'] as core.Map<core.String, core.dynamic>)
            : null,
        sslCompliant: json_.containsKey('sslCompliant')
            ? json_['sslCompliant'] as core.bool
            : null,
        startTimeType: json_.containsKey('startTimeType')
            ? json_['startTimeType'] as core.String
            : null,
        streamingServingUrl: json_.containsKey('streamingServingUrl')
            ? json_['streamingServingUrl'] as core.String
            : null,
        transparency: json_.containsKey('transparency')
            ? json_['transparency'] as core.bool
            : null,
        verticallyLocked: json_.containsKey('verticallyLocked')
            ? json_['verticallyLocked'] as core.bool
            : null,
        windowMode: json_.containsKey('windowMode')
            ? json_['windowMode'] as core.String
            : null,
        zIndex:
            json_.containsKey('zIndex') ? json_['zIndex'] as core.int : null,
        zipFilename: json_.containsKey('zipFilename')
            ? json_['zipFilename'] as core.String
            : null,
        zipFilesize: json_.containsKey('zipFilesize')
            ? json_['zipFilesize'] as core.String
            : null,
      );