DayPartTargeting.fromJson constructor

DayPartTargeting.fromJson(
  1. Map json_
)

Implementation

DayPartTargeting.fromJson(core.Map json_)
    : this(
        daysOfWeek: json_.containsKey('daysOfWeek')
            ? (json_['daysOfWeek'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        hoursOfDay: json_.containsKey('hoursOfDay')
            ? (json_['hoursOfDay'] as core.List)
                .map((value) => value as core.int)
                .toList()
            : null,
        userLocalTime: json_.containsKey('userLocalTime')
            ? json_['userLocalTime'] as core.bool
            : null,
      );