BugReport.fromJson constructor
BugReport.fromJson(
- Map<String, dynamic> json
)
Implementation
factory BugReport.fromJson(Map<String, dynamic> json) {
return BugReport(
id: json['id']?.toString(),
description: json['description'],
stepsToReproduce: json['steps_to_reproduce'],
userIdentifier: json['user_identifier'],
createdAt: json['created_at'],
updatedAt: json['updated_at'],
attachments: Attachment.fromList(json['attachments']),
device: json['device'] != null ? Device.fromJson(json['device']) : null,
app: json['app'] != null ? App.fromJson(json['app']) : null,
appVersion:
json['app_version'] != null
? AppVersion.fromJson(json['app_version'])
: null,
);
}