fromMap static method
override
Construct from Map.
Implementation
static GameHighScore? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
if (_ != CONSTRUCTOR) return null;
var extra = _map['@extra'];
var clientId = _map['@clientId'];
var position = _map['position']! as int;
var user_id = _map['user_id']! as int;
var score = _map['score']! as int;
return GameHighScore(
extra: extra,
clientId: clientId,
position: position,
user_id: user_id,
score: score,
);
}