HanziRankInfo.fromMap constructor

HanziRankInfo.fromMap(
  1. Map data
)

Implementation

factory HanziRankInfo.fromMap(Map data) {
  return HanziRankInfo(
    hanzi: data['h'],
    pinyin: data['p'],
    simplifiedPinyin: data['sp'],
    radical: data['r'],
    strokeCount: data['sc'],
    fequencyRank: data['f'],
    hskLevel: data['l'],
  );
}