deserialize method Null safety

  1. @override
Point deserialize(
  1. ByteDataReader reader
)
override

Implementation

@override
Point deserialize(ByteDataReader reader) {
  //deserializes a message object of type Point
  final data = Point();
  // Deserialize message field [x]
  data.x = reader.readFloat64();
  // Deserialize message field [y]
  data.y = reader.readFloat64();
  // Deserialize message field [z]
  data.z = reader.readFloat64();
  return data;
}