Converts this Position to a JSON map.
Map<String, dynamic> toJson() { return { 'x': x, 'y': y, 'z': z, }; }