deserialize method Null safety

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

Implementation

@override
TwistStamped deserialize(ByteDataReader reader) {
  //deserializes a message object of type TwistStamped
  final data = TwistStamped();
  // Deserialize message field [header]
  data.header = Header.$prototype.deserialize(reader);
  // Deserialize message field [twist]
  data.twist = Twist.$prototype.deserialize(reader);
  return data;
}