MessageOriginUser.fromJson constructor

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

Constructor from JSON data

Implementation

factory MessageOriginUser.fromJson(Map<String, dynamic> json) {
  return MessageOriginUser(
    date: json['date'],
    senderUser: User.fromJson(json['sender_user']),
  );
}