MessageDocument.fromMap constructor
Implementation
MessageDocument.fromMap(Map<String, dynamic> map) {
extra = map['@extra'];
client_id = map['@client_id'];
if (map['document'] != null) {
document = TdApiMap.fromMap(map['document']) as Document;
}
if (map['caption'] != null) {
caption = TdApiMap.fromMap(map['caption']) as FormattedText;
}
}