DayPartTargeting.fromJson constructor

DayPartTargeting.fromJson(
  1. Map json_
)

Implementation

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