ForwardSource.fromJson constructor

ForwardSource.fromJson(
  1. Map<String, dynamic> json
)

Parse from a json

Implementation

factory ForwardSource.fromJson(Map<String, dynamic> json) => ForwardSource(
      chatId: json['chat_id'],
      messageId: json['message_id'],
      senderId: json['sender_id'] == null
          ? null
          : MessageSender.fromJson(json['sender_id']),
      senderName: json['sender_name'],
      date: json['date'],
      isOutgoing: json['is_outgoing'],
    );