BugReport.fromJson constructor

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

Implementation

factory BugReport.fromJson(Map<String, dynamic> json) {
  return BugReport(
    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']),
  );
}