NmPlatformConfig class
A platform's eight config files as JSON, with the helpers the config panels use.
Ported from taxlien-platforms-app config_repo.dart without the file IO: the files come
from the service API (ConfigEditorState).
A platform's configuration: one decoded JSON document per config file
(manifest, selectors, mapping, counties, …), as edited by the config panels.
Constructors
-
NmPlatformConfig({required String id, required Map<
String, Map< files, required Set<String, dynamic> >String> missing}) - Creates an NmPlatformConfig.
Properties
- bulkSupport → String
-
Bulk capability support state.
no setter
-
capabilities
→ Map<
String, bool> -
Manifest capabilities.
no setter
-
counties
→ Map<
String, dynamic> -
counties.jsonis{"counties": {key: {...}}}(or a bare map).no setter -
dataDomains
→ List<
String> -
Manifest
data_domains.no setter - dimension → String
-
Coarse dimension, inferred from capabilities then from the field names —
the repo has no explicit dimension key.
no setter
- engineType → String
-
Manifest
engine_type.no setter -
files
→ Map<
String, Map< String, dynamic> > -
file name (without .json) -> decoded JSON (order-preserving)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Platform id.
final
-
mappingDefaults
→ Map<
String, dynamic> -
Base field mapping (
mapping.json›default).no setter -
missing
→ Set<
String> -
config files that do not exist in the tree yet
final
- rateLimit → String
-
Acquisition rate limit, or
—.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectorDefaults
→ Map<
String, dynamic> -
Base selectors (
selectors.json›default).no setter -
selectorOverrides
→ Map<
String, dynamic> -
County selector overrides (
selectors.json›overrides).no setter - urlPattern → String
-
Discovery URL pattern.
no setter
Methods
-
effective(
String field, String? countyKey) → dynamic -
Selector value for
fieldas seen by the scraper atcountyKey(null scope = the base config). -
file(
String name) → Map< String, dynamic> -
The decoded document of config file
name(created empty when missing). -
isOverridden(
String field, String? countyKey) → bool -
Whether
countyKeyoverrides the selector offield. -
mappingTarget(
String source) → String -
Target column of source field
source, or(unmapped). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
section(
String name, String key) → Map< String, dynamic> -
The map under
keyin filename(created empty when missing). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited