ReportingReportRun.fromJson constructor
ReportingReportRun.fromJson(
- Object? json
Implementation
factory ReportingReportRun.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return ReportingReportRun(
created:
DateTime.fromMillisecondsSinceEpoch((map['created'] as int).toInt()),
error: map['error'] == null ? null : (map['error'] as String),
id: (map['id'] as String),
livemode: (map['livemode'] as bool),
parameters: FinancialReportingFinanceReportRunRunParameters.fromJson(
map['parameters']),
reportType: (map['report_type'] as String),
result: map['result'] == null ? null : File.fromJson(map['result']),
status: (map['status'] as String),
succeededAt: map['succeeded_at'] == null
? null
: DateTime.fromMillisecondsSinceEpoch(
(map['succeeded_at'] as int).toInt()),
);
}