ensureInitialized static method

WorldStateMapper ensureInitialized()

Implementation

static WorldStateMapper ensureInitialized() {
  if (_instance == null) {
    MapperContainer.globals.use(_instance = WorldStateMapper._());
    GameTableMapper.ensureInitialized();
    GameInfoMapper.ensureInitialized();
    FileMetadataMapper.ensureInitialized();
    ChatMessageMapper.ensureInitialized();
    GameDialogMapper.ensureInitialized();
  }
  return _instance!;
}