UpdateChatDraftMessage.fromJson constructor
Parses a UpdateChatDraftMessage from TDLib JSON.
Implementation
factory UpdateChatDraftMessage.fromJson(Map<String, dynamic> json) =>
UpdateChatDraftMessage(
chatId: _readInt(json['chat_id']),
draftMessage: _readOptional(
json['draft_message'],
DraftMessage.fromJson,
),
positions: _readList<ChatPosition>(
json['positions'],
(e) => _readObject(e, ChatPosition.fromJson),
),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);