fromWorkGroupJson static method

Thread fromWorkGroupJson(
  1. dynamic json
)

Implementation

static Thread fromWorkGroupJson(dynamic json) {
  return Thread(
      tid: json['tid'],
      topic: json['topic'],
      wid: json['workGroup']['wid'],
      nickname: json['workGroup']['nickname'],
      avatar: json['workGroup']['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']);
}