MessagePhoto.fromMap constructor
Implementation
MessagePhoto.fromMap(Map<String, dynamic> map) {
extra = map['@extra'];
client_id = map['@client_id'];
if (map['photo'] != null) {
photo = TdApiMap.fromMap(map['photo']) as Photo;
}
if (map['caption'] != null) {
caption = TdApiMap.fromMap(map['caption']) as FormattedText;
}
has_spoiler = map['has_spoiler'];
is_secret = map['is_secret'];
}