VideoTargeting.fromJson constructor

VideoTargeting.fromJson(
  1. Map _json
)

Implementation

VideoTargeting.fromJson(core.Map _json)
    : this(
        excludedPositionTypes: _json.containsKey('excludedPositionTypes')
            ? (_json['excludedPositionTypes'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        targetedPositionTypes: _json.containsKey('targetedPositionTypes')
            ? (_json['targetedPositionTypes'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
      );