Map<String, dynamic> toJson() { return { 'time': time, 'position': position, 'connected': connected, 'ping': ping, }; }