ChatNotice.from constructor

ChatNotice.from(
  1. Map<String, dynamic> data
)

Implementation

ChatNotice.from(Map<String, dynamic> data)
    : command = data['command'] ?? '',
      userId = data['userId'] ?? '',
      preview = data['preview'],
      senderAvatar = data['senderAvatar'],
      senderUserName = data['senderUserName'];