GameHighScores.fromMap constructor

GameHighScores.fromMap(
  1. Map<String, dynamic> map
)

Implementation

GameHighScores.fromMap(Map<String, dynamic> map) {
  extra = map['@extra'];
  client_id = map['@client_id'];
  if (map['scores'] != null) {
    scores = [];
    for (var someValue in map['scores']) {
      if (someValue != null) {
        scores?.add(TdApiMap.fromMap(someValue) as GameHighScore);
      }
    }
  }
}