ReportingReportRunCreateOptions.fromJson constructor

ReportingReportRunCreateOptions.fromJson(
  1. Object? json
)

Implementation

factory ReportingReportRunCreateOptions.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return ReportingReportRunCreateOptions(
    expand: map['expand'] == null
        ? null
        : (map['expand'] as List<Object?>)
            .map((el) => (el as String))
            .toList(),
    parameters: map['parameters'] == null
        ? null
        : ReportRunParameters.fromJson(map['parameters']),
    reportType: (map['report_type'] as String),
  );
}