deserialize method Null safety

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

Implementation

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