TargetingValue.fromJson constructor

TargetingValue.fromJson(
  1. Map json_
)

Implementation

TargetingValue.fromJson(core.Map json_)
    : this(
        creativeSizeValue: json_.containsKey('creativeSizeValue')
            ? CreativeSize.fromJson(json_['creativeSizeValue']
                as core.Map<core.String, core.dynamic>)
            : null,
        dayPartTargetingValue: json_.containsKey('dayPartTargetingValue')
            ? DayPartTargeting.fromJson(json_['dayPartTargetingValue']
                as core.Map<core.String, core.dynamic>)
            : null,
        longValue: json_.containsKey('longValue')
            ? json_['longValue'] as core.String
            : null,
        stringValue: json_.containsKey('stringValue')
            ? json_['stringValue'] as core.String
            : null,
      );