BusinessReportSchedule.fromJson constructor

BusinessReportSchedule.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory BusinessReportSchedule.fromJson(Map<String, dynamic> json) {
  return BusinessReportSchedule(
    contentRange: json['ContentRange'] != null
        ? BusinessReportContentRange.fromJson(
            json['ContentRange'] as Map<String, dynamic>)
        : null,
    format: (json['Format'] as String?)?.toBusinessReportFormat(),
    lastBusinessReport: json['LastBusinessReport'] != null
        ? BusinessReport.fromJson(
            json['LastBusinessReport'] as Map<String, dynamic>)
        : null,
    recurrence: json['Recurrence'] != null
        ? BusinessReportRecurrence.fromJson(
            json['Recurrence'] as Map<String, dynamic>)
        : null,
    s3BucketName: json['S3BucketName'] as String?,
    s3KeyPrefix: json['S3KeyPrefix'] as String?,
    scheduleArn: json['ScheduleArn'] as String?,
    scheduleName: json['ScheduleName'] as String?,
  );
}