CreativeAssignment.fromJson constructor

CreativeAssignment.fromJson(
  1. Map json_
)

Implementation

CreativeAssignment.fromJson(core.Map json_)
    : this(
        active:
            json_.containsKey('active') ? json_['active'] as core.bool : null,
        applyEventTags: json_.containsKey('applyEventTags')
            ? json_['applyEventTags'] as core.bool
            : null,
        clickThroughUrl: json_.containsKey('clickThroughUrl')
            ? ClickThroughUrl.fromJson(json_['clickThroughUrl']
                as core.Map<core.String, core.dynamic>)
            : null,
        companionCreativeOverrides:
            json_.containsKey('companionCreativeOverrides')
                ? (json_['companionCreativeOverrides'] as core.List)
                    .map((value) => CompanionClickThroughOverride.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        creativeGroupAssignments:
            json_.containsKey('creativeGroupAssignments')
                ? (json_['creativeGroupAssignments'] as core.List)
                    .map((value) => CreativeGroupAssignment.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        creativeId: json_.containsKey('creativeId')
            ? json_['creativeId'] as core.String
            : null,
        creativeIdDimensionValue:
            json_.containsKey('creativeIdDimensionValue')
                ? DimensionValue.fromJson(json_['creativeIdDimensionValue']
                    as core.Map<core.String, core.dynamic>)
                : null,
        endTime: json_.containsKey('endTime')
            ? core.DateTime.parse(json_['endTime'] as core.String)
            : null,
        richMediaExitOverrides: json_.containsKey('richMediaExitOverrides')
            ? (json_['richMediaExitOverrides'] as core.List)
                .map((value) => RichMediaExitOverride.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        sequence: json_.containsKey('sequence')
            ? json_['sequence'] as core.int
            : null,
        sslCompliant: json_.containsKey('sslCompliant')
            ? json_['sslCompliant'] as core.bool
            : null,
        startTime: json_.containsKey('startTime')
            ? core.DateTime.parse(json_['startTime'] as core.String)
            : null,
        weight:
            json_.containsKey('weight') ? json_['weight'] as core.int : null,
      );