CCompilerConfig.fromJson constructor

CCompilerConfig.fromJson(
  1. Map<String, Object?> json
)

Constructs a CCompilerConfig from the given json.

The json is expected to be valid encoding obtained via CCompilerConfig.toJson.

Implementation

factory CCompilerConfig.fromJson(Map<String, Object?> json) =>
    CCompilerConfig(
      archiver: json.optionalPath(_arConfigKey),
      compiler: json.optionalPath(_ccConfigKey),
      envScript: json.optionalPath(_envScriptConfigKey),
      envScriptArgs: json.optionalStringList(_envScriptArgsConfigKey),
      linker: json.optionalPath(_ldConfigKey),
    );