Map<String, dynamic> toJson() { return { "deviceId": deviceId, "deviceLocation": deviceLocation?.toJson(), }; }