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