RuntimeConfig.fromJson constructor

RuntimeConfig.fromJson(
  1. Map json_
)

Implementation

RuntimeConfig.fromJson(core.Map json_)
    : this(
        autotuningConfig: json_.containsKey('autotuningConfig')
            ? AutotuningConfig.fromJson(json_['autotuningConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        cohort: json_.containsKey('cohort')
            ? json_['cohort'] as core.String
            : null,
        containerImage: json_.containsKey('containerImage')
            ? json_['containerImage'] as core.String
            : null,
        properties: json_.containsKey('properties')
            ? (json_['properties'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        repositoryConfig: json_.containsKey('repositoryConfig')
            ? RepositoryConfig.fromJson(json_['repositoryConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        version: json_.containsKey('version')
            ? json_['version'] as core.String
            : null,
      );