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