toJson static method

Map<String, Object?> toJson(
  1. PackageConfig configuration, [
  2. Uri? baseUri
])

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);