BuildConfig.fromJson constructor

BuildConfig.fromJson(
  1. Map _json
)

Implementation

BuildConfig.fromJson(core.Map _json)
    : this(
        build:
            _json.containsKey('build') ? _json['build'] as core.String : null,
        dockerRepository: _json.containsKey('dockerRepository')
            ? _json['dockerRepository'] as core.String
            : null,
        entryPoint: _json.containsKey('entryPoint')
            ? _json['entryPoint'] as core.String
            : null,
        environmentVariables: _json.containsKey('environmentVariables')
            ? (_json['environmentVariables']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, item) => core.MapEntry(
                  key,
                  item as core.String,
                ),
              )
            : null,
        runtime: _json.containsKey('runtime')
            ? _json['runtime'] as core.String
            : null,
        source: _json.containsKey('source')
            ? Source.fromJson(
                _json['source'] as core.Map<core.String, core.dynamic>)
            : null,
        sourceProvenance: _json.containsKey('sourceProvenance')
            ? SourceProvenance.fromJson(_json['sourceProvenance']
                as core.Map<core.String, core.dynamic>)
            : null,
        workerPool: _json.containsKey('workerPool')
            ? _json['workerPool'] as core.String
            : null,
      );