Background.fromMap constructor
Implementation
Background.fromMap(Map<String, dynamic> map) {
extra = map['@extra'];
client_id = map['@client_id'];
id = map['id'];
is_default = map['is_default'];
is_dark = map['is_dark'];
name = map['name'];
if (map['document'] != null) {
document = TdApiMap.fromMap(map['document']) as Document;
}
if (map['type'] != null) {
type = TdApiMap.fromMap(map['type']) as BackgroundType;
}
}