BMFSuggestionSearchResult.fromMap constructor

BMFSuggestionSearchResult.fromMap(
  1. Map map
)

map => BMFSuggestionSearchResult

Implementation

BMFSuggestionSearchResult.fromMap(Map map)
    : assert(map != null,
          'Construct a BMFSuggestionSearchResult,The parameter map cannot be null !') {
  if (map['suggestionList'] != null) {
    suggestionList = new List<BMFSuggestionInfo>();
    map['suggestionList'].forEach((v) {
      suggestionList.add(BMFSuggestionInfo.fromMap(v as Map));
    });
  }
}