'Return a mapping of discussion ids to usage keys of the corresponding discussion modules.'

@property
def discussion_id_map(self):

    if self.discussion_id_map_json:
        result = json.loads(self.discussion_id_map_json)
        for discussion_id in result:
            result[discussion_id] = UsageKey.from_string(result[discussion_id]).map_into_course(self.course_id)
        return result
    return None
