WeeklySchedule.fromJson constructor

WeeklySchedule.fromJson(
  1. Map json_
)

Implementation

WeeklySchedule.fromJson(core.Map json_)
    : this(
        daysOfWeek: json_.containsKey('daysOfWeek')
            ? (json_['daysOfWeek'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        startTimes: json_.containsKey('startTimes')
            ? (json_['startTimes'] as core.List)
                .map((value) => GoogleTypeTimeOfDay.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );