jsonToVector3 static method

Vector3? jsonToVector3(
  1. Map<String, dynamic>? data
)

Implementation

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
  );
}