如何具有实现的KeywordData
类型或类:
String keyword;
Map<String, Map<String, Object>> data;
var keywordData = {keyword: data};
除了keywordData
有自己的类型?
我尝试过:
class KeywordData {
final String keyword;
Map<String, Map<String, Object>> data;
KeywordData({this.keyword, this.data});
return {this.keyword: this.data};
}