toJson method

Map<String, Object?> toJson()

Returns a representation of this object as a JSON object.

Implementation

Map<String, Object?> toJson() => {"x": x, "y": y, "z": z};