code: def convert_to_flat(self, builder):
          
  
          DesiredBoostState.DesiredBoostStateStart(builder)
          if self.respawn_time is not None:
              DesiredBoostState.DesiredBoostStateAddRespawnTime(builder, Float.CreateFloat(builder, self.respawn_time))
          return DesiredBoostState.DesiredBoostStateEnd(builder)
docs: In this conversion, we always want to return a valid flatbuffer pointer even if all the
          contents are blank because sometimes we need to put empty boost states into the boost list
          to make the indices line up.