ChatMessageSender.fromJson constructor

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

Parse from a json

Implementation

factory ChatMessageSender.fromJson(Map<String, dynamic> json) =>
    ChatMessageSender(
      sender: MessageSender.fromJson(json['sender']),
      needsPremium: json['needs_premium'],
    );