SyncNodeEntry.fromJson constructor
Implementation
factory SyncNodeEntry.fromJson(Map<String, dynamic> json) {
return SyncNodeEntry(
nodeId: json['id'] as String,
role: json['r'] as int,
groupId: json['g'] as String?,
lastSeen: json['ts'] as int,
hopCount: json['h'] as int,
displayName: json['n'] as String?,
batteryLevel: json['bl'] as int?,
hasInternetAccess: json['net'] as bool? ?? false,
);
}