AvailableReactions.fromMap constructor
AvailableReactions.fromMap(
- Map<String, dynamic> map
)
Implementation
AvailableReactions.fromMap(Map<String, dynamic> map) {
extra = map['@extra'];
client_id = map['@client_id'];
if (map['top_reactions'] != null) {
top_reactions = [];
for (var someValue in map['top_reactions']) {
if (someValue != null) {
top_reactions?.add(TdApiMap.fromMap(someValue) as AvailableReaction);
}
}
}
if (map['recent_reactions'] != null) {
recent_reactions = [];
for (var someValue in map['recent_reactions']) {
if (someValue != null) {
recent_reactions?.add(TdApiMap.fromMap(someValue) as AvailableReaction);
}
}
}
if (map['popular_reactions'] != null) {
popular_reactions = [];
for (var someValue in map['popular_reactions']) {
if (someValue != null) {
popular_reactions?.add(TdApiMap.fromMap(someValue) as AvailableReaction);
}
}
}
allow_custom_emoji = map['allow_custom_emoji'];
}