Map<String, dynamic> toMap() { return ObjectsSpawnedMapper.ensureInitialized() .encodeMap<ObjectsSpawned>(this as ObjectsSpawned); }