UExamResponse.fromMap constructor

UExamResponse.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory UExamResponse.fromMap(Map<String, dynamic> json) => UExamResponse(
      id: json["id"],
      createdAt: DateTime.parse(json["createdAt"]),
      updatedAt: DateTime.parse(json["updatedAt"]),
      jsonData: UExamJson.fromMap(json["jsonData"]),
      tags: List<int>.from(json["tags"].map((dynamic x) => x)),
      title: json["title"],
      description: json["description"],
      categoryId: json["categoryId"],
      category: json["category"] == null ? null : UCategoryResponse.fromMap(json["category"]),
    );