Converts instance to a map.
Map<String, dynamic> toMap() { return { "id": id, "languageLevel": languageLevel, "name": name, "type": type, }; }