fromJson static method
Implementation
static ForwardSource? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return ForwardSource(
chatId: (json['chat_id'] as int?) ?? 0,
messageId: (json['message_id'] as int?) ?? 0,
senderId: MessageSender.fromJson(tdMapFromJson(json['sender_id'])),
senderName: (json['sender_name'] as String?) ?? '',
date: (json['date'] as int?) ?? 0,
isOutgoing: (json['is_outgoing'] as bool?) ?? false,
);
}