Map<String, dynamic> toJson() { final Map<String, dynamic> json = <String, dynamic>{}; json['x'] = x; json['y'] = y; json['z'] = z; return json; }