ensureInitialized static method

DeckDefinitionMapper ensureInitialized()

Implementation

static DeckDefinitionMapper ensureInitialized() {
  if (_instance == null) {
    MapperContainer.globals.use(_instance = DeckDefinitionMapper._());
    FigureDeckDefinitionMapper.ensureInitialized();
    BoardDeckDefinitionMapper.ensureInitialized();
  }
  return _instance!;
}