PersonalDocument.fromMap constructor
PersonalDocument.fromMap(
- Map<String, dynamic> map
)
Implementation
PersonalDocument.fromMap(Map<String, dynamic> map) {
extra = map['@extra'];
client_id = map['@client_id'];
if (map['files'] != null) {
files = [];
for (var someValue in map['files']) {
if (someValue != null) {
files?.add(TdApiMap.fromMap(someValue) as DatedFile);
}
}
}
if (map['translation'] != null) {
translation = [];
for (var someValue in map['translation']) {
if (someValue != null) {
translation?.add(TdApiMap.fromMap(someValue) as DatedFile);
}
}
}
}