Definition at line 26 of file gen_dart_package_config.py.
◆ __init__()
def gen_dart_package_config.PackageConfig.__init__ |
( |
|
self, |
|
|
|
packages |
|
) |
| |
◆ asdict()
def gen_dart_package_config.PackageConfig.asdict |
( |
|
self | ) |
|
Converts the package config to a dictionary
Definition at line 36 of file gen_dart_package_config.py.
36 def asdict(self):
37 """Converts the package config to a dictionary"""
38 return {
39 'configVersion': self.VERSION,
40 'packages': [p._asdict() for p in sorted(self.packages)],
41 'generator': self.GENERATOR_NAME,
42 }
43
44
◆ GENERATOR_NAME
gen_dart_package_config.PackageConfig.GENERATOR_NAME = os.path.basename(__file__) |
|
static |
◆ packages
gen_dart_package_config.PackageConfig.packages |
◆ VERSION
int gen_dart_package_config.PackageConfig.VERSION = 2 |
|
static |
The documentation for this class was generated from the following file: