LearningTopic.fromJson constructor

LearningTopic.fromJson(
  1. Map json
)

Implementation

LearningTopic.fromJson(Map json)
    : id = json['id'],
      title = json['title'],
      imageLink = json['image_link'],
      ourAnswer = json['our_answer'],
      resources = (json['learning_resources'])
          .map((e) => LearningResource.fromJson(e))
          .toList()
          .cast<LearningResource>();