MessageRecipient.fromJson constructor

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

Implementation

factory MessageRecipient.fromJson(Map<String, dynamic> json) {
  return MessageRecipient(
    chatId: json['chat_id'] as int?,
    chatType: ChatType.fromString(json['chat_type'] as String),
  );
}