toJSON method

Map<String, dynamic> toJSON()

Implementation

Map<String, dynamic>  toJSON()=>{
  'x': x,
  'y': y,
  'z': z,
  'volume': volume
};