toJson method
Implementation
@override
Object toJson() {
return {
if (x.isNotDefault) 'x': encodeDouble(x),
if (y.isNotDefault) 'y': encodeDouble(y),
if (z.isNotDefault) 'z': encodeDouble(z),
if (w.isNotDefault) 'w': encodeDouble(w),
};
}