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