ReportingApiReport.fromJson constructor
ReportingApiReport.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ReportingApiReport.fromJson(Map<String, dynamic> json) {
return ReportingApiReport(
id: ReportId.fromJson(json['id'] as String),
initiatorUrl: json['initiatorUrl'] as String,
destination: json['destination'] as String,
type: json['type'] as String,
timestamp: network.TimeSinceEpoch.fromJson(json['timestamp'] as num),
depth: json['depth'] as int,
completedAttempts: json['completedAttempts'] as int,
body: json['body'] as Map<String, dynamic>,
status: ReportStatus.fromJson(json['status'] as String),
);
}