deserialize method Null safety

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

Implementation

@override
TwistWithCovariance deserialize(ByteDataReader reader) {
  //deserializes a message object of type TwistWithCovariance
  final data = TwistWithCovariance();
  // Deserialize message field [twist]
  data.twist = Twist.$prototype.deserialize(reader);
  // Deserialize message field [covariance]
  data.covariance = reader.readArray<double>(() => reader.readFloat64(), arrayLen: 36);
  return data;
}