Problem.fromJson constructor
Implementation
factory Problem.fromJson(Map<String, dynamic> json) {
return Problem(
id: json['questionId'],
displayId: json['questionFrontendId'],
title: json['title'],
titleSlug: json['titleSlug'],
content: json['content'],
difficulty: json['difficulty'],
likes: json['likes'],
dislikes: json['dislikes'],
hints: List<String>.from(json['hints']),
);
}