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