fromMessage static method

MessageZhipuAI fromMessage(
  1. Message message
)

Implementation

static MessageZhipuAI fromMessage(Message message) {
  return MessageZhipuAI(
      mid: message.mid,
      content: message.content,
      imageUrl: message.imageUrl,
      voiceUrl: message.voiceUrl,
      videoUrl: message.videoUrl,
      fileUrl: message.fileUrl,
      nickname: message.nickname,
      avatar: message.avatar,
      type: message.type,
      topic: message.topic,
      timestamp: message.timestamp,
      isSend: message.isSend,
      thread: ThreadZhipuAI.fromThread(message.thread!),
      user: message.user,
      status: message.status,
      currentUid: message.currentUid,
      client: message.client,
      answers: message.answers,
      answersJson: message.answersJson,
      categories: message.categories,
      categoriesJson: message.categoriesJson);
}