MessageOriginChat.fromJson constructor

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

Constructor from JSON data

Implementation

factory MessageOriginChat.fromJson(Map<String, dynamic> json) {
  return MessageOriginChat(
    date: json['date'],
    senderChat: Chat.fromJson(json['sender_chat']),
    authorSignature: json['author_signature'],
  );
}