TargetingValueDayPartTargeting.fromJson constructor

TargetingValueDayPartTargeting.fromJson(
  1. Map _json
)

Implementation

TargetingValueDayPartTargeting.fromJson(core.Map _json) {
  if (_json.containsKey("dayParts")) {
    dayParts = (_json["dayParts"] as core.List)
        .map<TargetingValueDayPartTargetingDayPart>((value) =>
            new TargetingValueDayPartTargetingDayPart.fromJson(value))
        .toList();
  }
  if (_json.containsKey("timeZoneType")) {
    timeZoneType = _json["timeZoneType"];
  }
}