toJson static method
Converts a configuration to a JSON-like data structure.
If baseUri
is provided, URI references in the generated data
will be made relative to baseUri
where possible.
Implementation
static Map<String, Object?> toJson(PackageConfig configuration,
[Uri? baseUri]) =>
packageConfigToJson(configuration, baseUri);