ReportSchedule.fromJson constructor

ReportSchedule.fromJson(
  1. Map json_
)

Implementation

ReportSchedule.fromJson(core.Map json_)
  : this(
      active: json_['active'] as core.bool?,
      every: json_['every'] as core.int?,
      expirationDate:
          json_.containsKey('expirationDate')
              ? core.DateTime.parse(json_['expirationDate'] as core.String)
              : null,
      repeats: json_['repeats'] as core.String?,
      repeatsOnWeekDays:
          (json_['repeatsOnWeekDays'] as core.List?)
              ?.map((value) => value as core.String)
              .toList(),
      runsOnDayOfMonth: json_['runsOnDayOfMonth'] as core.String?,
      startDate:
          json_.containsKey('startDate')
              ? core.DateTime.parse(json_['startDate'] as core.String)
              : null,
      timezone: json_['timezone'] as core.String?,
    );