Returns a representation of this object as a JSON object.
Map<String, Object?> toJson() => {"x": x, "y": y, "z": z};