static Vector3? jsonToVector3(Map<String,dynamic>? data){ if(data == null || data['x'] == null || data['y'] == null) return null; return Vector3( data['x'], data['y'], data['z']??0 ); }