UpdateChatDraftMessage.fromMap constructor
UpdateChatDraftMessage.fromMap(
- Map<String, dynamic> map
)
Implementation
UpdateChatDraftMessage.fromMap(Map<String, dynamic> map) {
extra = map['@extra'];
client_id = map['@client_id'];
chat_id = map['chat_id'];
if (map['draft_message'] != null) {
draft_message = TdApiMap.fromMap(map['draft_message']) as DraftMessage;
}
if (map['positions'] != null) {
positions = [];
for (var someValue in map['positions']) {
if (someValue != null) {
positions?.add(TdApiMap.fromMap(someValue) as ChatPosition);
}
}
}
}