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,
      );