MessageOriginChannel.fromJson constructor

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

Constructor from JSON data

Implementation

factory MessageOriginChannel.fromJson(Map<String, dynamic> json) {
  return MessageOriginChannel(
    date: json['date'],
    chat: Chat.fromJson(json['chat']),
    messageId: json['message_id'],
    authorSignature: json['author_signature'],
  );
}