fromFileHelperJson static method

ThreadZhipuAI fromFileHelperJson(
  1. dynamic json
)

Implementation

static ThreadZhipuAI fromFileHelperJson(dynamic json) {
  return ThreadZhipuAI(
      tid: json['tid'],
      topic: json['topic'],
      uid: json['visitor']['uid'],
      nickname: json['visitor']['nickname'],
      avatar: json['visitor']['avatar'],
      content: json['content'],
      timestamp: BytedeskUtils.getTimeDuration(json['timestamp']),
      unreadCount: json['unreadCount'],
      type: json['type'],
      current: json['current'],
      client: json['client'],
      top: json['top'],
      topVisitor: json['topVisitor'],
      nodisturb: json['nodisturb'],
      nodisturbVisitor: json['nodisturbVisitor'],
      unread: json['unread'],
      unreadVisitor: json['unreadVisitor']);
}