Topic.fromJson constructor

Topic.fromJson(
  1. Map json_
)

Implementation

Topic.fromJson(core.Map json_)
    : this(
        courseId: json_.containsKey('courseId')
            ? json_['courseId'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        topicId: json_.containsKey('topicId')
            ? json_['topicId'] as core.String
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );