ReportSchedule.fromJson constructor

ReportSchedule.fromJson(
  1. Map json_
)

Implementation

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