Game.fromMap constructor
Implementation
Game.fromMap(Map<String, dynamic> map) {
extra = map['@extra'];
client_id = map['@client_id'];
id = map['id'];
short_name = map['short_name'];
title = map['title'];
if (map['text'] != null) {
text = TdApiMap.fromMap(map['text']) as FormattedText;
}
description = map['description'];
if (map['photo'] != null) {
photo = TdApiMap.fromMap(map['photo']) as Photo;
}
if (map['animation'] != null) {
animation = TdApiMap.fromMap(map['animation']) as Animation;
}
}