ensureInitialized static method

PubPackageMapper ensureInitialized()

Implementation

static PubPackageMapper ensureInitialized() {
  if (_instance == null) {
    MapperContainer.globals.use(_instance = PubPackageMapper._());
    MapperContainer.globals.useAll([PubspecMapper()]);
    PackageVersionMapper.ensureInitialized();
  }
  return _instance!;
}