$DayPartTargeting.fromJson constructor Null safety

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