toJson method

  1. @override
Object toJson()
override

Implementation

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