Problem.fromJson constructor

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

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']),
  );
}