ChatRoomNodeInfo.from constructor
ChatRoomNodeInfo.from(
- Map data
Implementation
ChatRoomNodeInfo.from(Map data)
: recommend = ChatRoomNode.from({
'node': data['data'],
'name': data['msg'],
'online':
List.from(data['avaliable']).firstWhere((element) => element['node'] == data['data'])?['online'] ?? 0,
}),
avaliable = ChatRoomNode.from(data['avaliable']);