Schedule.fromJson constructor

Schedule.fromJson(
  1. Map json_
)

Implementation

Schedule.fromJson(core.Map json_)
    : this(
        endTimeOfDay: json_.containsKey('endTimeOfDay')
            ? TimeOfDay.fromJson(
                json_['endTimeOfDay'] as core.Map<core.String, core.dynamic>)
            : null,
        repeatInterval: json_.containsKey('repeatInterval')
            ? json_['repeatInterval'] as core.String
            : null,
        scheduleEndDate: json_.containsKey('scheduleEndDate')
            ? Date.fromJson(json_['scheduleEndDate']
                as core.Map<core.String, core.dynamic>)
            : null,
        scheduleStartDate: json_.containsKey('scheduleStartDate')
            ? Date.fromJson(json_['scheduleStartDate']
                as core.Map<core.String, core.dynamic>)
            : null,
        startTimeOfDay: json_.containsKey('startTimeOfDay')
            ? TimeOfDay.fromJson(json_['startTimeOfDay']
                as core.Map<core.String, core.dynamic>)
            : null,
      );